query_id
string
corpus_id
string
query
string
code
string
label
int64
49718ba8d1f4082a01547c6801410e32
75fbe9a77aeb4634a347810fc5da5f7b
test the temperature readings from each of the 4 modules to make sure they are within acceptable limits
avgInside = 0 avgOutside = 0 while( True ): debuglog( "Checking temps.." ) time.sleep( config['checkdelay'] )
0
875671399bcdbd651ee0d31eeea100f4
516246b05102fc308805abd818fc2c71
Lists all os_types, that the local VirtualBox accepts
def supportedOSList(environ, start_response): start_response('200 OK', [('Content-Type', 'text/json')]) return json.dumps(cloudraxak.supportedOSList())
0
01d619110e01732dcc3be07d1a452105
664bdf0b0bb8280acb81f8f084e9061f
Creates a brand new project according to the incoming project
async function newProject(req, res) { let i = {}; if (req.body.project_name != undefined) { i.project_name = req.body.project_name; } if (req.body.tags != undefined) { i.tags = sanitizeTags(req.body.tags); } if (req.body.tags != undefined) { i.tags = req.body.tags; } if (req.body.description...
1
9708dfd2960a19179daded6506bfa80c
94dd50a8452a307cf537c1e2f74265fa
rule for parsing single parameter of JPath function
def parse(expr, start, output_dir=None, write_output=False, lextab=None, tabmodule=None, debugfile=None, jpath_funcs=JPathFunctions()): def p_parameters_one(p): p1 = str(p[1]) p[0] = (p1[1:len(p1)-1] if p1.startswith('"') and p1.endswith('"') else p[1],)
1
7b7bc7e6a11697ce07efe29073caae21
ec1b84f88494bfe986813e86d6bd7c30
Called when the window needs to be repainted.
namespace Trend public abstract class WindowAura public abstract void OnPaint(Graphics g, int width, int height);
1
dbb2f3f94aac6a75545aaeeee390e28c
447813b8fb5b36127c5838e7c80bc208
Test if left is less than right value. Returns true or false
def evaluate_smaller_then(left_node: AST_Literal, right_node: AST_Literal) -> Optional[AST_Bool]: return AST_Bool(left_node.value < right_node.value)
1
20e396f9cf237497912fa1bdebb2f6ce
9ab6d5821f0d472c35b2a396fc4308f5
非负数的各位之和
int main(int argc, const char * argv[]) { int n=0; scanf("%d",&n); n = abs(n); printf("%d",sumOdd(n,0,0)); return 0; }
0
c3ac98d24bb51e5231b3f74442046434
f4006bd29d7ec5b7323a30b534b4e0d7
我们的配置文件是支持注释的,而 Json 规范中并没有对注释的支持,所以我们需要对注释进行擦除 注意:注释只能是单独起一行,并且以 # 开头
def load_config(moat_root): s = open(os.path.join(moat_root, 'config.gypi')).read() s = re.sub(r'#.*?\n', '', s) s = re.sub(r'\'', '"', s) return json.loads(s)
1
a53638aae8c1f2acdfcb9d0d9106523b
0cfe1891abcc8d850918c53ad97dc472
将图片测量的大小回调到onMeasureSize()方法中
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(backgroundBitmap.getWidth(), backgroundBitmap.getHeight()); }
0
cca5034b853f974f6fb4e993932dc712
b16271eee7f5a0dc8189662fae091d89
returns value of outgoing track counter
public class CollisionTrack extends Track{ public Vector<Track> getOutTracks(){ return outTracks; }
0
77e03e4e1b3d6eccf620d6559baf0423
e64fc89195046a6e2464fee49f372630
make sure that the URL is suffixed with a forward slash
export class VolumeApiV2 public constructor(volumeServerUrl: string = DEFAULT_VOLSEG_SERVER) { this.volumeServerUrl = volumeServerUrl.replace(/\/$/, ''); }
0
2988760c0c2f0cb260cf5f7600d9672d
29593f895dcfeebcae30f9df2f5e83fa
将一个文件夹下的文件列表分割转入子文件夹
split_idx = 0 numFile = len(fileList) i = 0 while i < numFile: (split_idx, numfile_vacant) = GetVacantSplitIndex(workdir, split_idx, maxfile_per_folder) subfolder = workdir + os.sep + "split_%d"%(split_idx) filelist_to_move = fileList[i:i+numfile_vacant] M...
1
1181b658d9457ef1e711a83cae06e255
573ba5a35ef7d78dffd9927be77672aa
Thread for retrieving the RSSI value on the R-Pi 3
def GetRSSI(DEV_MAC): distance = pyrssi.read_rssi(DEV_MAC) return distance
0
aefba0f29fd390097287fa93f178d150
9fc9c5eae93bc019991fc74bee156920
Get regional availability information for each size category configured under a lab account.
{ using (var _result = await operations.CheckAvailabilityWithHttpMessagesAsync(identifier, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }
0
672647de6e5231f285b96854955194a1
8c9d0cf9e10ab949ce2366a8b8102afb
add a member (possibly the owner) to a guild
void addMember(GuildMember member);
1
1230280ed33375cb63c1b5b30cb696a8
073a57b09854688587f34fcfc97399b8
The file should exist if it's either declared in contents or in content_map.
class ContentMap(object): def __init__(self): self.files = []
0
34f43e1ae26ff6ee88ef62f0a8ba486b
cdadeee3e382565fc99661c8a2443763
Start the inference engine.
if not self.model.is_ready(): self.model.await_any() image, metadata = self.model.preprocess(image) callback_data = id, metadata, result_handler self.model.inference_adapter.infer_async(image, callback_data)
1
79e1e1b7eee121829229387afc4ceae9
c5413190eea16abc6b7b8cc3384569af
Taken from https://play.golang.org/p/EzvhWMljku.
func rot13(r rune) rune { const step = 13 if r >= 'a' && r <= 'z' { return ((r - 'a' + step) % 26) + 'a' } if r >= 'A' && r <= 'Z' { return ((r - 'A' + step) % 26) + 'A' } return r }
1
4de37061276699cc210f06c2437cd3e7
e6d0b87a82111b26c5dc6e7f58af5b31
returns wheter there are any entry marked labels in the table
class Display extends Helper public function hasEntries(): bool { $sql = "SELECT COUNT(*) FROM tasks_notes;"; $stmt = $this->db->query($sql); $row = $stmt->fetch(); return $row['COUNT(*)'] != 0; }
0
d11915359325398623ac18536b74c5cd
b637c9811ff1a3b3041a5e55eb6a7be0
The minimum recommended temperature for fermenting this yeast strain in degrees Celsius.
class BLE_HT_data: def minimum_temperature(self) -> float: return self._min_temp
0
86e98dc9bb518ab441d5170a0d0c38ba
1f3873825ecf68db68d8c611a911eb14
Zwraca kafelki otaczające dany prostokąt na planszy
let cell = document.getElementById(position); let x = cell.getAttribute('data-x'); let y = cell.getAttribute('data-y'); let cases = [ document.querySelector('[data-x="' + (+x - 1) + '"][data-y="' + (+y - 2) + '"]'), document.querySelector('[data-x="' + (+x - 1) + '"][data-y="' + (+y + 2)...
0
6aaf23e441e12eb2fbe42f38c1b87d59
d389ae7e8df17e970e794a5c8dd28d21
Gets the value of the shipmentStatusC property. possible object is {@link JAXBElement }{@code <}{@link String }{@code >}
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SampleRequest_c", namespace = "/oracle/apps/sales/custExtn/views/common/", propOrder = { "id", "recordName", "createdBy", "creationDate", "lastUpdatedBy", "lastUpdateDate", "objectVersionNumber", "lastUpdateLogin", "cpd...
1
34a2ffc76d08606287199a7cefa922c0
b890a1b7ba5a7a34b6f85aa0c581f67b
单个或批量真实删除字典数据 (清空回收站)
#[Controller(prefix: "system/dataDict"), Auth] class DictDataController extends MineController #[DeleteMapping("realDelete"), Permission("system:dict:realDelete"), OperationLog, DeleteCache('Dict:*')] public function realDelete(): ResponseInterface { return $this->service->realDelete((array) $this->requ...
1
0c704ab223d35ac91c1b2052de347413
50cbce0844a31edf2d2fdb4cdb5a82ae
View function to set the specified report as the current user's active report.
public class ReportControl public static void setActive(Report activeReport) { active = activeReport; }
1
e79094231516fa6462c6c2a072e37913
9ca4f717fcabe3cdd1c0fe2ff2f4d5ed
Retrieves all related entities of type 'EmployeePayHistoryEntity' using a relation of type '1:n'.
namespace Reliant.RenuOil.DAL.EntityClasses [Serializable] public partial class EmployeeEntity : CommonEntityBase, ISerializable // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces // __LLBLGENPRO_USER_CODE_REGION_END public virtual IRelationPredicateBucket GetRelationInfoAccountCollectionViaAccountEmploy...
0
066e49d4496e4a3053520c902a0173ab
498347db2fd5406ddcd68fa02d77f194
添加AsyncSocketUserToken对象
{ var key = new UserTokenKey() { ConnectionName = connectionName, ChannelId = channelId, UserId = userId, }; if (magicCode == null) { if (_userTokens.ContainsKey(key)) { ...
0
61a028c7b5ec2f87cf74909af61bfab4
6c1bec4b9c85e2ea6d0728cf1457abb5
Always confirm
def confirm(alert: str): return menu(['Yes', 'No'], alert + '?')[0] == 0
0
f3c02c66720c0ab06b1e61d7be0ea3b9
64695b64d5b1ac30b2d6fda763551ecc
Takes two dates and checks if month and year matches
function isEqualMonth(date1, date2) { return format(date1, 'Ym') === format(date2, 'Ym'); }
1
f8c6c45586323cd02f16141cd289cd03
a60e693eb2d9e14a6c5229e2e18d80a3
funkcija koja cisti ekran i ispisuje novi rezultat
function clearData(){ str = ""; document.getElementById("result").innerHTML = 0; }
1
4ecf331cc15e61cf59418fb95bee685d
d2427fec2a4f060e675566f12e849097
Get the volumeName value.
class StatsParser(parser_utils.ParallelLogParser): def get_volume_name(self): return self.fetch_individual_metric('volume_name')
1
534880a9e30ed264d525613d21c8f325
c702ef5f329a079c7a0cf4441ec1adf8
Transform the image into a 50x50px thumbnail
public class SaveDialog extends AlertDialog private Bitmap createThumbnail(Bitmap original) { final int SIZE = 512; int originalWidth = original.getWidth(); int originalHeight = original.getHeight(); Bitmap cropped; if(originalWidth > originalHeight) { cro...
0
79f89327a67c8a5ec0947a303d813d65
c5aa6f920a0515b096cfbea6668ff6e4
Cria horários para um colaborador específico
self.cbbHor_hor.clear() self.cbbHor_hor.addItem("Selecionar") self.cbbHor_hor.setCurrentIndex(0) db = sqlite3.connect('dbmehsys.db') cursor = db.cursor() sql = "select p.* from (select '" \ + self.dat_hor.text() + "' data, '" + self.cbbPro_hor.currentText() ...
0
0c58f8bb48a2743901007ebf0be64d6a
0dd4eeee19195dbed54e8cb3c5505006
logical comparison ==
{ lua_pushboolean(state, obj(state, 1) == obj(state, 2)); return 1; }
1
860dbd387933fcfc614b10825ecfabc4
4ce206634e4d6dfb67552af4a9be9694
cria populaçao inicial
nmrIndividuos = 10 minimo = -20 maximo = 20 qtdBits = 16 population = [] for i in range(nmrIndividuos): cromossomos = '' for j in range(qtdBits): bit = random.randint(0, 1) if cromossomos == '': cromossomos = str(bit) el...
1
6a44dfbd8c10993cc2cb9f77ffa8b504
a6cee853039c60b6555f9b2d90cec10e
enable/disable encoder layer gradient updates
class CycleGan: def grad_toggle(self, grad): for param in self.dis_x.parameters(): param.requires_grad = grad for param in self.dis_y.parameters(): param.requires_grad = grad
0
938b9aedc9d1706b77935d1bb481b04c
e1e15e5e12f932c2f7f4e0231636b170
Ищет путевку по ее коду
class TransactionManager: def query_flight_by_code(self, flight_code: str): with self.db.begin() as connection: result = connection.execute(text(select.FLIGHT_BY_CODE.format(flight_code))) return result
1
63a36b280e97919df45a0eddca9bbe16
ea3a3f673892ddaa7db9fbb51f19405d
从数组中删除index位置的元素, 返回删除的元素
public class Array<E> public E remove (E index) { if (index < 0 || index > size) throw new IllegalArgumentException('Insert failed, require index >= 0 and index <= size'); int ret = data[index]; for (int i = index + 1; i < size; i ++) { data[i - 1] = data[i]; } ...
1
54c68baac8eb1b790a91fbc8f70d18a9
a612f41770ec3d09627cd74b7c0d36cb
Enable weapon hitbox so it hits enemies
function ENT:Initialize() self:SetSolid( SOLID_BBOX ) self:SetTrigger(true) end
0
bf9a0d1687904c4a29a4f48d1650efc4
90ccf261df8c9f6c8fd3eed86bcabbab
yields a line from the input file
class data2redis(object): def readLine(self): with open(self.inputFile, "r") as inFile: for line in inFile: self.totalLineNum += 1 yield line.strip()
1
40bb8e6591fe56e5fa563d4f7a80ac2f
f8f0c577b51aaa5a713239a07f8d0a49
Create a temporary sqlite database file.
def temp_db(): fname = tempfile.mktemp(suffix='.db') db = connect_db(wfm_db, fname) yield db os.remove(fname)
1
ec0e0349a445f0c3c2d19669dfda9f57
371c0cd2f7d99e642abe9bf3edbc7bbc
Gets events that are matched by client's subscription.
{ if (eventData == null) return 0; var eventRoute = _schema.RetrieveSubscriptionFieldPath(eventData.ToSubscriptionEventName()); if (eventRoute == null) return 0; var clientList = new List<ApolloClientProxy<TSchema>>(); l...
1
cd79cf7e6bc6a647146560307f3f40c1
67dc347524d51fb25db712fd43f51eaa
Returns if the racer has finished the race or not.
class RubyRacer def finished? @board.any? {|track| track.last != " " } end
1
153b81fc16694951e9eaa2fba3e4ae72
3cfaf84a23a2ca63205eb753ac9262aa
Changes Limelight Pipeline
public class Vision extends CommandBase @Override public void initialize() { limelight.setLedMode(initState); limelight.setCameraMode(initCamMode); limelight.setStreamMode(streamMode); limelight.setPipeline(0); }
1
db093a02497700475ac3cad70b2ec997
86d9f33f6bbee1588710a90285c05460
Confirm that the point is within the polygon underlying the gridded region.
double p_bet, double p_gam, double xcent, double ycent, double xorig, double yorig, double xcell, double ycell, ...
0
324ee26ba561a77ec0c5d0f856c3b311
1075a6fde7523c4f3c23a73cec57941f
根据物料编码,物料描述,供应商编码,已上架,有效,查询是否存在
public class BINOLPLSCF07_Service extends BaseService public List<Map<String,Object>> isExist(Map<String,Object> map){ map.put(CherryConstants.IBATIS_SQL_ID, "BINOLPLSCF07.isExist"); return baseConfServiceImpl.getList(map); }
1
11445d981ef0113e5f144ab3eb516c6d
6c192d89700399bf0dbda6532233add4
Finishes the asynchronous execution of the ListPublishingDestinations operation.
namespace Amazon.Connect ListRoutingProfilesResponse EndListRoutingProfiles(IAsyncResult asyncResult);
0
bf8781863910cfbf21b90b864f7921d8
4fc12c32a076d69afc326ab44eccb45a
una Categoria puede tener muchos productos
class Category extends Model public function products() { return $this->hasMany(Product::class); }
1
cede9dfcf3362f26f2ab16cfb3d9e63b
c5ec1affeaec55e219117b9df45ee56d
告知SpringMVC框架 不进行视图跳转 直接进行数据响应
@Controller @RequestMapping("/view") /** * mvc理念:view对象永远不能直接访问,只能直接访问控制器 * 由控制器去访问view(而且安装servlet技术,基本就是转发到视图) * * 处理请求方法之间的访问:基本应该都是重定向. */ public class ViewDemoController @RequestMapping("/demo2") public String demo2(HttpServletRequest request){ request.setAttribute("f","sadf"); return "fo...
0
0c6fa34a2f5471c7ed1611038d98933d
07bf8ffdad3b152acbbef7c454ec2bfe
根据文件名称 和 指定目录下 查找其真实路径 返回第一个
List<String> list = findFilePath(targetName, targetFilePath); if (list == null || list.size() == 0) { return null; } return list.get(0); }
1
6333bb735ce4ad81a584bbfe333d2b7b
e2141a3423d9d4ba1593345adc012d1f
通过百度api查询经纬度所对应的地理位置
@Data @RefreshScope @PropertySource(value = "classpath:application.yml") @ConfigurationProperties(prefix = "com.zzdz.baidu") @Slf4j @Service public class AddressServiceImpl implements AddressService @Override public Map<String, String> getAddress(String lat, String lng) { log.info("百度参数设置:{},{},{}",ak, outp...
1
98c20cc3d78a78de62cc6e3a081ac8ca
13ffecff2d424cf8c6b2b40cb12d5763
verifies that a service provider configuration can successfully be read without any problems
public void TestBlankProperties() { TDServiceDiscovery.Current.SetServiceForTest(ServiceDiscoveryKey.PropertyService, new MockPropertyProviderFactory(new MockPropertyProvider1())); IPropertyProvider current = (IPropertyProvider)TDServiceDiscovery.Current[ServiceDiscoveryKey.PropertyService]; bool errorRais...
0
404fd0e5209abf96c8e12cfd1e56bd60
c6f69dac3e337f42b0ab957dd785e49a
reset de l'auto-increment meme s'il y a deja des groupes d'ID >99 car ca ne pose pas de probleme
{ Schema::table('group_users', function (Blueprint $table) { DB::statement('ALTER TABLE `group_users` MODIFY `id` INTEGER AUTO_INCREMENT NOT NULL;'); }); }
1
bf2e49d3ad359b2cd1b8e5ff8ded044a
1ba9c174ed8411762b5210564162c353
创建按时查询总记录数语句
{ string sql = string.Format(@"select {0} from v_finmon_que_oper left join finmon_que_status s on v_finmon_que_oper.status = s.status ...
1
f3754d4de5522579bc5c405b610fbefc
dd9a7af52004889f876173dba5f972b1
取消正在下载的群共享文件
public class GroupSharedFilesActivity extends BaseActivity implements ReceiveReqIQCallBack,OnClickListener void execCancel(View v, SharedFile sharedFile, File localFile);
1
3efd9112711a14370cc3c81990456566
bdf593517b9936517dc6e7da011ccbfa
Retrieve a batch of Blog Posts Retrieve the Blog Post objects identified in the request body.
class BlogPostApi def create_batch(batch_input_blog_post, opts = {}) data, _status_code, _headers = create_batch_with_http_info(batch_input_blog_post, opts) data end
0
53a1cab29d48a4f0dd447ec6366f8d66
5e5891f3f2b4ea292ff8376e4d0603cb
We should NOT be able to execute edit_pool as read-only user
class TestPoolsPage(BaseTest): def test_oA004_edit_pool_ec(self): new_pool_name = 'qa_test_ec' self.poolsTab.edit_pool(pool_name=new_pool_name, pg_num=64, app='rbd rgw cephfs') assert self.poolsTab.pool_present(new_pool_name, pg_num=64, app='rbd rgw cephfs')
0
df9ca2befa71acda0fdb03ee76a51489
82196d7aa9ea290a84ef7fa1f819af10
data is fetched on init and stored
class App extends Component constructor() { super() this.state = { data: {} } }
0
2a989bf5c21511da19b52cd633b741d7
8113c1cf82f8f6b90d6bd48e53408099
Wait for one (and just one) connection
class Network(): class Listener(): def try_get_connection(self): (inputs_ready, dontcare, dontcare) = select.select([self.socket], [], [], 0) if len(inputs_ready) == 0: return None (client_socket, dontcare) = self.socket.accept() return Network.Connect...
1
35d235af8dccbb7b6acc95ba38322e80
a77100aac76d5fd91e3541bcae2c5e6e
listar itens para serem coletados
{ itens = new List<Item>(); try { open(); #region CommandText cmd.CommandText = " SELECT " + " ItemTipo, " + " tblItemPreCadastro.ItemNome, " + " COUNT (*) " + ...
1
49444d760a9ccc0d1e3ebafc7b06d665
2d6a5f32476e1e92c73742c91f74fca4
Get paginated disputed trades
namespace MangoPay.SDK.Core.APIs public class ApiDisputes : ApiBase public async Task<ListPaginated<DisputeDTO>> GetAll() { return await this.GetAll(null, null); }
1
9914d4e64ca5cce720b9525deeda1df0
f8b42cb40b97f5f42bbd371528badbb2
根据商品p_code查询商品详情
List<WtDictionary> selectByPCode(Map<String,Object> map);
1
9fd6aa199dcf9823138263f32e92489e
8c14631831f64b3f033765ee82beae95
某用户在指定时间内是否有提交周报
String sql = "select count(*) as cnt from ph_dayreport where user_id = ? and report_date = ?"; DaoParam param = _dao.createParam(sql); param.addStringValue(userId); param.addDateValue(reportDate); Map<String, String> mpcnt = _dao.queryMap(param); return MapUtil.hasRecord(...
0
17c40448ebd36d36b8380430f2cc0074
544ce7be3038725ba2accb46f3780390
Converts a time in total seconds into MM:SS.
namespace PlayerACv2 public partial class PlayerAC : System.Windows.Controls.UserControl private string GetTimeStringFromSeconds(int totalSeconds) { int hours = totalSeconds / 3600; int minutes = (totalSeconds % 3600) / 60; int seconds = (totalSeconds % 3600) % 60; ...
0
432b16d8bdb34a51a2cf01535d41d28e
809a307834958ea6be7448eb27975ae3
! @brief RF6_INVULNERの処理。無敵。
{ void self = getlocalvar("self"); int expire_time = time + openborvariant("elapsed_time"); set_entity_property(self, "invincible_state", openborconstant("INVINCIBLE_INTANGIBLE")); set_entity_property(self, "invincible_time", expire_time); }
1
433bfc8efb68b34cd8112f4164ad6fde
7783f0b345d533cbd4a385bfe5be4dd0
Used for in iOS specific feature, to indicate if content (for Newsstand or silent messages) has marked as being available Not supported on other platforms.
public boolean isContentAvailable();
1
36bdae8d6d999d1e1a51e7c7f52701e0
b6ddfb87c183584124b0a6881e0f1bc3
Evento de click em botões que preencham automaticamente um (ou ate dois) campos com valores sugeridos pelo sistema
function AutoNextInputAct(fctThisObj, fctAct) { var varNextInput = fctThisObj.getAttributeNode("nextinput"); if (varNextInput && varNextInput != "") { if (document.all) { eval("$F('" + varNextInput.value + "')." + fctAct + "()"); } else { var evt = document.createEvent("M...
0
e215d20d040542f221dea9070b96cb04
4e36973b5cc4afd74bcfd1bf7e9c926a
退审后更新库存信息
boolean s=false; PullStorage pullStorage = this.getEntity(id); List<StorageDetail> storageDetailList = new ArrayList<StorageDetail>(); List<StorageProDetail> storageProDetailList = new ArrayList<StorageProDetail>(); if (pullStorage != null && (pullStorage.getStatus().equals("3")||pullStorage.getStatus().equa...
1
1ecc060dc44b78940aa9e37ca41964ec
d893507e922e5aa5978a9231d6c4ff9b
发送在线粉丝数到客户端
@ServerEndpoint(value = "/study/websocket", configurator = SpringConfigurator.class) public class CourseStudyWebSocketHandler private void pushOnlineUserCount(String message) { for (Map.Entry<String, Session> entry : sessionList.entrySet()) { Session usersession = entry.getValue(); if (u...
1
4bc534b4f0667e0e9f111d3df12e3e4e
be84e225fa377bec4e5bd728f823a529
> BOOL NodeGrid::IsDisabled() const A disabled grid does not render and cannot be snapped to. This mechanism is used to disable Default grids without deleting them from the tree.
namespace stdr_gui bool CGuiConnector::isGridEnabled(void) { return grid_enabled_; }
0
9d4b0e5fe0976e43dc4e1f81ebea2510
55be27ff88d69e0fa7498826b0a2cd1b
Resets/Clears the GUI components for a split
function clearSplits() { splits.innerHTML = ""; }
1
594bf593e2b6b756b364d56813f0eb81
37ef0662309d659d18181495d94286c2
Find space based on job size
ts = super(OnlineScheduler, self).fit_job_in_schedule( job, reserved_jobs, min_ts) if ts != -1: return ts if len(reserved_jobs) == 0: return -1 gap_list = super(OnlineScheduler, self).create_gaps_list( reserved_jobs, min_ts) if len(...
1
55a2ad47d42e876184524af917c662f0
d7957eb88a6bd02d33b7631c6579d0e8
This method initializes jLabelPID.
setBackground(PANEL_COLOR); setVisible(true); setLayout(new GridLayout(RAWS, 2)); final List<JLabel> labelList = new ArrayList<>(); myLeft = new JLabel(GUI.KEY_NAMES[0]); myRight = new JLabel(GUI.KEY_NAMES[1]); myDrop = new JLabel(GUI.KEY_NAMES[2]); myDown...
0
adf509ece6dc01f87a8f64c0e64d2601
dc5a2ce9a3c018ece9d84c26cb1b5f1e
Gets the value of the subCategory property. possible object is {@link Category }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "header", "messageType", "overwrite", "message" }) @XmlRootElement(name = "NeweggEnvelope") public class ItemCreationOrUpdateFeedRequest @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "itemfe...
0
47b6749dd7d820f87cbf2f602399e397
d606cf580344a8e2b6e855dea6357fe8
If missing args, print usage and exit
if len(os.Args) == 1 { fmt.Printf(help, filepath.Base(os.Args[0])) os.Exit(1) } if n, err := strconv.Atoi(os.Args[1]); err == nil { fmt.Println(verbalRepr(n)) } else { fmt.Println(err) } }
1
612b5d99008628de74bc90c20d6a709b
cd37b79b25d7f94916b2a74405f23eca
Allow MTM keep alive command only in manfacturing mode.
batch.commands = batch.commands.map((command) => { if (command.name.substring(0, 12) === 'maintenance.') { return command } if (state.session && state.session.getData(MAINTENANCE_SESSION_KEY)) { return command } if (USER_COMMANDS[command.name] && USER_COMMANDS[command.name]._OnMaintena...
0
09fe86ddd7fd0f52a8963fda4f3bec42
1e3a2796c48052f1073d449865e2c0d3
清除pingpong敌人所有引用数据
namespace Hotfix_LT.UI public class SceneLogic : DynamicMonoHotfix private void ResetEnemyRegistry() { DestroyDynamicGameObjects(); if (cor!=null)StopCoroutine(cor); m_EnemyControllers.Clear(); }
1
901e538d026717c41b6b4d4dbc5a6dc4
5b912e4c5c450598d77340f55a6dda0e
환불정보 변경요청 결과 핸들링
@Controller @Log4j @RequestMapping("/refund/*") @AllArgsConstructor public class RefundController @GetMapping({ "/info", "/modify" }) public void get(@RequestParam("refundNo") Long refundNo, @ModelAttribute("cri") Criteria cri, Model model) { }
0
d6b3e40410b72de95f03a278edd4626f
df1740d801c17f27ed33631fbc9e8f0e
Calcualtes the average time to crack the cipher, based on the specified length of the keyphrase and seconds to evaluate each attempt, using a brute force approach. This calculation assumes that the cracker knows the length of the keyphrase. If the length is not know, it will take substantially longer to crack the ciphe...
class BreakerAssistant(object): def brute_force(self, cipher_text, key_length): max_score = -100000 plain_text = "" cipher = RepeatedKeyCipher() for key in itertools.product(range(256), repeat=key_length): cipher.key = key dec_text = cipher.decrypt(cipher_text) ...
0
063bcfda1c40f4cdd968f53c95c0ba66
be4e6b7e5cb19230c6e297d4b9c032a5
두 좌표 중 주변 8곳의 점수의 합이 더 높은 좌표를 내보냄
var min1Val = 999999999 var min2Val = 999999999 var max1Val = -999999999 var max2Val = -999999999 for (i in calcScoreArray.indices) { for (j in calcScoreArray[i].indices) { if (stoneColorArray[i][j] != 1 && stoneColorArray[i][j] != 2 && calcScoreArray[...
0
44e4647df57f77ac20753846f9c26f2d
f2ca3b7d228821977c1df52bcf6c4702
Reads the two registers containing the y-axis angular velocity of the L3GD20 Returns the resulting value.
high_byte = self.bus.read_byte_data(self._imu_addr_, self._gyro_z_) low_byte = self.bus.read_byte_data(self._imu_addr_, self._gyro_z_ + 1) data_raw = (high_byte << 8) | low_byte return twos_complement(data_raw, 16)
0
e401c95444b8e1d0b599ccae7653d09b
452d7f78fdad30ef7469643d4ad85230
for distance measure, 1 is cosine similarity, 2 is euclidean distance, 3 is manhattan distance. give train feature and test feature, specify distance measure method, and the number of components in LDA, return the prediction accuracy.
trainDim = int(len(data)*trainDim) train = data[:trainDim] test = data[trainDim:] print('Training classifier...') classifier = trainer( [(features(n), g) for (n, g) in train] ) print('Testing classifier...') acc = accuracy(classifier, [(features(n), g) for (n, g) in test]) print('Accurac...
0
8ec9fbb0e448d42513d5b53fe0b82b6a
0cf9c33707a3f779d017c8562a33ae23
Returns a new object of class '<em>Structure Aggregate Expression</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
StructureAggregateExpression createStructureAggregateExpression();
1
4305def58197be8ecc76b3626b78c37a
59c8ef526a76f62556de60628606dd01
fill given volume with HCP structure
with open(pdb[:-4]+".dssp","r") as dssp: ss=dssp.readline().strip("\n") struc=[i for i in range(0,len(ss)) if ss[i] in ["H","E"]] pp=pp[struc[0]:struc[-1]+1] return pp
0
164cd1e727a05b61119a42acb2859daa
f1fc641c670d3fb0bf796cdfc8061360
Gets whether this resolver should validate the metadata document recieved against the SAML2 Metadata schema.
public abstract class AbstractMutableSchemaResolver implements MutableSchemaResolverWithQNameMapping public boolean isValidateBinding() { return validateBinding; }
1
272a54cd9b8f0367db1e97238c03a402
0c77fa521ba175586f5d835ba017a1da
线速度衰减
{ if (!std::isfinite(linearVelocity) || std::isnan(linearVelocity)) { ROS_ERROR("LyapunovController:: v error........!!!"); linearVelocity = 0.0; return ; } if (linearVelocity > (m_lastLinearVelocity + (m_Params.robot.m_linearAccLimit__m_s2 * m_Params.robotTime.m_deltaTime * MICR...
0
a28f6fcea9712e689019dfeabcd3de11
261974955280642f35e2d2433c23fab7
予定日(<code>PLAN_DAY</code>)の検索値をセットします。 (ANDまたはOR, OR以外の文字列の場合はANDとみなします)
public class ReStoringPlanSearchKey extends DefaultSQLSearchKey public void setStorageDay(String value, String compcode, String left_paren, String right_paren, boolean and_or_toNext) { setKey(ReStoringPlan.STORAGE_DAY, value, compcode, left_paren, right_paren, and_or_toNext) ; }
0
4bd4893c50580bc551942311ff678ef5
6be5cbbce8ec3c1393379ee2785dab7a
Closes game Screen
public class Game public void closeGameOverScreen(GameOverScreen gameOverWindow) { gameOverWindow.closeWindow(); }
1
d0f8447ea69430896ccdd01df11963d8
7b317d2a0e170cb6517b3b0bca7e0d37
Method to load and add background music files to the sounds hashmap.
backgroundSound = Gdx.audio.newMusic(Gdx.files.internal("audio/background.mp3")); scrubSounds = new Array<Sound>(); scrubSounds.add( Gdx.audio.newSound(Gdx.files.internal("audio/scrub1.mp3")) ); scrubSounds.add( Gdx.audio.newSound(Gdx.files.interna...
0
97737c82fbf8ac69fa9f4bcd2d26745f
c316967adb1fc405cd9ad436796e891c
获取社团成员详情
CmsClubMemberDetailDTO getClubMemberInfo(Integer clubId, Integer userId);
1
df8f3b43a78b59e968f91cd54da3d685
78ab2666650b6bc7148cb5fa13c52c22
온라인POLL항목를(을) 등록한다.
@Service public class OnlinePollManageService extends EgovAbstractServiceImpl public void updateOnlinePollManage(OnlinePollManageVO onlinePollManageVO) { onlinePollManageMapper.updateOnlinePollManage(onlinePollManageVO); }
0
ec4f43748ed1a725f3ca65c5b683fdf3
932c752d0c2cc15c534279daf864aadf
Create an instance of {@link DisplayConfSiteLocalVideoEx }
@XmlRegistry public class ObjectFactory public DelSiteFromConfExResponse createDelSiteFromConfExResponse() { return new DelSiteFromConfExResponse(); }
0
034f5df4a34ffad94740f7ae3e54f58f
60200b77265560b9043cf81eaf63e4af
Function to Determine fitness of hunter
namespace HungerGenes class Enemy : Character public void evaluateFitness() { double fit, targetx, targety; fitness = health * power * speed; targetx = 360 - this.getX(); targety = 360 - this.getY(); fit = Math.Sqrt((targetx * targetx) + (targety ...
1
5ffa585fec1817d82b355a55bb855361
795e09d4b3ff0b30a795d6926f89095f
查询楼盘视频
function estateEvent() { $(".J_videosPlay").on("click", ".video", function () { var $this = $(this), clickData = window.estateData.data[$this.index()], $videoBox = $(".J_videoBox"), $preload = $videoBox.find(".preload"), $embed = $videoBox.find(".embed"), $text = $videoBox.find(".tex...
1
f05a2581d198c534f1626496a6f906f8
7805073e1feb6b62eef383e311534b96
={-------------------------------------------------------------------------- @brief : check if device to connect has audio source by checking through UUIDs
uint8_t dataLen) { uint8_t adLen; uint8_t adType; uint8_t *pEnd; pEnd = pData + dataLen - 1; while (pData < pEnd) { adLen = *pData++; if (adLen > 0) { adType = *pData; if ((adType == GAP_ADTYPE_16BIT_MORE) || (adType == GAP_ADTYPE_1...
1
d79b207f89aa3145d1f56c0b5b581867
0359655b86b0aef8d00ba8df73d05258
检查要出发的旅行团 - 每天
{ StringBuilder cmdText = new StringBuilder(); cmdText.AppendFormat("SELECT COUNT(*) AS Number FROM tbl_TourList AS A WHERE A.CompanyId='{0}' AND ComeBackDate <=GETDATE() ", companyId); cmdText.Append(" AND EXISTS(SELECT 1 FROM tbl_TourOrder AS B WHERE B.TourId=A.Id AND B.IsD...
1
9e6b0af6cecec5c5f056bd9ba7b60d2e
9767798b43c04571f79cb414f4df94da
GET /mb-internal-transfers/:id : get the "id" mBInternalTransfer.
class TransferController extends Controller public function show($id) { $transfer = Transfer::findOrFail($id); return response($transfer, 200); }
1
2135dc8d3e5f585b6651f48f0cb37184
fd38abb8f80bd5f38f91d371748ae472
Add a new chord in Trajectory.
def add_column_chord(root, name, format, length, track, root_base=0, channel=0): root_to_number={ 'C':60, 'D':62, 'E':64, 'F':65, 'G':67, 'A':69, 'B':71 } root_note = root_to_number[root] + root_base*12 chord = get_chord_arrangement(name) t...
1
f01dbc3b334f9e661d5ea704d9078f09
0e7c2bd3165368319f3856a5d25e4c42
Create a schedule with a learning rate that decreases linearly after linearly increasing during a warmup period.
class LinearWarmupExponentialLearningRateScheduler(tf.keras.callbacks.LearningRateScheduler): def __init__(self, lr_start: float, decay_gamma: float, epo_warmup: int = 10, lr_min: float = 0.0, verbose: int = 0): self.decay_gamma = decay_gamma self.lr_start = lr_start self.lr_min...
0
7cc6c8ef10026ac6f1f236bdb079a19f
33962259f9caaacd39afdfa02283ec39
Universal visibility for a project or benchmark domain in organic search results
class JobTestCase(TestCase): def test_is_organic_true(self): test_job = job.Job(listing=LISTING_GOOD, bridge_search_query="") self.assertTrue(test_job.is_organic) self.assertFalse(test_job.is_sponsored)
0
3f10a021316f2c4dcfe5a38f686ed125
f57e230edffca115ec6663876b8b5f76
returns the assembly id for the declaration of this type
namespace class RootEnumType : public EnumerationType IdentifierInfo *getIdInfo() const { return definingDecl->getIdInfo(); }
0