query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
66790edf0905d38840aa777238301de8 | a438af631071dfc238360bb3f04c5e67 | Notify the buffer that the user has stopped the stream. | void streamStopped(); | 1 |
c2672a554f98cbf03fe3286aede348e1 | 51d3b6fb72568e19928e095356a4b89a | 获得oracle监控对象会话汇总数据信息 数据库会话汇总数据 | StringBuffer sb = new StringBuffer();
Statement stmt = null;
ResultSet rs = null;
int SysTen = 0 ;
try{
sb.append("{");
sb.append("listData:[");
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
String dbms = YHSys... | 0 |
9fc75fd23dcc98e1dcaa586988b412c0 | 65f64e3491f2b577c70bf5cd8b04142d | IRC Handler | void IRC_mainLoop(int sock, rqIRC mIRC)
{
char buffer[560];
char from[56];
char *argument[256];
char *token_p;
int argument_count;
while(1)
{
memset(buffer, 0, sizeof(buffer));
if (mIRC.irc_recv_line(sock, buffer, sizeof(buffer)) == 0)
{ std::cout << "[CORE] Connection Terminated" << std:... | 1 |
05a612f7ae27c926d27d4d2835c4f128 | 9747ae5361e47cc53699ff8a3ab16d4a | 有効なシーンのパスのみ取得する | namespace GameMaster
[CreateAssetMenu(fileName = "newLevelSceneData", menuName = "LevelData/LevelSceneData", order = 1)]
[System.Serializable]
public class LevelSceneData : ScriptableObject
public List<SceneData> GetActiveScenes()
{
List<SceneData> temp = new List<SceneData>();
... | 0 |
9e682ff3bc6923abe40cfda292d27c44 | b25e8f8c39fedac585387066d0d6f7cc | na zadost uzivatele (kdyz zapomene heslo) vygeneruje a zasle heslo na jeho email | class Users_AuthenticationController extends Prohibicja_Zend_Controller_Action
public function recoveryAction()
{
$form = new Users_Form_Authentication_Recovery($this->em);
$model = new Users_Model_Authentication_Recovery($this->em);
if ($this->_request->isPost() && $form->isValid($this->... | 1 |
717743cfdc06221c7f7f57fcce1049ac | 30b3d77781616997e9180c7677d78d16 | Clear Magento caches that may be touched by our connection | abstract class Magento_PHPUnit_TestCase extends PHPUnit_Framework_TestCase
protected function resetCache()
{
Magento_PHPUnit_BackendCache_Memory::cleanById();
} | 1 |
6d971f28342d7584a985198b8571163a | 677f23dfbdb69cd2977be9e5f551f999 | Gets service area. | public class SmallAreaItem extends GenericItem
public GenericItem getLargeServiceArea() {
Logger.d(TAG, "getLargeServiceArea");
return mLargeServiceArea;
} | 1 |
d686e08af790af023bd4f073fc4b7b53 | d9c83dd358830a120b5a1098da8b2d2c | アプリケーションのメジャーバージョンを上げる.
例えば現在のバージョンが 1.2.3 の場合, 2.0.0 となる. | Pattern pattern = VERSION_CHECK;
boolean isValid = pattern.matcher(version).matches();
if (isValid) {
String[] versions = version.split("\\.");
int lastNum = Integer.valueOf(versions[2]);
if (++lastNum > 10) {
int midNum = Integer.valueOf(versions[1]);
if (++midNum > 10) {
return (Integer.va... | 0 |
599410677c0234180291b5eb7d44b11d | b8b04a9114a99cb2cb02ee7099776453 | 有効開始日時(EPOC秒なので数値)取得. | public class CPVIVS01Entity extends BaseEntity
public String getEpo() {
return this.epo;
} | 0 |
57fdcae8f3ab0abfd77b9868545b3299 | e4904909d726ed220378b70deda4d632 | 根据区块号获取区块 | List <BlockTO> getBlockByNum(String num); | 1 |
79b568ec7cce0350b06b631286481b92 | a64ee83903fd26d8360d3dbcad7ff089 | Called when task was successful but the result is null, which should probably not have happened | namespace Nomad.Data.Base
public class BaseData : ZI.Database.IExecuteDatabase, ZI.Task.ITaskResult, ZI.Task.ITask, IDisposable
public virtual void TaskResult(IParameter parameter)
{
throw new NotImplementedException();
} | 0 |
7a9018c6d7c4043bdfb434c27b87b0e5 | 6c5272507e0c5a53071e4488ff857d76 | Initialisation SFML | {
world.init();
miniMap_view.setSize(sf::Vector2f(m_window.getSize().x*1.8,m_window.getSize().y*2));
miniMap_view.setViewport(sf::FloatRect(0.75f, 0, 0.25f, 0.25f));
m_pChar.movement(sf::Vector2f(m_window.getSize().x/2-100,m_window.getSize().y/2));
default_view = sf::View(sf::FloatRect(0, 0, m_window.getSize().x, ... | 1 |
d831e2293da422af754d69417b84e3b6 | bcf1744e31e01646cfb8f23fda951ed3 | load information about clusters from database | {
clusterModel->open("EDMcluster", sdaiRW);
Iterator<ecl::EDMcluster*, ecl::entityType> clIter(clusterModel->getObjectSet(ecl::et_EDMcluster), clusterModel);
ourCluster = clIter.first();
if (!ourCluster) THROW("EDMclusterServices::startServices() - No EDMcluster object defined.");
databaseIter.init(clust... | 1 |
804c0f0ee1351a51241e89a70de38bd7 | 0209476ffc7f0265347d55bb08658dc3 | Prepare a term name for use as a pretty URL.
Pass:
node - XML node needing further processing
Return:
scrubbed name string | class DictionaryAPILoader:
class Doc:
class Node:
def clean_pretty_url(cls, node):
name = node.text
name = cls.SPACES.sub("-", name).lower().translate(cls.TRANS)
nfkd = normalize("NFKD", name)
pretty_url = "".join([c for c in nfkd if not combin... | 1 |
eebb295158bec08ab792a5c5353cfbe2 | b2adba5727022e62c04a035b327fd579 | Test that orphaned itemrevisions are successfully removed. | add_filter( 'tribe_repository_delete_async_activated', '__return_false' );
list( $john, $from_john ) = $this->create_books_by_authors();
$filtered = $this->repository()->where( 'author', $john );
$this->assertCount( 3, $filtered->get_ids() );
$promise = $filtered->delete( true );
$this->assertInstanceOf( Pr... | 0 |
b38479c19489df6f0df83af2ba882a58 | 9e8c372255ee68119ce51e27923af1fa | We come here when a valid HELLO message is received on a tunnel
See l2tp_tunnel_recv(). | struct packet_type *pt, struct net_device *orig_dev)
{
if (!net_eq(dev_net(dev), &init_net))
goto freeit;
if (skb_mac_header(skb)[2] == 1) {
struct ddpehdr *ddp;
struct atalk_addr *ap = atalk_find_dev_addr(dev);
if (!ap || skb->len < sizeof(__be16) || skb->len > 1023)
goto freeit;
if (!(skb = skb_... | 0 |
a6d480215b93dcab256d7cfc376f0f8c | a4245004f3e1e5df6e54932fcef37b6e | Check if the sum of any two sides is greater than the third side. | func AnyTwoSidesSumToGreaterThanThird(a, b, c float64) bool {
return a + b >= c && b + c >= a && c + a >= b
} | 1 |
e49d5e69f2a9c1b2f2845565a05d4df6 | bb03268564315652dac1321cd7612002 | Set verbosity level and log file | def set_verbosity(verbose):
if verbose:
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.WARN) | 0 |
a6d3ebb989f7452f3c8443b69b01e5f1 | 487e2466a507108b384dc5adbbccbdb2 | Launch multiple concurrent jobs | {
var exceptions = new ConcurrentQueue<Exception>();
var options = new ParallelOptions() { MaxDegreeOfParallelism = maxThreads };
Parallel.ForEach(jobs, options, job =>
{
try
{
job.Invoke();
}
... | 1 |
be6f3d9c064b473a6ffe3ee820ec608e | b99ee3b78e82fea38d7b861d4107cb29 | GetRooms returns a list of rooms ids that are in any state | interface ChatRoomRepository
fun getChatRooms(): Flow<ChatRoomListVM.StateGetChatRooms> | 0 |
9fb4932e3fcd9f394114dbf3f3b748d7 | 117446cb73d2627e9a5f45f2aa0488cf | Cumulative absolute displacement - identical to integral of absolute velocity | rel_traj = rel_traj.permute(1, 0, 2)
displacement = torch.cumsum(rel_traj, dim=1)
start_pos = torch.unsqueeze(start_pos, dim=1)
abs_traj = displacement + start_pos
return abs_traj.permute(1, 0, 2) | 1 |
62b04ffe1b0dd23ec256991cba2a3f76 | 341ad081bf19423b3565dff35a05fe41 | Populates the grid with the soap actions and their selection status | namespace SpsDevboxCs.WS
public partial class SoapForm : Window
private void populateWSDLs()
{
var wsdlList = Enum.GetNames(typeof(Globals.WSDLs));
foreach (string w in wsdlList)
{
wsdlComboBox.Items.Add(w);
}
} | 0 |
7fd19546d3a4612b8b0c6f0666af691b | 9f4a4d8722d946e1f483f75d8aecd271 | Fonction pour vérifier et valider le pseudo | pseudo_xhr = new XMLHttpRequest();
pseudo_xhr.open("get", "/api/get_user.php?name=" + encodeURIComponent(value));
pseudo_xhr.onload = () => {
if (pseudo_xhr.status === 200) {
let response = JSON.parse(pseudo_xhr.response);
if (!response.result) {
pseudo_label.className = "";
pseudo... | 1 |
6845c3b33f5053da4e8c573fb0d6be1b | dac1f833098d9cf93d32d782381a9d75 | Returns the heuritic (H) cost for the give node. | class Graph:
def h(self, n):
return 1 | 1 |
d9b56eb02148a069b312c402e10da006 | db1f4c8ba191f5154d8da8026c19b3a7 | Determines the fastest rotation direction | public final class SymmetryAnalyzer
private Vector3d getHighestRotationAxes() {
int highestsym = 1;
Vector3d highestrotAxis = new Vector3d();
for (Vector3d testvec : rotSymmetries.keySet()) {
if (rotSymmetries.get(testvec) > highestsym) {
highestsym = rotSymmetries.ge... | 0 |
2ae8af589e51bef8ebd1aa008229d01a | b2426f6a1d980c11d1b3233002192032 | If enough mana, use it. | [RequireComponent (typeof (BoxCollider))]
public class AOC2Unit : MonoBehaviour, AOC2Poolable
public bool UseMana(int amount)
{
if (mana < amount)
{
return false;
}
mana -= amount;
if (localController != null && AOC2EventManager.Combat.OnPlayerManaChange != null)
{
AOC2EventManager.Combat.OnPlayerMan... | 1 |
ff2983a1886bb8955c976326d7531ea4 | a0fce4b16eb99a14a2fe023ba484d939 | \ingroup grp_inb_lexer
\brief create a new lexer object | SvgLexer::SvgLexer(StreamType* instream, RecognizerSharedStateType* state)
: SvgLexerImplTraits::BaseLexerType(ANTLR_SIZE_HINT, instream, state)
{
this->init(instream);
} | 1 |
c27386474e326688151bb95804c3a962 | 33b4409753669e24695387d56b4633d6 | 打印所有文法产生式 | cout << "Grammar:" << endl;
for(int i = 0; i < productions.size(); ++i) {
cout << i << ": " << productions[i].to_string() << endl;
}
for(auto& p: first_table) {
cout << "First(" << symbol_str_map[p.first] << ") = { ";
for(auto s: p.second)
cout << symbol_str_map[s] <<... | 1 |
9c74d31437cb8755511e38fa02a70538 | 7508ca4a0821a51efc202cb111771296 | The destination storage account subscription ID. | @Fluent
public final class ServerDevOpsAuditSettingsProperties
public ServerDevOpsAuditSettingsProperties withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId) {
this.storageAccountSubscriptionId = storageAccountSubscriptionId;
return this;
} | 1 |
7840fd771df43bafc622acb12d358398 | 604204d5e84127956d345a43a577ad9f | 登录头条,保存cookies | class Session1688(object):
def login(self):
self.driver.get("https://login.1688.com/member/signin.htm")
input('pls login')
self.setCookies() | 0 |
4d78587a5cd90d5631a24c168643a39b | a1b86465fc2ed4249a942e2ab3f4b5cc | Given a reversed url, returns the reversed host E.g
"com.foo.bar:http:8983/to/index.html?a=b" -> "com.foo.bar"
Reversed url | def GetBaseUrl(url):
result = _GET_BASE_URL_RE.match(url)
try:
return result.group(1)
except AttributeError:
raise InvalidUrlError(url) | 0 |
76604050d23e4dc99d815a7c4ade8cfa | a92be0574d7b470af52f22704d75e074 | # Gradient descent without adaptive step | steepdescent = function(y,X,B0,m=1,tol,iter,alpha)
{
p = dim(X)[2]
N = dim(X)[1]
Bmat = matrix(0,iter,p)
Bmat[1,] = B0
loglik = rep(0,iter)
distance = rep(0,iter)
mvec = rep(m,N)
for(ii in 2:iter)
{
w = wts(Bmat[ii-1,],X)
Bmat[ii,] = Bmat[ii-1,] - alpha*grad(y,X,w,mvec)
distance[ii] = dist... | 1 |
e17d26d06a480f191d256ce581ed6194 | b07a9f640a0c1aec6df1ff6979adc47d | set default country based on user geolocation | $service = $this->configFactory->get('commerce_currency_resolver.settings')->get('currency_geo');
switch ($service) {
case 'smart_ip':
$country = \Drupal::service('smart_ip.smart_ip_location')->get('countryCode');
break;
case 'geoip':
$ip_address = $this->requestStack->getCur... | 1 |
61a47e8f77a405c9f1f8fc3878d55c0f | 687838121b28e362b9e51bdc315f2fe3 | Test houdini_toolbox.inline.api.is_rendering. | def is_rendering() -> bool:
return _cpp_methods.isRendering() | 1 |
d19a24ec91aac9b65e4ff641bacf2b93 | 93cb60e5b0180135cda90b5c647fc304 | Ruft den Familienstammbaum in einem Finanzplan ab. | {
ISet<ElementId> famSymbolIds = getFamilySymbolsByFamilyName(doc, name);
ICollection<ElementId> familyInsanceIds = getFamilyInsancesByFamilySymbolIds(doc, famSymbolIds);
return familyInsanceIds;
} | 0 |
43d3ae14f380133cf5f3e39d2771e16d | 7cee9c02f1d90d4982440673b58466cd | Create the trace reader from which the VM workloads are read. | self._trace_logger = trace_logger
if self._trace_logger is not None:
self._trace_raw_messages = self._trace_logger.make_trace_point('RawMessages') | 0 |
267e7c078702736e7454d4baec339e20 | cdaf86655b7ff36ff3b4918a5db162e9 | 纹理层有新数据,就通知view绘制 | val vh = _rootViewHolder ?: return
if (vh.isVisible(R.id.canvas_layer_layout) && _layerTabLayout?.currentItemIndex == 1) {
vh.canvasLayerAdapter?.updateAllItem()
}
} | 1 |
19ec60247ed2fdc0c31b37855a7a95c2 | 459588b2ef51625d8a508f12e2caf60b | Retrieves the schema and definition along with the actual instance values of the third-party payment service workflow configured for the corresponding fully qualified name. | namespace avalara.comms.rest.v2.Api
System.Threading.Tasks.Task<ServiceInfo> ApiV2AfcServiceinfoGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); | 0 |
38adb3fc6518f26ba3124dc47ce78190 | f1c6db93ef37e1f40cbd4c4a5b6926a1 | Adds the given frequent income. | public class Controller
public void addIncome(){
InputFragment inputFrag = new InputFragment();
inputFrag.setTask(fp, this, "Income", user, incomeCat);
fp.setFragment(inputFrag, false);
} | 0 |
e573aa990890a590dcd281e5d8259513 | 3371062b3d868be72a124b10f5923280 | Public accessor method of the aliens attribute | class Settings:
def get_alien_speed(self):
return self.__alien_speed | 0 |
1ca971e3d468acd1a6aa147d2dd56d82 | 5dd98d79945e11e778dd1392841ecb85 | This method is designed to read single simple types that are not complex objects | {
char firstChar = (char)(reader.Peek());
if ((firstChar == '\"') || (firstChar == '\''))
{
string strValue = ReadQuoatedString(reader, firstChar);
return DataConstructor.CreatePrimitive(strValue, true);
}
else if (char.... | 1 |
54b60ca2f098078d1ef1a2060e26bf5b | daa6961508a60239bddcc7b57b59a2e0 | Check whether a fly is clicked then kill it | public class Bird extends Predator
public boolean eatsFly()
{
if(world.isValidLoc(location.row,location.col) && world.getLocation(location.row,location.col).equals(world.getFlyLocation())){
return true;
} else {
return false;
}
} | 0 |
ea40b420d28981033d991a870b339a23 | 66a3c6095af98d6f8fd48f2df00e71b9 | GET查询库存尾差页面 | {
$params = Flight::getRequestParams();
if (empty($params)) {
Flight::sendRouteResult(array("error_code" => "40002", "error_info" => "params empty"));
}
Flight::sendRouteResult(array("in_stock_variance_quantity" => abs(InventoryItemModel::getInStockVarianceQuantityByInven... | 1 |
7e6f53bb5ecdf254cc3caa3ba944ac9b | f8cba7a7eb6c86277e89321e5b6985dd | 获取月份的整数数值 | public class DateUtil
public static int getMonthValue(LocalDate date) {
return NumberUtils.toInt(getMonth(date));
} | 1 |
7ff533ab2448efb9a1bbc8ac6bdb729b | 16f631eb5598b3ddb5d465b29c49c4e4 | Sets campaign funnel config id. | public void setCampaignId(long campaignId); | 0 |
625d6cc546341d3d195c04fc21922f6c | 92fddacfd92fbe04d4a827f14e216437 | ジャーナルに{@link jp.ossc.nimbus.service.http.HttpResponse#getObject()}を出力するかどうかを設定する。<p>
デフォルトは、trueで出力する。{@link jp.ossc.nimbus.service.http.HttpResponse#getObject(Object)}を使用する場合は、falseにする必要がある。<br> | public class DefaultInterceptorChainFactoryService extends ServiceBase
implements InterceptorChainFactory, DefaultInterceptorChainFactoryServiceMBean{
public void setOutputTimestamp(boolean isOutput){
isOutputTimestamp = isOutput;
} | 0 |
318e2d843c887337a63c83ef0450fc72 | b069394adacab02c3854ee12c5435a45 | ポーリングを終了する | console.log('endChat');
if (this.poller) {
this.poller.stop = true;
this.poller = undefined;
}
return Promise.resolve();
} | 1 |
52f07d0da80e9d1e72108ccf3fccc6b0 | cfde35d46c32e12e94acdbca7fe4b561 | 用来记录一个declarator相关的情况,比如每一级的指针是不是常数,以及数组一共有多少维 | {
__int64 sym1;
long num3, num4, size;
long tx1;
int drtnum = 1;
int j;
if (sym == intersym || sym == realsym || sym == Boolsym)
{
enter(type);
getsym();
}
else if (sym == arraysym)
{
sym1 = sym;
getsym();
if (sym == lmparen)
{
getsym();
if (sym == intersym)
{
num3 = num;
getch()... | 1 |
c8521a8b705e3148a30a3a18ee8a2cad | cbda6c71f59aabbc75070cbfb6681f92 | Checks whether or not the team is owned by current
authenticated user. | if user.super_admin:
return True
class entity_closure(object):
def __init__(self, id_or_entity):
if isinstance(id_or_entity, basestring):
self.uid = str(id_or_entity)
self._entity = None
else:
self.uid = id_or_entity.uid
... | 1 |
638da6563f0e946f1a073b8dda38bcce | 153013cbefbcb32e65587729abf7e153 | UNTITLED3 根据制动曲线计算阻力大小
传入速度单位为m/s
阻力单位为KN | namespace ZY.Common.Tools
public static class UniteTranslateTool
public static double M_StoKt(this double speed)
{
return speed / _ktToMperSecond;
} | 0 |
99b223e9b84dd3f216fdb1e6e8ef133d | 318d3e58a0588569b6661d4062821f09 | 日结后产生门店、商品类别补货参考数量,插入门店日商品补货参考数量表 | $base = 100;
$result = M ( 'shop' );
$erpNumArray = $result->where ( 'erpnum != ' . "''" . ' and erpnum is not null ' )->field ( 'uid,erpnum' )->select ();
foreach ( $erpNumArray as $shopVal ) {
$length = 100;
if (! empty ( $shopVal ['erpnum'] )) {
while ( $length != 0 ) {
... | 0 |
bab3ec08d2572af4a1d63e8835d1ae79 | 6c09f3a1cfba3ea38b5d9e3d4610dfdb | Specifies the recommended minimum number of virtual CUPs for the virtual machine bases on the image. | namespace Microsoft.Azure.Management.Compute.Fluent
internal partial class GalleryImageImpl
GalleryImage.Definition.IWithCreate GalleryImage.Definition.IWithRecommendedVMConfiguration.WithRecommendedMinimumMemoryForVirtualMachine(int minMB)
{
return this.WithRecommendedMinimumMemoryForVirtualMac... | 0 |
d774ace79abf9261b07ac84f79cb7dc3 | 9f48fa58037f6be96941a30b871ea197 | Returns the sum of all the components. | namespace Leap.Unity public static class Utils
public static float CompSum(this Vector2 v) {
return v.x + v.y;
} | 1 |
e29121e9ceadc5b90b1a162b31db4016 | 7f61448ad6da3ef0f9cb03f40c5be655 | BEGIN edit | cases like (1) | 0 |
ee33ba9cf13a4b36c46226a4b4819047 | 3f43861815ecb9df32b726e6f07eed07 | Lit l'entête dune chanson | void Entete()
{
cout << " ###### 4Images 1Mot By KS ######\n"<<endl;
} | 0 |
732934a4d207c8e057ae79d2ed819029 | 0d814c8c7aee020cbadde5adae88ad5c | Check logIn credentials by getting data from ViewModel and sends it to the database. | namespace XamarinSQLlite.ViewModels.Forms
[Preserve(AllMembers = true)]
internal class LoginPageViewModel : BaseViewModel
private void LoginClicked(object obj)
{
} | 0 |
1e7b62d7782b9c597ee5ca123028bf36 | 8bed7e7ed7437ef9757582e8ca7881b2 | Load sản phẩm vào trang checkout | namespace QuanLyBanHang.Functions
public partial class FormDatHang : Form
public void LoadDanhSachSanPham()
{
string queryString = String.Format("SELECT * FROM products");
using (SqlConnection connection = new SqlConnection(connectionString))
{
using (SqlC... | 1 |
831ab2d204a6bb3ad5f99f2e854cd1d6 | b0aca20ea84ed5b8d4f687b811e8081b | Convert a byte to a byte array | byte_arr[3] = (value >> 24) & 0xFF;
byte_arr[2] = (value >> 16) & 0xFF;
byte_arr[1] = (value >> 8) & 0xFF;
byte_arr[0] = value & 0xFF;
return byte_arr;
} | 0 |
2734ac9d7f68856fa78d53ea56c0351f | 69e9486b7247e57a7e7017c0c5853191 | 设置身份证有效期截止时间 | class OAConfirmDocumentsPresenter : AbsPresenter<OAConfirmDocumentsView, OAConfirmDocumentsViewModel>()
fun initCardValidEndData(timeInMillis: Long) {
if (idCardValidNumDate == null) return
var list: MutableList<Int> = idCardValidNumDate as MutableList<Int>
var tms = Calendar.getInstance()
... | 1 |
0d9c09cbc0223c4d612a7ebbaa7dba30 | ab3424937f53bfefdd4c70943f48205e | Returns the saved state for the group of splitters or the current state if no state has been saved. | public Serializable getSaveState(); | 1 |
d7cf33199fb64ebc5d95252181176545 | 473805dc8ab7748208573b9849cbfa4e | Test if after rescanning an empty site, no scripts are listed. | class CheckUI(SimpleTestCase):
def test_200page_nopageselected(self):
response = self.client.get('/search200/')
self.assertIn(b'200 Scans Search', response.content)
self.assertIn(b'18f.gov', response.content)
self.assertIn(b'gsa.gov', response.content)
self.assertNotIn(b'<td>200<... | 0 |
87ab6ce4dfa13eb6c075018b23e4142a | 1d723f8a61beb709183cc0872f556eb0 | 환자번호를 넣으면 column은 KCDcode, row는 time-serial의 형태인 dataframe이 나오는 함수 | sql= "select "+ colname + " from " + table + " where date = '"+ time +"'"
curs.execute(sql)
result = curs.fetchall()
for row in result:
global x
x= row[0] | 0 |
9e51b79f40315f953322e7ba46a3bdc2 | f175321875c1ced8b63a65254547a39d | 基本操作
Basic operation | public class StringBasicOperation
public static void main(String[] args) {
stringBasicOperationMethod();
stringCompareMethod();
stringConvertMethod();
stringSearchCharMethod();
stringCutAndSplit();
stringUpdateAndReplace();
} | 1 |
165f5a58ff1454de5b72c2c0d6661216 | 6a46f89949ad34a2fc9e61c842f4e9c0 | Builds a swagger specification by calling the various methods to add more
components to the specification. | function generateSwaggerSpec (router = {}, baseSpec = {}, options = {}) {
assert(router.modules, 'router.modules parameter missing')
assert(baseSpec.info, 'baseSpec.info parameter missing')
assert(baseSpec.info.title, 'baseSpec.info.title parameter missing')
assert(baseSpec.info.version, 'baseSpec.info.version ... | 1 |
f7a28a9a831a22609a95c7c3ac9c72d2 | c9faee94a25763c3e67b45c9006e81fc | Function used to find the maximum result element count by adding increasing
2n values to the given base result element count. | static UINT32 FindMaxResultEleCount(
IN OUT SSA_BIOS_SERVICES_PPI *SsaServicesHandle,
IN UINT32 MetadataSize,
IN UINT32 ResultElementSize,
IN UINT32 BaseResultEleCount)
{
SSA_STATUS RetStat;
UINT32 ResultEleCount = 1;
UINT32 MaxResultEleCount = BaseResultEleCount;
#if ENBL_FUNCTION_TRACE_DEBUG_MSGS
... | 1 |
2a0eaa8d3b822403978a6e3a318a1732 | 84f14b8625a06865ba2ef07ca5ac2a28 | Getter for <code>cita_historico.cita_id</code>. Id de cita | public long getId_pk_corridoio(); | 0 |
0b3494d7bc877836c76109a42e812566 | e299287b38a6cf48ae1606b317e655a5 | Test making maps with integer datatypes | m_map.insert(100, 150, 0);
m_mmaps[CONT].insert(100, 150, 0);
m_mmaps[CONT].insert(151, 200, 1);
m_mmaps[SDIFF].insert(100, 150, 0);
m_mmaps[SDIFF].insert(160, 200, 1);
m_mmaps[SSAME].insert(100, 150, 1);
m_mmaps[SSAME].insert(160, 200, 1);
ASSERT_EQUALS(wxT("[(100, 150, 0)]"), StringFrom(m_map));
ASS... | 1 |
c56f00372f772180f91907879112b77a | 9b0e685b6405309e31f01321d0036768 | Phương pháp tìm ra số lượng liên lạc xuất khẩu. | namespace EStoreBUS
public class MyKhachHangBUS
public static int SLKhachHangTheoNgheNghiep(int maNgheNghiep)
{
try
{
return myKhachHangDAO.SLKhachHangTheoNgheNghiep(maNgheNghiep);
}
catch (Exception ex)
{
throw ex;
... | 0 |
758ea1ce0d89071a21f84d6c4d8ab6fb | 69257067d8aedfdb0e1a62fd24b3a4c0 | Deletes all rows from the juizes table. | public function down(): void
{
Schema::dropIfExists('jottingables');
} | 0 |
30a6c768533d4f28632dcc208374a83b | bd7a5e5c28023203ac291395cc40014b | 按照usage字符串搜寻事项 | {
for (int i = 0; i < usableItemList.Count; i++)
{
if (usableItemList[i].noun == noun)
{
return usableItemList[i];
}
}
return null;
} | 0 |
ef2e19f8f9f274cdd9f6eee403538e34 | 48fb132a92e725f583a54ba957aedb21 | returns byte received, can be zero, this is non blocking | uint8_t uart_rx_byte(SerialPort COM){
while (USART_GetFlagStatus(UARTPorts[COM].uart, USART_FLAG_RXNE) == RESET);
return (uint8_t)USART_ReceiveData(UARTPorts[COM].uart);
} | 0 |
db855c9a4972a3b5941352f9ad8f43af | e3c72635866a29fd4ad502c32f98abdb | parseRSA parses an RSA key according to RFC 4253, section 6.6. | sslRsaKey_t *pubKey)
{
unsigned char *p = *pp;
int32 pubKeyLen, ignore_bits, seqLen;
if (len < 1 || (*(p++) != ASN_BIT_STRING) ||
asnParseLength(&p, len - 1, &pubKeyLen) < 0 ||
(len - 1) < pubKeyLen) {
return -1;
}
ignore_bits = *p++;
sslAssert(ignore_bits == 0);
if (getSequence(&p, pubKeyLen, &... | 1 |
ef2de07d4678e03ea012c3c9c8d13995 | 60a549208cfed14c796a29f11090adf8 | Loads the file passed and reads each line of command and inputs them into the
graph of the network or if the command is to set the current user it will do
that. | string line, command = "", nameRes = "", extraChar = "";
int nodeID1 = 0, nodeID2 = 0;
NodeList* nodeList = new NodeList();
cout << "> ";
getline(cin, line);
while (!cin.eof()) {
while (!cin.eof()) {
command = "";
stringstream lineStream(line);
lineSt... | 0 |
4489bfb0071b0c19caebfda6caac70bd | 84495c4c8deb1b0ee9f3793864c32b25 | sets image to pure red | Pic original = picture.deepCopy();
for(int i = 0; i < original.getWidth(); i++) {
for(int j = 0; j < original.getHeight(); j++) {
Pixel tempPix = original.getPixel(i,j);
tempPix.setRed(0);
tempPix.setBlue(0);
}
}
original.show();
} | 0 |
7b13cd95f607d812238ad77591120411 | cb396371464a752f41372531141b882c | The setter method for the right color of the tile | public class Tile implements Parcelable
public void setColor(char userColor) throws Exception {
userColor = Character.toUpperCase(userColor);
if (userColor != 'B' && userColor != 'W') {
Exception colorException = new Exception("Invalid color");
throw colorException;
} else
color = userColor;
} | 1 |
ac9eed3902ec01c0ac6e9fa25ee0de14 | a9876d7f5503e862994ff2168e56e94f | Returns the term period of this product entry. | public class ProductEntryWrapper implements ProductEntry,
ModelWrapper<ProductEntry>
public void setTermPeriod(int termPeriod) {
_productEntry.setTermPeriod(termPeriod);
} | 0 |
101219b6fc3f53c4549d86681d66b30b | 954c183d540b0610653bee9e638785e6 | 从Flash读取用户配置信息 | tsFlash sFlash = sAppData.sFlash;
if (sAppData.sConfig_UnSaved.u32appid != 0xFFFFFFFF) {
sFlash.sData.u32appid = sAppData.sConfig_UnSaved.u32appid;
}
if (sAppData.sConfig_UnSaved.u32chmask != 0xFFFFFFFF) {
sFlash.sData.u32chmask = sAppData.sConfig_UnSaved.u32chmask;
}
if (sAppData.sConfig_UnSaved.u8id != 0xFF... | 0 |
4ed93e4df32f30c387b3fac204ef1987 | 544b2c3a37813a45f69196b30dc36ffc | Event Handler to Handle Login form speech Recognition -> [login, signup] Commands | public class SecurityBox extends UiPart<Region>
@FXML
private void handleCommandEntered() {
String[] command = commandTextField.getText().trim().split("\\s+");
if (command[0].equals("login") && command.length > 2) {
security.login(command[1], command[2]);
} else if (command[0].eq... | 1 |
e3b99cba1c849e9a30156767b3862628 | b9f8a55d5a25248dc729e0d1547b61e3 | Electron number density; see "Examining LaserSlab Simulation Output" gray box in FLASH User Manual | class EEDF(object):
def electron_density(self):
return trapz(y=np.hstack((0.0, self.density_per_J, 0.0)),
x=np.hstack(
(0.0, self.energy_point, self.energy_max_bound))) | 1 |
79d488140753e58def651b8a3738c446 | 922b84191c0cb5bb4eed7a7ea22589ba | Wake up robot | function M.wakeup()
write_reg(0x01,0x00)
end | 1 |
b2f5f92b00c30e663863ca9b77455453 | 43fb0d04e9bf7c61fe629ef23fd26e39 | Método que define el rango de detección del enemigo según el estado del jugador. | public class SearchPlayer : MonoBehaviour
void Update () {
if (es_EnemyState.n_State == 3) return;
if (es_EnemyState.n_Condition == 2) return;
Vector3 PlayerPos = g_Player.transform.position;
Vector3 Pos = transform.position;
Vector3 TmpVec = PlayerPos - Pos;
float Length... | 1 |
98f33daaab43f493204792c00cea1e8c | 43374dedda677cb55c95d0f0c1d7391f | creates and returns the Panel that contains the Values for specifying the location of the .dw file | @SuppressWarnings("serial")
public class BHDefaultProjectExportPanel extends JPanel implements ActionListener
private JPanel createSelectionArea() {
JPanel listPanel = new JPanel(new BorderLayout());
listPanel.setBorder(BorderFactory.createEmptyBorder(20, 15, 15, 15));
Object[] children = null;
if (model.getCh... | 1 |
b3dbbe418ab6eb7b9e3a6a7fd5ed7688 | 6773620f802de3f0196a189a782853fd | Adds an ActionListner to the "Apply"-button of the ProxyOptions panel. | {
okButton.addActionListener(new OKListener(chg));
cancelButton.addActionListener(new CancelListener(chg));
if(applyButton != null)
{
applyButton.addActionListener(new ApplyListener(chg));
}
} | 1 |
9c9df5ddf6af71e1b22ea66873035561 | 900b15994c9a72485db2dc4c9b73a4d0 | Setup output directory by risk class | self._outputDir = outputDir
if os.path.exists(self._outputDir) == False:
os.system("mkdir " + self._outputDir) | 0 |
fac2627fdb0c4208d516108f1241f5a7 | 5ec9f499376a59c2686dd9a5a0513042 | Returns a string encoding the data of this transfer target. | class Transaction:
def encoded(self):
return str(self).encode() | 1 |
96fefce8500f630f8190246a600e73af | 8ce95e6f1a3b421b77bf9e4fc2f2b13d | if the pattern is empty its always true | if (pattern.equals("")) {
return true;
} else {
return false;
}
} | 1 |
f7fb996af3bca310fef691a762d179c8 | 88b192c11f879309f1438d5482de7702 | disable SPI | void SPI_Disable(void)
{
SPCR &= ~(1 << SPE);
} | 1 |
082e091c0c3b9b9dc7d9ef9487fa2654 | 078bfa6554453df3876f105d5c006db9 | imprime o ultimo elemento da lista | printf("[ ");
CelulaDupla* i;
for (i = ultimo; i != primeiro; i = i->ant){
printf("%d ", i->elemento);
}
printf("] \n");
} | 0 |
a3847f33efb939c35a3c971299db6526 | e7a71f93cc3ce1385f8dd0bfe5c5f98e | 학생 현재 경고건수 가져오기 | try {
pstselCountWarn.setString(1, prog_id);
pstselCountWarn.setString(2, obl_id.substring(0,4)+"%");
ResultSet ressel = pstselCountWarn.executeQuery();
if(ressel.next()){
return ressel.getInt("count_warn");
}else{
return 0;
}
} catch (SQLException e) {
e.printStackTrace();
return 0;... | 1 |
f9cd2c7cba093b6be5bd3f17d8692ccc | 8c0071ae33cabef6a049e3193ef6162b | Attempt to parse a section, else return null. | SectionRowWrapper<T> parseSectionRow( String sectionLine ) throws ParseException; | 0 |
459d8fe3250926a4b88a4a1e5154e180 | 45babaae08e8a47743adb2091eb0c4dd | Returns the meta object for the reference list '{@link com.emf4sw.owl.ObjectPropertyChain#getProperties <em>Properties</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EReference getProperties_Properties(); | 1 |
a7cd3906b12527019ede83391e6e100c | c44778bd0d33a71d55341b312420b455 | Returns the policy set currently used. | public final class PolicySet extends AbstractPolicyDefinition
public PolicyPhase getPhase() {
return phase;
} | 0 |
aaae1754e1461da05e5c23781f8a479f | 677601a5f0ce2ffd4ca678b951bebcbb | from_sketches(sketches: List[Sketch])
Create a Multisketch from a list of sketches. Useful for, e.g.
workflows where a bunch of individual sketches are processed and then
need to be outputed to one sketch file. | class SketchManager(models.Manager):
def create(self, content, parent=None):
sketch = super(SketchManager, self).create(parent=parent)
version = sketch.create_version(content=content)
sketch.current_version = version
sketch.save()
return sketch | 0 |
7a56e8e325c7e6de3fa08a93c1da1ba1 | 2dc4336e27c8e52f98b9b5086c8c241a | ===========================================================================
DESCRIPTION
Logs ciphering parameters for TM channels at MAC
=========================================================================== | {
if(logging_eul_params[RLCLOG_SIG_PDU][RLCLOG_CH_IDX] &&
log_status(WCDMA_UL_RLC_AM_SIG_PLANE_PDU_LOG_PACKET))
{
rlc_ul_tx_am_sig_plane_pdu_log_pkt(&uplink_table,
logging_eul_params[RLCLOG_SIG_PDU][RLCLOG_CH_IDX]);
}
if(logging_eul_params[RLCLOG_USR_PDU... | 0 |
5d1fafe46cd9f60eb218e02698c91263 | cca991fcff51ddd169e798f15c29bc0c | Validate number of consented signatories against min and max | {
int cActualValue = -numberConnons;
if (listC.Count <= 0)
return false;
foreach (var elm in listC)
{
if (elm < (cActualValue + numberConnons))
return false;
else
cActualValue ... | 0 |
a2136abd09336fead65c8e5241bd2f73 | b94fec2079950d759d8c1ee334e89f7a | UnityEngine.Vector3 Math3d::SetVectorLength(UnityEngine.Vector3,System.Single) | {
var errorCode = API.LNVector3_Set(out this, x, y, z);
if (errorCode != ErrorCode.OK) throw new LNoteException(errorCode);
} | 0 |
c24104e5222f359c0ebd4c15c78caa16 | 265a1fdfdb4c038a5b57f894df14a957 | 检测冒泡了几次 | class Checkpoint{
public get Isbubble(): boolean{
return this._isbubble == 1? true: false;
} | 0 |
8802bac018712492fce564a62e508c60 | 1d73a317d49ad60ef1d74b3fb6ada48b | Wipes the stored PxAttr attribute and entity images from memory | void wipeRawImages(); | 1 |
fb4da9a3f31c1a43a50d3c681b42b954 | 9ca3802863e1beace72d1605644cf261 | 表单验证的字段模板 | {
return [
'key' => '表单分类(来自form_category)',
'content' => '表单配置项目值',
];
} | 0 |
7f35c4deebddc61785a910db38306197 | f8df9efdc6cd06e6f4943ef4a0ec0213 | Return the maximum number of file descriptors<br>
the current process could possibly have.<br>
<i>native declaration : unistd.h:3103</i> | safe_get_max_fd(void)
{
long local_max_fd;
local_max_fd = sysconf(_SC_OPEN_MAX);
if (local_max_fd == -1)
local_max_fd = 256;
return local_max_fd;
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.