query_id
string
corpus_id
string
query
string
code
string
label
int64
9d4b94f3c09031d478700aa983804b02
3ceac16948103e5e74e9202526cc6930
builds an identifier using variables above so that the original folder can be found
class Builder protected function getId() { return sprintf('%s-%s', $this->tracker, getcwd()); }
1
cc10157ee448ddcfb2bff058a44a622e
9bc97627c1b7a4d721f8455ecae6ca73
AgreementOtherDetailsEqualFold applies the EqualFold predicate on the "agreement_other_details" field.
func OutcomeMeasureDescriptionEqualFold(v string) predicate.OutcomeMeasure { return predicate.OutcomeMeasure(func(s *sql.Selector) { s.Where(sql.EqualFold(s.C(FieldOutcomeMeasureDescription), v)) }) }
0
78e120c6efdd1fc4d2382a5544b970bb
b94852149542deb033a939cfb0b0af6f
ワールド座標からビットマップの座標に変換
class MapRoad90Angle implements IMapRoad public getWorldPointByPixel(x: number, y: number): Point { var cx: number = Math.floor(x / this._nodeWidth); var cy: number = Math.floor(y / this._nodeHeight); return new Point(cx, cy); }
0
c1338adc6bc1a2efac1c0d4f63804371
890dfa2b1ba95050e610ceebf95a0953
Escreve a ficha contendo todos os dados do boleto
StringBuilder sb = new StringBuilder(); sb.append("NIF: ").append(this.nif).append("\nEmail: ").append(this.email) .append("\nNome: ").append(this.nome) .append("\nMorada: ").append(this.morada) .append("\nMontante total deduzido: ").append(this.mont_fiscal + "€"); return sb.to...
1
deb1cf6f7799413d0dc2614e0ab737c4
c38a802459e2d977403013f71a1d50d8
Lists objects without parameters.
$objects = getRequest('element'); if (!is_array($objects)) { $objects = [$objects]; } foreach ($objects as $objectId) { $object = $this->expectObject($objectId, false, true); $params = ['object' => $object]; $this->deleteObject($params); } $this->setDataType('list'); $this->setActio...
0
f607c1906ca7200c4599b59eacf58f83
25b5e1fb81b6f3335f74281bb7e44737
Gets the default id method.
public function getDefaultId() : ?string;
1
1c401f0a037b2099660ad7516dea4362
bf8cec518d4358c29e4848adaaf1f36a
Official way to get the extension of compiled files (.pyc or .pyo)
if(language == "python"): return ".py" elif(language == "java"): return ".java" elif(language == "javascript"): return ".js" else: return ".py"
0
680e80ff65f67ab19aaf55801d3de5f1
340008a2a7fbe8d8a9c881ab277496c2
언팔로우 요청 전송 함수
public FollowTO executeDoUnFollow(FollowTO followTO) throws RemoteException;
1
b15c052b077349cad1b6a78fad7cf550
f45da74e6775e339b11d8f3e77a10b37
Fills client combobox with valid clients names
{ var api = new ApiServices(); var token = Settings.AccessToken; var list = await api.GetClientAsync(token); var ret = list.Select(t => t.ClientName).ToList(); foreach (var ts in ret) { ClientPicker.Items.Add(ts); } }
1
bac33804c486ee2db395b60b220a0ba9
852f5d2a3096ba3dd8e210e1336efd7d
設置佈局管理器
public class ListOrganizationActivity extends AppCompatActivity private void setLayoutManagers() { LinearLayoutManager llm1 = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); rv1.setLayoutManager(llm1); rv1.setHasFixedSize(true); }
1
579966b736ede92accaaf33c0b77179b
13cb03d37428f67830650a5e5f4e35aa
测试任何一个指定的通信请求是否完成
{ *done = 0; comm_req_t *r = (comm_req_t*)request; if (!r->used) { assert(!r->used); return ncclInternalError; } int rc = mq_progress_loop(r->mq); if (rc != ncclSuccess) return ncclInternalError; if (!r->done) { *done = 0; return ncclSuccess; } PSM_VERDBG("test r=%p,r.ep=%p,r.mq=%p,r.req=%p,r.type=%d...
1
76d77b555f30342713d962c0d7a746f0
4d4a7bb9d99865777ab9e5dbec138a07
Called when and what to shoot on the shoot interval
public class EnemyBehaviour : MonoBehaviour void Shoot() { if (DateTime.Now >= lastShoot.AddSeconds(this.intervalShoot)) { this.RaiseArm(); var bullet = Instantiate(bulletPrefab, rightArm.transform.position, this.transform.rotation); this.lastShoot = DateTime.Now;...
1
31eeaabedc8f004fe8a03475135749ad
fb6eabfe583c2860393efa3ec0676e44
normalizes the dataset per user
class CSVReader: def normalizeData(self): self.scaler = skpp.MinMaxScaler(feature_range = (0, 1)) self.norDataset = self.scaler.fit_transform(self.Dataset.reshape(-1,1))
0
1d6d3f296f1e2523c11c75ebd1867578
a88e5c998e4f764f91dcdf8da07989ac
7XNN Const Vx += NN Adds NN to VX. (Carry flag is not changed)
void Chip8OpCode7XNN(Chip8CPU *Chip8) { Chip8->V[(Chip8->opcode & 0x0F00) >> 8] += (Chip8->opcode & 0x00FF); }
1
26ec80deedb0f5e86c1303feaef0ba00
7de385801b98ef0f25f3abc01c24140b
add_response(response) Add a response to the dialog.
if proto is None: proto = self._response_proto if status is None: status = proto.OK self._response.append(proto(status=status, **response_data))
1
d8c6d0706601c767dab36dcdaa7402b6
d1f9cb1643ddfd994903f035660488d2
必填项遗漏变红色
for(var id of arr){ if(id=="longtitude"||id=="latitude"){ $$('#addressRight').parents('.sameRoot').addClass('border-red'); $$('#provinceRight').parents('.sameRoot').addClass('border-red'); $$('#cityRight').parents('.sameRoot').addClass('border-red'); $$('#regionRight').parents('.sameRoot').addClass('bord...
1
d1bec7d0e82d19b85993bda993fa40d0
35f10f031876842e2c77a3b38a4db4ea
Extracts the metadata for a single query from an AST object.
const emissions = []; const emitter = new EventEmitter(); possibleQueries.forEach(query => emitter.on(query, () => {})); const generator = new NodeEventGenerator(emitter); emitter.emit = (selector, node) => emissions.push([selector, node]); estrave...
0
8a88fc2b49de1dba543e33482e5ce88b
81b8ee26ba21780504cba7195da739d8
Set the list of projects to the given list.
@Entity public class User public void setProjectsSubmitted(List<Project> projectsSubmitted) { this.projectsSubmitted = projectsSubmitted; }
1
b698869dcc0ebe543052e4c8a9cbe626
a2abd39f6872a623e37465f6a1647e40
چک کردن شرایط شماره دار شدن سند بر اساس نوع آن و نوع درخواست شماره گذاری
if( this.existApplyBill(consid,1) ){ if (this.existInvoiceF(consid) ){ if(this.allInvoice(consid,2)){ return 4L; } else{ return 2L; } } else{ if(this.existInvoice(consid)){ return 1L; } else{ return 0L; } } } else{ return 0L; } }
1
ca195784566f83b3d8a376bd691c1549
2d528769bbc7df6ff14e55a69e429364
发送Map消息,method指定接收方式
public class MainActivity extends BaseHttpAppCompatActivity implements MyBaseRecyclerAdapter.OnRecyclerItemClickListener, View.OnClickListener private void sendMsg(String method) { Message msg = handler.obtainMessage(); msg.obj = method; handler.sendMessage(msg); }
0
2d07fb74c1410275851f0943eaf74651
bddc13a7070c4dc802c24a279ccee96a
列出当前目录中所有的文件和文件夹,重新包装为自定义的 JFTPFile
String pwd = null; if (StringUtils.isNotBlank(path)) { pwd = pwd(); cd(path); } FTPFile[] ftpFiles; try { ftpFiles = this.client.listFiles(); } catch (IOException e) { throw new RuntimeException(e); } finally { ...
0
e016e5f32fec0a5b66c82682afb95f2c
28514730da3313113cc2c5e138e163a0
Display the camera to the user and wait for them to take a photo or to cancel the action
class CameraActivity : Activity(), SurfaceHolder.Callback private fun doCapture() { this.setCameraPictureOrientation() if (camera != null) { this.setCaptureButtonVisibility(false) statusTextView.text = getString(R.string.start_capture_hold_still) inPreview = false ...
0
aedf632d3e5111c5befd7cf257e8f4ff
5e0b158d11e3ad3421a7fe4e7e4ad9a5
Gets the value of the packagingForm property. possible object is {@link String }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "LPhone", propOrder = { "name", "description", "product", "model", "clazz", "protocol", "protocolSide", "callingSearchSpaceName", "devicePoolName", "commonDeviceConfigName", "commonPhoneConfigName", "networkLocation", ...
0
f4c6e04f48389fa08b16a7d1e7dc8380
60ba9540ab87fca44ef2850a9246ed3e
Checks whether next token is 'null'
func nonNullTypeExists(l *lexer) bool { return l.tokenEquals(tokBang.string()) }
0
5a4c6d732c4b45ef482dc331c44fae44
09ad24fc40a0205d6c968c57798d680d
Gets the name of the inexistent person.
public class UnknownCandidateException extends Exception public String getUnknownCand() { return this.name; }
1
bd7e22985778d150ed64f51810481988
50f0fa74aec96e217ef4b413e41918d7
Expected: true
func ExampleStringMap_Exists() { m := NewStringMapV(map[string]interface{}{"1": "one"}) fmt.Println(m.Exists("1")) }
1
6da904f104c2fe4e4e317990d681b1a3
2f43fbd88009de84d3b41883c0d4c31c
通过requestAnimationFrame移动div
let moveW = this.data.canvasW / (2 * 1000) * 16 let x = 0 ctx.setFillStyle('red') let timer = setInterval(() => { if (x >= this.data.canvasW * 1.5) { clearInterval(timer) } console.log(x, 'x') ctx.transform(1, 1, 0, 0, x, 0) x += parseFloat(moveW...
0
2cf1226976c540a4ec193b0420bd5c3b
1fdb1bc76667facd7a1d40cd691f3697
Returns whether or not log level debug is enabled.
public class AndroidLoggerAdapter extends MarkerIgnoringBase public boolean isDebugEnabled() { return isLevelEnabled(LOG_LEVEL_DEBUG); }
1
15c41dddf8b82165d4873fe5329d87ef
4725bbbb64cc91fc6035c01f3d3cc6e8
Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame.
[ExecuteInEditMode] public class GPUInstancing : MonoBehaviour void Update () { }
0
1a5ff98ab2fc57e57a261a98090c4caa
41bade9bd0228d6bf5578456086ec0c7
Возвращает список плагинов, добавляя им приоритет загрузки
namespace Research.Core.Plugins IEnumerable<T> GetPlugins<T>(LoadPluginsMode loadMode = LoadPluginsMode.InstalledOnly, int storeId = 0, string group = null) where T : class, IPlugin;
0
9ad14a61ff23b0b95f7e570a81807dca
ae2fb5ce7d7ea03393fe60290b229812
Get the syslog prefix. Returns: Syslog prefix (string).
class Message(olefile.OleFileIO): def prefix(self): return self.__prefix
0
6c9974e29827794feeb553917fcd55c0
9f22bfd5ee506e982f91e6233144e664
Returns the descriptions of existing applications. See also: AWS API Documentation
def describe_application_versions(ApplicationName=None, VersionLabels=None, MaxRecords=None, NextToken=None): pass
0
ff670d02d163c664e710dcb036037d8e
ca68ac6363662cc347db67c1e2b1038c
頂点バッファに弾データを追加する(角度含む) //
{ polygonAngle = (float)Math.atan2(size.y, size.x); polygonLength = (float)(Math.sqrt(Math.pow(size.x, 2) + Math.pow(size.y, 2))); FloatBuffer floatBuffer = common.makeFloatBuffer(new float[]{ pos.x, pos.y + size.y, color.r, color.g, color.b, color.a, (keyNumX * keyRateX), (keyNumY * keyRateY), ...
1
78c9b31d8458d6ee27ccc71935228bc1
fbf16959be0f0921c62a55d9f1549689
Gets the focus nodes from the database
{ string json = "{}"; var list = dal.GetMyFocus(this.UserName); json = Utils.Serialize(list); return json; }
1
ef495b9bb3540e6971f95494a55b8b25
daa87ea0271083df79bdb029c2ec0705
Extracts the exception for a Rollbar payload from the incoming plug-in's data event.
\Throwable $exception, array $collected = [] ): array { return [ 'type' => 'exception', 'data' => [ 'value' => $this->encode($exception), 'message' => $exception->getMessage() ], 'collected' => $collected ...
0
8c586d3f59a5174d56c2bd7d55202ba9
a26b7f609bab299239afcec9d9e1b052
获取某繁殖状态的牛
class BetController extends Controller private static function get_animal($type = '') { $animal_arr = self::animal_arr(); $year = date('Y'); $year = $animal_arr[(($year - 4) % 12)]; $shenxiao_arr = array('pig', 'dog', 'chicken', 'monkey', 'sheep', 'horse', 'snake', 'dragon', 'rabbit', '...
0
3c3a74f864208e05dfb004ec6f542b27
1308bcf11d8654f0f65d3c28a299b7e9
call `finish` in next tick to ensure both load event handlers have a chance to fire.
function finishLoading() { return __awaiter(this, void 0, void 0, function* () { yield applySettings(); tryDetectLocale(); metadataUpdater.forceUpdate(); bindEvents(); settingsAdditions.bindEvents(); settingsAdditions.forceUpdateState(); ...
0
24c64e6d3b43dbea3ab98cb940bb7237
f3c662ff028e8f67afe81e2b94226c39
Inject <b>detail</b> styles.
public final class CssInjector public void ensureDetailStylesInjected() { if (!isDetailLoaded) { isDetailLoaded = true; StyleResource.INSTANCE.details().ensureInjected(); injectResponsiveStyles( StyleResource.INSTANCE.detailsMiddle().getText(), ...
1
c36740b64d4cf61cb6a5e3b8d4224eae
a36454b2aedb7a1bdc53abf4cd4d39fc
нахождение квадрата расстояния между точками (без учета кривизны)
double Dist(Punct A, double a, double b, double c) { return fabs( a*A.x + b*A.y + c ) / sqrt(a*a + b*b); }
0
61009b3a5ab0d82dbf26da363e1c4192
50fdca8e61b86c844177c8959e6f9d6b
获取缓存在cache里面的图片总数
currentSize() { return ImgCache.getCurrentSize(); }
0
a218076d37c4ca58d828f12b45ff2e26
e9d5dbbcafe4c657a8402bfd4fc15cee
Test importing of directory with missing packaging files
def test_packageImport(): flakes(''' import fu.bar fu.bar ''')
0
495f67b4c2b3bbe753b135931ce9426c
0f168d6b893b42b042606e8ad167bc63
Check if this segment is a minimal feature difference with another segment (ignoring some features)
dist = new_xy_data["x"].subtract(old_feature_x.reset_index(drop=True), level=-1).abs() return new_xy_data[ (dist.groupby(dist.index.names).transform("min") == dist) & (dist < tolerance) ]
1
ad2e104dc774d29f5a6430eb9ad0d69b
f0799ae642a71eb84d1ae84cb3691c80
組立セット品マスタ存在確認
{ try { BusyStatus.IsBusy = true; var noHinmokuList = await DataService.CheckHinmokuMaster(); if (noHinmokuList.Count() > 0) { string notHinmoku = Constants.HinmokuCode_StringDefine + noHinmokuList.FirstO...
1
18ccb59afc1155a3ec5201f2f75839ed
e8a08ca69aeaa23f3f9c768aac31e6bf
The photosets are filled dynamically based on which photosets are loaded (it would be a waste to load all flickr info if not needed). This method needs to be called in order to fill the photoset cache with photo information.
{ if( m_pImageset != NULL ) return S_OK; CPidlMemPtr<FLICKRFS_PIDL_ACCOUNT> pRoot = m_pidlFolder; if( !pRoot.IsType(FLICKRFS_MAGIC_ID_ACCOUNT) ) return E_UNEXPECTED; CPidlMemPtr<FLICKRFS_PIDL_IMAGESET> pItem = m_pidlItem; if( !pItem.IsType(FLICKRFS_MAGIC_ID_IMAGESET) ) return E_UNEXPECTED; TFlickrAcco...
1
5f64e94296dd5c61502b71d9b6c20ade
3ab1286feaadab92d35281dd76a5f0ed
新增打印日志
public void addPackagePrintLog(PrintPackageVo printPackageVo);
1
2cf9f0b397c40e3ff976d1d80849ac67
840cc2edee76a81901b2f43b1fe9dfe0
#đăng nhập theo dữ liệu trong session
function signin(){ if(!empty($_POST)){ $this->load->model('User_model'); $result = $this->User_model->getUser(); if($result == null){ redirect(base_url('auth/index'),'reload'); }else{ $this->session->set_userdata('name',$result->name); $this->session->set_userdata('email',$result->email); ...
0
84e1b235cd2644a10e9af3ab12070dac
bd0cceb5a372bae945c9a88ac8da3feb
computes the consistent tangent moduli
mat material_tangent_moduli(const double youngs_mod, const double poissons_ratio) { mat C_SE; double E_star = youngs_mod/(1-poissons_ratio*poissons_ratio); double v_star = poissons_ratio/(1-poissons_ratio); C_SE << 1. << v_star << 0 << endr << v_star << 1. << 0...
1
68149b4461d473a35ddae38d05aafb28
d2bbda0b51a4ddf64542683ff28ab769
Gets Stripe config.
{ return [ 'DisplayName' => 'Stripe', 'APIVersion' => '1.1', 'DisableLocalCreditCardInput' => false, 'TokenisedStorage' => true, ]; }
1
ae53b4c6d635a56dd38ac53f9e871a78
2409e7bbd992b39fe55374adbb04266e
sets default flags for L1 alignment (see ConfigureMuonAlignment for more flag setting)
class L2BMuMuFex_1 (TrigL2BMuMuFex): def __init__(self, name = "L2BMuMuFex_1"): super( TrigL2BMuMuFex, self ).__init__( name ) self.AcceptAll = False self.AcceptSameMuon = True self.LowerMassCut = 100. self.UpperMassCut = 13000. self.ApplyUpperMassCut = True ...
0
42e33d168040f9184e50eabf80031eda
2fe505fb291ba1c3dd13a8259f8feae8
Determine how close two IColorSpaces are to each other using a passed in algorithm
{ if(that == null) throw new IllegalArgumentException("Object not present"); ColorHSB h1 = this; return (int)Math.min((int)Math.pow((h1.hu-that.hu),2), Math.pow((360 - (int)(Math.abs(h1.hu-that.hu))),2)) + (int)Math.pow((h1.sa-that.sa),2) + (int)Math.pow((h1.br-that.br),2); }
1
8cc4289c3e5f332df04474c0974a445c
8c30d817a3bb02ee03937ec6aaec817d
Load facebook access token from persisted auth data
{ if (IsolatedStorageSettings.ApplicationSettings.Contains(SettingsKeyForFacebookToken)) { _accessToken = IsolatedStorageSettings.ApplicationSettings[SettingsKeyForFacebookToken] as FacebookSession; if (_accessToken != null && !string.I...
1
a34d81b0b5d40e2ba19b554113a2a69c
92a455c38e67b39015519468685dd68a
Have we already output the code in the <head> tag?
public boolean isCodeGenerated();
0
3ec8a4ee3f28a6d35dea20bc392ff78c
f5c954ec7dda43c998d81c11a07fa433
get a handle on the properties of the clip descriptor for the C api
void CAAFVC3Codec::UpdateDescriptor (CAAFCDCIDescriptorHelper& descriptorHelper) { plugin_trace("CAAFVC3Codec::UpdateDescriptor()\n"); UpdateCalculatedData(); checkResult(descriptorHelper.SetLength(_numberOfSamples)); checkResult(descriptorHelper.SetSampleRate(_sampleRate)); if(_UseLegacyAvidUIDs) { memcpy(&_co...
0
f6618877a9318095fbd086d86b9f088e
9201610bcad808623c5b0154a3532283
弹出正式出价窗口
export class BidRecordComponent implements OnInit, OnDestroy openModal(data: any) { this.tenderInfo = data; this.isBoxPrice = this.tenderInfo.calculation === 'JJJS30' || this.tenderInfo.calculation === 'JJJS40'; this.form.reset(); const param = { tenderNo: this.tenderInfo.tenderNo, bidderCompanyId: this...
1
53ff5eb64a2a636cf3ffd66713efa1d5
94c0fa011c744513a0bd19dff6ce561c
@brief This callback is called when the connection state has changed to connected, connection in progress, disconnected, off, passcode entry started.
void connection_cb(esp_bd_addr_t bd_addr, esp_hidd_connection_state_t state) { switch (state) { case ESP_HIDD_CONN_STATE_CONNECTED: if (bthid_cb.connected_cb) { (bthid_cb.connected_cb)(); } break; case ESP_HIDD_CONN_STATE_DISCONNECTED: if (bthid_cb.dis...
1
f3c1ffb5412f9e7e58d5bdd1a9e5e631
2617da580e7734bdc3ff9841490d6347
Reads all vertex triplets from a "face" line in a LightWaveOBJ file.
def read_verts(lwochunk): numverts = lwochunk.chunksize/12 return [struct.unpack(">fff", lwochunk.read(12)) for i in xrange(numverts)]
0
bfece7ebb2e384f0c799b072a5b1b856
f6e00e7de009fce323a4fc3dccacaf07
二维数组的线性存储
var tdArray_1 [3][3]int tdArray_1[0][0] = 0 tdArray_1[0][1] = 1 tdArray_1[0][2] = 2 tdArray_1[1][0] = 3 tdArray_1[2][1] = 4 tdArray_2 := [3][3]int{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}} fmt.Printf("tdArray_1:%v 数据类型:%T\n", tdArray_1, tdArray_1) fmt.Printf("tdArray_2:%v 数据类型:%T", tdArray_2, tdArray_2) }
0
01ad253b614e3e199e20b44a95ae3489
eedfb223096efbb69044ccefc95bc087
Return the stored String followed by the provided String. Put a space between the two Strings
char *append_strings(const char *a, const char *b) { size_t size = 0; size += strlen(a); size += strlen(b) + 2; char *newString = (char *)malloc(size); strcpy(newString, a); strcat(newString, " "); strcat(newString, b); return newString; }
1
f4d667a8d927cd906673a9a834ef8be6
fe6e05721792e948df0b66b832aac74b
Obtain location data and then use it to fetch current weather
if (!this.isProgressVisible) this.showProgressInfo(); this.Weather.getGeometry(this.appConstants.getGeocodingAPIURL() + formData.value.location + '.json?key=' + this.appConstants.getGeocodingAPIKey()). subscribe((data: any) => { this.geometry.longitude = data.results[0].position.lon; this....
1
328058011ff5291d8c285d696d598b98
222149221932ad2bb27ec6b8c58fa9d3
Gets query for [[Deals]].
class UserBusiness extends BaseUserBusiness public function getHiddenDealsQuery() { $q = DealTable::getInstance()->createQuery('Deal d') ->leftJoin('d.Venue v') ->where('v.business_id = ?', array($this['id'])) ->addWhere('d.state = ?', Deal::STATE_HIDDEN); return ...
1
1afffecacc0c6ba91adf6020c52c7b9a
b31198db296125f724ed7237c7c79eb9
[代金券]获取代金券数据
class Coupon extends Http public function queryCoupon($query) { try { $result = $this->httpGetContent($this->conf['host'], $this->conf['path']['queryCoupon'], $query, 'POST'); return $result; } catch (Exception $e) { throw $e; } }
1
59383ef98f823ced2d83e968d6958d43
fda56fa63fab150802b5b1156e7a22a5
获取楼层的房间列表
$paramList['id'] = intval($this->getPost('id')); $paramList['hotelid'] = intval($this->getHotelId()); $paramList['floor'] = trim($this->getPost('floor')); $status = $this->getPost('status'); $status !== 'all' && !is_null($status) ? $paramList['status'] = intval($status) : false; ...
1
3855bbf3fcb6209afb999e916940f6cc
21ce3de89f204c768f5fcffb641f0b74
根据日期获取龙虎榜机构交易明细
s_branches = get_branch_trading_of_day(day) def applyied_func(branch): return get_branch_trading_detail(branch,day) if not s_branches.empty: branch_tradings = s_branches.apply(applyied_func) return branch_tradings else: return None
1
5c238b1cce8b720eed7bc079541b5f56
c876a645c4e114f8d18d342a60758e9e
returns an array of peices on a the same face to be animated when that face spins
this.currAnimations.forEach(function(fAnim) { this.scene.pushMatrix(); this.scene.translate(this.shakeFactor -.84 + .14 * fAnim.column, .0545, .84 - .14 * fAnim.line); this.pieceDisplay(); this.scene.popMatrix(); }, this); }
0
ce660d76e3ee9ef80b4b079b402d0f5f
2ee62d7047d473c34eba90138b27cc7d
Changes the status of a machine.
class VendingMachine public function setMachineStatus($machineStatus): void { $this->machineStatus = $machineStatus; }
1
9372c20034b29a5e0063fbdaa7ba775d
aef50cf99ce663a85f0ea625c486102d
Deletes an existing RetosUsuarios model. If deletion is successful, the browser will be redirected to the 'index' page.
class RetosApi extends Controller public function destroy($id) { $reto= Retos::find($id); $reto->delete(); return Retos::all(); }
0
5dfef216fe856d1521fc29eac0747bbf
2f2354eca5a875053830365d7cdcfe68
函 数 名: RS232_CmdFlagGet 参 数: id: 指令标识号 返 回 值: FALSE/TRUE
{ SDO_data_t sdo_data; int ret = -1; memset(&sdo_data, 0 , sizeof(SDO_data_t)); sdo_data.nodeid = nodeid; sdo_data.subindex = channel; sdo_data.index = INDEX_GETREACH_FLAG; sdo_data.data.size = 1; sdo_data.data.data = 0; ret = motor_can_read(sdo_data); return ret; }
0
a28fcd50f9cafa55432cfc385f946fcd
88d1f39e16f8ceca4ae346b4ad66cde7
匿名函数,没有函数名字 这个函数可以捕获函数外面的变量
function varThrough(a) { return a; }
0
17f55c06f0302dc537c68162b527bdc3
8fe08805c70a7c48bafd8cecacee2a3c
전화번호 지역번호 리스트
public class ZipCodeSearchVer2 extends JFrame implements MouseListener, ItemListener, FocusListener, ActionListener public String[] getZdoList() { String zdos[] = null; StringBuilder sb = new StringBuilder(); sb.append("SELECT '전체' zdo FROM dual "); sb.append("UNION ALL "); sb.appe...
0
5d114818caab70fd522022f2da0366b2
165c67cf0f3f665886bb73fb660ec1d6
Fires enemies laser
public class EnemyShooter : MonoBehaviour void FireEnemyLaser() { GameObject playerShip = GameObject.Find ("PlayerShip"); if (playerShip != null) { GameObject laser = (GameObject)Instantiate (EnemyShooter1); laser.transform.position = transform.position; Vector2 direction = playerShip.transform.positio...
1
e277d5d95d0108e33dc111df2abcb4d3
6943529ad9d5e3d21c90d50265cf14e2
ブロックのY座標を表す変数を返す.
CU8 UseableFile::getBlockNumY( char mapKind ) { return m_UseableList[ 0 ]->getBlockNumY( mapKind ); }
1
da4325e2b0a6b43fa18a0be17b19af3e
e085305c91a64c8d23a6ccf8695bfcdc
Return whether the Impala under test was compiled with ASAN.
class ImpalaTestClusterProperties(object): def is_ubsan(self): return self.build_flavor == ImpalaBuildFlavors.UBSAN
0
db82f264384398ec65fef8fd744ef2de
e930e8d916e7ad168da30afe2524e01f
Método que irá realizar a recusa do agendamento
namespace PegaBandeira public partial class MenuInicial : Form private void btn_RecusConv_Click(object sender, EventArgs e) { if (this.foiConvidado) { tm_verJogOn.Stop(); serverUdp.RecusaConviteJogo(); gb_ConviteRecv.Visible = false; ...
1
dceaed1cd342df47699c66d2e6ec7008
532b02ac81884e804eb71789660a3873
デバッグ用に L*C*平面をプロット。
{ double TwoPi = 6.28318530717959; double R2D = 57.2957795130823; double axis[3],norm[3],binorm[3],sigma[3],C[3][3],ang,p[3]; double x,y,xold,yold; axis[0] = cos(lngc)*cos(latc); axis[1] = sin(lngc)*cos(latc); axis[2] = sin(latc); if (axis[2]*axis[2] < 0.5) { nor...
1
90037689ca3f85a42ec392776cdb2866
5a5375f9aabdaa25b639bdf64155d134
Test addition of steps to services and execution of services.
opts := &integration.ProgramTestOptions{ RequireService: true, Dir: filepath.Join("stack_reference", "nodejs"), Dependencies: []string{"@pulumi/pulumi"}, Quick: true, EditDirs: []integration.EditDir{ { Dir: "step1", Additive: true, }, { Dir: "step2", Additiv...
1
3affc8fb120e550c4f5c0fc7212af005
fc7510ba459e92dc60c3ff7af4432676
Creates a test SQLAlchemy database engine with a simple in-memory SQLite database.
database_pathname = os.path.join(database_path, DATABASE_FILENAME) connection_string = f"sqlite:///{database_pathname}" engine = create_engine(connection_string, echo=False) Base.metadata.create_all(engine) return engine
0
ffa1dfacc785f3e9208b16040a497545
7492655f171b08bca70995efc34ac8d5
Раскрывать приложение из трэя
{ fs.Close(); ShowWindow(FindWindow("Shell_TrayWnd", null), (int)SHOWWINDOW.SW_SHOW); ShowWindow(GetDlgItem(FindWindow("Shell_TrayWnd", null), 0x130), (int)SHOWWINDOW.SW_SHOW); this.Close(); }
1
d9ffac75dfeb2383edda935868f9a9b8
fefb2206efd95e7f02262c071996af4b
Reset the object into a fine (non-failed) state.
namespace yarpc void Controller::Reset() { error_text_ = ""; is_failed_ = false; }
1
6ccb5547ddc618e8afefee312a8eb461
22a718f36d40f33c75b4d327c235a9e9
Get the server image. This is an image similar to how the server appears in the in-game server browser. It contains the server icon, version, name, MOTD, player count, and online status.
{ return new Dictionary<string, Image> { { "server_archive.png", Resources.server_archive }, { "server_data.png", Resources.server_data }, { "server_event.png", Resources.server_event }, { "server_generator.png", Resources.s...
0
52fde32aa5818bf15b26d6d2b7a48d19
38f43162e88d00d9e502dcc4b99c2f4d
ノードを、リストのindexで指定して、取得します。 該当がなければヌルを返します。
export class NodeList public getNode(index: number): Node { return this.m_list[index]; }
0
f69b88cf065b61f6c64a1289523116c0
b20f3d6a6c559139f5cbe95b98f8342d
Function embedded into each page for session tracking purposes, creates visit instance for each new session
{ $ip = request()->getClientIp(); if ($this->visitIsUnique($event->model, $ip)) { $visit_data = [ 'visitable_type' => get_class($event->model), 'visitable_id' => $event->model->id, 'ip' => $ip, 'agent' => request()->header('user_agent'), 'referer' => $this->validU...
1
86af91e057611a5cb0aada2879594d62
7718bac698023b4194e5a82dcb5bb7c9
prüft ob am Zielgleis die FS aufgelöst werden kann
if (source.CompareTag ("Player")) { FixedJoint fx; if (target.GetType () == typeof(AtticLockController)) { if (fx = source.GetComponent<FixedJoint> ()) return fx.connectedBody.gameObject.GetComponent<AtticKeyController> () != null; return false; } if (target.GetType () == typeof(MainDoorContr...
0
079aa19ddc4d4c4980ab853401f30943
8111eb69f615240a55e13bc637ce32b1
获取扭蛋最小值配置
@Table(name = "t_vote") public class Vote extends BaseModel implements BaseOpt{ public java.lang.Integer getVoteMin() { return voteMin; }
1
d9d7f32c52b340ae01b960c52c2ef22f
309bcfc7b2f1925f2511842ebbd8249a
Checks retrieving a list of no coupons.
class ListApiTest extends \PHPUnit_Framework_TestCase public function testGetCouponList() { }
0
014b39b08247f340ebfef0753398413c
0d15a321e57136ee144b895b915384f8
Retrieve SortDirection for field: AltFname (SERVER_LOOKUP.alt_fname)
public class SecurityRoleObjectFilter extends BaseFilter implements Serializable public boolean getFrvUpdateCountSortDirection () { return this.FrvUpdateCountSortAscending; }
0
c5c3fffe4be030ed585ffa7c3960ef8c
b9f161652d9ce1e874d12c02f2bc1766
An auxiliary function to get the RPMB Cid
{ FMC->ISPCMD = FMC_ISPCMD_READ_CID; FMC->ISPADR = 0; FMC->ISPTRG = FMC_ISPTRG_ISPGO; while (FMC->ISPTRG & FMC_ISPTRG_ISPGO) ; if (FMC->ISPCON & FMC_ISPSTA_ISPFF) { FMC->ISPCON = FMC_ISPSTA_ISPFF; return E_FMC_ISP_FAIL; } *u32data = FMC->ISPDAT; return E_FMC_OK; }
1
fa128c5667162bb25169e271f9141fac
cd0dad64d59af7bb6268f34325aedc91
Wrapper for call to the shipyard db to get validations associated with an action
export class BackendManagerService updateValidationAction(uuidStr: string, req: ValidationRequestDetails) { return this.http.post( BACKEND_BASE_URL + '/updateValidationAction', JSON.stringify(req), {params: new HttpParams().set('uuidStr', uuidStr)}); }
0
f8f09303116776646aa628d2f290b5c7
8f8b4e517ba39ff0b71411cd8aaaf0b5
暴力解,生成所有数字对差值绝对值,排序,拿出第k个,k从1开始
let map = new Map<number, number>(); let max = 0; nums.forEach(v=>{ let num = (map.get(v) || 0) + 1; map.set(v, num ); max = Math.max(num, max); }); let values:number[][] = new Array(max); for(let [k,v] of map.entries()){ if(values[v]){ values[v].push(...
0
11c15feb128edf55bec8f0f65c484c15
cb42de182264cc548c79745d17d0d5b4
Get the code collab org.
class EmpRecapPenibilite public function getCodeCollab(): ?string { return $this->codeCollab; }
1
f2c2391cbaaaccc3dc97bc439ab6c939
a27cb40744474209fb820d082dca9892
Here is where you can access the header and use it to set self._data for the subsequent graphql calls in this request.
_headers = { 'Content-Type': 'application/json', 'Accept': 'application/json' } self.headers = _headers
0
a91bc3b9f2882523c11785df2fe14139
fe61d5e651d9dce07f36e32b5a30c95b
Line delimiter for parsing CSV. <p> Defaults to: \n
public class CSVFormatOptions public char getRowDelimiter() { return rowDelimiter; }
1
62348a260aa232171965a4093613df7f
fb51e6f7902113c07e9894761ce942b7
速度等于 周长 * 转速
double rotationsPerSec = rpm / 60.0; return rotationsPerSec * 2 * Math.PI; }
0
2c3dd6716b540aa275796a635e7c45da
bcf255c872f685849b0ab94c43cbcedd
统一异步支付通知//同一ip地址重复请求过滤
{ $BASE_URL = $_SERVER['DOCUMENT_ROOT']; require $BASE_URL.'/api/Common/Payment/alipaysdk/aop/AopClient.php'; $aop = new \AopClient; $aop->alipayrsaPublicKey = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgMXDCMcHEmwerWmj18LF9mw3umfKhAXwnQaR2NlW84tMTNwqmOzgB9A37s+UCPId...
0
2aeebdbcfa90f0925cd8533c49bf5db0
1b5bef1d2af397b59ce9bea57daf4787
提交拼团失败消息进入队列
{ if ($this->container->getParameter('kernel.environment') != 'test') { $now = new \DateTime(); echo "Time::"; echo $now->format('Y-m-d H:i:s'); echo "::PUSH TO FAILED QUEUE\n"; echo json_encode($queueMsg)."\n"; } $redis = $this->ge...
1
8390c8b59dc33172a08aa549bad026e1
de0e29b9c45a5ad2aead7a856ab2d3ed
Returns the meta object for the attribute '{@link org.sheepy.lily.vulkan.model.process.PipelineBarrier#getDstStage <em>Dst Stage</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getTaskPkg_Stage();
0
449d558f5ef5d7cdb93262311067a285
056a811e6d1d791a49c6b93babab4a3f
获取充电站数
$.ajax({ url:"/statistic/gJStationViewAjax/getStationList.json", type:"post", dataType:"json", data:{}, success:function(res){ var option='<option value="0">切换充电站</option>'; for(var i=0;i<res.length;i++){ option+='<option value="'+res[i].id+'">'+res[i].name+'</option>'; } ...
0
d224e5a3a805e82f0a84f4dcfaadbfed
473484401a3a21894693be2da1d690de
! \brief Gets the number of wait states of flash read accesses.
uint32_t efc_get_wait_state(Efc *p_efc) { return ((p_efc->EEFC_FMR & EEFC_FMR_FWS_Msk) >> EEFC_FMR_FWS_Pos); }
1
e79194600e6238b3cb4de236a9187e14
c394113d4585e8464f8c809b0977634e
Gets all web specific modules that were autoplugged.
$module_dirs = array_keys(iterator_to_array(new \FilesystemIterator(__DIR__ . '/../../../modules/custom/'))); $module_names = array_map(function ($path) { return str_replace(__DIR__ . '/../../../modules/custom/', '', $path); }, $module_dirs); $modules = []; foreach ($module_names as $module) {...
0
399b59f3600be0f6bbf29827b773567e
5134e29872384c4a746f0287f87427b9
触摸事件,判断单击还是双击
class DoubleClickListener( /** * 自定义回调接口 */ private val mCallback: DoubleClickCallback?) : View.OnTouchListener override fun onTouch(v: View, event: MotionEvent): Boolean { if (MotionEvent.ACTION_DOWN == event.action) { count++ if (1 == count) { ...
1
5f209ef951628c516528fdae2f6d53d0
feb621dd756ee5b1d1f223a61f873afa
Get first block data size on which the ECC is computed.
{ switch (algorithm) { case CIPHER_CAST5: return CAST_BLOCK; case CIPHER_BLOWFISH: return BF_BLOCK; case CIPHER_AES128: case CIPHER_AES192: case CIPHER_AES256: ...
0