query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
5773ba469394f6fc612220db9c16ec12 | 1092d09e1c118216b8caf73dba8b9729 | 获取一个可以使用的FileModel,若所有FileMole都已经被分配使用,则回收一个 | if self.unused:
return self.unused.pop()
tmp_name = f"tmp-{len(self.used)}"
self.used.add(tmp_name)
return tmp_name | 1 |
b88a5163ea1090772a6ed1882e7f828d | 14708011f44eb417272dcb56a5c51d11 | readFile 能设定分隔符并读取int或double值 返回 ArrayList | InputStreamReader fr = new InputStreamReader(new FileInputStream(file));
BufferedReader br = new BufferedReader(fr);
String rec = null;
String str;
List<List<String>> listFile = new ArrayList<List<String>>();
try {
while ((rec = br.readLine()) != null) { ... | 0 |
518d765e4a631e6d9cf6d47b69cff023 | c3b22b7f4ad1bbbe82cea0054b7be0fb | Checks the getter of epsilon and delta parameters in the adaptive mechanism. | x0 = np.array([2, 2])
mcmc = pints.MALAMCMC(x0)
self.assertTrue(np.array_equal(
mcmc._scale_vector,
np.diag(mcmc._sigma0))
)
self.assertTrue(np.array_equal(mcmc.epsilon(),
0.2 * np.diag(mcmc._... | 1 |
09ca5b63039f59ffe30862ab93ce216d | 04828259cef778d524abc6b50af4e16b | This implementation raises L{NotImplementedError}. | raise NotImplementedError("fftconvolve3 not ported from upstream, as "
"it is only used once (in a sandbox module) "
"and not tested there.") | 1 |
f9c4790d9470704cd0ea4df0f77a9c0d | 92e3178ef22c69b82dc0a25d428f01ac | Gets the cmp fields of this entity | abstract class General extends GeneralManager{
abstract protected function getFieldsToCompare(); | 1 |
58ed1c7000615c3d892ec0c66abcbcd8 | 8a2b287d48d5d11b75ffda0418ff2f44 | 利用映射关系,将单个关联数组转换为单个对象 | {
if (relation == null || relation.Count == 0)
throw new ArgumentNullException("relation", "relation参数不能为空");
if (data == null || data.Length == 0)
throw new ArgumentNullException("relation", "data参数不能为空");
if (relation.Count != data.Length)
... | 1 |
89d66cfd806ec51c566d9d47372875a6 | d9052c7b75f11d3edd081e59a207306a | Predicate returning <code>true</code> or false depending on whether this object's
level/version and name space values correspond to a valid SBML
specification. | boolean matches(String xmlName); | 0 |
bf1bda008badf3b0549445d84ca12b08 | bae923538b4ae540309ccca40e0ea4e7 | 既存のPIDファイルがこのプロセスのPIDと同じPIDか確認する | b_exist = True
try:
with open(self._pidfile, 'r') as pf:
pid = int(pf.read().strip())
except IOError:
b_exist = False
return b_exist | 0 |
384989728d9a4dd4939e0bdc69847040 | 120ebc496df5294bf020a78f3e68e4b2 | 检查邮箱和密码的格式是否合法 | if not email or not _RE_EMAIL.match(email):
APIValueError('email')
if not password or not _RE_SHA1.match(password):
APIValueError('password') | 1 |
e2b9f0b4b1f1ad25ee3442594bbd7236 | 54e950c889c8adafc1f57c895a42df09 | Converts the given file name into an absolute name
relative to the presentation config file. | namespace CAS.CommServer.UA.ModelDesigner.Configuration.IO
public static class RelativeFilePathsCalculator
public static string CalculateAbsoluteFileName(string solutionDirectory, string name)
{
if (string.IsNullOrEmpty(name))
return String.Empty;
TestIfPathIsAbsolute(solutionDirectory, name);... | 1 |
27b6c4cc57da36b90c3fe4ff5c542adb | 5bcb8e78c2aecbdd300e192de2a77099 | Calculate the cost of geosynthetic clay liner cover in dollars. | decimal headerPipeCost,
decimal headerPipeCouplerCost,
decimal teeConnectorCost,
double inOutPipeLength,
... | 0 |
b94209e70e9e36c337942aaf7efac609 | e80945c8d25c705365e548e9dcf3fc07 | null 类型键值对字符串格式是否合法 | {
if ( !is_string( $data ) )
return false;
$data = trim( $data );
if ( 'N;' == $data )
return true;
if ( !preg_match( '/^([adObis]):/', $data, $badions ) )
return false;
switch ( $badions[1] ) {
case 'a' :
case 'O' :
case 's' :
if ( preg_ma... | 0 |
e12ce6d2e9f591d19d4703a54d7e0f7d | f7f199663edd0847cecc7bec598857b8 | This method resets Order Summary info. | {
newOrder = new Order();
orderSummary.Text = string.Empty;
burgerTotal.Text = string.Empty;
burgerPrice.Text = string.Empty;
chickenTotal.Text = string.Empty;
chickenPrice.Text = string.Empty;
fishTotal.Text = string.Empty;
... | 1 |
bdcd31704945da3b6c6903bc3fbfd90a | c956a2e36af6c310cb5680230b2817a4 | 统计主办案件数 | class CrimeJudgePaper(JudgePaper):
def prosecute_number(self):
prosecute_number = None
if self.trial_level == 1:
text = functions.TextProcessor(self.first_basic_text).clean_text
match = settings.pattern_prosecute_number.search(text)
if match:
prosecute... | 0 |
4331dd1695c1db15ba2c8d23e0038396 | 881332adc9d7af573690ffb72456c023 | Set element file URL. | public class FileUrl extends AbstractModel{
public void setUrl(String Url) {
this.Url = Url;
} | 1 |
b5948b4e6df3057e53a7e154607e37fd | c224549e94ff3297be199de3b31bbd60 | 获取缓存中更新的所有clazz对应的值对象 | public abstract class CacheService<T>
public ConcurrentHashMap<String, T> getAll(Class<T> clazz) {
ConcurrentHashMap<String, T> map = cacheMap.get(clazz);
if (map == null) {
map = updateAllCache(clazz);
}
return map;
} | 1 |
8201f2975e21d0a9bffaa5401c125b75 | 3d09fa4d24b29691753ac93644856b6c | Load Field data and format as a Dataset object
Inputs: | def main(FilePath):
dataset = open_url(FilePath)
fieldnames = list(dataset.keys())
var = np.arange(0,len(dataset['time']))
print(var.shape)
df = pd.DataFrame(index=var, columns = fieldnames)
for col in fieldnames:
print(col)
var = dataset[col]
df[col] = var[:].data
df.index.name = "index"
file... | 1 |
9d05f75ac398cc9a3421d78415fee925 | c8f24126d8571d72465217fe40d4b2ea | 隐藏接收仓位和接收批次 | var RECV_CHANN_ID_OLD = $("#RECV_CHANN_ID_OLD").val();
var RECV_CHANN_ID = $("#RECV_CHANN_ID").val();
if(null != RECV_CHANN_ID_OLD && RECV_CHANN_ID_OLD != RECV_CHANN_ID){
parent.bottomcontent.clearAllPrd();
}
} | 0 |
4c8b51c3073203c9197912c9732c2675 | bfd02e05b789fa2d09e3ac5ff2253a26 | 报废涉密信息设备数据转换 | @Controller
@RequestMapping("api/tool/toword")
public class ToWordController extends BaseApi
private List<Map<String,String>> getScrappedInfoDeviceList(){
List<Map<String,String>> newlist = new ArrayList<>();
List<InfoDevice> list = getAllScrappedInfoDeviceData();
int i = 1;
for(InfoDevi... | 1 |
bd9c4ffec7172cc75d1a780548ecf5d6 | 0d6aab747210ae10a7ed153f00b141ed | JS弹窗并且跳转 | namespace SXF.Utils
public static class JSHelper
public static void WriteAlertAandGoTo(string msg, string url)
{
WriteScript(string.Format("alert(\"{0}\");location.href=\"{1}\"", msg, url));
} | 1 |
3eff8f4f2e9080869fbe04cef4620790 | adde7a2bb1a09a8808b3c29f85cf14bb | 添加涂装性能-耐湿热性能试验数据 | namespace ATLocv
public partial class Form1 : Form
private bool AddTestOcv(string battery_code, string tray_id_2, string testType, float temp, float vol, float innerResist, float shellVol, int gallery, DateTime test_time)
{
string strUpdateCmd = string.Format("insert into TestOcv(battery_code,tr... | 0 |
517deb027bae04f0c7eefeeaad682997 | 191eecd3bdd84134845b364349c1a8ce | based on https://gist.github.com/unbracketed/3380407 | var base64 = '';
var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var bytes = new Uint8Array(arrayBuffer);
var byteLength = bytes.byteLength;
var byteRemainder = byteLength % 3;
var mainLength = byteLength - byteRemainder;
var a, b, c, d;
var chunk;
... | 1 |
5619c77b94e10f0670bd4a2f25895b19 | a262d175167c5cea752f1ebb64f9975d | dado uma árvore que é uma max-heap, exceto pelo nó i, arruma o nó i e suas sub-árvores de modo que a propriedade da heap seja satisfeita | void HEAPIFY(int n, struct priorityQ *heap, int i){
int left_i = (2*i)+1, right_i = (2*i)+2, min_i = i;
if((left_i < n) && (heap[left_i].d < heap[min_i].d)) min_i = left_i;
if((right_i < n) && (heap[right_i].d < heap[min_i].d)) min_i = right_i;
if(min_i != i){
swap(&(heap[i]), &(heap[min_i]));
HEAPIFY(n, heap, ... | 0 |
8d415a24afbd3e14ec1f1efe2e236aca | 731feb8784bf541a776ec6c242397cfb | Method called to remove the lock on the rest of the page | public void unLock(); | 1 |
bd3a28fde925e022c2b1bae60b389da0 | 630f2999bdae046f41e5c4be6715849e | Get issn string. | class Imposto extends \Sped\Components\Xml\Element
public function getISSQN()
{
$this->ownerDocument->registerNodeClass('\DOMElement', '\Sped\Schemas\V200\TNFe\InfNFe\Det\Imposto\ISSQN');
return $this->getElementsByTagName(self::ISSQN)->item(0);
} | 0 |
f75fe0e828dfe382997112183bd816d5 | 294324b8a351b6bfa61b30ffbdff61c8 | Get the AssemblyCompany property, which usually contains spaces, and
often commas and other invalid characters, and either remove them or
replace them with underscores. | class WorkExperience extends \Meritocracy\Entity\WorkExperience implements \Doctrine\ORM\Proxy\Proxy
public function getCompanyPlainText()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCompanyPlainText', []);
return parent::getCompanyPlainText();
} | 0 |
a832e00c4221b4100a3dfa3edfe86be4 | 9a4310a0ad1b88cda62ca88b78445704 | Fetch the Student name from View Submission page | if (session != null && session.student != null && session.student.name != null)
return session.student.name;
return null;
} | 1 |
20f1ca56140fc4d0bf43d2d362634ac9 | 7a9404dc2e6ef6d78c988131e57cd19a | Log into Singular application | def login(args, syn):
syn.login(args.synapseUser, args.synapsePassword, rememberMe=args.rememberMe) | 1 |
54b14e9c920611f474f4172d7ca905ea | 82f52786a3d0abdf84ff7e6baa7ada29 | 更改策略实例信息 | {
var parameters = SelectedStrategy.ParameterDetails.ToDictionary(entry => entry.Key,
entry => (ParameterDetail) entry.Value.Clone());
var strategyInstance = SelectedStrategy.CreateInstance(parameters, InstanceDescription);
SelectedInstance = strategyInstance;... | 0 |
efb2cd8782f40aedce15177902c08b1d | 6c7fcbdacbd29341ae95597c2497dca9 | Get the Sale Price Effective Date for the inventory entry. | public class SscDeliveryPreInto extends BaseEntity{
public java.util.Date getEtd() {
return etd;
} | 0 |
45daa31e42249bdbdd5a3421c1497c6f | adc71c1d1960b0ffc233593f9a1e1f87 | 削除するロールに紐づくロール(自分を親として指定しているロール)が存在する場合はエラーメッセージを表示する | {
$role = Role::findOrFail($id);
if(count($role->permissions) > 0){
return redirect()->back()->with('error', "Looks like Role has some permissions, can't be deleted.");
}
if(Role::findOrFail($id)->delete()){
return redirect()->route('role.index')->with('succe... | 0 |
21790ee3f141068342b6244d5b3ab128 | 8372f8ee4e7be2d9060671a29bd3e0ab | Calculation of power over line with linear DC POWER FLOW MODEL. | namespace SteelWire.Business.CalculateCommander
public class CommanderRopeCut : CommanderBase
public decimal GetFastLinePower()
{
CheckInputForCalculateFastLinePower();
return CalculateFastLinePower();
} | 0 |
5befa23d85d70788aab6b2a52e1f06ff | 26789ffab75c4634ee682900c65969ef | 切换语音功能布局 | public class ChatActivity extends BaseActivity implements OnClickListener/*, OnItemClickListener*/, EmojiFragment.OnEmojiconClickedListener, EmojiTypeFragment.OnEmojiconBackspaceClickedListener
private void showVoiceLayout() {
btnMakeVoice.setVisibility(View.VISIBLE);
btnVoice.setBackgroundResource(R.drawable.chat_... | 1 |
3444c39194bc0605c4b807296e1231f0 | f04d38e838b084b6274af28ce8b9ebbd | 统计申请猎头数,申请猎企数,申请猎头通过数,猎企通过数 | $data['jobs_num'] = pdo_fetchcolumn("select count(*) from ".tablename(WL."jobs")." where uid=".$_SESSION['uid']." and open=1");
$data['apply_num'] = pdo_fetchcolumn("select count(*) from ".tablename(WL."jobs_apply")." where uid=".$_SESSION['uid']." and direction=1 and offer=1 and status=0");
$data['interview_num'] =... | 0 |
1eba2a036dbd800afa60628c10aed77b | cae84f36f131cd00c85bd307b28e3b6b | Esta funcion permite Copiar los permisos de un usuario a otro | if($id != null){
$query = 'DELETE FROM
`rights_user`
WHERE
`id_u` = \''.$id.'\'';
SqlAdapter::select_sql($query);
if(count($arr) >= 1){
... | 1 |
26fcda39887a9cafcc69f47856866103 | 4912a36b21fd2c0e0aacef588e4882e0 | Initialize shortcuts for often used parameters from the config. | self.__hass = hass
self.__name = config.get(CONF_NAME)
self.__bus_stop_number = config.get(CONF_BUS_STOP_NUMBER)
self.__service_number = config.get(CONF_SERVICE_NUMBER)
self.__window = config.get(CONF_WINDOW)
self.__description = config.get(CONF_DESCRIPTION)
self.... | 1 |
53d520d3d4b8c231d83cce6ddcb3a80e | b1440a6d04243f693d80e4e11ad663c3 | Implementation of logit adjustment loss. | y_pred = (1 - 2 * y_true) * y_pred
y_pred_neg = y_pred - y_true * 1e12
y_pred_pos = y_pred - (1 - y_true) * 1e12
zeros = torch.zeros_like(y_pred[..., :1], device=y_pred.device)
y_pred_neg = torch.cat([y_pred_neg, zeros], dim=-1)
y_pred_pos = torch.cat([y_pred_pos, zeros], dim=-1)
neg_loss = ... | 1 |
2fd3c2d2aed7a060fff2ab7e35f89fff | 9fa15dcef378d4ef244eb612697f2ba1 | Sets the rendering of a known issue. | class ENLTemplate(atapi.BaseContent):
def setIssue(self, issue_uid):
self.issue_uid = issue_uid | 0 |
246fb936001d16bdb47323f244ffc2a7 | e6f1a45e02d374ff27e00ac31d07671b | Returns the meta object for class '{@link at.jku.weiner.c.parser.parser.DirectDeclarator <em>Direct Declarator</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EReference getDirectDeclarator_Array(); | 0 |
f9ab088d929eebd0dc466732ead89b1f | f421789f56a6e87e0c4aa7f032597c40 | Build pq with multiple items. | q = PriorityQueue()
input_list = [((1), 9), ((2), 8), ((3), 7),
((4), 6), ((5), 5), ((6), 4),
((7), 3), ((8), 2), ((9), 1)]
for obj, p in input_list:
q.push(obj, p)
state = [i for i in q._queue]
[q.top() for i in range(100)]
eq_(state, q._queue) | 1 |
6065440bbe8bbdf1d49493a666e15c81 | 7abbbb2bd52efcc21358f4d632c4f6b3 | Get the value of valor. | public class Carta
public String getValor() {
return valor;
} | 1 |
0dee08e094cbb5ec0f7654aaf7504ce2 | 9ec355116895d0e500f6c8a4b272dc25 | Asks the user if they want to play again, returns False if N or NO, and True if Y or YES. Keeps asking until they respond yes | while True:
try:
response = input("Please enter a Y to Play Again and N to Stop: ")
response = response.upper()
break
except:
print("Error - Invalid Character - Only Letters are allowed")
while response != "Y" and response != "N":
print("< ... | 1 |
e070619e90e3db9456594ec268df4d60 | 06491c20f7b70029c26e6b5d39ced7e6 | 方法说明:医生接诊 | const { listIdx, currentReg, currTabKey } = payload;
if (currentReg.regState === '30') {
yield put({
type: 'setState',
payload,
});
} else {
currentReg.step = '1';
yield put({ type: 'addSpin' });
const { data } = yield call(visit, currentReg)... | 1 |
1a784b8324387b2f9eeb14407d4f7ceb | 0a64e59010b209125cec279b2b691fe1 | Calculate two-stage loss. | self, predictions: torch.Tensor, target12: torch.Tensor, target21: torch.Tensor
) -> torch.Tensor:
true_mask = F.one_hot(target21)
softmax_predictions = F.softmax(predictions, 2)
softmax_argmax = torch.argmax(softmax_predictions, 2)
pred_mask = F.one_hot(softmax_argmax, true_... | 1 |
ecc1d621d475e9fff49c6823f3794e10 | eb0dba3208cd8da771487c40fb84fbcb | 安排排班 | class CourseController extends BaseController
public function arrange(){
$this->display();
} | 0 |
c2fde5ab24a34e573931fdb5fd32f2ea | 93fd2a0e0b4eae60e5d6cb15e63e4676 | Convert ld command into llvm-link command to link multiple LLVM IR
files into one file. | def link(objects):
linked = 'build/linked.o'
cmd = [LD] + LDFLAGS + ['-o', linked] + list(objects)
run_command(cmd)
return linked | 0 |
b3fa1e30d902d7779ec5a88e786d2e70 | adf77fd2c3f56035cd68ff7a89bb6ebf | Should announce an exchange list | {
let features = {};
let demo = false;
if (undefined !== list)
{
_.forEach(list, function(feature){
features[feature] = true;
});
}
if (undefined !== demoMode)
{
if (true === demoMode)
{
demo = true;
}
}
this._services.e... | 0 |
2293d1f2e4b8c5f0291ed69c3e367537 | 6686cca99c40f175c54883859089c820 | For feet to mile converter | def F2M(distanceamount):
return (distanceamount / 3.28084) | 0 |
9e9d10d94ab261506af88d10e5ffc7f3 | d1314b8e8ee3d9bf2da9fe44d3c69941 | \brief Access to a mode descriptor object. Will raise an exception if the index is out of range. | {
if (idx < 0)
throw IndexOutOfBounds(idx, 0);
else if (idx > stateDisplays->size())
throw IndexOutOfBounds(idx, stateDisplays->size());
else
return stateDisplays->at(idx);
} | 1 |
92fb6495b923640a46b7b5355b8642ba | 835b37876b77457a7e458417f2dfcead | Add the i18n metabox. | class FP_Membership
public function add_metabox() {
add_meta_box(
'membership-data',
__( 'Membership Data', 'fit-press' ),
array( $this, 'render_metabox' ),
'membership',
'advanced',
'default'
);
} | 1 |
0f7efc47fcc2c745deeed58003f50e1f | 91190d5661aaa0f74d3ab2d9fcfe6aec | Retrieves plugin model from the currently open tab | public function pluginGet($sPlugin, DataObject $oModel)
{
$sPlugin = ltrim($sPlugin, '_');
$bLoaded = $this->pluginIsLoaded($sPlugin);
if(!$bLoaded)
{
$this->pluginLoad($sPlugin);
}
$oFactory = $this->aCurrentPlugins[$sPlugin];
$oPlugin = $oFactory->getPluginByOwner($oModel);
if(!$bLoaded)
{
$t... | 0 |
70e9f4921fcc0b35312aae3641071d42 | f3ad50aa6c0316aab132ad5321ece23e | Update the displayed mean values.
This method is automatically called by the ViewModel observer. | class GpuUsage:
def update(self) -> None:
if self._p is None:
self._start_watch()
return None
mean_usage = Mean()
for _ in range(GpuUsage.MAX_BUFFER):
try:
queue_element = self._values_queue.popleft()
mean_usage.update(queue_ele... | 1 |
8fbb81013ba0af4c29415b41069b87e0 | 55484e9cac7856355fed56d7a0ae85f9 | Subsets a GeoPandas DataFrame by bounding box
Very useful for shrinking the number of features. Currently assumes that the bounding
box and optional buffer distance is in the same projection as the dataframe. | x = dataset.coords['x']
y = dataset.coords['y']
for name in tqdm.tqdm(dataset.keys()):
array = dataset[name].copy(deep=True)
if array.shape:
array[:, :] = np.nan
for outline in outlines:
xmin, ymin, xmax, ymax = bounding_box(outline)
xs... | 0 |
859ec5799809a89185628eeca606ac8a | e847db7a89559a820d85b6b5ce2f86db | 右鍵點擊,切換旗子狀態. | class Cell :
def make_action(self, action) :
if action == "flag" :
if self.close_status == 0 :
self.close_status = 1
elif self.close_status == 1 :
self.close_status = 0 | 1 |
a855aad21c832870748bc9382ec337c3 | 6282a2b3de45dac4f2fda6431e933f8c | Permet de tester toutes les conditions par rapport a ce que l'on peut jouer en fonction de la distance | {
bool possible=false;
if (xPosX < 0 || xPosX >= MAPWIDTH || xPosY < 0 || xPosY >= MAPHEIGHT)
return false;
switch (map[xPosX, xPosY])
{
case TileType.Walkable:
case TileType.Speed:
case TileTyp... | 0 |
1515d664108b083d68ccda21bab0f836 | deecaa46fa8b863e9dd0a45a3a8eb2c9 | add new advance payment with payment request | namespace topmeperp.Service
public class PurchaseFormService : TnderProjectService
public int addAdvancePayment(List<PLAN_OTHER_PAYMENT> lstItem)
{
int i = 0;
string resetSql = "DELETE PLAN_OTHER_PAYMENT WHERE EST_FORM_ID=@formId AND CONTRACT_ID=@contractId ";
logger.In... | 1 |
d89f1157401267b9bd78b324b511fa42 | d48d03793bbdbe9d407d6414c8cc554a | Sends update to achievement criteria to the player. | public class AmazonCloudManager : MonoBehaviour
public void SubmitAchievement(string achievementId, float progress)
{
AGSAchievementsClient.UpdateAchievementProgress(achievementId, progress);
} | 1 |
b46f8d1fba3670e4a5498bd47bcdf97f | a88ff400759aa734aa6a83531dddffe1 | 发布某个id的文章 | class ArticleService extends Service
async publish(id) {
const { ctx } = this;
return await ctx.model.Article.update({ _id: id }, {
status: ctx.request.body.status,
});
} | 1 |
5cfd5a8a16c784d4d6eb2fbbb5ca21d3 | fef042868272fc7673a0a844f5a83620 | Obtain a DirectUrl from this distribution.
Returns None if the distribution has no `direct_url.json` metadata,
or if `direct_url.json` is invalid. | class BaseCDNHash:
def get_url(self, site: str = cdn_site) -> str:
raise NotImplementedError | 0 |
688da480d409f17b4bfdadc48eade35c | f46b87ea7c812724f1c22c6e97ddedcb | converts an int like 0 or 1 into a complete file name that matches the format used in the zip archive | def _make_filename(filename_length, idx):
leading_zeroes = (filename_length - len(str(idx))) * '0'
return leading_zeroes + str(idx) | 1 |
0e8a6ae0841f53383220dd3f7b8b3918 | 2252b32df1a6d470c5d6ec7894957336 | Fonction qui extrait les mots clé de la requête | text = re.findall(r'[\{\[](.*?[?\]\}])', text)
wfs = set()
for item in text:
item = item.replace('dérivés', '')
item = item.replace('apparentés', '')
item = item.replace('gentilés', '')
item = item.replace('composés', '')
item = item.replace('déverbaux', '')
i... | 1 |
a46ba5ff809951038f309b2af5c3b055 | 04b7dadcf3a918e6044c30e9672645de | 真实打款确认订单,冻结卖家账户 | @Service
public class OrderServiceImpl implements OrderService
@Override
@Transactional
public void create(Order order, OrderDetail orderDetail) {
if (Objects.equals(order.getSellerId(), order.getCreateBy())) {
Integer currencyId = currencyMapper.findCurrencyIdByCode(order.getCurrencyCode())... | 1 |
7c7445b938be1e1eeef41d5450adfffa | bbf6a8205a9fb2c045e78dcba4619ecc | GET: Osallistumiset/Create | namespace CV.Controllers
public class OskusController : Controller
public ActionResult Index()
{
var oskuss = db.Oskuss.Include(o => o.Isik);
return View(oskuss.ToList());
} | 0 |
859adad77500683abd5b66f13e233d42 | 6cc8ff61c711fec66e210aa41bde85b3 | @brief
Returns the number of rf antennas supported by the specified device
Returns the number of rf antennas supported by the specified device
antennas value.
rfm_init() must have already been called. | public class AnDeDeviceReader
public int getAntennaInterfaceCount(){
return adReaderInterface.RDR_GetAntennaInterfaceCount();
} | 1 |
849ecff3768318b198c628ceaa98aa3c | 7f082db9aa9a4fbe801185531b1b81a5 | 判断登陆用户是否是客户经理 | public class FragmentFinancialDemand extends ParentFragment implements OnClickListener
private void checkIsManager() {
String staID = LogoActivity.user.getStaId().toUpperCase();
if (staID.equals("ST000111") || staID.equals("ST000301")
|| staID.equals("ST000701") || staID.equals("ST000901... | 1 |
86179451a3875ebebad79bc3b71572b9 | ede2f7e6d5b4b1ee1086ae544b2a25eb | #Determines multiplier for a scenario to be applied to a specific category's baseline projection
#Inputs:
# category = category string
# scen.mult = policy impact scenario
# type ==1 if admissions; ==2 if length of stay
#Returns:
# multiplier for length of stay or admissions number based on input offense category "cat... | SummarizeMultipliers <- function(
winbugs.data,
data
){
multpliers.ncategories.inclbaseline <-
winbugs.data[c("ncat.age", "ncat.geo", "ncat.posbias",
"ncat.sa", "ncat.emal", "ncat.hw",
"ncat.posage", "ncat.negage")]
multpliers.ncategories.exclbaseline <-lapply(mult... | 0 |
4cd7a4497e2a05ebed86cdc78e2b0933 | fb2565b187e7e1b4f0e857f01b7808fb | change some column names to include units | df.rename(columns={'AirQualityStatus': 'AirQuaSta',
'Description': 'Narration',
'EstimatedCost': 'RoughCost',
'EstimatedYearofConstruction': 'YearRange',
'FunctionalClass': 'FunctClass',
'GeographicLimits':... | 0 |
02c255216b48ec5450ac8ca4074c8f4d | ba5b904505e822d498244005ce36fbe6 | Returns an upload for a given identifier. | Optional<IUploadEntity> getUploadEntity(String id); | 1 |
3d825ebaad1d2cb208a22c13f756e19c | 08e43d0c0e65e15cac14b98ad2112e0c | このクラスで行ったチェックでNGだった際の
エラーメッセージを設定します。 | public class GoComformPurchaseAction extends ActionSupport implements SessionAware
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
} | 1 |
7f97485937f328ff4a8bd6d256c21dad | a364d80b3ee4b17722b2993343d41129 | Timer resolution in microseconds | namespace Synchronization
unsigned int awindaTimeResolutionInMicroseconds()
{
return 1000;
} | 1 |
f5009403b08ba54312c1c98f87c2bbae | 1999476b0f2e599ea700f6c977aafed6 | 根据实验id删除实验信息 | boolean deleteById(Long expId); | 1 |
1eca8130bbe421fcd2e37beeca6a3262 | df31ca555ebde0b35e0190e2ba359b51 | method that sets all of the booleans in the game to false, so as to avoid boolean confusion | public class ReadMovementThread extends Thread
public void resetBooleans() {
for (int i = 0; i<this.barray.length; i++) {
this.barray[i] = false;
}
} | 1 |
c40387d292328a72301baab0c6d2c21a | af7e7a106a683425d25c19af6d61f7b5 | Grab the respective model resources for this model so the pagination/export processes can properly return a unified data model to the UI | class ViewController
def populate_models
@kill_paywall = false
@hostname = Rails.configuration.try(:my_hostname)
@not_found = false
@view_name = nil
@selected_sport = params['sport_codes']
@sport_subnav = OasApi::S3Models::SportSubnav.sport_subnav(@selected_sport)
@navigation_... | 0 |
19a6527a93f35f85bb214b9827c70e15 | 7688bdc0ee6b709270bb226673304503 | Returns the value of the '<em><b>Max Insertion Iterations</b></em>' attribute.
<!-- begin-user-doc -->
<p>
If the meaning of the '<em>Max Insertion Iterations</em>' attribute isn't clear,
there really should be more of a description here...
</p>
<!-- end-user-doc --> | public class IterativeImputationClassifier extends SingleClassifierEnhancer implements IterativeClassifier
public int getMaxIterations() {
return m_MaxIterations;
} | 1 |
678880b3e1eb2271e566028e4c790335 | cef585a4b9f45e2be7bb7ea1e6e0120b | Consulta para obtener la lista de productos por cliente | {
$cupon = DB::table('detalleorden')
->join('orden', 'detalleorden.id_orden', '=', 'orden.id')
->join('producto', 'detalleorden.id_producto', '=', 'producto.id')
->select('producto.nombre', 'orden.id','detalleorden.cantidad')
->where('detalleorden.id_cliente',... | 1 |
b56fd2309717b75a961f958abc02a0ca | 58da9b558a73814bd7cd9b14b7b19916 | function returns all but first element | function getAllElementsButFirst(array) {
return array.slice(1);
} | 1 |
0dfe66f82975c01defd9077368ba0768 | a11197fa97b7cc8940368c3a50c091fd | With the robot in front of a wall, rotate the robot until it's parellel with the wall | public class Movement
public static void faceRightWall(AdvancedRobot myRobot){
double degrees = 0;
degrees = myRobot.getHeading();
if (degrees > 90 && degrees < 270){
myRobot.setTurnLeft(degrees - 90);
}
else if (degrees < 90 ){
myRobot.setTurnRight(90 - degrees);
}
else if (degrees > 269){
myRob... | 1 |
ea1d580bb1ef98247d03ec4ad0e50518 | 9df5c1565a3d97a33082bad1a5b2be32 | 各手について、自分の玉に王手がかかっていないかどうかチェックし、
王手がかかっている手は取り除く。 | fun getPutPiecePos(
players: Map<Boolean, Player>,
turn: Boolean = false
): MutableSet<Pos> {
val move = mutableSetOf<Pos>()
(1..5).forEach { column ->
(1..5).forEach { row ->
val pos = Pos(column, row)
if (!players.getValue(true).pieces.co... | 1 |
cd457ddaf96c8c2e0b1e8cba7e708715 | bc4883a4e3db7b56e5a4452d67c34bdc | 查询某场考试所有的作答者分页 | List<StudentTP> findByTestPaper(TestPaper testPaper, int startIndex, int pageSize); | 1 |
59c848d1141a78db0ea6d439900a6e19 | f5a972592d0ef990996331bc9049b2ce | Returns the IMAP folder path. | class Imap
public function folderPureName(string $folder_name)
{
return str_replace(
sprintf('{%s}', $this->account->mail_server),
'',
$folder_name
);
} | 0 |
b8476851c3216eaeefa70467f3bacd08 | c753e5f030bc01631e0cd758059d1ce5 | Returns the field params for the role form. | return array(
array(
'name'=>'group_type',
'caption'=>'Group type',
'description'=>'Type of group this form will be used to create or edit. Leave blank to let the group creator choose.',
'type'=>'select',
'table'=>'termlists_term',
'valueField'=>'id',
'c... | 0 |
df33a11190ed8357cfe2fa35fd8b6046 | 2764777b4bdd5b31b88d16485c71685f | Set parcat2Level1Id | @ASourceMachine
public class FStatisticsFinancialCustomerPhaseUnit
extends FLogicUnit
public void setDepartmentLevel2Id(long value){
_departmentLevel2Id = value;
} | 0 |
29fad9fecc5f394b85a5d9bb96fc7977 | 143c7b868b0a3ef6cf4153148dd399dc | 换人 | try {
int replaceCD = PartyTool.getPartyTool().replaceCD(party);
if (replaceCD > 0) {
return ;
}
Members m = party.getMembers().get(id);
if (m == null) {
return;
}
Account a = GlobaleMap.getAccountMap().get(id);
Members otherMembers = null;
MembersManager membersManager = (MembersMa... | 1 |
11e546cf89fc91aa43f994be43c42adf | 84bf376f283b29a9e966fec07c4b47a3 | Swaps the screen back to the MenuItemSelectionConrol from
whichever order item customization control is currently
being displayed. | {
if(DataContext is Order)
{
SwapScreen(new MenuItemSelectionControl());
SetActiveUserControl(OrderSumm);
}
} | 1 |
17968a44073e9affba754fc6ee104a83 | 0998f01531d2b953a017513d14846b6f | Gradually increase the volume. | clearTimeout(this.volumeTimer);
if (audio1.volume + 0.1 <= 1) {
audio1.volume += 0.1;
this.volumeTimer = setTimeout(volumeUp, 150);
}
} | 1 |
2c310199bf594b3fd34e3d467d15c3f4 | 8491857d060793c7f19f8601553a1a8f | Decrease differences between expensive and cheap locations. | float minimum;
int costSize = costRows * costCols;
for (int rowStart = 0; rowStart < costSize; rowStart += costCols) {
minimum = cost[rowStart];
for (int c = 0; c < costCols; ++c) {
if (minimum > cost[rowStart + c]) {
minimum = cost[rowStart + c];
}
}
for (int c = 0; c < costCols; ++c) {
cost[ro... | 1 |
3d76c519442372a659b1333689fd3249 | ef6e7aa666b76693e75ec8424467e0a4 | 获取活动奖励列表
关键字
当前页
每页大小 | def get_rewardList(redis,session,agentId,searchId,lang, searchType = ''):
tableIds = redis.lrange(REWARD_LIST_TABLE % (agentId), 0, -1)
infos = []
for _id in tableIds:
table = REWARD_TABLE % _id
if not table:
continue
info = redis.hgetall(table)
infos.append(info)... | 0 |
b185e7000f3991a6e65e6ab568380235 | 12fdfd941435e68356edbecf4ffb2233 | 是否保修商品。如不修改,则不应该出现该字段。 0:表示非保修商品 1:表示保修商品 | class CHWechatShopProduct implements \JsonSerializable
public function setUnderGuaranty($isUnderGuaranty) {
if ($isUnderGuaranty != CHWechatShopConst::UNDER_GUARANTY && $isUnderGuaranty != CHWechatShopConst::NOT_UNDER_GUARANTY) {
throw new \RuntimeException('UnderGuaranty invalid!');
}
... | 1 |
a900cb17541b5310f36fe3a836776e42 | cbaf1e29d92b3d624987ffefe487a797 | Codepoint of cell
Note this returns the UTF32 codepoint of single chars,
if content is a combined string it returns the codepoint
of the last char in string to be in line with code in CharData. | public function getChar(); | 0 |
05d53bdb0dbe782f3d3c55df9345dbf3 | 5a893a5bf5b28cc13bb27014710c047f | 创建Zookeeper的临时节点 | public class ZkStudy
@Test
public void createTempNode() throws Exception {
CuratorFramework client = CuratorFrameworkFactory.newClient("node01:2181,node02:2181,node03:2181", new ExponentialBackoffRetry(5000, 5));
client.start();
client.create().creatingParentsIfNeeded()
.wit... | 1 |
bbac23e792ffccb3138b9b1129a2d99c | e28467ab8790b7060c069d8d48d62085 | Change the state given a valid state key. Store the previous state in case we want to go back. | class __GlobalComm:
def SetState(self, Key, Value):
self.states[Key] = Value
return Value | 0 |
f8c4403c9f96b7104e2d4cb0aeb21564 | 7266ae5ec3cc5fe5ced282ef85ee98ee | Indiciates whether the current Base CRL has configured to use Delta CRLs too. | @ThreadSafe
public class XMLSignatureSigningStage extends AbstractStage<Element>
public final synchronized boolean isIncludeX509Crls() {
return includeX509Crls;
} | 0 |
ce1e2da796b523d4ce958beeb7d31dfc | d489631f9dae3d039223fb391ff72ba6 | 變換圖片 | {
$payload = request()->all();
$rules = [
'id' => [
'required',
]
];
$validator = Validator::make($payload, $rules);
if ($validator->fails()) {
$response = [
'success' => false,
'message' => $... | 0 |
04e505a59fbac8f0e85b1ae09de7e67c | 09bc15393594c3fa6f9e1be5121fe3d6 | Pr�fen ob der Punkt n�rdlich ist | bool MatrixMap::downNeighbour(Point p) {
return (p.getY() > 0);
} | 0 |
6e2b9041bfd68c6856749fc90d07007c | 3352969b0e3c112ae6ea6d6db2f39349 | Dumps an SSH key string to a temp file that will be deleted at session close and returns the path | def _get_key():
keylocation = conf.get('Login', {}).get('KeyLocation')
os.makedirs(keylocation)
os.chmod(keylocation, 0700)
keypath = os.path.join(keylocation, 'id_rsa')
bucket = conf.get('Login', {}).get('Bucket')
key = conf.get('Login', {}).get('Key')
boto3.resource('s3').meta.client.download_file(bucke... | 0 |
b3212983976e514e4b9ef3dbfda484dc | 531716e411da65d7be60a1fb265e9eaf | <pre>
设置:修改人
表字段:cms_role_info.MODIFIED_BY
</pre>
cms_role_info.MODIFIED_BY:修改人 | public void setModifiedBy(String modifiedBy); | 1 |
b8a585d63934ce7e57f55e8b2cc0b9b5 | 0d3f93d7a913d6ddd50ef2718c9fcd47 | find items owned by user | class OU():
def getItem(self):
qry = "SELECT itemID FROM ItemOwner NATURAL JOIN ItemInfo WHERE ownerID = %s;" % self.ID
self.cursor.execute(qry)
self.items = []
allitem = self.cursor.fetchall()
for item in allitem:
self.items.append(Item(cnx=self.cnx, cursor=self.curs... | 1 |
8702c80796278dc217b9c2b4e3810e4a | d86cc2d67c097e506a14890dcf4e1fdf | Called each time a statement finishes execution, when profiling is enabled. | {
$state = parent::queryEnd($queryId);
if (!$this->getEnabled() || $state == self::IGNORED) {
return;
}
$profile = $this->getQueryProfile($queryId);
$params = $profile->getQueryParams();
if (empty($params)) {
$params = null;
} else {
... | 1 |
0202f69c9dde9b6694d4f0fea0e4c5c2 | b3c1a35febaacc4e91cc474e1aeb1116 | Updates the UI when a new Pirate Place is selected | function placeOnChange(value) {
currPlace = value;
} | 0 |
2159c1306aa6b369491d6feab616cbf3 | 59b6544573140b89b76c10e67a893d73 | @brief 获取HMC5883L传感器数值,各方向LSB RAW数据. | {
T_U8 xlm, xhm, ylm, yhm, zlm, zhm;
xlm = LSM303D_s8ReadRegister(OUT_X_L_M);
xhm = LSM303D_s8ReadRegister(OUT_X_H_M);
ylm = LSM303D_s8ReadRegister(OUT_Y_L_M);
yhm = LSM303D_s8ReadRegister(OUT_Y_H_M);
zlm = LSM303D_s8ReadRegister(OUT_Z_L_M);
zhm = LSM303D_s8ReadRegister(OUT_Z_H_M);
aMgnVal.x = (T_S16)xhm << 8 |... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.