query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
ad77f8ed33c7d139a0d7c515f0e13cd7 | f0c12b0012b867bbb855ff4ae0f7941f | Check for a match in a dictionary using a delimiter character to denote
levels of subdicts, and also allowing the delimiter character to be
matched. Thus, 'foo:bar:baz' will match data['foo'] == 'bar:baz' and
data['foo']['bar'] == 'baz'. The latter would take priority over the
former, as more deeply-nested matches are ... | if pattern in keylist:
return pattern
match = None
pparts = pattern.split('.')
if len(pparts) == 2:
for k in keylist:
kparts = k.split('.')
if (len(kparts) == 2 and
MATEDriver._part_match(pparts[0], kparts[0]) an... | 0 |
15501f255fe2cfe977512627833c2f83 | ece3e565cf84b468d806f95ba7a8a598 | @brief Soil thermal equation | double *bi, double *ci)
{
int k;
double rhstsin[MAXLYR];
double ciin[MAXLYR];
for (k = 0; k < nsoil; k++)
{
rhsts[k] *= dt;
ai[k] *= dt;
bi[k] = 1.0 + bi[k] * dt;
ci[k] *= dt;
}
for (k = 0; k < nsoil; k++)
{
rhstsi... | 1 |
2c12675c12075cddf0e9d805c870ee7d | c2072eeddc2b7e125a9c9fb887340821 | Ajax통신으로 소설의 프로필을 가져오는 기능입니다. | @Controller
@RequestMapping("user")
/* user 에서 */
public class UserController
@RequestMapping("/friendprofile.do")
public ModelAndView BoardContent(String phone, HttpSession session, String no) {
ModelAndView mv = new ModelAndView();
if ((String) session.getAttribute("sid") == null) {
mv.setViewName("result");
... | 0 |
b96c4158f7d35f222216745fddb7f32c | 328522e4ebd0a40d5064bd0522d62a64 | 在缓存末尾添加一个元素 | class CacheRedis extends Cache
public function rPush($key, $value){
self::connect(true);
$result = $this->handler->rPush($key, $value);
return $result;
} | 1 |
af81d6d8208131dbd622c6c7bfe13337 | 5b1209c7cfdfa6ff46590e2cb2adba0f | 주문번호로 주문테이블 한 행 가져오기 | String sql = "SELECT id,user_id,status,total_price,order_date,destination_name,destination_email,"
+ "destination_zipcode,destination_address,destination_tel,delivery_time,payment_method FROM orders WHERE "
+ "id=:orderId";
SqlParameterSource param = new MapSqlParameterSource().addValue("orderId", orderId);... | 1 |
84941987422a9ce15b3fd00d21ea2538 | a8e7c5d1558c314a20fb7cadda68ad43 | Returns the field info for the specified field of the specified type. The
field info is opaque for the caller. Methods {@link #isRelationship} and
{@link #getElementType} allow to get details for a given field info. | public abstract class InstanceFieldInstruction extends FieldInstruction
public abstract ElementInfo peekElementInfo(ThreadInfo ti); | 0 |
6e0117700a7e769efba210e4cac26cf0 | 256a26faf815be718633c5b834d9cc52 | 按毫秒 通过定时器比较精确地地实现延时 | void TIMx_DelayMs(uint32_t nms)
{
if (!nms) return;
DELAY_TIM->PSC = TIM_GET_PSC_BY_CNT_FRE(2000);
DELAY_TIM->ARR = 2 * nms;
DELAY_TIM->EGR |= (0X1<<0);
DELAY_TIM->SR &= ~(0X1<<0);
DELAY_TIM->CR1 |= (0X1<<0);
while (!(DELAY_TIM->SR & (1<<0)));
} | 1 |
56050c294796ed39dc88e92c6f57b402 | c609c4061c72aad9c322f057348e4266 | 根据游戏获取Dl支付信息 | $game_id = empty($_POST['game_id']) ? 0 : (int)$_POST['game_id'];
$user_id = Yii::app()->session['web_user_id'];
$response = array('code'=>-1, 'msg'=>'failed');
if( ($game_info = CustomGame::model()->findByPk($game_id))&&(($game_info->user_id==$user_id)|| !empty(Yii::app()->session['admi... | 1 |
9bb5adf5ef73bbd82897ccd7d14bafff | c40e9dacd13aaeadacd1e9bdb63a60f5 | 根据员工ID获取审核通过的薪资档案(非离职) | @Service
public class EmpMonSalServiceImpl implements EmpMonSalService
@Override
public EmpMonSalAllExt getWageByEmpId(Integer empId, Integer yearMonth){
return empMonSalHandler.getWageByEmpId(empId, yearMonth);
} | 1 |
e686865510936e1366e5ccd2a0a40960 | 42d863c1b5377379521751c357845653 | This function is used to hide progress bar and start Main Activity after Creating and updating databases. | TextView cnet = (TextView) findViewById(R.id.txtConnect);
ProgressBar pb = (ProgressBar) findViewById(R.id.pbConnect);
cnet.setVisibility(TextView.VISIBLE);
pb.setVisibility(ProgressBar.VISIBLE);
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent... | 0 |
a572c9eb659c996ab12e7f3cf5230758 | 000174bdd1a4bf0730b91d2dbc1cd45b | Add item to Worker_Reference value | {
SelectedItem.Workers.Add(new Worker(" ", " ", " ", 1, false));
} | 0 |
d2b85e89fc2876a5580d71110f448a86 | 59818ccb96e6f4d5bd7b150271dfb053 | !
\brief Deletes a filter object
\retval 0 Success
\retval -EINVAL Bad handle
\retval -EIO Hardware error
\retval -EBUSY The filter object is attached to another object and cannot
be deleted | {
HRESULT hr = E_NOTIMPL;
DBGINFO((DBG_CONTEXT, "Delete\n"));
return hr;
} | 0 |
c804bb19c93246c7686ae8f05c37ff64 | 4ececb1c23890bf83cbac769af134161 | runs the same level again | public class pause : MonoBehaviour
public void Reload(){
Application.LoadLevel(Application.loadedLevel);
playerMove.flipped=false;
GameObject.FindGameObjectsWithTag("gameAud")[0].GetComponent<AudioSource>().Play();
GameObject.FindGameObjectsWithTag("menuAud")[0].GetComponent<AudioSource>().Stop();
... | 1 |
9cafbec09d21adbbb6f1fb38b092d951 | 81f8f517f8d072f2f030142b56ef8d00 | Gets the "multiplier" element | String getMult(); | 0 |
a4db5a08449de09dae11e30f3b80db1a | b4322762d3bb6e2b270d8b22a5f88b0b | pretty-printed version of above | def pretty_print(board):
string = str(np.array2string(board[1:13])+'\n'+
np.array2string(board[24:12:-1])+'\n'+
np.array2string(board[25:29]))
print("board: \n", string) | 1 |
c9be1c812438f76ca4e2069750c9a8ed | 0edec5c0cc9b5772bb3fe06e013fd41f | Based on a deseasonalized temperature, predict what the
deseasonalized temperature will be three days in the future. | class Predictor(object):
def deseasonalize(self, temp, doy):
deseasonalized_temp = temp - self.temp_calendar[doy]
return deseasonalized_temp | 0 |
1ca9e99e6e8a0c85d66a7481b6001773 | 4be253c024d3acdf7618ae0c57d3664b | Returns the end on monday. | weeks--;
int mondayPlus = DateUtils.getMondayPlus();
GregorianCalendar currentDate = new GregorianCalendar();
currentDate.add(GregorianCalendar.DATE, mondayPlus + 7 * weeks);
Date monday = currentDate.getTime();
DateFormat df = DateFormat.getDateInstance();
return... | 0 |
382ce2cd592e6e8002e45ebcbe1213b0 | cd41f3b16e62d1bb119a79ab775268cd | Tests a person with an assignment with correct date is a valid user. | class PersonViewTestCase(TestCase):
def test_true_validate_person_request():
PersonView.validate_person_request(PersonDataRepository.get_valid_person()) | 0 |
e14cdc23b6e3bca71a1c95673fb23e19 | ddd7e27d6808035d439b4cfcb20b1a73 | Determines and sums the inversion count of each element
Inversion count is the number of elements smaller
than the current element in the rest of the array | class Inversion():
def __init__(self, array, inversion_count):
self.data = array
self.inversion_count = inversion_count | 0 |
372beeeca698ef4f2f817ee7b0036c3f | 4a4eb5c375195c70cf501fdcd2d89074 | crée une liste de produits filtrés pour un meilleur affichage | {
$filter=$this->filterBuilder
->setField('featured')
->setValue('1')
->create();
$filterGroup=$this->filterGroupBuilder
->addFilter($filter)
->create();
$sortOrder=$this->sortOrderBuilder
->setField('name')
... | 1 |
8dda14b30d1640c89040239d3c52874a | 4f432446256f65998c43a2a9c7df1b5a | Validates the incoming postMessage | try:
validate_Message(response_json)
return True
except ValidationError as e:
import json
print(e)
return False | 1 |
47074175b687738384a5de050247af19 | 8beaf5e79bf707fd47687c6fc2928810 | 获取浏览器全图 | class GrackGeetest():
def get_chrome_page(self):
page_shot = self.browser.get_screenshot_as_png()
page_shot = Image.open(BytesIO(page_shot))
return page_shot | 1 |
59f957433651bd232539875fcc1ba7d2 | 0fbea4a322a080409adf0808317f06b2 | Generate Tiles for each Dino in Array
Add tiles to DOM
Remove form from screen | var i = 0,
length = fData.length,
newTiles = [];
for ( i; i < length; i++ ) {
var newDiv = document.createElement('div'),
newFig = document.createElement('figure'),
imgAnchor = document.createElement('a'),
newImg = document.createElement('img'),
newFigCap = document.createElement('figcaptio... | 0 |
63d0cf417beb218e53a5bb8c819b3fac | ff5b2cbe8c51e8e7e5eb00df4d2a97aa | Calculate the mode for a skewed gaussian | def MODE_SHAPE(fwhm,n_m,center):
x = np.arange(0,n_m,1)
sigma = fwhm / 2.35482
mode_shape = np.exp(-(x-center)**2/(2*sigma**2))
return mode_shape | 0 |
b71e8c5cc5e97b60276d62e652a0d87d | 690e90858350f62e9a0fb4bc3a467b75 | Loads the registration success page. | def register_success(request):
return render(request, 'registration/register_success.html') | 1 |
7b595b35e52d4c97d6a9dfbe5137ae07 | ec6011caf96c87910a9dcb16437e2d5f | Retrieve sub-collections from a collection identified by the given ID | class WebZotero(PropertyBase):
def collection_children(self, coll_id, **kwargs):
return "/{t}/{u}/collections/{x}/collections" | 1 |
3a640e9c173ea0238e38cf07068a980c | 1891ed7d094e1574844d253dc5b9042c | I2S Send data. | void I2S_Send(LPC_I2S_TypeDef *I2Sx, uint32_t BufferData)
{
I2Sx->TXFIFO = BufferData;
} | 1 |
4f52d32d3155d6cad5737bf320156e61 | 60790d26300b978ed1ee82c2ac849bec | Simplifies compound constraints. For e.g. when an AndX
is inside an other AndX, it gets simplified to a single
AndX. | for child in self.children:
child.simplify()
if child.is_operator:
if child.name == self.name:
for grandkid in child.children:
self.add_child(grandkid)
self.rem_child(child)
if len(child.child... | 1 |
04b6cc1486bae86a2b39ae5cbae00208 | 8407af8659bdc83fa44f2632ebd41d18 | Starts the Azure Indexer feature. | namespace ProfitClicks.Interfaces
Task StartAsync(CancellationToken cancellationToken = default); | 0 |
ea78d52f0b49c890ab1ce1f23b110d44 | c9c9469829947e9faf81e5aa1effac58 | Determine whether java is installed | return @jruby if defined?(@jruby)
@jruby = RUBY_PLATFORM =~ /java/
end | 0 |
4355b416bd5fbecca5a1ba4fe97fd0b0 | 7d50effd5d3eea83a8c246b36e76b1d1 | Instead of spaces it should be separated with dots, e.g. Hello World -> Hello.World | class StrNormalize
public static function toDashSeparated(string $input): string
{
return self::separate($input, '-');
} | 0 |
ae3f29e43b4b7860654f100d145a9599 | ea63d8422a748db9656f47b315309e94 | Test photo model includes a string for user. | from imager_images.views import AlbumCreateView
form_class = AlbumForm
request = self.request.post('')
request.user = self.bob
photo_id = self.bob.photos.first().id
view = AlbumCreateView(request=request)
data = {'title': 'test', 'description': 'testing',
... | 0 |
38dae6b8d99fbb1c9176965a23471df2 | 9365ce05423deb7a4341dd57c619e3a0 | GET: HoaDons | {
var chiTietDDHs = db.ChiTietDDHs.Include(c => c.DDH).Include(c => c.VatTu);
return View(chiTietDDHs.ToList());
} | 0 |
6598e38f1625b35db67d6600e053b66b | b857ca7829c5aee15caa68ac160e9b09 | Read and print the response sent by the file host | static int read_response(int fd, const char* cmd) {
size_t size = 8192;
char* buf = malloc(size);
size_t off = 0;
while (buf != NULL) {
ssize_t bytes = read(fd, buf + off, size - off);
if (bytes == 0) {
fprintf(stderr, "Unexpected EOF reading response\n");
return ... | 1 |
60ea11c25a1a108191c610e49a390503 | 44ad6c7f75bfd86fe24cf1a1d6a40888 | Возвращает имя расы в единственном числе (например "Человек") | {
return IsKnown ? Name : (Evil ? (SexIsMale ? "разбойник" : "разбойница") : (SexIsMale ? "прохожий" : "прохожая"));
} | 0 |
bce9bcd3329e6f8dabd9acfa3e3fa1de | 0ab320473d71ad726f10d968aa96aedf | Getter for <code>BAS_UNIT_CONVERSION_LST.N</code>. | @Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BasUnitConversionLstRecord extends TableRecordImpl<BasUnitConversionLstRecord> implements Record4<Long, Long,... | 1 |
4130e98fcc4619f6d0df097cee74c7a2 | 9a6aae8dd4b8c34161a1d5e357179d74 | Convert type to native format. | class JsonType(object):
def to_native(self):
return self.value | 1 |
cf9a7ad9b42319ea9ac9761f62ad7c11 | b5e6f6985f05dd7b30b2a772239d80eb | The servers owner. | class Servers extends Model
public function ServerOwner ()
{
return $this->belongsTo(Owner::class,'owner_id');
} | 1 |
67b237a433dcd59b1cfc180f910ac3d6 | 734670099b3dc1e8bfec7f0c09e37a48 | Returns <code>true</code> if the given retangle is inside the area specified
by the receiver, and <code>false</code> otherwise. | @Pure
boolean intersects(RoundRectangle2afp<?, ?, ?, ?, ?, ?> roundRectangle); | 0 |
0492eff1ee140d176435f33d81090175 | f70e0ee16862444dd46b501af16ec66b | only allowed to access for admin users | class UserViewSet(viewsets.ModelViewSet):
def get_permissions(self):
return [IsAdminUser()] | 1 |
19ccb38a671523c812da253c46febbf9 | 6c66ed2e0377a0611b5b648a95bed597 | Whether or not JavaScript works in this browser. | namespace JavaScript.Html
public abstract class Navigator
public bool JavaEnabled()
{
return false;
} | 0 |
ff8f37287c0acbc86ebc3db578075ac4 | f3e345588e0d10521781e7951c9edd54 | Returns the entity layout storage. | class Query extends QueryBase implements SparqlQueryInterface
public function getEntityStorage(): SparqlEntityStorageInterface {
if (!isset($this->entityStorage)) {
$this->entityStorage = $this->entityTypeManager->getStorage($this->getEntityTypeId());
}
return $this->entityStorage;
} | 1 |
ebce5256d376480d7a8dff373b52047b | 344cde145f505e686c069717fc6abcb6 | 保存人员资质树信息 | @Controller
@RequestMapping(value="account")
public class AccountController extends BaseConstroller
@RequestMapping(value="saveDataAuth",method=RequestMethod.POST)
public void saveDataAuth(Sys_account_tree account_tree,String tabletype,String filter,HttpServletResponse response) throws IOException {
response.setCont... | 1 |
e426370daa29a2ab66a456aeaf9ce527 | a4d679a0282d95544c440fe0ba0fc066 | Add menu item to owner_block | $IPBHTML = "";
$IPBHTML .= <<<EOF
<td class='nopad marketmenu' valign='top' style='width:{$width}%'>
{$block}
</td>
EOF;
return $IPBHTML;
} | 0 |
d4c48d436545af0387635bf12f41c221 | c3ac3a6e20e17e0f7b7e55793693fe56 | Gets a cannonical definition of the field. | try:
request = field_pb2.GetRequest()
request.field.CopyFrom(self._message)
out = self._stub.GetFieldDefinition(request)
return FieldDefinition(out.field_definition, self._server)
except:
return | 1 |
7a6cf003d804abcb480e906e64d7cf97 | 0e89a7f417a4b31611188418bdd9515f | Gets the bot color in the server where the message has been sent | function getAvatarColor(messageSender) {
var hash = 0;
for (var i = 0; i < messageSender.length; i++) {
hash = 31 * hash + messageSender.charCodeAt(i);
}
var index = Math.abs(hash % colors.length);
return colors[index];
} | 0 |
e9b54034c7df7db92ba6048c45d172a9 | b2adad6732182de2b3eef6b017b9409e | 해당 강사의 강연 정보들 가져오기 | def get_clss(db,teacher_name):
teacher = get_teacher(db, name=teacher_name)
return db.query(table.LeadTheClass).filter_by(teacher_id=teacher.teacher_id).all() | 1 |
73097da6f3dd4b4a08b97a40d5759a5a | d9875ef6961851e1d05d9daa2880398b | Turn off the title fallback to avoid empty titles | class G1_Theme_Front
public function setup_seo() {
add_filter( 'wp_title', array( $this, 'prevent_empty_title_tag'), 10, 3 );
} | 1 |
fab5bf2ece0623f6eaa2f8c69beeab29 | 3fc2c7d723532fc790d02e83f4dcffcb | calculate SFRs using calibration given in Murphy+11 | void MyDetektorHitSorterAchimHex::Calibrate(const MyDetektor &d, MyHistos &rm)
{
const double tsU = d.GetTsu();
const double tsV = d.GetTsv();
const double tsW = d.GetTsw();
const double u1 = (u1d.size())?u1d[0]:0;
const double u2 = (u2d.size())?u2d[0]:0;
const double v1 = (v1d.size())?v1d[0]:0;
const double v2 ... | 0 |
e92df175ca1bf433c640cff712ad6655 | 324965380c6c9787f4faa15486f9d683 | 返回是否刷新了格子 | function IMapObject:on_refresh()
self:refresh_cell_on_map()
end | 0 |
0ea6a55260107708437638fed0db8c72 | f9b2227241afa38ec33c061a44863b49 | Makes note of the fact that the given contentId exists. | {
$query = $this->db->getQuery(true);
$query->select('COUNT(' . $query->qn('a.content_id') . ')');
$query->from($query->qn('#__content', 'a'));
$query->innerJoin($query->qn('#__content_types', 'b') . ' ON ' . $query->qn('b.type_id') . ' = ' . $query->qn('a.type_id'));
$query->where($query->qn('a.content_id')... | 1 |
26da52a3c2e6ca261ed1beb2057d26ed | 921f167605c9d4861314838a8478b16e | Get the [signin_count] column value. | class Login implements Context
public function getCount()
{
return $this->count;
} | 0 |
c79b2d6897c5265bb52a3728cffe0246 | 6ee72cf653834d03fa280c32c8d0f20f | Reads in general companies orderTimes_% and formats. | allData = pd.DataFrame()
for command in listOfCommands:
commData = pd.read_table(os.path.join(dirName,command+'.txt'), parse_dates=True)
commData['DateFormatted'] = [datetime.datetime.strptime(a, '%Y\\%m\\%d %H:%M:%S') for a in commData['DateTime'].values]
commData['Command'] = comma... | 0 |
c0a25dcff9db09b20f0bf579bab9a48e | 01b24f10432e338da4cc9f6cda6591e6 | Gets the internal color of the tile located at the position (i, j) | class BoardGraphics:
def getInternalColor(self, i: int, j: int) -> tuple:
return self._colorMatrix[i][j][self._INTERNAL_COLOR] | 1 |
0684260a9ce4805eb1fecedc3e4a9aeb | a8c73560afa668400303b106d6e49c30 | Thay đổi loại của tất cả các điểm trên màn hình chơi | namespace ReversiGame public class BoardObject : MonoBehaviour
public void OnChangeAllScore () {
allScore.SetActive (!allScore.activeSelf);
} | 0 |
5c754c13cfbe67d016a4176565159ac6 | f3ff77081b41add8b44ea3186957b8b8 | Call different versions of needle detection up thread. | {
char *rawNeedle = cgiString("needle");
char *rawHay = cgiString("hayStack");
enum ffStringency stringency = cgiOneChoice("stringency",
stringencyChoices, ArraySize(stringencyChoices));
enum sv strand = cgiOneChoice("strand", strandChoices, ArraySize(strandChoices));
needleInHay(rawNeedle, rawHay, strand, stringe... | 0 |
4c786101cddde7f4092236d6f2e20af0 | b638fd0a3f601d14281374a779156510 | Arrêter le charriot | void CentraleHydraulique::arreter()
{
pCoffretPecheur->sTor.word_16bits.marcheCentraleHydralique = 1;
ecrireDonnee();
} | 0 |
d91c59d37d56fd273d0b7d6ea105aff5 | 5a1dca8c8361427e35e14eb249af7248 | 存储下载的文件的方法: | file_query = self.filter_query(page, page.url)
file_path = self.to_file_path(file_query)
self.check_path(file_path)
raw_data = self.reconstruct_data(page)
with open(file_path, 'wb') as fd:
fd.write(raw_data)
self.logger.info("storage a file, url:{}, file_p... | 1 |
4b5a29d82fe6aad01b2d8d5ef08f9f84 | 68089dfc6e62396db67573d6e67b012d | 根据诗歌名查询诗歌数 | public int checkPoemNameUnique(String poemName); | 0 |
a9fff919adde957c850fe4c16162622f | 488ea2f151c3a9ce3688068c27ca575c | no migration needed if running in memory | public abstract class BaseSqlgMigration extends BaseJavaMigration
@Override
public final boolean canExecuteInTransaction() {
return false;
} | 0 |
742fcaa1d625da4cc4394b0397e3b4ea | 6ad1dd1bc91d2daf80d1019eb88291eb | An integer of the dataset cardinality. | class Dataset(File):
def size(self):
return self.invoke('size', [], []) | 1 |
143f7ada0b8bcb0a59494c8c62172bb1 | d499ec63753b5760f4fc5015a7dc42c2 | 前端控制器模式(Front Controller Pattern)是用来提供一个集中的请求处理机制,所有的请求都将由一个单一的处理程序处理。该处理程序可以做认证/授权/记录日志,或者跟踪请求,然后把请求传给相应的处理程序。以下是这种设计模式的实体。 | this.context = ctx
this.name = req.app
this.request = req
this.response = res
} | 0 |
9b34ee3352d5bbe34b8ac4ca682b04f0 | adc3fea6218207fe9a0bdb8555b135c1 | Generalizing input files specific for gromacs tools, default naming | self.inputfiles = inputfiles
self.models = []
self.header = []
self.radius = None
self.atoms = []
self.grid = grid | 0 |
b2d37b7a4f30372fa8b1912b817a4c70 | 2b36dd1e55daa54b72b404c68d948495 | Gets the practice setting | @Entity
@Table(name="jp_job_temp")
public class JpJobTemp implements Serializable
public int getPracticeSettingID() {
return this.practiceSettingID;
} | 1 |
aeae4899aa2b698813163c14e7e9a783 | fa21b84d1b407707755e4a6525f0c036 | Realises the attack on AES encrypted data. | {
uint8_t round = 0;
AddRoundKey(0);
for(round = 1; round < Nr; ++round)
{
SubBytes();
ShiftRows();
MixColumns(MBEDTLS_AES_ENCRYPT);
AddRoundKey(round);
}
SubBytes();
ShiftRows();
AddRoundKey(Nr);
} | 0 |
abc278a67eb2f6807ee504e9d9433e5a | 3727be57382efc576881f4d563d38b0e | Returns the value of the '<em><b>Vpc id</b></em>' attribute.
<!-- begin-user-doc -->
<p>
If the meaning of the '<em>Vpc id</em>' attribute isn't clear,
there really should be more of a description here...
</p>
<!-- end-user-doc -->
annotation="OCCIE2Ecore description='null'" | public class CreateClusterInstanceNicsBody
public String getVpcId() {
return vpcId;
} | 1 |
fb3b4ab414d061b1b835f513431ffd54 | 004aa4b68b69d15fb45b50aeee2cef9a | Инициализирует внутренее состояние данными соц групп. | {
foreach ($this->groups->getGroups() as $key => $value) {
$this->groupStatistics[$key] = new GroupStats($value);
}
} | 1 |
df430b1f1cfc6c20e99ebf4fc04ee560 | 718a5f3d5d7d85dfd2c5d65c2f573709 | Length of the edge.
Returns | class Segment: # pylint: disable=R0902
def length(self):
return self._length | 1 |
bc98d8151af77f77524cddb86fa5e816 | 1cf5f3e8a2d8253e7fc63f066818a778 | Authorized users can access upload page | def browse_all_uploads():
if server_tools.user_is_admin(request.form['username']):
return TRUE
else:
return "Perhaps you don't have privileges for that" | 1 |
16c3390d806c470f355e543aee77cb6e | 6eacc02cfb0a2aefb7307c8b00ddcdab | Returns the present value of an investment. The present value is the
total amount that a series of future payments is worth now. For example,
when you borrow money, the loan amount is the present value to the
lender. | public class MathUtil
public static double pv(double rate, double nper, double pmt, double fv, boolean type) {
double retval = 0;
if (rate == 0) {
retval = -1*((nper*pmt)+fv);
}
else {
double r1 = rate + 1;
retval =(( ( 1 - Math.pow(r1, nper) ) / rate ... | 1 |
07c5a63bfbde4d4f90e21abb83ecdd13 | 1cfd5061939304445393bc21cb6709da | 根据三级类别id获取对应的一级类别,二级类别,三级类别 | namespace LeFuCRM.Controllers.API.Product
[MyCustomFilter]
public class ProductController : Controller
public string getLevel3(int Level2ID)
{
string sql = $"select 三级类别ID as Level3ID,三级类别名称 as Level3 from [dbo].[Newlife_ClassThird] where 二级类别ID = {Level2ID}";
try
{
... | 0 |
5978ef0bff8dbe9df36c831d3238c488 | 1f4fca920efce2194182d307e340616c | Metoda, která se provede při prvním přiřazení stavu jako aktuálního. | public abstract class IState : MonoBehaviour
protected virtual void _StartState(IState oldState) {
this.gameObject.SetActive(true);
} | 1 |
9932d74c37c012fc7d82aef0bb08e5b5 | 20e66f5571e7a0378bb58996a4b74333 | بدست آوردن رشته تحصیلی براساس شناسه | {
DbParameters.Clear();
ProcedureName = "up_Tb_Grade_Get";
DbParameters.Add(new DatabaseParameter("GID", id, DatabaseType.SQL_Int, 4));
if (ExecuteStoredProcedure(DataOperationValue.SEL_OPERATION).DataReturn.SqlCode != 0)
{
throw new Ex... | 1 |
3d2a0ea1298f696535def3e65850844c | 8b6f35e57189ab9e0329e4453c9a3152 | 後台 顯示所有產品 包括 未啟用的產品 | class ProductController extends Controller
public function index()
{
$count = Product::where('disable', 0)->where('deleted', 0)->count();
$items = Product::where('disable', 0)->where('deleted', 0)->orderBy('created_at', 'desc')->paginate(25);
return view('front.product.index', compact(['item... | 0 |
78d9b66468cd9b1fd4f3c9b76c24f905 | 68fb9708a3f103c032ea91544fdca6bd | 清除全部日志 | public class LogManager
public void clearAllLog() {
Schedulers.io().scheduleDirect(new Runnable() {
@Override
public void run() {
File logdir = new File(LogManager.LOG_DIR);
if (!logdir.exists()) return;
File[] logfiles = logdir.listFiles()... | 1 |
616ec6a671796a2bac65c621f35dd653 | 308b433896719b87913f0740183e21fe | Returns the value of the '<em><b>Clock</b></em>' attribute.
<!-- begin-user-doc -->
<p>
If the meaning of the '<em>Clock</em>' attribute isn't clear,
there really should be more of a description here...
</p>
<!-- end-user-doc --> | public SessionClock getSessionClock(); | 0 |
7efa9b91ff7a993a25879d62f7d893da | b1684fbb435c62b853fe3c188e946125 | Return the IP from the panel. | class GetIpPanel extends JPanel
int getPort() {
return port;
} | 0 |
35491848489ab97a29ef20dd28057d10 | 03a57a757b8f90c94d62f241c5932b97 | ===============
CG_Tracer
=============== | // dist, dir, etc.
local endpos = data:GetOrigin();
local startpos = GetTracerOrigin( data );
local dist = ( endpos - startpos ):Length();
local dir = ( endpos - startpos ):Normalize();
// length
local length = math.random( 96, 128 );
local speed = 1500;
// life
local life = ( dist + length ) / speed;
// cre... | 1 |
56138fc68b337b74564ff59ac100b905 | 9960f4e57d7ca3206a8299fa2006aaba | 获得线段上距离指定点最近的点 | namespace Protein.Enzyme.DAL.Supermap
public static class GeneralExtensions
public static Point2D findPointOnExtensionLinesByDistance(Point2D p1, Point2D p2, double distance)
{
double x1 = p1.X, x2 = p2.X;
double y1 = p1.Y, y2 = p2.Y;
Point2D objPoint = new Point2D();
... | 0 |
ea2640e4e7d76e617f6d8fb07ecfc6e2 | de2935373b3994ba3d10d7bccb433e13 | Returns a ready-to-use TAFFA API Object | public class TwitterToolAirflow{
public TtafResponse getResult(){
return ttafResponse;
} | 0 |
de2bcf8e4eef56783e8e759ec878c042 | 79e226c8c2e06ce7e54c8abe74bba85e | Test the "Amoroso" PDF. | public class PDFParserTest
@Test
public void testPDFBox4339() throws IOException
{
PDDocument.load(new File(TARGETPDFDIR, "PDFBOX-4339.pdf")).close();
} | 0 |
1616c2d190162d2d4482f0218d263e58 | 81af14790360741c3ee5e554de24dbd1 | From Sparkfun Example Code:
http://sfecdn.s3.amazonaws.com/datasheets/Sensors/Magneto/HMC5883.pde
Put the HMC5883 IC into the correct operating mode | {
if (device->_device == device_D)
{
LSM303D_WriteReg(device->acc_address, CTRL2, 0x00);
LSM303D_WriteReg(device->acc_address, CTRL1, 0x57);
LSM303D_WriteReg(device->mag_address, CTRL5, 0x64);
LSM303D_WriteReg(device->mag_address, CTRL6, 0x20);
LSM303D_WriteReg(device->mag_address, CTRL7, 0x00);... | 0 |
79fc59b7fea88462f7dfcfb3a55e247e | 0b88670aeebf350e3c889b50c0f2cd5f | Returns the ID number of this patron. | std::string Patron::getIdNum() {
return idNum;
} | 1 |
deeedb21c61276adbde94da0ff8268e5 | ad39d0e3ea8d14b0aeaf7b3b9b9a1259 | Returns a list of all index entry names in the index, sorted
alphabetically. | def list_entries():
return sorted(_face_db.keys()) | 1 |
973fda870e4b6786203a6be3c096bc8c | 34fa8e171442f5b284eb2f33fc3c2841 | Maps ATOM3 ROS type names to actual ROS type names. | class AtomNumberToTypeConverter(MSONable):
def __init__(self, mapping=ATOMNUM2TYPE):
self.mapping = mapping | 0 |
00561237df14fb0231d0fd2ae5e0c5cb | 11cc715b447e8a8065f9114d68318b53 | returns a query piece with all individual query pieces combined into one | def get_query(phrase: str):
return '+'.join(phrase.split(' ')) | 1 |
92657f72c94bd49c16fe83b5422b269d | f7795a639dade73d6999be42683188f6 | WebView 是否可以前进 | public sealed class UniWebViewPlugin
#elif UNIWEBVIEW3_SUPPORTED
public sealed class UniWebViewInterface
#else
public sealed class WWebViewPlugin
#endif
public static bool CanGoForward(string name)
{
return WWebViewWin32.CanGoForward(name);
} | 1 |
b80024e40045f8d53c145dd9af5a94ca | 49ee5967f1268d0ec55f52f4ddb19fec | Returns webspace-key. | public class WebSiteProperties
public String getWebSpace() {
return this.webSpace;
} | 1 |
b2da07309fc1681957ae82f1d221c852 | b99c215f8af4b9fbf679cc89a72c1f29 | Function to change the extrapolation method. | export class NlaStrip
public get extrapolation(): 'NOTHING' | 'HOLD' | 'HOLD_FORWARD' {
return PythonInterop.getEnum(this.interop, `${this.accessor}.extrapolation`)
} | 0 |
866473e4a04b021274a7ea76cf6b55b1 | 56671c4d58c58a5364fe8ca272e6caed | init (if necessary) the PIC and then disable the APIC.
since we will be running in VMs, we don't care about multicore. | local_apic_init()
{
*((uint32_t *)0x00000000fee000f0ul) = 0x000001ff; sleep(100);
*((uint32_t *)0x00000000fee003e0ul) = 0x00000000; sleep(100);
*((uint32_t *)0x00000000fee00320ul) = 0x00020020; sleep(100);
*((uint32_t *)0x00000000fee00380ul) = 0xffffffff; sleep(100);
*((uint32_t *)0x00000000fee00340ul) = 0x0001000... | 0 |
70bff65beb897fb563d85b32ddf0d22e | f9645674168d8bafa632c7d14b30a8a8 | Receive a specified number of characters from the client | class Client
public function recv() {} | 0 |
be8c00fa1447fd27f4fa42a63600490f | 5e71a1fbdd3b7214133b0961682a062b | <Purpose>
This command generates portable versions of our scripts. But first,
we squeeze our scripts into single files. | buildfile = sourcedir+"/build.xml"
generate_build_script(classpath, destdir, sourcedir, buildfile, makejar)
execute("ANT_OPTS=-Xmx512m cd #{sourcedir}; ant")
end | 0 |
9e8882b3e0d18e65077b9bbb1e5a23ae | 285e69d9bee21fc366b2ad0b1d6fe544 | 设置Snackbar显示的位置
set location that snackbar show | if (barView != null) {
val locations = IntArray(2)
targetView.getLocationOnScreen(locations)
val snackbarHeight = calculateSnackBarHeight()
if (locations[1] >= contentViewTop + snackbarHeight) {
gravityFrameLayout(Gravity.BOTTOM)
va... | 1 |
fb733a3bade6e4c829a8172cadb845f8 | 3cc8f2e3b422142e00719f5f8427bbfe | Zoom-independent window width. See crbug.com/627123 for more details. | namespace Gecko
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetWidthAttribute(); | 0 |
abe62cb2465262ee3adc7d2a9165a4e6 | cf2a0791afae3d25e697f673ed964d59 | @brief Get LCDC Raw Interrupt Status. | u32 USI_SSI_GetRawIsr(USI_TypeDef *usi_dev)
{
return usi_dev->RAW_INTERRUPT_STATUS;
} | 0 |
9a226482069c960d502c915980509d52 | 518bd1bfc667afde72414724ee9bb88c | This call will set the tick counter to the given value | void timer_cnt_set(uint32_t cnt)
{
or1k_mtspr(OR1K_SPR_TICK_TTCR_ADDR, cnt);
} | 1 |
2ec6d75314f5f968232ad7e1a3b50af7 | 4eead7a4b5bf457e219ac56b7e5f483e | 计算线段两两的相似度 | class ImageCompare(object):
def calc_similar(self, li, ri):
return sum(self.hist_similar(l.histogram(), r.histogram())
for l, r in zip(self.split_image(li), self.split_image(ri)))/16.0 | 0 |
f8679cf9eb90b39df956ffb43d9eff19 | a390921a6db27d0a10f2dbbdb6825bb8 | The input record was not found (e.g. invalid CID). | public class TyfonRecord extends RatingRecord
public void mapUnknownRecord(String inputData) {
OriginalData = inputData;
addError(new RecordError("ERR_UNKNOWN_RECORD", ErrorType.DATA_VALIDATION));
} | 1 |
0495b0dbfadd0d14093bcbfb4dfa7ac3 | db52dac09f2d6d065eba719b4164659c | Combines the two layers on this sprite frame | {
tk2dBaseSprite spriteToCopy = other.Sprite as tk2dBaseSprite;
target.SetSprite( spriteToCopy.Collection, spriteToCopy.spriteId );
target.SetFrame( other.CurrentFrame );
target.Play( other.CurrentClip, other.ClipTimeSeconds, other.ClipFps );
} | 0 |
b126fa8977e9ac68b0c0a4b88b38f6be | 645b6e65d6b5fc86e537de3aad251f17 | ==============
bdRESTURI::addQueryParam
============== | $query = array();
foreach($queryParams as $paramName => $paramValue){
$query[] = $paramName.'='.urlencode($paramValue);
}
if(count($query)){
if(strpos($this->_uri, '?')===false){
$this->_uri.='?'.join('&', $query);
}
}
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.