query_id
string
corpus_id
string
query
string
code
string
label
int64
7652118ebce8b9307baba7c2cb73f638
97d8bd02c9fc878f576b47b67d80bd56
Acquires the proper write lock for a given cache key
namespace Owl.Feature public static class Locker public static IDisposable LockWrite(object key) { return new WriteLocker(GetLocker(key)); }
1
cd76d59843d2f28c4b94801dac8b486d
a02e8d291ee03656d64f2cec6cddff18
! @brief Displays the softbutton for right-side hardware buttons.
void show_softkey(WGUI_SOFTKEY_ENUM key) { if ((MMI_softkeys[key].text == NULL) && (MMI_softkeys[key].normal_up_icon == NULL)) { clear_softkey_handler(key); return; } #ifdef __MMI_UI_DALMATIAN_SOFTKEYS__ switch (key) { case MMI_LEFT_SOFTKEY: gui_show_icontext_but...
1
017e22b9fd60502ebad6a283e1eefc2f
8e6a3296d32da76c9297e4b343715f5a
同步卡号到商城 (商城用户信息, 平台卡号)
@Slf4j @RestController @RequestMapping("/merchants") public class MerchantsController @PostMapping("/tiedCard") public ResultCode tiedCard(@RequestParam Map<String,String> paramMap){ return shoppingUnitService.tiedCard(paramMap); }
1
6896d2417546959c87a1b6cc22c89461
20f46f12f925bd0b2c4a9f1d95c70529
从营销中间库中获取删除数据
public class BINBEIFPRO01_Service extends BaseService @SuppressWarnings("unchecked") public List<Map<String, Object>> getDelList(int brandInfoId) { Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put(CherryBatchConstants.IBATIS_SQL_ID, "BINBEIFPRO01.getDelList"); paramMap.put(CherryBat...
1
42461194f8a1dd122b912a20cb1ea853
10053bed76e73ea2564014430d0d8cee
Compresses public key
x, y = public_key if compressed: return (b'\x02' if y % 2 == 0 else b'\x03') + x.to_bytes(32, byteorder='big') return b'\x04' + x.to_bytes(32, byteorder='big') + y.to_bytes(32, byteorder='big')
1
ad090ecce3645bc50cc7f397b941a560
894131ce480c5ed9c8760e472edb22f3
将其它缓冲区链表放到已有缓冲区链表结构的尾部
void hd_sa_hback( register struct pbuf *head_ptr, register struct pbuf *new_pbuf) { while( head_ptr->pb.av_back ) head_ptr = (struct pbuf *)(head_ptr->pb.av_back); head_ptr->pb.av_back = (struct buf *)new_pbuf; return; }
0
aa209481d168c1490fee4810d20500a5
2dd44431fd3cece7509114866b11fb32
鼠标移到最小化按钮时显示最小化
namespace CustomTopBar public partial class customTopBar : UserControl private void MinimizePictureBox_MouseLeave(object sender, EventArgs e) { minimizePictureBox.Image = buttonsImages[2]; }
0
60f6506779cc9bdb33bd3acf79580d37
d802f975d796f13f3c278cf5ce219a44
判断请求是否由DFish框架发出的
String xRequestedWith = request.getHeader("X-Requested-With"); if (xRequestedWith != null) { LOGGER.info("X-Requested-With:" + xRequestedWith + ",User-Agent:" + request.getHeader("User-Agent")); if (xRequestedWith.equalsIgnoreCase("XMLHttpRequest")) { return true; } } return false; }
0
3eb4d1cdaee33c2234b1af75edc6b6e8
191cc16fc2c01f08197709151376fb2c
Create the Google Admin Directory Service
{ $acc = $this->getSelectedGoogleAccount(); $client = $this->getGoogleClientWithAccount($acc); return new Google_Service_Drive($client); }
0
62cb94db8571790bd535bb249e52ba17
8704a38d12b29cd619f578dba3779dbb
The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.
class ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionArgs: def comparator(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "comparator")
0
908d10def00086c8be9da8a37cc3e887
65ad812b69a92164be64bed4e076a5a2
抓取测试项的问题和答案
class IASKSpider: #初始化,传入基地址和开始页 def handleQuestions(self,questions): for question in questions: for a in question.children: aString = str(a).strip() pattern = re.compile('<a href="(.*?)".*?>(.*?)</a>',re.S) check = re.search(pattern,aString) if check: items = ...
1
d9c524c2578e37f4b996b2d3e4829185
389c519923ad85586d13fb6d24284f3b
A function, which will tell users whether all cards were matched or not.
function gameOver() { return matchedCounter === 8; }
1
ec7abcc838488edc158bb0215baae03a
018ff0b2c29bf31aef30576d165d5dbb
Read sequence IDs of all bin files.
class BinTools: def unique(self, bin_files): bin_seqs = {} for f in bin_files: bin_id = self.bin_id_from_filename(f) if f.endswith('.gz'): open_file = gzip.open else: open_file = open seq_ids = set() for line in ...
1
be804bbe893c09d4b3021bb0b9341159
be5d87915a72731d3b2b63f2908ebae9
根据用户名和给定的Scope,找到对应这个用户IClient对象
{ ClientInfo ret = null; ret = CurrClients.FirstOrDefault(cc => cc.Name == name && cc.ValidECode == vCode); return ret; }
0
deb2e40014f1d933b1b0ad7afdfc7a47
9c64c47c5025a640384e188f27f3277f
Makes a camera-managing thread Returns the thread along with the assocated queue
{ camframe_exit = 0; is_camframe_thread_ready = 0; pthread_create(&frame_thread, NULL, cam_frame, (void *)parms); CDBG("launch_camframe_thread(), call pthread_cond_wait\n"); pthread_mutex_lock(&sub_thread_ready_mutex); if (!is_camframe_thread_ready) { pthread_cond_wait(&sub_thread_ready_cond, &sub_threa...
0
0000f244d231f565105295bab528d1d3
22e6f20a8f2ae9d05b13ac3923a31ff2
Updates the payor plan.
namespace Axis.PresentationEngine.Areas.BusinessAdmin.ApiControllers public class PayorPlansController : BaseApiController [HttpPost] public Response<PayorPlan> AddPayorPlan(PayorPlan payorPlanDetails) { return _payorPlansRepository.AddPayorPlan(payorPlanDetails); }
0
5e3568adc8209284f9326f945cf05a7e
ad9f25b6fc2a02217f4265ce1a421072
敵のHPをセットする
if(hp > 0) { this.hp = hp; }else { this.hp = 0; } }
1
7b169e7ba2fb5a8e8e50b7788a9697a6
8606e2e5027b14c299d9955f9a768116
单个宝石升级
function EquipController:OnGemGoUpLevel(id,autobuy) local cofg = EquipModel:GetGemServerinfo(id); local cfg = nil; if cofg then local lvl = cofg.lvl + 1; if lvl >= 10 then lvl = 10; end; cfg = t_gemcost[lvl] else cfg = t_gemcost[1] end; if MainPlayerModel.humanDetailInfo.eaBindGold + MainPlayerM...
1
fe160974eca4f6dbd7c0beed10d6758d
de2228adc311d3a0bf4b42c09925c46b
Returns the top app downloads for a given CP
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "contest_download WHERE contest_id = '". (int)$contest_id ."'"); return $query->rows; }
0
310a35c9390c4ce94716279553a5fa35
91a4782b466d090742941f64a75d7324
返回查询条件的总个数.
@SuppressWarnings("unused") public abstract class AbstractDao<T extends BaseEntity, PK extends java.io.Serializable> public int countAll(Criteria criteria) { return Integer.valueOf(criteria.setProjection(Projections.rowCount()) .uniqueResult().toString()); }
1
6856443fc15b4ce821cd5aed0ce0a10c
6ef70266876fc1caf7bb7dacaa9832cf
Finds the next zero entry in an array.
unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, unsigned long offset) { return _find_next_bit(addr, NULL, size, offset, ~0UL); }
1
7ec817239fb2d0397aeff950d6bdd859
cc5ae37790b30d1e649b70d40bd5d8c8
Use Greedy Rule to tokenize the input token based on vocabulary. The goal is to prevent too much [UNK] from appearing, since most tokens missing from vocabulary can be split into several simple sub-tokens which exists in vocabulary.
self, text, freq_dict, use_cache, max_cache_size, max_word_size=20 ): output_tokens = [] cache = {} num_tokens = 0 num_found_tokens = 0 for token in text.split(): num_tokens += 1 chars = list(token) if len(chars) > max_word_size: ...
1
3d4b722b5ef1de272b03ab4ca2b0111b
c0cd93f17b801573b382db849f338a29
## test cannot be performed if no strata
ncvTest <- function(model, ...){ UseMethod("ncvTest") }
0
de6196cc5e89d168671f6bf5f6c2d275
1e4ed1ba5432da19e1ec774ad6ef1566
获取域名,带端口
namespace LB.Tools public static class RequestTool public static string GetRequestDomainPort() { string retVal = ""; try { retVal = HttpContext.Current.Request.Url.Authority; } catch { retVal = ""; ...
1
9f6c700c11b17f480f7d6c3e4b62c350
ae32582719ce8aeabb5e1d46611c7a83
Sets the contest fee percentage.
var isStudio = 'STUDIO' == getContestType(true)[0]; var isAlgorithm = 'ALGORITHM' == getContestType(true)[0]; var contestTypeId = getContestType(true)[1]; var billingProjectId = $('select#billingProjects').val(); var billingContestFee = getBillingContestFee(billingProjectId, contestTypeId); if (isStudio || ...
1
407c10e0909d739b5e0537dfcf11d1c6
0a69fc1fdeec20f74ae5f74d513424d9
Returns the meta object for enum '{@link org.sample.melangeproject.capellawithmass.information.communication.CommunicationLinkKind <em>Link Kind</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
public class InfGMLSupportPackage extends EPackageImpl public EEnum getDiagramKind() { if (diagramKindEEnum == null) { diagramKindEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(InfGMLSupportPackage.eNS_URI).getEClassifiers().get(31); } return diagramKindEEnum; }
0
13ed36c86352f496b1ea2cb1521fa294
39efaae8def23d109f9c6e775bb9570f
Test case for add_departamento_contable Añade un nuevo departamento contable
class TestAddDepartment: def test_add_Department(self): name = "gg" res = self.main.goto_contact().goto_department().add_department(name) assert name in res
0
108f3e0ebbffde7193201b043eb6f02d
e34c7a0b51461048eeac64877283a2af
このメッセージに付随する情報をディクショナリ形式で設定する。
public class EmpressiaMessageTaskSupport extends DefaultTask private void setConfiguration(Configuration configuration) { if(this.getLogger().isInfoEnabled()) { this.getLogger().info("configuration.BaseDirectoryPath -> {}.", configuration.BaseDirectoryPath); this.getLogger().info("configuration.MessagePropertyF...
0
e66643135a86a70edf4749865ccc0fc0
fa1a65c0ecae09cb0e51280506f1bdbf
此函数内是模拟已经登录过此账号,发生的界面变化
dgsSetVisible(elements["login"]["logined"],true) dgsSetVisible(elements["login"]["passed"],true) dgsSetVisible(elements["login"]["loginbtn"],true) dgsSetVisible(elements["login"]["label"],true) dgsSetVisible(elements["main"]["logo"],true) dgsAlphaTo(elements["main"]["logo"],1,false,"OutQuad",200...
1
60c83b4488023e98489cd19bde7add57
c3a31f17cbee3f8226cf8d98256e2524
根据学生userId上传个人开题报告
class Member extends \CI_Model function saveReport($exp_id, $user_name) { $user = $this->getUserDetail($user_name); $root_folder = './data/report'; if (! file_exists($root_folder)) { mkdir($root_folder); } $exp_folder = $root_folder . '/' . $exp_id; if (! ...
1
14ac6adeca2f4f12a00afa26a02be47c
5ec86d50b24233cf3042b599dea1c85b
发标人托管资金后通知发标人已确认收到款
@Service public class HftNotifyService extends HftBaseService{ public NotifyPaidResponse paid(NotifyPaidRequest request){ return super.send(request, NotifyPaidResponse.class); }
1
5e50cc37a7df02c595e1d2b0c39a0eea
be41c7a5fdd3983f28e2a6df02addb8c
sets Boards to be equal to the default values for a chess board
int height = 8; int width = 8; testBoard = new Chesspiece[height][]; for(int row = 0; row < height; row++) testBoard[row] = new Chesspiece[width]; }
0
c32bb6c4b0a76a4d1599308c6065b4aa
fbddd31ba54e34b2ce90a089919da793
添加用户至账号登陆次数切片
class SigninUtil public static function addCount($uid, $type, $addtime) { $signin = Signin::findOne(['uid' => $uid, 'type' => $type]); if (empty($signin)) { $model = new Signin(); $model->setAttributes(['uid' => $uid, 'type' => $type, 'addtime' => $addtime, 'total' => 1], fal...
0
ecc9e4319f7090293d85cd54d5e8863b
9ac6e792ab075093a292b0e3813ce2a4
draws the 1st part of ambulance
pen.setheading(180) pen.up() pen.goto(39, 64) pen.down() pen.goto(40, 69) pen.up() pen.goto(35, 64) pen.down() pen.goto(34, 69) pen.up() pen.goto(30, 62) pen.down() pen.goto(29, 67) pen.up() pen.fillcolor("white") pen.begin_fill() drawCircle(pen, 37, 6...
1
af608fd3ae1b2ddda3d605cd7eb56a67
38ba1d488657798218b01209be7902cc
ユーザーアイテム一覧をitem_idで取得する(フォトページ)
async.waterfall([ function(callback) { lockConn(callback); }, function(callback) { writeDword( client, COM_GetItemInfoByUserId ); writeDword( client, 0 ); writeDword( client, user_id ); ensureCommandResult( client, callback ); ...
0
2b9683d631da749735a2d1a3939c71e3
88ccc14cc8a71fd65ca77a25c3a1e7e8
获取辅导员个人详细信息
class LoginHelper function getpersoninfo($xh, $pwd) { $cookie=$this->login($xh, $pwd); $url=$this->getmainhtml($xh, $pwd,$cookie); $result=$this->curl_request($url[0],'',$cookie); $encode = mb_detect_encoding($result, array("ASCII",'UTF-8','GB2312',"GBK",'BIG5')); $resu...
1
bc6f617bd47c491f14d43b5d27f68396
ebe77fc07cb9b764f47af70ea2e3f4aa
POS Mapping Page
namespace Phoenix.Web.Controllers public class DataMapController : PMBaseController [CustomAuthorize(Roles = "Administrator,Editor,Viewer,SuperAdministrator")] public ActionResult POS() { return View(); }
1
5a94633d0731ad83ced458ba4040bcc3
8f7d55513533f9d2f6747d3aeb4281c8
Load Wondercard from Save File
public class PlayerAttacker : MonoBehaviour public void LoadFromSave(){ weaponFactory = new WeaponFactory(); _score = Camera.main.GetComponent<Score>(); setUnActive (); setActive (); setTextOfLockUnlock (); for (int i = 0; i < 8; i ++) { unitCostWeaponTexts[i].text = weaponCost[i] + " Units"; } playe...
0
5d4070b2b1292838a7cde1f36c59af57
5f5838cbf846c4eefd6eb7612c5a0552
根据dn_id 获得所有的分场
@RestController @RequestMapping("dts") public class DtsController @PostMapping(value = "/tables") public Result getTablesByDsId(@RequestParam String dsId){ return dtsService.getTablesByDsId(dsId); }
0
3e812b06e0087a75991e2490b8898a24
db34225f97978ea77f92535bb10e10d0
Insere o artigo corrente no banco de dados.
public class ArticleDBMgr extends DBMgr{ static public boolean addArticle(String title, String content, String tag, String author) { if(!isInit) return false; try { pst = con.prepareStatement("insert into article(idarticle,title,content,tag,author,createtime,edittime) " + "select ifNULL(max(idarticle),0)...
1
872912f5288f1a24a7ad709d558e33b1
52209207e6a2e0974daefc47509bcb93
Recursive version of insertion sort
if i == 0: return insertion_sort_rec(seq, i - 1) j = i while j > 0 and seq[j - 1] > seq[j]: seq[j - 1], seq[j] = seq[j], seq[j - 1] j -= 1
1
ccd15b72e0d10d7d80b25ec5f82ddde7
704728d41731ed989ed8f2105964e3ab
自动模糊测试参数生成,传入完整参数字典,对每个参数进行缺省和为空的测试,返回测试参数的列表
class BaseUtilsLibrary(object): def auto_params(cls, essential_params, unessential_params, success=True): results = [] params = {} if len(essential_params) != 0: params = essential_params.copy() if success is True: if len(unessential_params) != 0: ...
0
a4ede9c9ec198fa5bec388f43f2cba63
dd04acbcaf26874ebe5ae044bfbd197e
Visit a parse tree produced by {@link CPPGramaParser#forInitStatement}.
public class JavaParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements JavaParserVisitor<T> @Override public T visitForInit(JavaParser.ForInitContext ctx) { return visitChildren(ctx); }
0
2a418d5d92c937c553632511afda4034
9bb3fe7a9b9961526d5091871fb9d6b3
show a single symptom based on input
{ $symptom = Symptom::find($symptom->symptom_id); return view('symptoms.show', ['symptom' => $symptom]); }
1
ea3989348f0ec7c6431179ba9da62d6b
fd097c9861a50ce0408977f8850f9812
获得 装修情况
public class ErpRoomerInfo public Integer getDecorateType() { return decorateType; }
1
00e18636d4414b986a521a41b4a893ca
dc1425ece61148a3143306d2177a0104
This should be called by any wrapper IRQ driver unmask functions. it doesn't do any unmasking but records the IRQ as unmasked so that the core code knows the unmask has taken place. It is the callers responsibility to ensure that the IRQ can now trigger an interrupt to the core.
void OSS_IrqUnMask( OSS_HANDLE *oss, OSS_IRQ_HANDLE *irqHandle ){}
1
bb5ff07c17ffbba8bef0d511330d3523
4e1e99612b468fc15bba6a35aadbdb06
This function will perform a duplicate drop test on each file to see if a particular individual contains duplicate reads.
def findMultLoci(file1): df = pd.read_csv(file1) df = df.sort_values('forward gene start') a = df['forward gene start'].iloc[-1] - df['forward gene start'].iloc[0] if abs(a) > 250000: b = "MultLociSame_" c = [] c = b + file1 return c
0
9cdbc05792b2d71885f5035bfce85f0e
13b78e2d68a3c8ae3700b64151a4f739
sort names by first name using bubble sort
void sortName(Student *stuPtr, int size){ for(int i = 0; i < size; i++){ for(int j = 0; j < size - 1; j++){ int nameValue = stringCmp(stuPtr[j].name, stuPtr[j + 1].name); if(nameValue > 0){ Student temp = *(stuPtr + j); *(stuPtr + j) = *(stuPtr + j + 1...
1
ccdd3e34287265573eeb9746f6472a49
25c279a7ae8c5a756c357e08835e20ea
陨石类
super().__init__() self.ai_game = ai_game self.screen = ai_game.screen self.settings = ai_game.settings self.ship = ai_game.ship self.sb = ai_game.sb self.stats = ai_game.stats self.image = pygame.image.load("images/tanke.bmp") self.rect = self.ima...
0
e12205fcf2fe43193b2d54f906a33596
5988f2d181de4337595dfdfe59237e67
二叉树层序遍历
func TestLevelOrder(t *testing.T) { root := &TreeNode{3, &TreeNode{9, nil, nil}, &TreeNode{20, &TreeNode{15, nil, nil}, &TreeNode{7, nil, nil}}} fmt.Println(bfs(root)) }
1
43c4595a167a17b518b1633d2f801fd7
5438da8d3f440852bb64da5fe03fba18
Enriches the payload of specific Domain Messages and re-publishes them on an event bus.
{ $payload = $domainMessage->getPayload(); $payloadClassName = get_class($payload); $metadata = $domainMessage->getMetadata(); $handlers = [ OrganizerCreated::class => 'applyOrganizerCreated', OrganizerCreatedWithUniqueWebsite::class => 'applyOrganizerCreatedW...
0
b90bfa4a21b7f2d4c4dab1626d2571b8
aa0e8f9e678bb63ae0f360b351a53122
Return a code block to find a jni class.
wrapFindClassGlobal(JNIEnv* env, char* nm) { jclass cl, res; (*env)->PushLocalFrame(env, 10); cl = (*env)->FindClass(env, nm); if (cl != NULL) res = (jclass) (*env)->NewGlobalRef(env, cl); else { res = cl; } (*env)->PopLocalFrame(env, NULL); return res; }
1
b1dbc21d7b0a52befae6eb71012d8739
00f87c3f8ffaac47f320480b315348e5
Use the Equipped Item. If no item is equipped nothing would be done.
void UEquipmentComponent::Server_EquipItem_Implementation(AEquippable* Equippable) { }
0
ec48c9a80d047b799fe301a124c0ee40
136f3e24514bcd1e3bcce04d89b1de8f
Initialize a QueryTimesliceAggregation object from a json dictionary.
class DataQuery(Query): def from_dict(cls, obj: dict) -> DataQuery: if obj is None: return None if not isinstance(obj, dict): return DataQuery.parse_obj(obj) _obj = DataQuery.parse_obj({ "id": obj.get("id"), "outcomes": obj.get("outcomes"), ...
0
73937473955a7396373321c60cea37ba
48b5d916fba4e470c711f383711699f4
Analyze spotify data and sync it with passed artist.
def get_artist_data(artist_uri): index = 0 artist_results = {} results = spotify.artist_top_tracks(artist_uri) for track in results['tracks'][:10]: name_of_song = track['name'] formatted_name = re.sub(r" ?\([^)]+\)", "", name_of_song) songs = genius.search_songs(f'{formatted_name...
1
cfafefb0dd1b8b078c4dbe61eacf28a9
b4ae8c045924561239abc72c11ddad39
_indent(s, [width=4]) -> 's' indented by 'width' spaces The optional "skip_first_line" argument is a boolean (default False) indicating if the first line should NOT be indented.
def indent(text, by=4, first_line=True): spaces = " " * by lines = text.splitlines(True) prefix = lines.pop(0) if (lines and not first_line) else "" return prefix + "".join(spaces + line for line in lines)
1
8b94e9af5bf9d7d4b52c2f8b62fdab35
0e9623ce55a1b3004d8363aecaaa6abf
根据url判断属于哪个视频网站
class videoInfo{ function parse( $url ) { if(strstr($url, "<iframe")){ preg_match('/<iframe[^>]*\s+src=[\'"]([^\'"]*)[\'"][^>]*>/is', $url, $matched); return $matched[1]; } $arr = parse_url( $url ); if ( empty( $arr['host'] ) ) { return false; } ...
1
bb8e8c548385872cb49ac4482b4f7a2e
21ad079e764c0ef3e532e28e790f17d2
Polygon for the bounding box of the analysis area
x0,x1 = self.ax.get_xlim() y0,y1 = self.ax.get_ylim() map_edges = np.array([[x0,y0],[x1,y0],[x1,y1],[x0,y1]]) polys = [p.boundary for p in self.m.landpolygons] polys = [map_edges]+polys[:] codes = [ [Path.MOVETO] + [Path.LINETO for p in p[1:]] for ...
1
b259b81bb38f5b74b99a0354c8a26be7
52c6ea700f32f5a53f54cd75c96512dc
天线控制
{ var r = HfrdApi.Sys_SetAntenna(device.DeviceID, (byte)(isOpen ? 1 : 0)); return r == 0; }
1
e2296a136490c115e6f011b604f355b8
fee2e9b27459e73383b790373669defa
GetInvoiceTemplates will get the list of invoice templates available to the user
String resourcePath = "v1/invoicing/templates"; String payLoad = ""; return configureAndExecute(apiContext, HttpMethod.GET, resourcePath, payLoad, Templates.class); }
1
a35d288e00035dd2a0c65c5a86a0d4b5
7fdad33b2134c4ae84d3dce9250469c0
Возврат к текущему уровню из меню паузы
public class PauseMenu : MonoBehaviour public void ReloadLevel() { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); Unpause(); }
1
2b9b603ea704b2c90914847b99f473ee
46b355c7df34d4b58eab6ec866425a83
Lấy danh sách nợ theo nhà cung cấp
namespace EStoreDAO public class myGiaoDichDAO public static List<GIAODICH> LayDanhSachGiaoDichTheoNhaSanXuat(int _iMaNhaSanXuat) { try { var Query = from _GiaoDich in m_eStoreDataContext.GIAODICHes select _GiaoDich; List<GIAODICH> dsGiaoDich = new Lis...
0
132a0cfa86d996699f873b199204ea9a
532d1cfd90b81fdfcc8fe6a32d72fcae
=========================================================================== DESCRIPTION This function backs up CCTRCH and TFCI tables. DEPENDENCIES None. PARAMETERS None. RETURN VALUE None. SIDE EFFECTS None. ===========================================================================
void arch_tcuninitialize(void) { }
0
8a84aa7f186813753af86423cad0c22a
7edf4837bbc7b841e2c29ba9e229969b
參數:要被複製的欄位ID,要被設定的欄位ID
class MyModel extends Model public function copyFields($oldId,$newId) { $tem = array(); $FieldInfo = D('FieldModel')->where(array('modelid'=>$oldId))->select(); foreach($FieldInfo as $key=>$value) { unset($value['id']); $value['modelid'] = $newId; D('FieldModel')->create($value); } }
1
ec84ef6eb2b15b360ba735e504d534ce
da0345869d2ecdba46ca088f3545bbd6
Print the package verison.
def print_version(_args): print(__version__)
1
6d2985feb0cbc2ed1b6d1df3790a48b1
fe6e021b3d6f9542ac80e45f6e06fbc3
给牌排序 从大到小
export class SelfHandcards public static sort(handcards, almighty) { return handcards.sort((a, b) => { if(a == almighty) return 1; if(b == almighty) return -1; return b-a; }); }
1
eb0d963541ddc812841f6e5392e2d251
9967ae3ee06a9348caa50c190de653cf
Función que obtiene la cantidad de labels de la explosion que se deben desplegar para cada direccion del plano de juego
endecagrama = 0 if pos_y == 162 : cantidad = 1 dif = 0 if pos_y == 170 : cantidad = 1 dif = 8 if pos_y == 178 : cantidad = 2 dif = 16 if pos_y == 186 : cantidad = 2 dif = 24 if pos_y == 210 : cantidad = 3 dif = 0 if pos_y == 218 : cantidad = 2 dif = -8 if pos_y == 2...
1
3e5735395b399f8366fbfd389c6f37f8
9a628dd9eb7b7a398ce81f75b7e96878
Function that reads CSV file selected in selectionbox
def pandas_reader_csv(file_obj): csv_data = pd.read_csv(CSV_PATH, names=colnames, delimiter=',') for index, row in csv_data.iterrows(): if row[0] == str("image"): continue if row[1] != str(0.0): list_MEL.append(row[0]) elif row[2] != str(0.0): list_NV....
0
8e9c09a31281f09012e315b27a0e5311
aea8e5920a4c321cdf495de7102a18b2
ボードにセットされているカードの数を返す。
num = 0 for v in self.alignment: for vv in v: if vv != self.NONE_CARD_ID_FLAG: num += 1 return num
1
72114197270cb5a123ff5bf9bbfff76a
710a8d9ab2cdb49449722d7aa1ac3fe4
公司管理加载招聘简略信息列表(非分页)
@ResponseBody public Object getPageList() throws Exception { PageList pageList = new PageList(); StringBuffer sql = new StringBuffer(); sql.append(" A.GUID,"); sql.append(" A.XH,A.XM,A.JG,A.SFZH,LXFS,A.YX,TO_CHAR(A.CJGZSJ,'YYYY-MM-DD')CJGZSJ,GL,A.PXXH,"); sql.append(" (SELECT MC FROM GX_SYS_DMB WHERE ZL='"+...
0
7c0d42f33414d087b3d1de67529af58c
94b999c49acde83ca987083c2f3b9e7a
exibe o salário anual.
class Employee1(object): def annualSalary1(self): return f'Total: {self.pay.getTotal() + self.bonus}'
1
afec58f9c004e246767265601de7185e
7f64c97e363481be9c862cd8d913183a
Surrounds the given text in the needed tags for italics text.
{ int index = text.IndexOf("<", StringComparison.Ordinal); if (index < 0) { return text; } while (index >= 0 && index < text.Length - 1) { text = text.Insert(index + 1, "i>"); int indexOfNewLi...
1
cb6fe68d3b709a77886af999416929b3
0099fe727931af0f033dd0fcd02c8b9e
Testing inviting a user when authorized user is not already a member
class TestAcceptInvite(APITestCase): def test_user_already_member(self): m = MembershipFactory.create(role=0, user=self.u) i = InviteFactory.create(user=self.u, organization=m.organization, role=1) response = self.client.post(reverse('resturo_organization_join'),...
0
3cc107bea5df6ddcd8566dc91b8aa02b
107a65a83ccaae7b331ea592aace3584
Emit the actual writing-back of a writeback.
public void doWrite() throws IOException { processOut(); bbout.flip(); sc.write(bbout); bbout.compact(); updateInterestOps(); }
1
077670f7147f8a7e92da49183f3e34eb
bb45a00dffbeebc1848f5648c6d43711
qq群设置
class Qun extends CI_Controller public function index() { $array = array(); $array['rs']=$this->apps->checkAuth('qun_qun_index'); $get_params = $this->input->get(); $array['params']['from_date'] = ''; $array['params']['end_date'] = ''; $array['params']['group_name'] =...
0
aceeff2348e0271cca8415f9f3494381
c9f0beff451b169e1f40964d18842da8
绑定下拉选择事件自动匹配相似表事件
function bindAutoMatchTableCheckBoxClick(){ $('#autoMatchTableSelect').iCheck({ checkboxClass: 'icheckbox_square-blue', labelHover: false, cursor: true }); }
0
b49bffd9fc8f5b8b17cc0eae10e45d54
f41cb494a483a94358193ad1dc01602e
set each element as empty
Set<Element>::Set() { head = NULL; length = 0; }
0
e7f0a2422b943a4aa8faa8615ba3954b
e941a4840a3d7241097317dd2e87cbb4
Ensure that we don't keep any references in case of the bootstrapped module is destroyed via `NgModuleRef.destroy()`.
export class MeetingSettingsGroupDetailFieldComponent extends BaseComponent implements OnInit, OnDestroy public override ngOnDestroy(): void { super.ngOnDestroy(); this.cd.detach(); }
1
9b51c7a9bb5ab1948fc7e50b182e4cac
02608ce24579bebece09a0c9457dc34b
Returns the description for this HTTP response code.
const char* get_http_status_description(http_status_code_t status_code) { if(status_code <= 0) return NULL; int status_family = status_code / 100; int index = status_code % 100; switch(status_family) { case 1: return get_info_code_description(index); case 2: return get_success_code_d...
1
f1fb23c136fbf6607f0bda0dfd00c9e2
0613b25b0fdf6abba6b817544becd10a
重新指派工单 POST /workorders/{id}/reassign/ { "user": 2 }
class ShippingStation public function orderUnassignUser($data) { return $this->curl->post('orders/unassignuser',$data); }
0
c7c24abf252ba96723d44f4d45583133
52eb3bad93db47a2215f2164f67b9e69
Determines the result of a bet using spreads
{ if ( CanGambleResult.CAN_GAMBLE.Equals( CanUserGamble( username, betAmount )) ) { Random rand = new Random(); double result = rand.NextDouble(); _userManager.SetUserLastGambleTime( username ); if ( result <= _winChance ) { _userManager.IncreaseUserCurrency( username, betAmount )...
0
9912781af2f055361b158e589fbddc81
0af88d0e3ab7d712178f561c3b9b834d
登録する店舗リスティング情報と同じ適用月のデータがあるかを確認
{ $ym = strtr($ym, '-', '/'); $db = array(); $db['select'] = $this->_db->select() ->from( array('tbl_analysis_member'), array( 'cnt' => 'count(f_year_month)', ) ) ->where('f_year_month = ?', $ym) ; $cnt = $this->_db->fetchOn...
1
81cb3aa1094fde8aaa7b6403b27b97c3
fd0f718d825a067ba741e5477a3ee4c6
Unsets the value of the '{@link mpia.schema.TypeMissionTransportTactique#getMasseMateriel <em>Masse Materiel</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
void unsetMecanismeTirMineMaritime();
0
8196045dc40b7d14f4b09f5d32a65cbf
f333f2dd29048956b1952d3eec8d8b92
No additional processing is required on inbox creation
static void MAMACALLTYPE zmqBridgeMamaInboxImpl_onCreate (mamaSubscription subscription, void* closure) { }
1
f053016f6a9445d60d6b87b6d211cf39
32e5ffa4cf2031f73a21a386dead808b
Returns the integer variable which mantains in memory the position in the combobox of the range of prices searched.
class CipherInterface: def spinbox_used(self): return int(self.spinbox.get())
0
d4088bb8d4030100b4c79c7acec1ce93
a30105ab4d29526fd25454f492efd43a
Отправляет повторное письмо о регистрации учетной записи
{ DB::transaction(function () use ($request) { $this->commandBus->handle(RegisterCommand::fromArray($request->all())); }); return response('Письмо с потдверждением отправлено'); }
0
eb792f159bb62c0ecf00ff92debfd8e6
b1b11a46f6216b2299d05e626c7ff6e3
Render Weee tax attributes value without tax
class Mage_Weee_Helper_Data extends Mage_Core_Helper_Abstract public function getAmountForDisplayInclTaxes($product) { if ($this->isEnabled()) { $attributes = $this->getProductWeeeAttributesForRenderer($product, null, null, null, true); return $this->getAmountInclTaxe...
0
5633e641237ea8bba2e263abe48de90b
b63afcfabcc1392ea57840829365e9be
判断当前用户是否某个项目的主设并且还没录入卷册任务
class Dg_patient extends Entity public static function isImportProject ($patientid, $dg_projectid) { $cond = " and dg_projectid = :dg_projectid and patientid = :patientid "; $bind = []; $bind[':dg_projectid'] = $dg_projectid; $bind[':patientid'] = $patientid; $dg_patient = Dao::g...
0
7982c320690c2d43c9b66df2707a38d4
6f30048758231ba2b9f3a4ec1c8a837d
Sets the form id for the form this list uses (Set automatically if you passed a form into the head)
public class RegistrationForm extends BaseObject public void setFormID(Long FormID) { this.formID = FormID; }
1
3159c1734e8d451b07758acc068cf8fc
8244df95ddd3c070a89601e23526cffb
@brief UVC_Receive_FS Data received over USB OUT endpoint are sent over UVC interface through this function. This function will block any OUT packet reception on USB endpoint untill exiting this function. If you exit this function before transfer is complete on UVC interface (ie. using DMA controller) it will result i...
static int8_t CDC_Receive_FS (uint8_t* Buf, uint32_t* Len) { USBD_CDC_SetRxBuffer (&USBD_Device, &Buf[0]); USBD_CDC_ReceivePacket (&USBD_Device); if (*Len == 0x40) waiting_more_data = 1; if (waiting_more_data == 0) { VCP_Reply_Short (Buf, *Len); } else { if ((*Len + UserRxCus...
0
9b7bd6319631e4af002330eb908ee616
aadbb35167e2690ba00018ba79aace3b
#819 show list of Archive respondents
namespace FormClearance.Api [Route("api/[controller]")] [ApiController] public class FormClearanceController : ControllerBase [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] [ProducesResponseType(StatusCodes.Status400BadRequest...
1
0cfd9ed52ae46d823acbd9b048e6abed
d18be5bce3604cbbb033626589d4aadd
Inserts OtherRemarkContent
{ $this ->setRemarkLines($remarkLines) ->setIndex($index) ->setId($id) ->setType($type) ->setOp($op) ->setCode($code) ->setSegmentNumber($segmentNumber) ->setElementId($elementId) ->setRPH($rPH); ...
0
bfe30e84d8ecb5d474e022fcf36f44a9
0000c09d626fb6d10dba07abd4a65220
Get package type. Package type, one of 'parcel' or 'letter'.
class PackageInfo: def package_type(self) -> NebPackageType: return self.__package_type
1
7013bb28b4ef751a3cfce8f010a66ccf
a9cd263f9666fe7d86fb5696e4a5ebe7
Ultimos comentarios por usuario
def ultima_mencion(login): time.sleep(60) last_mention = login.mentions_timeline(count=1) for last_men in last_mention: last = last_men return last
0
33f1205dc9ca089e250bfe9b2642914c
8068cb9be7ed48dd44700658046ed5a8
treat as optional
class SequenceTestCase(basetest.BaseTestCase): def test_optional(self): p1 = Prod('p1', lambda t, v: t == 1) s = Sequence(p1, minmax=lambda: (1, 3)) self.assertEqual(False, s.optional) s = Sequence(p1, minmax=lambda: (0, 3)) self.assertEqual(True, s.optional) s = Se...
1
4221fae67c9ffe7fb14af92e4047e24b
d589e98048b55a533e528c721a6407b5
Utility to load one-factor-at-a-time sensitivity analysis archived data. Running sensitivity analysis takes a long time, so results are saved in archived files. In this file, the loaded data are plotted.
class FlowChart: def load_nessie_data(self): pass
0
0b4ecb05c30ea884b03e0539c22689d9
a33269f0bd9edb659ad7fef8ee1b1f2e
Function to quickly check if a certificate update is needed Only runs a small part of the checkgen_main script in order to test for certificate validity. This is used to ensure state in configuration management tooling.
https = Net::HTTP.new(default_url, 443) https.use_ssl = true https.verify_mode = OpenSSL::SSL::VERIFY_NONE if cert = https.start do https.peer_cert end end days_until = ((cert.not_after - Time.now) / (60 * 60 * 24)).to_i p days_until if days_until <= 0 puts "CRITICAL!!" elsif days_until > 0 && days_unti...
1
68b70f7b14876ccf2c029f9904b05986
8549d2a060359f537f4b585de6c60fa4
Gets the min height of the tree.
int getMinheight();
1
3d685d345a632a1f71345d1c4a915877
ac7604223bcfc367274dae023c7eda0e
Gets the visit and patient information using DOB and last name
List<PersonInfo> personInfoList = new ArrayList<PersonInfo>(); List<Person> personList = personDaoImpl.findPersonByName(firstName, lastName); for (Person person : personList) { PersonInfo personInfo = new PersonInfo(); personInfo.setFirstName(person.getFirstName()); personInfo.setLastName(person.getLas...
0
679816c6fe64ae4a48092388a74842a1
387f99484b3090a180bb08fd98e1bc4a
回调方法,从第二个页面回来的时候会执行这个方法
public class SecondActivity extends Activity @Override protected void onCreate(Bundle savedInstanceState) @Override public void onAnimationEnd(Animation animation) { initData(); }
0