query_id
string
corpus_id
string
query
string
code
string
label
int64
61c2152162b3e067a2957f5bae163e67
4fffdab7d8e558a49836a62a3a0ff50b
返回Hashtable对象的String表达方式,一系列以括号和逗号,空格分隔的Entry,如{key1=value1, key2=value2}
{ string res = string.Empty; int count = 0; foreach(var keyVal in this.ht.Keys) { res += keyVal; if(count != this.ht.Count - 1) { res += ","; } count += 1; ...
0
08d42e544b0c7fe151140dd44bedf5f5
f63df75d5820c31bb3ca5ce41c416395
Deletes the specified MailboxUsageStorage.
{ var apiVersion = @"2023-03-01"; using( NoSynchronizationContext ) { var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?<subscriptionId>[^/]+)/resourceGroups/(?<resourceGroupName>[^/]+)/providers/Microsoft.StorageMover/storageMov...
0
770110cd312940cde4d89c54aced73ba
bab3cf1af3ec222750356147013a32f8
Load cron actions.
class WRC_Cron static function init() { add_action( 'wp', array( get_called_class(), 'schedule_cron' ) ); add_action( 'wp_rest_cache_cron', array( get_called_class(), 'check_cache_for_updates' ) ); add_action( 'wp_rest_cache_expired_cron', array( get_called_class(), 'check_expired_cache' ) ); add_filter( 'cron_...
1
cd4422b0e9713bf118f48fdb606bbdd3
a5a45529d311d7adc3c00bbd3617f4b0
设置 交易ID 默认值
@Table(name = "t_trade_log") public class TTradeLog public void setTransactionId(String transactionId) { this.transactionId = transactionId; }
0
709e5fa5462840def4f3ede9777283b2
74d1f87d0860b20360793ff7cc63fc12
Set the id of the only HTML element in the web page that should be used to extract tables from
class PageManager static get targetElementID() { return (PageManager.__private__ && PageManager.__private__.targetElementID) || 'page'; }
0
56fab8f5cabf873f48f9e28f805bae7c
431a19993f5c534b4d05c929ce2fd70c
## FUNCTION: ## SPECIFICATION: Writing the pocket information file to the output directory ## PARAMETRES: ## RETURN: void
bool output_writer::write_cutOutputFile(const structs::data& data) { return write_output_file(data.nextData.probData,data.nextData.cutOutFile,data.nextData.maxEntries); }
0
0db4cd7f04ff64b9dc18fe8eb904f80d
919ee467dec45ae626817d2b9d2046e9
Действие отображения списка регионов
if ($this->request->is('post')) { $regions = $this->Region->find('all', array('order' => array('name' => 'ASC'))); $this->set('regions', $regions); } else { $this->redirect(array('controller' => 'Index', 'action' => 'index')); } }
1
1f4e13aa0f91d809587e63f6c441ec82
f0f421bed32f3655bf146ce8281381c8
{GTK2}.gtk_text_buffer_get_end_iter
int clip_GTK_TEXTBUFFERGETSELECTIONBOUNDS(ClipMachine * cm) { C_object *cbuffer = _fetch_co_arg(cm); ClipVar *cviter = _clip_par(cm, 2); ClipVar *cviter2 = _clip_par(cm, 3); gboolean ret ; C_object *citer ; CHECKARG(1,MAP_t); CHECKCOBJ(cbuffer, GTK_IS_TEXT_BUFFER(cbuffer->object)); ...
0
c6c138a8ad663c27d0f441cc698a349f
80424a21c55170cdad8dae39e5dcb14b
https://gist.github.com/bsudekum/93da2c80cf439aee4c08
function copyTextToClipboard(text) { var textArea = document.createElement("textarea"); textArea.style.position = 'fixed'; textArea.style.top = 0; textArea.style.left = 0; textArea.style.width = '2em'; textArea.style.height = '2em'; textArea.style.padding = 0; ...
1
1196b9768b0a845a865cfba6f064d9fa
c0f25e825ef35ce1dedc9c8e3f1ebeed
adds side button event listener logic for img switch animation
function bindEvents() { $mainMenuItems.children('.images').click(function(){ checkAndAnimate($(this).parent().index()); }); $buttonItems.click(function(event){ checkAndAnimate($(this).index()); }); }
1
84066aa2f73e79b69e46000e92495b6d
ab2c0f9483bd1d87faa43e889c9557ca
Save language map object for activity definition name or description
class Main extends \SoapClient public function LanguageSaveStrings(LanguageSaveStrings $parameters) { return $this->__soapCall('LanguageSaveStrings', array($parameters)); }
1
3e1456395073a8bbe5e6f8556f301740
939ee778910237e9eaa3c7b43a3d3a43
Calculates and returns the zero point energy for the system.
class QCResult(object): def ZPVE(self): return self.E_vib(0 * pq.K)
1
ae87a8c0b814f937e26a727c9a0115a5
14287a6bfe5dce49defbec8784d28739
when task over, delete its record in array
void removeFinishedTasks(Task *taskList[10], int *taskCount) { int taskNum = 0; for (taskNum=0;taskNum<*taskCount;taskNum++) { if (taskList[taskNum]->runCount >= taskList[taskNum]->repeatCount && taskList[taskNum]->repeatCount!=-1) { int oldTaskNum; for (oldTaskNum=taskNum;oldTaskNum<*taskCount-1;oldTaskN...
1
76f900388e368cb0fa775bc72a69a523
38944e28304e79fcec1d61af40c5bdea
Metodo que sirve para indicar que una caja en la que se encuentra un cliente está siendo atendida
{ pedidosParaEmpezar.Add(pedidoNuevo); clienteEnCaja[numCaja] = false; cajaAtendida[numCaja] = false; cajaControlada[numCaja] = false; }
0
695ef20cef4f508a6cc2ec1919db56d1
df7574e605aef2f5e2e0be1ef484a739
初始化 设置上传文件的临时目录与上传文件的最大限制
$this->_upload_path = './'; $this->_prefix = ''; $this->_max_size = 1 * 1024 * 1024; $this->_ext_list = array('.jpg','.gif','.png','.jpeg'); $this->_setMIMEList($this->_ext_list); }
1
66cb40c2a0cdead51a7ce48b78947f6f
f1f0f7746eac4783ab1ce565ca2b1aa3
Events supported by this component.
class sfp_talosintel(SpiderFootPlugin): def watchedEvents(self): return [ "IP_ADDRESS", "AFFILIATE_IPADDR", "NETBLOCK_MEMBER", "NETBLOCK_OWNER" ]
1
7394a44df2419c3530eb52b492845d2e
f5eb42cab255e5f3e5e318ef42d6fe47
获取设定客户端的refresh_token的有效时间值(单位:秒),可选, 若不设定值则使用默认的有效时间值(60 * 60 * 24 * 30, 30天).
class GrantPassword extends aGrant function getTtlRefreshToken() { if (!$this->ttlRefreshToken) $this->setTtlRefreshToken(new \DateInterval('P1M')); return $this->ttlRefreshToken; }
0
712f8a12c1262998a5a31ae83eddf4c7
5457f7d5e17b7b0550cb730643020a8e
Triggered when a character is added to the editor.
table.insert(self.savedCharacters, self.currentCharacter) self.startPosX = self.startPosX + 40 self.charText[self.charTextCount] = string:Create({x = self.startPosX, y = 300}, self.currentCharacter) end
1
2f444aa9e8fce7f7d5e845b899513f42
3e8362913d35db1655371323e967eb2c
Notifies the game servers of a punishment update.
BadBungee badBungee = BadBungee.getInstance(); final Map<String, BadPlayer> players = new HashMap<>(); BadPlayer.getPlayers().forEach(player -> players.put(player.getName(), player)); bungeeObject.refresh(players); BungeeManager.getInstance().add(bungeeObject); synchronized (syncThread) { Gson gson = bad...
1
64ca8ce6acfe9588145c124c9a914c66
126dd8be1063f1442e4a45d26aa877ea
add comparison indicator to allow custom sorting of items
public void addComparator(Comparator<? extends T> comparator, boolean ascending) { this.comparators.add(new InvertibleComparator(comparator, ascending)); }
1
2f7800f3f2694b3a5265faf1c0a0cec3
69017c91f075c28b5bf27353993a5a10
Get the first level keys in this registry.
public List keys(String region) throws CacheException { return CacheManager.keys(LEVEL_1, region); }
1
bf2b5fb9c0ddef373bd1e94a8adc3e07
2709640aa35ed89ab9397894ac3885a6
Sets the IsPlaying property. This dependency property indicates whether the storyboard is playing.
namespace TextReader.Behaviors public class PlayButtonBehavior : Behavior<Grid> public static async void IsPlayingPropertyChanged(object sender, object oldValue, object newValue) { PlayButtonBehavior playButtonBehavior = sender as PlayButtonBehavior; await playButtonBehavior?.ShowPla...
0
f84e33568f6a4c140e29277351fb4d23
3021358bba4ef282a813ac361bc10e2d
Sends a list of RGB data over the serial interface. Shows a whole animation of one picture.
class SevenBySeven: def show(self, img): def _gamma(val): val = val/0xFF val = val**2 return int(val*0xFF) if isinstance(img, str): img = load(img) if img.mode is not 'RGB': img = img.convert('RGB') packet = bytes(10) + bytes(3)...
1
53d1d873666c148c17032caff4b4b97b
d2b400ff91f9a6e6c0ceba86b931a7f0
GET: RiskItem
namespace BackEnd.Controllers public class RiskFactorsController : Controller public ActionResult Index() { var riskFactors = db.RiskFactors.Include(r => r.RiskFactorType); return View(riskFactors.ToList()); }
0
793b8e99fdeebcdc7cee2fea7a70aaa8
a2a6cf42a6f8f80466f8b9d877115b07
Makes sure that directories are only searched once.
{ $dir = rtrim($dir, DIRECTORY_SEPARATOR); if (in_array($dir, self::$directories, true)) { return; } self::$directories[] = $dir; foreach (self::$loaded as $locale => $_) { self::loadFile($dir, $locale); } }
1
61d04f61061de6a4f870ed2f140f37fd
e486e5e2c8a211060d969900b039f173
Name: create_full_process
int create_process(uint32_t code_address) { uint32_t *stackptr = kmalloc(sizeof(1024)*1024); uint32_t *st = stackptr + 1024; st -=1; *st = 0; st -=1; *st = 16; st -=1; *st = code_address; st -=1; *st = dispatch_leave; st -=1; *st = 0; st -=1; *st = 0; st -=...
0
bff45342fa29118eac1f2acc28a7eda9
f2043aac7807ae3fbc93fc7631301eba
Set on-air Power Amplifier gain
{ gain &= 0X3F; wm8978_write_reg(WM8978_REG_LPGA,gain); wm8978_write_reg(WM8978_REG_RPGA,gain | 1 << 8); }
1
f91946303c4f087c02910d0bf745317a
f62bec38dbcd90c7c0341da7483272a5
Check result of form submission for cross scripting against value stored in current persisted session
class AppController extends Controller function checkCSRF() { global $csrf_old_session_id; if ($_SERVER['REQUEST_METHOD'] != 'POST') return; if (isset($this->exceptionCSRF)) { foreach ($this->exceptionCSRF as $exception) { if (stristr($_SERVER['REQUEST_URI'], $excepti...
1
7d58f914aad030ba5cd0951aa0b71dda
1ad29d8df409b217b2f522444fa91e02
Display a listing of the Permissions for Master Records.
{ $permissions = Permission::orderBy('id', 'DESC')->paginate(10); return view('permissions.index', compact('permissions')) ->with('i', ($request->input('page', 1) - 1) * 10); }
1
94fca98944c9801bf561c58899722126
fe6a7dfe1d226bacdced0febc268b469
Sets the character's deck screen as necessary.
{ if (PlayerController.LocalPlayer == null) { return; } var playerId = PlayerController.LocalPlayer.PlayerId; this.TargetPlayerState = this.IsOnBottom ? PlayerController.LocalPlayer.MyPlayerState : PlayerController.LocalPlayer.EnemyPlay...
1
00dbfa156114c0128fe049f6081bfa91
f32ce2c4894c19ac13b7b7b03dcef49d
funkcija koja pronalazi najvecu vrednost u nizu celih brojeva
{ int max = *(arr); for (int i = 0; i < n; i++) { if (*(arr + i) > max) { max = *(arr + i); } } return max; }
1
275592c5684948beb90fa26ecf0ef93a
3dbd1916ccab4537d0026857f0970e8c
Creates country properties to be used by the tests.
class AllRegionTest extends \PHPUnit\Framework\TestCase private function generateCountry($countryLabel, $countryValue) { return [ 'label' => $countryLabel, 'value' => $countryValue ]; }
1
0c85c7173eb72964003f5cca01ec6d18
303bc5f47803ca0d80f789b778a3384a
Wagen am Anfang einfügen
public class AddCar : MonoBehaviour void Start(){ var pos = new Vector3(10, 0, 0); Instantiate(drivableCars[PlayerPrefs.GetInt("selectedCar")], pos, transform.rotation); }
1
b9998b8df9bd83fcfc80351ea083c8bf
6d79587759a9752828abeaf5cbb69ae8
Measure the overhead for each redis hash that is added to the server.
size_t len = 0; if (o->encoding == OBJ_ENCODING_ZIPLIST) { unsigned char *vstr = NULL; unsigned int vlen = UINT_MAX; long long vll = LLONG_MAX; if (hashTypeGetFromZiplist(o, field, &vstr, &vlen, &vll) == 0) len = vstr ? vlen : sdigits10(vll); } else if (o->encodin...
0
450722d9db2819ea9d3b50bf5d02dcaf
7dfddbe72e6721ec09e0de940afed723
链式存储入队
Status EnQueue(linkQueue *Q, ElemType e) { QueuePtr q = (QueuePtr) malloc(sizeof(QNode)); if (!q) { exit(OVERFLOW); } q->data = e; q->next = NULL; Q->rear->next = q; Q->rear = q; return OK; }
1
767fe5c2d84e27c21823a0937e206007
0a893f188a2848be846531b40bd20778
Работаем по ссылке. Приводит две дроби к одинаковому знаменателю.
if(left.Denominator==right.Denominator) { return (left, right); } var gcd = BigUInteger.GreatestCommonDivisor(left.Denominator,right.Denominator); var denominator = left.Denominator/gcd*right.Denominator; var sign = left.Sign&&right.Sign; return (new Rational(sign ? false : left.Sign,right.Denomin...
1
8cd1c07d2a013692a671f324dc119dbb
ca0da6589f9d93bff03969b4260a1a2b
Returns the meta object for class '{@link de.dc.spring.mm.OneToOne <em>One To One</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
public java.lang.String getIsOneOneCmp();
0
d19dd02b1ad5dcb3ce6a6bac93709d73
8f47f9f5aac7ba2e5e34af0b86f828e8
Метод возвращает объект действия по ключу.
public class ActionTestModule extends HTMLOutputModule public ActionMessage getActionMessageByKey(String messageKey) { return (ActionMessage)getActionMessageByKey(messageKey, getActionMessages()); }
1
6ca6705caaee45ca0314861162294700
040b522aa41fb41efd9af3bc9d484b71
Choose a random sequence of points on the surface of a sphere of radius "distance"
def randomSpherePoints(n): r = 1 phi = np.random.uniform(0,2*math.pi,size=n) costheta = np.random.uniform(-1,1,size=n) theta = np.arccos( costheta ) x = r * np.sin( theta) * np.cos( phi ) y = r * np.sin( theta) * np.sin( phi ) z = r * np.cos( theta ) return (x,y,z)
1
5ce9b8b3b552611f5ebe7d460106de11
7be411106774110d20b061290925d779
<p> Gets summary information about playback key pairs. </p> Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation. Documentation</a>
java.util.concurrent.Future<ListKeyGroupsResult> listKeyGroupsAsync(ListKeyGroupsRequest listKeyGroupsRequest, com.amazonaws.handlers.AsyncHandler<ListKeyGroupsRequest, ListKeyGroupsResult> asyncHandler);
1
90cdc258c59e19c3fec9d21d510b0d5f
3fce528cc6ab9b48b25f7f3d949a1e7e
Get the processor family via cpuid instruction intrinsic
{ #if defined(_MSC_VER) __cpuidex(regs, eax, ecx); #elif defined(__GNUC__) __cpuid_count(eax, ecx, regs[0], regs[1], regs[2], regs[3]); #else regs[0] = 0; regs[1] = 0; regs[2] = 0; regs[3] = 0; #endif }
1
230dadd9bca3be800611589aca6e45d8
d72d8f9a5097b29b70bb2b4085398e86
Get send to other recipient list
class RP_WCEC_Email extends RP_WCEC_Post_Object public function get_send_to_other() { return (isset($this->send_to_other) && $this->send_to_other); }
0
9e59007d026d703fe81bf9559f45086f
654b54842a86b99d1f8a11858256ee80
自动选用版本编码字符串 目前 仅实现了字节流模式的编码
class Format public function autoEncoding($data, $to = 'utf-8') { return \Yuri2::autoEncoding($data, $to); }
1
875b0af762e667bb19738a2bf94f3894
cf4f6181969a8573ad682beb4fc4acef
根据总返现金额获取客户端多返金额(单位元)
public float getReceivingAmount(Integer remittance, Float rate) { return remittance * rate; }
0
6bbc78a8aded69a487ca87a1ad5828be
e743473ea21d86808351474aa6db1567
Returns the condition key for current provider.
{ WCUpdater currentUpdater = WCUpdater.getInstance(); FeatureDescriptor providerVersion = providerVersion(); if (providerVersion == null) { return Condition.UNAVAILABLE; } else { return currentUpdater.getFileConditionFor( name + "_" + providerVersion().cur...
1
44ec612cc1d4eb685e0be3156ac154b6
83de5907d86cf6bbd413b44a1684b4ba
添加钱的标识(¥)
function addPrefixForAmount(amount) { return amount || amount === 0 ? `¥ ${amount}` : amount }
1
9c98ebc7ea9c189c94f6ff82d3d56e7d
dd61553cecf8871eeaf220b934845268
Updates the lock table when a page is discarded.
count := 0 if (parent.flags & HAMMER_NODE_LOCK_UPDATED) != 0 { count++ hammer_modify_node_all(cursor.trans, parent.node) *parent.node.ondisk = *parent.copy hammer_modify_node_done(parent.node) if (parent.copy._type == HAMMER_BTREE_TYPE_DELETED) { hammer_flush_node(parent.node, 0) hammer_delete_node(cu...
0
f8606b6296d9e0ed9d877e8d397a87ee
4aa272c30ea9951d0deb045195bc796c
指定されたコードポイントが半角 ASCII か判定します。
fun isNarrowAscii(target: Char): Boolean { KanariaLoader.checkOrThrow() return isNarrowAsciiNative(target) }
1
1f99cf57a02295912215826f49e5f4d1
2cbe0bf7a38d3d7ddef05ff2066648b6
{@code POST /proprietaire-actions} : Create a new proprietaireAction.
class VhloPropietarioController extends Controller public function newAction(Request $request) { $helpers = $this->get("app.helpers"); $hash = $request->get("authorization", null); $authCheck = $helpers->authCheck($hash); if ($authCheck == true) { $json = $request->get("d...
1
66ea943ab767a618252e3fe9cc9f72e4
d3871c8f907bf79cd476e08ad0ecbff1
get the number of controllers of a particular type
{ int n = 0; int NSTEPS = Steps(); for (int i = 0; i<NSTEPS; ++i) { FSStep* step = GetStep(i); int NC = step->Interfaces(); for (int j = 0; j<NC; ++j) { FSInterface* pi = step->Interface(j); if (pi->Type() == type) n++; } } return n; }
1
f8b2c3201dc180c8267ab40505a79e49
c1bc9bb8fd3dd1c407a2b4ba08cece78
รายงานการจ่ายยานอกเวลา
{ ini_set('memory_limit', '-1'); $result = []; $options['cust_id'] = (!$this->Abettor->isAdmin()) ? auth()->user()->parent_id : Auth::id(); $column_settings = !empty($options['column_settings']) ? json_decode($options['column_settings'],1) : []; $from_date = date('Y-m-d',strt...
0
cb0ca1335b64bd35b5693c250978e474
7e5f487075e323a8d2b7e47d85e756b8
Proxy passthrough method to the IntegerConstraint to get the minimumn value below which warnings will be issued.
class BaseField def min self.class.min end
0
92b5045882bbdf844fc4c16fdb3a5f1b
f7fdc43e3b1321d06a8e0185ea47653c
Get the Narrative ID.
{ int err; ni_t *ni; #ifndef NO_ARG_VALIDATION err = gbl_get(); if (err) goto err0; err = to_ni(MYGBL_ ni_handle, &ni); if (err) goto err1; if (!ni) { err = PTL_ARG_INVALID; goto err1; } #else ni = to_obj(MYGBL_ POOL_ANY, ni_handle); #endif *id_p =...
1
6cb7554c816307488f2dc160fe88097b
b727288909e9340302cb25626b28a129
设置ToolBar低于状态栏
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) { return this; } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activity.getWindow().setStatusBarColor(Color.TRANSPARENT); activity.getWindow().getDecorView().setSystemUiVisibility(View.SYST...
1
caadc9b668bed43cfa1fc8e63a841743
2dfba56f5084a1d8825c7601e8eff887
This method used to convert selected font object to correct format string
{ StringBuilder resultText = new StringBuilder(); StringBuilder hexContent = new StringBuilder(); resultText.Append(_objectID.ToString() + " 0 obj" + Convert.ToChar(13) + Convert.ToChar(10)); resultText.Append("<<" + Convert.ToChar(13) + Convert.ToChar(10)); resultText.Append("/Filter...
1
b5dc4cddc764a45fbc25c7b3eec8dab9
301928b1ffeb37da98e6e2e6aaa0ea4c
Returns the value of the '<em><b>Coord Bx</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Coord Bx</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
B getB();
0
8bbff84ad1be6723f9e5beaed65e432d
ede9445698cd35cc4cf5e3b38def55cc
迷路を再帰的に探索する
list<int> SolveMaze_Recursive(const vector<list<int>>& maze, int current_point, int finish, unordered_set<int>& visited) { list<int> subPath, path; cout << "Recursive " << current_point << endl; if (current_point == finish) { path.push_back(current_point); return path; } list<int...
1
afba89c2ca79ef4285823fa65b6076a8
dabe0a96549e0eb1dbd3069da9b1de80
从原始数据中得到字典信息,比如将字符转换为索引,得到词典,将一些属性转换, 最后写入待使用的文件,分为训练集和测试集
with open(filepath + '/train_data.txt', 'r', encoding='utf-8') as train_data, \ open(filepath+'/test_data.txt','r',encoding='utf-8') as test_data,\ open(filepath+'/test_index.txt','w+',encoding='utf-8') as test_index,\ open(filepath + '/word2index.txt', 'w+', enco...
1
9f9bbc31753e9b5d4609fdee90972f4e
73ffa54d95950a2cb47a0ca14078a1e7
Saves the player's weapon preferences.
public class GameManagerScript : MonoBehaviour public void SavePlayerPrefs ( ) { PlayerPrefs.SetInt ( "NewGame", NewGame ? 1 : 0 ); PlayerPrefs.SetString ( "DiseaseName", DiseaseName ); for ( int i = 0; i < Sectors.Length; i++ ) { PlayerPrefs.SetString ( "Sector" + i + "D...
0
eb0ac1d279182c872fc8a4b52cc1cf08
6fb3db564c47e7fa8b2916f4da704580
Returns a new {@link CUDA_MEMSET_NODE_PARAMS.Buffer} instance allocated on the specified {@link MemoryStack}.
{ CUResult res = DriverAPINativeMethods.GraphManagment.cuGraphMemsetNodeGetParams(this, ref nodeParams); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphMemsetNodeGetParams", res)); if (res != CUResult.Success) throw new CudaException(res); }
0
9b7d6d65d7f1a5cedfad0d142a0382a4
68903f677a9c55a2db65aa74101527af
根据userId和项目Id修改总金额和剩余金额
public int updateTotalInterest(@Param("userId")Long userId,@Param("changeMoney")double changeMoney,@Param("version")Integer version);
0
ab52349aadb68e92e49fa92d9e9db80d
1e4aca9ccb25f79dd38f5ebef46ae42d
显示选中幻化卡牌信息
self.realIndex=real_index; local cardData=self.view.cardList[real_index+1].cardData; self.frame:SetSpriteName(SpriteDefine:GetCardTopFrameByQuality(cardData.quality)); self.icon:SetSpriteName(cardData.icon); self.crystalBg.transform.gameObject:SetActive(cardData.type==2) self.crystalBg:SetSprite...
1
6fdb5e1951e37e1300d1a910890e28ed
b27091e6b0be31c478df58c224ed30eb
Takes a games sequence and constructs a players feature sequence
x, y = self.inverse_features_parsing() patients = [] for row in range(self.true_seq_len): patients.append(PatientData(sequence_x=copy.deepcopy(x[:row + 1]), sequence_y=copy.deepcopy(y[:row + 1]))) return patients
0
ba9e9f98c5a5e4d2fd0d00b6d9827ea2
ec16a60dcc3f4c4e15dd0fe0d63de38e
Similar to [call] but `true` if the function succeded and `false` if it failed.
match option { Some(v) => VmResult::Ok(vm_try!(then.call::<_, _>((v,)))), None => VmResult::Ok(None), } }
0
3548ca689754aa40ef71be96792840e9
97d2a3dd57a70a3d471b65a9b7017d0f
根据任务id 和图片id 查询当前问题
public List<IrpAttached> findQuestionPic(Long _questionid);
0
ec35c48487225ce1aea111f6a5103250
5dfb3d0ddee29110bba7b60a2bc15ad3
获取所有的已发布决策表
public List<WfDecision> findAllDecisionByActivity(final WfActivity wfActivity) { return wfDecisionDAO.getListByDtFieldName(WfDecisionFields.WFA_ID, wfActivity.getWfaId(), Integer.MAX_VALUE); }
0
5aa0040bf6000055b344639d4a539178
e7d29cf613702b2034ed895f22943d48
베스트 답변
POST question = (POST) hash_get(id,tad_getPostsByHash(com)); if (post_getType(question)) return (0); LONG_USER user; long score = 0; long bestAnswer = 0; long result = 0; int max = post_getNumAnswers(question); for (int i = 0; i < max; i++) { POST p = post_getNAnswer(question,i); user = (LONG_US...
1
6a9aed434b25f3f4afe867a223e6faf4
b91b4cc774d81d5a3f20338b751dc107
Returns name without custom label
class Customization extends \Rialto\Manufacturing\Customization\Customization implements \Doctrine\ORM\Proxy\Proxy public function getName() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []); return parent::getName(); }
0
a68b55271b306fb5c5a32db8596e28e1
54ea97fd8de39d5610498be3214e4e9b
Returns the ground distance in metres between two `LocationGlobal` or `LocationGlobalRelative` objects. This method is an approximation, and will not be accurate over large distances and close to the earth's poles. It comes from the ArduPilot test code: https://github.com/diydrones/ardupilot/blob/master/Tools/autotest/...
R = body.equatorial_radius dLat = math.radians(target.lat - location.lat) dLon = math.radians(target.lon - location.lon) lat1 = math.radians(location.lat) lat2 = math.radians(target.lat) a = math.sin(dLat / 2) ** 2 + math.cos(lat1) * math.cos(lat2) * math.sin(dLon / 2) ** 2 c = 2 * math.asin...
1
fac82dffbc67849c5dad2554642df728
cf46559fb05b36255743f91b375e69a2
查询对应项目的总线路条数
@Component @Transactional @Monitored public class RunPlanLkService public int selectMTrainLineCount(String MTrainLineId) { return mTrainLineDao.selectMTrainLineCount(MTrainLineId); }
1
16cd1db10f0f5a1b9dd1a6f1d86eafbd
226ca802201e19a7569b36653034b7c7
给定一棵二叉搜索树,请找出其中第k大的节点。 二叉搜索树从大到小遍历即 右 根 左
var rs int var inorder func(root *TreeNode) inorder = func(root *TreeNode) { if root == nil { return } inorder(root.Right) k-- if k == 0 { rs = root.Val return } inorder(root.Left) } inorder(root) return rs }
1
8298ff05931c7e2c90fb003b2cda320b
7e96e65906dc23999023047ec2690f7b
查询usrInfo表中的信息
fun getUserInfo(context: Context) = DataBase.getInstance(context).userDao().queryUser()
1
7e113009d0321af8ed4c3a7ea0c2e63b
45e6dd06ee0f0c2ca469d3ad948e6e71
Write an <see cref="System.Int32"/> to the given byte array starting from the specified offset, and composed as the Little-endian format
namespace SkyEditor.Core.IO public static class IWriteOnlyBinaryDataAccessorExtensions public static async Task WriteInt32Async(this IWriteOnlyBinaryDataAccessor accessor, long offset, Int32 value) { await accessor.WriteAsync(offset, 4, BitConverter.GetBytes(value)); }
0
6dfddea7eb27016c9c4e4f85296a38b3
600c3634df36a4b0247d8d482b3b018c
クレジットカード名義取得メソッド
public class InfoDTO public String getCreditName() { return CreditName; }
1
b495f7363b07f8c9181a02ee18448192
ada42f467ae1f539a7cd7061518b580e
Function for calculate mean pixel intensity for all frames in a video
frame = frames[0] prev_frame = frame mean_image = np.zeros(shape=frame.shape, dtype=np.float32) N = len(frames) for frame in frames: if not prev_frame.shape == frame.shape: raise ValueError("Given frames does not have same shape. {} != {}".format( prev_frame.shape...
1
a3e96c8e345c4c835822663311521834
6d5f0bd6b6274f6d16cedf1c5563556f
Describe:开始扫描(判断操作系统版本号, 用于处理不同蓝牙设备) Date:2018-04-16 17:41:02
public abstract class ConnectLiKingBluetooth public void startScan() { if(isFirst) { currentState=BLE_STATE_START_SCAN; RxBus.getDefaultInstance().post(currentState); if(!mOpertion.isOpen()) mOpertion.open(); mOpertion.discovery...
0
0abdcf5f972c921e2a1d5babe24cc342
0619d932b7e083a139368d074b5165e4
Update reviews to db
export default class Review extends ModelWithDbConnection async setMulti (delta) { await ReviewDB.updateRecord(this, delta); }
1
e5dfa2461159fd2ef03182d9a22abdb4
67541de2bdd3a5e4e8e821f004a30a19
Wraps subprocess.Popen().communicate(). Returns ((stdout, stderr), returncode). - The process will be killed after |timeout| seconds and returncode set to TIMED_OUT. - Automatically passes stdin content as input so do not specify stdin=PIPE.
class Popen(object): def communicate(self, input=None, timeout=None): if self._communication_started and input: raise ValueError("Cannot send input after starting communication") if timeout is not None: endtime = time.time() + timeout else: endtime = None ...
0
e3f5ee3b283e35084341a7fcc852387d
c8851aea3dcc1aa6265dfce85c33fe59
Generates a new 3-digit shortcode.
one = randint(500, 778) two = randint(100, 999) three = randint(1000, 9999) return str(one) + "-" + str(two) + "-" + str(three)
0
a9c549b80c385567d71df0e41a1ba7cf
884b68bbf2521648dd95d18b17f1f817
Obsluga eventu pygame w grze Zwraca albo nazwe biezacego stanu gry (gdy stan sie nie zmienia) albo nazwe nowego stanu gry ktory wynika z obslugi eventu
game_field.draw(stdscr) action = get_user_action(stdscr) res = defaultdict(lambda: state) res['Restart'], res['Exit'] = 'Init', 'Exit' return res[action]
0
a18abd2ac1382b04f1234f93347955c5
758b78e71a3ef2125b66ab434d0723b0
ユニットの現在HPを設定する. 0以下は0に修正する.
{ if (value < 0) { my_Property.Character_Current_HP = 0; } else if (value > my_Property.Character_MAX_HP) { my_Property.Character_Current_HP = my_Property.Character_MAX_HP; } else { my_Property.Character_Current_HP =...
1
b0863835a313241d5cd94d29509d270b
a1b48cd58c730ac67a744e77ca3fabad
传入顺序为[c3,c4,c5],但处理顺序为c5,c4,c3
@SneakyThrows public void testRunBySequence() { Data3 data = new Data3(); new Thread(() -> { IntStream.range(0, 10).forEach(i -> { data.runA(); }); }, "A").start(); new Thread(() -> { IntStream.range(0, 10).forEach(i -> { ...
0
c0fa86dc1df1eabdc430c30a0269df75
573d095379892f6c7bc2a2d3b5479757
даёт уровень звуковой мощности от этого источника в указанной точке без учёта препятствий
{ _currentPlayingSound = SoundType.Custom; _soundOrigin.clip = clip; _soundOrigin.maxDistance = intensity; _soundOrigin.Play(); }
0
8324976be1ff457b76ff5bcc2dd75475
6c6e3fdee7d0b6fa5c719cf931b324ee
Get the type of administrator.
class AdminUser extends AbstractRepository implements UserInterface public function getUserType() { return 'admin'; }
1
205c611d04e917058703ce639dab270d
0fffda2ed8660091c490ce686fca37cf
Post timeseries data.
class Timeseries(Resource): def post(self): data = request.get_json() try: TimeseriesSchema(many=True).load(data["values"]) return {}, 201 except marshmallow.exceptions.ValidationError as e: return {"error": f"Something is wrong: {e}"}, 400
1
7e5cf24a72345d7826c2f0d8c2080012
01e4ccf487c3cb5ac1be68f4ef46b19d
Move to the next analysis request
class AnalysisRequestPublishView(BrowserView): def _nextAnalysisRequestGroup(self): if self._current_arsbyclient_index < len(self._arsbyclient): self._current_arsbyclient_index += 1
1
b04a91abaab2a4a23af3a3a93b3fa1f9
64e109a196d45281a40606de339761e3
占用槽位
if ActorManager.user_data.round.cur_slot ~= -1 then Toast:MakeToast(Toast.TimeLength_Long, LANG_dragonTreasurePanel_33); elseif ActorManager.user_data.round.debian_secs <= 0 then MessageBox:ShowDialog(MessageBoxType.Ok, LANG_dragonTreasurePanel_34); elseif roundHelpPlayerList[selectSlotIndex].uid == ActorManage...
1
f17c1ab38d48fb0222582f8cbfd13ff9
583e17b2e32c4eae1ecbdd16107394a3
Returns a newly constructed list of keys matching regular expression. <p> The will contain all keys whose {@linkplain OptionKey#qualifiedName(IOptionKey) qualified name} matches the given regular expression pattern sorted by name.
public Set<String> getkeys(String pattern);
0
78e05a904879da176d99474f73c836bb
88b079bd285f74e5dd28dc2b21f6a561
Menu handler for `alias_find_menu (Next)'.
unsigned int flags) { unsigned long offset, maxoff; struct inode *inode = NULL; struct romfs_inode ri; const char *name; int len, ret; offset = dir->i_ino & ROMFH_MASK; ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE); if (ret < 0) goto error; maxoff = romfs_maxsize(dir->i_sb); offset = be3...
0
d199b74a28b03671d22a9e816ba38ab0
08a1d2199f600377bda37b9a82b1eed0
Resizes each schedule
class Exchange(OrderBook): def resize_schedules(self): self.resize_demand() self.resize_supply()
1
a66970350412a72b21945ce7a7efc569
6321396da654426a536eea7d91e80046
Busca un jugador por id
for (Player tempPlayer : players) { if (tempPlayer.getId() == id) { return tempPlayer; } } return null; }
1
e675a152f6423b9a0f76d64e15ffb73d
6ed91a56ead09a835435fb1c121831f3
Returns the difference in millis between the current timer value and a timer value previously returned by Now.
export class Timer get delta(): number { return this._delta; }
0
634994a0a60b04aa81183aa23f9937fb
72fd8fe10e4dc51a70e5627d40aef89b
Toggle shader enable
{ glUniform1iv(_ush[_ps][ENABLED_SHADING], 1, (mask&OVOID_ENABLED_SHADING)?&__const1i_one:&__const1i_zero); glUniform1iv(_ush[_ps][ENABLED_DIFFUSE], 1, (mask&OVOID_ENABLED_DIFFUSE)?&__const1i_one:&__const1i_zero); glUniform1iv(_ush[_ps][ENABLED_AMBIENT], 1, (mask&OVOID_ENABLED_AMBIENT)?&__const1i_one:&__const1i_z...
1
c68624a498547292ebc9f39f697aa66c
4b54e84da98bafccc556538ae3bfcf51
US Exports of Goods and Services, Balance of Payments (Mln $)
namespace NinjaTrader.Strategy public partial class Strategy : StrategyBase [Gui.Design.WizardCondition("Indicator")] public Indicator.USExportServicesBalanceOfP USExportServicesBalanceOfP() { return _indicator.USExportServicesBalanceOfP(Input); }
1
e6e4890fcb1211dd0dddd1b02244199a
9101a33326ba389c5423495f0bf81ec7
Return the GeneralSettings plugin to access the settings faster
function NexusPluginFramework:GetSettings() return NexusSettings.GetSettings() end
0
358eff07051cd02a651377543177a7e5
b13dca7f5d01efb82df9f16460b13ba9
Gets the price of this TicketTypeResponse. # noqa: E501 Цена билета # noqa: E501
class FunctionsRequestBuilder(BaseRequestBuilder): def tbill_price(self) -> TbillPriceRequestBuilder: from .tbill_price.tbill_price_request_builder import TbillPriceRequestBuilder return TbillPriceRequestBuilder(self.request_adapter, self.path_parameters)
0
e7259b0dec5dbec1df2e3c3112e7bcf3
d4234c7a0f906b7dab10134620ecb165
We use coroutine and not calling Show() directly because it is possible that at this point ads are not initialized yet
namespace OnefallGames public class AdManager : MonoBehaviour public void ShowAdmobInterstitialAd(float delay) { StartCoroutine(ShowAdmobInterstitial(delay)); }
1
b2ec6867fc3a04eaf0a3a2765c724c80
b661fb5c4d1e60d2607a2185dceb3295
Takes a patterned resource path and resolves it using the key/value path resources into a segmented encoded URL.
namespace Tripous static public class ResourceKeyResolvers static public string KeyToResourcePath(string Key) { string Result = null; lock (syncLock) { foreach (var Resolver in Resolvers) { Result = Resolver.KeyToResourc...
0
f3d5835606489d064a761b0ac07d00ac
557d45bd3d55814b6c84a3653d02aba5
Возвращает массив событий изменения указанного заказа
namespace RussianPost.Tracking PostalOrderEvent[] PostalOrderEventsForMail(Rpo rpo);
1
7621966452290d19444208d71621299b
f984ec409ef54842d9c2116280bdae67
Get the Sonos speaker bass EQ.
public class HHTAudioManager public int getEqBand10k() { try { return mService.getEqBand10k(); } catch (RemoteException e) { e.printStackTrace(); } return 0; }
0