query_id
string
corpus_id
string
query
string
code
string
label
int64
0dfb4889b64ac4eb1005af70ce10bcd7
5048ba50db221db4a44bd2f56c12cb3e
Return the matching blueprint for a utility building
class GameLayer: def get_utility_blueprint(self, building_name: str): for blueprint in self.game_state.available_utility_buildings: if blueprint.building_name == building_name: return blueprint return None
1
57597ca74f02b7f0cfa8f7419e552d78
2670e33c91cc5a3e5e1435e8e458dd03
通过课程号得到课程的助教
namespace JHSchool.Evaluation public class TCInstruct : CacheManager<TCInstructRecord> public List<TCInstructRecord> GetCourseTeachers(string courseID) { List<TCInstructRecord> result = new List<TCInstructRecord>(); if (_course_teachers.ContainsKey(courseID)) { ...
0
45c6b8ac7ad5cde20828db9620f90b0f
dce684dad3864ba75746fe4ce3734db3
Transmit a notification via SNS
resp = sns_client.publish(phone_number: phone, message: text) if resp.error.nil? && resp.message_id respond_with_status :success else respond_with_status :unknown_failure end end
1
68300b599b5d3340d44e427e5614b9b2
69688bba4b651033e33dd9316a74aa45
添加游记回复
$tz_replay_content=$_POST['tz_replay_content']; $replay_user=$_POST['user_id']; $tz_id=$_POST['tz_id']; $posts_replay=new Model("Post_replay"); $data['content']=$tz_replay_content; $data['datetime']=date('Y-m-d H:i:s',time()); $data['replay_user_id']=$replay_user; $data['post_id']=$tz_id; $po...
1
c449060ed77216b07cb94e61947237d8
d9d7ec2dbe3d27a78dcdeaa3967ead0e
Gets all custom data items for the library.
public function getCustomItems(): CustomItemCollectionInterface;
1
25691e8a85647a8238804ec961f77a13
11b4e26e1066c64799acfc305748e454
Generates a string representation of a local geographic scope.
class ScopedName(GenericName): def __str__(self) -> str: pass
0
16620dcf58a389a96b5d3e672d913b89
440af781d880df5922c4a110c6146baf
根据键值对字典查询完全符合条件的唯一mProAtt对象
namespace PMSoft.ATTSystem.Lib public partial class bProAtt public List<mProAtt> GetByField(Dictionary<string,object> dic,string orderBy) { return dal.GetByField(dic,orderBy,string.Empty); }
0
9149ad5249e73fd5ebee6eec63077efa
a05480a337ebd43469f2572d5aee76ec
Initiates a drawing panel of proper size.
public class MatchPanel extends RenderedPanel implements Outputable, MouseListener, MouseMotionListener, BoardObserver, Requestable public synchronized void init() { double mainScale = (double) getPreferredSize().getHeight() / Const.PANEL_HEIGHT; mainContainer.setToScale(mainScale, mainScale); boardContainer = ne...
1
4fdd5e319901a2fc96a60138a94d384e
fc404957d0e53e02aab9d9160e022944
获得周K图的方法 会返回2014年到2016年这三年内的周K数据
headers = self.__generate_headers() params = { 'market': market_code, 'to': to, 'count': count } return requests.get(self.__server_url + '/v1/candles/weeks', headers=headers, params=params)
1
c1f7efb25a99f687a212155cd6b1dfca
ad9c7a28dd93bbd46eefbaf748fe2408
Returns the random damage done from this round
{ Random rnd = new Random(); double damageDouble = 6 * damageCounter; int damageInt = (int) Math.Round(damageDouble); damageInt = rnd.Next((damageInt - 3), (damageInt + 3)); damageCounter = damageCounter + 0.2; return damageInt; }
1
0815af3292f16d75f95569c9b91f0416
34ee2b886e720ea1b2fa57629097da9a
Test for when there are no albums in the database to return
self.create_albums() self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.user_token) response = self.client.get(self.url_3) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
1
a8996278a658bcc65874519958d57604
f1ad0d845ed65d830020c8adb5b887cc
生成查询结果列表
public class HbaseCRUD extends HbaseProxy implements Serializable{ public static class HbaseResult public List<Result> list(){ return m_result; }
1
c4a56543255e7db91fd3ab1b7d3eff77
345472e5b390970a4b393d3144b3efa1
購入タイミングが訪れた商品を購入する
public class StoreManager : MonoBehaviour, IStoreListener public void Purchase() { if (!this.IsInitialized()) { Debug.LogError("初期化されてない"); return; } Product product = this._storeController.products.WithID(this.productID); if (null == product || !product.available...
1
5b639523e83f38a01068d4f382f67624
ef10a862aff28cdb46b02c13562e4b03
Function for submitting an company opportunity to be edited in the backend.
try { await models.sequelize.transaction(async (t) => { await _deleteOpportunityDetailsRelated(currentUser, id, t) entity.updatedBy = currentUser entity.ownerId = currentUser entity.id = id await _createOrUpdateOpportunityDetails(entity, t, true) }) return await model.findByI...
1
5434379531d716c82424726055c8d3f6
c04b7ce6ae848f6a1d3c3442a60644b1
Gets the value of the frameNumber property. possible object is {@link Long }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ContactCustomFields", propOrder = { "conContactType", "conGender", "conPAN", "conPhone1", "conPhone2", "conPhone3", "conPhone4", "conPhone5", "conAddressLine1", "conAddressLine2", "conLocality", "conLandmark", "co...
0
9bf8fd14a4eb1449f866074f2df14f53
4ee7a4201aa6a02652ace04742a91d39
Test de l'agalité de deux arcs
{ if (!arc1.IsBound || !arc2.IsBound) { return arc1.Center.IsEqual(arc2.Center, tolerance) && arc1.Radius.IsEqual(arc2.Radius, tolerance); } if (useDirection) { return arc1.StartPoint().IsEqual(arc2.StartPoint(), toleran...
1
9585993e799119423fb54f1cc857167b
aaadf0e5cb2762242015236662fbbbcd
Metoda za instanciranje elemenata alatne trake
public class XVLCL05_Vlcek @Before public void setUp() { karoserie = new Obdélník(0, 25, 100, 50, Barva.ČERNÁ); zadni_sklo = new Obdélník(20, 35, 15, 30, Barva.MODRÁ); predni_sklo = new Obdélník(50, 30, 25, 40, Barva.MODRÁ); svetlo_leve = new Elipsa(90, 25, 10, 15, Barva.ŽLUTÁ); ...
0
f5eef65fb395d481c872ec54b6a13d1b
3323ba4d79ec8b8b614de377af402f8d
Returns virtual memory usage.
std::stringstream s; s << "/proc/" << getpid() << "/status"; FILE* file = fopen(s.str().c_str(), "r"); int result = -1; char line[128]; while (fgets(line, 128, file) != NULL){ if (strncmp(line, "VmSize:", 7) == 0){ result = _parseLine(line); break; } }...
1
270d3a31d160957b537289d380a2c384
415da7bef0949758a430c929da3d07d1
Sets the ngay tao of this dan toc.
public class DanTocWrapper implements DanToc, ModelWrapper<DanToc> public java.util.Date getNgayTao() { return _danToc.getNgayTao(); }
0
ef21ba040e0d2d5148f01452285aa753
e6e0c8b309d37123718e53d5b874f02d
Performs a single sonar reading, returning a measure of the distance to the nearest object in centimeters. The function will wait after the reading has been performed for long enough that it is safe to immediately start another reading.
{ _timer.Reset(); while (Environment.TickCount - _lastMeasurment < 60) { Thread.Sleep(TimeSpan.FromMilliseconds(Environment.TickCount - _lastMeasurment)); } _controller.Write(_trigger, PinValue.High); Thread.Sleep(TimeSpan.F...
1
35bfcc743de1db0b5c84688300f0f037
ccb40e727b5a4a31d4a64df5c289c08a
Retrieve a new bag containing items in both the bag receiving the call to the method and the bag that is the method’s argument
class Bag(Collection): def __or__(self, other): return self.copy()._ior(other)
1
b72e4d868436fef7bd0672050547a9f1
5f743df56b93fe4e55f3956cb85830fa
# Evaluates key detection accuracy with user adaptation.
trainspec <- train[folds !=eval(k-1),] specdt0 <- rpart(formula = spec, method = "class", data = train, cp = 0) xemin <- eval((fit.0$cptable[which.min(fit.0$cptable[,"xerror"])]) + (fit.0$cptable[which.min(fit.0$cptable[,"xerror"]),"xstd"])) specdtoptimal <- rpart(formula = spec, method = "class", data = train,...
0
0cb985b4b26cb41a350e6130a5cf1c52
08a245f9cbc55ff1f9681f27dbcb1fa7
Retorna as propriedades da classe que deverão ser consultadas de acordo com o filtro passado como parâmetro
public function getProperties($filter = null);
1
a8d81743a00d669b82422139adc4e905
4e343553e335bc9cfb8a5aafac1b0042
Runs the update query and fetches the generated keys
public final class SqlManagerImpl implements SqlManager @Override public <O> Tuple<Integer, O> executeUpdateWithGeneratedKey( final SqlStatement sqlStatement, final GenerationMode generationMode, final String columnName, final Class<O> dataType, final Map<Class, BasicTypeAdapter> basicTypeAdapters, f...
1
55be059d3821e4bf7e612f3e22b4038d
f6ef3a30b964e24348984c039cc84ac3
After successfully tweeted a tweet updates its record to show that we are done with this tweet
def mark_tip_done tip_id response = post("/tips/#{tip_id}/markdone")["response"] Foursquared::Response::Tip.new(self, response["tip"]) end
0
48e6aa3d9e65247640cfb72bb199456e
4e79511dc85e21529798091c966fc1b2
Starts the actor model.
namespace MLambda.Actors.Abstraction.Core IObservable<Unit> Start();
1
17e6e4f523e7c46be3fca37bc5e42225
3c9e29fc3b169724aa3634e0824d89d2
읽기 작업을 큐에 대기 시킵니다.
namespace N400.DataQueues public class DataQueue public DataQueueEntry Read(int wait) { return service.Read(nameEbcdic, libraryEbcdic, 0, wait, false, null); }
1
c49923caffe77aeb4f17116b9f8b6653
f50245f16960da6cc2240fef99d27ab9
leaving only those without significant inconsistency in reporting
exclude_idx = ((df_rates['bymisses'] > 2) | (df_rates['bxmisses'] > 14) | (df_rates['axmisses'] > 43) | (df_rates['ntrials'] < 120)) return df_rates.ix[~exclude_idx]
1
68ee0fcaaced1fb83d31595143744cf2
122d6aff029217f1360d446836eb13e6
Load the script required for video player.
{ $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $hwdms = hwdMediaShareFactory::getInstance(); $config = $hwdms->getConfig(); JHtml::_('bootstrap.framework'); $doc->addScript(JURI::root() . "/plugins/hwd...
1
4df75d50fc4068eb792bfd0e27c244fa
05165f1b3b4fdad3054639e80343ea04
Insert font link in the head section
class Fontawesome extends AbstractExternalPluginGlyph public function wp_head() { asset()->setInlineCss(".fontawesome{font-family:'{$this->get('font-family')}';}"); }
0
2a0662a8fca118181eb46fe86718854b
d2c6a49ce5ce2dc046434af7663ee31e
Loads a Java based IM(C/V) as specified in the given configuration entry from file and calls the default constructor.
{ if (name.endsWith(PROPERTIES_SUFFIX)) { load(new FileInputStream(name)); } else { loadFromXML(new FileInputStream(name)); } }
0
c9978c4a4cbc23d3867e0dd6cc443338
a5e584bbfad682b4eb2776635337fca6
Gets current effect time.
public class Trap extends Sprite implements Serializable public int getEffectTime() { return effectTime; }
1
409919e7303b22141c52f4c9f3220df5
b22ecd25c19fc813f9a36549c7e6e7a9
Retrieve the SCPD for a service and create a UpnpService from it.
class DescriptorStorage(object): def create_service(self, descriptor_file): if not os.path.isfile(descriptor_file): return new_service = Service(descriptor_file) if not new_service.content or not new_service.id: return if new_service.id in self._services: ...
0
c805becda16583a6563d5eb074afe453
78ebe99f728f9ac9a49624d3134a2ca4
This method used for destroying player object and showing game over panel
public class InformationPanel : MonoBehaviour public void GameOver() { infoPanel.SetActive(true); playerSprite.SetActive(false); playerLivesObject.SetActive(false); worldObject.SetActive(false); gameOverObject.SetActive(true); SoundPlayer.instance.PlaySound(Sounds.GAM...
1
8c297a4914d000c9233f2799f36af373
3b0c6083549fea6387f871f5640b187a
Adds a referential integrity rule that will be used on insert/update attempts.
namespace MigSharp IAddedUniqueConstraint OnColumn(string columnName);
0
54924c712d453aabef2bd9a0569e984c
a983e51a9d4385c9bf6d9eec5ab73f9b
コンポーネントが見つからない場合、例外を送出すること
public class YasdicContainerTest @Test(expected = BeanNotFoundRuntimeException.class) public void testGetBeanNotFound() { container.getBean("someBean"); }
1
d39a3b6db444fcf8649995e0cfc0c9d7
4f54f906024380e2b40a57be287f9b1e
convert wofid integer to array of path components
public class Path Vector<Integer> path(int w){ assert hasPath(w); Stack<Integer> s = new Stack<>(); int p = w; while (p != -1){ s.push(p); p = from[p]; } Vector<Integer> res = new Vector<>(); while (!s.empty()){ res.add(s.pop())...
1
3d0559ea0a7852951acc9b495a40c741
b5ad1cac358b67773f40d61a168498b4
store current error_reporting value as we may change it in a test
class ParseTest extends TestCase public function setUp(): void { error_reporting(-1); }
0
70eb61993bf9fcef9edf4ee2542fb19a
5d683baf5ca19230dd59d0cd80b9976a
Gets an IP address by its ID
abstract class ExpController extends LoginController public function getIP($expId) { $this->virtual->getIP($expId); }
1
96958d2b7c21f2d87317bc8ee265b832
e8e09f4d2f4c136bd732d19ec0bde3c7
团队投注列表
{ $pageSize = 10; $bets = Bet::where('game_id', $game->id) ->where('user_id', Auth::user()->id)->orderBy('created_at', 'desc'); if ($request->has('today')) { $bets = $bets->whereDate('created_at', date('Y-m-d', time())); } $all_count = $bets->count(); ...
0
88637298629af1390b9449c40d130eb0
2c0c1308d6298e24f1fb836920c4412a
Returns filtered data value for the specified electrode (0-11)
error = false; switch(electrode) { case ELE0: return static_cast<ChargeDischargeCurrent>(read8(REG_ELE0_ELECTRODE_CURRENT)); case ELE1: return static_cast<ChargeDischargeCurrent>(read8(REG_ELE1_ELECTRODE_CURRENT)); case ELE2: return static_cast<ChargeDischargeCurrent>(read8(REG_ELE2_ELECTRODE_CURRENT)); ca...
1
365f6a4b1bae5a2553bcc938d997ab1c
28b7433d38c28f82271ee40bda9353f9
更新obox配置信息
{ if(getoboxcode()==false) { setoboxcode(true); o->show(); return; } else { setoboxcode(false); o->close(); o->show(); return; } }
0
d9d6b5b107495ff68070ab077c59f992
f7a655afe75ec8f40493c2b483eba1cc
check what happens when we just press enter
send_keys("\t \t \t a~\tb\nc", pause = .5, with_newlines = True) received = self.receive_text() if sys.platform == 'win32': self.assertEqual("a\r\nb\r\nc", received) else: self.assertEqual("a\nb\nc", received)
0
e1a97b049cbb7b5340408b199ab37113
c63d78371186bfe3434dbf4427945b35
Update the vocabulary's metadata for scheduling purposes
new_vocdat = { 'name': vocdat['name'], 'init_date': str(datetime.now()), 'description': vocdat['description'], 'app_data': vocdat['app_data'], 'cycle_data': vocdat['cycle_data'], 'scoreconfig': vocdat['scoreconfig'], 'term_queues': { score:[] for s...
1
6e754dc9b214e4a24118f4a02f16ec43
0d27d79b558907ce9df6ed2dfdb70581
功能:获取View资源列表
public class FindViewByMeXmlAction extends AnAction private void getViewList(AnActionEvent event) { PsiFile psiFile = event.getData(LangDataKeys.PSI_FILE); Editor editor = event.getData(PlatformDataKeys.EDITOR); if (psiFile == null || editor == null) { return; } Strin...
1
2e80c637e0f2a9705830e05b0c8fbd72
78732686d5e497641d11fd8834d6426c
删除无序顺序表L中在给定值s与t之间的所有元素
{ int i, j; if (s >= t || L.Length <= 0) { return false; } for (i = 0; i < L.Length && L.data[i] < s; i++) ; if (i >= L.Length) { return false; } for (j = 0; j < L.Length && L.data[j] <= t; j++) ; for (; j < L.Length; i++, j++) { L.data[i] = L.data[j]; } L.Length = i; return true; }
0
bcf909d9db9c5c7e1fbb5bdba1bbe072
6d27daa7ce13776bb7b78eda0fb9fbb6
Checks to see if TalkBack is currently enabled
namespace OrbitaTech.TTLockUnity bool IsBTEnabled(AndroidJavaObject context);
0
bd982cf551f56160fb8afc2ca24cbc16
9e8e264dde09419e7f8d5bd862b618ac
toggle model status (active - deactivate ).
inline void mmToggle() { mmActive() ? mmPause() : mmResume(); }
0
267a36a1c57c37f601f862f2024e9328
2ffbe11271cc7a550049310534a9be93
Deserialize tensor to picklable python object.
def _serialize_tensor(value): return tf.io.serialize_tensor(value)
0
02b5b77d56e2e908c105f7d5a6786828
bf9f219b82d651c8dc8e0305f81be31a
muestra todos los domicilios
class DomiciliarioController extends Controller public function index() { return view('domiciliary/detallepedido',[ ]); }
0
4c42287a1e4adc4a0544b31763426521
c6035f0afdd1a8a1f8dc70e64595689e
Comprueba si el nodo pertenece a una columna sin referencias a su tabla.
{ foreach (var col in other) { if (this.GetAssociatedNodeValue(col) != -1) { return true; } } return false; }
0
1cc9774cd731c797bb967d39097304e5
1aeb9009af3ee071d61257cc2ee321b4
Search lucky draw by phone and receiptNo
class Draw extends Publics public function getLucky(){ $award_level=input('award_level'); $get_lucky_count=input('get_lucky_count'); if(session('screen_id')){ $list_lucky=model('screenDraw')->getLuck(session('screen_id'),$award_level,$get_lucky_count); model('screenDraw')...
0
c53a40773aa1e96bf3951263f6462e45
ff79eaed009fc43b096f5ad3c02fa83e
批量申请好友
class FriendController extends BaseController public function actionBatchaddFriends() { $mobile = RequestHelper::post('mobile', '', ''); if(empty($mobile)) { $this->returnJsonMsg('604', [], Common::C('code', '604')); } if(!Common::validateMobile($mobile)) { $t...
1
23eff5b47f15d678ca75a1a2341390a5
2c69f44fc6a5a869662399d692bfc4cb
Return y position of AlumBox bottom right corner.
class TargetPos: def right_bottom_y(self): return self._right_bottom_y
1
d61c333898d5b674e5d01a88b8f401ae
2f9203ae1d16ae2c3b243892c243912f
Serializes the specified <see cref="T:System.Object"/> and writes the XML document to a file using the specified <see cref="IXmlWriter"/>, XML namespaces, and encoding.
{ var xmlSerializerNamespaces = new XmlSerializerNamespaces(); xmlSerializerNamespaces.Add(String.Empty, String.Empty); using (var writer = StreamWriterHelper.NewLeaveOpen(stream)) using (var xmlWriter = XmlWriter.Create(writer, xmlWriterSettings)) usi...
1
8a5c9607ca812051526e93836820b565
0b054d689bdf76e37ed257925a1a245c
This receives the keys from your keyboard and you can type until you want to send by pressing the enter or return key
class MyWidget(QMainWindow): def keyPressEvent(self, event): try: if event.key() == Qt.Key_Return: self.send() except Exception as E: print(E)
1
9527873a48bb3226e7d6ee2d69c1c89e
b635853b3d95a5c8410e70851001a42b
A test with the following structure. The OpSelectionMerge instruction should be removed. loop header | | s.header || block | | | | | | ^ (to loop header) s.merge | | | / loop continue target (unreachable) loop merge which becomes: loop header | | block || block | | | | | | ^ (to l...
let _ = env_logger::try_init(); let context = fake::Context::<fake::Device>::default(); let signature = ir::Signature::new("empty"); let mut builder = helper::Builder::new(signature.into(), context.device()); let d0 = builder.open_dim_ex(Size::new_const(4), DimKind::LOOP); builder.mov(&0i32); ...
0
b1dff6ee77521a56623fb86a8da2b71b
ea52664a9a42f93ccb2c2194e25b9d2f
Add a view that returns pages and HTTP operations as JSON.
class AddressController protected function makeView(Request $request) { return new JSONView(); }
1
a1b9f7334df6622c3dddc22e5a3bdc7a
2451d362011ea3bf6fe314a6656124b8
Check if the current player has sufficient money to buy a vowel
function checkVowelForPlayer(personPlaying) { $points = $('#playerName' + personPlaying).find('span').text(); if ($points >= vowelCost) { $('#playerName' + personPlaying).find('span').text($points - vowelCost); return true; } else { return false; } }
1
bf069df0fd253cb65bfc313e208d0531
7cc34c0106001dd34bb178783268c68c
Test renaming when old and new names are the same.
string = write_rpc_request(1, "initialize", {"rootPath": str(test_dir)}) file_path = test_dir / "test_prog.f08" string += rename_request("str_rename", file_path, 5, 25) errcode, results = run_request(string) assert errcode == 0 ref = {} ref[path_to_uri(str(file_path))] = [create("str_rename"...
0
84fe06ec72e67ca261cb1ee3cc79ba5f
3362b4534295fc228184878bf21021d2
Возвращает инфо о студенте по id
class ProfessorController extends Controller public function getInfoOfStudent(Request $request) { $validator = Validator::make($request->all(), [ 'std_id' => 'required|exists:students,id' ]); if($validator->fails()) { throw new NotValidatedException($validator->err...
1
1bd0209b264a521f122dd009c02d708e
378af0df3c32bd99252d94391c1f510d
Encodes the provided device descriptor as text written to the supplied buffer. with the number of characters written to the buffer. text description.
namespace nl namespace Weave namespace Profiles namespace DeviceDescription WEAVE_ERROR WeaveDeviceDescriptor::EncodeText(const WeaveDeviceDescriptor& desc, char *buf, uint32_t bufLen, uint32_t& outEncodedLen) { WEAVE_ERROR err; TextDescriptorWriter writer(buf, bufLen); err = writer.WriteVersion(); Succ...
1
02241b9b119f20ef751a95d16ab7b84c
292c47b0bcdecde4254a40f32cf08af6
Adds the prologue instructions.
class Program(spe.Program): def _synthesize_prologue(self): self._prologue = [self.lbl_prologue, x86.push(rbp, ignore_active = True), x86.mov(rbp, rsp, ignore_active = True), x86.push(r15, ignore_active = True), x86.push(r14, ig...
1
b20d1628ea64e18606a82b75ad59d1cd
0e2d8ed8b8da0c34aef3ec90d4059130
store a secret and return its identifier
function StoreSecretService(data:StoreSecretRequest, auth?:Authorization):Promise<StoreSecretResponse> { const config = { data, method: 'POST', uri: `/v1/${ endpoint }` }; return Api.call(config, auth); }
1
e2d3b6ec69217018b45c5814acf2c0f6
d4c062c63591e43b3ed5b664ecf5caed
Get the Coffee bean's name
string& Bean::getName(){ return name; }
1
c5fc8e356f04cc7bb4fa437e0abed940
7ca4a3257b8085a56a23cb80a20dd2eb
Test the utility function that creates paths for terms.
term_list1 = 'Double dopaminergic thistle' term_list2 = 'completes herbs textures topical' self.build() model_input = self.genr_input(term_list1, term_list2) print(model_input)
0
4e00d6339f8f62ad1c572e948b287fda
95d0eaebef9296c106af39348a80d45e
Validates that the argument firstName is not empty, throws an IllegalArgumentException if it is.
public void testSetFirstName_1() { CustomerTO customerTO = new CustomerTO(); customerTO.setPhoneNumber(""); customerTO.setLastName(""); customerTO.setEmailAddress(""); customerTO.setFirstName(""); String firstName = ""; customerTO.setFirstName(firstName); }
0
f28e46c35f0f77506e84c02ff76e6ed8
145a0f0dc293a9d84dab0b8e185d0a1b
Sets the value of the SO_RCVBUF option on the socket.
int s3::ips_socket_set_recv_windowsize(const int fd, const int recv_win) { #if defined(WIN32) || defined(Linux) || defined(QNX) || defined(Darwin) || defined(__AVM2__) int value = 0; int before; #ifdef WIN32 int len = sizeof(int); #else socklen_t len = sizeof(int); #endif if (!(recv_win < 0)) { #ifd...
1
8b91e31dd61eadc3ee0b01bdd17975ea
69f9d5fcc9a09f81acfe7931db9b87d6
Get an instance of {@link coffeetable.datastructures.web.HtmlTable}
public final class HTMLTableService public ExcelTable createTable(String path) throws IOException { Document document = loadDocument(path); Elements tableRows = document.select(DATA_TABLE_CLASS); return buildTable(tableRows); }
0
9cd8d9f8c8f3df0f39d318f0e39ac483
b3a4089f7b692c78c5dc27929de3eeb2
Generate YLM's API URL for slider images.
$key = get_option( Settings::GOOGLE_APIKEY ); if ( empty( $key ) ) { return ''; } if( ! empty( $args ) ) { $args = array_map( 'absint', $args ); } foreach( $args as $key => $arg ) { switch( $key ) { case 'zoom' : $this->params->setZoom( $args['zoom'] ); break; case 'height' : ...
0
e7a30013b0d60f0e8115a67109052f2e
b4c2d3204804d446f0dd3e9f9b1c001e
This is a paginated call to list linked accounts that are linked to the payer account for the specified time period. If no information is provided, the current billing period is used. The response will optionally include the billing group that's associated with the linked account.
class Client extends \NxSys\Library\Clients\Brex\API\Payments\Runtime\Client\Client public function listLinkedAccounts(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \NxSys\Library\Clients\Brex\API\Payments\Endpoint\ListLinkedAccounts($queryParameters), ...
1
0a2a20b47cd0bcad0e8d9283f7b5e4ff
781b5ef6a588439432349d5d53666171
結果ビュー表示イベントを購読する。
namespace Title public class TitleGroupPresenter : // MonoBehaviorを継承する MonoBehaviour, // Initializeメソッドを持っている Initializable, // 上位のステート変更に対して呼び出し可能 IStateChangeable, // GroupStateに関するステートマシンを受け取り可能 IStateMachineInjectable<GroupState> private void SetV...
1
a45407c904c0b8fb3ecd3951ad7868ae
25c76442294b0a9326a8bf111c4ac081
通过文件生成图。
InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows);
0
977db5842e3d5ced38dc528e48e13f30
4e6a927a1809b419d04a4985a74c2fb7
Sets the lower symbol.
@Entity @Table(name = "COPQTCDP") public class CODecisionParameters extends BaseAggregateRoot<Long> public void setLowerSymbol(String lowerSymbol) { this.lowerSymbol = lowerSymbol; }
1
28e03de8eb8687835a0ef45b40cac8d2
122382dbf0d283a4f69305a424b4b196
Get a label and remove all line breaks:
{ $break = "\n"; $var = preg_replace('#\<br( /)?\>#i', $break, $var); return strip_tags($var); }
0
41d3588d83a57d45ca99d2fa603330c4
003aad0d1fec50ebffbc1c1cce27f53f
Utility method to explicitly define the name of the CSV file to be sent to the user when he requests such format. The name is composed as an underscore-separated list of tokens, the first one being the controller's +action+ that is handling the request and all the remaining ones composed from the method arguments.
class Klarna_Kco_Model_Api_Rest_Client_Request extends Varien_Object public function getFullActionName($delimiter = '_', $allowNumeric = false) { $actionPath = $allowNumeric ? $this->getUrl() : array_filter( $this->getUrl(), function ($v) { ...
0
37af87d24c4b7353ab7b0ac3d07ff932
03426068b28677ed7e3475be9b9066b7
Regularly add voices to scene depending on app's role
if self.sceneRoleLay == nil then return end if roleVO.type == SceneRoleType.PLAYER and self.maxPlayNum > 40 and roleVO.id ~= GlobalModel.player_id then return end self.sceneModel:AddSceneObjVO(roleVO.id,roleVO) self:addRoleModel(roleVO) end
0
86ad94482beaf3626588926bc47871f3
4694c43ec64faace0ea0cfa56b823e41
update the master list object counter after new data is loaded
public class MasterServerInterface : MonoBehaviour void Update () { if (hostUpdated) { hostUpdated = false; hostList.Clear(); } }
0
7d95258e21ddf84cd4e13eef639cf620
9b4b43b2d76c8c92d9c4c6ed595d7bfa
Callback function from object search box. Sets the post_id for the object.
function redirect_obj( oEvent, oUrl ) { if ( /obj=(.+?)(&|$)/.test( location.search ) ) redirect( oEvent, oUrl ); }
0
7f1e0fe4bc14c498f5200a2688cbae15
346f94c479511fe73513508e607af326
Funktion um BusinessObjects eines Types aus einem ElementsContainer zu erhalten
let bo = getBusinessObject(element); Object.keys(properties).forEach(key => { bo.set(key, properties[key]); }); }
0
673a7f8ce49757ed970d027794a939cd
fe2a1ea1ee7aea540edd8b86931b0ff8
read data from MCP3008
uint8_t temp_h, temp_l; spi_select_mcp3008(); spi_rw(0x01); temp_h = spi_rw((0b1000 | channel) << 4) & 0b11; temp_l = spi_rw(0); spi_deselect_mcp3008(); return temp_h << 8 | temp_l; }
1
0f373bc7af00c6bd6a8702bb59f99292
46c40aa4e6ac5d1c11165299c13f2e59
Navigate to login page with clearHistory
export default class ConfirmResetPassword extends React.Component onLoginSuccess() { browserHistory.push('/'); }
0
294ee36ba3145dcc2888e23b1303a128
53e0118a01249248ad55525eea53d987
# This draws a single Rank Abundance Plot
height <- length(set$d.min:set$d.max) * height/50 if(length(yr.lim) == 0) lims <- c() for(i in 1:length(set$calib$probs)) lims <- c(lims, set$calib$probs[[i]][,1]) yr.min <- min(lims) yr.max <- max(lims) if(BCAD) { yr.min <- 1950 - yr.min yr.max <- 1950 - yr.max } if(length(yr.lab) == ...
0
33f4cbd62a73438cf3cea15ec9171136
eb12f7cccba46989f03674e193a32f5d
将dataframe的date属性转为非格式化的月-日形式 eg:2020-03-06->3-6
def col_year_month(df, date_col): df['YYYY-mm'] = pd.to_datetime(df[date_col]).dt.strftime('%Y-%m')
0
d0eaef192f2f1219dc257260b7177ac2
8e34d3ebbf2cb39e5a91d285e2d71bac
functie voor het vullen van de interface van belangrijke stellingen
public class Beheervenster extends javax.swing.JFrame implements Filters public void displayStdp() { if (somFase1 >= 65) { studiepuntenJaar1.setForeground(Color.red); studiepuntenJaar1.setText("" + somFase1); } else if (!(somFase1 >= 65)) { studiepuntenJaar1.setForegr...
1
20030f02125a5efb5a3083b8953034ea
5081f99091abd01c4e295bed47476492
Count of individual messages within the thread that are visible to a given user
{ $messageRepo = $this->em->getRepository(MailThread::class); $count = $messageRepo->findBy([ 'username' => $this->tokenStorage->getToken()->getUser()->getUsername(), 'seen' => 0, 'orderId' => 0, ]); return count($count); }
0
4b05550e556bc39030db7d8bfde160e3
99168194687983d221b2565eab540747
游客按钮点击回调
self.btnProgress = self.btnProgress + 1 local btnTab = self.GudieUISceneTXT:GetData(5002,"BUTTON") local idTabd = string.gsub(btnTab,'"',"") local array = lua_string_split(tostring(idTabd),",") if self.btnProgress > #array then self.stepScene = self.stepScene + 1 self.management:sendGuideProgress...
0
8b92d051e4097d02be81d5045683729e
bdaf2509f75f7b7774f3782194d042af
あるドメインに関する仮想エイリアスを全て削除する <p>この関数は、 <i>実験的</i> なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。</p><p>この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。</p>
function vpopmail_alias_del_domain(string $domain): bool {}
1
be077c1e0230bfd84bb0c6a55cfada13
67f8533990986144f458ee86b9b665b8
palauttaa sen hetkisen equipatun aseen statit
public class Equippable public int[] getDefensives(){ return defensiveStats; }
0
31ee0146a4bf1ce16cab6c58f9c8cde5
abd929d954e9f03f848037b592db6b3f
метод который описывает алгоритм движения Пешки по игровой доске
{ XY kingXY; FiguresXY Figures; FiguresXY enemyFigures; Move enemyLastMove = board.LastMove; Color kingColor = board.NextColor; if (kingColor == Color.White) { kingXY = board._WhiteFigures.King; F...
1
7d53734c14959b9e7472c59b87299b0d
e51fdd3113b2bb802836f2d87489af30
清空右边接受方
class CommAssistant(QWidget, Ui_Form): def on_ClearReceiveButton_clicked(self): self.ReceiveEdit.clear() self.receive_num = 0 self.ReceiveNumlabel.setText('Receive: ' + '{:d}'.format(self.receive_num))
1
bfa9932c52aec844f467b641473301e0
d573c33e1262c4ccc7b04a537a212b44
Pauses the kernel, all plug-ins running are paused
int sys_cpause(void) { struct container *c; char *name; if(argstr(0, &name) < 0) return -1; if((c = findname(name)) == 0) { return -1; } return cpause(c); }
0
0b5e1e0f2592eafb72ec964b5fe36576
e2793896d51c07ca9221e44048f1b372
Return a newly allocated counter-mode AES128 cipher implementation, using the 128-bit key <b>key</b> and the 128-bit IV <b>iv</b>.
engine, err := aes.NewCipher(key) if err != nil { return nil, err } ctx := cipher.NewCTR(engine, iv) return &_AES{ctx: ctx, engine: engine}, nil }
1
d9807257e95575406aaba7593cb4852c
80554f1e8fdc7529db5ef9a3e3802003
Provide backwards compatability with OIDs pickled with pymongo-1.9 or older.
class MongoIDIO(AbstractMongoIO): def load(self): return super().load()[0]
0
c32eb67de4ed906a0382a549d3f0ed29
0b50e2291ef5d1ff8591c4796cab3c52
Render a gradient rectangle.
function renderGradient( gl, { dataset }, { programInfoGradient, screenBufferInfo, textureInfo } ) { const uniforms = { color1: dataset.color1, color2: dataset.color2, color3: dataset.color3, color4: dataset.color4, }; twgl.bindFramebufferInfo( gl, textureInfo ); gl.viewport( 0, 0, textureInf...
1
ef66e2e944030004ef3ff4e4afa4a80a
24c58b20686869e70d6e5a2b9ee4964b
将日志写入数据库
r = redis_queue.RedisQueue('log') q = r.get() q_dict = eval(q) write_db = YMATOULOG(operater=q_dict['operater'],app=q_dict['app'],message=q_dict['message']) write_db.save()
1
d1efdc47cae8cc5476487216499b0dc5
b8334994ce74f89b2160997ad748e87b
Shows ImPlot style selector dropdown menu.
let dropdownContainer = document.createElement('div'); let dropdownTrigger = document.createElement('a'); let dropdownIcon = document.createElement('i'); dropdownIcon.className = 'large material-icons blue-text text-accent-4'; dropdownIcon.innerHTML = 'apps'; dropdownTrigger.className = 'waves-dark waves-ef...
0
47a2e549b775d1e9446f07e9edbd0156
f7c8fce7870e63e0d91dfd3ba031d4c8
Specialised observation type that has a measurement (value + uom) as result type
super(Observation, self).__init__(event.originator_id, event.originator_version) self._indicator = event.indicator self._dataset_indicator = event.dataset_indicator self._area = event.area self._uri = event.uri self._value = event.value self._year = event.year ...
0
4b92428c38357d4a43df8e82bb26fc2a
aafda78c8293a2a2661ecd50d174aba5
Vrati herni plan se symbolem hrace umistenym na dane pozici
public class Game implements IGame public GamePlan getGamePlan() { return herniPlan; }
0
0b737b56b8a3b836226e2b7f145e70ab
b5b1714a4c6a38ca1f6ea8c2c2de8e7b
Get the track index number with respect to the specified track type.
public final class SubtitleData public int getTrackIndex() { return mTrackIndex; }
0