query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
3c50c526808907a9e3d2b60d6052058c | 972e95d70ef1de40ab77fcdb5a24a011 | function that for a given positive integer returns number of postive divisors | def d(n):
_sum = 0
iterationEnd = n/2 + 1
for i in xrange(1,iterationEnd):
if n % i == 0:
_sum += i
return _sum | 0 |
9736b76cf779b11346754c7456697ee6 | dc31cde22d0b2c0f4170b63a5f63b29b | display a list of all tasks with ipc importance information.
Usage: (lldb) showallimportancetasks
Tip: add "-v" to see detailed information on each kmsg or inherit elems | def list(ctx): | 0 |
fb9a739d1d00dfbd75eefe8dcd84bf99 | a52901b55cc6b0ed457d5294de7c4783 | removes selected category from window and closes remove category window | public class DeleteCategoryPopUpController implements Initializable
@FXML
private void handle_confirmDeleteCategory(ActionEvent event) {
catModel.deleteCategory(selectedCategory);
Stage stage;
stage = (Stage) btn_confirm.getScene().getWindow();
stage.close();
} | 1 |
9c19b69d0aa519837cec6fff12c225ca | f278f355c11276ddaac2b5f3c7bbb009 | Обновляет переписку с пользователем | class ChatClient extends AbstractClient
public function update($params)
{
return $this->executePost('chat/update', $params);
} | 1 |
3e8f6de6401a2e515ed66ddee8edc162 | 4f0fce21e98acbf3c2086c161b0b956c | Tests a job template and its spec
Spec would contain: | def test_should_apply_template_to_tests():
with _load_config(r"""
testTemplate:
preparation:
command: 'cp /bin/echo my_echo'
execution:
executable: my_echo
validation:
stdout:
ignoreTrailingSpaces... | 1 |
f0bccdcf3e68b6f1df307ac3c142eaa5 | 4cf3a0d32b7ba25f65b682d8944619fb | 根据优惠券id,使用状态,订单编号分页获取领取记录 | List<CouponReceiveInfoPO> getCouponReviceListByUserId(String shareUserId, String couponTemplateId, String tradeNo); | 0 |
4e9be85932da97a8fc92b9c607b4ffb2 | 27be856d8f154c6843d64e810c181cea | Get all environment variables as dict.
Returns | output = self.execute('env')
env_dict = {}
for var_vals in output:
var = var_vals.split('=')[0]
vals = var_vals[len(var)+1:]
env_dict[var] = vals.strip()
return env_dict | 1 |
37da72d195fedf937b89d2cad1e22472 | 400c09921183cfcad82b07b1374e7b81 | Remove SubOwner from Form Array | $event.preventDefault();
const entity = $event.item;
const fieldNames = [];
if (name === 'designating_cmte_id' || name === 'designating_cmte_name') {
if (name === 'designating_cmte_id') {
fieldNames.push({ formName: 'designating_cmte_name', entityFieldName: 'cmte_name' });
fieldNa... | 0 |
847a448db6706c4c0f27c19067e1bcb5 | aeffb190e8a221700365a756e2a70fd3 | Corrutina que se encarga de realizar el disparo | public class TurretMiniGun : Building,IShooter
private void play()
{
if (isShooting)
{
if (enemyTarget.Count > 0)
{
Vector3 aux = enemyTarget[0].position - gun.position;
float dirY = AngleDir(-target.forward, aux, target.up);
fl... | 1 |
f637eff2b294f79117f6c0dea517bd0b | a4c66be1cf6bd1655ca6c5a493997fd8 | React to hovering over the flight paths. | let style = new ol.style.Style({
stroke: new ol.style.Stroke({
color: '#EAE911',
width: 2
})
});
let flightsSource;
let addLater = function(feature, timeout) {
window.setTimeout(function() {
feature.set('start', new Date().getTime());
... | 0 |
58bc397ba03b28d44c25e1aab8ce3fe5 | e28c371219675fa76e3c89ea5290d10d | 중앙과 연결되어 있는 도로 확인 | void dfs(int x, int y){
if(x == start.x && y == start.y)
return;
else
dfs(road[x][y].x, road[x][y].y);
mainMap[x][y] = '@';
ans += road[x][y].way;
} | 0 |
5cc503570eba88c905541cb72adfb3b5 | 7a79d14bd8d10e9f365926b3a2dc1953 | Determina partea intreaga a unui numar | def parte_intreaga(numar):
return math.trunc(numar) | 1 |
34e71c498a6ef993920a4286a080fbf6 | 192bd4f91cd6c72e0eabc4f09efab268 | Load User data from users.dat | if not is_userdat_file_available(pathToUserDat):
create_default_userdat(pathToUserDat)
else:
pass
userdatFile = open(pathToUserDat, 'r')
usersDatLines = userdatFile.readlines()
userdatFile.close()
users = split_userdat_lines(usersDatLines)
return users | 1 |
809f31ebc6c4035f48967e2958cac740 | 40645c0d450dd8d292f7fe8fe1f466a5 | 获取宝可梦图片的Url,后续考虑将图片下载下来
另外,有些宝可梦会有多张图片,后续再考虑处理 | def get_image_page_url(choice='萝莉'):
image_list = []
start_url = 'http://www.meizitu.com/a/'
choice = choice
url = redis_server.get(choice)
url_list = [str(start_url+url) for url in get_end_url(url)]
url_list = list(set(url_list))
for _ in range(len(url_list)):
url = url_list.pop()
... | 0 |
a74930ee7e41775b1883873c3e47b077 | 7e2bacb5701b6c9eff87e179ffc9ca47 | Accessor method for the current intelligence of the ai | class DnDCharacter
int getIntelligence() {
return scoreArray[3];
} | 1 |
4f2b3eae014b9ad8e6a128a42e31b183 | 94db6fff2d5cf399f965451b8eb6871e | FUNCION PARA AGREGAR UN NUEVO APODERADO | class aparecienciasController extends Controller
public function storeAPAR(Request $request, $exm_id, $idCon, $idExp)
{
$this->validate($request, [
'apa_Piel' => 'required|string',
'apa_Extremidades' => 'required|string',
'apa_SignosRespiratorios' => 'required|string',
... | 0 |
506dedbe6dbe0349a1613b42c7eae011 | f8b5a8928bf720b846730e58dc693c42 | 功能:获取当前在用实例数量 | public class SecurityDBManager
public synchronized int getTotalInUsedSecurityDBInstance()
{
return _inUsedSecurityDB.size();
} | 1 |
c7ff7205ee90f040bd642a1ca0bcf7dd | e94bf90135b30ff270ab58f66a575787 | Set Task start time in the format of `yyyy-mm-dd hh:mm:ss` | public function setTimeStarted() {
$this->taskRepository->setTimeStarted($this->task);
} | 0 |
674a64d180e92a5fbdadee099bfdb600 | 4357bdcfb55bbe226c9d7019e765de24 | Log a warning, but only once. | def log_once(*args: T.Union[str, AnsiDecorator], is_error: bool = False,
**kwargs: T.Any) -> None:
t = tuple(a.text if isinstance(a, AnsiDecorator) else a for a in args)
if t in _logged_once:
return
_logged_once.add(t)
log(*args, is_error=is_error, **kwargs) | 1 |
b4b09d0610774743c8fab9e3580bcf55 | 7fa16e2babce7261967b8ee0eed97da1 | no need to loop when only one touch | onTouchStart(e) {
if (getPointsNumber(e) > 1) return
this.isMoving = true
this.startY = getTouchPoints(e).y
this.lastY = this.scrollY
this.triggerEvent('beforeChange', this.getValue())
} | 1 |
a3cac788a7d6248ed3e044e54ca3642d | 627bab00804c8ab601d444efca7cf73b | Mark a user identity as primary | $userId = (int) $userId;
$user = new stdClass();
$user->id = $userId;
$user->active = 1;
$this->db->save('users', $user, 'id');
} | 0 |
72616d042f393a83b15d96a92a58c034 | 9559b4273ae64904af43db1d77142ec7 | is the test case directly in the suite? | namespace Vre.Server.Dao
public class OptionTypeDao : GenericDisposableDao<OptionType, int>
public bool IsSuiteOption(OptionType opType)
{
return (opType.AutoID == _suiteOptionId);
} | 0 |
0af740d8f26e2514c0a063a93ea54bcc | 3d191eaca8b0721caf9b89c1954f3031 | Static method that creates a GridPane with the desired alignment, hgag and vgap.
This allow one line creation. | public class Main extends Application{
private static GridPane createGridPane(){
GridPane gp = new GridPane();
gp.setPadding(new Insets(10, 10, 10, 10));
gp.setVgap(15);
gp.setHgap(10);
return gp;
} | 1 |
ff9ff36a57766c7fa2cf73117ba9b724 | 1f594a0a6952e857dcea2844f10c5e03 | Aktualisiert die Tabelle MaschinenModell. | List<I_Element> selectedElements = elementsModel.getSelectedObjects();
TableModelListener[] modelListeners = elementsModel.getTableModelListeners();
for(TableModelListener l : modelListeners) {
elementsModel.removeTableModelListener(l);
}
elementsModel.clear();
if(demandsTab.getSimulator()!=null) ... | 1 |
f8e303f668736554a66220cfc58d711d | 7dae311a932b4364740a8de5113c0808 | Calculates all values for the baby diaper rewet test | {
$this->fatQuantityCalc();
$this->nonFatQuantityCalc();
$this->basalMetabolismQuantityCalc();
$this->totalConsumptionCalc();
$this->needCalorieMinCalc();
$this->needCalorieMaxCalc();
$this->needManaMinCalc();
$this->needManaMaxCalc();
$this->n... | 0 |
029fdd8d1924193dd32940ac42c559e0 | 2afc64c662f98cdce7a8b3256d39321f | 定时发送审计 | namespace ESB.Core.Monitor
internal class MessageQueueClient
public void SendAuditMessage(AuditBusiness auditBussiness)
{
SendMessage<AuditBusiness>(Constant.ESB_AUDIT_QUEUE, auditBussiness);
} | 0 |
97acce0d844a719009d6f10e4feae72c | 4f26db5339289ffbc67e75520623437a | Check if tapping fave increases fave count. | public void testLike() {
Boolean revert = false;
SleepUtil.sleep(500);
int expected = homepage.getNumberOfLikes(0);
if(homepage.likeMessage(0)) {
expected += 1;
revert = true;
}
verifyEquals(expected, homepage.getNumberOfLikes(0));
if(revert) {
homepage.clickLikeButton(0);
}
} | 1 |
7f88eb07b45b92af7e92836caff0bd53 | 4ac206c76dd716b4e56ef42ed4f04198 | Iterate on registered tokens. | yield from map(
lambda _: self._loads(_),
self._redis.lrange(self._token, 0, -1)
) | 1 |
4ffcd64fd941515e8535d4790baeefeb | 319d844fbce8ff0fe393a7417ae32ed6 | Converts the value from <c>Int32?</c> to an equivalent <c>Int64</c> value. | {
if (value is int) return (int?) value;
if (value == null) return null;
return Util.Convert.ToNullableInt32(value);
} | 0 |
e86341de7e325c9831f55745eb4f08c6 | 092e3c644b41e1557d1f051574cf042b | Return the title string, if it's defined in the configuration.
Returns None if no title is defined. | class JobFunnel(object):
def get_title():
raise NotImplementedError() | 0 |
d1b6400c757b7d421b8a06b58b0d0f16 | 4ce1d63d172c3ec9ad89bdf962955b2b | Adds a plane to the database. Does not check for unique values, will retun false if the command does not complete. | namespace Desktop.Services
public static class HttpService
internal static async Task AddPlaneTypeAsync(PlaneType addRequest)
{
HttpResponseMessage response = await client.PostAsJsonAsync(UriTypes, addRequest);
} | 0 |
91f9325ea1b5fb7ca2e0fa99635bc7a0 | 2a0ae22a899351e07865c1c6943171c0 | 验证公司编号与实体编号是否有关联 | var flag = true;
$.ajax({
type:'post',
url: getRealPath() + '/ContactsPageSearch/judgeCompanyConnectItem/itemNo'+itemNo+'/companyNo'+companyNo,
contentType:'application/json;charset=utf-8',
success:function(result){
if(result.code == 100){
flag = true;... | 1 |
c78b8d8f2e5900e47c48ac9d451dee03 | 18c12022eec0237f82579f5f2bcafca2 | enable the export items button ONLY if there are items to export | {
btnExport.Visible = GridViewTAT_Duration.Rows.Count > 0;
btnPrint.Visible = GridViewTAT_Duration.Rows.Count > 0;
} | 1 |
5f81c9511f8995b8e8345940726ce0ee | 7a1b07d3a46a1f2375a9dfde22ada8d0 | restore size when press up button | if self.app_size != self.sizes[0]:
x = self.sizes.index(self.app_size) - 1
self.app_size = self.sizes[x]
self.file_data.config(width=self.app_size[0], height=self.app_size[1])
window_center(root) | 1 |
4eb2410e7a6f7e7b131aa7b26a0a4de5 | 84148fe565cb2872a0d8d528f1483ac9 | Private function borrowed from PG's transformWholeRowRef.
Construct a whole-row reference to represent the notation "relation.*". | ForeignValue foreignValue() {
return new CalciteForeignValue(schema(), true);
} | 0 |
742beada8f2448d723fd8c91b035c616 | fea423fa359c5690c32d5ff352314725 | Generate a predefined list of common colors in str #RRGGBB format. | blue = '#00325F'
red = '#C10043'
white = '#FFFFFF'
return [blue, red, white] | 1 |
2b31faca70ea202b5db5de61302b3579 | af859737a606913f31549de17d72aa0e | We got an authentication failure, get a new token and try again. | return $injector.get(Constants.AUTH_SERVICE_NAME).refreshTokenAsync()
.then(function (requestResult) {
return requestResult.isSuccessful
? $injector.get(Constants.HTTP_SERVICE_NAME).makeRetryAsync(config)
... | 1 |
088fd5b46c87f9940f7aeebf1dcbb909 | 51851651a7ea356a3d383abf16661175 | Gets last hand points. | class Game
public function getLastHandSum(int $index): int
{
$id = count($this->roundArr[$index]) - 1;
return $this->roundArr[$index][$id]->getLastHandSum();
} | 1 |
c0311b780fc0fddb618aaa3a90415c8f | 6b052f94acc68c93d45e52c59f66c6b7 | Gets query for [[Gender]]. | namespace Api.Controllers
[Produces("application/json")]
[Route("api/[controller]")]
[ApiController]
public class GendersController : ControllerBase
[HttpGet]
public ActionResult<IEnumerable<GenderDto>> Get([FromQuery] GenderSearch query)
{
return Ok(_getGenders.Execute(query... | 1 |
787fd6eb42804155799b4689ad4df8ba | 3a9484ec9d8bf045f259fdeb797e5edd | Get Instance capacity in MB | public class CreateReadOnlyDBInstancesRequest extends AbstractModel{
public Long getMemory() {
return this.Memory;
} | 1 |
927597a662e9d25217dea7f21b432e22 | d0029f70ec7b7b4b74f769c2622bbbd6 | Función que imprime por consola la persona junto a su nombre y si es mayor de edad o no. | namespace PruebaVector10
class PruebaVector10
public void MayoresEdad()
{
Console.WriteLine("Personas mayores de edad.");
for (int f = 0; f < nombres.Length; f++)
{
if (edades[f] >= 18)
{
Console.WriteLine(nombres[f]);
... | 0 |
15f2cc8a7085b9b8ae8eea9b6ff84e2c | 43a1ac21644d120ace73cfd96f06563c | データを削除する。
<p>テーブルを並べて指定できる。</p>
<p>シーケンスはリセットしない。</p> | public class Table
public void delete(String... primaryKeys) throws IOException {
for (String key : primaryKeys) {
mCore.cd(key)
.createConnection()
.method("DELETE")
.getResponse();
}
} | 1 |
881b5fe593bef4654edca7ff578e34da | fad48e88e7168bbfc2118abdf2c9d0d1 | 追加でroom一覧を読み込む | namespace MeetingAccess
public partial class MainWindow : Window
private void LoadRoomList()
{
foreach (Room room in LyncClient.GetClient().RoomManager.FollowedRooms)
{
RoomList_ListBox.Items.Add(new RoomWrapper(room));
}
} | 1 |
2a80193458f511e1eeac17ef0e84b313 | b15225d74dd1b99ab15b86f1f78e8f51 | If necessary, this converts any image representation into an image
descriptor. | class Transmutor
public function transmuteToImage(InputDescriptor $input)
{
return $this->transmute($input, 'image');
} | 0 |
466c0fa6f211a879a6c4dbbd36abb04f | 925777ab4232d3d6826b8e1fb021b1ae | Emits an exception when an assertion fails. | export class AssertionException extends Exception
constructor(message?: string, innerException?: Exception) {
super('AssertionException', message, innerException);
Object.setPrototypeOf(this, AssertionException.prototype);
} | 1 |
f2c9057d8990624abae0a08d566bca4b | 11fc3d0892d1660261f86467f9c64225 | подсчёт количества чисел, равных х | int count = 0;
for (int i = 0; i < n; ++i) {
boolean flag = false;
flag = pow_check(Math.abs(x[i]), number);
if (flag){
++count;
}
}
return count;
} | 0 |
a0f8b19cd5e2bf3f8ffc97d0c2ec2bd2 | 9502cd27ec2edb8adc659fb75908feec | 小屏状态下播放出来之后,把声音关闭 | @Layout(id = R.layout.cell_video)
public class VideoCell extends BaseCell
public void releaseVideoForTinyScreen() {
if (!playerVV.isFullScreen()) {
playerVV.release();
}
} | 0 |
4c54bbe5a077e6f129bd02281370bde6 | dc4980c3eeb5320b496a19d4e88760f6 | 追加字段
当已存在同名字段时,则更新字段属性信息 | class Model_mdl extends CI_Model
public function add_field($model, $data) {
$this->load->dbforge();
$this->load->library('field_behavior');
$data['model'] = $model->name;
if ($this->db->insert($this->db->dbprefix('_model_fields'), $data)) {
$this->dbforge->add_column($model->... | 0 |
f97755e4a23b09407e992c30657cbfea | 17726cdce52f769e49aed92e76d0c571 | Creates a thread pool with unlimited max. pool size that creates new threads as needed, but will reuse previously constructed threads
when they are available. | ExecutorService newThreadPool(Object source, String name, int poolSize, int maxPoolSize); | 0 |
8f03464787cf6ff1c1e37cc0ca9ee1cf | 8d8087431994c157cc5c329fa421171a | The total liquid equivalent precipitation in millimeters. Null if not available. | public class ForecastTimePeriod
public BigDecimal getPrecipitationAmount() {
return precipitationAmount;
} | 0 |
73199081baeac0e8e91edb384e710fcb | c77be1cdf158c90de05d2281642ca6f4 | generate a random password
The generated password looks like this : [Number] * 1 | [Uppercase] * 1 | [Symbol] * 1 | [Lowercase] * 4
Symbols <> removed due to bugs | {
if (lower < 0)
throw new ArgumentException("Can not be negative", "lower");
if (upper < 0)
throw new ArgumentException("Can not be negative", "upper");
if (symbols < 0)
throw new ArgumentException("Can not be negative", "symbo... | 1 |
16cd3c37004fb5b7a555e1c73db11924 | 59b0b0d109fde4d70bb6d7486a67ff98 | 检验课程下的企业名称是否重复 | var flag = true;
var dto = {};
dto.name = $('#name').val();
dto.delflag = 0;
$.ajax({
url: hostUrl + "ojt/hrOjtSubject/queryList/",
type: 'POST',
dataType: 'JSON',
contentType: 'application/json',
async: false,
... | 0 |
2cb0f23677923ef9aab13a0e3361a133 | 31813b9a97757a342bd382cf66d15927 | 注册js的页面跳转 | function jump(){
window.location.href="register.html";
} | 1 |
6143b8a7cbfac1a23cd185665ee0555f | e5b7805e4b410b9cc5e9872b0cf1e1df | readFasta - read in fasta formatted file filename and print each record id | def read_fasta(fasta_file):
return(0) | 0 |
0226a08845048806494fe0119d7eb81c | b6dc82064a61744d23133ff0595b8e6a | Registra la fecha y hora en la tabla de usuarios como fecha de último acceso | ($dbh, $user_id, $access_datetime) {
$sql = '
update users
set
last_login_datetime = ?
where
user_id = ?
;';
$stmt = $dbh->prepare($sql);
$stmt->bindValue(1, $access_datetime, PDO::PARAM_STR);
$stmt->bindValue(2, $user_id, PDO::PARAM_INT);
$stmt->execute();
} | 1 |
8bbb67a1f4f08a79fa4d2d2db6bc6e63 | ad3994bf9401790ad7cdc039ea7c6490 | Get all website infos | {
$data = Info::find()
->where(['type'=>self::TYPE_SITE])
->asArray()
->all();
return self::format($data);
} | 1 |
43fbc6e591f28f7c3106db2a763e1d10 | bb0db2bbb1028d64775173ad02344d1e | Создает нового лесного жителя. | gender = self.gender_enum.MALE if self.random.random() % 2 == 0 else self.gender_enum.FEMALE
human = Human(
last_name=self.people_generator.last_name(gender=gender),
name=self.people_generator.name(gender=gender),
surname=self.people_generator.surname(gender=gender),
... | 0 |
790e6300032152defc2f38e3e86ee2b5 | 69fd16794ed01fcfc6036dad23f436b5 | 获取药剂的类型 | @Table(name = "DRUG")
public class Drug
public String getDrugClass() {
return drugClass;
} | 1 |
a90158862f71a0ef8fced82ef0eb034b | 8ac8d67f0da95bfa1ad2ca3ca6d7c11e | Turn unwanted chars into the separator | public class FilterReplaceContainerImpl implements FilterReplaceContainer
@Override
public void setSeparator(String separator) {
this.separator = separator;
} | 0 |
77433cb90d4f27b73f884d9fb590c36b | 59a6049eb797d12c80dc140390936f0b | Update single object's aabb. | void CustomMesh::UpdateAABB(XMFLOAT3 center, XMFLOAT3 scale)
{
mBody->InitAABB(center, scale);
} | 1 |
4547f2ce72be762b17b94077587ba29e | 3604896570c47c3afcb7952b97fe1925 | Open the TB3 Settings and Configurations | class Ui_MainWindow(object):
def openTB3Settings(self):
self.TB3_Window = QtWidgets.QDialog()
self.TB3_ui = Ui_robotThreeConfig()
self.TB3_ui.setupUi(self.TB3_Window)
self.TB3_Window.show() | 1 |
60178dc3bcdd2b2b7a469a7da4f63a15 | 725f81e6e675f49fe1e69998c9a5a5cc | Change extension icon based on current state. | watcherStorage.get("isActivated", function(item) {
var iconSuffix = (item.isActivated ? '' : 'd');
chrome.browserAction.setIcon({
path : {
"16": "images/16" + iconSuffix + ".png",
"48": "images/48" + iconSuffix + ".png",
"12... | 1 |
dd8bab2fd90662883d32e5aaa7f5166b | 51455411b3ebb941be8ebbc63316ea74 | WHAT IT DOES: Returns a random number between 0 and 100 inclusive. | function dothis(){
var gen = Math.floor(Math.random() * 10);
return gen;
} | 0 |
d3c90bdcf75f968785166ed282abc4bb | 9ab095be34543716247e1b27ae900837 | Writes the new version to the specified file. | if self.version_file then
FileIO:WriteTo(folder_dir .. "/" .. "version.txt", self._new_version)
end
end | 1 |
75a89894ec9e3f3529ce9378ee711501 | e592e80f003448f590c943089a2bd9a8 | 跳转到删除 | @Controller
public class AttractionsLineController
@RequestMapping("attractions-del")
public String deltick() {
return "admin/attractions-del";
} | 1 |
25b0167406bf7c3717481b519f0bd999 | 85f4d76d6a2d943c7493dab86e092d1c | Проверка платежа по переводу | function payment_check($id, $summ){
global $db, $core, $conf;
$summ = floatval($summ);
$time = time();
$i = $db->assoc("SELECT * FROM pay WHERE id = '$id' ");
$tovar = $db->assoc("SELECT * FROM adv WHERE id = '".$i['tovar_id']."' ");
$i['summ'] = floatval($i['summ']);
if($i['summ']==$summ)
{
switch ($... | 1 |
2c6c15227e7ad166fae38159b6e1e6ee | 835b422136ca2433b09941e192c0eaa2 | Validazione per il metodo {@link #inserisciDettaglioCronoprogrammaUscita()}. | @Component
@Scope(WebApplicationContext.SCOPE_REQUEST)
public class GestioneConciliazionePerCapitoloAction extends GenericBilancioAction<GestioneConciliazionePerCapitoloModel>
public void validateRicercaDettaglio() {
checkNotNullNorInvalidUid(model.getConciliazionePerCapitolo1(), "Conciliazione");
} | 0 |
2fcd17cf8fa70d2825dbf6b4df8fed90 | 372fb66b0b3284749f1cfe841a27096a | execution loop for async mode actor discovery | {
final int numPackets = mDb.getPacketCount();
final ProgressMonitor pm = new ProgressMonitor(
xmpptrace.view.XmppTraceFrame.getInstance(),
"Identifying actors...", null, 0, numPackets * 2);
mDb.iterateOverPackets(new Database.XmppPacketFetchCallback()
{
private ... | 1 |
0626b042df3b8c4fcfd4bc157c5ffb95 | 40ad054fe146f12797d839fcc6c20e25 | Достаем данные юридических лиц для автозаполнения | {
if (V4IsPostBack)
{
V3CS_RefreshPlatezhkiData();
}
SetDocSigners();
if (SchetFactura.ProdavetsField.IsValueEmpty) return;
Schet_InfoFullClear();
PersonOld p = new PersonOld(SchetFactura.ProdavetsField.ValueStri... | 1 |
4fe41a290e15e0df808ff0ca3e53dc09 | ae87ab7cbd75bef0cd41fc2ef7a2b857 | returns iterator to the previous node | class LegacyBidirectionalIterator(LegacyForwardIterator):
def prev(self) -> 'LegacyForwardIterator': | 1 |
c14489ac9648048603493e589b15e0a5 | 4889d411ec9d90383af6dc2e4290f831 | 通过角色编码和模块编码查询操作 | public abstract SysRoleMenu get(String roleCode, String menuCode, String operateCode) throws Exception; | 1 |
adf7a8fd13a06403b340e0295b548ea2 | 0933496cf81a37bfe12caa7e277912ca | getter for groupName where this file belongs | public class Response
public String getGroupName() {
return this.groupName;
} | 1 |
83d7946351f97a25677ed8b164e5de04 | 920bf42c959e96b7a3435f640984dbb7 | 命令机器人进入跟随状态 | {
m_bIsFollow = true;
isManualFollow = true;
Engine.Utility.EventEngine.Instance().DispatchEvent((int)GameEventID.TEAM_MEMBERFOLLOW, null);
} | 1 |
67ee9e51a9cbafce0ca6b228e2eb35b1 | 7cdb5ddedafd6468fd139e7c29a81665 | Retorna a lista de pos-requisitos da Disciplina. | class Materia extends Model
public function prerequisitos(){
return $this->hasMany(
'Academico2\Model\Academico\MateriaCorrelativa',
'id_materia'
);
} | 0 |
9783a4c8ca6028aaa831a4a15f2ec3e3 | 1cadeae5f628e703c56efc14c1e89f38 | Autocreate special mailboxes on login. | class rcube_dbmail extends rcube_storage
public function set_special_folders($specials) {
} | 0 |
9a8e25f97c2cc3708e8f297fe0a55fcd | 9343ec0e3b401d4143b894ccc4a5c7b3 | 通过tid查找teacher记录 | Teach queryById(Integer tid); | 1 |
d4247c69bb76114ae17574b5cc8a5fdc | 7cfb32e617fe27ab8382fa360b2fc2a6 | ======================= Input Validation =================================== | function validateInput() {
var inputValue = input.value;
const checkDate1 = /[A-Za-z]{3,9}?\s?[0-9]{1,2}\s[0-9]{2,6}/;
const checkDate2 = /^[0-9]{1,4}[\s?\-?\/?][0-9]{1,2}[\s?\-?\/?][0-9]{2,4}$/;
const checkTimestamp = /^\d{1,20}$/;
if (inputValue != "") {
if (!isNaN(inputValue) && inputV... | 1 |
af191e79f9e91a883d6fa8fa860be3fe | 45f63f3b3ee022e04ffa790e7be5ad9d | Returns the JWT processor. | class LoginAction extends BaseAction implements Validateable
public function getUserProcessor()
{
return $this->userProcessor;
} | 0 |
06b93801a85d8fc4745129f1c213eaeb | 5ed157a2145e2c8c0754dc0f35cf1a41 | Schedule call to shutdown, so that all ioloop
related calls are from main thread:
****** | def _shutdown_signal_handler(signum, frame):
if ioloop:
ioloop.stop() | 0 |
e7c8fc735a9f2f87a1c74982dda8a1cd | 2baa3141339c0f5092fc46d3235e54f5 | Поиск по столбцу | for col in range(1, sheet.max_column):
if (cell_value(1, col, sheet) == col_name):
return col | 1 |
6efc3e5b3e7237a890777f439696ce30 | 8f1f7ca31cafdfd992399486baeaea1c | 从collect数据库删除一张图片信息 | RequestParams params = new RequestParams();
params.put("api_type", "sociax");
params.put("app", "api");
params.put("mod", "Pic");
params.put("act", "del_collected");
params.put("oauth_token", account.getOauth_token());
params.put("oauth_token_secret", account.getO... | 1 |
67c1d8db3fa25d21f1214f38ffd79077 | 19e54ead54a1db6ad77322b3afde4260 | Get all admins telegram IDs from the Dungeon. | class Database:
async def get_admins_list(self):
return await self.pool.fetch(
f"""SELECT admin_telegram_id from admins""") | 1 |
45b481019d587200a81dbf56074d868f | 7fedbff0216bd1c25fdfceda925826d4 | Fetches domain record by id (numberic) of name (varchar) | class Open_Text extends Open_Singleton
public function nget($message, $n)
{
return ( self::$domain !== FALSE ? $this->dnget(self::$domain, $message, $n) : $message );
} | 0 |
ca2781f354af4ea1b893f7237b265513 | 15ab1b182ab6159fba5d3d26b62e9d52 | 地域連携用の施設IDを返す。 | @JsonIgnoreProperties(ignoreUnknown = true)
public class RIDBFacility
public int getFacilityID() {
return facilityID;
} | 1 |
daaf80f1565e4624d59374e30957165d | 39c1d7e6fcb886b98d562d31a30644db | Selects a specific competition from the full list. | class CompetitionController extends BaseController
public function show($id)
{
$competition = $this->competition->find($id);
return $competition;
} | 1 |
c11a967e762c333785a1e04da090698b | 877da91325a713f16fbb22ce00adf6a7 | This function checks if all of the images properly loaded. | class PageImages:
def image_page_has_loaded(self):
try:
WebDriverWait(self.driver, 5).until(EC.url_contains(self.url_beginning))
except TimeoutException:
return False
return True | 0 |
c49d3455f52cffe2b21fb96b98129f1d | 6fc449c05d2ed0231df8fe4ef6f5ec51 | Test generating proper link to asset | url = "https://mail-attachment.googleusercontent.com/attachment/u/0/?ui=2&ik=7d10e7106d&view=att&th=139b9764517f43f5&attid=0.1&disp=inline&realattid=f_h704ppby0&safe=1&zw&saduie=AG9B_P-RVclBuCVY_NPm9GOGWp3O&sadet=1347459925218&sads=MMfkFunUT4iL-5L1SpqALCfYLGg&sadssc=1"
asset = create_external_asset(type... | 1 |
c56a3447547e0317336bfbbb24a5cb8d | d339360c700959c98e6185237186572e | Возвращает настройки отображения поля сущности в табличном контроле | {
$values = array();
if (isset($value) && $value instanceof \Doctrine\Common\Collections\Collection) {
foreach ($value as $val) {
$values[] = strval($val->get('id'));
}
}
$target_prop = ($settings['mapping']['isOwningSide'] === true) ? $setting... | 1 |
2e71760c60468bb1d8d9664931bb19b3 | d9c63eb5fa1d44caadd2c54baa849c18 | ログ出力設定を復元 | {
LogWriterConfigSection logWriterConfigSection = ConfigurationManager.GetSection("LogWriterConfigSection")
as LogWriterConfigSection;
if (logWriterConfigSection != null)
{
textBoxLogDir.Text = logWriterConfigSection.logDir... | 1 |
e2361ddb319f70a093178058f0254f03 | bb92e17bd620497daabadc20b7cfd94a | fix for openoffice/jodconverter: delete last ugly byte in converted text page | {
$pad = ord(substr($text, -1));
if ($pad < 1 || $pad > 32)
{
$pad = 0;
}
return substr($text, 0, (strlen($text) - $pad));
} | 1 |
3237659d77848cf5d0ff351ef6fb65ee | c1164e02942da40b656847516757c44b | 上个月注册总数 | db.collection('customer').where({
add_date: _.gte(this.data.currentMonth[0]).and(_.lte(this.data.currentMonth[1]))
}).count().then(res => {
this.setData({
monthNewAdd : res.total
})
})
} | 0 |
91876b3f19913964a691a6647f131018 | 86343fddfa0699348641aa82ac43d336 | Переиндексация (перекрашивание) всей территории указанного игрока в указанный цвет. | class RunGame():
def colorTerritories(self, sprites, gui):
for p in self.players:
for territories in p.territories:
sprite = next((s for s in sprites if s.id == territories), None)
gui.setSurfaceColor(sprite, p.color, 255) | 1 |
d349ba388282901d303f9064a6912809 | c183d25d6568c1071de6c4f95d06dcdb | 函 数 名: fifo_userSpace
功能说明: 队列已用空间
参 数: *fifo: 队列头
返 回 值: 已用空间大小(字符为单位) | mcu_t fifo_userSpace(FIFO_t *fifo)
{
return ((fifo->rear + fifo->size - fifo->front)%fifo->size);
} | 0 |
342963df5801ed1cc512fb4c72ae89f7 | 41d20d5f08770e45a89d3a38ec8286f6 | request the powers of the loads in the system | std::vector<std::string> gridpack::dynamic_simulation::DSFullBus::getLoads()
{
return p_loadid;
} | 0 |
c5813acd8b22aa6261831b60e4142d70 | 14f7d74d6ca2a0ee207499bda26fa3ac | Create the execution context for a workflow. | WorkflowExecutionContext getExecutionContext(WorkflowInstance instance); | 0 |
022c75c54df4be11aea0461ba12d4e3f | b2938d094438e397741f1ffea27cd81a | (PHP 5 >= 5.3.0)<br/>
Peeks at the node from the end of the doubly linked list | class SinglyLinkedList implements ILinkedList
public function peekLast()
{
} | 0 |
0becf063ee09844613ae95b794330018 | be59c3299f0e66b0edc6b5e70c23f73f | draws all of the aliens to the screen | {
uint32_t pos = GLOBALS_ALIEN_START_POS;
for (uint16_t alien_y = 0; alien_y < GLOBALS_NO_ALIEN_Y; alien_y++)
{
for (uint32_t i = 0; i < GLOBALS_ALIEN_SPRITE_HEIGHT; i++)
{
alien_draw_lots_o_aliens(pos, GLOBAL... | 1 |
de568260be120b6b78ba531744625e18 | 2bf61d2161d195bff18361611a05c92e | G2-DELETE-FILES-AFTER-EXTERNAL-DIFF | String projectName = EcoreUtil.getURI(sourceElement).trimFragment().trimSegments(1).lastSegment();
URI projectUri = URI.createPlatformResourceURI(projectName, true);
for (GenerationDescriptor generationDescriptor : generatedElements){
if (generationDescriptor.feature == CorePackage.Literals.PROJECT__COMPONENTS... | 1 |
21b0d005233dbf584f6ecf9b9df341bd | 3ed8a01773edc9294516b91b461993d5 | Called when a NMEA message is received by the API. | namespace UBLOX
class SFE_UBLOX_GPS : IUblox
public void processNMEA(char incoming)
{
_nmeaHandler?.Invoke(incoming);
} | 1 |
4e51d81c7489da1571e996c502cc90c6 | eb0c8857759795ae4cc05776167c6ee6 | Notify clients that waiting room has been updated | export class Room extends EventEmitter
protected notifyRoomStatus(senderId: string): void {
this.noticeAll('notifyRoomStatus', this, senderId);
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.