query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
11f6633b129f966aad3ac9e489a7a7ec | 42aefc487c19c07d4febbea55814d705 | update fields of remote server information when target widget state changed. | {
SRemoteOffice roInfo;
RO_GetRemoteOfficeInfo(roInfo, m_iAccountId);
if (m_pCheckStatus == NULL
|| m_pEditNumber == NULL)
{
return;
}
m_pCheckStatus->SetData(roInfo.bActive);
m_pEditNumber->setText(toQString(roInfo.strPhoneNumber));
} | 0 |
5ccbea0ff8fadfa85ea1e24718d44fdb | 327c56c81ac6702378fd496ce9629bb7 | Get dashboard data from the cache | export class UserService
getDashboardData(): Observable<DashboardDataResponse> {
return this.http.get<DashboardDataResponse>(`${environment.baseUrl}kpiData`)
} | 0 |
710ecb19c89168139ff4d2928b84f2a0 | eac1268a07dce76d9b9321aaac612c99 | 添加ip地址(代理)到数据库,并将代理的分数进行初始化赋值 | class RedisClient:
def add(self,proxy,score=INITIAL_SOCRE):
if not self.db.zscore(REDIS_KEY,proxy):
return self.db.zadd(REDIS_KEY,score,proxy) | 1 |
207b46c73d59d91ec371382e87104d0a | e256f2ae7d95bdcc36bf8e0995fd982e | 添加学费计划的方法 | public class FeeAction extends ActionSupport implements ModelDriven<Fee>
public String addFee() throws IOException {
feeService.addFee(this.fee);
return NONE;
} | 1 |
66a115ba8973d1bcf0bd75ceb6841b5f | 05d3944a0f915906c2553b6dbb3f1a49 | 插入文本到末尾 | def insertEnd():
var=e.get()
t.insert('end',var) | 1 |
07c56d2e0db1a290273949ddc10b076b | ad7711b245146f9bcc9129b40504f342 | Sorts grids by how long they took to be created. | return items.sort(
(a, b) =>
Number(format(b.createdAt, 'x')) - Number(format(a.createdAt, 'x')),
);
} | 1 |
c63cd9a7314c4289390d318950ced917 | 88631505cd638a961eb4674f1fc5d3f1 | Limpiar los TextBox y CheckBoxList de Crear Incidente y Modificar Incidente | {
this.hdIdBeneficio.Value = string.Empty;
this.CbPrograma.SelectedIndex = -1;
this.CbCondicion.SelectedIndex = -1;
this.cbDepartamento.SelectedIndex = -1;
this.cbMunicipio.SelectedIndex = -1;
this.cbMunicipio.Items.Clear();
... | 1 |
74a95cfd3ab1f68377224c6ca1b9b519 | 734259d46539fcccf257ca886c06ec51 | Configure Hall sensor | uint8_t configHallSensor(void) {
uint32_t retInitDevice = HALL_initDevice();
if (retInitDevice != HALL_OK) {
return INIT_FAIL;
}
uint32_t retConfigDevice = HALL_configure(&SI7210_CONFIG);
if (retConfigDevice != HALL_OK) {
return CONFIG_FAIL;
}
return CONFIG_FAIL;
} | 1 |
60f0bb3c0205813d2a45d336c8b17586 | c73d29dacaceccab495e624c6a1dc101 | Clears all stars before applying styling | function resetStars() {
starOne.className = "fa fa-star";
starTwo.className = "fa fa-star";
starThree.className = "fa fa-star";
starFour.className = "fa fa-star";
} | 1 |
f74c74c90d855a819caeb2ea780f5d89 | 5f933741536c4ccd323ebc926fcb2f5c | Get the total mass at T₀. | class TimeView1d(object):
def get_total_m(self, i):
if i < self.num_steps:
self.get_m(i)
return assemble(self.m * dx(self.mesh)) | 1 |
cd75acf5ed7c90add024e49a1ba1e6fd | 82e21155fea6d1456afbc41c4c8e6faf | Find location of id in type | {
int xOffset = 0;
var xFields = (from item in aDeclaringType.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)
orderby item.Name, item.DeclaringType.ToString()
select item).ToList();
if (aDe... | 1 |
578335cebf112532c359c050ed4d28a7 | 726b2dcb10bb312470142a8bc20ec668 | 主线程等待子线程运行结束后方可执行下一步 | synchronized (waitTaskMap){
Log.d(TAG, "begin start next");
Iterator iterator = waitTaskMap.entrySet().iterator();
while(iterator.hasNext()){
Map.Entry entry = (Map.Entry) iterator.next();
if(entry != null){
waitTaskMap.remo... | 0 |
7b2321dc7e01a29f1d844a2ec524c4b6 | 458a0680bf9787b42495af552a3bec9f | put the first char at different positions in the permutations of the remaining chars
O(n!) | if (chars.size === 0) {
return [""];
}
const perms: string[] = [];
const uniqueChars: string[] = chars.uniques();
uniqueChars.forEach(char =>
perms.push(...getPermsThatStartWithChar(chars, char))
);
return perms;
} | 0 |
912c66f0469acaa90b0f4a4e67008de2 | ddf70121c3417a015f28de4187158116 | Cancels the execution of the given handler. | internal class InProcessProxyExecutionManager : IProxyExecutionManager
public void Cancel(IInternalTestRunEventsHandler eventHandler)
{
Task.Run(() => _testHostManagerFactory.GetExecutionManager().Cancel(eventHandler));
} | 1 |
acae15bf6b866944aaec10d20ecc99ab | 7697bd471464170f250f3b694b2292e1 | 入力行動についてスコアが高い上位k件の地物クラスとそのスコアからからなる2次元リストを返す | class KNeighbour(kn):
def nTopProb(self, feat, n = 1):
topList = super(KNeighbour, self).predict_proba(feat)
sorted = np.argsort(topList)
res = []
for idx, cli in enumerate(sorted):
prob = topList[idx][cli[-n:][::-1]]
... | 1 |
d1b744b3891bbbe4801ff4c052e56286 | 9a63c77fe0ddb898b84aab975b79fa54 | Handles the clicking on the "Delete Picture" context menu. | {
Debug.Assert(this.SelectedEntry != null, "There must be a selectd entry when modifying photo.");
if (this.SelectedEntry.PhotoPath != null)
{
this.contextMenuStripPhotoWithPhoto.Show(
this.buttonPhoto, new Point(), ToolStripDropDownDirecti... | 0 |
3a39ab4992aaa234e6e15f4f35a0d249 | 77b5a3dcb4c7522cd0940845357e6097 | Gets the study level of learners. | class OBR extends GenericSegment
public function getReasonForStudy() {
return $this->getField ( 31 );
} | 0 |
a64cf41d65048351f11d6eb46f977331 | c24ac6fbd96ae1adba3e834e458dc8c7 | Gets a file name, reads it to a string and then replaces the current contents of the
text box with the new text. | class Gui_cudaSimrecon:
def update_text(self, widget, strType):
fname = self.naming_dict[strType]["objTextfield"].get_text()
self.naming_dict[strType]["strFname"] = fname | 0 |
cbd87b17d6fdc1d03bab98bf33ca643a | 6f28c66a8c73ae2afc7433ff570a1236 | 过滤保留属性值小于预期值地实体。 | public void adjust(List<ProcessItem<?>> values) {
List<ProcessItem<?>> valuesToRemove = new ArrayList<ProcessItem<?>>();
if (getInput() != null) {
for (ProcessItem<?> value : values) {
Object object = invokeMethod(value, this.filterProperty);
if (object != null && filter(object)) {
valuesToRemove.a... | 0 |
3911ec4903c1f3265a15f69aaf6489b7 | c95474edc94ca46ac02c4b3936e4a7e3 | Set ReuseDigitalDownloadKeys value | try :
self._maxreusepool = maxreusepool
except Exception as e:
raise e | 0 |
23f2c9ad90c803ff6c3aa2fc7913077a | d35fd0b5391d54a07364178d43f82fcf | google坐标转换成百度坐标 | {
double gg_lat=0,gg_lon=0;
WGS84_to_GCJ02(wgLat, wgLon, &gg_lat, &gg_lon);
GCJ02_to_Baidu09(gg_lat, gg_lon, bd_lat, bd_lon);
} | 1 |
622650af21719be934936251a6c55d0d | 6248749c36afb4f098d2cb988773cc18 | Deletes a Kinesis stream. | try {
DeleteDeliveryStreamRequest deleteDeliveryStreamRequest = DeleteDeliveryStreamRequest.builder()
.deliveryStreamName(streamName)
.build();
firehoseClient.deleteDeliveryStream(deleteDeliveryStreamRequest);
System.out.println("Delivery Strea... | 0 |
afbfd23100b6577cd46479ab9b628311 | 2d1e884266f214910ca858277ebca283 | 线段是否相等 (忽略方向) | boolean EQ(LINE L1, LINE L2)
{
return (L1.endPoint.x == L2.endPoint.x) && (L1.endPoint.y == L2.endPoint.y) && (L1.startPoint.x == L2.startPoint.x) && (L1.startPoint.y == L2.startPoint.y);
} | 0 |
f3d79d4e6b5db5431936cc9944430c05 | 9a52503615bb2285a345fac1e8ca123f | get drinks by ingredient filter from theCockatillDB.com | let url = buildUrl("random") + "q=" + q;
getData(url).done(result => {
renderDrinkInfo(result);
renderIngredients(result);
});
} | 0 |
aa8bf13937ef89bb0ecb455b7f2ac5cc | a4360b9fed98352c9c0e04b489986493 | Setter for the text line mode parameter | void lino_set_multiline(lino_t *ls, int ml) {
ls->mlmode = ml;
} | 1 |
81d695eaa58e159ed496b584c1e37f8f | 1aa5c5a89056e06797462057c7bba252 | Convert a pandas.DataFrame into a dbf.
__author__ = "Dani Arribas-Bel <darribas@asu.edu>, Luc Anselin <luc.anselin@asu.edu>, Kanahiro Iguchi"
... | def df2dbf(df, dbf_path, my_specs=None):
if my_specs:
specs = my_specs
else:
type2spec = {int: ('N', 20, 0),
np.int64: ('N', 20, 0),
float: ('N', 36, 15),
np.float64: ('N', 36, 15),
str: ('C', 14, 0)
... | 1 |
1ddd175cc7bacabc013c5edcf22964b4 | e50335a5018b8421415369951c7902ba | Handles the "START" (game start) command sent by the game host. | StartGameMsg msg = new StartGameMsg();
Log.info("Got the StartGameMsg on Server");
if (setupGame()) {
msg.setFeedbackUI(0);
msg.setGame(gamehandler.getGame());
server.sendToAllTCP(msg);
ActivePlayerMessage activePlayerMsg = new ActivePlayerMessage(... | 1 |
b055508e2aed8d8872bfc2ee5e8150a5 | f9f8c18690b581ad39da4ca6a352551e | Divide 2 histograms | TString xAxisLabel,
TString yAxisLabel,
const char* name,
const char* histName,
TFile *outfile,
Float_t YMin = -1, Float_t YMax = -1,
bool logx = kFALSE, bool logy = kFALSE,
Float_t X... | 1 |
2e62383633bf96600a81976c12731e1f | 7d4c8d8fbae072ff0d631ab4fa2eb859 | When create quad is set to true, a fullscreen quad will be used to be
able to directly apply a shader to it | function QuadtreeNode3D(ctx, bvhRefiner, level, nodeNumber, nodeTransformation,
columnNr, rowNr, geometry)
function createFragmentShader() {
if (bvhRefiner._vf.normalUrl !== "")
return "#ifdef GL_ES\n" +
"precision highp float;\n" +
"#endif\n"... | 0 |
628e9faf518ddd714344491454112be5 | df09a54ecc4f256e648dae41a830f7c4 | This test case ensures required scopes decorator still works when no scopes are specified. | class rbacCollectionTest(BaseTestCase):
def test_incorrect_scope_collection(self):
self.check_incorrect_scope_collection() | 0 |
d26845ef724b0de714f363b0b5c0596b | 49e486adab1626ea27c123283bebb400 | Sends a message to HipChat. | namespace HealthGateway.HNClient.Services
HNMessage SendMessage(HNMessage msg); | 0 |
8592a6b493f81bcdb078d4079d3fb397 | 4e464554d36d4f83fd3f6830ee002231 | Переключает раскладку написанного текста с русской на английскую. | namespace TelemetryAnalyzerEOS
public partial class MainForm : Form
private void btnLangRus_Click(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU");
Controls.Clear();
InitializeComponent();
SetProperties(_safefileNa... | 0 |
cbd7429f7bf7dd19a7db3658ae6e467e | aac3aea93389007a5d4d386667750e43 | Selecciona con color una imagen elegida, y comprueba que
no haya otra seleccionada, en ese caso, la despinta, y pinta la nueva | function choseColor(){
for (var i=0;i<document.fcolores.colores.length;i++){
if (document.fcolores.colores[i].checked) break;
}
var comodin=(document.getElementById("F415")) ? document.getElementById("F415")
: document.getElementById("F416");
comodin.style... | 0 |
2d42f848d2de4df81b8396b374cb5c78 | b776c2b2ed63e2acdb5f1ce75d224788 | Returns the meta object for the attribute '{@link com.b2international.snowowl.snomed.snomedrefset.SnomedConcreteDataTypeRefSetMember#getDataType <em>Data Type</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EClass getDataType(); | 1 |
6799545cbb9236813e85149b97c6b2dd | bdda31822855e2074650481a29b79db8 | called when user change the country code | public class FrameMain extends JFrame
private void onCountryChanged() {
this.pageLocale.setAllowNext(this.comboBoxCountry.getSelectedIndex() >= 0);
this.countryUser = true;
} | 1 |
71c6b77763268a20c48b31cbbc0daf56 | 5e48cca195966df0b37a2f5a6b368b77 | transform a density matrix to a row vector | dim = len(rho.shape) // 2
inds_1 = [n for n in range(dim)]
inds_2 = [n + dim for n in range(dim)]
indices = inds_2 + inds_1
return 1 / 2 * (rho + tf.conj(tf.transpose(rho, indices))) | 0 |
46a47ba601756ad73e15838baa0f9ae5 | 64f17bbda358f4167670630837f834b3 | A simple table creation for our database using customer_schema.py | conn = connect_to_db(DB_NAME)
c = conn.cursor()
c.execute("DROP TABLE customers")
conn.commit()
conn.close()
return | 0 |
365144ea905b7771361987655760bfab | ce429a7b52a5c91bfb515362dae17daa | Returns whether or not the given key binding is fully satisfied,
including modifiers | {
switch (deviceBindings[(int)gameKey])
{
case Devices.KEYBOARD:
if (keyboard.IsKeyDown(Keys.LeftControl))
return keyboard.IsKeyDown(keyboardBindings[(int)gameKey + ((int)ModifierKeys.CTRL * gameKeyCount)]);
... | 1 |
a55547da9ce19e6e4f67559e4c9a331b | 6808911e21da75574e0e356cecfd4282 | 指定年月の月末日の取得 | {
var date = new DateTime(year, month, 1);
date = date.AddMonths(1);
date = date.AddDays(-1);
return date;
} | 1 |
5b088d8ae1bc1b43d8c53eca99a89ef7 | bc824e3dd633797542ce0bd31a0c3285 | Récupère les commandes que l'utilisateur a déjà pu faire | {
$user = $this->getUser();
$em = $this->getDoctrine()->getManager();
$commandes = $em->getRepository(Commande::class)->findBy(['user' => $user->getUsername()]);
return [
'user' => $user,
'commandes' => $commandes
];
} | 1 |
8762a65f70fc970b3d3ff1587a5e2f24 | e13bb312f30cf8afd58366b94a507225 | Creates the config parser. Maybe more to do here later with parameter. | namespace NuOLSRv2Port
PUBLIC nu_parser_t*
nu_parser_create(char* fn)
{
nu_parser_t* self = nu_mem_alloc(nu_parser_t);
self->config_filename = fn;
if ((self->fin = fopen(self->config_filename, "r")) == NULL) {
perror(self->config_filename);
exit(1);
}
self->line_num = 1;
self->le... | 1 |
6de31ae7e1d398aa8f52a9e19ae241d5 | 9012cf711c27dca5d58c6f4aaa931ba0 | 改变提现单状态(删除) | class UserWithdraw extends Base
public function change_status()
{
if (!empty($_POST['id'])) {
$id = $_POST['id'];
unset($_POST['id']);
} else {
$id = '';
exit;
}
if (!isset($_POST['type'])) {
return ReturnData::create(Return... | 0 |
c66d068762efe70155c85d9b8a55d0f8 | 6cba608c0258c0472833bd22f25f3d4c | Extracts target species from .pdf | def pdfMine(fp):
str_io = StringIO.StringIO()
laparams = LAParams()
rsrcmgr = PDFResourceManager(caching=True)
device = TextConverter(rsrcmgr, str_io, codec='utf-8', laparams=laparams)
process_pdf(rsrcmgr, device, fp, pagenos=set(), maxpages=0, password='',
caching=True, check_extrac... | 0 |
ddfede90e06097f94c94b5a0f8cd7213 | 7e99d4662b79301bf6d417784f940167 | Set filter value default text input field. | {
aarFilterTextField.setText(filter != null ? ListUtil.commaSeparatedString(filter, true) : DEFAULT_AAR_FILTER);
} | 1 |
cbfccba1b3c1670f016c900ad7608444 | 09d3a13f281ffbc8c0c1d1d197f91095 | <br>[機 能] 選択したブックマークSID(複数)からブックマーク情報を取得
<br>[解 説]
<br>[備 考] | Bookmark bookmark = new Bookmark();
bookmark.setIsbn(isbn);
bookmark.setUserId(userId);
return bookmarkMapper.select(bookmark);
} | 0 |
332a343060ef2c872eb41066a7b0830c | a94f29c1a04a505f65b26bd995d5712d | noteのjsonからprety_midiのNoteのオブジェクトに変換するマッピング関数 | var begin = data.indexOf('MIDI.Soundfont.')
begin = data.indexOf('=', begin) + 2
var end = data.lastIndexOf(',')
return JSON.parse(data.slice(begin, end) + '}')
} | 0 |
b7b5300c41684f304ace80da49cf213f | e18d20bdfbcfcbd58e4d07e8d19de463 | : COMMON_ESCAPE | HEX_ESCAPE | fn escaped_char(i: &str) -> IResult<&str, char> {
preceded(
char('\\'),
alt((
preceded(char('U'), hex_digits(8)),
preceded(char('u'), hex_digits(4)),
value('\u{7}', char('a')),
value('\u{8}', char('b')),
value('\t', char('t')),
... | 1 |
4a172d384208f0e132ea96a462e60c87 | 2e91dea7b1fcc05b5488b70ad5e04128 | Closing an image means dilating then eroding the image. This sequence of operations "closes" the holes in the mask. | void DepthHoleFiller::performMorphologicalClose ( ofxCvGrayscaleImage &input, int diameter){
for (int i=0; i<diameter; i++){
input.dilate();
}
for (int i=0; i<diameter; i++){
input.erode();
}
} | 1 |
b4f8f602d18d2b78aa044a0af049f9ce | b9210096c05122bdf51377b6d8e3cb6f | Sets the initial history when solving. | columns = 3
rows = 1
for i in range(columns):
for j in range(rows):
self.history[i][j] = 0 | 1 |
5c40a15e6bab328d3507884929b0d65b | 47d08279cbd72d1155dc26dba327aaf0 | Add one bid for this item | this.item.bidInfo.bidCount++;
const winningBids = this.item.bidInfo.winningBids;
winningBids.pop();
winningBids.push({bid: '__temp-bid-id__', amount: bidAmount});
winningBids.sort((a, b) => b.amount - a.amount);
} | 1 |
b119adbf0a8630a4f4019814d39275c4 | faa6101ba5deafabef16d7e49c89f932 | Raise matrix to given power | namespace neco
class _3rdparty
public static Matrix mPow(Matrix M, int n)
{
Matrix res = new Matrix(Matrix.Identity(M.NoRows));
for (int i = 0; i < n; i++)
{
res = res * M;
}
return res;
} | 1 |
a6ef8ea869bd19f8d144cdd9e3471942 | e02f999b52f5e4ab5fcf3cb23db24a46 | 更新抽奖次数、用户积分 | $res1 = ActivityUser::where($type,$user_id)->where('total_num','>',0)->decrement('total_num');
$res2 = true;
if ($win_type){
$res2 = ActivityUser::where($type,$user_id)->increment('win_num');
}
if ($res1 && $res2){
return true;
}else{
r... | 1 |
9c19a2370c051dae7269627b3ea1500d | 684fa8158a1a7a2fccb214069238b42f | Asserts that two Eif JSON structures are equal.
Adapted from example code in https://github.com/lanthaler/JsonLD | namespace Dapper.GraphQL.Test
public class TestFixture : IDisposable
public bool JsonEquals(string expectedJson, string actualJson)
{
return JToken.DeepEquals(JObject.Parse(expectedJson), JObject.Parse(actualJson));
} | 1 |
450e0e6b474ded6aecdabdf380c1c118 | 5ec8d81a35b0d8cd0f100db2dc1523de | Creates a SongFile based on the files metadata | {
int nextId;
double duration;
String artist;
String title;
String tag;
String filePath = file.getAbsolutePath();
try (RandomAccessFile raff = new RandomAccessFile(filePath, "rw"))
{
byte[] artistByte = new byte[30];
byte[] titl... | 1 |
cbbedd56bd6c41a151c70d863b6da0ee | 9083343d2bad6549d153e1d6a317c746 | returns a list of all learner names that can be
used for calls to create_learner | return ['ab-dt', 'ab-ex-dt', 'ab-rf', 'ab-ex-rf', 'ab-dtr', 'ab-ex-dtr',
'ab-rfr', 'ab-ex-rfr',
'bag-dt', 'bag-ex-dt', 'bag-dtr', 'blag', 'blaf', 'blab', 'bayes', 'dt', 'dtr',
'ex-dt', 'ex-dtr', 'gb', 'gbr', 'c5', 'cubist',
'ex-rf', 'ex-rfr',
'logistic', '... | 1 |
c1159e5f65dbadd1400e9f41bcb26219 | a92399b9c2c12b0b22871537ac725222 | This function get a vector of sample and uses
'discriminant_function' function to calculates
value of discriminant function for p(x|w2) when
P(w1) = 0.4, mean = (16, 4) and Sigma = 4*I | v=[]
if np.shape(x) ==():
if (center-w/2)<=x<=(center+w/2):
v=cdif
else:
v=0
return v
else:
for element in x:
if (center-w/2)<=element<=(center+w/2):
v.append(cdif)
else:
v.append(0.)
return np.array(v) | 0 |
6dc28abf6f45a7095a12f3a9e45f4e21 | 6f2238492e7122e07bcc4699f6c803d8 | we set the debug level to Warning | void KristalliProtocolModule::Load()
{
kNet::SetLogChannels(kNet::LogInfo | kNet::LogError | kNet::LogUser);
} | 0 |
e7e79985b6b7296cc1877fd02c79e332 | 10797dacb40d5e45b36de551c94b5f7f | Retrieves a link between two neurons. | public class WMG_Graph_Manager : WMG_Events
public WMG_Link GetLink(WMG_Node fromNode, WMG_Node toNode) {
foreach (GameObject link in fromNode.links) {
WMG_Link aLink = link.GetComponent<WMG_Link>();
WMG_Node toN = aLink.toNode.GetComponent<WMG_Node>();
if (toN.id != toNode.id) toN = aLink.fromNode.GetCompon... | 1 |
913522da92707a528710895fed9cbf5d | 02deab5d2e7ce4fc22f9d95161bb60f1 | 右半部分 | setRightHalf() {
let viewPort = {};
viewPort.x = global.screen_width / 2;
viewPort.y = 0;
viewPort.width = global.screen_width / 2;
viewPort.height = global.screen_height;
this._setViewPort(viewPort);
this._screenPosition = GDesktopEnums.MagnifierScreenPosition.RI... | 1 |
83e56636c2471891bbd5448d65d7d067 | 8ea2899f511aaf41bc14e9f4038f9945 | Sets the horizontal length of the object. | public class LifeLine extends UMLObject
public void setLength (int length) {
m_length = length;
} | 1 |
9cd883e9a81a688d34ddbd19d1450188 | 59b58e0454c1c8c14be8c21386ca3ebf | Get the encrustor used to create the item material | public class DryingMatRecipe extends IForgeRegistryEntry.Impl<DryingMatRecipe> implements IJEISimpleRecipe
@Nonnull
public ItemStack getOutputStack()
{
return outputItem;
} | 0 |
e62c04de4f2ff8698ac94998d9020dd4 | 24e19fec8b9a7d42325290a4ac2ff7fb | planCallNotEqual generates a not equals (!=) Interpretable. | internal interface STPNativeLibrary: Library
fun VC.vc_notExpr(child: Expr): Expr | 0 |
6040b8e4876d2ef0f821f2f856dd9bcf | bc81118f32ac5aeca8815dc4396da14d | Ensures that front side of the surface is facing the user. | abstract public void setCullFaceFront(); | 1 |
7741da81be164dd9d63d0209fa70edf8 | 2bad86c62217e8ff26eb0aa69e29e726 | FUNCTION*----------------------------------------------------------------
Function Name : scanAndBuildBBT
Returned Value : SUCCESS or ERROR
Comments :
This function scans device and build Bad block table for used memory area
END*-------------------------------------------------------------------- | {
uint32_t blk;
bbt_t *p_bbt = (bbt_t *)&g_bbt;
info("%s: mark bad block test\n", __func__);
if (argc < 5)
{
info("wrong cmd_format: %s cs mode clk_delay blk\n", argv[0]);
return 0;
}
if (nand_init(argc, argv))
{
return 1;
}
blk = get_arg_ulong(argv[4]);
if (!nand_check_para(blk))
{
return 1;
}
... | 0 |
4c8429e3e3a24e4255c13b9ba8b093ff | 349d2603d74f40713c0c99c2dc9c05f7 | Combine source path or class path entries using the system separator, for example ':' in unix | {
var result = (first ?? string.Empty).TrimEnd();
if (others == null) return result;
for(var i=0; i<others.Length; i++)
{
var other = others[i];
if (other==null) continue;
other = other.TrimStart();
... | 1 |
76b3d56205649b25806d12e848586d64 | 4c4d4a0a54a5e756856beb086357663c | 不能修改大小 | @XStreamAlias("line") public class FigLine extends Fig implements NoObfuscation
@Override public boolean isResizable() {
return false;
} | 1 |
83b40ccc4ceaa62b30adb6b354f6b7b8 | 3c5e685b8aadffba2c2c71b1c6d42372 | The attack speech that's randomly chosen. | select = choice(
['bully', 'cuddle', 'cry', 'hug', 'awoo', 'kiss', 'lick', 'pat', 'smug',
'bonk', 'yeet', 'blush', 'smile', 'wave', 'highfive', 'handhold', 'nom',
'bite', 'glomp', 'slap', 'kill', 'kick', 'happy', 'wink', 'poke', 'dance', 'cringe']
)
return cl... | 0 |
b60f6c1a10a31048a441d4501aa1b8ed | c44635a559eb284a022d611fdae6862a | Takes one metric or a wildcard seriesList. For each datapoint from each metric passed in, pick the minimum value and graph it. | namespace ahd.Graphite.Base
public abstract class SeriesListBase
public SeriesListFunction MaxSeries()
{
return Unary("maxSeries");
} | 0 |
018201cfae8dded7de98d82e6964edf6 | 78efeeef20853ea0d07bd72523415d6a | Данный метод находит вес одного слова. | public Double calculateWeight(String searchedWord, Document document, List<Document> allDocuments) {
if(searchedWord != null && document != null && allDocuments != null){
return tfidfWordInDocument(searchedWord, document, allDocuments);
} else {
return null;
}
} | 1 |
28bae79e24b992427aa9b42285ca4d75 | d2de32ab355db3bde52a0e62459df0d8 | 根据个数创建变量名 | function createVar(ctxt) {
ctxt.varCounter = ctxt.varCounter === undefined ? 0 : ctxt.varCounter + 1;
return `_x${ctxt.varCounter}`;
} | 1 |
947c5c6ef68e2fc6286b83d0aaea6690 | e15fd3459fd4c31c6a7446c2831ab586 | 查询指定时间段内连锁店相关营业数据指标增长率 | {
List<MembershipGrowthResult> query = Entities.Rpt_MembershipGrowth(param.Merchant_ID, param.Shop_IDs, param.Rangetype, param.StartTime, param.EndTime).ToList().MapTo<MembershipGrowthResult>();
return query;
} | 1 |
1443dd085512b9489bf300d6c0d608df | cf0d42a52e642b20ee2834ffcbae96fb | 采用tfidf进行摘要抽取 | data = ["一切都像刚睡醒的样子,欣欣然张开了眼。",
"山朗润起来了,水涨起来了,太阳的脸红起来了。",
"小草偷偷地从土里钻出来,嫩嫩的,绿绿的。",
"园子里,田野里,瞧去,一大片一大片满是的。",
"坐着,躺着,打两个滚, 踢几脚球,赛几趟跑,捉几回迷藏。",
"风轻悄悄的,草软绵绵的"]
data_new = []
for sent in data:
data_new.append(cut_word(sent))
transfer = TfidfVectorizer()
data_final=transfer.fit_tr... | 0 |
7050d5793843af4c5396b80ff36e2c09 | 5ff57a3880eddcd089ce7a639cf65e48 | Ensure that the segments property of the paragraph is consistent with its
contents and consists of real database objects. | namespace SIL.FieldWorks.IText
public class ParagraphParserForEditMonitoring : ParagraphParser
protected override void EnsureRealSegmentsForNonTrivialAnalyses(List<int> segments, int[] segmentsArray, int iseg, List<int> formsInSegment)
{
} | 1 |
06c5bbb4db5ff32993f478fa90dc59b5 | a94a1677da9374f40ed36d7eb6a97964 | 退学学员-->查看跟进记录 | @Controller
@RequestMapping("/page")
public class PageSkipping
@RequestMapping("/apply_class_record")
public String apply_class_record(){
return "teacher/apply_class_record.html";
} | 0 |
7e2104bc9fc33598f6ee3de724862d51 | 3df43ec61eec4f6d33aa1e3febd7cf38 | Set if the octave up/down effect is reversed. | namespace ES.Ascom.Alpaca.Devices
Task SetReversedAsync(bool reversed); | 1 |
0e2955aa3636d8fc5d218a01cfe355b3 | 0c45d3efad5816edca39d3b9ac7c49e2 | Method which validates the coordinate generated by the computer, without print statements | {
String symbol = " ";
if ((playerName.equals(playerOne)) || (playerName.equals(playerTwo)))
{
symbol = GetPlayerByName(playerName).GetSymbol();
}
else
{
System.out.println("a");
return false;
}
if (!LegalCo... | 0 |
6d04ffb0a8c0b008f7c5ffa67e20405d | 55e8ded21a6a6fc7ab46e5765ecf09c2 | 布控:布控审批列表----不同布控状态的个数 | public ApiOutBean getZbBarCount(Bean reqData){
ApiOutBean outBean = new ApiOutBean();
List<String> xRepList = new ArrayList<String>();
List<Integer> yRepListFW = new ArrayList<Integer>();
List<Integer> yRepListQB = new ArrayList<Integer>();
UserBean currUser = Context.getUserBean();
String bTime = reqData.... | 0 |
9674627fc3a0e4655b07107a20a2105b | 16bd6338df429a28c76d6194ba04791c | string类型金额转换为分为单位 | public final class StringUtils
public static String fenChangeYuan(String s)
{
BigDecimal b = new BigDecimal(s);
BigDecimal b1 = new BigDecimal(100);
String s1 = b.divide(b1).toString();
return StringUtils.getLong(s1).toString();
} | 0 |
53ba7daa99c96523901b9cb1a3d28fb9 | b4f2e48196472ae54d910289f02935a1 | Sets whether the front-end user registered themselves. | class CompanyFrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
public function setIsFrontendAdmin($isFrontendAdmin) {
$this->isFrontendAdmin = $isFrontendAdmin;
} | 0 |
59e1129e224b3dabb6525a243c407b1e | 688500bd6687b6a3d05cce7df0efbb6e | 获得选择的商品数据 | selectGoods(e){
this.setData({
goods: e.currentTarget.dataset.goods
})
} | 1 |
d4bbabfda36f6b9b479ab3199fb78647 | fc62d42518ee465130f30d47cda0625a | 코멘트 양식을 리턴한다. | def get_form():
from django_comments.forms import CommentForm
if get_comment_app_name() != DEFAULT_COMMENTS_APP and hasattr(get_comment_app(), "get_form"):
return get_comment_app().get_form()
else:
return CommentForm | 1 |
27bfd7662464ba4737409ea59a594e5b | 17604f79abce69c834b4dcd6ec4ba383 | Processes the rolling file. | {
if ((File != null) && ((CountingQuietTextWriter)QuietWriter).Count >= m_maxFileSize)
{
RollOverSize();
}
} | 1 |
93f8772709ee1ffa8689d52e114fddcf | 67fa89bc9f003b9bc4f9cfa1a6107f0e | Determine whether the user can view any incomes. | return $user->hasAnyPermission('bills.view.*.*', 'bills.view.basic.*', 'bills.edit.*.*', 'bills.edit.basic.*', 'bills.view.basic.my', 'bills.view.basic.children') ||
$user->employee && $user->employee->is_driver;
} | 0 |
7ad80789fbd46f58afd84e4e6fa22cf3 | f5005f556169acb75eab16181ae5fcd4 | 显示新生成的CD-KEY列表 | var prjId = $("#prjId").val();
var prjtype = $("#prjtype").val();
window.location.href="/sprjbase/showCdList?prjId="+prjId+"&prjType="+prjtype;
} | 1 |
ef96f765205d1c78399ab012483d9b24 | dfc9ba35626b900f0fb370f390446db1 | Returns the intersection of sets in a 2D table.
```
use dypdl::prelude::*;
let mut model = Model::default();
let capacity = 2;
let object_type = model.add_object_type("object", capacity).unwrap();
let a = model.create_set(object_type, &[1]).unwrap();
let b = model.create_set(object_type, &[0]).unwrap();
let table = m... | fn intersect(self, set2:Self) -> Self{
Self::from_bits(self.to_bits() & set2.to_bits())
} | 0 |
e3ecfccc328180245997659b3d7d97e6 | 2a5d22b26efc38c22c4550b5c5df6dd0 | Gets the property name in the second selector. | {
var body = propertySelector.Body as UnaryExpression;
var name = ((MemberExpression) body?.Operand)?.Member.Name
?? ((MemberExpression) propertySelector.Body).Member.Name;
return name;
} | 1 |
41de44954bbc80ecfb287549cae9f756 | c298f656bbe782ea96af45d591170db2 | Bayesian distribution of predictions for a set of test data. | M, D = Z.shape
if self.is_trained:
if not self.train_data_dim == D:
raise ValueError('''Test data is of different dimensionality
than training data.''')
psi = self.psi(Z, self.theta.T, np.ones((M, 1)), K=self.K)
return self.pos... | 1 |
36f0300b4fb00b8dd9270742de876fbc | aa75f74f6dd73ef3ec5ba6ae1a8579ab | Renders the description using the appropriate markup language. | if type:
type = "_" + type
descr = ""
if calendar.is_night():
descr = getattr(self, "descr%s_night" % type)
if not descr:
descr = getattr(self, "descr%s" % type)
if not descr:
return ""
if self.ASCIIART_TAG_OPEN in descr:
... | 1 |
a9c7780968ed75978d7b5f700f6c73df | f0103ee6275528735fade482732d831e | Convert a YAML CSS dict tree into a set of CSS blocks. | def get__css_obj(text):
css = {}
blocks = get__blocks(text)
for block in blocks:
selector, rules = get__genom(block)
css[selector] = add_rules(css.get(selector), rules)
return css | 0 |
c34d0483e8e1700ced63b5724ccdf3aa | abce6f13a93c8494bc02cadcd34b97c4 | Strips directory and file extension from the specified path, returning only
the filename | {
String basename = filename;
int index = basename.LastIndexOfAny(dirSepChars);
if(index != -1) basename = basename.Substring(index + 1);
index = basename.IndexOf('.');
if(index != -1) basename = basename.Substring(0, index);
return basenam... | 1 |
2e9c7f9fe48d21cf496144a945e5b444 | bfebe0af1675c025307167de2923fc89 | [DOALOG_FORM_VISIBLE_TRUE 显示form弹窗] | function formShow(){
$('.commonForm-pop').fadeIn();
} | 1 |
7954bce6db9d796c40a638495062fe7b | 7073fd13d34897920e04dfb8170fdb31 | 分页查询废品订单表 | public List<Map<String, Object>> getList(WasteBook wasteBook, Map<String, Object> params, int pageIndex, int pageSize); | 1 |
8f4a097775c1832a48ddc1775560fe68 | 4c18c01934b4f050f24be26d9cc2246e | Gets the increasing quality data source. | {
if (collection == null)
{
throw new ArgumentNullException (nameof (collection));
}
if (value == null)
{
throw new ArgumentNullException (nameof (value));
}
QualityValueParameter data;
if (collection.Count < 1)
{
data = new QualityValueParameter (value, 1.0m);
}
else
{... | 0 |
250218b0752ca8f0d733927022f9c51e | c77fd4b22ffe774618fa7fa30f1934b0 | Are the points <b>within an epsilon</b> of the same angle? (ex: (45, 45) = true, (45, -135) = True, (45, -45) = False) | public final class GreatCircle
public static boolean collinear(LatLonAlt p1, LatLonAlt p2, LatLonAlt p3) {
double epsilon = 1E-7;
return collinear(p1,p2,p3,epsilon);
} | 0 |
f64d8fa26a7fa6ddd9a4537295301aab | cdf28485f957643e3f8540366c698805 | 将Django Settings DATABASES 数据库参数转化SQLAlchemy所需的连接url | database_config = DATABASES.get(key) if key else DATABASES.get(DATABASES_DEFAULT_KEY)
engine = database_config.get('ENGINE') or DATABASES_DEFAULT_ENGINE
driver = database_config.get('DRIVER') or DATABASES_DEFAULT_DRIVER
host = database_config.get('HOST') or DATABASES_DEFAULT_HOST
port = database_con... | 1 |
25af862e12eb1e8df4c87d7e89cd4297 | 677278f30e571227f800afcc0cc241b9 | 商品相册ID的取得 | class Article
public function getAlbumid()
{
return $this->albumid;
} | 1 |
a495416299a9bc76ad793ab3899e3670 | ea69b822dec5c6c6dc148cee2e226014 | Yhdistetään käyttäjän valinta tietokoneen valintaan | $(kentta).each(function() {
if( id == $(this).val()){
$(this).prop("selected",true);
}
else{
$(this).prop("selected",false);
}
});
} | 0 |
dfefa2860dc9515c904ea249e269c531 | 004e67eb46a49546fc2d96ad6b6eb00b | Computes the inverse of the distribution function. | namespace Euclid.Distributions.Continuous
public class ParetoDistribution : ContinuousDistribution
public override double InverseCumulativeDistribution(double p)
{
return _xm / Math.Exp(Math.Log(1 - p) / _alpha);
} | 1 |
cce771c39173fa4db941b93172b6e5dd | 77181f9cbd742be9b209f6203ab5433f | Test storage creation (when table already exists). | session = FakeSession()
async with repo.Repo(session) as store:
table = await store.get_table(TABLE_NAME)
assert isinstance(table, model.Table)
assert table.name == TABLE_NAME
assert table.df is None
assert table.timestamp is None
assert not session.tables | 0 |
5cedbec640dc2ce011c79035a070da13 | 171c4a9def1d7397556cc1310f4a6ead | Whether this unit may move and attack as an action pair during its turn.
This is, primarily, a distinction between direct and indirect units. | class UnitType:
def could_move_after_attacking() -> bool:
raise NotImplementedError() | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.