text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.spi;

import com.facebook.drift.annotations.ThriftConstructor;
import com.facebook.drift.annotations.ThriftField;
import com.facebook.drift.annotations.ThriftStruct;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

import static com.facebook.presto.spi.SchemaUtil.checkNotEmpty;
import static java.util.Locale.ENGLISH;

@ThriftStruct
public class SchemaTableName
{
    private final String schemaName;
    private final String tableName;

    @JsonCreator
    @ThriftConstructor
    public SchemaTableName(@JsonProperty("schema") String schemaName, @JsonProperty("table") String tableName)
    {
        this.schemaName = checkNotEmpty(schemaName, "schemaName").toLowerCase(ENGLISH);
        this.tableName = checkNotEmpty(tableName, "tableName").toLowerCase(ENGLISH);
    }

    public static SchemaTableName valueOf(String schemaTableName)
    {
        checkNotEmpty(schemaTableName, "schemaTableName").toLowerCase(ENGLISH);

        String[] parts = schemaTableName.split("\\.");
        if (parts.length != 2) {
            throw new IllegalArgumentException("SchemaTableName should have exactly 2 parts");
        }
        return new SchemaTableName(parts[0], parts[1]);
    }

    @JsonProperty("schema")
    @ThriftField(1)
    public String getSchemaName()
    {
        return schemaName;
    }

    @JsonProperty("table")
    @ThriftField(2)
    public String getTableName()
    {
        return tableName;
    }

    @Override
    public int hashCode()
    {
        return Objects.hash(schemaName, tableName);
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final SchemaTableName other = (SchemaTableName) obj;
        return Objects.equals(this.schemaName, other.schemaName) &&
                Objects.equals(this.tableName, other.tableName);
    }

    @Override
    public String toString()
    {
        return schemaName + '.' + tableName;
    }

    public SchemaTablePrefix toSchemaTablePrefix()
    {
        return new SchemaTablePrefix(schemaName, tableName);
    }
}


text:
<?php

namespace Foostart\Contact\Models;

use Illuminate\Database\Eloquent\Model;

class ContactsCategories extends Model {

    protected $table = 'contacts_categories';
    public $timestamps = false;
    protected $fillable = [
        'contact_category_name',
        'contact_category_cv',
        'contact_category_sdt',
        'contact_category_mail',
        'contact_category_skype',
    ];
    protected $primaryKey = 'contact_category_id';

    public function get_contacts_categories($params = array()) {
        $eloquent = self::orderBy('contact_category_id');

        if (!empty($params['contact_category_name'])) {
            $eloquent->where('contact_category_name', 'like', '%'. $params['contact_category_name'].'%');
        }
         if (!empty($params['contact_category_cv'])) {
            $eloquent->where('contact_category_cv', 'like', '%'. $params['contact_category_cv'].'%');
        }
         if (!empty($params['contact_category_sdt'])) {
            $eloquent->where('contact_category_sdt', 'like', '%'. $params['contact_category_sdt'].'%');
        }
         if (!empty($params['contact_category_mail'])) {
            $eloquent->where('contact_category_mail', 'like', '%'. $params['contact_category_mail'].'%');
        }
         if (!empty($params['contact_category_skype'])) {
            $eloquent->where('contact_category_skype', 'like', '%'. $params['contact_category_skype'].'%');
        }
        $contacts_category = $eloquent->paginate(10);
        return $contacts_category;
    }

    /**
     *
     * @param type $input
     * @param type $contact_id
     * @return type
     */
    public function update_contact($input, $contact_id = NULL) {

        if (empty($contact_id)) {
            $contact_id = $input['contact_category_id'];
        }

        $contact = self::find($contact_id);

        if (!empty($contact)) {

            $contact->contact_category_name = $input['contact_category_name'];
             $contact->contact_category_cv = $input['contact_category_cv'];
              $contact->contact_category_sdt = $input['contact_category_sdt'];
               $contact->contact_category_mail = $input['contact_category_mail'];
                $contact->contact_category_skype = $input['contact_category_skype'];

            $contact->save();

            return $contact;
        } else {
            return NULL;
        }
    }

    /**
     *
     * @param type $input
     * @return type
     */
    public function add_contact($input) {

        $contact = self::create([
                    'contact_category_name' => $input['contact_category_name'],
            'contact_category_cv' => $input['contact_category_cv'],
            'contact_category_sdt' => $input['contact_category_sdt'],
            'contact_category_mail' => $input['contact_category_mail'],
            'contact_category_skype' => $input['contact_category_skype'],
        ]);
        return $contact;
    }
}

redpajama_set_name: RedPajamaGithub


text:
import Base = require('./Base');
/**
 * Data struct to contain both B and C sections.
 */
declare class Data<TDomain> extends Base {
    /**
     * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
     */
    baseType: string;
    /**
     * Container for data item (B section).
     */
    baseData: TDomain;
    constructor();
}
export = Data;


text:
package org.iotivity.base;

public class OcDeviceInfo {

    private String deviceName;

    public OcDeviceInfo() {

        deviceName = "";
    }

    public OcDeviceInfo(String deviceName) {

        this.deviceName = deviceName;
    }

    public String getDeviceName() {

        return deviceName;
    }

    public void setDeviceName(String deviceName) {

        this.deviceName = deviceName;
    }
}


text:
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
#ifndef UUACCE_H
#define UUACCE_H

#include <linux/types.h>
#include <linux/ioctl.h>

/*
 * UACCE_CMD_START_Q: Start queue
 */
#define UACCE_CMD_START_Q	_IO('W', 0)

/*
 * UACCE_CMD_PUT_Q:
 * User actively stop queue and free queue resource immediately
 * Optimization method since close fd may delay
 */
#define UACCE_CMD_PUT_Q		_IO('W', 1)

/*
 * UACCE Device flags:
 * UACCE_DEV_SVA: Shared Virtual Addresses
 *		  Support PASID
 *		  Support device page faults (PCI PRI or SMMU Stall)
 */
#define UACCE_DEV_SVA		BIT(0)

/**
 * enum uacce_qfrt: queue file region type
 * @UACCE_QFRT_MMIO: device mmio region
 * @UACCE_QFRT_DUS: device user share region
 */
enum uacce_qfrt {
	UACCE_QFRT_MMIO = 0,
	UACCE_QFRT_DUS = 1,
};

#endif