query_id
string
corpus_id
string
query
string
code
string
label
int64
b603a191da33c1b4cf9ba952b01cc49b
3b554be6dd6b0ec956e44e8c2a7a81b7
Get the parent style id.
@SuppressWarnings("deprecation") public final class StyleResourceValue extends ResourceValue implements IStyleResourceValue public String getParentStyle() { return mParentStyle; }
1
943ff7c9269479e792c6b734c8be86f6
7b6cd332faebc9a57ffbb6f1f8e91b78
Getter du PR Extremité.
idx_limite = LitNumerote.LIMIT_NAMES.index(nom_limite) if idx_limite == 0: return self.get_premier_lit_numerote(LitNumerote.BED_NAMES[0]).xt_min else: nom_lit = LitNumerote.BED_NAMES[idx_limite - 1] return self.get_dernier_lit_numerote(nom_lit).xt_max
1
1f4829a37329fd32f3015cc5894e5a3e
72c49f7455bbf45876e32065b4ffbe4b
Check if the printer is busy
class Printer: def isBusy(self): return self.currentTask != None
1
e57e9c6aa465b8bd69242a9fda84dd20
7cdcd2b75e658e000c7de429510b48fa
R4スキル用・その職業でいくつ装備してるか
local count = 0; for tmpi=0, MAX_EQUIPNUM-1, 1 do local pEquip = self:GetAnyEquip( tmpi ); if pEquip ~= nil and pEquip.m_kind == kind then count = count + 1; end end return count; end
1
01c30ab6ef7b5173babf6cf69d92e121
725badabc3b896e8a4db557a02c578f6
获得距离目标坐标指定距离的范围(矩形)坐标
class GameMap static getRectangle(target: CharMonster, x: number, y: number): egret.Rectangle { let _x = target.x + (x - 0.5) * GameMap.CELL_SIZE; let _y = target.y + (y - 0.5) * GameMap.CELL_SIZE; return new egret.Rectangle(_x, _y, GameMap.CELL_SIZE, GameMap.CELL_SIZE); }
0
f42ef36a8c84f0eeb7a46e0f87d025c2
7e1b9e6e31d5792506c379e871d05525
chama a tela principal da plicação
namespace Certweb static class Program [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new TelaInicial()); }
1
47e2279e99e6a2fbe38958049441a6a5
9003faf31b635c47303e8e06c1c7ee11
Perform a move of a Xiangqi Piece from one location to another according to its piece type
MoveResult makeMove(XiangqiCoordinate source, XiangqiCoordinate destination);
1
d95b6ed32dedd48414511a98f1e95a5d
c6e2079a7dfadb9561fc36132b132205
获取芯片的类型
int CGimicUSB::GetChipType(ChipType* pnType) { if (pnType != NULL) { *pnType = m_nChipType; } return C86CTL_ERR_NONE; }
1
b42c08df5d30ea550e125431a595a1a2
db5677643ef3c1a20a533a36465af109
Test the loss function with gradient cache (loss2) against its naive counterpart (loss1)
class test_lstm(unittest.TestCase) : def test_grad_loss(self) : TOL = 1E-5 start = time.clock() self.one_layer_model.compile_grad_loss() test_lstm.one_layer_grad_loss_compile_time = time.clock() - start lstm_bh = T_lstm(self.nn,self.mm,np.zeros(self.mm),np.zeros(self.mm), ...
0
06113f1e2e359f314deaeae57367e4b6
b8191e38340e0cf09471239b9ec9f6dc
设置动画View的背景播放动画(帧动画)
mAnimation = animation; if (animation != null) { animation.setTransitonView(this); super.setAnimation(animation); } }
0
251fb1bc8569242ccf8aeb38e229913d
b4044e3519c01897eef9aaae290ae337
Gets the SSID. <p> Returns the service set identifier (SSID) of this AP.</p>
public class WifiOpenHelper public String getSSID() { return ((mWifiInfo = getWifiInfo()) == null) ? "NULL" : removeQuotas(mWifiInfo.getSSID()); }
1
6d7815fe02aa04bac1d3765d9fd1e787
e34ab6797d78f29795be9fd5dafe0e03
Starts the setting screen
{ mainSettingsMenu.SetActive(true); ResetButtonAnimator(); mainMenu.SetActive(false); if (_inputManager.GetIsUsingController()) { EventSystem.current.SetSelectedGameObject(null); EventSystem.current.SetSelectedGameObject(settingsFirstSelectedButton); ...
1
c117f0fadc20cdb0a9ea07e45d496ec0
761ca7ad5f6445a88d1f6d21afa1a4c0
Used to return directly what the weapon power up is, when a monster is defeated and the hero collects the power up
namespace Player class Player public int getWeapPow() { if(weap == null) { return 1; } else return weap.getPower(); }
0
c61ba81855e6f0d166fdbadcaa9c156c
be80c760568e8ec59ce0d4c6d132e16a
Navigates to Group Calendar sub-page
namespace Application_Green_Quake.Views.EcoActions.EcoActionsSubMenu [XamlCompilation(XamlCompilationOptions.Compile)] public partial class CommunityPage : ContentPage private async void NavigateToEnvironmentalGroups(object sender, EventArgs e) { await Navigation.PushAsync(new EnvironmentalG...
0
edfd6c76b8c18c039ca966af276a19f6
73e34f3259e642e46a06a45dd8af91d4
REQUIRES IMPL Add states to the machine with calls to AddState<>() When all states have been added notify the machine which state to start in with SetInitialState<>()
namespace XamarinCore.StateMachine.Interfaces void Initialize();
0
bdac06f908b35edc11f78cb01ac0b439
8db48229c8fe0cba863f6707c41dbd91
build service context object depends on the configuration setting.
namespace Dcubed.Sites.Web.Site.OrderForm public partial class Startup public void ConfigureDbContextService(IServiceCollection services) { Args.ThrowIfNull(nameof(services)); var useInMemory = bool.Parse(Configuration["AppSettings:InMemoryProvider"]); if (useInMemory) ...
1
246483469d3d5427278b98478374d64f
8387ba54a7f921f8d034d308e254fb1d
получить текущую дату, выраженную в секундах
namespace BMVE.Core public partial class Runnable protected int Datetime_GetCurrentSeconds() => DatetimeProxy.Datetime_GetCurrentSeconds();
1
d2ada8ef67568cef47cdf993530770c6
e4139b47392b4dc9e3e41a391620af03
透视投影和规范化矩阵
Matrix4 &mat=mProjMatrix; mat[0] = 2 * near / (right - left); mat[5] = 2 * near / (top - bottom); mat[8] = (right + left) / (right - left); mat[9] = (top + bottom) / (top - bottom); mat[10] = -(far + near) / (far - near); mat[11] = -1; mat[14] = -(2 * ...
1
834362e96336b6a4af8d7b76d39742fc
f71a6e30755db5ce39cc6533cf9ecbbc
Enables the input method. This gets called as part of VwRootBox::HandleActivate when enabling a selection.
void wgui_inputs_EMS_enable(void) { MMI_EMS_inputbox.flags &= ~(UI_EMS_INPUT_BOX_STATE_DISABLED | UI_EMS_INPUT_BOX_DISABLE_CURSOR_DRAW); }
1
f20117aa860fac02b8c7fd2663f4bc5c
563d6502fb91635cff2d84e2587d85ba
Utility for ignoring certain errors and returning a default value.
namespace Elect.Core.ActionUtils public class ActionHelper public static T IgnoreError<T>(Func<T> operation, Action<Exception> onError = null, T defaultValue = default) { if (operation == null) { return defaultValue; } T result; try...
1
fbf7fe674d8ce7fd8f874443d27baba3
a8af200597ce77d0692b37cb9f1937dd
# Find all rows where ANY numeric variable is greater than zero
for (i in 1:nrow(df)) { if ((df[i, 'col1'] + df[i, 'col2'] + df[i, 'col3'] + df[i, 'col4']) > 4) { df[i, 5] <- "greater_than_4" } else { df[i, 5] <- "lesser_than_4" } } df }
0
58e3f9b081f43ed4db62d552d1954ef2
0bb3aa9705a29561e27c1a1b33891083
================================================================================================================================================ 예약기본 VO 객체 초기화 ================================================================================================================================================
GsMessage gsMsg = new GsMessage(reqMdl_); paramMdl.setRsv150knDefDsp(__getIniDspName(paramMdl.getRsv150DefDsp())); int grpSid = paramMdl.getRsv150SelectedGrpSid(); paramMdl.setRsv150knDispGroup(getSisetuGroupName(grpSid)); log__.debug("paramMdl.getRsv150DispItem1() : " + paramMdl...
0
d65d178088490f88eeb701cd7ef71842
a7ca979de4361d0b5da6afb08efbe891
Returns true if the user has submitted a thread creation request.
class InputController boolean isValidThread();
0
40f993554e8bf1f57028bb612fd8b562
add87a3c0c47beff095d44439b007594
测试创建索引 - 映射对象
@SpringBootTest @RunWith(SpringRunner.class) public class ElasticSearctTest @Test public void testCreate() { elasticsearchTemplate.createIndex(Item.class); elasticsearchTemplate.putMapping(Item.class); }
1
ad72db412f66cde1e68c8d0d388e7bbe
27172a54135ff3231d6454fd61a1c036
make this node a leaf
public class TrieNode protected void setLeaf(){ this.isLeaf = true; }
1
03468a8ad568704596e4da31fe7ead7f
e1400d544a2122463c05e4f3b2761bb3
设置B变量测试
bool VarService::setgetSysVarB(ELT_CTX ctx) { int ret; elt_error err; int iValueArray[256]; ret = elt_set_sysvar_b(ctx,-1,100,&err); if(ELT_ERROR == ret){ qDebug()<<"Test Set B[-1] OK"; PRINTERR; }else{ qDebug()<<"Test Set B[-1] error. ret = "<<ret; PRINTERR; ...
1
f6d7d7f46a6e714144b72df3ad79c29f
2c3be962c604c1a53921a236d2ee381f
For the few ticks following a player trying to put a sapling on an invalid tile when there is another tree nearby, remove any too close hud messages.
{ int index = Random.Range(0, SaplingSpawner.Heights.Count); treeHeight = SaplingSpawner.Heights[index]; SaplingSpawner.Heights.RemoveAt(index); aSource = GetComponent<AudioSource>(); }
0
1dcd6daa6fba2a3f852f54ff5936d669
37d6a60fa8d83b1cf2f713a9d993a829
Удаляет указанный параметр.
public partial class ExpressionParameters : IEnumerable<Parameter>, INotifyCollectionChanged public bool Remove(Parameter param) { if (param is null) throw new ArgumentNullException(nameof(param)); if (param.Type == ParameterType.Constant) throw new ArgumentException(Resource...
1
b0ba57362e8f849ad7e86633a2851de8
751610590b7d164ad9e8aea9a5317b30
Launch accessibility scanner.
if (!isAccessibilitySettingsOn(accessibilityServiceName, context)) { val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS) context.startActivity(intent) } }
0
b5977bd89a39109f51fa0256947cb07a
2be120ff51a2a275dab7549556347fa7
Output to the console every timestep
static void output_to_console() { std::cout.precision( 3 ); std::cout.setf( std::ios::fixed, std::ios::floatfield ); std::cout << std::endl << "frame " << dt->getFrameCounter() << " ts " << dt->getTimeStamp() << " nhand " << dt->getNumHand() << std::endl; for ( int i = 0; i < dt->getNumHand()...
1
d389c30becec6ce58c9aa07937315910
a917901786a2e9a141fe89d528881a19
## This will return the set (cached) inverse of the matrix
getinverse <- function() m
0
587ef9236ff59554d9cd821478651ff3
8bfc0074e8c6ef748d97e2a0f899eb07
Add or remove items of the bottom navigation
public class MainActivity extends AppCompatActivity implements CategoryFragment.OnFragmentInteractionListener public void updateBottomNavigationItems(boolean addItems) { AHBottomNavigationItem item4 = new AHBottomNavigationItem(getString(R.string.tab_4), ContextCompat.getDrawable(this, R.drawab...
1
94583e246b9f14202a5afee4ab7ba7ec
298fd2f3fedad763d7452e38dd133375
引数に指定されたSQLファイルを実行する
class Model_Util public static function execSqlFile($sql_file) { $sql=file_get_contents($sql_file); $query = DB::query($sql); $result = $query->execute(); }
1
3f04382b8af5a97cb942aeb9a65c7244
5667e5d375c91392e781b90785be16c5
Loads Local & Online Payloads
function Load_Stock_Flow_Offline_Data () { document.getElementById("stock-flow-all-tbody").innerHTML = localStorage.getItem("bulbs_stock_flow_all"); document.getElementById("stock-flow-view-by-name-tbody").innerHTML = localStorage.getItem("bulbs_stock_flow_by_name"); document.getElementById("stock-flow-vie...
0
fa85e8901d6fa7f77a36db7117a6121f
5c2fed6f143cfdebc24f3da3e0056a10
On creation to actually set stack size
StaticStack::StaticStack() { size = 2; createStack(size); }
1
75594628652d7432f899c35afbdc777e
08ded0f6e31a6ad89d774b4c90f0d966
Returns TMDB ID of given movie.
class Movie(object): def get_imdb_id(self, title=None, year=None, tmdb_id=None): return None
0
fb519e87d41ffb2b06f2763abd9b9092
5c0fd01d488b18e51f09f56f3c6b73a6
helping function used in label_point_with_all_hypos function to determine whether data point is inside given circle
def isInsideCircle(img, centroid, x, y, radius): if (x - centroid[0])**2 + (y - centroid[1])**2 < radius**2: return 1 elif (x - centroid[0])**2 + (y - centroid[1])**2 > radius**2: return 0
1
7873962cc33a7c48d4dabd6216d17c62
67b1b36dfa360212929cca21c773688e
Returns a fresh instance of the default service request defaults object.
public function getDefaultRequest();
1
5018c2ea1b369da4773fcc6d71096a08
4775b83dd6fb8923516437201c218e7b
查询当前表检查约束最大的位置
right r=customRightMapper.findMaxPosAndMaxCode(); Integer max = r.getPos(); return max == null ? 0 : max ; }
1
130fb731c8ebac5f1f175df9887de085
e8000a159e28aa064b38282c7f4a2ae4
Opens sub menu option from the home page
function openSubMenu() { subMenuDivEl.style.display="inline"; isSubMenuOpen = true; }
1
9a3beb8bbf2f63d165b34003152f2563
ef4e3b6126edaec8a42d0767292803e4
Setter metoda za upit nad bazom
abstract class QueryAbstract extends \Bdlm\Core\Object public function setQuery($query) { $this->_query = (string) $query; return $this; }
1
34561b387fa30ad395e9c7c1973e33fa
571bfa4812ba26c7356359edab570603
Шаги: 1. Отправляем запрос http://httpbin.org/redirect/10 Ожидаемый результат: каждый редирект содержит код состояния 302
class IntegrationMocks(unittest.TestCase): def mock_redirect(self): def send_test_redirect(): for attempt in range(20): time.sleep(0) try: response = requests.get( "http://localhost:8085/?test-path&code=test-oauth-code" ...
0
e2fd9f27a65c509e087a025e8e424997
9eff4e5532ff476eabc95d047c4d08ba
Get a Python boolean and convert it to a URL form.
def bool_to_sql(connection, boolean): return str(int(boolean))
0
3086affa4039536c335b538c7a1259f7
27459c6e1bb8db24131af51f4ed1406b
Appends and returns a new empty value (as xml) as the last "display-name" element
org.apache.xmlbeans.XmlString insertNewValue(int i);
0
d4f9910032ac8455ee39c6563d0d8b05
e5e33223ddded5705d3afff8fd48a663
Update structure permission
class PermissionRepository public function updatePermission($d,$id) { $data = $this->createLevel($d); return Permission::where('ps_id',$id)->update(array_except($data,['ps_id'])); }
1
b23a76ae3eb8689900415c53ceadba25
8f16b8ab5767ae394687d95e351ef73a
Get Data Collector # noqa: E501 Get Data Collector with a given id. Note: Data collector endpoints are not available in vRA on-prem release. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.get_data_source_with_http_info(data_source_name, tenant_name, **kwargs) else: (data) = self.get_data_source_with_http_info(data_source_name, tenant_name, **kwargs) return data
0
38ea668cd0d56ee60b901abd19d11b65
b1169d14d09493504dceb5815edafe43
结算编辑
function edit() { SetPermission("edit"); frxs.updateTabTitle("编辑门店结算单" + $("#SettleID").val(), "icon-edit"); }
1
0a54b9d338728246b8dece920f7d9331
82306cdb9175a7f3eb0c8b5cc283a4cb
Takes given as 'item' column chart object and formats the chart to wanted style. Can add title to the chart.
var chartOptions = { scales: { xAxes: [{display: false }], yAxes: [{display: false, type: 'linear', id: "y-axis-1"}] } } if (data.datasets[0].values.length == 1) { data.labels.unshift(data.labels[0]); jQuery.extend(chartOptions, {pointDotStrokeWidth : 1, pointDotRadiu...
0
a68420b4f49d68b0179c748e2a7ef203
d9b5a0ed2ad144f130715002b70115a1
Loads the javascript required for the custom TinyMCE button
class renderer extends \plugin_renderer_base public function render_scripts() { $output = \html_writer::start_tag('script', array('type' => 'text/javascript')); $output .= 'var editor_tinymce_include = function(path) {'."\n"; $output .= 'document.write(\'<script type="text/javascript" src="\' + ...
1
3983f941d696f2b602e301c29c44c050
bda8a0a0bbe61110c8a072f5a2304a52
Returns the vdoc document with the primary key or returns <code>null</code> if it could not be found.
CorpusDoc getCorpusDoc(Long p_id) throws RemoteException, CorpusException;
0
63ac29f8967e98c62ea6bb00c9cdf9d5
3c1083fd312982c70e4e66e6971bf48b
funkcja zwracająca pozycję danego pola
class mouse_handler(object): def klickarea(): mouse_position = pygame.mouse.get_pos() column = 0 if mouse_position[0] <= width/3: column = 1 elif mouse_position[0] <= (width / 3) * 2: column = 2 else: column = 3 if mouse_position[1] <= height/3: line = 1 elif mouse_position[1] <= (height / 3...
1
f737f1169cc99255e4cbcec125cfe192
64c31b28f7117e846171decd6e1d4a30
<p> Statementのクローズ状態を判定する. </p>
{ if (this.statementList instanceof StatementList) return ((StatementList)this.statementList).isEmpty(); return false; }
0
b7b6da8c92180b84d6f2b1ce8949e418
fd97a68e84e626c383f5e9bb5644562f
------------------------------------------------------------------------- add a gem to the current game total
if g == nil then return end self.gem = math.ceil(g) self.gem_add = math.ceil(self.gem / (_lbl_time*Fps)) end
0
4bfd984cb07afeeb6617100c81654409
3da808ea6707a52a2897a2f86f45bd5f
compute how many bonded neighbours each particle has
int Config::getbondlist(double cutoff) { m_b1.clear(); m_b2.clear(); m_b3.clear(); m_b4.clear(); m_nb.clear(); int overc = 0; for(int i=0; i < m_nat; i++) { long bnd[4] = {0,0,0,0}; int ib = 0; for(int ii=0; ii < m_nat; ii++) { if(i != ii) ...
1
4288c08645e3c6dbf6898a02fb444ffc
33ab7c8a160ce9a0ae806925ee65fc85
Make the handler available for Remote Procedure Call by AWS Lambda
def handler(event, context): logger.info('This is being invoked from AWS account: {0}'.format( Utility.aws_account_id()))
0
360d5fa68877a7982bad9469cc8e7c14
fdacbe6fbe1c84b0e3c9304c2655bac4
解压缩 .zip 文件
File fd = new File(destDir); if (!fd.exists()) { fd.mkdirs(); } destDir = new File(destDir).getAbsoluteFile().getAbsolutePath(); while (destDir.contains("..")) { String[] sepList = destDir.split("\\\\"); StringBuilder destDirBuilder = new Strin...
1
55be2b5a95c424e76162ff502f5eb6da
c157b8e96affae46b3b032a9af5484a6
2) comparison is based on Id
namespace HW5_OrderSystem2._0 class Order : IComparable public int CompareTo(object obj) { return id.CompareTo(((Order)obj).id); }
1
8b0e7398c46c9737dd8ab5ed7681614b
abcedc4b970104a6243e01ebd7a8dc79
Creates a flexible position strategy.
export class OverlayPositionBuilder flexibleConnectedTo(elementRef: ElementRef | HTMLElement): FlexibleConnectedPositionStrategy { return new FlexibleConnectedPositionStrategy(elementRef, this._viewportRuler, this._document, this._platform, this._overlayContainer); }
1
e5ae732927f388d5782e919d66628b8a
618d18b55a368afe6bb8f3d5a87028a7
Puts a signed short value.
if(buffer == null) { throw new ArgumentNullException("buffer"); } if(offset + sizeof(short) > buffer.Length) { throw new ArgumentOutOfRangeException("buffer"); } if(BitConverter.IsLittleEndian) { for(var i = 0; i...
1
397644f7cedc0ffb751a873e0d78b504
624f9709f136c41906a46aa4a7af6622
Create an instance of {@link SendErrorReportResponseMessage }
@XmlRegistry public class ObjectFactory public SendMessageCodeResponse createSendMessageCodeResponse() { return new SendMessageCodeResponse(); }
0
63e231e18a04ec1be05a5012b8fff706
96caa2de60a0bba7e09dc8070c9bc67b
test countfiles for a set of zero files
{ $this->cleanup("{$this->file}/" . basename($this->file)); $files = array(); foreach ($this->Fs_Node as $key=>$file) { $files[$key] = $file; } $this->assertEquals(0, count($files), join(', ', array_keys($files))); }
1
b0bf38c67e0c7018c72503ece3b4b635
cea24b16a9ccdfe71002e9daf8168b47
根据等级和资源类型获取 采集速度
public MonitorResultVo getUploadSpeed(MonitorMachine machine, MonitorItem item);
0
2a05cead4825addf5952fd76fe74efc9
48a635cfd66fa4693bf04449814af92f
считывает последовательность ячеек в столбце до границы
namespace Calculator_Unit_Test [TestClass] public class Test_A [TestMethod] public void TestSecondBorderOfAllColumns() { int[] expected_result = new int[2] { AllColumnsOfTable.Length - 2, AllColumnsOfTable.Length - 1 }; int[] real_result = new int[2]; real_res...
0
76175d5e0af417fc8ef89704ed20531d
128e92ea329366ffaffaaa9abf147d33
Returns a tuple of the vendor_id and product_id
def _get_vendor_product_id(device_dict): return f'{_get_vendor_id(device_dict)}/{_get_product_id(device_dict)}'
0
4ad290af4d3e51723bbabc97b55f7fb7
fffb353530fbda72ecca98a3134721b2
修改日记评论
public JsonResult editDiary( @RequestParam("title") String title, @RequestParam("content") String content, @RequestParam("diaryId") String diaryId) { JsonResult j = new JsonResult(); Integer n = diaryService.editDiary(title, content, diaryId); if (n == 1) ...
0
c4180fb12280f82e5c9fa314da0782a6
b69b39824a1ab12b3abf39c0dd1cc583
add multiple secrets check
{ $secretsJson = $this->_getSecrets(); $allProjectSecrets = []; foreach ($pathAndSecrets as $path => $secrets) { if (empty($secrets)) { continue; } foreach ($secrets as $secret) { $allProjectSecrets[] = $secret; ...
1
ddd718767515a166dff9694dd06fa6b0
41c276e54bd8c3000a81663ff77621c2
Retrieves the Base Series Record for the series
def fetchCurrentRecordSeries(cur): return None
0
589b2b186516a1c03af5e62b4b97eea2
f90c0d5a3b009ed843fc3fd94a58d0d2
# feed-forward operation
alpha1 <- theta[1] beta1 <- theta[2] gamma1 <- theta[3] delta1 <- theta[4] sigma1 <- theta[5] kappa1 <- theta[6] alpha2 <- theta[7] beta2 <- theta[8] gamma2 <- theta[9] delta2 <- theta[10] sigma2 <- theta[11] kappa2 <- theta[12] output <- matrix(0, nrow = xdimension, ...
1
0cd6f3dbf99c6d81996e078f792580ca
1b8235c25182b761a0229fc1655023c7
输入身份证上”居民身份证“以下的区域 使用不同的预处理方法,尽可能的提取出来“签发机关”和“有效期限”所在的字符框 返回“签发机关”和“有效期限”所在的字符框
im,left,top = self.getImg(self.binaryImg, self.step2RoIs, '_KaiPiaoRen', allowedZero=True, l=20,r=20) retIm,left,top = self.getImg(self.outputGrayImg2, self.step2RoIs, '_KaiPiaoRen', allowedZero=True, l=20,r=20) boxes = self.findMultipleLineTextRegion(im, kx=27, ky=11) boxes = self.box.f...
0
48b08cdb5917771f29e3495a0f8d545f
608f4343897c2d4c9dcdd46206bbedc8
LSET命令
class myredis public function lSet( $key, $index, $value, $serial = true, $zip = false ) { if ( !$this->connect() ) { return false; } $value = $serial ? serialize( $value ) : $value; $value = $zip ? gzcompress( $value ) : $value; return $this->oRedis->lSet( $key, $ind...
1
bef95aea6f303af9c726c2d6293ced2f
fb8d9ba40be986bd357583156b51844b
Create a new product number.
public function setProductNumber($number);
0
6e68cda017f6f383a95cba047a50f63b
ecd3a5ef6833e03215140cd0d872cd49
Скрыть контур оригинальной фигуры
if ( !xbElement ) return; hideElement(xbGetElementById(cornerElementName+'-tl')); hideElement(xbGetElementById(cornerElementName+'-tr')); hideElement(xbGetElementById(cornerElementName+'-br')); hideElement(xbGetElementById(cornerElementName+'-bl')); hideElement(xbElement); }
1
cc75fc5fb5b1c51b6fce86b811edf320
53b9ce37f0896d1c54b9e0db36442d82
将指定项添加到指定缓存,该项具有绝对到期策略,将在 timeToLive 参数限定的时间间隔(从添加时间算起)后过期。
namespace CacheFactory void Add<T>(string key, T value, TimeSpan slidingExpiration);
0
94c36d1829ab2534dabf56828f59eaf3
9eda69e0c9e7d59c65c44a86dfd3951c
Estimates relative coil sensitivity maps from a set of coil images using the eigenvector method described by Walsh et al. (Magn Reson Med 2000;43:682-90.)
os.environ["TOOLBOX_PATH"] = Bartpath h = loadHeader(filepath, itera, lam) sens = np.zeros((h.nx,h.acqy,h.nc,h.nslice),dtype = np.complex64) scale = getScale(filepath, h) res = np.zeros((h.resX,h.resY,h.nslice,h.np),dtype = np.complex64) com_homo2 = 'homodyne -C 1 ' + str(1.0*h.acqy/h.ny) ...
0
e90c234a5966a216ae4fc7f0495f1945
e1f734070b33e06993f8f31eee5f7ca9
Retrieves the URL for the image if the image exists. If the image does not exist, null is returned. returned.
public abstract class AdResponseParser public String getImageUrl() { if (!processed) { process(); } return imageUrl; }
0
660d7fc5eca1d6986dc8b18daa1232ab
98d1e2b2f524905eb9d9be6d9b9ff7a5
función para procesar sigint (señal de parada)
void sigint_handler(int sig){ wait(NULL); exit(EXIT_SUCCESS); }
1
162323ff624de873f5a292a555f78f07
b9f25017c4eb1e48a4e5f41434a63354
输入字符串计算公式,计算数据,保存俩位小数
function resultsCal(){ if(results.match(re1)||results.match(re2)){ display.innerHTML="输入错误"; results=""; return; } x=eval(results); display.innerHTML=x; }
0
bf36e5ccaa394c4f2c9c7a4c6b1147ad
a81e7e8951fecff00b7f95f483671100
Method that calculates the size of the ball based on its depth
public class MultipleBouncingBallsAnimation private static void createVelocity(Ball ball) { if (ball.getSize() < MAX_SIZE) { ball.setVelocity(WIDTH / (VELOCITY_CALCULATOR * ball.getSize()), HEIGHT / (VELOCITY_CALCULATOR * ball.getSize())); } else { ball.setVel...
0
db5438772e4829027f18148b0fe788b3
ae00616e8523ed8e1020f80f695ea55b
返回文件可见性
class AliyunOssAdapter extends AbstractAdapter public function getVisibility($path) { $bucket = $this->bucket; $object = $this->applyPathPrefix($path); $res['visibility'] = $this->client->getObjectAcl($bucket, $object); return $res; }
1
cd9f5030b88b958e34ac6588e98c17ad
d26b0034017946f8a8b5dbad971afb44
Dopasowanie pasków do zoomu obrazu
var bound = new google.maps.LatLngBounds(); angular.forEach(selectedTours, function (tour) { angular.forEach(tour.directionsDisplays.directions.routes[0].legs, function (leg) { bound.extend(new google.maps.LatLng(leg.start_location.lat(), leg.start_location.ln...
0
e078b5df6fcb2f4181f05a3812c3c25f
f8806a3cc24180fd899be257721869f0
查询一个机构下符合基金列表的基金数
int selectFundCount(Map map);
1
b83eb000e64d04e992f72e2d98408ec6
b61fb6bec7798c8ce4f9da567c9ef7e2
PINコード生成
@Entity @Table(name = "CARDS", catalog = "ULEBANK_FINAL") @DiscriminatorColumn(name = "discriminator", discriminatorType = DiscriminatorType.STRING) public class Cards implements java.io.Serializable public String generatePinCode() { final StringBuilder result = new StringBuilder(); for (int i = 0; i < CardPrope...
1
be9249a6c7b95b9127355fc01a4ab702
08c5b50054d7736ec9ba7c87345b448a
绘制文件上传按钮
class FieldModel extends Model{ private function file_html($data){ return "<input type='text' id='".$data['fname']."' name='".$data['fname']."' class='inputText inputWidth' value='<{if \$update}><{\$".$data['fname']."}><{else}>".$data['defaults']."<{/if}>' /> <input type='button' value='上传' class='inputSub1' on...
1
318582c0eed1e0aac8bf8467fcc3cb4a
260cf3f6aa26481c512a1fa4f2083e6a
Turn Rearview Mirror On
{ switch (Mirror) { case IMAGE_SENSOR_MIRROR_H: CamWriteCmosSensor(0x14, 0x11); break; case IMAGE_SENSOR_MIRROR_V: CamWriteCmosSensor(0x14, 0x12); break; case IMAGE_SENSOR_MIRROR_HV: CamWriteCmosSensor(0x14, 0x13); break; default: CamWriteCmosSensor(0x14, 0x10); } }
0
811a8999fbf2fcf21f8695ca8e5b3466
792411aaea5e9f583f1579b79d7c1dfb
挂断与会者
int result = MeetingMgr.getInstance().hangupAttendee(member); if (0 != result) { showToast("挂断与会者失败"); } }
1
f76d9dc357a5e77fddc95f3fe4de48fa
43ca7d9521130ca491140dd9dea3e32a
哪個ID與此次ID一樣則歸零,並依照type決定是司機不在提供座位給此使用者,或者一般使用者退出該次共乘
{ if (!string.IsNullOrEmpty(personId) && !string.IsNullOrEmpty(personTypeId) && string.IsNullOrEmpty(boardingDetail)) { return Failed; } else { return Success; } }
0
6324dd6012b16e055fd549e9af23f714
cce33331b9633c5b2230d785d1fb6efa
Registrazione presso un master
def slaveRegisterWithMaster(): try: print 'slaveRegisterWithMaster()' except KeyboardInterrupt: print 'slaveRegisterWithMaster() caught CTRL-C. Setting terminate flag.' e.set()
1
18e2628e990441b9ad1ee0aabfe92e0c
f43f5ac556769aece4a915d9606475b8
calls the write function on the specified template's rendered text
err := templates[tmpl].Execute(w, p) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } }
1
df63f7727555faca9bb2b53eed1e4755
0781e4fbe9ee0bce21b9cbeb6b0faada
Draws one matrix with Tkinter.
digits = header.get_decimal_digits() matrix_frames.Result.text_box.delete("1.0", END) str_result = '' if type(result) == np.ndarray: for row in result: try: for element in row: str_result += str(round(element, digits)) + ' ' except Type...
0
67a3af9e9e0add386cc8512a81dcf1f6
e88ed53aa07fe25d20f06635c486c991
Short reference to the `MasksManager` component.
public abstract class MaskLayer extends PopupWindow public void setMaskLayerManager(MaskLayerManager manager) { this.mMaskLayerManager = manager; }
0
7bb4dbcac8996bcdbc538b5d04a001d9
37ec37beec21e081ccc524595f93d6a5
exhibitDetails(Model, AdminTemplate, Long) method is responsible for loading details of the selected exhibit.
@Service public class AdminService implements BeanFactoryAware @Transactional(value = "dptTransactionManager", propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, rollbackFor = Exception.class) public Long saveExhibit(AdminExhibitTemplate adminExhibitTemplate) throws IllegalAccessException, Instanti...
0
fc46017c0bbcf69012a9af2ba7a72156
e16315fa58ddeeccea9cac5b7a0ebde1
设置pdf标题内容
class Moc10_Pdf extends Moc10_File public function setTitle($tle) { $this->_objects[$this->_info]->title = $tle; return $this; }
1
c8ef1a7ce6d4d19367c310478faa5214
a2b4878d8fd3f03ef0fb014a5eb79aa0
Deletes a gast entity.
class GaestebuchController extends Controller public function destroy(Gaestebuch $gaestebuch) { $gaestebuch->delete(); toastr()->error('Gästebucheintrag wurde gelöscht!'); return redirect()->route('frontend.gaestebuch.index'); }
1
c01721e17b384b21173aec59e9bcff08
e785ec01df1223d14236aae6534738b2
This method sets the List of checkers to be executed
@OptionClass(alias = "compatibility") public class CompatibilityTest implements IDeviceTest, IShardableTest, IBuildReceiver, IStrictShardableTest, ISystemStatusCheckerReceiver, ITestCollector, IInvocationContextReceiver @Override public void setSystemStatusChecker(List<ISystemStatusChecker> systemCh...
1
6c9fae95935f21aac8bf9184444eb353
887aaf771f37f08ea2704131a3c2f301
Initiate the controller with Bolt Application instance and extension config.
class BkstgCoreExtension extends Extension public function load(array $configs, ContainerBuilder $container): void { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ ...
0
4572380be59fa893ddd78af2d5666230
890c3baf0d2673da84365e4622d1844c
This function initialises the scene manager. (Task ID: Scene Manager)
io::IFileSystem* fs, gui::ICursorControl* cursorcontrol, gui::IGUIEnvironment *guiEnvironment) { return new CSceneManager(driver, fs, cursorcontrol, 0, guiEnvironment ); }
1
392e3bdc832235f75a9ad3d8bf01855b
447b64d32a246a1b627317233b6d724b
Clauses that require at least one of the primary outputs to propagate the fault Alternative formulation: At least one primary output should become sensitized
public void R42() { var model = new Model(new InitializeOne()); model.Faults.SuppressActivations(); var modelchecker = new LtsMin(); var normalMode = G(!model.DigitalPart.AnomalyComposition()); var result = modelchecker.Check(model, G(normalMod...
0
818f503e63bb3d71b795cec56fcaf945
d900131a191498279469c9afeea869f4
Внутренний метод для обновления или добавления значения на нужном и доступном редисе. Удаляет значение из неправильного редиса, если оно было там.
func_name = "[UPDATE CACHE] " self.log.debug('%sStart', func_name) try: database = Database() if not self.check_for_relevance(database, True): self.log.info('%sData is not actual, writе to cache...', func_name) self.write_to_cache(database)...
0
1f43f3cc382d796351e2433fd6e46469
7c61879eca4692fe1d8dce8dd4ddc52e
\brief Gere uma jogada ofensiva por parte do bot.
ESTADO bot1 (ESTADO e,POSICOES *p) { int j = p->sp; int l,c,i,pontos = -100,tmp; ESTADO aux; for (i = 0;i<j;i++) { tmp = 0; aux = e; aux = jogaBot(e,p->valores[i].l,p->valores[i].c); aux = substitui(e,p->valores[i].l,p->valores[i].c); tmp += conta(aux,e.peca)-cont...
1
767167d905fc2c9963320157ae786015
f0429def090b3fa33208e2cd9e07670a
replace '?' in sql with wrapped parameters
class Db function query($q, ...$args) { foreach ($args as $arg) { $pos = strpos($q, '?'); if ($pos === false) { throw new Exception('more parameters than ? symbols in query pattern'); } $newQuery = substr($q, 0, $pos); $newQuery .= $thi...
1