query_id
string
corpus_id
string
query
string
code
string
label
int64
b26c407b5da605a57e56f931931633b5
1612f9e2a68940ae0ccded22c4f60309
Gets the x payment return denial claims.
{ XPN ret = null; try { Type t = this.getField(9, rep); ret = (XPN) t; } catch (System.InvalidCastException ) { throw new Exception(); } return ret; }
0
04e931dbde9ac369a54e8548009aa21f
701341b71b1b205100d860d3bb1982be
This adds a property descriptor for the SPX Board Number feature. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_AdministrativeDistance_OSPF_feature"), getString("_UI_PropertyDescriptor_description", "_UI_AdministrativeDistance_OSPF_feature", "...
0
1c748fc269cb8bee4e8ddf5e33898b63
126d2aa5dc41f118c8ae80aa3a3fd24f
读取course表格的所有数据
def course_select_all(): course = Course() result = course.select_course_all() result_change = course.change_data(result) return result_change
1
207e1921a462f013feef2dc7d43b1083
29d4da885cd98c626a69d2e8618d95eb
Coroutine that makes the enemy ships do evasive maneuvers
{ yield return new WaitForSeconds(waitingTimeBase + Random.Range(-1f*randomTime, randomTime)); int index = Random.Range(0, EnemySpawnPoints.Length); Quaternion rot = Quaternion.LookRotation(PlayerController.playerTransform.position - EnemySpawnPoints[index].position, Vector3.up); Vec...
0
bc1656a96dfb012b348a5efb68aa7142
1ac8c65f0dadd73006fef59fe4257d37
Boot Doctrine
static::$kernel = static::createKernel (); static::$kernel->boot (); $this->em = static::$kernel->getContainer ()->get ( 'doctrine.orm.entity_manager' ); $this->repository = $this->em->getRepository ( 'IMIECraftingBundle:Boot' ); }
1
2322094fff2f3020812487da455eb3b7
81af9efb88757985b6f51e57b168540c
ajusta o final da string após o uso de fgets
void my_fgets(char* buf, int n, FILE* fp){ fgets(buf, n, fp); buf[strlen(buf)-1] = '\0'; }
1
a4b01dc74922f76323f31e5099020eb2
46b105b1613c5b2e8dd6f51eef58268d
无参数lambda
public void _isLambdaObject(){ for (int i = 0; i < 3; i++) { Action action = param -> {}; print(action); } for (int i = 0; i < 3; i++) { print(new Action() { @Override public void run(String param) { } }); } }
1
c387a49d9e9b069ff42984531c15ccb5
6188cc806a85a5fb29a884af161493de
查询队头数据 不取出
if (isEmpty()) { throw new RuntimeException("队列空, 不能取数据"); } return arr[front]; }
0
9b549fd74dae037a9b27baf3f0126f68
d97f735c81424338daf8f648c7f59c8e
查询最新5张玩家原画
namespace BFS_UI public partial class WebForm5 : System.Web.UI.Page protected void bingyh() { DataTable yh = PictureBll.yhTop5(); if (yh != null) { string img1 = yh.Rows[0][2].ToString(); string img2 = yh.Rows[1][2].ToString(); ...
1
94df4fcc3ab5ea79a95e06ce1dbb94e5
a9c319831275a4cd2017d3924b0097ea
chequea si es feriado ese dia
class TiempoFalso implements TiempoInterface public function esFeriado() { return $this->feriado; }
1
9eeb98b0c3b19e5538e2f52cb0a973b3
94ff4ad2b3027247fc0c57e812e29604
find the last block of a file
fd= os.open(filename, os.O_RDONLY) try: return os.lseek(fd, 0, os.SEEK_END) finally: os.close(fd)
0
84dd20c20b04ed5c5b763ba387dba451
f080a807f79e7c96b82d46328b546bef
OCR API entry point.
int main(int argc, const char** argv) { return CAnnotWriterApp().AppMain(argc, argv); }
0
defbc731b9193f2e03840e5b28db9440
78ae4ac1dc9163c423b22f61903008b8
Method to validate the new position created in VV Admin Portal for a client
public void R2858_TC96220_AltEVV_Client_Req_Fields_Blank_Validation() throws InterruptedException, java.text.ParseException, IOException, ParseException { JSONArray jsonArray = GenerateUniqueParam.ClientParams_AltEVV_Molina(globalVariables.client_intake_Molina); JSONObject jsonObject = (JSONObject) jsonArray.get...
0
cc8d97632f854cbb1fad58f79500d423
15c93d750a2b73a2e6b15d6edf87996d
Return coordinate weights for (selected) atoms.
class CoordArraySelection(GenericSelection): def coords(self): return self._coords
0
52ae5caf1fb6a4ea8df6acd03d72bba4
55807bda0e1e3c2c29534068b64afd34
Author: John Vance Purpose: Allows for the food to be placed on the plate in the Kitchen and Cafeteria scenes
namespace AntSim public partial class AntSimForm : Form private void groundPanel_MouseUp( object sender, MouseEventArgs e ) { int tempX = 0; int tempY = 0; int tempRations = 8; placePoint = e.Location; tempX = placePoint.X; tempY = plac...
0
e5366d3d15f15a9a50e685e38921334a
b3af11b50dbe1c732260f086e48d39a9
自动设置div高度
function autoHeight(){ var height=window.innerHeight; var div=document.getElementById("editorBody"); div.style.height=height+"px"; var text=document.getElementsByClassName("w-e-text-container")[0]; text.style.height=(height-112)+"px"; if(text!=null){ text.style.height=(height-112)+"px"; ...
1
64e2004724b66a5b81008b3987ff99d2
5bdcf14b872b5e90a4d9ccee9c211498
Method is_ge_today 大于等于今天验证方法
def is_gte_today(base): return True if base >= datetime.date.today() else False
1
642fcbcf2067be95448e31579e590515
d8c62bb6762cd29983f96042c54fd69e
複数削除エラー、postデータなし
class PostTest extends TestCase public function testPostError() { $user = factory(User::class)->create(); $response = $this->actingAs($user)->post(route('posts.store', [ 'title' => '', 'date_time' => '', 'end_time' => '', 'place' => '', 'address' => '', 'reservation' => '', ...
0
09e5274ca0cee9f9820be8088689ed08
fbcf63410702966a2ffced5a191a56e8
Remove o utilizador selecionado do sistema.
class UsuarioController extends Controller public function destroy($id) { $usuario = User::findOrFail($id); $usuario->delete(); return redirect('admin/usuarios')->with('success','Utilizador removido.'); }
1
d0a4eeb4089bab90c54766579efb2c48
71a8bee5cfd14b72213feaff271ff05d
Método responsável pela execução da escala da estrutura selecionada a partir da informação dos fatores de transformação.
namespace Engine public class Transformacao public void Escala() { }
1
7508a9e7835c238cbb69fa6c670073e8
310546387d7934169d1e9d96d98ae41e
A Boolean that represents the current state of faster launching for the Windows AMI. Set to `true` to start using Windows faster launching, or `false` to stop using it.
class Process extends AbstractEntity public function setAllowQuickStart($value) { $this->allowQuickStart = $value; return $this; }
1
a9f00d5cc85ec308b07e3cecb6136d83
44185b0690d8bddceb1ca38b660ca6b1
Perform initial parsing of a list of untyped data objects.
for i in range(len(l)): if type(l[i]) == list: self._parse_list(l[i]) elif type(l[i]) == dict: l[i] = AttrDict(l[i])
1
723038da75542382d4a922acbd643f49
5f0f137c3af76302ef47759d9e22158a
获取 活动适用城市ID
JSONObject object = JSONObject.parseObject(activeInfo); JSONObject data = object.getJSONArray("data").getJSONObject(0); return data.getInteger("actvie_id"); }
0
b31ff730e4aa321083ee4befa468ac13
39bd384f7b9db3ec6598241a5e8bab9e
clear calculation box and write the input solution to it
if result == 0: solution = str(self.possibilities[0]) else: solution = str(result) self.isSolved = True self.finalNumber = solution self.possibilities = [0] self.entryBox.delete(0,END) self.entryBox.insert(0,self.finalNumber)
1
9cb3e4296235cb4bc9863aea5eb8f5e1
04e2dcefb5ba998198fc7b440de35fa6
Take values from farseer and apply to our object
if(gravField != null){ TargetPlanet = gravField.transform.parent; this.gravity = gravField.gravity; this.planetFriction = gravField.planetFriction; this.atmosphereFriction = gravField.atmosphereFriction; planetRadius = TargetPlanet.transform.localScale.x * TargetPlanet.GetComponent<CircleCollider2D>()....
1
a2880d5abd41fae5c08e954977446307
60e453d91038fce907f0dd215b49649e
Database configures the database on an InfluxReporter.
class NoseMySQLReporter(NoseDBReporterBase): def configure(self, options, conf): import MySQLdb try: self.connection = MySQLdb.connect(options.dbreport_host, options.dbreport_username, options.dbreport_password, options.dbreport_db, connect_timeout=5) except ImportError as e: ...
0
d6515ada683f69b76651374ed2405578
abcf6e9c4d06dd639761aa0d3007ac14
Removes an unweighted, directed edge from this node to the passed-in Node n.
public final class Digraph<T> extends AbstractGraph<T> implements MutableGraph<T>, Cloneable private boolean removeEdge(Node<T> fromNode, Node<T> toNode) { return fromNode.removeEdge(toNode); }
1
8aededb11329f87a484e733b24bb8af3
d2ffc937dd78939123318651739ae12d
Преобразует текущую матрицу в матрицу вращения вокруг произвольной оси на заданный угол
{ double c = Math.Cos(angle); double s = Math.Sin(angle); matrix.M11 = c; matrix.M12 = -s; matrix.M13 = 0; matrix.M21 = s; matrix.M22 = c; matrix.M23 = 0; matrix.M31 = 0; matrix.M32 = 0; matrix.M33 = 1; }
0
c58538bca9eebcb93d128e5cc3dac36e
c997afab081e24069a8f9081556d78a5
隐藏菜单及入口;
public class ReaderActivity extends Activity implements View.OnClickListener, IReaderProgressChangeListener private void hideMenu() { if (isHiding) return; ObjectAnimator topExitAni = new ObjectAnimator().ofFloat(mTopContainer, "y", 0, -topBarHeight); topExitAni.setDuration(150); ObjectA...
1
6ba2b3f348602e21f5a498c82e48f231
fecf930b0fa6200e3cd2453ac3662abd
Stores the data here to the aligned address given.
public class LoadStore public static void staA(Register acc, Memory mem, int address) { mem.setDataAt(address, acc.getData()); }
1
e3ce71629abb77435c5e0b1c3f2ce0e6
441c0fafe2e8a3e0d7c46d51e2cff42d
是否有幺九
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>[%d]断幺九检查", MJComboBase_1.default.getHuGamePlayer(params).index); let cardsArray = MJComboBase_1.default.removeCardSelect(params, tempCards, removeChi, removePeng, removeGang); let mjCard_1 = 1; let mjCard_2 = 9; if (MJComboBase_1.default...
1
d3152ecb18486c40e62309cdbb3d19e8
db88e829425ab781d379491d48401e67
@brief Efuse read xtal capcode 3 inout configuration
error_t RSI_IPMU_RO32khzTrim00Efuse(void) { return RSI_IPMU_ProgramConfigData(ro_32khz_trim00_efuse); }
0
3a4e533a2f960fc29611d500df0d4bfe
0a742429493af58b91eb08c69f7318d5
根据栏目ID获取最新一条文章信息
{ $this->db->select_max('addtime'); $data = $this->db->get_where('news', array('cate_id' => $id))->row_array(); if(!$data) { return false; } else { $addtime = $data['addtime']; $result = $this->db->get_where('news', array('addtime' => $addtime))->row_array(); if (!$result) { re...
1
4648d6e07674f5ef69117a75e722815c
bf3be6c1e64846097019eb2232bffe9b
display kernel as 1 or 0 in the debug window.
if (Wyvern.input.isKeyPressed(Keys.F10)) { if (showDebug) { showDebug = false; } else { showDebug = true; } } if (Wyvern.input.isKeyPressed(Keys.F11)) { System.out.println("### Memory usage###"); System.out.println("used: " + (runtime.totalMemory() - runtime.freeMemory())/memoryUnit); Sy...
0
ab3a312ccdad6af5c468527dc5f77ce3
fba0cd405cc266e7b70607d950f3c930
Функция деактивирует элемент с указанным кодом
class El public static function deactivate($ID) { $result = self::update( $ID, Array( 'FIELDS' => Array( 'ACTIVE' => 'N', ), ) ); return $result; }
1
cd4400f8e31da3f25963284da2e61480
a6d9ec573c171e3723884ce3b9e0b0e4
プレイヤーからレーザー出して当たったキャラの情報を取得
{ Vector3 rotatedPos = transform.rotation * shootingPosition; ray.origin = rotatedPos + transform.position; ray.direction = gunTransform.forward; GameManager.gm.UIController.EnableEnemyHpLabel(false); if (Physics.Raycast(ray, out hitInfo, shootingRange)) { ...
1
68b35a85691dddbd1e542fe46916fb0a
3f2706cc3db3eb4d08752f171eb088cc
Calls the schema manager and installs the tables
class InstallSchema implements InstallSchemaInterface public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $setup->startSetup(); $setup->endSetup(); }
0
5c2d8b92a31924f3c6f5ab4ea651ff54
653bb618dfd68498f9c92db4926795f0
<p> 単価 を設定します。 </p>
public class Product implements Serializable public void setPrice01( Integer price01 ) { if(price01 == null) { price01 = 0; } this.price01 = price01; }
1
031d008a835984aa890ebb052d8e9753
703dbb3e6e475153afb8f548ac8cfab1
调用dom4j接口将Document对象保存为文件
public class Dom4jUtil public static void writeToFile(File file, Document document) throws IOException{ OutputFormat format = OutputFormat.createPrettyPrint(); format.setEncoding("UTF-8"); XMLWriter writer = new XMLWriter(new FileWriter(file), format); writer.write(...
1
24592c1b3404b2b33765b078602c66c9
0684aaeae81dfc29fcc3d90f6076db03
Builds a Direct2D rendering subsystem for the application.
namespace Avalonia.Controls public class AppBuilder public AppBuilder UseRenderingSubsystem(Action initializer) { RenderingSubsystem = initializer; return this; }
0
61567ff37f83c9010d887c67982aba33
e6c3aa481d237683d2a06eb01b8567f7
Zeichnet alle 3D-Graphen in Kugelkoordinaten.
def draw3d(representation, graph): color_map = {0: 'green', 1: 'red', 2: 'blue', 3: 'violet'} node_coord = {} for node in graph.nodes_iter(): node_coord[node] = (representation[str(node)][0], representation[str(node)][1], representation[str(node)][2]) fig = plt.figure() ax = fig.add_subplot(...
0
e310ea2015c6b873d1d6b575835c82bf
fb9bda5bfa5271b4e850f933301ff74f
Add new cell on the grid with probabily 9/10 add a 2 and 1/10 add a 4
if (this.grid.cellsAvailable()) { var value = Math.random() < 0.9 ? 2 : 4 var tile = new Tile(this.grid.randomAvailableCell(), value) this.grid.insertTile(tile) } }
1
882f8b2e76e9d8018dd4c774b249e4a4
89a531ed3570301c18ec8e226b46dd51
Sichtbarkeit des Scoreboards und seinen Labels/Buttons
public class GameController : Singleton<GameController> private void SetOverlayVisibility(bool isVisable) { LogoRef.GetComponent<Renderer>().enabled = isVisable; HowToPlayRef.SetActive(isVisable); ScoreRef.SetActive(!isVisable); ShieldMeterRef.SetActive(!isVisable); if (m_Score != -1) { PrevScoreRef.Get...
1
bfd36fe8f7ffebd132af287cdea027ab
b199572d57ddce02d3342a249f4fd766
Méthode pour récupérer tous les plats du jour
export class AlimentationService getCurrentsMenus(): Observable<Menu[]> { return this.http .get<Menu[]>(MENUS_URL + `/current`, httpOptions) .pipe(catchError(this.handleError)); }
1
0b3113dc4eb9c5c4f7087d0406600da7
a579072769234bcf39c7a6dcf42c1307
Método que devuelve un audio aleatorio dentro de una lista de audios
int clipId = Random.Range(0, clips.Count); audioSource.clip = clips[clipId]; audioSource.Play(); }
0
78634eed8450d1bcd13cc7f68a8a2194
62703a088f788c180bf17b3c14bb2725
Show the form for creating a new Worker_labor.
class WorkersController extends Controller public function create() { return view('workers.create'); }
1
6459ad93712c36282bee0a54771d4e2e
79306e002435d8b84210b1ac94096697
Set default center position, etc. for DIANA Variables are passed by reference (not value), so that they are set and returned to caller. HBT DIANA 28-Dec-2009
void init_Vars(void) { pib.opttbl=options; pib.kwdtbl=NULL; pib.build=__DATE__; pib.majedt = VERSION; pib.minedt = EDITNO; pib.copymsg=copymsg; pib.prgname=prgname; pib.desc=description; pib.example=example; pib.errno=0; getTrmParms(); getHelpClr(); }
0
4769b1bbcf40424edab0a91a17326f35
f53773b11ec92f36bdb0017f878c5492
Get all (active & inactive) projects
namespace BugNET.Providers.DataProviders public partial class SqlDataProvider : DataProvider public override List<Project> GetAllProjects(bool? activeOnly = true) { using (var sqlCmd = new SqlCommand()) { AddParamToSqlCmd(sqlCmd, "@ActiveOnly", SqlDbType.Bit, 0, Param...
1
d3bc4f30362749f56bc72e1b0b05180e
ca5188d9aefbd1748a92e50474228588
Not an action method. Used only in test environment, get the Thread object executing background services, so you can #join on it to wait for bg services to complete.
public class MyPool public ThreadPoolExecutor forBackgroundTasks() { return mForBackgroundTasks; }
0
eb53389ad241a0d9b1b925d6b7941900
47d8476f0e06b98663865400eabedf62
Getter method for instantiation_parameters, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters (container)
class inatparam(base_resource) : def __init__(self) : self._nat46v6prefix = None self._td = None self._nat46ignoretos = None self._nat46zerochecksum = None self._nat46v6mtu = None self._nat46fragheader = None self.___count = 0
0
b4e72f58f8163decc77de8f44f72a557
7cd0cd207a67f18060e51d50dd1cb11b
Move backward Y.
public boolean moveBackwardY();
1
1a7654f52e9e830f72dd6462f41e1f73
a94af7443ac5a0cf4c5843c836206e33
Creates a dictionary of unknown arguments passed into script.
retval = {} preceded_by_key = False for arg in args: if arg.startswith('--'): if '=' in arg: key = arg.split('=')[0][2:] value = arg.split('=')[1] retval[key] = value else: key = arg[2:] preceded_...
1
88ebb1d8cc56451f739ba19e200056e4
00b6d0404fe0bbf137e3fba6c05331de
利用程序实现分段函数的功能
def piecewise(f, g, b): def h(x): if x < b: return f(x) else: return g(x)
1
ffe3f08a8fa1f3751a3fa8c7393591f9
b3b8e541db606ffd5d20fb416e80c475
教练图片路径,多张以英文逗号","分隔
String imgs = RESUtil.getString("img"); String[] imgArr=imgs.split("\\+"); List<String> list = Arrays.asList(imgArr); return list; }
0
3c93f2908c946ad5cd4a15a51ec9eb65
18b370c2e98c7688a91939ec82d03c2d
Initialize with a dictionary, another Struct, or data.
class Data(object): def __init__(self, adict): self.__dict__.update(adict) for k, v in adict.items(): if isinstance(v, dict): self.__dict__[k] = Struct(v)
1
c04921ebb63882e871aaffb3685f0830
9b8984fdc5f411c9157c668489acb681
Performs the reaction of a bloon after it's been shot at
if (!shieldOn) { health -= SHOT_HEALTH_DAMAGE; maxEnergyLevel -= HIT_ENERGY_COST; if (energy > maxEnergyLevel) energy = maxEnergyLevel; } }
1
715bac562ccf950cb7c37b0c779838b8
53108c29e530ce2dabccf23425386a98
リスト項目が何も選択されない場合の処理 (初期状態では、呼び出されず、選択がなくなった時に呼ばれる)
class MainActivity : AppCompatActivity(), AdapterView.OnItemSelectedListener override fun onNothingSelected(parent: AdapterView<*>?) { }
1
63ed7d71a5c2abe9aa33a93149b54da5
95793ea9cc697577a31f3e1c62463c7d
Checks if the system has the correct license
class jobarchiveSystemActivity extends SystemActivity public function isLicensed() { return LicenseReader::getInstance()->isModuleValid(LicenseReader::MODULE_JOBARCHIVE); }
1
9a479b908dd134ef057638c3851a3366
f3312fd8b126e8408101596ca43f0000
returns the default editor target name if not syncing pcbs or Target isn't specified
public String getDefaultTargetNameForBlankTarget();
1
91b38fef572159482903310ee45f7207
d11e22a2198daa660176e8307316acaa
获取关闭屏幕的广告
function screenADStop() if matchCondition() then local luaj = require("cocos.cocos2d.luaj") luaj.callStaticMethod("org/cocos2dx/lua/AppActivity", "handleFullScreenAD", {"stop"}, "(Ljava/lang/String;)V") end end
1
43ceb62192bccf65a5dd269d807a135e
68f61b101f2f3b0fe9da7f26775f3ac7
Создание перегородок;
namespace MainForm public partial class Form1 : Form private void addWall() { Wall wall1 = new Wall(360, 585); controller.wallList.Add(wall1); Wall wall2 = new Wall(360, 565); controller.wallList.Add(wall2); Wall wall3 = new Wall(360, 545); controller.wallList.Add(wall3);...
1
e0c6ac70bcb9a0dc2f2c8f8a61edc254
1d7c410e96167276d2e818b4808e531c
Method to return the normalized input user query sentence. It puts the spaces between each groups which are matched by the given regex. NOTE: regex should be properly grouped
class IncrementalSearch: def get_normalized_query(self): input_terms = self.query.split() final_terms = [] for term in input_terms: dups = [t for t in final_terms if t.startswith(term)] if dups: continue final_terms.append(term) return ...
0
5fb1da1d8f9a49832d679c70c48c8e42
451c05efd740fa7d47abffa75c5021a0
公開済みのレシピをランダムに取得
async GetRandomRecipes(token) { var isValid = await external.auth.isValidUser(token); if (isValid) { return external.api.getRandomRecipes() } else { return { Result: "Error", Message: "Invalid User" } } }
1
a63e828c9d109476fd51091534f8bec4
7a10ad71c04b2b24e749ade8594ee693
Vérifie si la planète est colonisable
{ var seed = RandomNumbers.RandomInt(0, 100, rnd); return seed <= planetProb.Max; }
1
5416812e5459796dce06e652f88a0fc5
81164df01655b661e6bca0f0df072f95
Get the margin options. (Scintilla feature 2557)
namespace Kbg.NppPluginNET.PluginInfrastructure public class ScintillaGateway : IScintillaGateway public void SetMarginOptions(MarginOption marginOptions) { Win32.SendMessage(scintilla, SciMsg.SCI_SETMARGINOPTIONS, (IntPtr) marginOptions, (IntPtr) Unused); }
0
b525b4c514b33e4cbbd62abdecca2fbf
70ccbd9b79fe280611fc613dd134f057
Sends all entity and player updates to the <see cref="Connection"/>.
namespace GameMenu.Connection void Flush();
0
505b96734bad601cd7841fc68a7250ea
2e03b7d4e096e47f47dc5340cb29c2db
Flush existing commands to the GPU and optinally wait for completion.
{ if (sync) { while (glClientWaitSync(sync, GL_SYNC_FLUSH_COMMANDS_BIT, 1) == GL_TIMEOUT_EXPIRED) {} } }
1
400e81d570c40e6c3e8a0e2d26816c4c
53e26f512bed177b4de92fc73e0b2f56
サブセットを追加する. サブセット名
void setsubset(char *subname, char *supname ) { struct setinfo *new,*last; new = (struct setinfo *) xmalloc( sizeof(struct setinfo) ); new->name = strdup(subname); new->subsetof = strdup(supname); new->next = 0; if( subsets==0 ) { subsets = new; return; } for( last=s...
1
9863d19cce508cd62a69a798e24110a1
c16e1ad728818d9c36b942933d41bdf4
Lists all of the peerings under the given subscription.
namespace Amazon.NetworkManager ListPeeringsResponse ListPeerings(ListPeeringsRequest request);
1
a7cb09ebc4d19e220b4a9d9f3be02c8f
5c4e6e4fa4fd94e728b48c169abb2042
Evaluate this polynomial <c>p</c> at a value <c>e</c> (in <c>GF(2^m)</c>) with the Horner scheme
if(q_polynomial_is_zero(p) == 1) { ffi_elt_set_zero(o); } else { ffi_elt tmp1, tmp2; ffi_elt_set(tmp1, e); ffi_elt_mul(o, p.values[0], tmp1); for(int i = 1 ; i <= p.degree ; ++i) { ffi_elt_sqr(tmp1, tmp1); ffi_elt_mul(tmp2, p.values[i], tmp1); ffi_elt_add(o, o, tmp2); } ...
0
b5126a830a7a4998ed0bfe6dca1c6c6c
ecff75a07f496de50a76ddfea57cc841
@brief Territory::updateDisplay - just update the display graphics items, not recalculating territory data objects.
void MapsFormClass::update(Genie& genie){ }
0
dbd1f20d8902dc21304877f91b5d14ca
956d51116a7717c00a6300c1c62ac2c3
加入搜尋條件的team列表
log_message('DEBUG', __FUNCTION__ . '_start'); $search_type_array = $this->config->item('search_type_list'); $list_search_cond = $this->session->getter(DEF_TENANTID, $this->session->list_search_cond, $this->session->secound_key_admin, $this->_function_id); $list_is_sortable ...
1
35524da727b9eaa5488b7623a35b7a75
aec4082b0b7fadd2bb21b6e0315556f1
Raises error if end before start
class BaseDateTimeRangeFieldTestCase(TestCase): def test_clean_end_before_start(self): time_range_str = time_range_generator(self.today, self.yesterday) with self.assertRaises(ValidationError): self.field.clean(time_range_str)
1
edbc5878d89c456760f40d6491fa6227
0f343b6dcf09eafa1855d150ba14044a
填充View
public class FavoriteListAdapter extends BaseSongListAdapter<Song> @Override protected void fillViewData(int position, View convertView) { if (convertView == null) { return; } Song item = getItem(position); if (item == null) { return; } ViewHol...
1
48c60157723dff0d71f6cb0175db7aca
a52f6c848b020934c4a58bd8973cde61
Set the light direction to a fixed value. This will place the light source behind, to the right, and above the user.
mainLightObj.GetComponent<Light>().spotAngle = 6; sideLightObj.GetComponent<Light>().spotAngle = 6; focusTarget = transform; }
0
d4f490c8a9066b35d1843da0236ef774
8db58a6bfac6bd0fd05f689504fb1d9b
Convert to 1-indexed
function Map:idxToOne(x, y) return (x % self.width + 1) + (y - 1) * self.width end
1
e5d2e6fd6caefbe47e8d142aa3417f7f
63416ef8b0d3877c531a0ad9c27066ac
Tries to writes the context URI property for a resource set into the payload if one is available.
{ DebugUtils.CheckNoExternalCallers(); Debug.Assert(entityReferenceLinks != null, "entityReferenceLinks != null"); this.WriteTopLevelPayload( () => this.WriteEntityReferenceLinksImplementation(entityReferenceLinks, this.Version >= ODataVersion.V2 && this.Writi...
0
72229061f5c7698c07e1353cf1912cec
04f8e3bc01a19c13c1c8d8c0a23ee8bb
This function builds the homogeneus transform matrix
import numpy as np import amitibo Y, X = np.mgrid[-1:1:complex(0, image_res), -1:1:complex(0, image_res)] PHI_ = np.arctan2(Y, X) + np.pi R_ = np.sqrt(X**2 + Y**2) THETA_ = R_ * np.pi / 2 H = calcTransformMatrix((PHI, THETA), (PHI_, THETA_)) if theta_compensation: H = spdiag(np.c...
1
42cc4a376e761c17d7137669a298fbdc
3806c9cdca51df5fe6f4802604e17b39
This method mocks shell command invocation. It appends all executed commands to a given array.
class BuilderFake extends Builder public static function assertExecuted($command, int $times = 1) { $filter = is_callable($command) ? $command : function ($captured) use ($command) { return $captured->toString() == Terminal::toString($command); }; $count = count(array_filter(stat...
0
df4265bb5342b4fd908b87c622cfea19
d05fa38ceb326e2a36ea37caadc9a73b
функция, вызываемая при нажатии Yes в окне confirm
export class ConfirmModalComponent onYesClick(): void { this.dialogRef.close(true); }
1
4d1c7b6e67278461e883918166fe4000
7a2d2c5bf8f60fd7ef3a6b503e7b9273
Returns a jsonified 500 error message instead of a HTTP 404 error.
status_code = 500 result = { "error_message": "Unknown or unexpected error.", "error_code": "INTERNAL_SERVER_ERROR" } return jsonify(result), status_code
1
e3cb148839a8a01c2dc8884aa719ae4f
f0d7d3d5d4975886f7a51fa6acf67c72
@brief Indique si l'automate est en TRIP ON
if (etatInitial == true && etatFinal == false){ return true; } return false; }
0
f7f57484dabdbe1e1ee28ff8a25827ac
b26675dbc6281961088971bfd5c99ba1
关闭日期选择 picker
function closeDp(){ $('.datepicker').hide(); }
1
411fd52aa65e80af2ffa2d25d2dbf6fd
f4efb78bcf31ea88b4ba6c80b31be9d1
build a new Supplier Object for each returned Supplier
public class Main public void storeStoreSupplierObjects(){ for (int i = 0; i < 5; i ++){ createSupplierArrays(i); } }
0
1035eb61e95dba1d52c507709c619a32
8bdd75e5800d92cf35482645b1b1cb68
Расчет полярных координат
a = 0 b = 0 if flag == 1: a = x * math.cos(y) b = x * math.sin(y) return a, b if flag == 0: a = math.sqrt(x * x + y * y) b = math.atan2(y, x) return a, b
1
8049c143607cb728eb1f99bcbd8891ba
1b740e0a9e598510639e7df6ad0f7590
Making sure diameter is an odd number
void Filter_Plugin::on_medianApertureSpin_valueChanged(int arg1) { if(arg1 % 2 == 1) emit updateNeeded(); }
1
bbe688366ae16912da713bbe04a93c8d
be0560613bc72297058004a6c0cbf6fb
@brief 读取定时器8的编码器值
if(fd==-1){ fd = rt_dev_open(DEV_NAME, O_RDWR);} struct_Q8_Config q8Str; q8Str.iCardNum=iCardNum; q8Str.uiFuncIndex=iChannelNum+8; rt_dev_read(fd,&q8Str,sizeof(struct_Q8_Config)); return q8Str.wValueSigned; }
1
17a443bba877fbc7088624e46bbaec8e
18950bdec73ab13b2324113af4cc6dce
Create two new haploid daughter cells
left_state, right_state = double(self.state, T) self.left = CellVar(state=left_state, parent=self, gen=self.gen + 1) self.right = CellVar(state=right_state, parent=self, gen=self.gen + 1) return self.left, self.right
1
0ee568d29f43f10389b7b9d193be416f
2fd4c336b4c57dd73c7a2e551544c1a5
Mass equals density times volume or m = D * V = D * (4/3 * PI * r^3), and solving for r = [(3 * m)/(4 * PI * D)]^(1/3)
class PlanetPhysicalModel(object): def calc_radius_from_mass(self, Mp): rho = 1000 * u.kg / u.m**3.0 Rp = ((3.0 * Mp / rho / np.pi / 4.0) ** (1.0 / 3.0)).to("earthRad") return Rp
1
7a20010e1670f2ec578257bae5b3165e
475451a5eb9c7626c904c94665980e48
Adds Topic Solved to our Moderation Menu.
mi = clog.dumpMethodInfo() vs = mi prawReddit = msubreddit.getPrawRedditInstance() prawSubreddit = prawReddit.subreddit(subreddit) for moderator in prawSubreddit.moderator(): prawRedditor = prawReddit.redditor(moderator.name) i_muser = muser.objects.addOrUpdate(prawRedditor) ...
0
17778b7cccc81e719f94ccda46d33507
026e9ed24d36cd709438da2b619c19d9
This clears the SSL cache itself.
namespace Microsoft.Test.Utilities public class TestEnvironmentProxy public static void ClearSecurityCache() { }
0
b94c753df6ab745d575f59c0e913bb31
42068a4ab51a953a4c7e13119a630f97
Return number of likes associated with a strain.
public int getLike();
1
9ad2ac533afb436df1672940c8168229
3af5897bf479f702de3a1516ee1140bc
Añade las propiedades del email
$builder ->add('from', EmailType::class, array( 'label' => 'Tu correo electrónico', 'required' => 'required', 'attr' => array( 'class' => 'form-email form-control' ) )) ->add('subject', TextType::class, array( 'label' => 'Asunto', 'required' => false, 'attr' => arr...
1
a57331bb035527e79dedf6f3ffb50fa7
cd8b1a02446b4dc5cc57b7e1eda4ed2c
Retourne l'erreur et reset l'erreur pour la session
{ $_SESSION['displayError'] = false; if(isset($_SESSION['loginError'])) echo '<div class="error_message">'.$_SESSION['loginError'].'</div>'; $_SESSION['loginError'] = null; }
1
9ace8e7c86f32f1b9d0f8eb1efe364f3
6e2fd1c1db05db3c6c1f428af38576d3
Description: Only used for the DNN-classifier Input: Output: A Tensorflow dataset for validation/prediction Others:
class DNS(pl.LightningModule): def val_dataloader(self): return DataLoader( DNS_Dataset(self.hparams.data_dir, self.hparams.stride, train=False), batch_size=self.hparams.batch_size, collate_fn=self.collate_fn, shuffle=False, num...
0
672e893076e9309fcd437b579a4d121d
b95033d61ca0aad3533204fb26f79393
获取操作用户组ID
@Table(name = "FAB_MONITOR_EVT") public class FabMonitorEvt implements java.io.Serializable public String getFoperid() { return this.foperid; }
0
878271dd91ce59438dda12dd42151bf7
2724aeb75a5f33580c689480750d9f52
| Function: addVodFav | | Author: Jo2003 | | Begin: 29.05.2012 | | Description: add one video to favourites | | Parameters: video id | | Returns: -- \-----------------------------------------------------------------------------
function addFavourite($vid,$uid){ $sql = "insert into tbl_user_favourite (`uid`,`vid`) values (?,?);"; $params=array($uid,$vid); return execUpdate($sql,$params); }
1
46eae587a741f87cb0490d845aafddc1
5315509b0ed41a7f9ef348c84ce44a91
This function computes the orbit 'orbit' of 'element' in group H. If 'return_transversal' = True, it also returns a transversal 'U' For every index i, U[i] is a permutation from H that maps <el> to orbit[i].
def cartesian2orbitalelements():
0
f7d4b0b2733cbcb74df58b3a0c768c0e
eb34b54d5198b439fb0c64de060c5300
Compare a numpy array to the benchmark
class TestLayoutPlacement(unittest.TestCase): def assertArrayEqual(self, a, b): np.testing.assert_almost_equal(a, b)
1
b234dbf65c301038f1abd6256e141c43
1ab02e0699280d5d328b7ecb23a35c8f
Maps memory location names to their actual addresses
lookup_address(char const *name) { int entry; entry = find_entry(name); if(entry == -1) return NULL; else return address[entry]; }
1