query_id
string
corpus_id
string
query
string
code
string
label
int64
eccf6483f0c9ac51b6a15a9cb526e4ab
5bfe6718ae36633ac94a3fdfa8321614
获得指定客户下的事件预警分页列表
{ var lst = new List<MCustomerWarning>(); var sql = new StringBuilder(); sql.Append(" select Customer,AmountOwed,Arrear,Transfinite,TransfiniteTime,Deadline,DeadDay"); sql.AppendFormat(" from view_CustomerWarning where CrmId = '{0}' AND (Transfinite>AmountOwed or ...
0
1e880652b44ec8c59a55bf2a8db74b8f
50b6895becf6383c2fa9c1c512fe4912
Returns the meta object for class '{@link gemRBAC.AbsoluteTE <em>Absolute TE</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getFumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_TakeOfferedTokens_ActionActivation_AbstractSubStep();
0
dc4fef572c88b1576e744af1c77a59d6
b39687435c7396fc0767f5fda055ccf9
根据默认的映射方式向目标数据源插入一个经过实体映射得到的对象,(方法通过实体主键进行匹配更新)如果目标数据源已经存在与实体相同的值得记录则进行更新操作。该方法返回执行影响数据源的行数。
namespace SmartDb.Repository.NetCore object Insert(T entity, bool isGetAutoIncrementValue);
0
f157966952a3b489aede631fd60e42d0
8c0cb804a7df972eb6a6682aed43d9f4
是否开启重试功能,如果开启,可在Spark作业异常失败后自动重试。默认值为“false”。
void enableRetry(boolean enabled);
1
0ef84ee94f15a55a26f1af24cf672260
e9e8bc4e9b76b88fe7c99ff834483f52
Tests the tower classes
{ basicTower.GetComponent<Tower> ().range = 13; basicTower.GetComponent<Tower> ().damage = 35; basicTower.GetComponent<Tower> ().radius = 0; basicTower.GetComponent<Tower> ().fireCooldown = .75f; rocketTower.GetComponent<Tower> ().range = 10; rocketTower.GetComponent<Tower> ().damage = 70; rocketTower.Ge...
0
3be2618d5b66c5186fe1e0a376496f50
c027366e4d3f2ffc1ac7b035b26e6fa9
解析IPA
class PackageParse: async def __ipa_parse(file_path: str): ipa_file = ZipFile(file_path) ns = [n for n in ipa_file.namelist() if Regex.IPAInfoPlistPath.match(n)] if not ns: log.warning('parse info.plist failure: {}'.format(file_path)) return plist_path = ns[-1] ...
1
9e590fc5a3569d0cc7121ff9229eea76
fef8481dcd27ad4154cba5c2f45ed210
Returns list of URLs known to exist for given domain name because these URLs were crawled by WayBack Machine bots. Useful for pen-testers and others. Idea by Mohammed Diaa (https://github.com/mhmdiaa) from: https://gist.github.com/mhmdiaa/adf6bff70142e5091792841d4b372050
parser = HTMLParser(self.url) parser.feed(self.lines) return [ URL for URL in parser.urls if not self.hbaseInterface.URLExists(URL) ]
0
ff7ce8053ebbafd9f461250f29a5b812
ff410261f8fe8b097dca5b982dba0ecb
\brief Sends one byte to the USART1 Tx pin (Transmits one byte). Note that this function is blocking. If low-latency serial is needed, consider implementing interrupt services on the ATMega644's USART1.
void sendCh(char char_to_send) { putc1USART(char_to_send); while(Busy1USART()); }
1
f90050c09a9c74b70b4a5c98a6b752cf
575a277899280fd7315c0d8a9318cea5
Увеличивает размер массива, если массив полностью заполнен
void MyArrayList<T>::resize () { T *tempMass = new T[capacity]; for (int i = 0; i < capacity; i++) { tempMass[i] = mass[i]; } mass = new T[capacity * 2]; for (int i = 0; i < capacity; i++) { mass[i] = tempMass[i]; } capacity *= 2; }
1
62c473214e8eee3037938777c71a7efd
e97cda988fb1c3dcc1136537cf3c63b2
自动填充模态框
$("#checkModal_addbmid").val(modelInfo.bmid); $("#checkModal_addname").val(modelInfo.name); $("#checkModal_addenName").val(modelInfo.enName); $("#checkModal_addcode").val(modelInfo.code); $("#checkModal_adddescription").val(modelInfo.description); if (rowMessage ==...
1
7328877250449ee42053141d63baa71f
8f171658dba280b62ffe6296a8c7e850
Plots the kurtogram.
function stats_kurtosis ($a) { }
0
33947700799cceacef3a7a9abe0e8fcd
38349ace36a79f44db949d2097b0fcfb
Generic callback for any attribute/library/lwrp/recipe file throwing an exception when loaded. Default behavior is to use CompileErrorInspector to print contextual info about the failure.
class Chef class Minimal def cookbook_resolution_failed(expanded_run_list, exception); end
0
0b2d8ba0359c04d8d7b2c9eeb5a38306
0ff861c106793f80399dea928d172669
保存当前使用版本类型(老版财务还是新版OA财务)
@Controller @RequestMapping("/admin/data") public class DataBackupCtrl @RequestMapping("/saveOptType.do") @ResponseBody public Map<String, Object> saveOptType(Integer optType) { Map<String, Object> map = new HashMap<String, Object>(); try { service.updateOptType(optType); map.put("errCode", "0000"); } c...
1
7f2b84326131b1f5b0cc1384043c73e6
a19c63ec515c5d331037142950041b48
Getter for XlWorksheet XML.
class XSLTPage extends Page public function getXML() { return $this->_xml; }
0
d4fd9906f3d6d97a3855ea3e69ef3926
df2626ede66fc9714ceb6e55a8a3bd00
获取角色当前行会职位索引
class RoleSelectBar extends eui.Component public get index(): number { return this._index; }
1
0669ad9eebbce77a23aeb528603a360e
19eb53f154d60eccd2187f55fcfbc9e6
Reads a string from the binary stream. Expects an integer length value followed by the actual string of the stated length.
public function readString($bytesCount);
1
5b776022358d499ea481f74319ed7c26
131eb3ec327d9805affbc7ae550dfbf8
show the player on top of the map at its current location
namespace DotNetHack public sealed class Engine private void DisplayPlayer() { Display[Player.Location.X, Player.Location.Y] = new Glyph('@', ConsoleColor.White, ConsoleColor.Black); }
1
42d8e4bd723ad77b1f3a63f007e11a91
02dbfabb320c5ae28a380b15618a1acc
Two log lines refer to the same entry if they are from the SAME source AND if they have the same ORIGINAL log entry index.
public class INLogEntry extends BaseEntry implements LogEntry, INContainingEntry public boolean logicalEquals(@SuppressWarnings("unused") LogEntry other) { return false; }
0
7c205be7bf1d4811eb752189cf5810c0
a9037dcbe1e79ce7ce9e762d74b494c2
Determines whether the specified request has data.
namespace QuickPay.Infrastructure.RequestData public class PayData public bool HasValue() { return _values.Any(); }
1
3232263a2488c90c7accf1a1edb7b4a7
cbf51885cecb5dc71e468a0621555cf3
Initial page that should be navigated on launch of the application.
export class MyApp constructor(private platform: Platform) { this.rootPage = HomePage; platform.ready().then(() => { if (platform.is('cordova')) { StatusBar.styleDefault(); Splashscreen.hide(); } }); }
1
f3930d783c0a16aef650ba2f8ef2efab
31703ea49b2c363543a4e668abb8a81c
Clears the opcache if the passed token is valid.
function rocket_reset_opcache() { static $can_reset; do_action( 'rocket_before_reset_opcache' ); if ( ! isset( $can_reset ) ) { if ( ! function_exists( 'opcache_reset' ) ) { $can_reset = false; return; } $restrict_api = ini_get( 'opcache.restrict_api' ); if ( $restrict_api && strpos( __FILE__, $restric...
0
161085ca66fcd717e20db7a5a80f53f8
f97c1b984c932e07f8129d3d77e4009e
Ułamek łańcuchowy wysokości n przybliżający π/4 (z treści zadania).
double result = 3.0; int64_t sign = -1; for (uint64_t i = 1; i <= n; i++) { sign *= -1; result += sign * (4.0 / ((2.0 * i) * (2.0 * i + 1) * (2.0 * i + 2))); } return result; }
1
35a7e45d9477bb15c3ccd5c16a397544
27c4fa3dc311fc9234371aad5ab31ca7
standard UCB calculation
class Node: def UCT(self, root): if self.visits == 0: return 0 return self.reward/self.visits + 1*math.sqrt(math.log(root.visits)/self.visits)
1
99faa013a8758732a579d85a7256a771
932158d2fc419210aaaf1232126e0039
Sample code: Register existing SAP system as Virtual Instance for SAP solutions.
com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") .withRegion("northeurope") .withExistingResourceGroup("test-rg") .withEnvironment(SapEnvironmentType.NON_PROD) .withSapPro...
1
073ce2552ebf5e1ed46c6ff2711a3177
0fdf3c9cab33ded34387f9bb7cbbbc13
Test what happens if there is no space left (fwrite fails).
FiemapUniquePtr fptr = FiemapWriter::Open(testfile, 1099511627997184); EXPECT_EQ(fptr, nullptr); EXPECT_EQ(access(testfile.c_str(), F_OK), -1); EXPECT_EQ(errno, ENOENT); }
0
7fd0450e66b2c10154ed315a7e839701
35ea2e4b108201e24a197346083c5d17
根据城市id返回对应的二级城市id
conn = pymysql.connect(host=test_host,port=test_port,user=test_user,passwd=test_passwd,db=test_db1,charset='utf8') try: cursor = conn.cursor() sql = 'SELECT yc.city_id FROM yiyuangou_product_city_relation yp LEFT JOIN youpin_city yc ON yp.youpin_city_id = yc.id WHERE yp.yiyuangou_product_id = %...
0
aa1b2245e04535dbcbfebf56fb99e6d9
7034acde9e59af37ea5df9f9c34f3d6d
Get the integration config URL.
class IntegrationPlugin extends Model public function getUrl(): ?string { return $this->url; }
1
915b3aad90b47aa4ec9ede53231e8654
c778554f0fb8b92baa927a48b8e53aff
конвертирует таблицу Lua в словарь C# (чтоб можно было уменьшить зависимсть кода от конкретного интерпретатора)
namespace LuaInterface public sealed class LuaTable : LuaBase, IEnumerable<KeyValuePair<object, object>> public IDictionary<object, object> ToDict(IDictionary<object, object> dict) { if (dict == null) dict = new Dictionary<object, object>(); this.ForEach((k,v) => { dict[k] = v; }); return dict...
1
14a63cfc30355dc3aa594d1dbd8ffbf8
b30dbd0fc04780da102177e3b0efcc2a
Artifact ID for the stack deployed here. Used for pipeline order checking. :default: - Order will not be checked
class GuestPoliciesRecipeUpdateStepFileExec(dict): def artifact_id(self) -> Optional[str]: return pulumi.get(self, "artifact_id")
1
9a93f180e11ec020945db1ee5015141e
3c7b0bdbe152a8f722fd2acc11ee6df3
finding how many even numbers are in the array
var i; var temp; var count = 0; for(i=0;i<array.length;i++){ temp = array[i]; if(n<temp && temp%2==0){ count +=1; } } return count; }
0
7438d5c48434e0334042ae34761ec7e9
d54ef911e6132c8d54f855b9553c995a
Converts label counts to percentages.
proportions = {} for label in labeled: assert label.size == 1 key = label_to_index_map[label[0]] if key not in proportions: proportions[key] = 0 proportions[key] += 1 assert sum(proportions[key] for key in proportions) == len(labeled) return proportions
0
39495116e69115f6d7c62fa6c1ee1b81
f145a51c9139f4bdeeece50a58644fb8
удаляет предмет из группы
{ if(GroupsLushSubject::whereGroupId($group_id)->whereSubjectLushId($subject_lush_id)->delete()){ return redirect('groups-lush-subjects-panel'); }else{ return response()->json([ 'fails'=>true, 'title'=>'Gabim', 'msg'=>'Të dhënat...
1
2ee8a71a2f4cff31a4a8ef0ab541f43d
e61aed5c3c2bae6a07c76e8e4fd0dfbf
tests applying gravity to balls going up and down
{ int ground = 400; myCanvas.drawLine(50, ground, 550, ground); BouncingBall ball = new BouncingBall(50, 50, 16, Color.BLUE, ground, myCanvas); ball.draw(); BouncingBall ball2 = new BouncingBall(70, 80, 20, Color.RED, ground, myCanvas); ball2.draw(); boolea...
0
70f66113ddcff0ec213a35681e445159
92ed38504e0ada2344342bac5b98ee46
按订单id查询所有车票
@Select("select * from ticket where train_no = #{id}") public ArrayList<Ticket> queryTrain_c(@Param("id") int id) ;
0
4471ff51492a5007241a8b1becd1fe43
d4685fe68df01c6c6bca8fbcf90e4580
create seed data for three new users
class DatabaseSeeder extends Seeder public function run() { factory('App\User')->create(['name' => 'Ruman Saleem', 'email' => 'ruman63@example.com']); factory('App\User')->create(['name' => 'John Doe', 'email' => 'john@example.com']); }
0
3b850595350affd9c73731406afd463c
05f5cc601989f28741b20c1f2f6cc471
Initializes the guess array.
def init_guess_array(n): guess_array = [ [ 0 for i in range(n) ] for j in range(n) ] return guess_array
1
5d94768757b4cba919bc4825df5964c3
1e730649844307e70c6424e70d0e7a45
Change le mot de passe d'un auditeur
IJetonTO modifierMotDePasse(String username, String password, String newPassword, String jetonId, IApplicationTO callingApplication, IAnnuaireTO directory) throws AccueilClientBusinessException;
1
1bc1ee0dca8a06c42a069ea3f0c33a97
35fd30039f619ec95655689512981ebf
Fonction qui gère la création ou non de groupe + ajout d'un user dans ce même groupe.
if(!isset($array['idGroup'])){ $array['idGroup'] = null; } if(isset($array['groName']) && isset($array['fkUser'])){ $result = executeCommand( "INSERT INTO t_group (idGroup, groName, fkUser) VALUE (:idGroup, :groName,...
1
be69fcad8b43f4ceadf8ac05efbc8c68
7ce5066374ac084f9a0848ed07298b68
Locates a top level instance of Brackets already running
namespace MyNamespace [ComVisible(true)] [Guid( "ECE6FD4C-52FD-4D72-9668-1F3696D9A99E" )] [ClassInterface( ClassInterfaceType.None )] public class MyApplication : ICOMApplication, IDisposable public static ICOMApplication GetApiInstance() { Hashtable runningOb...
0
39dfc7b64e264070e613b7805593b8df
3343c063bdd95885303dd28f27fe2543
This method will take an Item object as input and use that item to display the appropriate text within a list item.
public void drawItem(Canvas canvas, GameItem item) { setupPaintText(); Bitmap appearance; String key; double xCoordinate = item.getXCoordinate(); double yCoordinate = item.getYCoordinate(); if (item instanceof Jumper) { key = "Jumper" + getCharacterColorScheme(); appearance = getCu...
0
e884c180ae99a6a020afe89345d5a813
1ba0c64493802e9e6572dcc7a08197e6
Successful checkout admin action
if($this->getRequest()->isPost()) { $validated = true; $orderId = '100000001'; if($validated) { } else { Mage_Core_Controller_Varien_Action::_redirect('checkout/onepage/failure', array('_secure'=>true)); } } else Mage_Core_Controller_Varien_Action::_redirect(''); }
0
9d801213931ceb7bbc373365d48cbc63
10093258f3f76b07ed1e4839f0bf46d7
Gets the block blobs.
namespace Mindfor.Pure.Services public class AzureWebFileProvider : IWebFileProvider CloudBlockBlob GetBlob(int fileId) { string name = fileId.ToString(); return _container.GetBlockBlobReference(name); }
1
dd678271bc0ce3f4b1046d926779b81c
cd1c296cc5458ea9951d9646e06daf0e
The `unexpand-all` command. Attempts to unexpand all expansions in the current file.
const editor = atom.workspace.getActiveTextEditor(); const path = editor.getPath(); if (path in this.expansions) { this.expansions[path].clear(); delete this.expansions[path]; atom.notifications.addSuccess('Undid all expansions'); } }
1
5be3f00ee038cbfb745f77e32192a26e
68f5f0436b4fb639a20af405ddd52130
set screen orientation and sleep mode
public class Launcher : MonoBehaviour void Start() { Screen.sleepTimeout = SleepTimeout.NeverSleep; Screen.orientation = ScreenOrientation.AutoRotation; Screen.autorotateToLandscapeLeft = true; Screen.autorotateToLandscapeRight = true; Screen.autorotateToPortrait = false; ...
1
f265bcbd9438f227085e9cce6ac381ac
1ff2fe34b84ae48765a4fb4ba4aa9c05
Gets the natural feature preference for the animal.
NaturalPerson getNatural();
0
5efbfe42891c9efdac28f598941a80ba
bf63ecc90876bbee4b71fe5eedbd294e
如果没有登录,则将弹到登录页面
public void onClick(View v) { if (!LoginModel.getInstance().isLogin()) { toLogin(); } }
1
00b2ef932f796dc2d19b01486d4a7986
a0c20bc2ec283c4c185619e428434310
sidUnitVec generates a unit vector from two angles This function computes the unit vector in siderial coordinates from a measurement of right ascension and declination. This is a "helper" function; it doesn't really need to be included in the class and could be moved to a seperate library probably.
unit_vector = np.asarray([np.cos(right_ascension) * np.cos(declination), np.sin(right_ascension) * np.cos(declination), np.sin(declination)]) return unit_vector.T
1
a92b431196d7ba9627d36b84325ae3c2
b0668b397dca149d6421054533898762
The target proximity placement group ARM Id.
return updateWithServiceResponseAsync(resourceGroupName, proximityPlacementGroupName, tags).map(new Func1<ServiceResponse<ProximityPlacementGroupInner>, ProximityPlacementGroupInner>() { @Override public ProximityPlacementGroupInner call(ServiceResponse<ProximityPlacementGroupInner> resp...
0
91ad4a53004fb0759d1f0bf698813e70
ac8e99aef720167cfe3c6c723dca2721
Runs the (hopefully) instantiated HttpMirror
public final void run() { final Injector injector = getInjector(); final Server proxyServer = injector.getInstance(TcpReverseProxyServer.class); try { final Future<?> proxyServerCompletion = proxyServer.start(); final Server controlServer = injector.getInstance(JsonRestServer.class); try { final Fut...
0
09eae37c8211e25e3a689b184623c54e
306bf972c0a93f5c86fe4db1aa516903
연결 리스트의 내용을 Head부터 시작해서 출력하는 함수
void PrintList(pNode pHead){ pNode tmp_node = pHead; while(tmp_node != NULL){ printf("%d ",tmp_node->data); tmp_node = tmp_node->next; } printf("\n"); }
1
c0a670b11a01aa61e26137c273c95e61
e5064af4b3ca13eda6d8efa428331e5d
Test rule 3: "All toilets must have a height of no more than 2 feet"
public void requirement1Test() { Matcher modMatcher1 = new TotallyModMatcher(3); Matcher modMatcher2 = new TotallyModMatcher(5); SimpleRule simpleRule1 = new SimpleRule(modMatcher1, "Fizz"); SimpleRule simpleRule2 = new SimpleRule(modMatcher2, "Buzz"); SimpleAndRule simpleAnd...
0
e24767cdac571449c835cea6ce6b75f7
b23edbd3bd7bc57ab678bb9f6ca004c2
Returns the absolute path to the folder that contains Fluid partial files
if ($this->partialRootPath !== NULL) { return $this->partialRootPath; } else { return str_replace('@packageResourcesPath', 'resource://' . $this->controllerContext->getRequest()->getControllerPackageKey(), $this->partialRootPathPattern); } }
1
d3516f22fc6c6b23267a01506db1fc9e
3f5e3e5442dabb7d2c0b19edb0177e21
В этом методе семья проживает год своей жизни
class Pet def passageOfTime if @well-fed > 0 @well-fed -= 1 @stomack += 1 else if @asleep @asleep = false puts 'Стривожено прокидається!' end puts (@name + 'господар я голодний! я тебе з\'їв!').red exit end if @lovelevel <= 0 puts name + ('втік ві...
0
1b6c018a0feadf094650b59fd434689a
00ba7848648953f15646ae153e482169
判断同笔订单是否存在相同的身份证号
var hasIdNo = false; if(insData && insData.length > 0){ for(var i = 0;i < insData.length; i++){ if(editIndex !== undefined){ if(editIndex != i && IdNo == insData[i]['IdNo']){ hasIdNo = true; break; } }el...
1
8245d4d4a4553913d37d3b7ce960db15
9162b7e4fcdd328c6723cb1c910033bf
@brief Get the last successfully received protocol.
QString AddExtensionDialog::getProtocol() const { return ui->protocol->currentText(); }
0
4b7333eb9188f53ea6ae01a9b1641527
fb88ce619af24eac4875e0bf4f561f83
Returns last response of Jolo API request
class Bitrix24API public function getLastResponse() { return $this->lastResponse; }
0
a95b2a1a81cf7411cc878e04f50de381
0943ee3f57c7f44ed9e8578abc86cae9
Fetches user data from toggl.
namespace Toggl.Services public class UserService public Task<CurrentUser> GetCurrentUserAsync(CancellationToken cancellationToken = default(CancellationToken)) => _client.Get<CurrentUser>(Apis.TogglV9, "me", cancellationToken);
1
e7f8cf6c4ec624604ab9292d29f725ae
8f1263790693689cea9b4c2af899e539
d'une liste de tweets qui sont des str, on renvoie l'ensemble des mots utilisés, privé de l'ensemble des stop-words
tweets = (self.nettoyer_tweet(tweet) for tweet in self.telecharger_tweets()) words = self.lister_les_mots(tweets, mots_max or self.mots_max) filtered_words = (word for word in words if self.filtrer_un_mot(word)) self.compteur.update(filtered_words) return self.compteur
1
819f9f829e914adfaf75865f9f43a6be
1b3e3658b393f0d64e9e1e55115239db
Returns the meta object for the containment reference list '{@link org.wso2.integrationstudio.ds.QueryParameter#getValidatePattern <em>Validate Pattern</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
org.oasisOpen.docs.wsn.t1.QueryExpressionType getMessagePattern();
0
0b36a1bf56ad796481a288be834ce80f
57784cbd794cbe28d277b2f7fc81d7e6
Function to calculate Pending Credits Used
creditUsing = creditAmount-receivedAmount; BigDecimal creditUsingBig = new BigDecimal(String.valueOf(creditUsing)).setScale(2, BigDecimal.ROUND_HALF_UP); mView.updateCreditUsing(creditUsingBig.toString()); }
1
494899f5d57ae86c2ffcd25ad5974fb9
86b3805a5880bf47e5db94bbb4a335af
Sets the name of the non-profit organization
public class NonProfitInfoPanel extends JPanel public void setNonProfit(NonProfit theNonProfit) { myNonProfit = theNonProfit; }
0
36181b3a19d2351a831b9aed385be400
a234615340457dbe9d7aeb1f13008afb
Checks if plugin configuration specifies at least one allowed group
class UnresponsiveIdsJobsUtils public function doesConfiguredUserGroupHaveValidEmail() { return !empty($this->getConfiguredGroupEmailAddresses()); }
0
846772316d92d77ae748f2651bda91bf
95619d541d7121617a1844ac2b20ef7f
Number of `interval_units` between charge dates. Must be greater than or equal to `1`.
class BTBillingPlanSummaryInfo(object): def interval(self): return self._interval
0
0ba9089f481902a7c44d83f7fe636b61
08b155575a786dca2d723ed206fb7c69
check if a segment is short
int is_short() { register int nchar; if (!(Tbl.str_flags & (STR_RANDOM | STR_ORDERED))) return (Seekpts[1] - Seekpts[0] <= SLEN); fseek(Inf, Seekpts[0], 0); nchar = 0; while (getc(Inf)) nchar++; return (nchar <= SLEN); }
1
294474bbf35f4055b77e90b1e820b4c7
6533cc44080c2464a147b0f7c5362700
Tests Phalcon\Html\Tag :: image() - params
{ $markup = '<message disable_text="1"><image-message><url new_tab="true">https://www.opendialog.ai</url><src>https://www.opendialog.ai/assets/images/logo.svg</src></image-message></message>'; $wrapper = OpenDialogMessages::createMessageFromXml($markup); $this->assertInstanceOf(ImageMessage:...
0
27ce5627374b39b7f8e5fc6091178b82
07a27b65aaff855d5105d3bd9ffd1224
Initialize the opacity dithering table. 12/28/97-DWM
void dith_setup(dim, nr, ng, nb, ptab) int dim, nr, ng, nb; pixel *ptab; { register int r, g, b, i; dith_nr = nr; dith_ng = ng; dith_nb = nb; dith_nc = nr * ng * nb; if (dith_nc > NC) pm_error("too many shades %d, max %d", dith_nc, NC); if (dith_nr < 2) pm_error("too few shades for re...
1
b3f161465cf96ee85cb8123a6358a596
c6b9401e038494ed26c28bd7e77312ed
根据设备ID获取故障检测内容下拉列表
namespace AhnqIot.Bussiness.Interface DeviceExceptionSetDto GetDeviceExceptionSetByDeviceId(string deviceId);
1
e67e6ec7b898f3c0c631f46dffe0f5e3
e96177bd61db8332b9a0bf92575987b1
Returns the modified Bessel function of the first kind. <para>BesselI(n, z) is a solution to the modified Bessel differential equation.</para>
namespace cv namespace dp_tracking static double modified_bessel(int order, double x) { const double eps = 1e-13; double result = 0; double m = 0; double gamma = 1.0; for (int i = 2; i <= order; ++i) gamma *= i; double term = pow(x, order) / (pow(2, order) * gamma); while (term > eps * result) { result += te...
1
e30213c4e47a8142a3a3a13761f4a895
60c53cbc3c26107884879dd58af8d0ac
Publishes the interaction parameters to '/jaco_control/force_interaction' topic.
void ExampleCPPFederate::sendInteraction() { RTI::ParameterHandleValuePairSet *parameters = RTI::ParameterSetFactory::create( 2 ); char xaValue[16], xbValue[16]; sprintf( xaValue, "xa:%f", getLbts() ); sprintf( xbValue, "xb:%f", getLbts() ); parameters->add( xaHandle, xaValue, (RTI::ULong)strlen(xaValue)+1 ); par...
0
0e20fc8164331ed74d35468a182ae182
5868c4b4dfe22970b0dfdce4207b9a8a
function changeCensus The change event handler of the Census selection. The user has selected a specific census. Initiate the load of the associated districts file. this <select id="Census"> ev Javascript Change Event
function chaodairenwu_change(Num) { console.log(Num); loadPopup_re(chaodirenwu_separate[Num]); }
0
784c7aef85c96d5825389e0a4deb2730
454f48fa257c0edf939bfb3c25ad9c69
Clear/remove a `async_with()` or `with()` **Task** _instance_ from context manager, and set to **not active**. DO NOT OVERWRITE THIS METHOD.
assert not self.cancelled, "Already cancelled" self.cancelled = True del self._target, self._args, self._kwargs, self._errback if self in _tasks: pos = _tasks.index(self) if pos == 0: heapq.heappop(_tasks) elif pos == len(_tasks) - 1: ...
1
4a6852082e1d093ae6459167573796c5
9f6d3fae6014608fdc8aefb50c3f3705
Fügt ein neues Programm zur Firma hinzu
{ $this->query_InsertSoftware->execute( array( ':name' => $name , ':last_mdfd_user' => $user ) ); }
1
c4e00fc8b5822f090a5c63d6fced692f
a94d607879d5a52954c238cfb73de2c8
Starts the process or subroutine.
namespace GeneXus.Programs public class br_procedureinsert : GXDataArea, System.Web.SessionState.IRequiresSessionState protected void GXStart( ) { E11302 (); if (returnInSub) return; }
1
fa385fb25a23a147a219c553ed8deb91
8c5d546e738dffb35f12a78338a8435d
根據多筆班級編號取得班級物件列表。
{ List<ClassData> retVal = new List<ClassData>(); QueryHelper qh = new QueryHelper(); string strSQL = "select class.id as cid,class_name ,teacher_name,grade_year from class inner join teacher on class.ref_teacher_id=teacher.id where class.id in("+string.Join(",",ClassIDList.T...
1
b17c4539edad076aaf490563f68b192f
63df89ac129037b6c97a613475555345
Clicks discover tab
class BrowserFrame(Frame): def discover(self): webbrowser.open('app.discoveryeducation.com/learn/students')
0
b908d2661ddf364426abdc257b10fbc2
1ca428215e37b97a28a96cf645036677
Me dice que letra es la que sigue para una lista de secciones grado
class Generador2(): def getAcompañantesDeLaLLave(self,key, gramaticaExtendida): return gramaticaExtendida[key][1][gramaticaExtendida[key][1].find(",")+1:len(gramaticaExtendida[key][1])]
0
26067498ab8920a7ba0788d2654c47dc
90e6baa30a76167563fcb8933e63a181
计算出距离最小的中心点 两个参数 center是k个中心点的list,vectora是要求的点
def find_cluster(x,center_list,num_cluster): dist_list=[] for i in range(num_cluster): dist=abs(x-center_list[i]) dist_list.append(dist) min_dist=min(dist_list) index_cluster=dist_list.index(min_dist) return (index_cluster,dist_list)
1
9bde03773f9d1b7802966affa37c3844
cfc201cfd7f3b62772457e90ee38fbe4
自機ヒット時にダメージを送る
public class EmenyInfo : MonoBehaviour public void BeHit(object[] paras) { if ((Collider)paras[0] == colliders[0]) { HarmPercent = 0.5f; } else if ((Collider)paras[0] == colliders[1]) { HarmPercent = 2.0f; } BeDamage = (int)(HarmPercent * (in...
0
7a0dcbbe1c89941f7d572eed45d22199
8b111edd739c6f3b6538956e82620a42
Returns true if the timer is set to repeat
public function getRepeat(): bool;
1
e9d46f70ba5cb9e2bbef5a8b50e5e4ab
948d3333e2d61631109a1bf93b04d726
Removing M2M table for field sites on 'Job'
{ Schema::table('sites', function (Blueprint $table) { $table->dropForeign('FK_SITES_ARRONDISSEMENTS'); $table->dropForeign('FK_SITES_REGIME_CONCESSION'); $table->dropForeign('FK_SITES_REGIME_LICENCE'); $table->dropForeign('FK_SITES_REGINE_ACTIVITE'); ...
0
3c553fdf61cce61a50ced21b1c37469a
0cff13c3528d02aa35e86b568eda07bf
JSON-encodes the object and wraps it in script tags
class SafeScript static stringify_(val) { const json = JSON.stringify(val); return json.replace(/</g, '\\x3c'); }
0
e6b0dca7b4046d9317c02d48b0552f0c
6bc4f1f6e6c12e11bc382e33207c2880
获取明牌数据
List<Integer> memberShouPai = new ArrayList<Integer>(); memberShouPai.addAll(role.getPai()); List<Integer> memberShowPai = new ArrayList<Integer>(); Map<Integer, List<Integer>> showPai = role.getShowPai(); for (Map.Entry<Integer, List<Integer>> entry : showPai.entrySet()) { List<Integer> listPai = entry.ge...
1
b822ddf3774d9b621afefb92cf36c6da
10fcac5591230e2b8956aba6892d7eb2
检查股票的最新除权时间,是否在一周内
end = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime('%Y-%m-%d') begin = (datetime.datetime.now() - datetime.timedelta(days=30)).strftime('%Y-%m-%d') try: data = ystockquote.get_historical_prices(stockid, begin, end) volumes = [] for d in data: volumes.ap...
0
3ead5003a7590d26b169d7e4729d72d7
c62bd8fc2c0560a753c4f7592b75d601
Gets a type metatable.
o = o or {}; setmetatable(o, self); self.__index = self; return o; end
0
9887b027534e224b1a27f3517963bfbd
4208e206c9ea28feae38eee10b7206d2
Calculate the assets the player owns. It also takes into account the money of properties and structures.
class generalAgent: def getAssets(self): counter = 0 for symbol in self.symbols: counter += self.fetchPrice(symbol) * self.portfolio[symbol] self.assets = counter return self.assets
0
d0784a948a12b9fb4c1716ef4d1a00c6
1afc70423d8a47b1978696c21109dd46
Gets a pointer to the MemberRef token for the member reference that is enclosed by the specified Type and that has the specified name and metadata signature.
namespace Mosa.Compiler.Metadata.Signatures public abstract class Signature public static Signature GetSignatureFromMemberRef(IMetadataProvider provider, HeapIndexToken token) { SignatureReader reader = new SignatureReader(provider.ReadBlob(token)); if (reader[0] == 0x06) { return new FieldSignature(rea...
0
cecef678fd01e64591075b12f7e083e7
31aeb9b857775c6beba0010d36aee537
The tooltip text to display when the date falls on a disabled date. Defaults to: \"Disabled\"
public String getPledgeServiceDateAvailableTooltipMessageKey();
0
3068a9714ec97d2008440f7010a05553
2ae0d80d90365a52f54996c204085bad
displays a list of tags for this group of anime, sorted by frequency of tag.
class TagsController def index @tags = Book.tag_counts_on(:tags) end
1
911d6f6094f9ad342410938d29b8e5a1
77926b8194142641134a2b5c2b19e875
删除物料BOM。
this.jdbcTemplate.execute("delete from MES_MD_L4_BOM_ITEM where SID = -111"); this.jdbcTemplate.execute("delete from MES_MD_L4_BOM where SID = -111"); }
1
a5614d772d225fba11f5f8a947738556
86f73152b5ac1a17a4526dcb334ebed1
Shows results from other pages selected in page manager.
{ UINT newPage = this->GetCurSel(); DisplayDialog(newPage); *pResult = 0; return TRUE; }
1
9c7577cd53df4a7acff884c691793ac3
41b901b4eeffca174c9b44f245a52eb0
过滤尺寸不符要求的图片
export class AppComponent implements OnInit, AfterViewInit async checkImageSize(items: ImageData[]): Promise<void> { this.apngFileSizeError = false; const { baseSize, errorItem } = await checkImagePxSizeMatched(items); if (!baseSize) { return; } this.imageInfo.width = baseSize.w; this.imag...
1
4988df84d5a0e7e309ccc0d58ea94cfb
21417df3672e9a8f6e540f11a25b06a2
умножение константы на матрицу
void matrix_const_multiply( double** res, double** M, double factor, long n, long m) { long i,j; for(i=0;i<n;i++){ for(j=0;j<m;j++){ res[i][j]=M[i][j]*factor; } } return; }
1
ffccd047fac16071669097c19d8fc8e0
8c4996c509d95cd80d44ece006110c96
Эта функция перемещает вершину из набора «открытых вершин» в набор «закрытых вершин».
{ for (int i = 0; i < 4; i++) v[p[i].X, p[i].Y] = 0; for (int i = 0; i < 4; i++) v[p[i].X + 1, p[i].Y] = 1; for (int i = 0; i < 4; i++) p[i].X++; }
0
514761ab6dda7bb62b65126a7392cf25
e3defce863de3d0d0eda26dabe01c848
Calculates the best column and best level to split data at to optimize the gini impurity
class DecisionTreeClassifier: # Tree initialization def best_split(self, dataset): temp_labels = list(set(dataset.price_range.values.tolist())) feature, threshold, gini_index, sliced_df = None, 0.0, 1, None for col in dataset.loc[:,:'wifi'].columns.values.tolist(): for val in dat...
1
e58e77187f99639cfa851ab8fe14dede
3af4b245f0567be10c27bb2d4f77e101
Test an instance of Availability
class MilestoneTriggerTestBase(MilestoneTriggerTestsMixin, FunctionalTestBase): def check_availability(self, cls=None, availabilities=None): cls, availabilities, _ = self.default_test_args( cls, availabilities, None) for avail in availabilities: self.assertEquals(avail, cls.valid...
1
054e34a6b9fda2bacabbc27a53504354
e44e6d8a8695b132ad50cdcc646330b6
Enables auto formatting the field value to match the pattern specified by {@link #setPattern(String)}
void setFieldNamePattern(String value);
0
1f723aee5c1b01922c8684648b48d4ba
b60163903131a3174eff882c1627ec46
Test send to many wallet to wallet
class TestWalletApi(unittest.TestCase): def test_send_max(self): pass
0
8cbf1c37ff59187fa9937ace42d0bf82
eceb659be086d943991ce294fe7bb5d7
クォータニオンを使って行列を回転する
Vector4 v = new Vector4(vec.X, vec.Y, vec.Z, vec.W), i, t; Invert(ref quat, out i); Multiply(ref quat, ref v, out t); Multiply(ref t, ref i, out v); result = new Vector4(v.X, v.Y, v.Z, v.W); }
0
7d9335cfed523a296575956b95d84f3a
85bd2a6b33c8f26bf5a5b4fa777504b2
Strerror translates an errno error code into an error message.
char * result = "matrix too large"; if (errno == 3) { return result; } if (errno > 3) { result = "hash table full"; if (errno == 5) { return result; } result = "wrong matrix size"; if (errno >= 5) { char * v1 = errno == 0x10001 ? "...
0
3be67bad498e130eee5673c5dfe5afb8
c94eae207304642e04b9900fa949f83b
Return inclusion instructions.
class Rasterizer: def inclusions(self): return self._scale_factor > 1
0