query_id
string
corpus_id
string
query
string
code
string
label
int64
539612aff61d2537e80e919db577998c
f0a907d01108b8ae77857e8e4f0d5ebf
Set the number of days to archive the attribute.
public class AdvancedRetentionPolicy extends AbstractModel{ public void setDays(Long Days) { this.Days = Days; }
1
38c900235d693f12d3e16e32c82493fb
5cb8125f2a4faa718a85d97e77b4723a
作者:zjf 功能:分页返回城村信息
public Page getCheckVillagePage(String areaCode,String pgResult,String dcrName,String hdrName,String villageName,int pageNo,int pageSize)throws Exception;
1
dbc7f98e5599c0e45a6f184d60dc24b9
4cea6a65b9e1fc15a0bdd71b952b5e64
concat channel: inflow_map: [5xxx,16,16] ouflow_map: [5xxx,16,16] --> concat:[5xxx,2,16,16]
class FC(nn.Module): def __init__(self, in_ch, in_shape, out_ch, out_shape): super().__init__() in_shape = np.array(in_shape).astype(int) out_shape = np.array(out_shape).astype(int) self.out_ch, self.out_shape = out_ch, f.int_tuple(out_shape) self.fc = nn.Linear(in_ch * f.size(in...
0
d9b777e56c26ef9d989f2f19b9b7f44e
e8408f732ecbed23ff8b17c9446a8488
Moves a point by the given size
class Point: def move(self, x, y): self.x += float(x) self.y += float(y)
1
840736f6cabb0f483bd7f4ffd66cb82b
9525678cd1fc2044c0466304f114d32f
Generates a character dictionary with integer mapping
def generate_idx_to_char(words): idx_to_chars = defaultdict(set) for word in words: for i, c in enumerate(word): idx_to_chars[i].add(c) return idx_to_chars
0
fd683fe2ae25def004d2d410fa4929e8
1d35f3db4584b1b8c0667c34e834d103
Return a default configuration, that has the look of config.
def default_config(schema=CLIENT_SCHEMA): return generator.generate(schema)
1
1ba441f3cb4f1ea60e0ced3217b166a4
28527852ee6819a011c7ffe5d66f142c
Init class with defaults. Optionally accepts dictionary of default overides.
class Model(ABC): def __init__(self, **kwargs): self.set_defaults(**kwargs)
1
c49c746c5b0cbc745a6de8e10e86ab0e
f4b63433312af3f326c3cbf673013820
磁盘上可清空缓存目录
public class ImageLoadUtils public static void GuideClearDiskCache(Context mContext) { Glide.get(mContext).clearDiskCache(); }
1
3b62d2d10859b323d685b5ae6239c05b
da0e3dcb6cfee9e05883c857df2a4594
添加横向项目信息
class ProjectManageAction extends CommonAction public function transverse(){ layout('Layout/layout_one'); $this->assign('title',"横向项目管理"); $this->display(); }
0
26d4058660d83f89e95bdef7a1bd6bf1
d004742a148741c6bf3a6746987de59e
获取一对括号的结束点,例如"class A{ function B(){} } class",返回24,若查找失败,返回-1。
class MyTable(object): def find_class_end_idx(self, text): idx = 0 text2 = '' for t in text: idx = idx + 1 if t == '{': text2 = text[idx:] break if text2 == '': return -1 cnt = 1 idx2 = 0 for t in...
1
f09bdd428588c4194c2d9fa52aa64885
06ab9c0a289a4365ed7cf60b7da10531
Retrieves callable parameter types shared between callables based on array of types.
public class MethodAccessorTest private static Class<?>[] getArgTypes(Object[] args) { Class<?>[] argTypes = new Class<?>[] { Object[].class }; return (Class<?>[])MethodAccessor.invoke(MethodAccessor.class, "getArgTypes", args, argTypes); }
0
9c4469ac4bbfe841b63d7f7e3cc48019
e75c4073626b479d23ca9b170c716427
Convert the given selector string to qualify for the proper page type
{ $regex = [ '~\s*[>]\s*~' => '>', '~\s*[\~]\s*~' => '~', '~\s*[+]\s*~' => '+', '~\s*[,]\s*~' => ',', ]; $selector = preg_split('~\s+~', preg_replace(array_keys($regex), $regex, $selector)); foreach ($selector as $key => $value) { $regex = [ '~\s*[,]\s*~' => '|descendant-or-self::', '~...
1
26ae2b39258009a00fa49f6b56e52124
dc4ad916e5745b327525e3836781cc40
Must produce an error is there is any missing setting
CDbPackedVars &Settings) { bool bUpdate = false; # define SETMISSING(name, value) if (!Settings.DoesVarExist(name))\ {Settings.SetVar(name, value); bUpdate = true;} SETMISSING("ShowErrors", true); # undef SETMISSING return bUpdate; }
0
74638fd1268b772d07e57dfbe67f5dae
c86a9ee27c268ce2f146de744b451901
Given a set of Domains to intersect, compute their intersection. If the intersection is empty, return None.
class Searcher: def intersect(self, tokenArrays): if(len(tokenArrays) == 0): return None elif(len(tokenArrays) == 1): return tokenArrays[0] else: initial = set(tokenArrays[0]) for tokenQueryResults in tokenArrays[1:]: initial = initial & set(tokenQueryResults) toReturn = list(initial) toRetu...
1
ed0c78f6bb2c945016744a154b8bec43
543b8f4f4e6c1e788435e63ece43c398
The name of corresponding goal
class Delegation(object): def get_goal_name(self): return self._goal_wrapper.goal_name
1
ef8855e52feabd263ffe73987b1f5ece
06a31442eb0a29e47c3171186d278ea1
Provides layout scheme dictionaries for components. The scheme dictionary basically maps the number of hosts to host index where component should exist.
def generate_host_groups(host): hosts = [(h, ["managers"], None, {}) for h in host] num_hosts = len(hosts) db_host = hosts[0] prometheus_host = hosts[min(num_hosts, 2) - 1] db_host[1].append("database") prometheus_host[1].append("prometheus") return hosts
0
c979935dfa203826473d83d9368fe803
9d4e69c472d5105aec6eb89dbb636ee9
Register an additional minibatch.
namespace BrightWire.ExecutionGraph.Helper public class MiniBatch : IMiniBatch public void Add(MiniBatchSequenceType type, IGraphData? input, IGraphData? output) { _sequence.Add(new Sequence(input, output, this, (uint) _sequence.Count, type)); }
1
7c7ce3ac84c48b3d05282f401dc16da3
52b54cdade6ce6b5566aa45663e3511d
Gets the internal hourly rate column header text.
@Entity @Table(name="res_builder_employment") public class ResBuilderEmployment implements Serializable public String getHourlyRate() { return this.hourlyRate; }
0
ebcc671a9d28f5d1b5fae5780c50a127
7a100b0de688af666b808c114ab3c284
Function Synopsis [Incrementally updates arrival times of the node.] Description [Supports variable-pin delay model and white-boxes.] SideEffects [] SeeAlso []
static void mdlUpdate(SimStruct *S, int_T tid) { }
0
1b2048f919b0e8c1e430bf8addfcb4bd
ad598882d2e541b71b9fe4d7c45312d9
Set the maximum number of warnings that are tolerated before breaking the build.
public class StartParameter implements LoggingConfiguration, ParallelismConfiguration, Serializable @Override public void setWarningMode(WarningMode warningMode) { loggingConfiguration.setWarningMode(warningMode); }
0
59bd2c24ec339d1e957d64026b003d15
6678e140c20a875c3fd64d5ead9dbb17
Send the buffer to a client
{ tp_sock_data_t *dc = handle; tp_conn_t *c = dc->conn; tp_sock_data_t *ds = &c->server_sock_data; if (mg_skt_tx(ds->sock, buf, buflen)) { printf("could not sent %d bytes from client to server\n", buflen); }; }
0
1994ca65afd7d04c083c444881eee773
dcc9d56a043fa2056ad46d525cf3db70
将路径下的文件进行解压,true表示文件存在时进行覆盖
public final class Zip public boolean unzip(String zipFile, String targetBaseDir , boolean isRemove) { boolean ret = true; boolean find = false; byte[] buffer = new byte[BUF_SIZE]; mZipFiles.clear(); InputStream in = null; ZipInputStream zipIn = null; try { File file = new File(zipFile); in =...
1
c61f29fe2ee6c0a4ed659aa07dda18b3
bb0ec68427a52956263eb87e5b1ea52c
CustomerTokenAuthenticator constructor.
class TokenAuthenticator extends AbstractGuardAuthenticator public function __construct(AppUserInterface $users) { $this->users = $users; }
0
12145aea366c4b11a94c9b19cd114c37
75cc688b73ed80926c6ca810421b490b
Возвращает название аргумента опции. Используется только при печати строки с подсказкой по опциям допустимым в разбираемой командной строке. По умолчанию возвращает {@link #DEFAULT_ARG_NAME}.
public class HelpFormatter public String getArgName() { return defaultArgName; }
1
929cebf01a2b184a75fdb354b6401458
3a740008ea02dfc7fc4fc1cc13481fa6
Method to return total slant height.
class RegularTriangle(Shape): def get_height(self): return 3 ** 0.5 / 2 * self.length
0
c330d52af08a8c672ae43c9aaf8931a4
780dfe45bb99097b610bf41e6b285aec
returns the batch numbers (1, 2, ...) as sorted list
class LD(object): def _getBatch(self): if(self._dataAccessing=='RA'): batches=random.sample(range(0,self._trainNum),self._batchSize) elif (self._dataAccessing=='CA'): start=self.__batchCount end=start+self._batchSize if(end<=len(self._trainLabels)): ...
0
bebcd508ff96350ebdeecd0bcfd985ae
64f0f9ced831e74ebad65c30b42b8256
セーブ予定のデータをすべてセーブする
{ for (int i = 0; i < m_MaxSaves; i++) { var saveFilePath = GetSaveFilePath(i); if (!File.Exists(saveFilePath)) { continue; } var saveData = new SaveData(); BinaryFormatter bf = new BinaryFormatter(); FileStream file = F...
0
d9cec94a44690a1f1d87486db41ac270
9b235a381582472cfffcf14ac8a893fa
Visit a parse tree produced by MySqlParser#iterateStatement.
public class SQLStatementParserBaseListener implements SQLStatementParserListener @Override public void exitIterateStatement(SQLStatementParser.IterateStatementContext ctx) { }
1
d3ecd01147da08e85fc3b87a2379121c
3af227373c7263543df8f848e90cbe11
加载高校在各省的专业录取分数线
msg = {'code': 1, 'data': []} param = request.query_params.dict() year = param['year'] try: sciMjorLines = SciMajorLine.objects.filter(collegeHistoryId=pk,year=year).all() serializers = SciMajorLineSerializer(sciMjorLines,many=True) msg['code'] = 0 ...
0
2aa9b8dd1c0b032f5f688c2949f39d56
126892d3f1f36e6feb5dd1c707bc12de
Returns the meta object for the container reference '{@link db.DB.Column#getTable <em>Table</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getColumn_C_table();
1
ca29d0bb2bc5d9c5215cc68b58228302
19059d7ac886da554b50ad841c8c3719
获取模型的文档对象
class DocumentNode(QtCore.QObject): def get_model(self): if not self._model: self._model = self.get_document().get_model() return self._model
0
e46436a3d6ec401db5f26a5f9ce92c22
f1d7ecf718e2336bd7b2c782e8df565b
Set 需要授权的用户UserId集合。跟上面的SealId参数配合使用。选填,跟上面的Users同时起作用
public class CreateSealPolicyRequest extends AbstractModel{ public UserInfo [] getUsers() { return this.Users; }
0
b83e9ba1b81fabb903612c014fcec124
e0022e80648ae784fb0dcb914f9831fa
Returns the maximum x-value in the dataset. x-interval is taken into account.
public class Histogram extends AbstractTableModel implements Measurable, LogMeasurable, Data public double getXMax() { return xmax; }
1
9dfb073ec7c79fd64403d1679271f0a0
6e703e25d10fc58a90725c139d68214d
View to add interns
class InternController extends Controller public function index() { $interns = Intern::all(); return View::make('interns.index') ->with('interns', $interns); }
0
4454795de43518aff29f8fe4bd32332b
c14082c85bf74bb0f22348bfad8cba7a
システムSEを鳴らす
public class SEPlayer public void playSE() throws IOException { int size = -1; System.out.println("再生開始"); while (true) { size = ais.read(data); if (size == -1) { break; } se.write(data, 0, size); } }
1
45b3407565ce310cdc243600a0e63c86
dba495d7c3870a13119ae28d616b19ae
Sets additional filter for quads in a conflict cluster.
public class JoinSizeChecker public static void partition(QuadFilterPattern qfp) { }
0
26c302ee628b37cb0a09a3d23dc0d3d1
69351e285a22d0051178f18f117bb0e1
修改某个树节点的属性回调
function onClick(event,treeId, treeNode) { UpdateUI(); }
0
7dd0c68b8f6bf8f0ba03cbe3c8fc7e02
3e2719ce72596f3c06c0d0826ba89411
对于老师和学生网络输出的每一个元素计算相似性损失
T = params.temperature N = y_student.size(0) C = y_student.size(1) weight = F.softmax(y_sigma.detach(), dim=1) y_student_log_sm = F.log_softmax(y_student, dim=1) onehot_target = utils.scalar2onehot(y_true, params.num_classes).cuda() if params.weighted_loss == 'CE': weighted_y_stu...
1
db1e7e84b43063d8911e6be20a7c7ee7
1c6c57a5ac638eab03847bd984598431
Toggles pausing the program, returns the value of pause after setting it
class Handle: def pause(): return bool
0
f3621dd3c5e022103e549c9cbcce16b4
16107e9ff263c0aa01e3c3e05214c054
Generates random haiku.
line1.innerText = random(haikuLines.fiveSyllables); line2.innerText = random(haikuLines.sevenSyllables); line3.innerText = random(haikuLines.fiveSyllables); }
1
a54dd06158cfb9b6a00a5acba9680ef9
6ce9c75d2080ddf81a60e233bd324dd7
Helper class to convert a DynamoDB item to JSON.
function DTOToClassConverter(name, dtoJson, options, appOptions) { this.init(name, dtoJson, options, appOptions); }
0
d6112579b294c2c84769356cc1705a10
6882a0eb3babf7aff4c1c4d0cd6c7bc0
Add Telegram bot webhook handling functionality to the pipeline. Using default Telegram Bot Instance
class TelegramBotManager: def init(self): self.set_webhook() self.init_handlers()
1
7da659f66c1a2a765f89201369e3e4ef
d33cb5fbe2d55913ee25abbb52ca38dd
This method was generated by MyBatis Generator. This method returns the value of the database column TBL_U1_CHECK_FILE_DETAIL.CREATE_TIME
public class ExamQuestionDetail extends MybatisObject public String getCreateTime() { return createTime; }
1
fa9c433a084bdb91174b7fd6661b37f4
d8d75d9077608fa72981802a87e0fe32
Add team and number of balls to lottery
TextView quantityTextView = (TextView) findViewById( R.id.team_a); quantityTextView.setText("" + number); }
0
09e83b7c7b61f99d9a89ea9569fe14bd
1e9b95e28ae56d5dab298a76e633c44e
Add a top level folder to scan ErrorCode::DataConflict if folder already exists for the current DeviceID ErrorCode::Unknown for everything else
fun State.addFolder(path: String): State { val paths = folders.insert(0, path) val noSubs = paths.filter { p -> !(paths - p).any { p.startsWith(it) } } val task: Option<() -> Unit> = noSubs.contains(path).option({ { scan(path) } }) return copy(folders = noSubs, dir = path, ...
0
2691d33e4f39a29ff96fb7a324425292
690b32c425810822ebcc70dc1e6431c6
清理费用明细信息按钮的数据
namespace HozestERP.Web.ManageProject public partial class XMScalpingList : BaseAdministrationPage, ISearchPage protected void imgBtnFeeEdit_Click(object sender, EventArgs e) { foreach (GridViewRow item in grdXMScalpingList.Rows) { if (item.RowIndex != grdXMScalpingLi...
0
2b0c87d17ccf69c0e2966d33c56cbb76
03265e67ce483b49860ee5e0da9ddc5d
mean squared error of the final prediction in a sequence
def mse(self): prediction_error = self.corrected_data() - self.predicted_data() return (prediction_error ** 2).sum(axis=0) / np.float64(len(prediction_error))
1
7e804c30c53bf891592e4757d40f6235
78e37db34694d93275742e000561b7c1
Function To Display Popup Newsletter
function myFunction() { var x = document.getElementById("POP-UP"); x.className = "show"; setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); }
1
13e09dff7310753ca5a9cd2d059f5533
36b41725d2e6c1b1487b8b404c466e47
Set the value of the material_comprado.estado_tarea column for the current row. the new item value
public class MaterialCompradoModel extends DataStore public String getMaterialCompradoEstadoIdTarea() throws DataStoreException { return getString(MATERIAL_COMPRADO_ESTADO_ID_TAREA); }
0
4bde5ba72ce4fdb547289d9ffd338bbe
af212a4405194973a72d5cc9159659d2
get the weight of all outgoing edges from a given node
def output_weights(graph, vtx_idx): out_edges = graph.incident(vtx_idx, mode=igraph.OUT) return graph.es[out_edges]["weight"]
1
52847e0d12eade73eeae62d5d2f47a67
ca71bbd21a4f69bb17093a025506ccc9
roleResolver provides a resolution service for the SDS role value set
return &valuesProvider{ client: mgr.GetClient(), scheme: mgr.GetScheme(), decoder: serializer.NewCodecFactory(mgr.GetScheme(), serializer.EnableStrict).UniversalDecoder(), csi: csi, } }
0
6b25c29084c771ef99bd08f1b2b51ada
a4faddf642dad9e7df47ca0ba4f2f076
Sets {@code Primary Action} to be represented by an icon. <p>Call {@link #setPrimaryActionEmptyIcon()} or {@link #setPrimaryActionNoIcon()} to clear content. {@link #PRIMARY_ACTION_ICON_SIZE_MEDIUM}, {@link #PRIMARY_ACTION_ICON_SIZE_LARGE}.
void setPrimaryActionButtonText(String text);
0
a9679a5876105993360cfaa3d3dbda2b
5a1cb0f85e5944402f96438c1f30a03e
評価関数。静的評価関数を用いて、その状態からn手先まで先読みし、評価の最大値を返す。
namespace Grayscale.Kifuwarabe_Igo_Unity_Think.n700_think___.nn400_tactics_.nnn200_hit_____ int Evaluate();
0
ce59e080055d6caedf309d68c129d4d4
84c2bcb340c1bbe4a29d0efcb133bbaa
初始化读卡信息
var ret = GT2ICROCX.ReadCard(); if (ret == "0"){ clearAllData(); return true; } alert("读卡错误,错误原因:" + ret); return false; }
0
a1cdfa043a6c58753145e3d2d56dfc72
a501347f26d600ca1dccdebf2e672405
update occupancy grid with dynamic and static obstacles
for (int i = 0; i < this->cellRows; i++) { for (int j = 0; j < this->cellColumns; j++) { Cell* currentCell = this->getCellAtCoordinateIndex(i, j); if (currentCell->getBinaryGridValue() == 1 && !(currentCell->isAddedToObstacle())) { vector<Cell*> obstacleCells; searchObstacleCells(obstacleCells, current...
0
a34166f265500754cb4deecbd29f9424
d08c25dc371490833da95baa2a03280a
判断连续打卡次数
{ string offDutyTime = " " + GetDutyTime("OffDutyTime"); string strSql = "SELECT count(*) FROM ManualSign where UserId = '" + userId + "' and SignTime<Convert(DateTime,convert(varchar(10),SignTime,120)+'" + offDutyTime + "') and signtag=0 and SignTime between Convert(DateTime,'" + startT...
0
0b172f8c98eba13a4730ba829bf875bf
4b7148a6c3780ee3b6324f3bfef976eb
Create instance of InclusiveGateway.
public function createInclusiveGateway() { return new InclusiveGateway(); }
1
61d0d852ec3a3f9d1b91c8027b89bac8
345f5e2fb6532006fa6a91090e267a0c
A singleton that provides access to data services
abstract class ChannelImpl implements ManagedObject, Serializable private static DataService getDataService() { return ChannelServiceImpl.getDataService(); }
0
cd175ec78d93aef2b34b9daee35dee9c
9b4ae21894e3f78f9c3a9482c89e4037
Normalizes the current time in seconds (vs. milliseconds). It is practical for this assignment in the calculation of shelf life decay.
namespace GoToBed.Framework internal class SpouseBedTimeVerifier private static int NormalizeTime(int timeOfDay) { int hours = timeOfDay / 100; int minutes = timeOfDay % 100; hours += minutes / 60; minutes = minutes % 60; minutes = (int) Math.Round(minut...
0
409bbf9e3f1804bb31b4e0eccaa0d908
d9471283266921dafc3531ef76c7aba8
Integration test for the GroupsAPI.invite_others_to_group method.
def test_verify_that_you_can_create_a_new_group():
0
ad52b476de2a26086afb0ec07e33d0c7
5932352ee6683f88bcf0852ba821f79a
删除用户自定义分类,删除前先判断下面是不是有新的资源
class uc_article extends uc_base public function custom_cate_delete(){ $object['cat_id'] = $this->gf('id'); $object['cat_name'] = $this->gf('name'); $object['username'] = $this->info['username']; $this->load->model('sjs/sjs_article', 'sjs_article'); try{ $this->sjs_article->cat_delete($object); echo('1'...
0
f60571e870c4f964352b082c96f4c63b
0043d14175fe6fc1ea083045fa6995cb
查询给定仓库查询可用的Sn号
Set<String> querySnByEmployeeId(Long id);
0
081142d10c0e1370a688753493e63c49
d0240ee504a036e20b2655f8cbfb0a4c
Checks to see if bootstrap has started. Returns: True if the bootstrap has started, else False.
class AndroidDevice(object): def hasBooted(self): return self.isBootCompleted()
0
240387ec11000467702847d5e863db7d
5690d723b587ea158218d4914cfbc88c
Test for highest level above top limit.
def test_high_level_above_top_limit(): plev = 1020 top_limit = 5 col = np.array([1000, 900, 3]) col = np.insert(col, 0, plev) col = np.append(col, top_limit) with pytest.raises(ValueError): _p_level_widths(col)
1
770f407846035af425c24705f14f550a
dbc1119322352924e2cd21fe50a7b002
Sets rewardpoints discount.
class BaseRewardpoints extends \Magento\Framework\Model\AbstractExtensibleModel implements \J2t\Rewardpoints\Api\Data\BaseRewardpointsInterface public function setRewardpointsQuantity($rewardpointsQuantity) { return $this->setData('rewardpoints_quantity', $rewardpointsQuantity); }
0
903be0967d7835b3107aa8cc0e17cb65
dd57c2759fcbe5c9df0c33481dc79745
Builds hidden input according to the [[hiddenInptuts]] property.
abstract class RublonConsumerRegistrationTemplate extends RublonConsumerRegistrationCommon protected function getInputHidden($name, $value) { return sprintf(self::TEMPLATE_FORM_INPUT, htmlspecialchars($name), htmlspecialchars($value)); }
0
cda93a4bec3c8e90d7989c56c5de0e65
dda5914976a5bd537ddef0b3c97a7fe3
Map Palette dialog Next button handler
namespace Editroid public partial class ScreenControl:UserControl #else public partial class ScreenControl:Panel #endif public void NextPalette(int obj) { NextPalette(ScreenData.Objects[obj]); }
0
a8718798a2a5b622050e64ce0b58cf6e
d7d2da48a05fab21c15cc1110102d34f
Gets the fuzzing blocks for this param
const fuzzTouch = phet.chipper.queryParameters.fuzzTouch || phet.chipper.queryParameters.fuzz; const fuzzMouse = phet.chipper.queryParameters.fuzzMouse || phet.chipper.queryParameters.fuzz; if ( fuzzMouse || fuzzTouch ) { this.inputFuzzer.fuzzEvents( phet.chipper.queryParameters.fuzzRate, ...
0
c1c9d570912352a21e4d8c64e0f4dddb
1a79895c323c336592914fe062d27ac0
Calculate the partial transpose of a density matrix.
dveca, dvecb = self.calculate_dvec_spin() tpdm_ab = numpy.transpose(numpy.tensordot(dveca.conj(), dvecb, axes=((2, 3), (2, 3))), axes=(1, 2, 3, 0)) return tpdm_ab
0
38a91778c1c71146c79ae4d957409044
f4d5abd07bf53a8cf6f12f2eb4b62f2d
清除标题行集合
List<String> temp = new ArrayList<String>(); temp.addAll(titles); this.titles = temp; }
0
7b0505c9d413afa1e4eaf60bad8fac43
1cb3079619a588a2dd6c61d74595e1cc
Retrieves a collection of all room lists in the organization.
{ GetRoomListsRequest request = new GetRoomListsRequest(this); return (await request.Execute(token).ConfigureAwait(false)).RoomLists; }
1
17ec621bcf61a9f188a4d2538620a1ff
576fbe062de248dd5032302c4b5a7f8b
Amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. This value is not used if the scalable resource is an Auto Scaling group.
class OceanImportAutoscaler(dict): def cooldown(self) -> Optional[int]: return pulumi.get(self, "cooldown")
1
f9cfa92199c481687f7b5505aaa80320
cc8734fad3e32006f1462b17a08498bc
Allows the user to play the given hand, as follows: * The hand is displayed. * The user may input a word or a single period (the string ".") to indicate they're done playing * Invalid words are rejected, and a message is displayed asking the user to choose another word until they enter a valid word or "." * When a vali...
def playGame(wordList): user_input = input("Enter 'n'(new_hand) or 'r'(last hand) or 'e'(exit)") if(user_input == "n"): dealHand(HAND_SIZE) elif(user_input == "r"): playHand(hand, wordList, HAND_SIZE) elif(user_input == "e"): exit() else: print("invalid input")
0
13083c0fa7476ea376183665826e37f2
ce8bce7405d95e6188c58976cc0d2e86
Youden's J
tp = self.confusion_matrix.tp tn = self.confusion_matrix.tn fp = self.confusion_matrix.fp fn = self.confusion_matrix.fn n = self.confusion_matrix.n fp_tn = tn + fp tp_fn = fn + tp tn_fn = tn + fn tp_fp = fp + tp nis = tn_fn * tn_fn + tp_fp ...
0
a5a0325c600c348c4cc79b266c27178c
8dfac2a404422dee6e2a4e43bfa67486
thread function to write A-Z
for (int i = 0; i < 128; i++) { if (i % 32 == 0 && i != 0) printf("\n"); printf("%c", procA[i]); } printf("\n\n"); }
0
8269f4a4c6425127abd2026f66db3e54
500458bbe41f4f7813bf4fcf83353c0d
从数据库中移除角色
{ String sqlCmd="delete from Role where role_id='"+role_id+"'"; return DBUtil.SQLUtil.executeNonQuery(sqlCmd, null); }
1
189a8ac650b85cf483fe2771b1035960
909c75a7e5ba602b654af26320bc134c
Pops off list [sub] to [l]. Set max = 0 to transfer all entries. Returns a count of the number of items added to list [l].
void Col_MListSetLength( Col_Word mlist, size_t length) { size_t listLength, listLoop; Col_Word root; TYPECHECK_MLIST(mlist) return; ASSERT(WORD_TYPE(mlist) == WORD_TYPE_WRAP); root = WORD_WRAP_SOURCE(mlist); if (length == 0) { switch (WORD_TYPE(root)) { case WORD_TYPE...
0
99ddd3d608dbd6773f1bfdc37713c1ad
7a4f8e9ff8f3365597d0c1980a48f205
Method used to get information of all members of the board of directors.
public static DataTable sp_GetExecutiveMembersForAllOrganization(string dom) { string CS = dom; string query = "SELECT Organization.OrganizationName,Student.FirstName,Student.LastName, Student.Carroll_ID, MemberType.MemberName FROM Student " + "INNER JOIN Stu...
1
ec25ad7adfe279de4b3979d18bcd7eb9
c66d249ee738cde4f613059ad6269b88
System.String[] UnityEngine.SocialPlatforms.Impl.Leaderboard::GetUserFilter()
StringU5BU5D_t66* Leaderboard_GetUserFilter_m3966 (Leaderboard_t661 * __this, const MethodInfo* method) { { StringU5BU5D_t66* L_0 = (__this->___m_UserIDs_5); return L_0; } }
1
c9b58267b4a7045ccd4485d6772b3910
bf287fd4a01f8aef31f422c2867a21b9
获取账户云豆数
public class NetServer public void getAccountBlance(BaseCallBackListener<AccountBlanceBean> listener){ if (checkToken(getObserver(listener))){ netAPI.getAccountBlance().subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(getObserver(listener)); } }
1
f0dfa7fa0def5585ad6cb3d163d336c8
316fbd05b27cbdb7a2f66959dbd634f0
Function to clear line in SCI
void RoombaSerial::clean(void) { this->sciSerial.print(135, BYTE); }
1
fd089c025f5cb1b35c07aaa9a6aa3fb7
b6817459bdfedadafb0e112e0667f708
Edit leave quota of an employee
func RemoveQuota(c *gin.Context) { id, err := strconv.Atoi(c.Param("id")) if err != nil { replyError(c, _WRONG_PARAMS) return } err = models.RemoveQuota(id) if err != nil { log.Println(err) replyError(c, _INTERNAL_SERVER_ERR) return } c.JSON(http.StatusOK, gin.H{`status`: `ok`}) }
0
3d590c318aa6859d5be700defdb03d4e
feba49e5b7fc4865b8aa56f86e8dc606
Quercus function to get the field 'host_info'.
class SQL(object): def get_host_info(hid): return """SELECT * FROM Host_info WHERE `host_id` = {h}""".format(h=hid)
0
77ea20fcd1e64a0fb0fe36f1fc7c2905
0b90261f4e8283ad697a15a28ceeead2
Registered instance will have only one instance per container including nested liftime scopes.
{ $app = new Container('shared'); $app->bind('Foo', 'Tests\Foo', true); $instance1 = $app->resolve('Foo'); $instance2 = $app->resolve('Foo'); $this->assertSame($instance1, $instance2); }
1
814502675a0411b7839301c74eeac46c
7f8bac53993befc66a34e0ad2497af4b
東4局
public class NyujokenHagakiParam extends NyujokenHagakiPart public RString getTohyojoJusho4() { return this.tohyojoJusho4; }
0
03b816a79172088263eed845f6197237
1d6bf9cbe71308f2daa4ee56db1113a7
二次根式化简函数
FC yuefen(FC a){ if(a.z<0){a.z*=-1;a.s=-1;} if(a.m<0){a.m*=-1;a.s=-1;} long temp=gcd(a.z,a.m); a.z/=temp; a.m/=temp; return a; }
0
fa48e4e4cfcf94b11e442a950ad0e377
3d27d111fad3fffc5f30838d9538891e
## 2-class 化
new.data[is.na(new.data)] <- 0 train.mat <- BAGS2ClinicProb(new.data) if (nrow(new.data) > 1) { class <- colnames(train.mat)[apply(train.mat, 1, which.max)] } else { class <- names(which.max(train.mat)) } if (nrow(new.data) > 1) { prob <- apply(train.mat, 1, max) if (is.null(cut.spec)) { ...
0
7c24cdd29c21e38a766bfdb7f2b601a9
dd4d3e06d76a1bc22ac14ed7510c54c1
设置模块所属角色
namespace Agile.Web.Areas.Admin.Controllers.Release [ModuleInfo(Order = 1, Position = "Release", PositionName = "版本管理模块")] [Description("管理-版本管理")] public class VersionController : AdminApiController [HttpPost] [ModuleInfo] [DependOnFunction("Read")] [DependOnFunction("ReadUserModule...
0
2facb79181ae4769dad0428883fbf5cb
f688e19882a5c7b5a7984573058a33da
Returns the meta object for the containment reference '{@link it.csi.mddtools.datagen.MultiResFinder#getOrderSpecs <em>Order Specs</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EDataType getOrderObject();
0
d165d625faa013cb7e2e90bfc3746e41
4f1137675d4a8b07c3c5a0efee26fc25
Returns the meta object for the attribute '{@link com.stefanocottafavi.airfoil.DocumentRoot#getName1 <em>Name1</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getDocumentRoot_Name1();
1
58debb3a3d3ca6f8eb2495d19b80107c
a46a30c5525cc2821d983fdecc4b1c4a
Get attractions that offer an amenity or amenities. (Multiple amenities are OR'ed.)
class AttractionsModel{ public function getAttractions($item, $data){ return $this->db->select($item, "Attractions", $data, "or"); }
1
21521e36512b64aa3d1a2ad8a17add48
92b2f7c74d9c0affcaeb74b166ddcc98
支持本DAO类的基础配置(数据源配置、解析器配置、OR映射配置等等)
try{ MapperConfiguration cfg = DefaultRepositoryApplicationContext.getMapperConfiguration(); SAXReader reader = new SAXReader(); Document document = reader.read(inputStream); Element root = document.getRootElement(); List<Element> propertyElements = ro...
1
44c454feb2d7d22b008e5af90368c2a5
ee7bef2a2e6d88b0302662b006b4e49a
Generate reproducible random matrix for testing purposes Always generate same matrix for given seed
m, n = size mean = 0.0 stdev = 1 / np.sqrt(m) prng = np.random.RandomState(seed=seed) matrix_orth = prng.normal(loc=mean, scale=stdev, size=(n, n)) matrix_orth = scipy.linalg.orth(matrix_orth) matrix = matrix_orth[0:m, :] return matrix
1
05d17b847872d03381d8201d3007bf88
6e8546a8161120a9d28015c2699c048d
Parse toutes les relations du fichier donné pourvu que le curseur de celui-ci soit à la bonne place.
{ printf("IN %s, LINE %d\n", __func__, __LINE__); char line[MAX_LINE]; int nb = 0, i = 0; while(fgets(line, MAX_LINE, pFile) != NULL) { if(skipLine(line) == SKIP) continue; sscanf(line, "%d", &nb); break; } printf("IN %s, LINE %d\n", __func__, __LINE__); while(i < nb) { if(fgets(line, MAX_LINE, p...
1
00ff9e13e6d45b0512c3973037537b8a
4935b1000e662195d033bf745719fda0
Return states having probability 0 of b1 U b2 [ REFS: 'result', DEREFS: ]
nolinks = Configuration([Link(Word('X', 0), 'X', Word('X', 0))]) if (c1 == nolinks) and (c2 != nolinks): x = set() y = set(c2.links) elif (c1 != nolinks) and (c2 == nolinks): x = set(c1.links) y = set() elif c1 == c2 == nolinks: ...
0
eb5df07ece8f16d570fed8ad18065b7f
dec91231177792f759393ef8cf925789
The flag has set enabled overScroll. <p>是否已经开启越界回弹
public void setStretchWithOverflow(boolean isStretchWithOverflow);
0
76d641eef8a28eca3c4d99ab46a9def5
668b660a692e48221b282c8ca7ddae16
This function loads the data for all of the predefined songs
String str, title, artist, album, genre, count; try{ BufferedReader in = new BufferedReader (new FileReader("songdata.txt")); str = in.readLine(); while ((str = in.readLine()) != null){ String fileData[]; String delimeter = ","; ...
1
29b01215162d0d17e57bd341bece0d9b
31ef1e080dab2cee29fc34cb9a4b1929
AddControllersWithViewsService
{ services.AddControllersWithViews() .AddJsonOptions(options => { options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); }); services.AddSpaStaticFiles(configuration => { ...
1
a0aeeb1f7c46c0aea4440e64d97a6904
71d9816eacb6838d77341ad86f23d1bf
Synchronously executes FFmpeg natively with arguments provided.
namespace MediaPortal.Extensions.MetadataExtractors.FFMpegLib public static class FFMpegBinary public static Task<ProcessExecutionResult> FFMpegExecuteWithResourceAccessAsync(ILocalFsResourceAccessor lfsra, string arguments, ProcessPriorityClass priorityClass, int maxWaitMs) { return lfsra.ExecuteWithResour...
0
6014e6b8ca07b42a37c9a1504eec2233
f9b29eea85f45839f4c71602b83b5afc
usage: 验证交易记录页面
class TestAssetsPage: def test_click_transaction_record_04(self, d): with pytest.allure.step("点击返回icon"): action.click_element(d, "返回icon") with pytest.allure.step("点击资产页交易记录"): action.click_element(d, "资产页交易记录") with pytest.allure.step("标题对比"): test.assert_ti...
1