query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
37f6ae8e41994f930568ff63fc7f3801 | bc0510d06a7ef1e37bd5603756c11c48 | <p>
Getter for property <code>beta</code>.
Gets value for heaviest phase.
</p> | public int getB() {
return b;
} | 0 |
693475a200c7af46df3159e9192b1c3f | 00ca73d404cf551e6297513a03218495 | Check to see that removing a single node from the DoublyLinkedListCollection(Of T) results in the list being
declared as empty. | public void RemoveAt()
{
IList<string> collection = CreateMockList<string>();
collection.Expect(c => c.Count).Return(100);
int expectedIndex = 50;
collection.Expect(c => c.RemoveAt(expectedIndex));
new CircularList<string>(collection).RemoveAt(... | 0 |
323863604a8134b0121ae0a4dd385cea | df88a697660acb57543f2920ee9cf92b | Sets a bit's value of the nth bit from the right of a byte argument,
and return the result. | class Common:
def set_bit(self, old_byte, new_bit):
b = list(bin(old_byte))
b[-1] = new_bit
return int("".join(b), 2) | 0 |
0585794948e77d8cc567fe6c6405e9dd | 82f5cfd5e73d08568ca10d6d0bed47c4 | Восстановление заряда малого лазера | public class AttackController : MonoBehaviour
public void ResetLaser() {
laserController.ResetLaser();
} | 0 |
5832eb5979b85b5545ac2b5d3861db7b | 067f4dad7980e97bde6a7506e7300b03 | Returns flag that window was rendered successfully | bool result;
result = Render( );
if ( !result ) {
return false;
}
return true;
} | 1 |
3fd1df43d7e9261fb4633c00a5f417bc | a3a9390efa9451c87f1443793676c08e | 获取装饰风格对象X轴偏移量 | let xAry = x_axis_average_info;
let space = xAry[1].x - xAry[0].x - series.length * chart_w;
let every_space = space / series.length;
let offset = 0;
let center = (series.length - 1) / 2;
if (series.length % 2 === 0) {
offset = (index - center) * every_space;
} else {
if (in... | 1 |
5ede3da59c23e62a141eea7b38fe543b | 68b088f2a4a943a48e3031c8b1881b75 | Set properties through dot notation. | prop( props ) {
for( const key in props ) {
if( Array.isArray( props[key] ) )
this.p( key, ...props[key] );
else
this.p( key, props[key] ); }
return this; } | 0 |
301cfac026d2b858a3fe333af84d4200 | db4f18e58ee903b91e92c59976482876 | Função que, dada uma palavra, retorna a polaridade dela, o valor acumulado e o número de ocorrências | count = []
count.extend(collections.Counter(words))
dictionary = dict()
for word in count:
dictionary[word] = len(dictionary)
data = list()
for word in words:
if word in dictionary:
index = dictionary[word]
data.append(index)
reversed_dictionary = dict(zip... | 0 |
3603c8d69798fa373dffbd8bfb8af36d | 3be6aea8b474bf356ed165ec8da4fc4d | 配送单确认发货(Ajax调用) | class b2c_ctl_site_cart extends b2c_frontpage{
public function delivery_confirm(){
$this->set_header();
if (!isset($_POST['shipping']) || !$_POST['shipping']){
$this->splash('error',null,app::get('b2c')->_('配送方式的id不能为空'),true);
}
$shipping = json_decode($_POST['shipping'],tru... | 0 |
4519a1b247bb83245a1ae5ce1cffdcec | 3391d79e4c989031f9ccdd62ec4c5f60 | Generate byte code for a new array.
The length is expected to be on the stack. | retf3 = ctx.expression().accept(self)
size = retf3.register
check = self.registers.next()
self.emit("\t\tMOVE "+check+" LT "+size+" 1")
label = self.labels.next()
self.emit("\t\tCJUMP "+check+" "+label)
self.emit("\t\tERROR")
self.emit(label+"\t\tNOOP")
... | 1 |
7238eaf0652be43b338523d9902d1d09 | 09bf25c763e335ade25a4ac23d7d454b | Function that returns a free thread. | int tid;
tid_node_t * ptr;
if (tid_list == NULL) {
tid = thread_count;
thread_count++;
} else {
ptr = tid_list;
tid_list = tid_list->next;
tid = ptr->tid;
free(ptr);
}
if (tid >= THREAD_LIM)
tid = -1;
return tid;
} | 1 |
1fa02d02a24e061341474520448cea9f | 7f61448ad6da3ef0f9cb03f40c5be655 | https://docs.pytest.org/en/stable/example/simple.html | cases like (1) | 0 |
9880078ab5c230b4c41cb09f121c55a1 | 70fc555c02a15ca696fe882b4eb89e80 | Specification for VehicleDriver with Vehicle equals <param name="vehicleId" /> | namespace IO.Swagger.Test
[TestFixture]
public class VehicleTests
[Test]
public void VehicleIdTest()
{
} | 0 |
b44183b3b226122beba282b7cdc81b37 | bfddbb19b05e597ce0c3c8ab7e3eab4a | 进行xls到xlsx的转换 | if file.find('xlsx'):
pythoncom.CoInitialize()
excel = win32.gencache.EnsureDispatch('Excel.Application')
file = file.decode('utf-8').encode('gbk')
filePath1 = "{}".format(filePath[:-4])
filePath1 = filePath1.decode('utf-8').encode('gbk')
wb = None
try:
... | 0 |
d9f85bde6a8111237837da2b966359fa | 1423110f46b04dc7f50e167d4e6bc81f | Returns the event with the specified ID or null if that event is not registered | public class RandomEventHandler
public static Event getRegisteredEvent(String id)
{
Iterator<Event> iter = events.iterator();
while (iter.hasNext()) {
Event event = iter.next();
if (event.getID().equalsIgnoreCase(id))
{
return event;
}
}
return null;
} | 1 |
b2fd18e60116d2f725305a46eaf96577 | f8ebf7389c7d97a75712cb53f15a9125 | 更新活动rank | local function _updateRankInfos(eventId,msgVo)
self.m_rankEventHandle:updateInfos(msgVo)
end | 1 |
67635684abcdf48d2193554b054e8ce5 | bf710584de456d344bd3211a1a1a6699 | 查询过期的回访记录 | public class CrmPhoneDao extends BaseDao
public List<DynaBean> getRevisitInfo(String dealerId,String startDate,String endDate) {
StringBuffer sbSql = new StringBuffer("");
sbSql.append("SELECT A.REVISIT_ID,A.CUSTOMER_ID,B.CUSTOMER_NAME, B.TELEPHONE,TO_CHAR(A.BUY_DATE,'yyyy-MM-dd') AS BUY_DATE, C.SERIES_NAME,D.CODE_... | 0 |
b9ef908d5035e55d08aa20463de624a3 | 140211e2750e9e83708b15dff5923c01 | launches the vobsub indexer | {
$indexSuffix = '_' . time();
$this->csIndexer->ensureIndexAndTypeMappingsAllLanguages($indexSuffix);
$this->bourdonSettings = [];
$this->configurationManager->setConfiguration();
$this->configurationManager->setCurrentPageId(self::BOURDON_ROOT_PID);
$tsBourdonSettin... | 0 |
4d09ca117a33f906ab074cbd4f113a21 | f782cdcf8207601d3ada3bbb95b7c71c | 验证心愿码 | OkHttpUtils
.get()
.tag(this)
.url(Urls.STICK_CHECK)
.addParams(AppConfig.USER_ID, userId)
.addParams("sn", codeSNIntent)
.addParams("subNo", subNo)
.addParams("id", chuWeiId + "")
.bu... | 1 |
9a8e178a8daf377ebec4da2aeeff8878 | 56414e42fe905d5034eeca719ca387ac | Will create one example job in the queue, which later will be executed using run(). | class ExampleJob implements ShouldQueue
public function __construct(int $number)
{
$this->number = $number;
} | 0 |
9d4d45da9a0c0f36acbfbfa941c6d01c | a80657cbd254b494082b4fe0a02cfb52 | this creates the linked list and push patients from the input file | def create_and__enque_patient_ll(p5_a_file_name):
patient_ll = None
f = open(p5_a_file_name)
while(1):
line = f.readline().replace('\n','')
if len(line) == 0:
break
else:
line_split = line.replace('\n','').split(',')
name = line_split[0]
... | 1 |
177e4285db5807be1e7fc793e395552f | a02973351e8d77a8b21e10d199b154b9 | load in heightmap .raw | hm = skimage.io.imread(heightmap_png)
if hm.ndim > 2:
hm = skimage.color.rgb2gray(hm)
elif hm.ndim == 2:
if hm.dtype == 'uint8':
divided = 255
if hm.dtype == 'uint16':
divided = 65535
hm = hm / divided
hm = hm * height_scale_factor
retu... | 0 |
108c33392dd033de28ed785652d1def9 | 8e6e8e90a7b3ff963f275a79b1e28103 | Find the event for a changing time and a fixed blob | float humChange = timeForEvent * max_rateOfChange;
if (humChange > 15) {
max_rateOfChange = 15 / timeForEvent;
humChange = 15;
}
return humChange;
} | 0 |
e255616608585060770b5d53873c194a | 8549ca4a87b0f91ee72842228117d801 | Recursively remove all references (parents, children) in self and child nodes,
to allow garbage collection to work. | count=self.childCount()
current_childs=[self.child(i) for i in range(count)]
for child in current_childs:
self.removeChild(child) | 0 |
c9739f84f57fb546f34c6b1f2f431511 | b18ba61e50c52c70dd0be45ca5e02715 | Convert the dataframe to scans | dts = self.get_scan_time()
units = make_time_unit_str(min(dts))
time = get_metadata('time')
time['units'] = units
time['data'] = date2num(dts, units).astype('float32')
_range = get_metadata('range')
_range['data'] = self.range
_range['meters_to_center_of_f... | 0 |
56d84523561a7ef2ec1ef0d7191de1ec | bddb72b914680cb3d003826725712e79 | エラーチェック:対象年齢入力に半角数字以外が入力されないように | var str = document.iform.AgeText.value;
if( str.match( /[^0-9]+/ ) ) {
alert("年齢は、半角数字のみで入力して下さい。");
return 1;
}
return 0;
} | 1 |
8552557cb1ef67940b8a6fd88d422666 | 403ad818876da846db1d08e843572595 | Loads a plyfile from the specified filepath. | def load_plyfile(filename):
plydata = plyfile.PlyData.read(filename)
return plydata | 1 |
73c77ad2df0b06c8275fa23c14aa00d4 | 73931731ebab18d8c001888e51ef3ad1 | un-arm beam breaks for corridors, turn off all the leds | class Truck extends THREE.Group
breakLights() {
if (!this.break) {
if (this.getObjectByName("rightBackLight"))
this.getObjectByName("rightBackLight").distance *= 1.5;
if (this.getObjectByName("leftBackLight"))
this.getObjectByName("leftBackLight").distance... | 0 |
cc854343d3e28eba88c467d02040936c | cb4a16453026936ff6ad425e66313904 | Takes the passed BufferedImage and passes it through OpenCV's object detection model. | model_id = model['id']
net = model['net']
if(model_id == 1):
blob = cv2.dnn.blobFromImage(cv2.resize(image, (300,300)), 0.007843, (300, 300), 127.5)
else:
blob = cv2.dnn.blobFromImage(cv2.resize(image, (300,300)), size=(300, 300), swapRB=True, crop=False)
net.setInput(blob)
start = time.time()
detections =... | 1 |
e2e5fd4e856fbfcf51934490f8bddf55 | 60dc3464e11c173220799d868ff14a7e | Operation getTransactionsAsync | ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void up... | 1 |
5d6d5db3e88b69418abfa0fed1895756 | cb378887843e3b9e99570e8e12bf6d74 | zwraca nazwę ustawionego routera, gdy brak nazwy, zwraca null | #[Pure] public function getRouteName(): ?string; | 1 |
b64025a9b1c2a77b7493d9239323b386 | 39aae406855ec3193d4604f801e41d9b | efield3d | var o = this;
o.__base.FE3sRenderable.unserialize.call(o, input);
o._meshGuid = input.readString();
} | 0 |
c634ed0bb03e9434177133a936142f20 | 9052cc3ab47f5ce6c547318b93dc7734 | Gets the voucher number field. | public abstract class BaseTapvoucher implements Serializable
public java.lang.String getVouchNo () {
return vouchNo;
} | 1 |
93e96bfb389860fc6e6d96672250aeea | 5f13003b376f50f3bd79d855f336831e | Provides the definition of a data set to Data Engine. A data set must be
defined using this method prior to preparing any report query that uses such data set.
<br>
Data sets are uniquely identified name. If specified data set has already
been defined, its definition will be updated with the content of the provided def... | namespace Amazon.DataExchange
UpdateDataSetResponse UpdateDataSet(UpdateDataSetRequest request); | 1 |
b91629a04a4254e7ddc50abab6129369 | 245beacaf29bc57a36450249ad9dafeb | 存储预习模板 | {
if(!prepareTeamMateService.isPrepareTeamMasterByUser(user.getUserId())){
return "input";
}
prepareTeamList = prepareTeamService.getListPrepareTeam(user.getUserId());
if(teamId == 0){
teamId = prepareTeamList.get(0).getTeamId();
}
prepareTeam = prepareTeamService.getPrepareTeam(teamId);
SimpleDate... | 0 |
07efe7fda393ef9d8670dff6fbcb9661 | 350e455e3b2bc007493fe35b41a485ff | 设置是否隐藏分割线 | public class MeetingCalendarView extends LinearLayout
public void setDivideLine(boolean flag) {
mMonthView.setDivideLine(flag);
mMonthView.invalidate();
} | 1 |
11a1d35d678621bb83d5098d11e03c1d | fb4b368f5c3c6c4ae677a81d1f848f11 | 操作系统版本输入处理 | global sys_ver
for sys in cwmi.Win32_OperatingSystem():
sys_ver = sys.Caption.encode("UTF") + str(sys.BuildNumber) + "," + sys.OSArchitecture.encode("UTF") | 1 |
f04df40358cc5a8762175cc46bdecce6 | 3344d234840fdfa487f97b641f6f00fe | Gets ContentType ID based on $contentId. | class OrangeContentExtractInfo
public function getContentTypeId()
{
return $this->contentTypeId;
} | 0 |
40eacbb5e3ba60afcaeb62626eac95fd | aa6f72f90a8e7e2d9f0da0831ff9aee5 | Copies the dictionary to an array of key value pairs. | [DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(ViewDataDictionaryDebugView))]
public class ViewDataDictionary : IDictionary<string, object?>
public void CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex)
{
ArgumentNullException.ThrowIfNull(array);
_data.CopyTo(array, array... | 1 |
6e4e1b92424794db1257bcabb9803a7b | e8f39f3720b50e2d0f7cc1045e6a3363 | Randomize the appearance of the current character. | namespace CharacterCreator2D.UI
public class UICreator : MonoBehaviour
public void RandomizeSkinColor()
{
List<Color> skins = GetColors("Skin");
if (RollDice() > 80)
skins = GetColors("Bleached");
character.SkinColor = skins[Random.Range(0, skins.Count)];
... | 1 |
fe117ca479f971058af02c1c8a949236 | 1a9ba1380aaf4e6fce663f5f1816fb3e | A method that adds data to the stat object, in a thread safe way. | {
if (shouldStop)
{
return;
}
ASN1Element[] dataElements = new ASN1Element[]
{
new ASN1OctetString(statTracker.getClientID()),
new ASN1OctetString(statTracker.getThreadID()),
new ASN1OctetString(statTracker.getDisplayName()),
new ASN1Integer(intervalNumber),
new... | 0 |
ed5c6d1c496ec13d62cab0553512d56d | 1c855fe209884f387b14be6048789f7a | Author component initialization | class BlogPostsController extends BlogAdminAppController
public function initialize(): void
{
parent::initialize();
$this->loadComponent('BaserCore.BcAdminContents', ['entityVarName' => 'blogContent']);
} | 0 |
fc12d5b1134d164e6cb4ba7b6394eb8a | 131126327db2cbd21f1666ca6c5e60f7 | 绑定截止目前应收账款余额 | namespace Web.GroupEnd
public partial class Default : Eyousoft.Common.Page.FrontPage
private void InitBindMsg()
{
EyouSoft.BLL.CompanyStructure.Customer custBll = new EyouSoft.BLL.CompanyStructure.Customer();
decimal debtAmount = 0;
decimal maxDebtAmount = 0;
... | 0 |
aa3beb2234dd660625543d5a07d78fe2 | 2587342746b5916b7b489775076e8b5b | Perform Category Sync on any configured stores, adding new categories, updating modified and
deleting removed category since last sync. | class Controller
public function synchronizeCategories(): void
{
$categorySynchronizer = new Synchronizer\Category($this);
$categorySynchronizer->process();
} | 1 |
b5628a7b4d9e331c36f5bf4cbaacd227 | 636c4a606bc4702ff80c94910c056ac1 | Gets route of group list. | $group_content = $this->getEntity();
$group = $group_content->getGroup();
$route_params = [
'group' => $group->id(),
'group_content' => $group_content->id(),
];
return new Url('entity.group_content.canonical', $route_params);
} | 0 |
711882670bef4b12a46a7ea78dd6aee5 | 386b7b3878575bf53b9adc89d809fba0 | Send raw packet (caller provides header) | class MoloHubClient(asyncore.dispatcher):
def send_raw_pack(self, raw_data):
if self.append_connect:
return
self.append_send_buffer += raw_data
self.handle_write() | 1 |
67501167bbac65b64dbc081c1765f5d0 | 08f74f471a5ffd8d216fc1dd3e4e989d | Atualiza os interesses da tabela de interesses. | $intrest = $this->getParam('intrest');
$User = new User();
$result = $User->updateIntrest($intrest);
if(!$result) {
$this->showError($User);
}
$this->showOk();
} | 1 |
ece2e8360979a5661632990a822d660c | 8c6fe70d9bc35235c71dad413a148a32 | This function handles "premature" end of execution (when user exits it). | int prem_exit() {
exit_flag = 1;
return 0;
} | 1 |
bfbf27e677dc81c5c1e6247ac29f33e8 | 17fcd3f34783f68928d5584e047f2303 | Shows a dialog window that allows to unpair currently paired micro:bit board. | {
Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices();
final BluetoothDevice[] pairedDevices = devices.toArray(new BluetoothDevice[0]);
if ( pairedDevices.length == 0 ){
showQuitDialog( "No devices have been paired.\n"
+"You must pair it with a... | 0 |
c6b1347c348cfc190a96df308000ebb1 | 819723b0831b5047cee736e00a7fc413 | Test method when additional email provided, but not found in database. | def test_missing_email(wait_for_api):
invalid_user = dict(name='Test User',
username='testuser',
password='secretpassword',
email='',
bornyear='1979',
gender=1,
location='test location',
... | 0 |
b217c60b0e82c1e9b4d174e00607dc6d | 35871f64f7c6e3ec972ad78a86d0c2e5 | Show an in-progress string, gated by runtime configuration | void showProgress(String str); | 0 |
3e3d2481a313eec1c75538990d4a6ab0 | aa4961eb0bab4386670f882c3dd8e1c5 | Sets the collection parameters for the collection for 'AddressCollectionViaSalesOrderHeader_'. These settings will be taken into account
when the property AddressCollectionViaSalesOrderHeader_ is requested or GetMultiAddressCollectionViaSalesOrderHeader_ is called. | namespace AW.Data.EntityClasses
[Serializable]
public abstract partial class ContactEntityBase : CommonEntityBase, ISerializable
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
public virtual void SetCollectionParametersSalesPersonCollectionViaSalesOrderHeader(l... | 0 |
f2a19eb91251111b798d875e8deb873b | 0aea422fe6d59320aa754e7ea2631790 | Convert dtype string to numpy dtype. | metadata = _metadata_dict[dtype_str]
np_dtype_str = metadata.np_dtype_str
is_unsigned = metadata.is_unsigned
if is_unsigned:
if zp is None or int(zp) != zp:
raise ValueError("zero_point should be an integer")
zp = int(zp)
_check_zero_point(zp, dtype_str)
retur... | 1 |
c41efbde163900f831d527c053f1fa35 | 9ebfbaa8a00bb22ce61e11970d2a9f46 | Author: Matt LaMarche
Created: 2019/03/13
This is what happens when the subheader button for Rooms is clicked from the navbar | private void salaClick() {
closeAllSubWindows();
KeyFrame kf1 = new KeyFrame(Duration.millis(100), e -> closeMenu());
KeyFrame kf2 = new KeyFrame(Duration.millis(290), e -> openHallList());
Platform.runLater(new Timeline(kf1,kf2)::play);
} | 1 |
57c99d506e309722eddc7dacc18194ae | 4795ea94d41e1ea62ba8ad1c1514f19d | 将当前购物包设为选中购物包 | export default class RoomPage extends Component
setCurrentSelectGift(gid) {
const { dispatch } = this.props;
dispatch(wsAct.setSeleGift(gid));
} | 0 |
f0add6f1232460bedfe1bc87b291d148 | 9901165c6be85f566b09cebd9fda04df | 该方法用于处理HAWorkerEndpoint的main/shadow,当取到多条记录时,判断谁是main谁是shadow很重要 | if indicator_config.get('scheduling_type') == SchedulingType.BATCH.value:
for storage_node in main_table_storages_nodes:
if storage_node.get('cluster_type') == BATCH_CHANNEL_CLUSTER_TYPE:
return storage_node.get('id')
return main_table_info.get('id')
... | 0 |
1b2e2636b947334e21742f0992ab143b | 423f1c4a3e0e88552adde78452889178 | Forces a page NOT to be SSL | public function notSecure(); | 1 |
6353eddad35773b6d0ef7028f163717d | 70e3451ff7e22ddcc77c65e4877f2dd4 | 有序集合(zSet)数据类型 当前有序集合中的元素的个数 | @Component
public class XhRedisUtils<T>
public Long zCard(String key){
return this.redisTemplate.opsForZSet().zCard(key);
} | 1 |
51fa158cf807607bc18a120739f9db0f | 7339763f3aeed64d01b576047e724c5b | Returns success and previous working directory or failure and error message. | namespace RaspberryHelper
static internal class NativeClasses
[PreserveSig()]
int GetWorkingDirectory(
[Out(), MarshalAs(UnmanagedType.LPWStr)]
StringBuilder pszDir,
int cchMaxPath); | 0 |
7564c113bdbb4a35fe1ae7bdccf08f8f | 91d241db8ac31b471bacbcd1ba1e3503 | FCM으로 전송할 메시지를 입력받을 폼을 출력합니다. | @RequestMapping(value = "form")
public String form(Messagesend messagesend, Model model) {
model.addAttribute("messagesend", messagesend);
return "modules/management/messagesend/messagesendForm";
} | 1 |
8bd710f67cbb2249158b269e49cff2e4 | ee1193baf4fee457bed1abce5bb02189 | ============ TAO KHUNG CO BAN =========== | {
for (int i = 0; i < 10; i++)
for (int j = 0; j < 9; j++)
if(BanCo[i,j] != null)
if(BanCo[i,j].TypePiece != Type.TUONG && BanCo[i,j].TypePiece != Type.SY
&& BanCo[i, j].TypePiece != Type.TINH)
return;
EndGa... | 0 |
d44bdca10ea45e37a89c10396d9a288f | 4e2dce49053df4cc9e7ce05ce5597da3 | 用新的分析热更 dll 调用引用来生成绑定代码 | {
ILRuntime.Runtime.Enviorment.AppDomain domain=new ILRuntime.Runtime.Enviorment.AppDomain();
using(System.IO.FileStream fs=new System.IO.FileStream("Assets/StreamingAssets/logic.dll",System.IO.FileMode.Open,System.IO.FileAccess.Read))
{
domain.LoadAssembly(fs... | 1 |
b278eef6446ae4bcb519d8d7ef7f1bdc | 8f2129b3c6d100cdc3d54baaa6772cc0 | round robin 알고리즘 적용 시 time quantum은 입력값을 받아서 정해준다. | void RR(int qq){
Pro *p,*q,*head;
head=&pro[1];
p=head;
while (p-head<pro_num){
for(q=p+1;q-head<pro_num;q++){
if(q->in_time<p->in_time){
swap(p,q);
}
}
p++;
}
int time=pro[1].in_time;
for(p=head;p<head+pro_num;p++){
p->... | 1 |
c18e9d476fc3db3b1af062e857abb340 | dd3201e11301b73ca5f86ca7b9ad1384 | 用户赔率 | jQuery.ajax({
url: '/ct-data/user/userRebate',
type: 'POST',
dataType: 'json',
success: function(data, textStatus, xhr) {
if (data.sign) {
way.set("user.rabate", (data.rebate * 100).toFixed(1));
way.set("user.baccaratRebate", (data.baccaratRebate * 100).toFixed(2));
way.set("user.peopleBackWater... | 1 |
56c7d220dc9242d7519b07361ba285c5 | 11073b0d0e31fbd27a1e65fae273a9ca | Returns the meta object for the '{@link ecmm.ContextAction#execute() <em>Execute</em>}' operation.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EOperation getContextAction__Execute(); | 1 |
c71122467a70aee5c8760c8409a04d95 | 77b98baa6cf0c67da9ffb98cf9d5f995 | 通过ids获取blogs | List<Blog> listBlogByBlogIds(List<BlogTagRelation> blogIds); | 1 |
d7e9b748a19854bf55f9f05421947e6a | e38291b07c557c76d8aa2a632ccd1c11 | Get 任务结束后生成的文件格式,例如:mp4,flv等等。
注意:此字段可能返回 null,表示取不到有效值。
注意:此字段可能返回 null,表示取不到有效值。 | public class CreateImportTaskRequest extends AbstractModel{
public String getOutputType() {
return this.OutputType;
} | 1 |
065499f0d17064170df2849394f617ce | 7096cc5afc61572a360cea8026ae0cd4 | 不创建session | public final class LocalSessionClient implements SessionClient
@Override
public boolean createSession(SessionMetaData metadata) {
return false;
} | 1 |
0cc095e9a58ccc218bc9caaab6264e9d | 3692e2a67c098d0b1d463e514fc78cf5 | Returneaza numarul clientului | public class Server private class ConnectionToClient{
int getClient(){
return clientID;
} | 1 |
c74049d9a3f35be3ffe429a2e0b9919e | cddb69e6f7cc320c46fff289192966e1 | Add event handler for Expand/Collapse of CodeLine Sections and SubSections | if event.GetMargin() == 2:
if event.GetShift() and event.GetControl():
self.fold_all()
else:
lineClicked = self.LineFromPosition(event.GetPosition())
if (
self.GetFoldLevel(lineClicked) and
stc.STC_FO... | 1 |
e52f64dd15dce15bba6c65fe02eb1c02 | 2d8447dab578e6b59d27e3d63e445faa | 在编辑器Playing中每帧调用,显示节点状态 | {
if (UnityEditor.EditorApplication.isPlaying)
{
var enabled = GUI.enabled;
GUI.enabled = false;
UnityEditor.EditorGUILayout.ObjectField("Current State", StateMachine.CurrentState, typeof(CreatureState), true);
GUI.enabled =... | 1 |
020609c2d978fcca5cd8872adf053423 | 8684c512ec75dd6631e4df2e043c2033 | Current action marked for lock? | public class AsyncInterceptor extends AbstractInterceptor
private boolean actionIsLocked(){
String flag=(String)SessionTool.getAttribute(SessionKeyConst.ASYNC_ACTION_LOCK);
if(flag==null)
return false;
return flag.equals("true");
} | 1 |
ba69c2958df022080294ef076003d894 | bcb4dd347a988cfeafb230cce4933f98 | Return view bounds + some area at top , where enemies spawn | public class CameraManager : MonoBehaviour
Bounds GetViewableBounds()
{
Bounds tempBounds = GetPlayersBounds();
Vector3[] viewingAreaCorners = EssentialFunctions.GetAllCornersOfTransform(viewingArea);
for (int c = 0; c < viewingAreaCorners.Length; c++)
{
tempBounds.Encaps... | 0 |
219e981c58b53c97985a9a30ca12a943 | 5f9fff7c9fdc925e215af3dfc8803ec1 | 通过主键ID查询PlayerItem | public PlayerItemsFromShop getPlayerItemById(int playerId, int id); | 1 |
7ece0a8b0d4a7378dcbc9c0cd8363473 | c011286bafb38943b633878d37a0fed9 | Filter out excessively short examples | if example_str == "":
return False
if len(example_str) < 20:
return False
return True | 1 |
f83bfbe8751cbbfd6fe1e73027d48a27 | c00f34918e47a733a8f5b0b97bc629d8 | Returns the caption of a given thumbnail depending on caption display
configuration. | try {
return await TLI.getCaption(this._SMThemeLabelItemId)
} catch (e) {
console.error(e)
}
} | 0 |
aabfd82214cf790551b5dae6a99d97ec | 906e6c9b9f65d7a720d56fa3f1e455e5 | 获取往后推几个月的阴历月,如果要往前推,则月数用负数 | {
if($sign == 0) return date('Y-m');
$tmp_year= date('Y');
$tmp_mon = date('m');
if($sign < 0)
{
$sign = $sign*-1;
if($sign < $tmp_mon)
return date('Y-m', mktime(0, 0, 0, $tmp_mon-$sign, 1, $tmp_year));
if($sign == $tmp_mon)
return date('Y-m', mktime(0, 0, 0, 12, 1... | 0 |
5675026e84c653a325bbae7748be5b7c | 6d7c0476683e8372bf072b78535b3ea1 | You may specify a logic to determine whether it is worth to create a new company e.g. all required fields exist. | public function checkCompany(int $storeId, int $status, UidDTO $user = null): bool; | 0 |
9863876fe8b6ad1e1f21c6b4fe2bd910 | ddc84831185d4e9dbf5f6b30ba73c251 | Makes sure that the logo and app name in the nav bar are vertically centered | if ($('h1').width() > $(window).width()) {
var _logoLeft = (-1*($('h1').width() - $(window).width())/2)-15;
$('h1').css({ left:_logoLeft, position:'relative' });
}
} | 0 |
d7ef3a37900090f22f1f7f60fc635cf9 | 8e054e5a6cbb42723e070b836caf5320 | Check the argument list for an option (starting with '--').
Returns the adjusted argument list and the option found. | arg = arg.lstrip('--')
option = True
if '=' in arg:
arg, option = arg.split('=', 1)
return (arg.replace('-', '_'), option) | 1 |
89b2ec58c1d8654a04c17e09c791830b | 1b22bc3098dc6269ed0a8e9818324f14 | Register an integer MCA parameter | int mca_btl_udapl_register_mca_params(void)
{
int ival, rc, tmp_rc;
rc = OMPI_SUCCESS;
CHECK_PARAM_REGISTER_RETURN_VALUE(mca_btl_udapl_reg_int("free_list_num",
"Initial size of free lists (must be >= 1).",
8,
&mca_btl_udapl_component.udapl_free_list_num,
REGINT_GE_ONE), tm... | 1 |
1a67d046e9b4217188997798bc617e45 | 3ca5217513d724294209025711627fef | Decode DL message but don't do anything with content | namespace ancient::internal
DLTADecode::~DLTADecode()
{
} | 0 |
bc52b76c4afee92d1620dd3c1ab65b37 | ca22628332b0f33d8a4381f26ed1e61e | Get the default column width. | public class PanelFormLayoutRenderer extends XhtmlRenderer
private int _getColumnsDefault()
{
return _COLUMNS_DEFAULT;
} | 0 |
aca240ebf78221c84022cfea59d54b0c | 64c1ec78341be3436289db5394e92d59 | POST /group_events
POST /group_events.json | @event = Event.new(event_params)
user = self.extract_user
if user && user.id
@event.user_id = user.id
if @event.save
render json: @event, status: :created, location: @event
else
render json: { errors: @event.errors }, status: :unprocessable_entity
end
else
r... | 1 |
9729e4f61ece162611ba46083ab39c56 | 1dbbca96d35ae024659bccd8ef005290 | Get basic alliance data | {
this._allianceId = allianceId;
this._allianceName = allianceName;
this._allianceBadgeId = allianceBadgeId;
this._allianceExpLevel = allianceExpLevel;
this._allianceCreate = isNewAlliance;
} | 0 |
4c3e9e243f826fd1c41b022cfcd4504f | d59760cc6104f686816a28d23c7e91ec | 유저가 작성한 게시글 총 개수 | class PostController
public function postCount($user_id) {
$post = new Post;
return $count = $post->getPostCount($user_id);
} | 1 |
4d7c30c517120bbb101599873a2e4ca0 | 9d00c74824c5789158488d73e8ebe4a1 | Sets the starting input, hidden, and outut variables.
Also grabs the right and left Landro motors such that the nueral network
outputs can be used to drive them. | class MyRobot(wpilib.TimedRobot):
def robotInit(self):
self.br_motor = ctre.wpi_talonsrx.WPI_TalonSRX(1)
self.bl_motor = ctre.wpi_talonsrx.WPI_TalonSRX(2)
self.fl_motor = ctre.wpi_talonsrx.WPI_TalonSRX(5)
self.fr_motor = ctre.wpi_talonsrx.WPI_TalonSRX(7)
self.fr_motor.setInverted... | 0 |
3da2f09ab6d13b24fb55e62698705942 | f971ea5f5aea00130db0c18aea36dccf | Returns the available message flash categories. | {
return [
'maintenance' => Yii::t('podium/flash', 'Podium is currently in the Maintenance mode. All users without Administrator privileges are redirected to {maintenancePage}. You can switch the mode off at {settingsPage}.', [
'maintenancePage' => Html::a(Yii::t('podium/flash', ... | 1 |
fe5e980207f0b9764fd6e1183fa7fcc8 | 56da88cc0cc7a25b1ea1304c7a6b2d86 | 通过openid获取用户的电话号码 | public String selectWxUserPhone(String openId); | 1 |
6c827eef44e716cae9d6196f0b0b04c7 | c9c58b61bace9080be28f32ad1a0b5d5 | 根据类型名获取类型ID. | class Ap_Common_FileType
public static function getTypeID($typename) {
if (isset(self::$type_ids[$typename])) {
return self::$type_ids[$typename];
}
return 0;
} | 1 |
c535ca70443affd7d340b88f565fe28a | 132c8fc12da78b560fb706c42a52ad8d | @brief 百度地理坐标(BD-09) 转换成 世界标准地理坐标(WGS-84)
####此接口有1-2米左右的误差,需要精确定位情景慎用 | def wgs_bd(lon, lat, check_china=True):
result = lib.prcoords_wgs_bd({'lon': lon, 'lat': lat}, check_china)
return (result.lon, result.lat) | 0 |
f61bde0e0dcb98ded23fa06b8e8f3d9e | 3532faee22d89644ec6cfc3dd5379048 | 블럭 추가 함수 | if (env.isPushKey('1'))
{
for (unsigned y = 0; y < block.size(); y++)
{
block[y].push_back(std::make_shared<Block>(Vec2f(blocknum.x() * size.x(), y * size.y()), size, Vec2f(0, 0), BlockType::AIR_BLOCK));
}
blocknum.x()++;
}
if (env.isPushKey('3'))
{
std::vector<std::shared_ptr<Block>> temp;
for (int... | 1 |
839f3de695b3f903efbb96d975509f30 | 760b92bc5c88ece6033cb86eb2c0c842 | 企業の1ヶ月の可能件数をリセットする | class UserCount extends BaseModel
public function resetDailyCount() {
$this->clear_normal_daily = 0;
$this->clear_special_daily = 0;
$this->gacha_friend_daily = 0;
$this->gacha_gold_daily = 0;
$this->card_composite_daily = 0;
$this->card_evolve_daily = 0;
$this->card_create_daily = 0;
$this->card_plus_d... | 0 |
ff20f36c19c0d7d1bdca89dcf372b731 | a84fe66b0282610b8aff46a216ceb00e | 导出英文德语学时证明 | var date = new Date();
var name = dwbm+'校验报告'+date.getFullYear()+''+(date.getMonth()+1)+date.getDate()+date.getHours()+date.getMinutes()+date.getSeconds()+'.xls';
iceGetData(function (servicePrx) {
servicePrx.exportAduitCase('',Year,Month,BBJB,dwbm,BBID,SHGX,LDATA,RDATA,iispath+'//sjjybg//'+name).th... | 0 |
53740d92dd35bcd2229650d45d3d7732 | 634d150be8fa88137927f74035cffcd2 | Push to gist. | fun uploadFileToGist(des: String, file: File) {
val limit = app().memoryConfigBean.uploadLogLineLimit
val log = file.readTextLastLines(limit)?.ifEmpty { "no data!" } ?: "no data!"
val info = buildString {
app().let {
Device.screenInfo(it, this)
appendl... | 1 |
43800da050fb90dd0936d736611cad24 | 3ab7e0e50e535d126fddd7d3ca5ae470 | prints the number in binary and then ends the line | void binaryString(int value) {
int compare = 1 << sizeof(int);
do {
printf("%i", value & compare ? 1 : 0);
compare = compare >> 1;
} while (compare);
printf(" ");
} | 0 |
5201e1fc0f56f086306b875f3dcc1f23 | f0c936788e56088608c7fb12ea98fe3e | Create symlinks to image files so project can be
contained in single directory | for origin, destination in PATHS.items():
home = os.environ['HOME']
dest_real = Template(destination).substitute(HOME=home)
if(os.path.lexists(dest_real)):
print dest_real + " already exists, skipping"
continue
print origin + " => " + dest_real
os.syml... | 1 |
5ee5d1c08311a8bc5584bda485de8191 | 483073e4a8d4f80df7a77b66142350da | Initialize parameters from the parameter server.
Returns true if the parameters were retrieved from the server, false otherwise. | if (!ros::param::get("/uav_slam/icp/ransac_thresh", ransac_thresh_))
return false;
if (!ros::param::get("/uav_slam/icp/tf_epsilon", tf_epsilon_))
return false;
if (!ros::param::get("/uav_slam/icp/corr_dist", corr_dist_))
return false;
if (!ros::param::get("/uav_slam/icp/max_iters", max_iters_))
... | 1 |
ec158906d3a35175a8a08bf256315f7c | c54bafcf42eb8e39d9079a655dc0e869 | Takes a dataframe and a list of columns that should be categorical and
makes those columns categorical | categorical_variables = df.select_dtypes(exclude='number').columns.to_list()
if len(vars_to_change) > 0:
categorical_variables = vars_to_change
for var in categorical_variables:
df[var] = df[var].astype('category')
return df | 1 |
87f7dc9dbb33b584d838da4b92546048 | 573497410596463de8afd106eee4f5ec | 0x94 SUB H : Subtract H from A
Flags affected:
Z - Set if result is zero.
N - Set.
H - Set if no borrow from bit 4.
C - Set if no borrow. | void CPU::op0x9C () {
SubtractCarryA(HL.hi);
clockCycles = 4;
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.