query_id
string
corpus_id
string
query
string
code
string
label
int64
0dc62d51b7a08c2a48519fc25f11e1a2
b2a6cd668c48f6770455f7b733e1bb8a
파일에서 게시물 번호 가져오기
@Service public class hwServiceImpl implements mi.hw.board.service.hwService @Override public String getFileName(int num) { String fileName = dao.getFileName(num); return fileName; }
0
9e57d83ef25b20c3b9819f38b09cf641
ad422a568d01b82ee96a9348755a3131
Forward algorithm, scaled version to support long sequences
class HMM: def BackwardWithScale(self, O): T = len(O) beta = np.zeros((T, self.N)) beta[T-1, :] = 1.0 for t in range(T-2,-1,-1): beta[t, :] = np.dot(self.A, self.B[:, O[t+1]] * beta[t+1, :]) beta[t, :] /= sum(beta[t, :]) return beta
0
fe4e0fd9eb6050498837bde442988764
66688cf93792c419f9dfd79c8d3d2315
Randomize our random seed value. Here we use the fact that this function is called at *truely random* times by the polling and network functions. Here we only get 16 bits of new random value but we use the previous value to randomize the other 16 bits.
uint32_t tmp_seed1, tmp_seed2; #ifndef WIN32 FILE *rand_device = fopen("/dev/urandom", "r"); if (rand_device != NULL) { fread(&tmp_seed1, sizeof(uint32_t), (size_t)1, rand_device); fread(&tmp_seed2, sizeof(uint32_t), (size_t)1, rand_device); fclose(rand_device); } else #endif { uint64_t high_res_time = re...
0
37c6f7823d146fd7f54df3793df1d010
2f106b49c473ded47cab00192be81f1a
Add or create a GSLB array to send to the load balance service
string address, string label, IPWeight weight, IPServeMode mode) { net.dynect.api2.GSLBAddress[] retVal = null; int index = 0; if (currenetGSLBAddressArray == null) { retVal = new DynSoapWrapp...
1
bcf2f6838b75dc574f5b91d4fd5055ca
648b902120f17929bb9e5182de5677bb
Show tax rates for a location
class TaxService public function getRatesForLocation(int $zip, array $address = []): stdClass { $request['plugin'] = $this->plugin; return $this->client()->ratesForLocation($zip, $address); }
1
aca1377c020ab1aa7c1a5f68a9c96212
f42ba4f09a6bfcef66b335b847596889
Extend to register the document in the global document registry
namespace Wedonek.Gateway internal class Global : BasicGlobal public override void ServiceStarting(IGatewayService service) { service.RegDoc(new ApiDocModular()); }
1
3e2ce685db14629c5ed38ab9464fae11
1f702de844ba66f6705342673fc8c30a
Busca la prediccion y aumenta sus ocurrencias, en caso de no existir la crea
public class CountTokenFilter extends TokenFilter{ @Override public boolean incrementToken() throws IOException { if (!input.incrementToken()) return false; StringBuilder builder = new StringBuilder(); builder.append(Arrays.copyOfRange(term.buffer(), 0, term.length())); if (lista.containsKey(builder.toString(...
1
6116729a2dd035dbfec833ee7f715e0f
3e01a880ef86d5ef393b629e5c107d4a
订阅链上监控任务
async with ClientSession() as session: tasks = [ asyncio.create_task(self.monitor(session, params)) for params in self._monitor_list ] await asyncio.gather(*tasks)
1
f73a4d9a51614207afaae575d6098ae2
430ee9a48a00663d20e136c49e30689a
Program SC devices Subsystem Vendor Identifier (SVID) and Subsystem Identifier (SID).
{ *p_id++ = spi3wire_readbyte(0x20); *p_id = spi3wire_readbyte(0x21); return true; }
0
b24d3e7470b2eae32eacc471dc36b594
6d1699185a3bbdb5fb10c2f165a5ccee
计算时间的毫秒数
long resultMis = 0L; DateFormat format = new SimpleDateFormat("yyyy-MM-dd"); String str = format.format(date); Date d2; try { d2 = format.parse(str); } catch (ParseException e) { return resultMis; } long curMillisecond = d2.getTime(...
1
4eb5749c36ec0b709b8990264c44ea36
11a0a272ce614bd83aa52c3b1a5e43ad
Sets the team that this Statement relates to, if not included as the Actor of the Statement.
namespace Tokenio.User public class BulkTransferTokenBuilder public BulkTransferTokenBuilder SetActingAs(ActingAs actingAs) { payload.ActingAs = actingAs; return this; }
0
c21c5a7180e232e7da775b0f75c17963
f4bc00d40fcb2a32736c1f478476705d
Checks if BoxCount property is set.
namespace Amazon.Macie2.Model public partial class Detection internal bool IsSetCount() { return this._count.HasValue; }
0
85ff3682c1e3ede71edfbfdc36e3e58f
4ac4ad52c07f33d1cbe5295e618b90ab
租赁统计
public class Manager private void leasehold() { System.out.println("请选择你要租赁的车辆序号"); String choice; while ((choice = in.nextLine()).matches("[1-8]")) { int i = Integer.valueOf(choice) - 1; System.out.println("你选择的车辆名称是" + cars.get(i).getName()); int num; ...
0
12fd7c822643d7de1c35be9bac29a6ae
209921a621ede63d163fcd25b0f14142
Anropar servern för att kolla om användaren har angett korrekta uppgifter och kan logga in eller ej
namespace GUI public partial class LoggaIn : Form private void btnLogIn_Click(object sender, EventArgs e) { Expedit expedit; expedit = Bibliotek.LoggaIn(aNummer, lösen); if(expedit == null) { MessageBox.Show("Wrong credentials!"); }...
1
ddf9e56ec63d45d3a40c395923b5534b
8eefb1f6c17d7d1bf85341174dc5693b
Get the cart status.
class OrderWrapperCSCart extends esas\hutkigrosh\wrappers\OrderWrapper public function getStatus() { return $this->orderInfo["status"]; }
1
6e147e64164bfc0b9eda46003a4459ea
1b0965b9d99532697f2a133ce7f388f8
Test that a residual network can reload correctly.
class FileStorageTest(unittest.TestCase): def test_reload(self):
0
842561f10610dfec711cf596d45a4aa4
53744770669bf13ccb19bbe621bdcffe
保存实名审核记录
void saveRealAuth(Realauth realauth) throws Exception;
1
5bcd2053f3f045dfe94982ff8cc58ba2
1c9bdab69b4bb34e9c50830aef94ceea
Generates visible feature points on the camera planes.
{ glm::vec3 near_center = transform.position + ZNearClip * look; glm::vec3 far_center = transform.position + ZFarClip * look; float near_height = ZNearClip * glm::tan(glm::radians(fov / 2.0f)) * 2; float near_wdith = near_height * aspect; float far_height = ZFarClip * glm::tan(glm::radians(fov / 2.0f)) * ...
1
eb80c11c0da97e9bc83057a5f611e271
1d789db12c8281cca3704df3c0bc96a1
=========================================================================== Listener Invoked on WMS_MSG_EVENT_READ ===========================================================================
void mmi_msg_entry_cb_read_message (void) { U8* guiBuffer=NULL; S32 hiliteitem=0; EntryNewScreen(SCR_ID_MSG_CB_MESSAGE_LIST, mmi_msg_exit_generic, mmi_msg_pre_entry_cb_read_message, NULL); PRINT_INFORMATION_2((MMI_TRACE_G6_SMS, "*-------[CellBroadcast.c] mmi_msg_entry_cb_channel_list -------*\n")); memset(&cb_d...
0
3116fb14e6656567b3897cdf561f9294
f4affa91ededd680f52169363289a952
Passing a moment maps where one is missing a group should throw an error
OccurrenceFactory(time=timezone.now(), venue=venue, event=event) occurrence_variables = deepcopy(ADD_OCCURRENCE_VARIABLES) occurrence_variables["input"]["eventId"] = to_global_id("EventNode", event.id) occurrence_variables["input"]["venueId"] = to_global_id("VenueNode", venue.id) occurrence_variable...
0
df33b26b9ff53fa60f0df78e04e130c1
3fcc511054ca5f47078f31d9a9cace44
#Diffusion solver
S = x[1] I = x[2] R = x[3] if (I<0) I=0 with(as.list(vparameters),{ npop = S+I+R dS = -beta*S*I/npop dI = +beta*S*I/npop - gamma*I dR = +gamma*I out = c(dS,dI,dR) list(out) }) }
0
53713449878da78ce1349378bdcf4e44
b4462a21f7759ad9d445724ded0aca15
获取后门状态
suspicious, malice = False, False try: infos = os.popen("echo $LD_ELF_PRELOAD").read().splitlines() for info in infos: if not len(info) > 3: continue self.backdoor.append( {u'异常类型': u'LD_ELF_PRELOAD 后门', u'异常信息': info, ...
1
b896e347d82efe37b178e5aabc2f75fb
a4bd41b3d34f492080831cc9a602954b
大數除法
void BigNumDividBig(char a1[],char b1[]) { char b[1000],time[1000]; int lena1,lentime,i,j,k,flag=0; memset(arr,0,sizeof(arr)); if(Compare(a1,b1)<0) strcpy(arr,a1); else if(!Compare(a1,b1)) c[0]='1'; else { j=lentime=0; lena1=strlen(a1); memset(b,0,sizeof(b)); mems...
1
c449755acbced5ec983e414dd68602e4
fc6ad77e177459e10843785148c71e88
Binds the activity to the {@link PoppycockService}.
public class AbstractActivity extends SherlockFragmentActivity implements ServiceConnection @Override protected void onStart() { super.onStart(); debug("Binding..."); bindService(new Intent(this, MoodSpacesService.class), this, Context.BIND_AUTO_CREATE); }
0
05f25ce01d238e247b95e4c9fe5be0c1
c7428abbae6eafecedbf31908df6854f
Set the Global Markers used across the entire application
final class Configuration public function setMarkers($markers) { $this->markers = $markers; }
1
4ff7a89c1aa45be8a5e3a23a3905eb6d
7a9e64a8083b715a93a598dc5a983291
Checks App permissions in any case scenarios for Location Permissions, returning results to 'onRequestPermissionsResult' function of callingActivity 1. Android version of device is < 23 (version No.) i.e. 'M' Marshmallow (6.0) 2. Permission has been granted already 3. Ask user to allow app-scope permission (Ask-once ba...
public class MainActivity extends FragmentActivity implements OnMapReadyCallback, LocationListener @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); ...
0
8912ad2a1370d64d7bb5b2518f75ca69
e20d53d5bdf10f273048740b630ed35d
Returns the meta object for the attribute '{@link CIM.IEC61968.AssetModels.ToWindingSpec#getToTapStep <em>To Tap Step</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getviewDeclaration_To();
0
3e3ae04458549a60c91d072c053ca8a7
4421ddeaae77e54261b8ccfd73feb472
发起openvino测试
void openH5Test();
0
d5df41a2df244ca7dcc636dbccc183d0
6d245f2ae7b21eda28eab0d13e864d82
Untrust all certificates.
function untrustCerts() { let certList = certCache.getX509CachedCerts(); let certEnum = certList.getEnumerator(); while (certEnum.hasMoreElements()) { let cert = certEnum.getNext().QueryInterface(nsIXC); console.log('untrusting cert for', cert.commonName); certDB.setCertTrust(cert, CA_TYPE, UNTRUSTED)...
1
7b2c2f52aaae41785f03783ab95d255d
4fb10f0cc8aa0f8cff2b2356dadcf22b
使用ValueAnimator 改变View 的margin 值
public class PropertyAnimatorActivity extends AppCompatActivity private void doAnimator() { ValueAnimator animator = ValueAnimator.ofInt(0, 400); animator.setDuration(1000); animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAn...
0
d5ab8553a010e9004aa60859dcd45ab7
9880d8ff6680560734d1f146a7ebb545
check that reduce fails when the data is not there
cmd = f"""cat %s | {fq_pgm} -d ',' -q quote_none --has-no-header -o {self.out_fqfn} -r ' -10: ' """ r = envoy.run(cmd) print(r.std_out) print(r.std_err) assert r.status_code == errno.ENODATA out_recs = [] for r...
1
94c47da33b3f10f7a648000a1f128b54
3b9241420ec99141dbefd60542394e0f
Executado após a execução de cada um dos testes unitários.
public class ManipulacaoUtilTeste @AfterClass public static void executarDepoisDeTudo() { LOGGER.info("Finalizando classe."); }
0
b53ca8aa73bc4827be0d0d313b3699f8
08019899bbf61a1441d8d91687a9a8e7
Botão para Atualizar valores dos combustiveis
class FrameEssencias(guiperfumes.FrameEssencias): def atualizarEssencia( self, event ): nome_essencia=self.gridEssencias.GetCellValue(event.GetRow(),event.GetCol()) if (nome_essencia): id_marca=int(self.gridEssencias.GetCellValue(event.GetRow(),0)) AcessandoBD.atualizarEssencia(id_marca,nome_essencia) w...
0
739ec21bd4cad131b6d164984c071e75
400f0be4abc30265a34dd6255964a9d0
get remaining time from session storage
function getRemainingTimeThisVisit() { const timeSpent = Math.floor(Date.now() / 1000) - timeBegun return timeLimitThisVisit - timeSpent }
0
8969233d1ca6e3d874a82a8fed7fec1c
bd3ab5cdf84b115da962a4c08600b0d1
Calculates cumulative distance along a line
function getLineDistance(points){ var r = 0; for (var k = 0; k < points.length - 1; k++) { r += points[k].distanceTo(points[k + 1]); } return Number(r.toFixed(2)); }
1
e0f414597a64bf6789cd0876ad49479c
ad9d8c5d70776b1a819557f50a0ff8f9
Example program in Ruby
programmer_hash = { :grace_hopper => { :known_for => "COBOL", :languages => ["COBOL", "FORTRAN"] }, :alan_kay => { :known_for => "Object Orientation", :languages => ["Smalltalk", "LISP"] }, :dennis_ritchie => { :known_for => "Unix", :lang...
1
2f7c34e9385dda79afb2a5deee4de547
1861e7d3e390c47e83273d02632dc0ec
设置扬声器UI
function setVieo() { drag(voiceDot, "voice"); addEvent(voiceLogo, "touchstart", function (ev) { if (myMusic.muted) { addClass(voiceLogo, "fa-volume-up"); removeClass(voiceLogo, "fa fa-volume-off"); myMusic.muted = false...
1
3b0ecf00c237c3b43ebae975d638e5ca
971580c57bf1813eacf7bad8ee493e5d
Get the first certificate of the certificate chain of the issuer of the certificate.
public abstract class AbstractCertStoreInspector implements CertStoreInspector @Override public final X509Certificate getIssuer() { return issuer; }
0
06925e4003e99382e2cf70122b738b3b
f44c1a9af392e0ffa808a17130995199
Return a list of users filtered by login using LIKE clause.
public class UserDataSource public List<UserItem> readUserByLogin(String login) { String whereClause = COLUMN_LOGIN + " LIKE ?"; String [] whereArgs = {"%"+login+"%"}; List<UserItem> userItems = new ArrayList<>(); Cursor cursor = database.query(TABLE_USER, allColumns,wher...
1
e6a334f6fe6cc5bdbdc742ee1d9fedaa
27693fd2de577ab70de3ea6a85afbd07
Switches to this virtual desktop.
bool switch_vdesk(struct screen_info * s, struct physical_screen * p, unsigned int v) { struct list *iter; #ifdef DEBUG int hidden = 0, raised = 0; #endif if (!valid_vdesk(v) && v != VDESK_NONE) return false; for (unsigned i = 0; i < (unsigned) s->num_physical; i++) { if (v == s->physical[i].vdesk) r...
1
7e66c6319e60b20470ecca3a8437f8b8
e987b8a5eebe0235dd5046c69b985805
Returns whether the value of the '{@link com.br_automation.buoat.xddeditor.XDD.TGeneralFeatures#getNMTCycleTimeMin <em>NMT Cycle Time Min</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
boolean isSetTabCycle();
0
01bfac82585c30fe199df95801d66d71
f12b7c20fdafd3a3c8b6e50cb079e7f8
Draw the racket on the current position
theta = @vel.heading2D + radians(90) fill(175) stroke(0) push_matrix translate(@loc.x,@loc.y) rotate(theta) begin_shape(TRIANGLES) vertex(0, -@r*2) vertex(-@r, @r*2) vertex(@r, @r*2) end_shape pop_matrix end
1
86023d3861843f924318faa61c79548b
cf28b321dd39d9ec3131657eeb1cb1ce
finds the largest twin prime in a range (a,b)
max_dis = 1 before_prime = 3 for i in range(4, 101): if is_prime(i): if i - before_prime > max_dis: max_dis = i - before_prime before_prime = i return before_prime - max_dis, before_prime
0
4122b7eadded370d8a02ef9085c69ab1
03b52a48d98a76873b6c3b2c7d29ce63
! \brief Function ConvertRGB2LUV convert RGB image to LUV
{ double X, Y, Z; RGBtoXYZ(R, G, B, X, Y, Z); XYZtoLab(X, Y, Z, L, a, b); }
0
f49f0853bca3566e11d88e119ad10023
05d5245dc218b84a14972cc12793e9c8
Restituisce un iteratore sugli archi del grafo
public Iterator getEdge();
1
7b150406a125ad60cfb65a551867c627
b2e615b953228b79a909190c34a49ab7
商业险退保
public class CcbSurrenderService extends CCBBizService private boolean checkBizP53819143(CcbTxHeader header, CcbPlyInfoDTO plyInfo) { boolean isSuccess = false; String sysRespCode = null; String sysRespDesc = null; String plyNo = plyInfo.getPlyNo(); PlyBaseDTO plyBase = getPlyBaseDao().findPlyBaseByPlyNo(p...
1
ee995ba7a54183514047aa188b99ac02
9b3514f69c43a6d2a97df490eb5d53ec
左斜检查是否满足五子相连
var cnt = 1 var col = x var row = y while (--col > 0 && chessBoard[col][row] == chessBoard[x][y]) { ++cnt } col = x row = y while (++col <= BoardSize && chessBoard[col][row] == chessBoard[x][y]) ++cnt if (cnt >= 5) { isFinis...
1
0bd8cd2656cb37048722cfb195ef6aa5
3994a79154e8dac7ef87327dde175ac1
Create an instance of {@link InlineResource.Content }
@XmlRegistry public class ObjectFactory public ReadResponseContent createReadResponseContent() { return new ReadResponseContent(); }
0
1050d0e3bc9f3430776087ae4cc33750
765329ea7fce18c100af4ac3a0625e5f
17. 회원별 관심강좌 가져오기
String loginId = request.getParameter("loginId"); int subject = Integer.parseInt(request.getParameter("subject")); MainDAO dao = new MainDAO(); DTO planDTO = new DTO(); DTO dto = dao.plecturePlan(loginId,subject); HashMap<String, Object> map = new HashMap<>(); map.put("dto", dto); Gson gson = new Gson()...
1
bdcc1ce41700de62641dab73269d1179
06fc46f869d3f4304d1f330926ff3df2
inicializar las estructuras para el planificador
static BCP * planificador(){ ticks_restantes = TICKS_POR_RODAJA; proc_expulsar = NULL; while (lista_listos.primero==NULL) { espera_int(); } return lista_listos.primero; }
0
8165a335549f74836c7abc07a6fb30b2
a1a9f04152018fddbaed773d759c0c34
Parse user arguments, fix dev_info issues, and then print results.
def main( argv ): import tasks.devtask t = tasks.devtask.DevTask() t._load_args( {} ) print t.arguments return 0
0
bfb152d5f711b1b02b9d76176d8e8c98
2d031fea339d0be64700a92551d23f44
Return the status of the vacuum cleaner.
bool UG_vacuum_context_is_clean( struct UG_vacuum_context* vctx ) { return vctx->result_clean; }
1
829c9b2c2d5723d971505d0a3998d02b
f48e6ed9d566656158ec28ad74cfba81
Switch LED display to this number NOTE: USE FLOOR NUMBER
void DesignLibreDigiClock::LightNumber(int numberToDisplay) { switch (numberToDisplay) { case 0: digitalWrite(segmentPins[0], SEGMENT_ON); digitalWrite(segmentPins[1], SEGMENT_ON); digitalWrite(segmentPins[2], SEGMENT_ON); digitalWrite(segmentPins[3], SEGMENT_ON); digitalWrite(segmentPins[4],...
1
1aebc6a139b83cbb077e5b658395b1b5
abdecb6fcac67c94a139a4abba91a271
Manages Root pass-trough.
def RootHandler(request): return shortcuts.redirect('/one')
1
cd99c857f0e2bde71a05a3f855fd539c
6a66b2040901698c353817b5530d2bea
\brief 禁用指定dma通道的(传输完成)中断. \retval None \note None
void dma_channel_disable(uint32_t dma_periph,dma_channel_enum channelx) { DMA_CHCTL(dma_periph,channelx) &= ~DMA_CHXCTL_CHEN; }
0
4985299a0a962616dd53881a86e1afc6
3ff34a534ac131b78127ebe2a77c1659
Send image headers
class Ap_ImageAdapter private function outputHeader($hashKey) { Ap_Util_Http::header ( Ap_Common_Vars::FILE_TYPE_JPG ); }
1
eae215cec4afa972b80ab3e3bf432510
bc1b85e592dd0c85eddd02db817ae120
根据 指定字段 指定值 ,返回一个T_Permission对象
{ List<T> list = GetEntitiesByField(fieldName, fieldValue, out errMsg, permissionFilter, orderFields, isDescs, null, references, connString, dbType); return list.FirstOrDefault(); }
1
f9cb50055333b99b4767919e1fd1d7b0
f726d85863a7968d7ac6a005a7072867
Récupération de la liste des fournisseurs de services.
{ Criteria criteria = new CriteriaComparison("Pays", ComparisonOperator.Equals, "France"); List<Order> orders = new List<Order>() { new Order("NumeroTiers", OrderType.Asc) }; int pageIndex = 1; int itemsPerPage = 10; TiersService service = new TiersSer...
1
019a23aa283afc688c51f50873cbf975
d9c83af879c1eb9b1aa4b51fef4fd649
Vérfication du poids du fichier. S'il est trop lourd, on refuse son envoi.
{ if( $file[ 'size' ] == 0 ) { $this->messages[] = $file[ 'name' ] . ' is empty.'; return false; } elseif( $file[ 'size' ] > $this->maxSize ) { $this->messages = $file[ 'name' ] . ' exceeds the maximum size of file (' . self::convertFromBytes( $this->maxSize ) . ' )'; retur...
1
ab6efc2c49091ccdb63f3cf30ad9f30d
c86df3a1be7f4089fcce0d2ce3a28171
Abstract method. Method to set up the visualization for the Learning Model.
class Model(param.Parameterized): def analysis_setup(self): pass
0
b215257e2b4f6dfc4588accf70c64f60
9e17d3303c1a7e0b0f4a616cb39f8f81
获取一天剩余毫秒数(或已用毫秒数)
long resultMis = 0L; DateFormat format = new SimpleDateFormat("yyyy-MM-dd"); String str = format.format(date); Date d2; try { d2 = format.parse(str); } catch (ParseException e) { return resultMis; } long curMillisecond = d2.getTime(...
0
2484277e776928fe1a1fac541d1de048
6d40463830cba28433007c5830a80fb9
Get version Code as defined in build.gradle
fun getAppVersionCode(): Long { return BuildConfig.VERSION_CODE }
1
c4665a1c1b0d97ec1c5dd26681e4b9f5
944e2891deeb7d1e21b6cdff2de0a1a5
Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.
export class TeamCloud extends coreClient.ServiceClient createProjectIdentity( organizationId: string, projectId: string, options?: CreateProjectIdentityOptionalParams ): Promise<CreateProjectIdentityResponse> { return this.sendOperationRequest( { organizationId, projectId, options }, crea...
0
169f20037ef7d62e719acbc7c40fd5b8
8af6b5449b29b29431febca57b663749
direct_abstract_declarator : LPAREN gcc_attributes abstract_declarator RPAREN | LBRACKET RBRACKET | LBRACKET constant_expression RBRACKET | direct_abstract_declarator LBRACKET RBRACKET | direct_abstract_declarator LBRACKET constant_expression RBRACKET | LPAREN RPAREN | LPAREN parameter_type_list RPAREN | direct_abstrac...
public class CBaseListener implements CListener @Override public void enterDirectAbstractDeclarator(@NotNull CParser.DirectAbstractDeclaratorContext ctx) { }
1
d55a21c5a26c813f97ad38c8a4df386b
1fe62a03781a2a799496d08cd9c67249
Create a custom diverging colormap with three colors Default is blue to white to red with 11 colors. Colors can be specified in any way understandable by matplotlib.colors.ColorConverter.to_rgb()
clrs = [ "#364B9A", "#4A7BB7", "#6EA6CD", "#98CAE1", "#C2E4EF", "#EAECCC", "#FEDA8B", "#FDB366", "#F67E4B", "#DD3D2D", "#A50026", ] self.cmap = discretemap(self.cna...
0
fffc3296af14444e420d7c9dc04b240e
6ed072f8e443cbd07dfd1fdcc7773b68
Adds question this view model will be based on NOTE: needs to be done before attaching this view model to the page
namespace SimpleQ.PageModels.QuestionPageModels public class OpenQuestionPageModel : BasicQuestionPageModel public override void Init(object initData) { base.Init(initData); }
0
96ad6f1d01d523b8ffecde7fe743265f
af5ad401500d23ecc6eea42f06fe96a0
This function scales the hillside features between 0 and 1.
var lo = d3.min(landscape), hi = d3.max(landscape); return Mesh.map(landscape, function (x) { return (x - lo) / (hi - lo); }); }
1
e789caff5562ad4689c32ae72fd9f118
56739fbfd45c439e25f94b587a9a67f9
Set Connector listener for HTTP.
void setHttpListener(IHttpListener httpListener);
1
826d27f847e96efb5e455fa9213368a1
2558bd21c4c061c6808f60bc8425635a
h或v不为0时,walking为真,其余状态为假。
{ bool walking = h != 0f || v != 0f; anim.SetBool ("IsWalking", walking); }
1
79ac7af5ad82afbd3751e5bf0d03d324
226ce22817e907cfaa88cb061306d1dd
Тестирование правильности расчета времени в миллисекундах до заданного времени
{ mock_ticker_reset(); SysTimerTest<std::milli> st(&mock_ticker_data); auto t1 = st.get_time(); mock_ticker_timestamp = TEST_TICK_DURATION(1); auto t2 = st.get_time(); TEST_ASSERT_EQUAL_DURATION(TEST_TICK_DURATION(1), t2 - t1); }
1
f72bfd47eec14601325899d152f8a85e
2636b75228fe511245e8f68af757ac91
モンスター画像のパスを取得 管理画面でのみ使用するモンスターアイコンとモンスター画像のPNGファイルについて、 サーバのファイルシステム上のパスを取得する。
public class DomainController public HashMap<Integer, Image> getMonstersImages() throws IOException { return monsterRepository.getMonsterImages(); }
0
e43b5d8420f4c57e47faf1a9fa6d0fe8
73d8792dfec69f8bd59826a34e6e4ca4
Return the number of foreground pixels that the were classified as the current node
class NodeMatcher: def get_proximity_count(self): return self.prox
0
f75f6039ca6c313a03bc427d24691a93
5e92b8d57a66e41ce6f3455fa26930d2
delete the last fc layer.
uint8_t i = 31; while (i>7) { if (fb_floor[i] == 0xffff) { for (uint8_t j=i; j>8; j--) fb_floor[j] = fb_floor[j - 1]; fb_floor[8] = 0xc003; updatepoints(); continue; } i--; } }
0
7d41a337baa6904075e826f868c2d947
ebd8775e3d6b21b57a3deb51bd79dc48
Creates a dictionary from a 1:1 reference csv, ref_file, which must be located in the same directory.
def makedict(fid): import csv with open(fid, 'rb') as dictfile: reader = csv.reader(dictfile, dialect = 'excel') table_dict = {} for r in reader: table_dict.update({r[0]:{'units':r[1], 'method':r[2]}}) return table_dict
1
758c7a60b6de430a742878d0ac8b6768
7f61448ad6da3ef0f9cb03f40c5be655
Must be zero-argument to be valid. {@inheritDoc}
cases like (1)
0
3a5dcd92e5169a056ac4724f20744af6
23719bdce0a7464db74525bd9024d0f4
Checks if ssl related files exist in the system
def _update_ssl_files(_log): from codebay.l2tpserver import db @db.transact() def _f(): from codebay.l2tpserver.webui import uihelpers uihelpers.update_ssl_certificate_files() _f()
0
4d5806534b0ca0978ff0890710367451
5750fae9f605e1540f322f9c275b88b1
Opens the JSON output of the given test executions in the default text editor
new Application() { @Override public void start(Stage stage) throws Exception { } }.getHostServices().showDocument(formattedURL); }
0
8772f06e8ed15d5350d5cace73b15e3d
2bfa7d87f47d21015ab0a926007e545d
Debug route for external scripts to communicate with this program.
{ $data = [ 'debug' => config('app.debug'), 'route' => $request->input('via'), 'config' => config('castle') ]; return response()->json($data) ->setCallback('CastleJS.init') ->header('Cache-Control', 'private, max-age=604800'); }
1
76cf73ab46939ab7d75ec5482c2eee4a
eeac56cbf9fadc4ab99ed6e376f541fe
根据楼盘id和动态id查询该楼盘其他动态信息
@Controller @RequestMapping("hj/building") @Description(value = "楼盘") public class BuildingController extends CrudController<String, PageResult<BuildingDTO>, BuildingDTO> @RequestMapping(value = "toEditDynamic/{id}") @Description(value = "打开编辑楼盘动态页面") public String toEditDynamic(@PathVariable String id, Model m...
0
c0b35f8f8adf602534133559cc9c1a41
a7a67c9499105557122adc5063fe88f6
Update the cached server info
class _Server extends \IPS\teamspeak\Api\AbstractConnection public function updateServerInfo( array $serverInfo ) { $serverInfo = $this->convertServerInfo( $serverInfo, true ); return $this->instance->succeeded( $this->instance->serverEdit( $serverInfo ) ); }
0
37f6a9740410fa534c11c66fed774396
fdb012cac17201c8326871f5573b05a6
Opening an empty file causes an exception. https://github.com/twoolie/NBT/issues/issue/4
file_system = zip_file_system.ZipFileSystem( self._resolver_context, self._zip_path_spec) self.assertIsNotNone(file_system) file_system.Open() file_entry = file_system.GetRootFileEntry() self.assertIsNotNone(file_entry) self.assertEqual(file_entry.name, '')
0
6372c755d08c363413cf0901aa0f141e
876b886338738dfe186898841ee0035b
根据传入的年月日返回诸如“2015-06-23”这样格式的字串
if(split==null){ split="-"; } StringBuffer stringDate=new StringBuffer(); stringDate.append(year).append(split); if(month<10){ stringDate.append(0).append(month); }else{ stringDate.append(month); } stringDate.append(split); if(day<10){ stringDate.append(0).append(day); }else{ stringDa...
1
f743e8e043b564774f868e940d6c0a44
758b190647aca0234c51230ed94d85e7
Return True if the episode can end.
class Environment(object): def episode_is_done(self): raise NotImplementedError
1
c0c3cfbe0e4fe8a8c59bbca9aa202988
c13e578f51e1a7a56162e88a45dfe8a5
Gets the synopsis of this movie.
class Video public function getSynopsis() { return $this->synopsis; }
1
6d649410afdea682953e453f6bb6739c
ad293ac2928ec77ce1b7ef9e14db423d
Atualiza um tipo imovel
const requestData = request.all(); if (requestData && requestData.type_update === "types_immobile") { const typesImmobileData = await this.serviceAPI.getTypesImmobile(); if (typesImmobileData.lista.length) { const data = typesImmobileData.lista; try { await TypesImmobileMod...
0
09ef5935ad41a5fb25379a7eb0537567
7df7b5bad2228c1eefa1189e7d437d14
Informs the delegate when an existing home is removed.
namespace Crownwood.DotNetMagic.Docking [ToolboxItem(false)] public class Zone : Panel protected virtual void OnWindowRemoved(int index, object value) { if (_windows.Count == 0) { if (this.AutoDispose) this.Dispose(); } }
0
42005d9b303b9285e449a1c77c1c926c
aa9cb3b904ffaed5aab6be1525fbc27d
妙妙玩玩具
let that = this; let toyPointerDown = function (toy: Toy) { this.checkoutResult(toy) .then(async (value: number) => { that.rightTimes += value; that.disableToys(true); if (value === 1 && that.rightTimes === 1) { ...
1
54fe7b31a4d1d4fb035e38fdaf2f7bf2
a983cbfe3e75fda27e112bf95cfc095c
Créée une discussion
class Model_Discussion extends Model public function createDiscussion($userID, $name, $text, $type) { $sql = "insert into $this->discussionTable (DISCUSSION_TYPE_ID, NAME, TEXT, POSTED_DATE, RECENT_DATE, POSTER_ID) values (:type, :name, :text, $this->now, $this->now, :userID)"; $query = DB::query(Dat...
1
0c759a893400a124cced8e3704e03a3d
9d67715781ad1d3c714e06d505494706
下一首按钮监听
playNext() { if (this.data.playlist.length === 1) { wx.showToast({ title: '您只有一首歌曲', icon: 'none', duration: 1500 }); } let type = this.store.data.playType console.log(type, this.data.playlist.length); if (type === 2 || this.data.playlist.length === 1) { thi...
1
20682765a2cf2b52bfeb87468b704f69
418d6739f7aa5874a9597fbd98a84a6a
remove first point on the list after indicated that the agent passed through this point
toRemove=[] i=0 for el in self.tmp_upd: if el['timestamp'] <= to: agent=int(el['agent']) if self.agents[agent]['location_vector'][el['location']] == 0: self.agents[agent]['S']+=1 self.agents[agent]['location_vector']...
0
ce32de24b143777ede4b1f973aa26909
164da53d149a6bdfaf74e747afcac665
删除未被审核的数据
{ foreach ($editedData as $key => $val) { if ($val == $oldData[$key]) { unset($editedData[$key]); } else { continue; } } if(empty($editedData)){ return false; } $editedData['audit_status'] = self:...
0
e611e386518635860fd5698c3e19da7a
92f5ff27b544dea78e0b19bba4c79717
Get the current value of the beneficial toggle.
ExplanationOfBenefitStatus getStatus();
0
d4092ff1a397aff0c7e51d37f1bdfb27
bbc102b9fa3a251c579cebbe6e82cf60
保存mapper方法日志
@Service public class ApiLogService extends LongPKBaseService<ApiLog> @Override protected GenericMapper<ApiLog, Long> getMapper() { return apiLogMapper; }
0
b319d4cd6a9dcaaefe65d091780085eb
189598dd4d56a0e1062361af2893808e
Возвращается распределение длин между собственными значениями. Реализовано
namespace PT_Lab1 public static class Controller public static double Divergence(IEnumerable<double> values) { return Math.Sqrt(Dispersion(values)); }
0
b882c637a5c5a63047f6f6c2e838e5f5
a7fc79cc2a47a3e8ef709a3e3d8b4896
plots all the traces to PLOTLY (see https://plot.ly/python/) INPUT: **net** - The pandapower format network **traces** - list of dicts which correspond to plotly traces generated using: create_bus_trace, create_line_trace, create_trafo_trace OPTIONAL: **on_map** (bool, False) - enables using mapbox plot in plotly **map...
f, axarr = plt.subplots(len(traces),1,sharex=True) if figsize != 0: f.set_size_inches(figsize[0],figsize[1]) else: f.set_size_inches(30,3*len(traces)) i = 0 for group in traces: for trace in group: trace.plot(axarr[i],times=times,stim=stim,c=np.random.rand(3,1)) ...
0
4279e59e39ba560ff96c1543b5fd7470
b8ed4bd6683ac55e496d60485f957e18
If there is a version of the schema with the given fingerprint then it returns the respective {@link SchemaVersionInfo}, else it throws a {@link SchemaNotFoundException}.
InternalVersion getVersion(String uuid);
0
18f42c8a48ae728c17959879f5c84d33
c5e286ab9e47095d3876a85cbf871f70
Initializes D2D resources used for rendering.
namespace VideoScriptEditor::Unmanaged void D2DRendererBase::CreateDeviceIndependentResources() { D2D1_FACTORY_OPTIONS d2dFactoryOptions{}; #if defined(_DEBUG) d2dFactoryOptions.debugLevel = D2D1_DEBUG_LEVEL_INFORMATION; #endif HR::ThrowIfFailed( D2D1CreateFactory(D2D1_FACTORY_TY...
1
7a2591dc1a188faff9a840d75d68a476
8b91a4084f1b5e99c9afdaec880d731b
Returns the monkey instance.
def initialize(context): monkey.install_monkey()
0
1b5f0222eca144654a2889929e5b0d50
6f53596729789efad10315257d6618bc
Get license files from Artifactory.
data = self._api.get_api_data() artifacts_node = data['artifacts'] retval = [] for node in artifacts_node: url = urljoin( self._api.url, "artifact/" + node['fileName']) retval.append(url) return retval
0
98d47d02a10a0d0cd3ab35739a8cb27a
fcdb7b41eeac366913a35a3049428d52
Cette méthode permet au joueur de se déplacer
class Player(): def move(self, vitesseX): self.vx = (pressed[K_RIGHT] - pressed[K_LEFT]) * vitesseX
1