query_id
string
corpus_id
string
query
string
code
string
label
int64
b323a582710944c3319b5ba8ffc92972
84db04a641fc502b9dd483d4503d934a
恢复默认门户
namespace MTTool.PresentationTier public partial class MainForm : DevExpress.XtraEditors.XtraForm private void btnResDefault_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (File.Exists("DefLayout.xml")) dockManager1.RestoreLayoutFromXml("DefLayout.xml"); ...
1
4885f2ee65199dd881705e55df4ed08c
7c2adbf46d7ecb317eac6b028bd8b133
get mass distribution from DY files
df = pd.read_csv(filename, header=6) df['Mass'],df['intensity']= df.iloc[:-1,0].str.split().str df = df.drop(columns='##PEAK TABLE=(XY..XY) 1').drop(df.tail(1).index) mass = df.values[:,0].astype(float).astype(np.int32) intensity = df.values[:,1].astype(np.int32) x=np.zeros([699,]) for i in ...
1
9cbe6d24bc76a2cb9d2e343921b61503
edd85ee48ac94febac69c9c404bd5a4b
#functie om functies te herkennen in format1
nterm = namedtuple('nterm', ['comment', 'number', 'op', 'var', 'lag']) temp=re.sub(r'\s+', '', udtryk.upper()) xxx = udtrykre(funks=funks).findall(temp) ibh = [nterm._make(t) for t in xxx] return ibh
1
d8fc151050ed2a33cab098d536a5e741
e9a7f3b99ab0de55b58f37e821a66afa
查看AI推理结果推送配置
try { HttpServletRequest request = ServletActionContext.getRequest(); String config = request.getParameter("config"); String tid = request.getParameter("tid"); Employee emp = (Employee) request.getSession().getAttribute( "Employee"); JSONObject strRet = new JSONObject(); boolean qxflag = getTas...
0
258155327f0817e1d5498fc3c433917e
48678d976f72e2d2e7c4be077ae8b508
设计类型
{ if (request()->isMethod('post')){ $data=\request()->only('pid','zb_name','sort','create_time'); $info = Login::typeRead($data['pid'],$data['zb_name']); if ($info){ echo "<script>alert('该分类已存在,请重新添加');history.back(-1);</script>";die; } ...
1
e12a9d47c3714005f87e478e98fa9e52
cd7aa37c5350765da11079aea25dd2a9
해당 배달 지역을 삭제할 권한이 사용자에게 있는지 검사하는 메서드.
public int menuAuthDelete(MenuAuthVO menuAuthVO);
0
8b559d57b103731426979bef6a1f6b07
bf474a701fe3ffb9803d9221a37d48e4
Also asserts that the yml file is valid for testing
class TestXSIAMStructureValidator(TestStructureValidator): def test_valid_parsing_rule_yml(self, pack: Pack): parsing_rule_yml = pack.create_parsing_rule("parsing_rule").yml validator = StructureValidator(parsing_rule_yml.path) assert validator.is_valid_scheme()
1
e88857b05f0958e1239f82b20c17205f
fe75c3f7d8b380475d7ebcd9f9aa5175
Process a node firmware update progress event.
ip_address = data[ATTR_IP] hostname = data[ATTR_HOST_NAME] or "" mac_address = data[ATTR_MAC] if ip_address is None or mac_address is None: return self.async_process_client(ip_address, hostname, _format_mac(mac_address))
0
178ba080083fea78c71756787bc09830
6e10405084df5708940499ac4cec6321
Verifies whether no one else is currenlty processing the message
public class MessageQueueImpl implements MessageQueue public boolean isActive() { return lock.availablePermits() == 0; }
1
9cabaf5c083abd05cd53df1ad730f19d
7f61448ad6da3ef0f9cb03f40c5be655
Just for visualize in editor
cases like (1)
0
e83b9d27b3fb0577725e61301effb015
6880a461a30f5f47b1e0cb7d1e1c12ed
对一个帖子下方的评论进行点赞,并用热评回复(慎用)
{ $mysqli = CnDb::getConnect(); $writeSqlComment = null; if ($hypeType == 'like') $score = 1; elseif ($hypeType == 'dislike') $score = -1; else $score = 0; $rating = null; $getSqlRating = $mysqli->query("SELECT * FROM " . CN_T_RATING . " WHERE " . CN_T_CID . "...
1
f65b202db149c8088494281a2e09d3ce
4b3b8adbf2763afac04315fd6d8fa59b
Test logical and operator.
TEST(UnsignedLogicOperatorTests, testThatLogicalAndWithTwoNonZeroesGivesTrue) { const auto nonzero1 = bignum::Unsigned<unsigned>(2398u); const auto nonzero2 = bignum::Unsigned<unsigned>(394u); ASSERT_TRUE(nonzero1 && nonzero2); ASSERT_TRUE(nonzero2 && nonzero1); }
1
f9b9267285f86abc9022f3efef98eb6d
f3a20d453e01e832b140c2549a0eb54e
Create background from collider
PolygonGenerator2D.GenerateMesh(gameObject, Polygon.CreateFromCollider (gameObject), Vector2.zero); if (material != null) { MeshRenderer meshRenderer = GetComponent<MeshRenderer> (); meshRenderer.material = material; meshRenderer.sortingLayerName = sortingLayerName; meshRenderer.sortingLayerID = sorting...
1
83d7475f8a6b84bf2ae784b01a33fe37
6be1fc08554c1533c375d9b3ec8d7de0
Sets whether only selected designs should be shown on parallel coordinate charts. flag to set whether only selected designs should be shown.
public abstract class BioLayoutAlgorithm extends AbstractGraphPartition public void setSelectedOnly(boolean value) { selectedOnly = value; }
1
9f95f9d4ba03159265bf8bb75b175c87
bbd72b469702677085501c9981b6cdf9
Returns the maximum number of values the server can retrieve per PV per request; due to desired interactions with users, ArchiveViewer base has an own limit of 1000
get maxPageSize() { return 100; }
0
56e9f6a133d98340860ad55261461c41
15eb0a8994dde9c84da5d182bea97770
Sets the sip stack.
try { this.sipFactory = SipFactory.getInstance(); this.sipFactory.setPathName("gov.nist"); this.properties = new Properties(); this.properties.setProperty("javax.sip.STACK_NAME", "stack"); this.sipStack = this.sipFactory.createSipStack(this.properties)...
1
098067a29ae5a2e54e9ac245a0e1db23
c3b09758c9d65c793135de898659f2dd
Alias for creating and throwing a RuntimeException with formatted message
public class Simple public static class Exceptions public static RuntimeException rte(Exception ex, String fmt, Object... args) { String msg = String.format( fmt, args ); return new RuntimeException( msg, ex ); }
1
7de82cddd2ee499f71a974ad05e29cb7
39c705d18e9f23439dc7427ed474a8d7
设置实体名称字段值(图层的feature)
namespace EarthView namespace World namespace Spatial2D namespace Atlas public class DataLayer : EarthView.World.Spatial.Atlas.Ivectorlayer public override void SetName(string name) { EarthView_World_Spatial2D_Atlas_CDataLayer_setName_void_EVString(this.NativeObject, name); }
0
bc28b1fa2987368a388c0c570b30e166
5a26a13e3fb4d5cfe2aaf40429af28e1
Get all metadata based on a content id
class EloquentContentMetatagRepository implements ContentMetatagRepositoryInterface public function findByContent($content_id, string $content_model) { }
1
093bd50a2fd98f4686b8c3a08b20fce1
28c7564be68d37d55fd6f7a1a40c1b88
Умножава стойността на кодовете на отделните символи.
namespace Anagram class MainClass public static int WordToCode(Dictionary<char, int> dict, String s) { int code = 1; foreach (char c in s) code *= dict[c]; return code; }
1
b09c05b93b4c4165779e4598cc4c3d0a
000165a512071e806168bb0e9c9c6fcf
Gets all invoices (racunZaglavljes) async.
public async Task<ActionResult<IEnumerable>> Get() { try { var allInvoices = await this.invoiceService.Get(); return Ok(allInvoices); } catch (Exception e) { return BadRequest(e); } ...
1
320b2050709f2b91dc00839938eb205a
c03e2e8cf9475232d9f338bd374a6f6d
tworzenie widgetów używanych w dialogu
class Gui(QtWidgets.QMainWindow): def tworcyf(self): dial = Dialog() dial.exec_()
0
ecbc9b01abddf495f3b2cfe9d893dfae
2fbec155941cd0e4db0f04e50e021414
Inserts a free block at the front of its corresponding bucket list (FILO). Rearranges pointers as necessary.
if (first_freenode) { first_freenode->prev = newnode; newnode->next = first_freenode; newnode->prev = NULL; first_freenode = newnode; } else { first_freenode = newnode; } free_blocks++; }
1
66cea91973851470e33f253b23cf6945
971f7aed3abab1d11061b1cd7308062e
取得 index type mapping
Map<String, String> res = new HashMap<>(); Client client = ESUtils.getClient(); GetMappingsRequest request = new GetMappingsRequest() .indices(indice).types(DEFAULT_TYPE_NAME); GetMappingsResponse m; try { m = client.admin().indices().getMappings(request).get(); ImmutableOpenMap<String, ImmutableOpe...
1
5c01878c28014e35a4131b9f7bdb196d
7366c86faf97d088e226334869f736f4
Test correct shape and content of german credit data.
start = None end = pd.Timestamp('2019-12-18 15:00:00') df = treasury(start, end) assert df.shape == (4216, 16)
0
fb28553e0248075691f6d7f118dbb988
8397bf66f0c479125837b3983fe85dd8
根据id查询Jenkins信息
var id = req.body.id; if (!id) { res.json({ status: st.REQUEST_ERROR_ID, data: null, msg: '错误的ID' }); return; } co(function*() { var cbinfo = yield getJiraData(id); return cbinfo; }).then((data) => { res.json({ ...
0
be38bfc07a197eab473ad06bb4a50b3e
d8f7fd572f8faac8ae5a0bfc47c8178e
检查并创建主配置文件
namespace AutoBakIEfav public partial class Form1 : Form private void CheckConfigXml() { if (!File.Exists(configXmlFileFullName)) { try { XDocument doc = new XDocument( new XElement("Root", ...
1
8e46197da2297d8d074dd018a3103a20
95952422105a5d90565268c1f3661cba
Metoda rozdzielajaca rezerwacje do odpowiednich dni tygodnia
class ReservationController extends Controller{ public function checkDates($edit = 0){ date_default_timezone_set('Europe/Riga'); $repository = $this->getDoctrine()->getRepository('AcmeReservationBundle:Reservation'); $dates = $repository->findAll(); $reservedPeriods = array(); $this->reservedDaysArray = array...
0
c10ed01d2274d762322056cdf0dc2302
d6b6496eb8a13ca29cbca89841908c2b
Registers a client GPI interface.
func = self.__dll.GetGpIO func.argtypes = (c_char_p, POINTER(GPIO), POINTER(DEVICE_GPI_STATUS_RESULT)) func.restype = UINT return func(DevID, io, pRepMsg)
0
783168c60b9ff1aef36e5628546a1832
096355ad67300fb0822517543ec3f05e
いいねイベントをデータベースに反映する。 また、それに関連したユーザとツイートもデータベースに反映する。
synchronized public ServiceResult love(BigInteger userId, BigInteger tweetId) { if (userId == null || tweetId == null) { throw new ServiceException(ServiceMessage.NOT_NULL.message); } News news; try { news = newsDao.getNewsByTweetIdAndUserId(tweetId, userId); ...
1
cf9501e5b0b479215091028a71fd5b5e
5497bdabcdd5c0aea9b02b7763db0359
给所有战斗单元增加相同经验
namespace 魔王的试炼 static class EventLogic public static void AddExp(Queue<MotaEventArgs> datas, Hero player) { MotaEventArgs data = datas.Dequeue(); player.Exp += data.Value; EventEffect(data); }
0
923cdec714ad9ea5d644d5b31caf9b10
c4d9efbe35b6ec15d30cf5ed795e4399
Start the fare
current_taxi = Taxi("Prius 1", 100) current_taxi.drive(40) print(current_taxi) current_taxi.start_fare() current_taxi.drive(100) print(current_taxi)
1
de1db8d9e2f978c8ad1c80e21b35ae35
c3d94f305e3c1e1814ea519c314646aa
Procédure qui substitue une colonne à l'aide de la S-Box, de la même manière que la procédure sub_bytes Mais sur une seule "colonne" de la matrice
public class AES_Client extends javax.swing.JFrame public int[][] subByte(int[][] sub){ int row, col; int[][] temp = new int[4][4]; for(int i = 0; i < 4; i++){ for(int j = 0; j < 4; j++){ col = sub[i][j] & 0xf; row =...
0
7b3f96b6938167ee9e3136fbf639eda3
1c926c8c77a44bf54f252c89f0e80eb8
takes an array of Point objects and returns the one which is closest to the player
public class AI static class GetUnit{ protected static Unit closestPoint(List<Unit> ul, Point p){ int clsDis = Integer.MAX_VALUE; Unit target = null; for(Unit u: ul){ int curDis = PathFind.Distance(u.position, p); if(curDis < clsDis){ clsDis = curDis; target = u; } } return target;...
0
be01564e6711dc03aa18c9a01dffcf05
92296a8d608a0efa1866d59d84b45417
Diese Methode generiert die Willkommensseite
@Controller public class HomeController @RequestMapping(value = "/impressum", method = RequestMethod.GET) public String impressum(final HttpServletRequest request) { return "impressum"; }
0
22eb02c371097bd29611b99c748a1098
f95e090efc0ff64881084521556d2a16
Count variable force by membership functions.
class Output(Term): def membership(self, x): if self.activation is None: raise ValueError('activation must take a FuzzyAnd function') return self.activation(self.term.membership(x), self.alphacut)
0
b42e1bcaa4ed166cc2b7b5b471bda199
348c7ac58b3791de07decaa57a17b882
Second order MUSCL reconstruction
{ for(int l = start; l < end; ++l) { for(int r = 1; r < ydim ; ++r) { for(int c = 1; c < xdim; ++c) { int k = c + r*COL2 + l*COL2*ROW2; der[k] = 0.25*(fun[k+1] + fun[k-1] - 2.0 * fun[k]); } } } }
0
71c09be828bbc6910ecfb105c746c167
8bc6d1715fe601c95953c7c423f5644f
证书信息初始化 rpc CertInfoInit (CertInfoInitInput) returns (CertInfoInitOutput){}
public void certinfo() { CertQueryRequest certQueryRequest = new CertQueryRequest(); certQueryRequest.setPrepareId("59ed94d642b04f2d928bc0cfdaa46a52"); UserCertResponse execute = signClient.execute(certQueryRequest); log.info("响应状态:{}",execute.getResultCode()); log.info("响应信息...
0
aff0400306c5ac85b9884ec26dc331a7
45d0a7a43d59a1cc685b257e8744e126
\brief map glhck geometry constant to OpenGL geometry constant
int primType) { switch (primType) { case MG_TRIANGLES: return GL_TRIANGLES; case MG_TRIANGLE_FAN: return GL_TRIANGLE_FAN; case MG_TRIANGLE_STRIP: return GL_TRIANGLE_STRIP; case MG_LINES: return GL_LINES; case MG_LINE_STRIP: return GL_LINE_STRIP; case MG_POINTS: return GL_POINTS; defaul...
1
ced12d0fe6b62fd16ba655278d732a39
79d5fa9b66e8365e46e61db24dfa4a8d
Get bounding boxes and labels for a given index
class VESSELBboxDataset: def __getitem__(self, i): id_ = self.ids[i] anno_file = os.path.join(self.data_dir, 'ground-truth', id_ + '.txt') annot = self.load_annotations(self.extract_boxes(anno_file)) img_file = os.path.join(self.data_dir, 'JPEGImages', id_ + '.jpg') img = Image.o...
1
0f0fc43a3f56e3bdca8b1f2ece02cd5c
82edbfd5220db4d85af36f82e9560d93
method inserts into the object the address.
class Person: def set_adress(self,adress): self.__address=adress
1
d3eb44285b649aeabc8f0fc9799df939
e31a1b43a42894055e2e500e24644b05
process MGI-oriented reports w/ 5 columns
void processStage1(struct mgcStatusTbl *mgcStatusTbl, char *tabFile) { struct lineFile *lf = gzLineFileOpen(tabFile); char *row[MGCSTAGE1_NUM_COLS]; while (lineFileNextRowTab(lf, row, MGCSTAGE1_NUM_COLS)) processStage1Row(mgcStatusTbl, row); gzLineFileClose(&lf); }
0
a201fa61501179c668dd529b8396d4d4
b839e7b41243f23c15d7cc3d13454b61
Checks if a matrix is symmetric positive semi-definite.
def is_PD(symMat): return np.all(np.linalg.eigvalsh(symMat) > 0)
0
cc7bf44e8bc06546e285ca4e531fc5d6
0049e67695eea5b17ace83ee42de4f59
Since validation occurs at insertion, just check if there are any more cells to be filled
public class Upload public boolean validateCells() { if (table.getCellEditor() != null) { table.getCellEditor().stopCellEditing(); } for (int i = 0; i < table.getRowCount(); i++) { for (int j = 0; j < table.getColumnCount(); j++) { String om = table.getValueAt(i, j).toString(); if (om.trim().length(...
0
52c1e109d84665e8244c77a2e219c546
863449a1c567afed463fbcd96de7fe8d
@brief Creates array containing .bmp format-required info header based in image specifications
{ memset( &bmiHeader, 0, sizeof(bmiHeader)); bmiHeader.biSize = sizeof(bmiHeader); bmiHeader.biWidth = width; bmiHeader.biHeight = height; bmiHeader.biBitCount = (WORD)bpp; bmiHeader.biCompression = compression; bmiHeader.biPlanes = 1; for( int i = 0; i < 256; i++ ) { bmiColo...
1
24aa48daab7a08e5205d38dc38c9fc0d
6799930ee5fbc5d641ec849900388d8e
_________________________________________________________Metodo para obtener cuenta_____________________________________________________________________
try { StartConn s = new StartConn(); String sql = "call select_speech_cuenta('" + cuenta + "');"; System.out.println(sql); String datos_cuenta = ""; s.rs = s.st.executeQuery(sql); while (s.rs.next()) { datos_cuenta = s.rs.ge...
1
fe1fb8de640f9c9bbd25950bb12bf915
19a2036d2e8e4b458c55751f6347ddee
获取生源地成绩分组
{ Dictionary<string, List<string>> retVal = new Dictionary<string,List<string>> (); QueryHelper qh = new QueryHelper(); string strSQL = "select case when class.grade_year is null then 999 else class.grade_year end,student.id from student left join class on student.ref_class_i...
0
00c577865c78fa34168ed50b50293b36
dfd5b7697b8d598263d5e84f2b8bb5ad
Return an iterator over the dictionary's values.
class ListDict(dict): def itervalues(self): return ListDictIter(self, 2)
1
23708a39c72add330b97d351a7646ca3
8f7d5ad9ffa2f4643d93443b4f440273
Get H5
BaseAnswer<Data4H5Get> getH5s(String userId, String deviceId) throws BusinessException;
1
63cf173c4b1159401f4d5c93aed30ea2
b2c6e15674b86707dcc0bcff3b434031
得到A交B
def intersect(A,B): ret=[] for b in B: if b in A: ret.append(b) return ret
1
551872005dbd47122c0ebcaaac975abf
3f6127a75e25ef77c8abb3dd8ef6290e
Decrements the recursion depth that the prompt should display when the $+$ token is used.
def log_exdent LoaderLogging.log_indent_level -= log_indent_step end
1
86b06776d7deecae9f37ab8e21e26298
82f4c82a947ecc6bea6c04c66d6c0454
Register the child tunnel process for a close event. This keeps process from becoming defunct.
class Process(_BaseProcess): def childConnectionLost(self, childFD, reason): os.close(self.pipes[childFD].fileno()) del self.pipes[childFD] try: self.proto.childConnectionLost(childFD) except BaseException: log.err() self.maybeCallProcessEnded()
0
608e640885f553b0e8cad647ecbb407a
2765d2b932d2e3a1917f9e7ae5e95584
根据监考表ID查询监考老师信息
@Service public class YcClassServiceImpl implements YcClassService @Override public List<YcIntermediateTable> findClassTeacher(String id) { return ycIntermediateTableMapper.getIntermediateTableByClassId(id); }
0
e4ecd7d44e5b555eaf80e70ab70e5a85
291e48543977ce322be4f9d72f22c221
Sequence names are contig names followed by an underscore and the number of the ORF. This function returns the contig name of sequences.
split = pdb_name.split('_') long_seq = split[3] short_seq = long_seq[1:7] return short_seq
0
59158f5942108929627331a071570f66
1c5db899b0b4314bc86703a72c733869
From XYZ to Rec. 2100 PQ.
class ProPhotoRGBLinear(sRGB): def to_base(self, coords: Vector) -> Vector: return lin_prophoto_to_xyz(coords)
0
13f638eb83c6cbe0d86ea3e08cc2054a
8decdebb271a4fd4712f92fc81743523
设置头像位置
@EActivity(R.layout.activity_login) public class LoginActivity extends AppCompatActivity private void setHeadPortrait(String url) { Glide.with(this).load(url) .centerCrop() .transform(new GlideCircleTransform(this)) .into(icon); System.out.println("test");...
0
b8e5cbb8a1ff72d27c5ba8f52d32fedd
78f41bde400f8fa8360d914aa1e9e8d0
Terminates Paramiko SSH connection
class Timer(NSObject): def closeConnection(self): try: self.ssh.close() except AttributeError: pass
0
fe8b6e285c28afaee76ceabfda2ae961
ee59e6f9ac0d9d7fd9746e6c01302326
A helper method to get the highest weight from a list of weights
double maxWeight = 0; if(!edgeWeights.isEmpty()) { maxWeight = Collections.max(edgeWeights.values()); } return maxWeight; }
1
092fd68abbd2819e66530d7aeab21340
7a4742360a0eb0422f688e816d3397ac
"double 型のリストをもとに1列の Matrix を作成します。"
mxArray * wiMexUtil_CreateWORDMatrixAsDouble(int m, int n, wiWORD **xReal, wiWORD **xImag) { mxArray *A; double *pR, *pI; int i, j; if (xImag) { A = mxCreateDoubleMatrix(n,m, mxCOMPLEX); if (!A) mexErrMsgTxt("Memory Allocation Error"); pR = mxGetPr(A); pI = mxGetPi(A); ...
0
f851a1161f5ae4f8449c6cb2be92d55d
95e61566d6d350c38d4e4f7a71b0a9af
For a student who just signed in, create HTML elements for the "section", which contains the image itself and the overlay div. The overlay div contains the three icons used for overlaying
function createImageAndOverlayDivs(id, studentID, studentScreenID) { var section = document.createElement('div'); section.style = "position:relative; width: 350px; height: 175px;"; section.id = id; var img = document.createElement('img'); img.id = "StudentImage" + studentID; img.style = "position:relative; ...
1
9114939f6018efc811638dbd6ae2301d
43eb6b332c2e39082b1de2c9f2c049f3
Create a matrix to precess from B1950 in FK4 to J2000 in FK5 following to Murray's (1989) procedure.
x_ref, y_ref, z_ref = r_ref r = np.sqrt(x_ref**2 + y_ref**2 + z_ref**2) lon0 = np.arctan2(y_ref, x_ref) lat0 = np.arcsin(z_ref/r) slon0 = np.sin(lon0) clon0 = np.cos(lon0) slat0 = np.sin(lat0) clat0 = np.cos(lat0) mat = np.array([[-slon0, clon0, 0], [-clon0*slat0,...
0
b1d2977c055d373d42fb338087663abb
38bac359c8db3ac5132d42bc0cfa7673
Returns the number of generations made with this provider.
int getGenerationCount();
1
2601b5f124b277bb5bf75ed1b26aeeb0
c4bbf1517684f6d5912bb13f3fd21d5e
设置随机出现的字体样式和随机的字体大小范围
public class CheckCode extends ActionSupport private Font randomFont() { int index = r.nextInt(fontNames.length); String fontName = fontNames[index]; int style = r.nextInt(4); int size = r.nextInt(3) + 24; return new Font(fontName, style, size); }
1
a39e9d3b400003128a2da517ad55713c
9ed21793db244834e289009d94d3cba5
Sets the is_responsive of this Post.
export class PullQuote constructor() { this.responsive = true; }
0
1c7dfa08a9df38f7a87047ef322b2b83
c72388faa685e437f995edb749dcd5ac
计算最近几天的标准差,然后输出,找到波动率大的股票,看下能否做短期套利
m = 20 delta_5 = datetime.timedelta(days=5) start_date = datetime.datetime.strptime(startdate,'%Y%m%d') end_date = datetime.datetime.strptime(enddate,'%Y%m%d') df_dailybasic_last = get_ts_dailybasic() df_dailybasic_last= df_dailybasic_last.set_index(['ts_code']) df_result = pd.DataFrame() ...
0
4e2664c91b899ecad41443a1eeb25671
f22e381e5533609dea811c30dc6fc5bd
Guarda en la base de datos la facultad proporcionada En caso de que ya exista, se actualizan los datos
public Faculty create(final Faculty faculty) { entityManager.persist(faculty); return faculty; }
0
b2f58c8c4093da7fbac254627370a4be
a3d829ef010b2be647b9ea27193e8aed
Returns true if the latitude and longitude intervals of the two rectangles are the same up to the given tolerance. See {@link R1Interval} and {@link S1Interval} for details.
@Pure boolean intersects(OrientedRectangle2afp<?, ?, ?, ?, ?, ?> orientedRectangle);
0
b0de00e0b7e42bc7e9ee2d9c225cff50
3d290be3f89028670ffbe602312aab73
@brief Disable the detection of the Free Fall event for ISM330DHCX accelerometer
int32_t LSM6DSO32X_ACC_Disable_Free_Fall_Detection(LSM6DSO32X_Object_t *pObj) { lsm6dso32x_pin_int1_route_t val1; lsm6dso32x_pin_int2_route_t val2; if (lsm6dso32x_pin_int1_route_get(&(pObj->Ctx), &val1) != LSM6DSO32X_OK) { return LSM6DSO32X_ERROR; } val1.free_fall = PROPERTY_DISABLE; if (lsm6dso32x_pi...
0
f073730b966c259e2b28398e227e25e2
3d369c252a743178f3527fec23ac026e
現在のリクエストがactionNameにより起動されている場合はtrueを返す. アクション名. submitボタンのvalue
function is_submit($key){ return (isset($_POST['request']) && $_POST['request'] == $key); }
1
4ea65472493405347fca563d6e54724f
f53c944824583dd0baecd3d8f3f0589c
Get list of all nodes from root to current node
nodes = [] curr = self.tail while curr: nodes.append(curr.data) curr = curr.getPrev() return nodes
0
8aa12f2d6284a4f079a84abf34b4a9dd
1e9db553037d6c454c2e471886e14f56
Add a ui definition for gadget with the name ui_name
{ var define = new NameFuncPair[] { new NameFuncPair("add", Add), new NameFuncPair("sub", Sub), new NameFuncPair("create", CreateUI), }; lua.L_NewLib(define); return 1; }
0
414e314e123e5825e534c15bbead11c2
53cd0f0d8d61a6f8b06a65521cea1257
Generate Random Pose for current state (position)
def calcRandomPose(path, s_min=None, s_max=None): if s_min == None: print("generateRandomOpponents :: Setting s_min") s_min = path.s[0] if s_max == None: print("generateRandomOpponents :: Setting s_max") s_max = path.s[-1] print(s_min) s_rand = randint(int(s_min), int(s_m...
1
14d5bada0027a65eb24a67c27e0070fe
e72d5360f0c291eba7c974cfb39f4533
Creates an array of <see cref="KStream"/> from this stream by branching the elements in the original stream based on the supplied predicates. Each element is evaluated against the supplied predicates, and predicates are evaluated in order. Each stream in the result array corresponds position-wise (index) to the predica...
namespace CsUtility.Enumerable public static partial class EnumerableUtilities public static IEnumerable<IEnumerable<TSource>> SplitIf<TSource>(this IEnumerable<TSource> source, Func<TSource, TSource, bool> predicate) { if (source == null) throw Error.ArgumentNull(nameof(source)); if...
0
d3150e6ed2ba5ccb54aab998dcaae239
c0796933091e54731d703c6177ef80d1
已收利息.
@Table(name = "LOAN") public class LoanCriteria extends BaseCriteria public BigDecimal getReceivedOverdue() { return receivedOverdue; }
0
ca3b03c50255dbd4e5c1c010708236a4
4e1789a0c67e670361ac733fb4ff6076
Tests wether a single filter with multiple mappings is correctly merged into an empty descriptor.
public final class WebXmlMergerTest extends AbstractDocumentBuilderTest public void testMergeOneFilterWithMultipleMappingsIntoEmptyDocument() throws Exception { String srcXml = "<web-app></web-app>"; WebXml srcWebXml = WebXmlIo.parseWebXml(new ByteArrayInputStream(srcXml.getBytes()), null); ...
1
fcf50470020129c95454941c1902b1ff
7ee9e633fd4ccf722cdf5cd6d8cc34f6
Removes a global hook.
removeHook(hookId) { return this.manager.removeHook(hookId); }
1
c90f58d8a5bff5842be5c45c10cfeded
292e9fa5cac760821f9ff881f9f50f39
DLITERAL
static void prim_D_LITERAL(void) { if (!COMPILATION_MODE()) return; forthDictStoreFindPrimitive(primitive_D_LIT); DOUBLE n = SP_POP_DOUBLE(); forthDictStoreDouble(n); }
1
3e000d69d39b14647a79f5895b35509f
29357335f8d0b8454d192ca3423a98d7
Populate the initial log group/stream pane. <p/>
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); RemoteSourceTreeLoader loader = new RemoteSourceTreeLoader(); loader.setFileNameStartFilter("ospfd"); loader.setAddress(this.getLogSourcesAddress()); loader.setParsingIdentifications(rowFolderIdentification.getText(), rowZIPFileIdentification.getText(...
1
d8fca3d3b3a73c43c0beec0ef95782e6
7833df3a12893cda56836c5e0e739054
判断字符串是否包含奇数个引号
{ int quotaCount; bool oddQuota; quotaCount = 0; for (int i = 0; i < dataLine.Length; i++) { if (dataLine[i] == '\"') { quotaCount++; } } oddQuota = false; ...
1
1bcf9b0ec27b03a127d4ed8dca6682a8
4dd7cd62ae1be3d720e86367a472003f
Hack to allow our exception handler to force choice of plaintext or html error responses.
try: self._return = ('text/html', TemplateHandler().render(web.ctx.path)) except mako.exceptions.TemplateLookupException: raise return self.return_to_client()
0
d26655443fe3f2e2847040ef3f5a1d84
81da68519f3ca6d0217c35855f55aac4
Sets the crm chi ward ID of this CRM Chi Ward.
public void setWardCode(String wardCode);
1
81ffd844fe0e67be6735cb8137062e43
9f0e2ad7e1b65737cf92728298f8cce7
Update configuration when checkboxes are clicked
{ string checkBoxName = ((CheckBox)sender).Name; if (checkBoxName.Contains("1")) { if (((CheckBox)sender).Checked) Properties.Settings.Default.ctrl1TriggerAsButton = true; else Properties.Settings.Default....
1
7a8f1e12ebee710fb538ebf7c19f73b4
2076c1454d0f1503d16423b2557bd777
随机滚动到某一位置
class AccessBaidu(object): # os.environ['MOZ_HEADLESS'] = '1' #headless模式 def scrollrdm(self): try: js = "var q=document.documentElement.scrollTop=%s"%(random.randint(1,10000)) self.driver.execute_script(js) time.sleep(random.uniform(1, 3)) except: pa...
1
6060fb79bc0b51332929480c24c613b7
2fb568c64829e0eaa5e8e7da2ea050dd
获取链接按钮
class SubmitArea extends BaseComponent{ getBtn(){ let pro = this.props.project; let ifLogin = this.props.ifLogin; if(!pro) { return ( <InnerLoading height={'1.4rem'}/> ); } if(ifLogin === 0){ return ( <Link to={"...
1
d594b01043043754df2c34d679f7aac5
835d44b52d0b6096d7b024ac4a0a2a3f
Transmits the header to the destination stream
namespace BusinessCommunication.Codec.Transport public class TransportObject public class Header public void Write(OutputStreamWriter sw) { sw.Write(header_tag); sw.Write(body_size); sw.Write(package_type); }
1
09fd73e981883455187ca5c6d3d1ab36
b832eb094c7cb5600119122649cfd7c3
PREGUNTA SI EL PACIENTE ESTA ACTUALMENTE EN PABELLON
class User(AbstractBaseUser): #Información personal - obligatiorios def is_paci(self): return self.es_paciente
0
9110a3901d8cacedadf359a5f7da6ec0
af36c8c2062668240e569ecabb59b73f
Assert a rule.
final class Sf extends AbstractRule public function validate($input): bool { try { $this->assert($input); } catch (SfException $exception) { return false; } return true; }
1
b5ae5e5e0fff0450a4e1f1534cba7e62
a865c902871b4b6cae1a074ec5b2d0d7
获取指定包名下声明的权限列表
return runCatching { getPackageInfo(packageName, PackageManager.GET_PERMISSIONS).getStatefulPermissionsList() }.getOrElse { emptyList() } }
1
652ce4117db6815c8dae99c0472405bf
8a4a97720da46d2f85ba73ffc0d2b7f8
Loads the last known state of this job from the datastore.
try: if wait_for_statechange: response = self._session.get( self.url, stream=True, timeout=timeout, params={ "WAIT": "-1" } ) else: response = self._session.get(self.url, strea...
0
d22148be8d6a7c8487660b3cab670ab5
87e43cf8c9fb56e93132342a56442411
Gets a usage plan key of a given key identifier.
{ var options = new InvokeOptions(); options.RequestMarshaller = CreateUsagePlanKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUsagePlanKeyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); }
0
cf2ed1c52ce8f555838b61f3f2cc7bd9
91ee6ffb2c317bb418dfc3384521eb06
Returns the customre rating to use for css classes
$value = $this->config->getAppValue($this->appName, $this->_customizationReviewDisplay, "original"); if ($value === "markup") { return "markup"; } if ($value === "final") { return "final"; } return "original"; }
0
0d1e61ba1cfe34e7ec84bdf2de452345
84a07c9162da4d8f0847e9a160f8283b
執行非同步縮放並計算執行時間
namespace ImageResizer public class ImageProcessAsync1 public async Task<Image> ResizeImageAsync(Image image, double widthScale, double heightScale) { var task = Task.Run(() => ResizeImage(image, widthScale, heightScale)); return await task; }
0
b25f5e3d020e1eac2d5d09666a7a5e80
d7b8b0f44cae8831cd0213b9b4432590
função para criar os pixels e adicioná-los em uma única linha
lista = [] i, x, y, y1 = 0, 20, 1, 80 while (x < (larguraDaJanela-20)): lista.append(canvas.create_line(x, y, x, y1, fill="#a0a0a0")) x += 1 global numeroDeLinhasMemoria numeroDeLinhasMemoria = len(lista) return lista
0
4059f6383c010cba4951dd179040a16f
b7b7dc01bbde883118a2f1223ab1ac58
上传采购合同接口
Upload() { var self = this self.loading.upload = true var params = { file: self.file.base64 } self.$api.File({ url: self.$url.Erecord.Upload, params: params, headers: { 'WCOSIGNTOKEN': utils.Auth() }, suc: function (result) { ...
1
85e1d2c21d1e5018e65a7151a32e052b
59ed67c3cdd54b8395f65ca974afdea8
Draw button in its checked state.
CRect rectCheck, BOOL , BOOL bIsRadio) { ASSERT_VALID (pDC); ASSERT_VALID (pButton); int iImage = bIsRadio ? CBCGPMenuImages::IdRadio : CBCGPMenuImages::IdCheck; CBCGPMenuImages::Draw (pDC, (CBCGPMenuImages::IMAGES_IDS) iImage, rectCheck, (pButton->m_nStyle & TBBS_DISABLED) ? CBCGPMenuImages::ImageGray : CBC...
1
a71037326b6acf1c0559e23d52fd5e30
6456d109d585a3b24355c4bf16961098
clear the backstack as it is undesirable for the user to enter the login screen again
public class MainPage extends AppCompatActivity implements MakeAnOrderFragment.MakeAnOrderListener,ActiveOrderOfClientFragment.ViewOrderBtnListener,OffersOfProfessionalFragment.OfferOfProListener ,FinishOrderOfProfessionalFragment.ViewOrderBtnListener, ActiveOrderOfProfessionalFragment.ActiveOrderProOrderBtnListener,Te...
1
55185612006d93985860c9b03a770d04
04d31daf6c0f29bd39b8324517418623
convert 4x4 to column major format for opengl
void vvMatrix4::getGL(float* glmatrix) { int row, col, i=0; for (col=0; col<4; ++col) for (row=0; row<4; ++row) e[row][col] = glmatrix[i++]; }
1
77c874dd02149b52367dc75843950735
902558f040b6750f36a978925ac956d4
Returns the value of the '<em><b>Pourcentage</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Pourcentage</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc --> extendedMetaData="kind='element' name='Pourcentage'"
boolean isSetPourcentageEnfouissement();
0
dd5bf54290c48d111f7ee53f29c6f923
ac6acdfbd01190ede60b95d2c5ee1b99
Sets the email address that will receive this notification.
public class ExchangeFileSystem extends MailFileSystemBase<ExchangeMessageReference, ExchangeAttachmentReference, ExchangeService> implements HasKeystore, HasTruststore public void setMailAddress(String mailAddress) { this.mailAddress = mailAddress; }
1
121285e354203e7dc8861106694ecee3
116d795433175a4a17025c7a3913610b
permet d'afficher les éléments lors d'évènements print en fonction de leur valeur.
class Compteur(object): def _elements_condition(self, valeur): return [k for k in self.elements if self._compteur[k] == valeur]
0