query_id
string
corpus_id
string
query
string
code
string
label
int64
d64ed3e9c10229648e069f56e32f4c8e
0e8ebbebae16df93f47444354d1be25f
Response
class Visitor(ParseTreeVisitor): def visitResponse(self, ctx:smtlibParser.ResponseContext): pass
1
6d2e6741a53b6cb0317ee1d5895141ed
89c2d013129e5b8fd28d2d95c1e0e454
metoda za pronalazenje najveceg integera u listi
public class LargestNumberArrayList private static int largestNum(ArrayList<Integer> listInt) { int val = 0; for (Integer currentValue : listInt) { if (val < currentValue) { val = currentValue; } } return val; }
1
92ec384333ad48f1b192223f15c1a01a
f5d58a46a24cf96350570d03767d2ce2
A convenience method to increment the current progress by the given value
namespace BIMOne.ViewModels internal class ProgressViewModel : INotifyPropertyChanged public void Increment(int value) { Value += value; }
1
a65c60b5e9797438663b4ca357ad30ff
6d0ceb44de80fd69d420d8fce9f5d278
Fetches all views from the database and returns an list of view descriptions. <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html#list-all-views">API Documentation</a>
ServiceResponse<Page<USqlView>> response = listViewsSinglePageAsync(accountName, databaseName, schemaName).toBlocking().single(); PagedList<USqlView> pagedList = new PagedList<USqlView>(response.getBody()) { @Override public Page<USqlView> nextPage(String nextPageLink) throws Res...
1
1326e81dca1866a31aac751226d179c8
8948a6199db1fda8c6eee76d3a487717
removes content from clipboard
def cut(): global content content = text.get(SEL_FIRST, SEL_LAST) text.delete(SEL_FIRST, SEL_LAST) return content
0
038ad652ace9bf91516a471ba601d03b
5ddb9d5a5b8c1af4e57ff01a32794c83
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd
function padString (target, targetLength, padString) { return target.padStart(targetLength, padString) }
0
77759f209658ce1cea83cf1c421cffa6
d03a48bb08c18a6e812ba04fcc7fada1
SYSTEM CALL: shmdt(); After a shared memory segment is no longer needed by a process, it should be detached by calling this system call. As mentioned earlier, this is not the same as removing the segment from the kernel! After a detach is successful, the shm_nattch member of the associates shmid_ds structure is decreme...
int error = 0; if (shmdt(shmaddr) == -1) error = errno; if ((shmctl(shmid, IPC_RMID, NULL) == -1) && !error) error = errno; if (!error) return 0; errno = error; perror("Problem detaching shared memory."); return -1; }
1
a80d58fdf8d5f8ba59274482b8fae373
8218c6d3f84fdab25173a25df391f028
Determine the concepts (capped to 10 suggestions) that appear in a list of sources.
class HeritagedataProvider(VocabularyProvider): def get_top_concepts(self, **kwargs): return self.get_top_display(**kwargs)
0
d2bad7c2d377b80006eb8e41eebc15d0
5d84f10d90b892afedfdcac321c6df35
Query ID is the first two bytes of the message
class DGTL_GTL_Decoder(DGTL_Decoder): def msg_id(self): return struct.unpack('<H', self.pkt.payload[0:2])[0]
1
0934619161070be4ba8c8fa9f3f6c72a
d13ed8b4a7cef51d6ecbcdbc15d3078b
Gets the allocated RAM for VM.
public abstract class RamProvisioner public abstract int getAllocatedRamForVm(Vm vm);
1
5644cac0548a0740b1e588144d9ebbc4
67a0ee8e69bd6a208d8c8851e51e753a
设置actionBar的背景色
public class Welcome extends Activity private void setUpActionBar() { ActionBar bar = getActionBar(); bar.setBackgroundDrawable(new ColorDrawable(Color.rgb(144, 144, 144))); }
1
4921307732fac86ae4d30a6398a6d5df
b86ccb5a1d51424bd24ebda355041a31
Converts a number of months in days.
function monthsToDays (months) { return months * 146097 / 4800; }
1
e9f3e3c5d3afca81c92a178fac9051ce
43b1792e7e6bce6bffddd4c628972e3f
Retorna a lista de distrações.
class Filter public function getDisturbance() { return $this->disturbance; }
0
b8deb77af30838aaacff4b1aea332265
30c6efd7f38b320a777beecdf9b3949d
Has the same semantics as the UNIX 'cp' command, when used on directories.
def cp_r src, dst Report.run_capturing_output('cp', '-r', src, dst) end
1
845d6b91e5805b93bf2a68d2b6ef0560
73286d04e3065f5587271e1cd8bd452d
For comparison in set
class State(object): # State in earley algo def __eq__(self, other): return (self.name, self.production, self.dot_index, self.start_column) == \ (other.name, other.production, other.dot_index, other.start_column)
1
b402068dd5e1378e1104bcd84aabf7e5
04c5ea0804bfe32a88a46e25678830e0
This method updates the frame by having it re-drawn.
public class TriangleDraw extends JComponent public void nextFrame() { repaint(); }
1
eda75c4e3a9b3635bb299b1e1cd5058a
58a4e6240ce023eefcdb64c93d56bb3e
日期转换成模糊时间
{ if($datetime == "") { return ""; } return date($attr, strtotime($datetime)); }
0
c85ce8bdd0b25310d330644e7e9f0679
3741dd2059be351b2853a78997ea3bc4
A function that iterates through a string called word and returns an array of indicies where a target (letter) appears.
var arr = [] for(var a = 0; a < word.length; a++){ if(word[a] === word[a].toUpperCase()){ arr.push(a) } } return arr }
0
8fd333ba3866e82b1d2356c27c926f27
701a3f330252fbd51064073a28b0b3c1
Adds a piece to the board. Returns false if this cannot be done.
{ if(x < 0 || x >= board.GetLength(0) || y < 0 || y >= board.GetLength(1)) return false; if(board[x,y] != Piece.Null) return false; board[x,y] = Turn; return true; }
1
20c01ccbf24cc992db030472b1f651f3
88feedb9e51196c75c1f203eb9dc0115
Set Page Orientation For Document Of Unknown Format
if (orient.equalsIgnoreCase("portrait")){ p.setSize(W = 612, H = 792); p.setImageableArea(36, 36, W-36 ,H-36); pgFormat.setPaper(p); reconfigurePage(); }else { if (orient.equalsIgnoreCase("landscape")){ ...
1
d183c697f9d86ed64309d7bcc6265a9d
1d8d26897d154759e2f1707ed28e784a
Returns the socket option data. Returns: Bytearray: the socket option data.
class MonthlyData(PVGISData): def option(self): return self._options
0
6ae66a14c050c2186119608552207e62
ce77729c0634b6d69e62a2eb111bcaac
renvois la liste des identifiants des enfants
public class JDBCParentDAO implements ParentDAO{ @Override public List<Integer> getChildsList(int idParent) { List<Integer> childsList = new LinkedList<Integer>(); String tableName = "FAMILY"; String columnName = "IDCHILD"; String condition = "IDPARENT = '" + idParent + "'"; ResultSet rs = DatabaseUtils.quer...
1
1d195484aaae76bfdc748c7f02e500ec
055728c262de99e92c6a3e9392e4dcd4
Funkcja podglądu wybranej broni
class GunsUserController implements ControllerProviderInterface public function showAction(Application $app, Request $request) { $gunsRepository = new GunsRepository($app['db']); $gun = $gunsRepository->findGunById($request->get('id')); $dictionary = new DictionaryRepository($app['db']); ...
1
8a97a55ee5aa407b780b7e8d424b2583
d770a44bfb4e558c7885d5c12fbbcbc3
Resolve the name of the intent from the action name.
action_words = action_name.split(" ") package_name = action_words[:-1] module_name = action_words[-1] + "_" return "openpipe.actions." + (".".join(package_name + [module_name]))
1
abac6d319fd8dbf5045fd42471d00784
ba0e469b513f2e6f56eb811450dd33ab
# get percentage who have an internal K
DOW = TRUE) { Ind <- test %>% group_by(ID) %>% summarise(Tpos = sum(result[result == 1]), Fneg = n() - Tpos, Ind1 = Tpos/(Tpos+Fneg), Ind2 = Fneg/(Tpos+Fneg) ) result <- inner_join(test.period, result, by="DOW") result$Mark <- 0 for(i in 1:nrow(test)){ result[ result$ID == test$ID[i] & ...
0
0796a37c50dfa46c37d7e3d9381d0fde
bdab95be7ea0bddcf4f1b62ad757b361
Checks that the actual <see cref="Hashtable"/> contains the expected value.
{ foreach (var entry in expectedValues) { Assert.AreEqual(entry.Value, response.GetValue(entry.Key)); } }
1
336d1de3930c574fe74fc423265b3f05
7f2a7db1a38f014a6d811ddcb44c3bf7
Funcion que permite crear un aire acondicionado.
{ $materiales_ls=['0' => 'Seleccionar'] + Ca_materiale::lists('material','id'); $categorias_ls=['0' => 'Seleccionar'] + Ca_categorium::lists('categoria','id'); $documentos_ls=['0' => 'Seleccionar'] + Ca_aa_doc::lists('doc','id'); $bnds_ls=['0' => 'Seleccionar'] + Bnd::wherein('id', array('1','2'))->lists('bnd'...
0
f9a7974b36a5facd2f0b4c0db819a002
6e5fad24eeb7b35c39f19a870ea531b1
When the app is initialized, the cubicles are retrieved
export class PuzzleBoardsComponent implements OnInit, IAscentisElement ngOnInit() { this.storePuzzleBoards(); }
0
fed8a16b47b31ab1ed7cdef54b829324
17872231f7e77d8c16fb08e30075d71b
This method visualizes all generations on a scatterplot
fig, ax = plt.subplots(1, 1) fig.suptitle(title) xvals = [x for x in range(generations)] tickSpacing = 1 ax.xaxis.set_major_locator(ticker.MultipleLocator(tickSpacing)) plt.xlabel("generation") plt.ylabel("fitness = cellular volume in micron^3") plt.plot(xvals,yvals) fig.set_tight_la...
0
d5ed51d20a19bbb9c50ef731b3e9b3c9
7f61448ad6da3ef0f9cb03f40c5be655
format it without spaces or extra chars
cases like (1)
0
3b0df82cf90779d2fa5db81a7a6b0ed7
0ba2204f31e030d8f9479a8d1033dd82
队列类型的通道,可以缓存消息;<br> 在缓存消息没有达到上限时,消息发送者将消息发送到该通道后立即返回.如果缓存消息数量达到设定的容量,则消息发送者发送消息后会被阻塞,直到消息队列中有空间为止或者超时;<br> 对于消息接收者正好相反,尝试获取消息时,如果队列中有消息会立即返回,如果队列中没有消息则会一直阻塞直到超时,需要设定超时时间,不设定的话一直阻塞;<br>
@Configuration public class RabbitMqConfig @Bean Queue queue() { return new Queue(QUEUE_NAME, IS_DURABLE_QUEUE); }
0
291633ec87901b275de6ce283abb7e15
cf0f5eedb03707ad4bc809ee3a821d7e
Create a prepared statement using the given hive sql query
public class Connector public PreparedStatement doPreparedStmt(String query) throws SQLException { PreparedStatement prepstmt = con.prepareStatement(query); return prepstmt; }
1
8022a5e7333a865a7c8b21d59b99b806
941e267f41d75d4d611d26f6105b3f65
Verificar se a conta pode emitir boleto
if len(self.account) > 7: return False numbers = [number for number in self.account] sumSeq = 0 for i in range(len(numbers)): weight = [2, 7, 6, 5, 4, 3, 2] number = int(numbers[i]) sumSeq += (number * weight[i]) return Modules().mo...
1
c5cb0b39332e17d021dd57dbaf281a99
a11013f84e91c456621974a46146a462
修正供應商的資料
{ log.Info("form:" + form.Count); string msg = ""; TND_SUPPLIER sup = new TND_SUPPLIER(); sup.SUPPLIER_ID = form.Get("supplierid").Trim(); sup.COMPANY_NAME = form.Get("company_name").Trim(); sup.COMPANY_ID = form.Get("company_id").Trim(); ...
1
9098ecdb7f9902340c610801fb576d8e
db17e9add5861d91d77d63fc7e16d927
call record count needed function returns false.
func TestNonDispatch(t *testing.T) { r := newMockRecorder() r.RecordEvent(RKFake, nil) if r.callMap.Read != 0 { t.Error("the function to record read events was called when it should not have been") } }
0
673a93582de3c049bcd34508fd23e808
ed9f5626aad4b0f86adb2276c7b58290
Abstract method which should be used to receive frames sended by the drone
class BaseInterface(object): def receive(self, data): raise NotImplementedError
1
3c041e56706bdf8d00e35eea69eac676
b307e2fb52e5141b6e3ca5437c4377ca
trả về mã điểm cuối trong table DIEM
if (Data.aMarks.length == 0) { return null; } return str2pos(Data.aMarks.get(Data.aMarks.length-1)); }
1
80a7671107c8caa7b69cdb2db9a66fd8
2365714c1a4ad3a83c12d4d824200d9c
Funció de la mort del rei. Final de la partida
function endGame() { ghosts.forEach(g => clearInterval(g.interval)); clearInterval(interval); setInterval(() => { document.querySelectorAll("#board>div")[(position.v*19)+position.h].classList.toggle("comecocos") }, 1000); }
1
5002876239b1be3df50a4097315ff51b
ebac22d139fb80d94409bc011f1cacd8
将选中的文本替换为指定的html。该方法一般用于html编辑器
var datas = data || {}; datas.contents = this.selectedText; this.replacedText = parse(this.tmpl, datas); replaceInEditor(this.editor, this.selPos, this.replacedText); this.selectedText = ''; this.replacedText = ''; this.tmpl = ''; return this; }
1
546e336e0407bca5ae90491f21685a82
f6e7f59eb5d2d55a0c809c5653edd2d2
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success. > **Note:**Each administrator in a chat generates their own invi...
url = self.REQUEST_URL + 'exportChatInviteLink' parameters = {'chat_id': chat.id} result = requests.get(url, params=parameters) result = json.loads(result.text) if result['ok']: return result['result'] return None
1
43747aae91daff473118a9c7058b1b7e
d69d0ccbe347c69f5abb5ddc10dec98b
Является ли символ гласной буквой
class RussianStemmer implements StemmerInterface private function isVowel (string $char) : bool { return (strpos(self::INSTRUCTION['vowel'], $char) !== false); }
1
6dc1fc7a94940accdf206b04179f96be
63b073560648a9cb2bed608488e12067
Performs a write operation against the model.
Task WriteAsync(object? model, HttpContext httpContext);
1
44cda87fbd8c21423dc7249fab9e250f
1f395689e93e094946cc7f7f0ba57701
The personal assistant stops the program and shuts down the computer
def shut(): pyttsx3.speak("Thanks for giving me your time") exit()
0
e3ce77fe66ff38503fccd1d5b79daa26
03d9bb7448599732f2f7f3aca780e4ed
Test tables with italic text
doc_element = self.html_body.find( ".//tr[@id='TestLibrary.py.Library-Keyword-One']//td[@class='kwdoc']" ) doc_html = str(ET.tostring(doc_element, method="html").strip()) assert "<b>bold</b>" in doc_html assert "<i>italics</i>" in doc_html
1
c552b6c7e89eb418a1ebeb4b7ea48891
fa9c8bf5b8017a3d8f99ea00bb5673b5
Format to submit to OnPrem Console API
def _server_table_format(result): from collections import OrderedDict return OrderedDict([ ('name', result['name']), ('resourceGroup', result['resourceGroup']), ('location', result['location']), ('administratorLogin', result['administratorLogin']) ...
0
ffa8cc0cbcf6af8f9b7845366aa5e421
649fadb26e13cdf0d6f89416554d9a45
通过阿里云接口返回VPC内路由表信息,更新到数据库
ctx := context.Background() listRTRequest := core.ListRouteTablesRequest{ CompartmentId: &config.CompartmentID, VcnId: VcnID, } listRTResponse, err := c.ListRouteTables(ctx, listRTRequest) if err != nil { printf("Route table list error: %s\n", err.Error()) } cidrRange := "0.0.0.0/0" rr := core.Rou...
0
b98bab791c6d22653bcad53cf6a32162
091a014c7b4a3c41849f308eb74cd6d0
busca um registro igual ao enviado por parametro
$this->db->select(); $this->db->from( $this->table ); $this->db->where( $nome_campo, $objeto->$get() ); if ( property_exists( $objeto, 'removido' ) ){ $this->db->group_start(); $this->db->where( 'removido !=', "1" ); $this->db->or_where( 'removido IS NULL' ); $this->db->group_end(); } $query =...
1
15be6c987164a0675bd6f5d94c4b2673
a71a3593345a14fae8e4e57a07106bd1
Convert any predicate on a request into a router
public class ControllerRequestMapper implements RequestMapper @Override public Optional<RequestHandlerChain> getRequestHandlerChain(HandlerInput input) { if (predicate.test(input)) { return requestMapper.getRequestHandlerChain(input); } else { return Optional.empty(); ...
1
7316f776f701ef7bd52e88a4453ea4de
d208804543f10114ce546eecbdcea2a7
Calculate sensible heat
def Hsat(x,T): return CP.PropsSI('H','T',C2K(T),'Q',0,librname(x))
0
bc1d63a7f7723cd50b93464b2fd2e730
cbd5f95f2e52385635ee34fe7c80cc15
移除找parent的辅助红线
function removeLineNode(){ for(var i=0;i<linkArray.length;i++){ var nodeA=linkArray[i].nodeA; var nodeZ=linkArray[i].nodeZ; var temp=nodeA.getBound(); var width=temp.width; linkArray[i].selected=false; if(width==7){ nodeA.setSize(1,1); nodeZ.setSize(1,1); nodeA.x=nodeA.x+3; nodeZ.x=n...
0
082cc282c6060c841d43db6ece2bed9e
7dabbbd15d510113310925c8ad9e7288
Get a default released at value, if any is available
class Judd(callbacks.Plugin): def default_release(self, channel): return self.registryValue('default_release', channel)
1
d72401114f2aafbc8a10d9d37ac73b79
e1c878b92767ee12583c35183cf76e39
根据发布终端查找稿件
@Service @Transactional public class ManuscriptServiceImpl implements ManuscriptService{ @Override public List<Manuscript> findManuscriptByColumnId(String columnId) { return manuscriptDao.findManuscriptByColumnId(columnId); }
0
f7fea7f64a420cabf72879114c327fbe
8a105a19c43edb2830d34c42a9c65c72
清空角色内用户
void CDevilSquare::ClearUser(DEVIL_SQUARE_LEVEL* lpLevel) { for(int n=0;n < MAX_DS_USER;n++) { if(OBJECT_RANGE(lpLevel->User[n].Index) == 0) { continue; } gObjMoveGate(lpLevel->User[n].Index,27); lpLevel->User[n].Index = -1; lpLevel->User[n].Score = 0; lpLevel->User[n].Rank = 0; lpLevel->User[n].R...
1
e422fa346097454979aa72f247da3ebe
0248e897e4af3246b9f6b39fd031590d
Creates the specified sensor type.
@Implements(SensorManager.class) public class ShadowSensorManager public void addSensor(int sensorType, Sensor sensor) { sensorMap.put(sensorType, sensor); }
0
29676ae6e98cb122379b1e4683ae6226
b530144b9ffd49e7a994bdf7d7dd163a
攻击方邮件
{ sort(m_BossDamageList[bossID].m_BossDatas.begin(), m_BossDamageList[bossID].m_BossDatas.end(), SortByBossDamage); for(size_t i = 0;i < m_BossDamageList[bossID].m_BossDatas.size();++i) { bool isLastAttck = false; if(m_BossDamageList[bossID].m_BossDatas[i].charid == m_BossDamageList[bossID].m_CharID) { isLa...
1
808b2f8d13f2c829eacc3dca11b0ec17
f93320d9f175e58e6c2889cbdad36e9e
gethtmlinformercode/
def getInf(path, code): if not os.path.exists(path+'jsfile/'+str(code)+'.js'): print(path+'jsfile/'+str(code)+'.js 不存在!') return f = open(path+'jsfile/'+str(code)+'.js', 'r') jsContent = execjs.compile(f.readline()) inf = { 'name':jsContent.eval('fS_name'), 'code':jsCont...
0
7adbe4b5cb28f848e598d6dc62953c36
4be44f80885652d5be1f1c7d103a579b
Get Target instance access type, which currently only supports cdb (TencentDB instance)
public class Address extends AbstractModel{ public String getInstanceType() { return this.InstanceType; }
0
1248fbd79de3a742863b6bd66280b677
78d346b04338c182e44ffcf970663590
GPUメモリを占有している変数の一覧を表示する関数
void PrintAvailableMemory() { size_t free_byte ; size_t total_byte ; cudaMemGetInfo( &free_byte, &total_byte ) ; double free_db = (double)free_byte ; double total_db = (double)total_byte ; double used_db = total_db - free_db ; printf("GPU memory usage: used = %f, free = %f MB, total = %f MB\n"...
0
84edf7b261ee6b2c3fcc0fde7ea03b2a
a734fbe804a4c31d0b52e301588f61f5
请求理财列表
public class LoanRepayMenuActivity extends LoanBaseActivity public void requestLoanList() { BiiRequestBody biiRequestBody = new BiiRequestBody(); biiRequestBody.setMethod(Loan.LOAN_ACCOUNT_LIST_API); Map<String, String> map = new HashMap<String, String>(); map.put(Loan.LOANACC_E_LOAN_STATE, "10"); biiRequestB...
0
73e48d48ea56e65bfeefb259c4741a74
a16c4b29cc8167e4245f3868329a8bf8
不出现cmd窗口
if (substr(php_uname(), 0, 7) == "Windows"){ pclose(popen("start /B ". $cmd, "r")); }else{ exec($cmd . " > /dev/null &"); } }
1
167ac6026e3ba075e3163330deb81248
d510bda297c84cfd4361831b480d4c63
Kontrola definičního oboru, příprava funkce ln, pomocí které se počítá log.
{ double a; printf("Enter a number: "); scanf("%lf", &a); if(a<=0.0) { printf("Math Error\n"); } else { result = log(a); printf("\nResult = %lf", result); } }
1
4cd0cd71b7052328e5a9c7fe7291113d
0ebb1424b18abd3e4d6e2fc2ab932b49
当前库中执行zUnionStore命令,将多个键的并集存入到目标键中,并设置过期秒数后返回存入的个数</P> 注意:此命令执行成功后,目标键中原有的值将全部会被覆盖掉
Long sUnionStore(String dstKey, String... keys);
0
02995ed9379566b15017f000892e0538
5872516faa00aeed775df8df40818853
Fetches the stored started boolean.
namespace BuddyBot.Services public class BotDataService : IBotDataService public bool hasCompletedGetStarted(IBotData botData) { return botData.GetValueOrDefault<bool>(DataStoreKey.HasCompletedGetStarted); }
1
aac9e2d681610517ed78ab1f81f48228
0b7b33d0db36484e783c1118f40b291e
获取班级每个学生段的人数及占比
ClassGrades ClassGrades = new ClassGrades(); List<ClassGradesCard> ClassGradesCardList = classGradesCardService.listClassGradesCard(); for (ClassGradesCard ClassGradesCard: ClassGradesCardList ) { String classGradesId = "CGI"+ ClassGradesCard.getClassGradesCardId(); ...
0
274e5f882318eb7a8680587324f826a2
3c21711ec15d21fadcdbc4cb52520f98
Image and mask resizing, bboxes normalization and clipping before training.
class _Coco(data.Dataset): def _prepare_train_single(self, index, img, label): assert (img.shape[:2] == label.shape) img = img.astype(np.float32) label = label.astype(np.int32) if self.pre_scale_all: assert (self.pre_scale_factor < 1.) img = cv2.resize(img, dsize=None, fx=self.pre_scale_fact...
1
085cabcbd8710049f4b62d324f9d45b5
89806baec8e23c92e4c2d307561fbd22
Set model to collect IPs.
class c_ip extends CI_Controller public function __construct() { parent::__construct(); $this->load->model('ip/m_ip'); }
1
234393fd66cfdfd8723fc8436d13deac
de8f3f53c4bdaa0516cfa58b3fe83245
Returns the meta object for the attribute '{@link org.eclipse.e4.tm.widgets.AbstractSelection#getSelectionEvent <em>Selection Event</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
Object getSelectionEvent();
1
5283f05e4532d34a65da55c13da9782a
24dfd4903bdcb31b3c08671afadc22a1
Returns the meta object for class '{@link fr.obeo.dsl.designer.sample.flow.Fan <em>Fan</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getRelation_FanOut();
0
0d16d036a0d44901c48b931f94fa7afb
f340265d5d74f22dc913e137612c1994
Выполняет поиск отелей на основе переданного поискового запроса
{ var builder = new UriBuilder(AppSettings.HotelsEndpoint); builder.AppendToPath("Hotels/search"); builder.Query = $"cityId={cityId}&rating={rating}&minPrice={minPrice}&maxPrice={maxPrice}"; var uri = builder.ToString(); return _requestService.GetAsync...
1
dda1870af5f8c8091627e6ec63803939
b2fd2663cce26514955e670081958a48
Size is 0.
impl Size pub fn none() -> Size { Size(u64::MAX) }
0
147cfa5709843ff645aa44be5805a89e
0ff54a8c8efab7b33c6293977085ae68
Schedule a resumable task and check that it gets properly resumed and complete after simulating a synapse restart.
class ManagerTest(BaseTestCase): def test_resume_running_second_level_with_previous_retry(self, mocked_get_jobs): mocked_get_jobs.side_effect = [ [{"tags": ["NAME=test", "FLOW_ID=34ab"]}], [ { "tags": ["PARENT_NAME=test", "FLOW_ID=34ab", f"TASK_ID=jo...
1
86f846d99855c6e9cff1e889f27b3712
c44c00c48ee4f05ca497b2d7c8dd4f43
Read the span of the twist (local X) axis.
impl GenericJoint pub fn local_axis1(&self) -> Vect { (*self.raw.local_axis1()).into() }
1
f7ddc08c219cbd84274fc2e148063b6c
5283766e6d01099a23b181fefb0997ec
Scan interface for available Crazyflie quadcopters and return a list with them.
_start_beacon() t0 = time.time() while True: discovery = _rpc("discover_all", 0.5) if discovery: return discovery if timed_out(t0, wait_for_s): return None
1
16d0c48bd61275295cb2803df050067b
3da986f7870df7460f9a5717fb44e6d8
Méthode appelée lorsqu'une aide est nécessaire lors de la deuxième phase d'authentification
public class FingerPrintAuthHelper @RequiresApi(Build.VERSION_CODES.M) protected class FingerPrintAuthenticationListener extends FingerprintManager.AuthenticationCallback public void onAuthenticationHelp(int helpCode, CharSequence helpString) { callback.onHelp(helpCode, helpString.toString()); ...
1
11241d95c1852de5239b1da7187e3359
e872cacf1c796218f7f336cd537d9570
pk10开奖动画
function newAnimate(element, target) { clearInterval(element.setId); element.setId = setInterval(function () { var current = element.offsetLeft; var step = 100; step = current < target ? step : -step; current = current + step; if (Math.abs(...
0
cb91352ef75b85cc94129011d071c75a
38e2be57abd1c21a10553ea93eefb85c
Get the depth of item by getting all its children items' depth, and finding the maximum
{ var startDepth = Items.Count > 0 ? Items.Min(i => i.Z) : 0; return startDepth; }
0
92351f39e4f23c5b06d549dba9e9649d
ef5d997add02e6afdfc11eff45b94b00
Plots the Silhouette Score for various numbers of clusters in the K-Means clustering algorithm. Displays a potential 'optimal' number of clusters.
n_cols = len(cluster_lists) fig, axs = plt.subplots(figsize=(4*n_cols, 4), nrows=1, ncols=n_cols) for ind, n_cluster in enumerate(cluster_lists): clusterer = KMeans(n_clusters = n_cluster, max_iter=500, random_state=0) cluster_labels = clusterer.fit_predict(X_features) sil_avg = silh...
1
32f3a86fe2b64e44a8ebbef7f205bb72
5e516458ed75a466b68f339af6ae4ff7
If shown history <= 24h, show time only. If bigger than 24h, show date only.
function adjustDateTimeFormat(){ var format = ($("#pollLast").val() <= 86400000 && $("#pollLast").val() > 0) ? timeformat : dateformat; $.each(charts, function(index,chart){ chart.timeformat = format; chart.plot(); }); }
1
1526d77b1583331f8dcd3c984bb3f85b
812579bdefd0e100e975eaa3694c8359
Gets the state of all orchestration instances.
namespace Microsoft.Azure.WebJobs.Extensions.DurableTask public class DurabilityProvider : IOrchestrationService, IOrchestrationServiceClient, IOrchestrationServiceQueryClient, IOrchestrationServicePurgeClient public Task<OrchestrationState> GetOrchestrationStateAsync(string instance...
0
f7737cd9f6a2e0eb5702712b3d24f95f
0e860dc965c856ac4c61dc133bc940fc
Returns bundle info that will be passed to gulp/grunt.
await fse.mkdirp(path.join(__dirname, 'build')); const configPath = path.join(__dirname, 'webpack.config.js'); const statsPath = path.join(__dirname, 'build', 'stats.json'); await exec(`webpack --config ${configPath} --json > ${statsPath}`); const stats = await fse.readJSON(statsPath); const assets = new Ma...
1
650eb403b59e56ff58cc5f796cf32896
ff8ceea2dd908d484130b94c4cef8616
获取佣金发放历史
$column = self::outputCommisionListQueryColumn(); $sql = self::constructCommissionSql($column, TRUE); $rows = D()->query($sql, $uid, $level, (1==$status ? '1,2' : $status), $pager->start, $pager->realpagesize)->fetch_array_all(); foreach ($rows AS &$r) { $r['paytime'] = date("Y-...
1
1ed9161c820c68f0106f8375efad5f91
e9434116a60ab4e337320190b0630466
根据商家id和分类id 获取对应的分类数据 (如果Cid为0,则读取一级分类,否则读取当前分类的所有子节点)
{ List<YSWL.MALL.Model.Shop.Supplier.SupplierCategories> cateList = YSWL.MALL.BLL.Shop.Supplier.SupplierCategories.GetAllCateList(suppId); List<YSWL.MALL.Model.Shop.Supplier.SupplierCategories> categoryInfos = null; if (Cid == 0) categoryInfos = cateList.Where...
1
2e99392a636c41387be6911dba55a4cf
5923b04b565effe7ba3c99e400e873cb
#Write function for rounding numeric columns
numeric_columns <- sapply(x, mode) == 'numeric' x[numeric_columns] <- round(x[numeric_columns], digits) x }
1
b38fb2012be84dc3265ea69030663cde
51deb2f940719fc7b9422b522be77aed
Does data grid has any row?
return this.data === undefined || (this.data && this.data.getRows() && this.data.getRows().length === 0); }
1
f934eb2647223a22d2aae896dbaffc3f
046d5288425152744052b265a810ce8f
주문 신청 URL이 제대로 할당되었는지 체크
{ if (socket.PayOrderId == null) return false; else return true; }
0
826b5122222694d87cdc721473ea0924
ac1c74b94aa4a73e453f29293d356fd4
查询是否冻结账户
public void testCheckFreeze() { Function function = new Function("frozenAccount" , Arrays.asList(new Address("0x763b78bc83ef328a252b25b56ba2a7fe49774b72")) , Arrays.asList(new TypeReference<Bool>() { }) ); org.web3j.protocol.core.methods.request.Transaction transaction = org.web3j.protocol.core....
1
58eb8e991fa6dea47c6d1cc9507d86e3
2624eed434bc257381b344a4589d6853
产生比特币地址账户
namespace FISCOBCOS.CSharpSdk public class AccountUtils public static AccountDto GeneratorAccount(string userName) { var ecKey = Nethereum.Signer.EthECKey.GenerateKey(); var publicKey = "0x" + ecKey.GetPubKeyNoPrefix().ToHex(); var privateKey = ecKey.GetPrivateKey().Remov...
0
0f5fc354d97d95119cfa41fa9ebdfad7
74a0dffc46a92c997a19ec5149920d38
Constructor; stash state.
class ParserState public function __construct() { $this->encodingConfidence = null; $this->insertionMode = ParserInsertionMode::INITIAL; $this->isPaused = false; $this->tokenizerState = TokenizerState::DATA; }
1
856aaf9ee3f7b3a36692a5819255ecf6
99214dde531f8abe834b32adcb3d845b
获取数据库中的展示内容---添加了按某个属性进行排序
public class bosocontent : System.Web.UI.Page public DataView LoadList(string cin, string[] field, string sort) { if ("" == cin) cin = null; bosomaindata myConn = new bosomaindata(); SqlConnection Conn = myConn.getDBConnection(); DataSet ds = new DataSet(); SqlDataAdapter Cmd...
1
32d65a796bc6ff618289a43820077e7b
186015106ad3ef7e865fdb9186bb329d
Adjust a list of exdates to ensure they specify the times and then properly format them for the EXDATE rule, so things like "daily at 2pm except for tomorrow" will work properly
def formatlist(mylist): index = 0 while index < len(mylist): mylist[index] = re.sub(r'[A-Z]*=', "", mylist[index]) mylist[index].rstrip index += 1 mylist[0] = formatdate(mylist[0]) mylist[4] = int(mylist[4]) mylist[5] = int(mylist[5]) return mylist
0
16610a3277f93238821fcd2ec94d7bbf
5f108110c3f1de94c7b170f315e66c2c
make circle and ellipse less jagged
void ofApp::setup(){ ofBackground(0); ofSetCircleResolution(100); }
1
3f7347149697ea41085b2d4695b5e04a
facf859d1919de32828dd75ffea6d430
ATIVGASaveScreen -- This function blanks or unblanks a VGA screen.
static int ffb_blank(struct ffb_softc *sc, u_long cmd, u_int *data) { struct vcons_screen *ms = sc->vd.active; u_int val; DAC_WRITE(sc, FFB_DAC_TYPE, FFB_DAC_GSBLANK); val = DAC_READ(sc, FFB_DAC_VALUE); switch (cmd) { case WSDISPLAYIO_GVIDEO: *data = val & 1; return(0); break; case WSDISPLAYIO_SVIDEO: if...
1
0db32da331e872de22e06eff6238ac79
eb358d67ef4195923b1c48de620cf82d
Return all menus (non global) by type
public function allMenu();
0
95631836acfc585c75957b07a9ae64d8
ff7bd43ce9dd48c6b04e6c99f8daf521
Function for on the fly changing the amplitude units of the waveform Raises exception if amp unit is not one of: uV, mV, V
class DrawGraph(object): def change_amp(self, amp: float): self.line_set[self.current_waveform].y *= amp self.__check_plot_details()
0
eb0fa9d7a23ce4abcca24a54b2eaa568
6043934640e52a6e4553ddfda594880f
设计稿尺寸转rem
function remset(designwidth) { let ddsFontsize = document.documentElement.clientWidth / (designwidth / 100) < 320 / (designwidth / 100) ? 320 / (designwidth / 100) : document.documentElement.clientWidth / (designwidth / 100); let ddsFontsizenew = ddsFontsize > 100 ? 100 : ddsFontsize; document.documentEleme...
1
84772e26adf2b01b50d394d21e521537
f09c59ae75436e547734f6fb3f633e13
Tests the correct elaboration of visible rooms from the standpoint of a player
assert self.room.return_appearance(self.character) == ( "|nLocation|n\n" "\n" "|wExits:|n |nwest|n, |nNorthwest|n, |nsouthwest|n, |nnorth|n, " "|nuP|n, |ndown|n, |nsouth|n, |nnortheast|n, |nSoutheast|n, " "|nEAST|n, |nSomewhere|n" )
1
93dfc2191ee5e72dc6cdb7ca3ce51604
5200f5b58dfc030f7887c9823ce7cd38
搜索包含指定关键字的曝光数据
class Ceic(object): def search_insights(keyword=None, **kwargs): instance = Ceic._get_instance() if keyword is not None and keyword.strip() != "": kwargs["keyword"] = keyword search_insights_method = instance._insights_facade.search_insights result = instance._make_request(se...
1
3fa57e9d76617e6ddff88f18999f3d90
f81ebf6b8505b008095f34b3d65aa4a5
プレイヤーが電源をつけたり消したりするとき用
if (onOff) { myRB.AddForceAtPosition(-transform.up * forceScalar, transform.position, ForceMode.Force); mySR.color = new Color(mySR.color.r, mySR.color.g, mySR.color.b, Random.Range(.2f, 1f)); myEM.EnergyConsume(energyConsumeRate * Time.deltaTime); } e...
1
9f908fa985e0410ce89b9d0606a7f332
a04de999131625f4ae3ba1f8e7768315
Generates a list that's the summation of all given pick points May be inaccurate due to some teams receiving more entries than others and the different rating scales of each scouts (some may tend to give higher ratings, etc.) Generally representative of robot ability. TODO Make the points an average rather than a summa...
for team in teams: if team.index != self.index: self.pick2 += team.pick1 * (self.pick1/(1-team.pick1))
0
73611ae254960ba3776d49dc1f15e180
b04751034a690327a54f9399ec500ec7
Get sleepiest guard by total duration asleep
current_id = current_minute = current_max = 0 for guard_id, timetable in self._guard_dict.items(): max_minute = self.find_most_slept_minute(guard_id) max_minute_count = self._guard_dict[guard_id][max_minute] if max_minute_count > current_max: current_m...
0