query_id
string
corpus_id
string
query
string
code
string
label
int64
b13ce755309ae75fe9376facd61b00e0
5cae3e9e1fe71292b2e99a323a3702c1
Function to log the bugs inline ie. as the crawling happens
function write_bug($content){ $fp = fopen('debug1.txt','a+'); fputs($fp,$content ."\n"); fclose($fp); }
1
fac487a4d67938e9ab610729570c7cee
ea8f1aa2564f8079ac6cff5337b95bfe
Metodo que retira o primeiro objeto Atendimento da fila
DataType * Remove_dado_MODOFILA(Lista * lista){ Item_lista * Primeiro = lista->primeira; DataType * aux = NULL; if(Primeiro != NULL){ lista->CountFollows--; aux = Primeiro->DadosItem; lista->primeira = Primeiro->Proximo; if(Primeiro->Proximo != NULL) Primeiro->Proximo->Anteri...
1
967be293ad3740104d8aa8e812fcd96e
c95739ef5586ffe7c5bfcf5a7046c757
Remove the last SP colormap
cmap = original my_cmap = cmap(np.arange(cmap.N)) my_cmap[:,-1] = np.linspace(0.1, 1, cmap.N) my_cmap = ListedColormap(my_cmap) return my_cmap
0
8c2ce28a91efbc6e47d63ca8ca375697
6c77a0928b724ae7604f336326225abe
在节点列表中, 过滤指定包名的节点
val result: MutableList<AccessibilityNodeInfo> = mutableListOf() forEach { if (packageName.contains(it.packageName)) { result.add(it) } } return result }
1
4cbc8415c30e6e6d8999df7c17a58c15
5e4d3f7ff22e7d6fb04ad00f774eeeef
求差价数组 ==> 求最大连续子数组和
int maxDiffSubArrays(vector<int> &nums) { vector<int> left_max(nums.size()); vector<int> left_min(nums.size()); left_max[0] = left_min[0] = nums[0]; vector<int> right_max(nums.size()); vector<int> right_min(nums.size()); int end_index = nums.size() - 1; right_max[end_index] = right_min[end_i...
0
cefb912d97f83d41d9d2680f08b6261b
dd574ab6eb5981deed616f27754616df
向房间中添加Model类
@Service @Transactional public class RoomServiceImpl extends BaseDaoImpl<Room> implements RoomService @Override public void roomAdd(Room room){ save(room); }
1
e4377f8b6119be37b5ac5c4fca09cefa
43711aca9335e455fec1017c75e208b5
Set SSH Options for ssh calls. This is used to set the SSH credentials for calls that use SSH instead of REST HTTP.
this.sshUser = user this.host = host this.identityKey = identityKey }
1
19b6697ed28ee963c9fe64c203d7042e
0005d521ae4781c06e65fbecb3d90867
========================================================================================第二步
function thirdStep(){ document.getElementById('headerImag').src = "../css/icon/lks/thirdStep.png"; initDialog(thirdStepBtns()); $('#stepWizard').dialog('open'); $('#stepWizard').window('center'); showStepInfo("secondStep","none"); showStepInfo("thirdStep","block"); document.getElementById('navBarInfo').inne...
0
86716afbc99a4e590f1165db2365cd3a
d9d22b40c7c6cf2e4c7eba89a8c12429
Execute all above methods to create order and task and users using transaction query.
void profileManagementTasks() throws SQLException, ParseException, MessagingException, InterruptedException;
0
9cd560d60ed073845987614efa51a8bf
5f6752decd99d9465b10006de935dd18
Invia un suggerimento agli amministrazioni sulle funzionalità che vorresti vedere aggiunte al bot
class Bot: def send_info(self): pass
0
26f89a83a0086a3c6e2b13e4db06fbe1
b4bfc342c052d4c79d6edcb412203f8f
Calculates dynamic content of the sheet.
namespace ExportTemplate.Export.Writer public class SheetWriter : BaseWriterContainer public IEnumerable<Sheet> GetDynamics() { return IsDynamic ? new SheetEnumerable(this) : null; }
0
6997a7ea030361961597c99ce91dde58
45ce181558ad9afb74b34ec1b3d10bad
增加教育教学评比竞赛情况
@Service("pjytService") public class PjytService public int addPjyt(PageData pd, HttpSession session, String sszt) { return pjytDao.addPjyt(pd,session,sszt); }
1
a84fc877307223966c894c9f8c3cc579
b4fb1e6dcdff3c079253dd23cf32b31f
Removes the strategy with the given name.
namespace Ninject.Core.Infrastructure bool Remove(TStrategy item);
0
d86dcb383caab320881621f6345ae368
961108c30ddeccd33ccbd1547a43368d
Получение цены закрытия
class BCIntegrationImpl implements BCIntegration public function getClosingExchange() { $interval = new DateInterval("P1D"); $date = new DateTime(); $date = $date->sub($interval); $response = file_get_contents(str_replace("{data}", $date->format("Ymd"), $this->url)); $respons...
1
88efbfca7ad95c181e34713e6e9f05ac
63951c823428bd7c96d6a64b3feee1c0
处理引导安装IBOS信息
{ String track2 = ctx.getData(ItmFields.TRACK2); String icType = ctx.getData(ItmFields.ICTYPE); if (StringUtil.isNullOrEmpty(track2)) { if (icType != null && "0".equals(icType.trim())) { ctx.setData(ItmFields.ETRMOD, "05"); } else if (icType != null && "1".equals(icType.trim())) { ctx...
0
9462af7cdf22ecc9dd8255229d3137d8
050b40e6754b105f3d11d0b9bc6e1cca
! @brief Trickle timeout handler function for PC.
static void processPATrickleTimeoutCallback(UArg a0) { (void)a0; triggerCllcEvt(CLLC_PA_EVT); }
1
b4494dee75e37851f456849e69d9fd34
412ed56a6e1c7092a4370746af43e7f8
检测产品是否有折扣活动 《优惠购买》 同时检测用户是否有资格参加打八折活动、
function discountCheck(data, success, err = fail_cb) { var obj = { type: "post", url: common.API.discount_check, data: data } function success_cb(response) { li_proxy(response, function(data) { success(data) }, function(data) { err(data) }) } var response = ezSrv.getSrvData(obj).then(success_cb, ...
1
5fa53253d57e910201abcdb1482a35b2
64d5d376c1ab6c7bf55e08f25afcb84e
Actualizar el modelo Persona y el modelo Cuenta con la informacion eviada desde el formulario, tomando en cuenta el external_id de ambos modelos
{ $id = DB::transaction( function() use ($request,$entidad,$entidad_nombre) { $persona = $this->getPersonaAsociada($entidad->persona_id,$request); if ( ! $persona->wasRecentlyCreated ) { $entidad_existe = $persona->esAlgo($entidad_nombr...
0
d74a69278260028c9dbeb71f9ee97691
64ce9d99db11c035a8ce06c6ca264f8b
Determine location of database.
Path dbPath = findDatabase("qdb"); if (dbPath == null || Files.notExists(dbPath)) { Path alternateDbPath = findDatabase("baza"); if (alternateDbPath != null && Files.exists(alternateDbPath)) { return alternateDbPath; } } return dbPath; ...
1
62f92786303d7b068cf649d390dc282e
eec9bb19a81e4ec92ae092e40544294b
客户端检测app是否被打开过
local isFirstOpen = PlayerPrefs.GetInt("isFirstOpen") if isFirstOpen == 1 then local device_id = ctx.GeTuiClient if device_id == nil or device_id == "" then device_id = PlayerPrefs.GetString("virtual_device_id") if device_id == nil or device_id == "" then device_id = string.forma...
1
99ce549c6ce4019c1df4c8ef3c6c941a
08177eb72569fd8e1c114a02c0b9bb0d
Determines whether this instance can deserialize the specified XML document.
{ result = null; try { result = Parse<TBody>(xml, targetNamespace); } catch { } return result != null; }
1
498cc4f4a34cb71a0cd23f4fb324e0c1
6131933e03f7355922f4645044a611fa
Checks if an list of keys only contains allowed characters
def check_keys(keys, data_struct, error): if not all(k in data_struct for k in keys): exit(error)
0
11890f6fb8f6a2d90b9d30664f76bf85
37176750f5fb2a7edd878abdf90d36b1
returns true if the ipAddress is in the IPList.
for i in iplist: for key, value in i.items(): if (value == ip): return True return False
1
fd39081d142773623d03936210395eab
63b3a55866185edee9eebd2eddd6b1b4
Test models merge OK and have expected model coordinates
merger = proc.Merge(mergeRadius = 25, tOff = 2, statsComputer = proc.MergeFang()) pathToTestData = testDataRoot / Path('processor_test_files/merge.csv') with open(str(pathToTestData), mode = 'r') as inFile: df = pd.read_csv(inFi...
1
f1e36f817ebe4559d497dfc18e8d9c8a
5e667379a9978c3484b74c485d3238d0
Bestämmer hur stora rektanglarna runt ingredienserna för craftingrecipen ska vara
public class RecipeImprovedRubberBoots implements IRecipe public int getRecipeSize() { return 9; }
0
7bf8840041e445f05647572c64cd832a
c5f07135c82f4372875d122cc1d2ed99
Reports on urls that rules fired on.
class Gunslinger(): def report(self, report_data): submitted_url = report_data['submitted_url'] urlscan_url = report_data['urlscan_url'] found_scripts = report_data['found_scripts'] txt = f'Hit!:gun:\nSubmitted URL: {submitted_url}\n' \ f'Result: {urlscan_url}\nScripts foun...
1
0c1cbf4712f6b3de03cbe13a01bacfbe
e3c95882e1ae1a640962fe264d457711
Gets the transaction_amount of this PaymentTerminalDccTransactionSum.
public class ServiceCardTransaction implements Serializable{ public BigDecimal getTransactionAmount() { return transactionAmount; }
0
cbbd26485bf1a197c899c8c1beca3f2e
8acd664fb4651133471904f95b84e5c4
Set the suPos.
public class Generador protected void setPosGS(int i){ this.pos = i; }
0
2b746e5e632c1d158f4df77ce36c82a2
c29a3432d49745215a96f74bd40469cb
Attempt to login to PlayFab
FutureTask<PlayFabResult<LoginResult>> task = new FutureTask(new Callable<PlayFabResult<LoginResult>>() { public PlayFabResult<LoginResult> call() throws Exception { return privateLoginWithEmailAddressAsync(request); } }); try { task.run(); ...
1
ba9eed002f4c5fd4919f062b8714d518
7ef901776bd0079dd1d21f44539a4a02
<--- removes leading new line chars
class Ioread: def removeNewLine(self, fileContent): return ["%s" % line[:-1] for line in fileContent]
0
f1225c9dff3e4f3c080bdeb9b6d3d20d
60096ad3e0f3e661cc3ef33350183bf8
Extracts data from 'str' and converts it to a vector of 'cellContents_type' elements. Ignores spaces.
const std::string &s ) { std::vector< std::string > vElems; split( cDelim, s, vElems ); return vElems; }
0
704b347074b14e01a07d83855f2694a3
77a5ab8c4a159b36357b5880986d86d9
Metodo que inicializa el player y todos sus parametros especificos POSICION, FRECUENCIA, DURACION, EFECTO Y TIMER
public class Juego extends JFrame implements Runnable, KeyListener, MouseListener, MouseMotionListener public void init() { pegadaswalter = 3; ganaste = false; decision = -1; poderactivo = false; letr = false; tipo1 = 1; tipo2 = 1; poder = new Poderes...
0
fa4b5e2967510f80fa9f6b84773657bd
414864a0537090357ad172da0d3d43a3
Bilinear Filter setting has changed.
void MainWindow::medianFilterChange() { }
0
4df8aa8286b85e42b5d19ee5c40417ae
afe5f8565bd2f103c44e09c22afa4b58
A test that a diagonal line won't be drawn for invalid coordinates
with self.assertRaises(IndexError): draw.draw_line(0, 1, 5, 1) draw.draw_line(5, 1, 11, 1)
0
44b55c1ff420e28a6a133a51bcc7738b
f786ff949eaf945bd169ac415ed69572
判断当前日期是否是一周的第一天
private fun isFirst() { val today = Date() val sdf = SimpleDateFormat("yyyyMMdd") strToday = sdf.format(today) for (date in this.keyList) { if (date == strToday) { isFirst = false } } }
0
57e11fdcff471a5eeb357bfac626b381
78663adb758c533b485ec3cb9dc8d353
캘린더 이름에 대응하는 캘린더 ID를 리턴
Cursor cursor = context.getContentResolver().query(Uri.parse(calendarUri), null, null, null, null); if (cursor == null || cursor.getCount() == 0) { return Constants.INVALID_VALUE; } else { try { cursor.moveToFirst(); cursor.getString(cursor...
1
c99473ff098d20646b3a7b957e379aae
f3e22297b6750e4960c19e6bc7311fc7
Adds a header to the list of SOAP request headers.
namespace Microsoft.VisualStudio.Web.BrowserLink void AddRequestHeader(string name, string value);
0
a70a0ed58a5c1e3aca16f75217b1994b
b577c294cb361b95482ad1b66aba3e94
Compute the voxelwise mean of a Nifti 4D file. This is the numerator of the first term of the SFS expression.
def voxelwise_mean(img: niimg_like) -> nib.nifti1.Nifti1Image: img = check_niimg_4d(img) return image.mean_img(img)
1
bd394437649e9ef3be9efd700aab8955
c599cce420ed9504f4f93cc74ae73ee3
Get 1D map depending on pt and flavour
def twoD2oneD(pt, S): x, y = pt return x*S+y
0
c41feb4b88d27321da02f84cf6ce6779
e1fb42ed3f2c0a51b86fa4ddf846164b
r"""Returns all edge attributes stored in the graph store.
class Graph(object): def get_edge_attributes(self, id_): id_ = self._extract_id(id_) if id_ in self._edges: return self._edges[id_] else: raise GraphException("Edge id '" + str(id_) + "' not found!")
0
6f38c36084de1b8236d8fa57b14bc5fb
cd7874ffa47d8bcfa5a6291c4587f216
Tests that the time check returns true when the specified time pattern includes the test time.
public class DayOfWeekTimePhraseTest @Test public void testNextTime(){ final DayOfWeekTimePhrase timePhrase = new DayOfWeekTimePhrase(); final Calendar fromWhen = Calendar.getInstance(); fromWhen.set(2015, 3, 6, 1, 1, 1); final Calendar nextMonday = Calendar.getInstance(); nextMonday.set(2015, 3, 13, 1, 1, ...
0
a6678637bb7d84ae4c06af7631892a5b
196f9ccbeacd008b36c5ba20538eae53
Returns the count of cost share transactions bypassed
public class DemergerReportData public int getCostShareEncumbranceTransactionsBypassed() { return costShareEncumbranceTransactionsBypassed; }
1
cda92f3ca156e865af7def1ee359a518
9d8309af3904b5cc7d92915e264c6085
Indica al generador de dominios que debe utilizar dominios falsos generados automáticamente.
class HttpSource extends SourceAbstract public function setFakeIdentity($bool) { $this->userAgent = false; if ($bool) { $faker = Faker\Factory::create(); $this->userAgent = $faker->userAgent; } }
0
92864680c233311b3c59762e10533095
f86f400171ad0ed3935c95415ec5f471
Send POST request for a report with AWQL and returns Response object.
{ JSONObject jsonPayload = new JSONObject(objectMapper.writeValueAsString(payload)); JSONObject jsonResponse = client.postRequest(urlGetCampaignReport, jsonPayload); Response res = objectMapper.readValue(jsonResponse.toString(), Response.class); return res; }
1
7ac42e904da041f2db8b7ba5d9f68931
2381fabea4de12c272190ea827948277
在测量结束后,立刻设置下拉标准高度为View的高度
class VerificationCodeView :RelativeLayout override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { var mHeightMeasureSpec = heightMeasureSpec val heightMode = View.MeasureSpec.getMode(mHeightMeasureSpec) if (heightMode == View.MeasureSpec.AT_MOST) { mHeightMeasureSpec...
0
e416cbd2c1f5089833c1fb77c64dd1f1
3095fd6e79d2c1ead68f7554d92e60e1
Re-dimensionalize any set of trajectories.
for key in list(set(inkeys) - set(["t", "Tref"])): if isinstance(kwargs[key], type(0.0)): kwargs[key] = [[kwargs[key]]] * npc elif isinstance(kwargs[key], type(0)): kwargs[key] = [[float(kwargs[key])]] * nobs elif key in ["x0", "flow"]: if len(np.shape(kwa...
1
190c95365fa7d38478597d8db8f5ad83
997df24ef6205303a47161b909ad609c
회원의포인트 상황을 보는 메서드
public class MemberDao public static int getMemberPoint(String id) { SqlSession ss = DBService.getFactory().openSession(); int point = ss.selectOne("Member.getMemberPoint", id); ss.close(); return point; }
1
35ae7f15d53dda245e14eb459caaa377
508db1b12b80a092e0541c8e1b014c15
根据流程模型ID获取所有的用户任务节点
JbpmContext jbpmContext, Long processInstanceId) { ProcessQuery query = new ProcessQuery(); query.setProcessInstanceId(processInstanceId); return this.getTaskItems(jbpmContext, query); }
0
c49757757c8a27836dfa521d5f274bb0
0e615cc4413291821e3c36db855146f3
判断当前圈子是否在有管理权限的圈子之内
class IsCircleAdmin(BasePermission): def has_object_permission(self, request, view, obj): try: Membership.objects.get( user=request.user, circle=obj, is_admin=True, is_active=True ) except Membership.DoesNotExist: re...
1
096ed6cab3c07ad07614960a356761c8
7ef234336ccb61c265654a86272840eb
Deletes the instances pointed to by the given query (specified by the query string). /resource/?field=value
void deleteEntites(String givenQuery, Map<String, String> queryParameters);
1
6986ceb700acaa779281fdcff35f1d49
eb5bc05f1211220d19b9596e26330282
Calculate control variables related to engine on/off state
{ if (eng.feed & RT66::FUEL_PUMP) { if (eng.fuelPrs < 1) { double deltaPrs = 0.22 * dT; eng.fuelPrs = min(eng.fuelPrs + deltaPrs, 1); } } else { if (eng.fuelPrs > 0) { double deltaPrs = -0.12 * (1 - eng.genPct * 0.5) * dT; eng.fuelPrs = max(eng.fuelPrs + deltaPrs, 0); } } if (GetPropella...
1
0ea695a5e4ff7f9a67c5aeb1d67b1fb8
22c52318fcc7c2fb7578c82a4ac64951
记录IOS设备信息
@Controller public class InitController @RequestMapping("/ios/init.do") public String getInitDataIos(HttpServletRequest request, HttpServletResponse response) { long a = System.currentTimeMillis(); ParamHandler h = ParamHandler.createParamHandler(response, request); InitVo iv = h.paramConvent(InitVo.class...
1
0f7bc4430b8249dc11ab8e8521c75251
1c9391162d882e92057aeddd2fe77615
Método para animar cada letra
function animatedText() { $('.ml9 .letters').each(function() { $(this).html($(this).text().replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>")); }); anime.timeline({ loop: true }) .add({ targets: '.ml9 .letter', scale: [0, 1], duration: 1500, ...
1
0ed3ca322b6836eb36a88f57c8e7f73e
1f66fad9514d702ab54ba87170189241
调起考拉钱包的接口
class android extends payroid public function wandoujia() { $data = $_POST; $content = stripslashes($data['content']); $order = json_decode($content, TRUE); $ret = $this->_check_params($data, $this->_wandoujia_order_params); if (isset($ret['msg']) && $ret['msg']) { ...
0
dd9a6b26b666541ab17fd011e7bafdea
5183b0768a9c6e84c4bccd5ae8c541a1
Construct source, target pairs from cluster
source = [] iCount = 1 for _node in gfc: if node in gfc[_node][constants._iNTargets]: source.append(int(_node)) iCount += 1 return source
0
d1b20cb9456a50472eb9bec60234a3dd
55099bdc2ec3c15d0d63290bd0e19d50
Get the customer interest for a ISBN
{ $query = $this->select() ->from( array("i" => "iste_isbn") ) ->where( "i.cout_total = ?", $cout_total ); return $this->fetchAll($query)->toArray(); }
0
8eefd013cf7755dbdbe65bea2dd608a0
a772c5f07806fa9952454564c07817a6
Constructs an array representation of the route's models and their associations, a /root/:rootId/branch/:branchId/leaf/:leafId path would have flat array like [root, branch, leaf] representing the path structure and its models, used to manipulate ActiveRecord relationships and params hashes and so on.
return if a.empty? model = @opts[:models][nil] eager_assoc = @opts[:eager] key_hash = {} keys = [] reflections = eager_assoc.keys.collect{|assoc| model.association_reflection(assoc)} reflections.each do |reflection| key = reflection[:type] == :many_to_one ? reflection[:...
0
1ccfc1dd77c23fd3da55a0248781de14
1c70c3accbedda701183b36999e73ee1
List of properties that must be filled for the given shape.
void __stdcall EGCTheme::GetShapeProperties( const GDMObject & rxShape, std::set< GDMId> *& rpxShapeProperties ) { GDMObject xModelObject; if ( rxShape.Type() == EMXTypes::oERDiagram ) { rpxShapeProperties = &m_xERDiagramProperties; ...
1
a8ed35992c14e26add05d0f08cd4fe43
8d4d684ffae340845b3e7966479b0421
remove and element; throw EmptyStackException when stack is empty
int pop() throws EmptyStackException;
1
ddc793051c8a1f543d87318bcfa08345
9b91b2d3e39bce1067c9aac5371a269c
Get geometry column name, fall back to 'geometry
namespace gpkg geometry_columns* database::geometry_columns_table() { if(m_ptrGeo.get()) return m_ptrGeo.get(); m_ptrGeo.reset(new geometry_columns(m_ptrDB)); return m_ptrGeo.get(); }
0
4c339ccde0e5b55b35260c9ec49bd030
37dd82bb798a6a9c5dc150bc2a05b157
Cleanups the reference lines.
if (this.lines != null) { foreach (Line2D line in this.lines) { line.dispose(); } } }
1
9b9d46eeb8b919dc907f36873c7e577f
0bc47b289864cbe9a96e57884319e5a2
Set number of characters to mask from left.
public class MaskingSetting public void setCharactersMaskLeft(int charactersMaskLeft) { this.charactersMaskLeft = charactersMaskLeft; }
1
7b2b85a96189dc8833be7a1cb13f251a
b501f8f5f04ea5a65daea0577f79b1f7
Sets the id in the array of a list object. Does not persist.
public class ContactHistoryList extends ArrayList implements SyncableList public void setId(int tmp) { this.id = tmp; }
1
6258a6577e75b2eab29099f6d34fbda2
802111c935ee5c165f92b31db9acad20
自动分配等候室,并更新led主屏幕,更新等候室屏幕
void MainWindow::dispatch() { int cnt = 0; for(int i = 0; i < 4; i++) { if(is_open[i] == false) continue; StatusInfo &Info = roomStatus[i]; if(Info.cTemp == Info.dTemp) { Info.status = 0; insert_ldetail(Info); } if(Info.status != 0) ...
1
b62077c2b9bec55828fb88d45ed23f32
e21dfc946d4ca87f8b4892a45f42f405
Calculates the standard error of each of the regression coefficients.
class Reg: # Data def _calcStdErr(self, yList:np.ndarray, regList:np.ndarray): return np.sqrt(np.power(np.subtract(regList, yList), 2).sum() / (len(yList) - 2)) if (len(yList) -2) > 0 else 0
0
4c497c5649bae879a33606e6eefd77e7
9372e498cc8c04ee254eb9856227b285
Returns the current modulation.
std::string lora_rxpk_parser::get_modu() const { return this->modu; }
1
b320cd49e9137f6d92ef1e47d2699704
7e16cc8945d0198faf2c8cf9055e19b9
Compute preferred bucket for the given pointer This is modelled after hashWord in the Haskell RTS.
static __thread int last_index = 0; for(int i=last_index; i<INDEX; ++i) { if(((uint64_t)Class[i].start <= (uint64_t)ptr) && ((uint64_t)Class[i].start+BUCKET_SIZE > (uint64_t)ptr)){ last_index = i; return i; } } for(int i=0; i<last_index; ++i) { ...
1
1e3811b8bad27dd468783165bcb06f7d
eeede00643fcff02b01a72e5640d64d8
插值查找(递归实现)
System.out.println("helloworld1"); if(left > right || findVal > arr[right] || findVal < arr[left]){ return -1; } int mid = (right-left) * (findVal-arr[left]) / (arr[right]-arr[left]) ; int midVal = arr[mid]; if(findVal < midVal){ return insertVal...
1
0befe99487222d2baa080ce12ece839e
462b10b4152cc4f737c632c7a4a1df91
Transforma o código assembly em linguagem de máquina e o coloca na memória
{ _Bool status; assembly *listaAssembly = NULL, *resultadoBuscaAssembly; TS *resultadoBuscaSimbolo, *resultadoBuscaSimbolo2; FILE *saida, *saidaBin, *saidaDebug; char *EhValido, *EhData; char convertido; char *argumentos; int valor; char *variavel; char *variavel2; traducao = (Traducao *)malloc(1*sizeof(Trad...
1
47841cb31be524ad3c78f760db66461e
abd9d4d08688f24f368f32ed74b0fa82
This method sorts the monsters by atk
public class Fight private void attackOrder () { fighters.sort(new Comparator<Monster>() { @Override public int compare(Monster a, Monster b) { return Monster.speedCompare(a, b); } }); }
0
d55fde54e987e040d3875046f1dc7f31
fa66ce23c014774c360cc160c442e738
searches the given column of the chart for the given name of the stand and returns the y value of it
columnNumber = 0 for eachColumn in mileageData[0]: if eachColumn == locationName: return columnNumber else: columnNumber += 1 return 1000
0
521fda7a8f0c85e471f89e359e8f7f5b
c19cda7a0e8c9889a437eaab974c7221
Convert a vlen value to a string, by using tostring function for base type
function toStr(v) { return (v === undefined) ? "" + undefined : v.toString(); }
1
4af9aeb1692564c71a00e6868d8cc16b
fed358dfa7b32eaa8e1e7959eb3210cb
! Updates the defined slot, creating/removing buttons as necessary
function ActionButtonManager:Refresh() AS2:Debug(AS2.NOTE, "ActionButtonManager:Refresh()") for button, entry in pairs(self.buttonTable) do local oldAction = entry.action local newAction = self:private_TryGetAction(button) if newAction ~= oldAction then self:private_RemoveFromSlot(oldAction, button) if ne...
1
6eadd792088e96adff8d27a5d4941230
feb36235e2f02bae4a52dd99dd0a6f8b
#spits out function to pass to optim
like_fun_x = function(param,datw) { price = datw[,3:12] choice=datw$choice income=datw$Income fs3_4=datw$Fs3_4 fs5=datw$Fs5. fam_size=datw$Fam_Size college=datw$college whtcollar=datw$whtcollar retired=datw$retired ni = nrow(datw) nj = 10 ut = mat.or.vec(ni,nj) pn1 = param[1:(nj-1)] pn2 ...
1
25daad9424e6ea29285d7d658a1b98d2
3b80b5b8e177c30468dd7d2da594f85d
Integral of the cube (`~astropy.units.Quantity`). The returned quantity has dimension of the data in the cube times solid angle times energy.
xq, yq = m.meshgrid(unit_x, unit_y) rho = m.sqrt(xq**2 + yq**2) * self.width * 2 * m.pi return m.jinc(rho).astype(config.precision)
0
ca05aaa5ba393e83db9478c31de36b09
8f147942ae0e22990f61f31d83295192
Returns a copy of self reverse sorted
public function sortedDesc(): NonEmptySeq;
1
29615a219451b759f338f5943846ef27
ffbbe4e80f02bca5e75f1d9e403944b7
Uses a lazy load method.
class Base public function __get($var) { $lazyLoader = "get" . ucfirst(strtolower($var)); if(method_exists($this, $lazyLoader)) { return $this->$lazyLoader(); } return false; }
1
d3b794488e88c199530c685d016bf860
4c7d3bf653c34b2f713adb4d30f91fbe
Clear session cookies
class Persistence extends \BaseFacebook public function clearCookies(){ $this->destroySession(); }
1
f60786e427d2f585cdaf386297b05907
d9543ddb27943f00704f064333484021
gets random edge from working list, removes that edge from list
random_edge = None if self.num_edges() > 0: random_edge = choice([edge for edge in self.edges if edge.is_enabled]) return random_edge
0
0acf0e309c7381d12305e8a77b7a7104
8b345c344078e017afd4e6311e8577f2
Prepares a vector in the following format: [0.1, 0.2, 0.3, ...] for use with NumPy multiplication.
def vec(values): return np.array(values, dtype=np.float32)
1
ab2c112d882f9185578f6cebd07cdfd0
1735e188ebbbaf0189cf1670ca2e832f
Check if value is a tz/KT address
def is_zip(elem): return elem.attrib['k'] == "addr:postcode"
0
e7cc05b1df31d64bc63b3a68992dbdce
82e63eed2fbc6e19410de6ef4af9bbf3
查看坐标点的区域配置
mapConfig.getPicCoordinates().clear(); Double[][] coordinates = mapConfig.getCoordinates(); double minx = 10000; double miny = 10000; double maxx = -10000; double maxy = -10000; for (Double[] coordinate : coordinates) { double x = coordinate[0]; ...
1
3fca720a670f1a602dbad4087ad92b1b
36580066b4ca769845367057b0bb8cd7
Determines if a <see cref="Rectangle"/> is contained inside of this instance of <see cref="Rectangle"/>
namespace Nez.Maths public bool Contains( RectangleF value ) { return ( this.X <= value.X ) && ( value.X + value.Width <= this.X + this.Width ) && ( this.Y <= value.Y ) && ( value.Y + value.Height <= this.Y + this.Height ); }
1
9e1d91e4f6e5706bbb16a683e558dc44
a7eab03124ea9df6a0437c1676bd5ccc
Get a list of students from a file
String bufferedStudentList = " "; try { BufferedReader bufferedReader = new BufferedReader(new FileReader(STUDENT_LIST)); bufferedStudentList = bufferedReader.readLine(); bufferedReader.close(); } catch (IOException exception){ System.out.println...
0
b333cf4689f507b5d589a1cb51cf6cfd
492848dda61b7c61953bbea1d42908b7
AMR initialization
MLSDCAmr::MLSDCAmr () { InitializeMLSDC(); }
1
5cfcc8ae388e20f903c8aeddc724bbce
6a9f61fd6a66fe0c3e479628504cd5ac
Dumps the cache of humidity values
if self.parsed_args.fetch_cache: hcs = self.backend.fetch_from_cache() else: hcs = self.backend.fetch(from_date=self.from_date) try: for hc in hcs: obj = json.dumps(hc, indent=4, sort_keys=True) self.outfile.write(obj) ...
1
4d8821e733c692700678a36039dc38d9
06502a56150189b46841c8a6260f7957
获取登陆mole庄园的的url,不需要用户密码
$cmdid = "0B01"; $in_msg = pack('LL',1,0); $sendbuf=$this->park($cmdid, $userid, $in_msg); $recvbuf=$this->sock->sendmsg($sendbuf); $session = $this->unpark($recvbuf,"a16session"); $url= pack('Na16',$userid,$session[session]); $url = "http://www.51mole.com/?sid=".bin2hex($url); $session[session] = $url;...
1
20f64c4eafb60229cfa1507839c89eda
bb52f5790ece07a9bf59e8676a5bbc2b
Bu metod ile developera iş ataması yapılırken, mevcut iş yükü ve verilecek işin seviyesine göre işi yapıp yapamayacağı belirlenir.
class Katan(KantanWrapper): def playDevelopment(self): player = self.players[self.currentPlayer] index = self.selectResource() resource = self.resourceDicts[index] resource[player] += 2
0
0ac5d6e779660a8ba5e20789751a48d3
e34678d4ab0d1b466afc07fbce832059
用户点赞记录删除
class Usercontrol extends App public function pra_each_del($com_id) { db('praise')->where('wid',$com_id)->delete(); }
1
e6eb128d05583430c1094495dad492b5
98ca4639e60f3298c99f506f2dee0373
Returns TRUE if the entity is new or FALSE if the entity is already persisted
abstract public function isNew();
1
6451141a9e18394522895fc3cd3d10c5
7463b8bb7f8386216670fabb21ed4311
Tests that the circuit-breaker reports itself as "OPEN" if set as forced-open
func TestCircuitBreakerOpenAndClose(t *testing.T) { MakeRequestLoop("http://www.notWorkingForSure.com") MakeRequestLoop("http://www.google.com/search/about") }
0
3f4a1a07e8337b1baa571a490e28b3b6
7a02185fae9a7844a71878cb56d4864d
Función que recibe una matriz y devuelve una lista con los promedios de cada fila
nf = len(lst) nc = len(lst[0]) res = [] for i in range(nf): s = sum(lst[i]) res.append(s/nc) return res
1
312bbd7d88591c8b3faf7dee2491270a
a824d618d5bed9571b7c7c769c53964b
廃棄数
def no_delivery_count Repair.where(progress: 3).where(delivery: 1).count.to_i end
0
a58c2985e01139de1cbe9c15186cfe43
407a8cb66052a5ae1af164f797e4a971
Close JMS Senders resources, as a good practise this needs to be invoked before shutting down the Broker. Otherwise errors will be thrown from Error Listeners.
throws IllegalAccessException, NoSuchFieldException, JMSConnectorException { Field field = JMSClientConnectorImpl.class.getDeclaredField("jmsConnectionFactory"); field.setAccessible(true); JMSClientConnectionFactory connectionFactory = (JMSClientConnectionFactory) field.get(jmsClient...
1
8d00000c081f7cb116223a3bef4c6737
ff86636586997640f9e252102bf52fae
Returns the aspect ratio of a contour (ratio of width to height)
x,y,w,h = cv2.boundingRect(cnt) if h != 0: return float(w)/h return None
1
dbd11d471c0e8ae45ac741cc9dfec715
fdb60e9c77e74917ca5b1eb304c3a5a0
Check if window lost focus, in this case dispose it
void WindowEventHandler::lostFocus() { }
0
8609cf9a50575dd13ebe31a386c41973
ace3aef3c0e6e947b014e68f236f3efe
Returns the DOM node containing the list of tasks
export default class TodoList extends Panel items() { return this.$$(TodoItem); }
0
3bab6f0b96710ee3b6e15385f7846eea
3fca7fc119bd59c443bbc6c977561837
입력한 이름과 동일한 항목의 phoneNum을 수정
iscorrect_ident = False for i in range(0, len(list_information)): iscorrect_ident = False if ident_num in list_information[i]['ident_num']: iscorrect_ident = True if iscorrect_ident is True: print('%s 고객의 수정입니다.' % name) adjust_inform(i) ...
0
1bca095dd893c5bdab5122ae6dec6709
a6cb447553d1f5eb6fb9785dff5fec14
Not output for OCLC at this time.
public class OCLCConvert extends MarcConvert private void b852x() { return; }
1
79c72fe403e4712ce4124cba6bc322b0
d314dad224cccdde425a6eb814b16d5e
*验证内容是否为中文、字母、数字格式,不能有特殊字符*/
class FormVerify extends Validate protected function checkNoChinese($value,$msg,$data = []){ if(!preg_match("/^[a-zA-Z0-9_]+$/", $value)){ return $msg."不能包含中文和特殊字符"; } return true; }
0