query
stringlengths
16
255
pos
list
neg
list
task
stringclasses
1 value
instruction
dict
convert a python list to an R list
[ "def _list2Rlist(xs):\n \n if isinstance(xs, six.string_types):\n xs = [xs]\n rlist = \",\".join([_quotestring(x) for x in xs])\n return \"c(\" + rlist + \")\"" ]
[ "def GetDictToFormat(self):\n \"\"\"\"\"\"\n d = {}\n for k, v in self.__dict__.items():\n # TODO: Better handling of unicode/utf-8 within Schedule objects.\n # Concatinating a unicode and utf-8 str object causes an exception such\n # as \"UnicodeDecodeError: 'ascii' codec can't decode byte ...
codesearchnet
{ "query": "Represent the Github instruction:", "pos": "Represent the Github code:", "neg": "Represent the Github code about programming:" }
Get the value of the enable-oslogin metadata key. Args: metadata_dict: json, the deserialized contents of the metadata server. Returns: bool, True if OS Login is enabled for VM access.
[ "def _GetEnableOsLoginValue(self, metadata_dict):\n \n instance_data, project_data = self._GetInstanceAndProjectAttributes(\n metadata_dict)\n instance_value = instance_data.get('enable-oslogin')\n project_value = project_data.get('enable-oslogin')\n value = instance_value or project_value or ...
[ "function(apiClient) {\n this.apiClient = apiClient || Configuration.default.getDefaultApiClient() || ApiClient.instance;\n\n\n this.setApiClient = function(apiClient) {\n this.apiClient = apiClient;\n };\n\n this.getApiClient = function() {\n return this.apiClient;\n };\n\n\n /**\n ...
codesearchnet
{ "query": "Represent the comment about AWS Route 53:", "pos": "Represent the code about AWS Route 53:", "neg": "Represent the code about Software development:" }
Create collidable items
[ "def create_items(self):\n \n if not self.mode['items'] or len(self.mode['items']) == 0: return\n\n # FIXME: Check if already contains\n self.collman.add(self.player)\n\n for k in self.mode['items']:\n item = self.mode['items'][k]\n #{'terminal': False, 'num'...
[ "def surface(self, canvas, X, Y, Z, color=None, label=None, **kwargs):\n \n raise NotImplementedError(\"Implement all plot functions in AbstractPlottingLibrary in order to use your own plotting library\")" ]
codesearchnet
{ "query": "Represent the instruction:", "pos": "Represent the code:", "neg": "Represent the code:" }
Prepare strategies before the hydrator is used @throws \InvalidArgumentException @return void
[ "protected function prepareStrategies()\n {\n $associations = $this->metadata->getAssociationNames();\n\n foreach ($associations as $association) {\n if ($this->metadata->isCollectionValuedAssociation($association)) {\n // Add a strategy if the association has none set by ...
[ "function validateService($pluginInstance)\n {\n if (! is_object($pluginInstance) )\n throw new \\Exception(sprintf('Can`t resolve to (%s) Instance.', $pluginInstance));\n\n if (!$pluginInstance instanceof aGrantRequest)\n throw new exContainerInvalidServiceType('Invalid Plugi...
codesearchnet
{ "query": "Represent the Github comment:", "pos": "Represent the Github code:", "neg": "Represent the Github code about Software development:" }
This implementation of onAdd watches for responses, and immediately sends them out to the appropriate exchange/queue for routing to the necessary client application(s)
[ "@Override\n\tpublic void onAdd(Response response) {\n\t\tString message = gson.toJson(response);\n\t\t\n\t\ttry {\n\t\t\tRabbitMqUtils.sendMessage(message, buildQueueNames(response), environment);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Failed to send response message to output queue.\", e);\n\t\t}\n\...
[ "func (r *controller) Update(ctx context.Context, t *api.Task) error {\n\t// TODO(stevvooe): While assignment of tasks is idempotent, we do allow\n\t// updates of metadata, such as labelling, as well as any other properties\n\t// that make sense.\n\treturn nil\n}" ]
codesearchnet
{ "query": "Represent the Github sentence about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code about Software development:" }
// GetClaims returns the claims on req.Permanode signed by h.owner.
[ "func (h *Handler) GetClaims(req *ClaimsRequest) (*ClaimsResponse, error) {\n\tif !req.Permanode.Valid() {\n\t\treturn nil, errors.New(\"error getting claims: nil permanode\")\n\t}\n\th.index.RLock()\n\tdefer h.index.RUnlock()\n\n\tctx := context.TODO()\n\tvar claims []camtypes.Claim\n\tclaims, err := h.index.Appen...
[ "public Token<DelegationTokenIdentifier> selectTokenFromFsOwner() throws IOException {\n return lookupToken(user.getCredentials(), service, tokenBinding.getKind());\n }" ]
codesearchnet
{ "query": "Represent the sentence:", "pos": "Represent the code:", "neg": "Represent the code about programming:" }
Convert an object to a dictionary. Use 'post_processor(original_obj, dictionary)' to update the dictionary in the process
[ "def todict(obj, post_processor=None): # pylint: disable=too-many-return-statements\n \n if isinstance(obj, dict):\n result = {k: todict(v, post_processor) for (k, v) in obj.items()}\n return post_processor(obj, result) if post_processor else result\n if isinstance(obj, list):\n retur...
[ "def values(*rels):\n '''\n \n '''\n #Action function generator to multiplex a relationship at processing time\n def _values(ctx):\n '''\n Versa action function Utility to specify a list of relationships\n\n :param ctx: Versa context used in processing (e.g. includes the prototyp...
codesearchnet
{ "query": "Represent the Github text about Software Development:", "pos": "Represent the Github code about Software Development:", "neg": "Represent the Github code:" }
Fetch all the mocks and make them available.
[ "function fetchMocks() {\n mockService.get({}, function (response) {\n vm.mocks = response.mocks.map(function(mock){\n Object.keys(mock.responses).forEach(function(response) {\n mock.responses[response].name = response;\n });\n ...
[ "def start(self, timeout=None):\n \n\n started = super(Node, self).start(timeout=timeout)\n if started:\n # TODO : return something produced in the context manager passed\n return self._svc_address # returning the zmp url as a way to connect to the node\n # CAR...
codesearchnet
{ "query": "Represent the Github instruction:", "pos": "Represent the Github code:", "neg": "Represent the Github code about programming:" }
// handleRemove handles cluster-remove requests.
[ "func (s *Service) handleRemove(w http.ResponseWriter, r *http.Request) {\n\tb, err := ioutil.ReadAll(r.Body)\n\tdefer r.Body.Close()\n\tif err != nil {\n\t\tw.WriteHeader(http.StatusBadRequest)\n\t\treturn\n\t}\n\tm := map[string]string{}\n\tif err := json.Unmarshal(b, &m); err != nil {\n\t\tw.WriteHeader(http.Sta...
[ "def openCurrentItem(self):\n \n logger.debug(\"openCurrentItem\")\n _currentItem, currentIndex = self.getCurrentItem()\n if not currentIndex.isValid():\n return\n\n # Expanding the node will call indirectly call RepoTreeModel.fetchMore which will call\n # BaseRt...
codesearchnet
{ "query": "Represent the summarization about Computer Science:", "pos": "Represent the code about Computer Science:", "neg": "Represent the code:" }
Add a condition to this query @param $recordField @param $operator @param $value @return $this
[ "public function addCondition($recordField, $operator, $value)\n {\n $this->conditions[] = [\n $recordField,\n $operator,\n $value\n ];\n return $this;\n }" ]
[ "private function LayoutCondition()\n {\n $sql = Access::SqlBuilder();\n $tbl = Area::Schema()->Table();\n return $sql->Equals($tbl->Field('Layout'), $sql->Value($this->layout->GetID()));\n }" ]
codesearchnet
{ "query": "Represent the post about Software Development:", "pos": "Represent the code about Software Development:", "neg": "Represent the code about Software Development:" }
Modify a founditem. id: founditem id
[ "def founditem_modify_view(request, item_id=None):\n \n if request.method == \"POST\":\n founditem = get_object_or_404(FoundItem, id=item_id)\n form = FoundItemForm(request.POST, instance=founditem)\n if form.is_valid():\n obj = form.save()\n logger.debug(form.cleane...
[ "def search_prod_type_tags(self, ins, type, tags, pipeline):\n ''''''\n return StoredProduct(id=100, content='null.fits', tags={})" ]
codesearchnet
{ "query": "Represent the Github summarization:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
Return true if one of transition ranges is a boundary match. @return
[ "public boolean hasBoundaryMatches()\r\n {\r\n for (Transition<DFAState<T>> t : transitions.values())\r\n {\r\n CharRange range = t.getCondition();\r\n if (range.getFrom() < 0)\r\n {\r\n return true;\r\n }\r\n }\r\n return fal...
[ "public String filePath(int index, String savePath) {\n // not calling the corresponding swig function because internally,\n // the use of the function GetStringUTFChars does not consider the case of\n // a copy not made\n return savePath + File.separator + fs.file_path(index);\n }" ]
codesearchnet
{ "query": "Represent the instruction about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about programming:" }
Update SSH connection parameters based on contents of SSH 'config' file. :param dict_arg: Dictionary of SSH connection parameters :type dict_arg: dict
[ "def _use_ssh_config(self, dict_arg):\n \n connect_dict = dict_arg.copy()\n\n # Use SSHConfig to generate source content.\n full_path = path.abspath(path.expanduser(self.ssh_config_file))\n if path.exists(full_path):\n ssh_config_instance = paramiko.SSHConfig()\n ...
[ "def get_config(self, key, default=None):\n \n depr(0, 13, \"Route.get_config() is deprectated.\",\n \"The Route.config property already includes values from the\"\n \" application config for missing keys. Access it directly.\")\n return self.config.get(key...
codesearchnet
{ "query": "Represent the description about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about Software development:" }
Releases the advisory lock. @param int $operation @return bool @see FlysystemStreamWrapper::stream_lock()
[ "protected function releaseLock($operation)\n {\n $exists = is_resource($this->lockHandle);\n\n $success = $exists && flock($this->lockHandle, $operation);\n\n $exists && fclose($this->lockHandle);\n $this->lockHandle = null;\n\n return $success;\n }" ]
[ "public function close()\n {\n $this->started = false;\n \n \\Wslim\\Ioc::logger('session')->debug(sprintf('[%s]close', static::getId()));\n }" ]
codesearchnet
{ "query": "Represent the description about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
Prepares the request body - setting the body, charset and content length by body type @throws IOException
[ "private void prepareRequestBody() throws IOException {\n\n if (bodyByteArray != null) {\n setByteArrayBody();\n } else if (bodyString != null) {\n setStringBody();\n } else if (bodyObject != null) {\n setTypedBody();\n }\n }" ]
[ "def processRequest(cls, ps, **kw):\n \n resource = kw['resource']\n method = resource.getOperation(ps, None) # This getOperation method is valid for ServiceSOAPBinding subclass\n rsp = method(ps, **kw)[1] # return (request, response) but we only need response\n return rsp" ]
codesearchnet
{ "query": "Represent the Github text about Encryption:", "pos": "Represent the Github code about Encryption:", "neg": "Represent the Github code about Computer Science:" }
Flush output streams.
[ "private void flushOutput() throws IOException {\n outStream.flush();\n outWriter.completeLine();\n errStream.flush();\n errWriter.completeLine();\n }" ]
[ "def postloop(self):\n \n cmd.Cmd.postloop(self) # Clean up command completion\n d1_cli.impl.util.print_info(\"Exiting...\")" ]
codesearchnet
{ "query": "Represent the summarization about Technology:", "pos": "Represent the code about Technology:", "neg": "Represent the code about Software development:" }
Set the ditaDir. @param ditaDir ditaDir
[ "@Deprecated\n public void setDitadir(final File ditaDir) {\n if (!ditaDir.isAbsolute()) {\n throw new IllegalArgumentException(\"ditadir attribute value must be an absolute path: \" + ditaDir);\n }\n this.ditaDir = ditaDir;\n }" ]
[ "def :\n \"\"\"\"\"\"\n CheckParent(self)\n\n return _fitz.Annot_" ]
codesearchnet
{ "query": "Represent the instruction:", "pos": "Represent the code:", "neg": "Represent the code:" }
Check regex. @param {[type]} node [description] @param {[type]} schema [description] @param {[type]} key [description] @return {[type]} [description]
[ "function checkRegex(node, schema, key) {\n try {\n schema[SCHEMAREGEX].test(node);\n } catch (e) {\n throw new ValidationException(key + \" doesn't match its regex.\");\n }\n }" ]
[ "function Kind(name, regex) {\n\n if (!Kind.checkRegExp(regex)) {\n throw new TypeError(f('Invalid %j type regexp %j', name, regex));\n }\n\n /**\n * @public\n * @memberOf {Kind}\n * @property\n * @type {String}\n * */\n this.name = name;\n\n /**\n * @public\n * @me...
codesearchnet
{ "query": "Represent the post about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about programming:" }
// IsAssignee checks if a user is an assignee for the specified repository. // // GitHub API docs: https://developer.github.com/v3/issues/assignees/#check-assignee
[ "func (s *IssuesService) IsAssignee(ctx context.Context, owner, repo, user string) (bool, *Response, error) {\n\tu := fmt.Sprintf(\"repos/%v/%v/assignees/%v\", owner, repo, user)\n\treq, err := s.client.NewRequest(\"GET\", u, nil)\n\tif err != nil {\n\t\treturn false, nil, err\n\t}\n\tresp, err := s.client.Do(ctx, ...
[ "func (g *Github) Scopes() []string {\n\tscopes := []string{\"user:email\"}\n\t// In order to access a users orgs, we need the \"read:org\" scope\n\t// even if g.Orgs == 0\n\tscopes = append(scopes, \"read:org\")\n\treturn scopes\n}" ]
codesearchnet
{ "query": "Represent the Github text about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code:" }
Iterates through grid_list and updates the density for each density grid therein. Also marks each density grid as unvisited for this call to adjustClustering.
[ "private void updateGridListDensity()\n\t{\n\t\tfor (Map.Entry<DensityGrid, CharacteristicVector> grid : grid_list.entrySet())\n\t\t{\n\t\t\tDensityGrid dg = grid.getKey();\n\t\t\tCharacteristicVector cvOfG = grid.getValue();\n\n\t\t\tdg.setVisited(false);\n\t\t\tcvOfG.updateGridDensity(this.getCurrTime(), this.get...
[ "def enkf(self):\n \n\n for cycle_index, time_point in enumerate(self.timeline):\n if cycle_index >= len(self.timeline) - 1:\n # Logging : Last Update cycle has finished\n break\n\n print(\"Print information about this assimilation Cycle ???\") # sh...
codesearchnet
{ "query": "Represent the description:", "pos": "Represent the code:", "neg": "Represent the code:" }
Wrap the specified text. @param text the text to wrap. @return the wrapped text.
[ "public String wrap(String text) {\n StringBuilder sb = new StringBuilder();\n int continuationLength = continuation.length();\n int currentPosition = 0;\n\n for (String word : text.split(\" \")) {\n String lastWord;\n int wordLength = word.length();\n\n ...
[ "function Rule(rules) {\n this.rules = rules;\n // Identifies individual rule\n this.name = \"\";\n // Identifies the grammar that this rule belongs to \n this.grammarName = \"\";\n // Identifies types of rules. Rules can have \"types\" that are diff...
codesearchnet
{ "query": "Represent the Github text about text processing:", "pos": "Represent the Github code about text processing:", "neg": "Represent the Github code:" }
Try to parse a link definition @param string $line @return bool
[ "public function parseLink($line)\n {\n // Links\n if (preg_match('/^\\.\\. _`(.+)`: (.+)$/mUsi', $line, $match)) {\n $this->environment->setLink($match[1], $match[2]);\n return true;\n }\n\n if (preg_match('/^\\.\\. _(.+): (.+)$/mUsi', $line, $match)) {\n ...
[ "def doc_uri(self, args, range=None):\n \"\"\"\"\"\"\n self.log.debug('doc_uri: in')\n self.send_at_position(\"DocUri\", False, \"point\")" ]
codesearchnet
{ "query": "Represent the Github post about text processing:", "pos": "Represent the Github code about text processing:", "neg": "Represent the Github code:" }
use GATK to split reads with Ns in the CIGAR string, hard clipping regions that end up in introns
[ "def gatk_splitreads(data):\n \n broad_runner = broad.runner_from_config(dd.get_config(data))\n ref_file = dd.get_ref_file(data)\n deduped_bam = dd.get_deduped_bam(data)\n base, ext = os.path.splitext(deduped_bam)\n split_bam = base + \".splitN\" + ext\n if file_exists(split_bam):\n data...
[ "def pileup_reads_at_position(samfile, chromosome, base0_position):\n \n\n # TODO: I want to pass truncate=True, stepper=\"all\"\n # but for some reason I get this error:\n # pileup() got an unexpected keyword argument 'truncate'\n # ...even though these options are listed in the docs for pysam ...
codesearchnet
{ "query": "Represent the Github summarization:", "pos": "Represent the Github code:", "neg": "Represent the Github code about Software development:" }
PDO rollback override to work with savepoint capabilities for supported SGBD. Allows nested transactions.
[ "public function rollBack()\n {\n --$this->currentTransactionLevel;\n if ($this->currentTransactionLevel == 0 || !$this->nestable()) {\n parent::rollBack();\n } else {\n $this->exec(\"ROLLBACK TO SAVEPOINT LEVEL{$this->currentTransactionLevel}\");\n }\n }" ]
[ "public FunctionHandle resolveFunction(Session session, QualifiedName name, List<TypeSignatureProvider> parameterTypes)\n {\n // TODO Actually use session\n // Session will be used to provide information about the order of function namespaces to through resolving the function.\n // This is l...
codesearchnet
{ "query": "Represent the Github comment about Database management:", "pos": "Represent the Github code about Database management:", "neg": "Represent the Github code about Software development:" }
// GetNumFiles gets the number of files in the backup index.
[ "func (b *BackupEngineInfo) GetNumFiles(index int) int32 {\n\treturn int32(C.rocksdb_backup_engine_info_number_files(b.c, C.int(index)))\n}" ]
[ "def run_objective(objective, _name, raw_output, output_files, threads)\n # output is a, array: [raw_output, output_files].\n # output_files is a hash containing the absolute paths\n # to file(s) output by the target in the format expected by the\n # objective function(s), with keys as the keys ...
codesearchnet
{ "query": "Represent the post about File management:", "pos": "Represent the code about File management:", "neg": "Represent the code:" }
Validate non-optional parameters and return new instance.
[ "public function build(): RemoveBindingRequest\n\t{\n\t\t$instance = new RemoveBindingRequest();\n\t\tif ($this->name === null) {\n\t\t\tthrow new BuilderException('Property [name] is required.');\n\t\t}\n\t\t$instance->name = $this->name;\n\t\treturn $instance;\n\t}" ]
[ "@Override\n public void addElement(Map<String, Object> e, Map<String, AggregatorFactory> a)\n {\n // since we return a constant, no need to read from the event\n }" ]
codesearchnet
{ "query": "Represent the Github sentence about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code:" }
Return a reference to the currently executing Async job object or None if not in an Async job.
[ "def get_current_async():\n \n local_context = _local.get_local_context()\n\n if local_context._executing_async:\n return local_context._executing_async[-1]\n\n raise errors.NotInContextError('Not in an _ExecutionContext.')" ]
[ "private void removeContext(final String contextID) {\n\n synchronized (this.contextStack) {\n\n if (!contextID.equals(this.contextStack.peek().getIdentifier())) {\n throw new IllegalStateException(\"Trying to close context with id `\" + contextID +\n \"`. But the top context has id `\" +\...
codesearchnet
{ "query": "Represent the Github instruction:", "pos": "Represent the Github code:", "neg": "Represent the Github code about programming:" }
Executes the command. @param InputInterface $input @param OutputInterface $output
[ "protected function execute(InputInterface $input, OutputInterface $output)\n {\n $src = $input->getArgument('src');\n $dst = $input->getArgument('dst');\n $selector = $input->getArgument('selector');\n $append = $input->getOption('append');\n\n // Create CSS dest object\n ...
[ "@Override\n @Deprecated\n public void execute(Map<String, List<String>> parameters, PrintWriter output) throws Exception {\n throw new UnsupportedOperationException(\"Use `execute(parameters, body, output)`\");\n }" ]
codesearchnet
{ "query": "Represent the comment about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about Programming:" }
// Set key to be equal value in this list.
[ "func (e *EnvList) Set(key, value string) {\n\tfor i, v := range *e {\n\t\tif v.Key == key {\n\t\t\t(*e)[i].Value = value\n\t\t\treturn\n\t\t}\n\t}\n\n\t*e = append(*e, &EnvVar{\n\t\tKey: key,\n\t\tValue: value,\n\t})\n}" ]
[ "@Override\n public void addElement(Map<String, Object> e, Map<String, AggregatorFactory> a)\n {\n // since we return a constant, no need to read from the event\n }" ]
codesearchnet
{ "query": "Represent the summarization about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
// UnmarshalJSON implements json.Unmarshaler. // // Unmarshals a JSON entry into the underlying type. The entry is expected to // contain a string corresponding to one of the enum's keys.
[ "func (t *Time) UnmarshalJSON(data []byte) error {\n\tvar value time.Time\n\tif err := value.UnmarshalJSON(data); err != nil {\n\t\treturn err\n\t}\n\t*t = Time(value.UTC())\n\treturn nil\n}" ]
[ "func ExternalCAsEqualStable(a, b []*api.ExternalCA) bool {\n\t// because DeepEqual will treat an empty list and a nil list differently, we want to manually check this first\n\tif len(a) == 0 && len(b) == 0 {\n\t\treturn true\n\t}\n\t// The assumption is that each individual api.ExternalCA within both lists are cre...
codesearchnet
{ "query": "Represent the text about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
// Create creates a new virtual server using the given properties and returns // its ID, port and initial administrator privilege key. // If virtualserver_port arg is not specified, the server will use the first unused // UDP port.
[ "func (s *ServerMethods) Create(name string, args ...CmdArg) (*CreatedServer, error) {\n\tr := &CreatedServer{}\n\targs = append(args, NewArg(\"virtualserver_name\", name))\n\tif _, err := s.ExecCmd(NewCmd(\"servercreate\").WithArgs(args...).WithResponse(r)); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn r, ni...
[ "function listen(self, address, port, addressType, backlog, exclusive) {\n /* TODO Index servers by a self-assigned identifier and the process\n * identifier so messages intended for previous instances do not pass\n * through. */\n servers[port] = self; // Index servers by port.\n self._port = port...
codesearchnet
{ "query": "Represent the Github text about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code:" }
Print out the change_set to console. This needs to run create_change_set first. :param awsclient: :param change_set_name: :param stack_name:
[ "def describe_change_set(awsclient, change_set_name, stack_name):\n \n client = awsclient.get_client('cloudformation')\n\n status = None\n while status not in ['CREATE_COMPLETE', 'FAILED']:\n response = client.describe_change_set(\n ChangeSetName=change_set_name,\n StackName...
[ "def _add_event_source(awsclient, evt_source, lambda_arn):\n \n event_source_obj = _get_event_source_obj(awsclient, evt_source)\n\n # (where zappa goes like remove, add)\n # we go with update and add like this:\n if event_source_obj.exists(lambda_arn):\n event_source_obj.update(lambda_arn)\n ...
codesearchnet
{ "query": "Represent the Github comment:", "pos": "Represent the Github code:", "neg": "Represent the Github code about programming:" }
input is needed for the `TestRunner` so it can use it with stubbing otherwise it is ignored when building a local cmd
[ "def build_local_cmd(task, cmd_str, input, given_opts)\n Local::Cmd.new(cmd_str, given_opts)\n end" ]
[ "def start(self, timeout=None):\n \n\n started = super(Node, self).start(timeout=timeout)\n if started:\n # TODO : return something produced in the context manager passed\n return self._svc_address # returning the zmp url as a way to connect to the node\n # CAR...
codesearchnet
{ "query": "Represent the sentence:", "pos": "Represent the code:", "neg": "Represent the code about programming:" }
This gets an input stream to the specified attachment in the zip.
[ "@Override\n public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException {\n final ZipFile repoZip = createZipFile();\n\n if (null == repoZip) {\n return null;\n }\n\n InputStream retInput...
[ "@Override\n public void addElement(Map<String, Object> e, Map<String, AggregatorFactory> a)\n {\n // since we return a constant, no need to read from the event\n }" ]
codesearchnet
{ "query": "Represent the Github sentence about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code:" }
// formatBaseURL will try to make sure that the schema:host:port pattern is followed on the `baseURL` field.
[ "func formatBaseURL(baseURL string) string {\n\tif baseURL == \"\" {\n\t\treturn \"\"\n\t}\n\n\t// remove last slash, so the API can append the path with ease.\n\tif baseURL[len(baseURL)-1] == '/' {\n\t\tbaseURL = baseURL[0 : len(baseURL)-1]\n\t}\n\n\tportIdx := strings.LastIndexByte(baseURL, ':')\n\n\tschemaIdx :=...
[ "function PbfSplicer(options) {\n // tag which will be auto-removed and auto-injected. Usually 'name'\n this.nameTag = options.nameTag;\n // tag that contains JSON initially, and which works as a prefix for multiple values\n this.multiTag = options.multiTag;\n\n // If options.namePicker is given, this class co...
codesearchnet
{ "query": "Represent the post about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about programming:" }
Initializes the plugins by loading modules from the inputted paths.
[ "def loadPlugins(cls):\n \n plugs = getattr(cls, '_%s__plugins' % cls.__name__, None)\n if plugs is not None:\n return\n\n plugs = {}\n setattr(cls, '_%s__plugins' % cls.__name__, plugs)\n typ = cls.pluginRegisterType()\n\n for path in cls.pluginPath():\n ...
[ "public FunctionHandle resolveFunction(Session session, QualifiedName name, List<TypeSignatureProvider> parameterTypes)\n {\n // TODO Actually use session\n // Session will be used to provide information about the order of function namespaces to through resolving the function.\n // This is l...
codesearchnet
{ "query": "Represent the post about Technology:", "pos": "Represent the code about Technology:", "neg": "Represent the code about Software development:" }
Example application that sends an email when an alarm event is detected.
[ "def main():\n \n try:\n # Retrieve the first USB device\n device = AlarmDecoder(SerialDevice(interface=SERIAL_DEVICE))\n\n # Set up an event handler and open the device\n device.on_alarm += handle_alarm\n with device.open(baudrate=BAUDRATE):\n while True:\n ...
[ "def process_source(source)\n if source == \"00\"\n logger.warn(\"Connection has been aborted by the service provider because of an error by the service user (client side).\")\n elsif source == \"02\"\n logger.warn(\"Connection has been aborted by the service provider because of an error by ...
codesearchnet
{ "query": "Represent the instruction:", "pos": "Represent the code:", "neg": "Represent the code about Software development:" }
Gets the organization for the given package (or Maven group id).
[ "public static String getOrganizationForPackage(GraphRewrite event, String pkg)\n {\n final String pkgComparison = pkg + \".\";\n String organization = null;\n for (Map.Entry<String, String> entry : getMappings(event).entrySet())\n {\n final String pkgPattern = entry.getKey...
[ "public FunctionHandle resolveFunction(Session session, QualifiedName name, List<TypeSignatureProvider> parameterTypes)\n {\n // TODO Actually use session\n // Session will be used to provide information about the order of function namespaces to through resolving the function.\n // This is l...
codesearchnet
{ "query": "Represent the Github instruction:", "pos": "Represent the Github code:", "neg": "Represent the Github code about Software development:" }
Perform a "complex" or custom search. Using this method, a custom query can be sent to Elasticsearch. @param $params parameters to be passed directly to Elasticsearch @return ElasticquentResultCollection
[ "public static function complexSearch($params)\n {\n $instance = new static;\n\n $result = $instance->getElasticSearchClient()->search($params);\n\n return static::hydrateElasticsearchResult($result);\n }" ]
[ "public function hintJsonStructure($column, $structure)\n {\n if (json_decode($structure) === null) {\n throw new InvalidJsonException();\n }\n\n $this->hintedJsonAttributes[$column] = $structure;\n\n // Run the call to add hinted attributes to the internal json\n //...
codesearchnet
{ "query": "Represent the Github instruction about Software Development:", "pos": "Represent the Github code about Software Development:", "neg": "Represent the Github code about Software Development:" }
// Run runs the command to get free IP addresses.
[ "func (c *GetIPsCmd) Run(app subcommands.Application, args []string, env subcommands.Env) int {\n\tctx := cli.GetContext(app, c, env)\n\tclient := getClient(ctx)\n\tresp, err := client.ListFreeIPs(ctx, &c.req)\n\tif err != nil {\n\t\terrors.Log(ctx, err)\n\t\treturn 1\n\t}\n\tprintIPs(c.f.tsv, resp.Ips...)\n\tretur...
[ "def start(self, timeout=None):\n \n\n started = super(Node, self).start(timeout=timeout)\n if started:\n # TODO : return something produced in the context manager passed\n return self._svc_address # returning the zmp url as a way to connect to the node\n # CAR...
codesearchnet
{ "query": "Represent the Github description about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about programming:" }
Internal function. Return the parent Node, from the input node after applying filter, whatToshow. The current node is not consulted or set.
[ "private Node getParentNode(Node node) {\n\n\t\tif (node == null || node == root)\n\t\t\treturn null;\n\n\t\tNode newNode = node.getParentNode();\n\t\tif (newNode == null)\n\t\t\treturn null;\n\n\t\tint accept = acceptNode(newNode);\n\n\t\tif (accept == NodeFilter.FILTER_ACCEPT)\n\t\t\treturn newNode;\n\t\telse\n\t...
[ "function(){\n return {\n classes: [], \n colonSelectors: [],\n data: [],\n group: null,\n ids: [],\n meta: [],\n\n // fake selectors\n collection: null, // a collection to match against\n filter: null, // filter function\n\n ...
codesearchnet
{ "query": "Represent the instruction about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
Generate and set the model attributes. @param object $model The model instance. @param array $attr The model attributes. @return void
[ "protected function generate($model, array $attr = [])\n {\n foreach ($attr as $key => $kind) {\n $value = $this->factory->generate($kind, $model, $this);\n\n $setter = 'set'.ucfirst(static::camelize($key));\n\n // check if there is a setter and use it instead\n ...
[ "public function fields( $name )\n {\n if( $this->fields instanceof FieldCollection ) {\n $this->fields->field($name); //Sets active field\n }\n return $this->fields; // Is a direct access to the property\n }" ]
codesearchnet
{ "query": "Represent the Github text about Programming:", "pos": "Represent the Github code about Programming:", "neg": "Represent the Github code about Software development:" }
// finishDispatching stops all the watchers that were supposed to be // stopped in the meantime, but it was deferred to avoid closing input // channels of watchers, as add() may still have writing to it. // It also marks dispatching as false.
[ "func (c *Cacher) finishDispatching() {\n\tc.Lock()\n\tdefer c.Unlock()\n\tc.dispatching = false\n\tfor _, watcher := range c.watchersToStop {\n\t\twatcher.stop()\n\t}\n\tc.watchersToStop = c.watchersToStop[:0]\n}" ]
[ "func (m *Manager) removeProxyServiceLocked(proxyID string) {\n\tstate, ok := m.proxies[proxyID]\n\tif !ok {\n\t\treturn\n\t}\n\n\t// Closing state will let the goroutine we started in Ensure finish since\n\t// watch chan is closed.\n\tstate.Close()\n\tdelete(m.proxies, proxyID)\n\n\t// We intentionally leave poten...
codesearchnet
{ "query": "Represent the text about Programming:", "pos": "Represent the code about Programming:", "neg": "Represent the code about Software development:" }
Returns the unions inside the instance.
[ "public function unions(): self\n {\n $sequence = $this\n ->sorted([$this, 'sortByStartDate'])\n ->reduce([$this, 'calculateUnion'], new self())\n ;\n\n if ($sequence->intervals === $this->intervals) {\n return $this;\n }\n\n return $sequence;\n...
[ "@Override\n public void addElement(Map<String, Object> e, Map<String, AggregatorFactory> a)\n {\n // since we return a constant, no need to read from the event\n }" ]
codesearchnet
{ "query": "Represent the comment:", "pos": "Represent the code:", "neg": "Represent the code:" }
@param bool|true $allowPartialRefunds @return bool
[ "public function isRefunded($allowPartialRefunds = true)\n {\n if ($this->data['paymentDetails']['stateName'] === 'REFUND') {\n return true;\n }\n\n if ($allowPartialRefunds && $this->data['paymentDetails']['stateName'] === 'PARTIAL_REFUND') {\n return true;\n }\...
[ "final protected function c() {return dfc($this, function() {/** @var int|null $id $id */return\n\t\t!($id = $this->o()->getCustomerId()) ? null : df_customer($id)\n\t;});}" ]
codesearchnet
{ "query": "Represent the comment about Software Development:", "pos": "Represent the code about Software Development:", "neg": "Represent the code about programming:" }
TODO: Better invalidation
[ "private void invalidateSync() {\n Log.d(\"AndroidClockSync\", \"Starting sync...\");\n new Thread() {\n @Override\n public void run() {\n SntpClient client = new SntpClient();\n ExponentialBackoff exponentialBackoff = new ExponentialBackoff();\n ...
[ "function make_event(event, target) {\n return string_p(event)? Event.make(event, target)\n : /* otherwise */ event }" ]
codesearchnet
{ "query": "Represent the Github comment about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code:" }
base64Image字串 轉 jpg @param {String} base64ImageData image src中的字串 @param {String} filename 路徑與檔名,需要以.jpg結尾 @return {Promise} Promise
[ "function base64tpjpg(base64ImageData, filename) {\n var promise = new Promise(function(resolve, reject) {\n var base64Data = base64ImageData.replace(/^data:image\\/\\w+;base64,/, \"\");\n var dataBuffer = new Buffer(base64Data, 'base64');\n fs.writeFile(tmpimage, dataBuffer, function(err) {...
[ "function hot(backendTplServer) {\n backendTplServer.app.get('/news/hot', function(request, response) {\n var data = Mock.mock({\n 'news|0-10': [news]\n });\n\n // 如果对象中有方法的定义, 最好不要放在 Mock.mock 中, 因为他会将方法定义变成直接的属性值(方法的返回值)\n data.__helper = __helper;\n\n response.ren...
codesearchnet
{ "query": "Represent the post about text processing:", "pos": "Represent the code about text processing:", "neg": "Represent the code:" }
admin/model/catalog/review/deleteReview/after
[ "public function deleteReview(&$route, &$args, &$output) {\n\t\t$this->load->model('report/statistics');\n\n\t\t$this->model_report_statistics->removeValue('review', 1);\n\t}" ]
[ "def includeme(config):\n \n root = config.get_root_resource()\n root.add('nef_polymorphic', '{collections:.+,.+}',\n view=PolymorphicESView,\n factory=PolymorphicACL)" ]
codesearchnet
{ "query": "Represent the sentence:", "pos": "Represent the code:", "neg": "Represent the code:" }
Clears the cache for all cp measurement units. <p> The {@link EntityCache} and {@link FinderCache} are both cleared by this method. </p>
[ "@Override\n\tpublic void clearCache() {\n\t\tentityCache.clearCache(CPMeasurementUnitImpl.class);\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_ENTITY);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\t}" ]
[ "@Override\n public void unIndex(Class entityClazz, Object entity, EntityMetadata metadata, MetamodelImpl metamodel)\n {\n // we need not implement this method for Redis because\n // redis automatically removes indexes while performing delete\n logger.warn(\"Removing index is implicitly m...
codesearchnet
{ "query": "Represent the instruction about Technology:", "pos": "Represent the code about Technology:", "neg": "Represent the code about Software development:" }
Add orchestration sharding schema. @param orchestrationShardingSchema orchestration sharding schema
[ "public void add(final OrchestrationShardingSchema orchestrationShardingSchema) {\n String schemaName = orchestrationShardingSchema.getSchemaName();\n if (!schemaGroup.containsKey(schemaName)) {\n schemaGroup.put(schemaName, new LinkedList<String>());\n }\n schemaGroup.get(sch...
[ "def build(self):\n \"\"\"\"\"\"\n from ambry.orm.config import BuildConfigGroupAccessor\n\n # It is a lightweight object, so no need to cache\n return BuildConfigGroupAccessor(self.dataset, 'buildstate', self._session)" ]
codesearchnet
{ "query": "Represent the text:", "pos": "Represent the code:", "neg": "Represent the code:" }
Similar to smart_bytes, except that lazy instances are resolved to strings, rather than kept as lazy objects. If strings_only is True, don't convert (some) non-string-like objects.
[ "def force_bytes(s, encoding='utf-8', strings_only=False, errors='strict'):\n \n if isinstance(s, memoryview):\n s = bytes(s)\n if isinstance(s, bytes):\n if encoding == 'utf-8':\n return s\n else:\n return s.decode('utf-8', errors).encode(encoding, errors)\n i...
[ "def path(self, path):\n \"\"\"\"\"\"\n\n # pylint: disable=attribute-defined-outside-init\n self._path = copy_.copy(path)\n\n # The provided path is shallow copied; it does not have any attributes\n # with mutable types.\n\n # We perform this check after the initialization...
codesearchnet
{ "query": "Represent the comment:", "pos": "Represent the code:", "neg": "Represent the code:" }
Return the string id in the last (kind, id) pair, if any. Returns: A string id, or None if the key has an integer id or is incomplete.
[ "def string_id(self):\n \n id = self.id()\n if not isinstance(id, basestring):\n id = None\n return id" ]
[ "def reset ():\n \n global __prefixes_suffixes, __suffixes_to_types, __types, __rule_names_to_types, __target_suffixes_cache\n\n __register_features ()\n\n # Stores suffixes for generated targets.\n __prefixes_suffixes = [property.PropertyMap(), property.PropertyMap()]\n\n # Maps suffixes to types...
codesearchnet
{ "query": "Represent the Github instruction about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code:" }
Set the image size. @param int $size @return $this
[ "public function setSize($size)\n {\n if (null === $size) {\n return $this;\n }\n\n $this->size = $size;\n $this->pixelRatio = (int) round($size / 5);\n\n return $this;\n }" ]
[ "def :\n \"\"\"\"\"\"\n CheckParent(self)\n\n return _fitz.Annot_" ]
codesearchnet
{ "query": "Represent the Github comment:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
<!-- begin-user-doc --> <!-- end-user-doc --> @generated
[ "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic EList<IfcWorkTime> getWorkingTimes() {\r\n\t\treturn (EList<IfcWorkTime>) eGet(Ifc4Package.Literals.IFC_WORK_CALENDAR__WORKING_TIMES, true);\r\n\t}" ]
[ "protected function _init($definition=null)\n {\n\n if (!is_null($definition)) {\n $this->_packageXml = simplexml_load_string($definition);\n } else {\n $packageXmlStub = <<<END\n<?xml version=\"1.0\"?>\n<package>\n <name />\n <version />\n <stability />\n <license...
codesearchnet
{ "query": "Represent the summarization about Text generation:", "pos": "Represent the code about Text generation:", "neg": "Represent the code:" }
Return the HTML tag of the Mention's parent. These may be tags such as 'p', 'h2', 'table', 'div', etc. If a candidate is passed in, only the tag of its first Mention is returned. :param mention: The Mention to evaluate :rtype: string
[ "def get_parent_tag(mention):\n \n span = _to_span(mention)\n i = _get_node(span.sentence)\n return str(i.getparent().tag) if i.getparent() is not None else None" ]
[ "def reset(self):\n \n\n # Use first matching element as title (0 or more xpath expressions)\n self.title = OrderedSet()\n\n # Use first matching element as body (0 or more xpath expressions)\n self.body = OrderedSet()\n\n # Use first matching element as author (0 or more x...
codesearchnet
{ "query": "Represent the Github text about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about programming:" }
buildItem method @param MenuItemInterface $item menu item entity @param string $extLabel additional label elements @return string generated HTML element
[ "protected function buildItem(MenuItemInterface $item, string $extLabel = ''): string\n {\n try {\n $shortClass = (new ReflectionClass($item))->getShortName();\n $method = str_replace(BaseMenuItem::MENU_ITEM_CLASS_PREFIX, 'build', $shortClass);\n if (!method_exists($this, ...
[ "function PbfSplicer(options) {\n // tag which will be auto-removed and auto-injected. Usually 'name'\n this.nameTag = options.nameTag;\n // tag that contains JSON initially, and which works as a prefix for multiple values\n this.multiTag = options.multiTag;\n\n // If options.namePicker is given, this class co...
codesearchnet
{ "query": "Represent the comment about Software development:", "pos": "Represent the code about Software development:", "neg": "Represent the code about programming:" }
{@inheritDoc} @see \rocket\ei\manage\entry\EiFieldConstraint::validate($eiField, $validationResult)
[ "public function validate(EiField $eiField, EiFieldValidationResult $validationResult) {\r\n\t\tif ($this->check($eiField)) return;\r\n\r\n\t\t$validationResult->addError(Message::createCodeArg('ei_impl_bool_field_must_be_selected_err', \r\n\t\t\t\tarray('field' => $this->labelLstr)));\r\n\t}" ]
[ "def includeme(config):\n \n root = config.get_root_resource()\n root.add('nef_polymorphic', '{collections:.+,.+}',\n view=PolymorphicESView,\n factory=PolymorphicACL)" ]
codesearchnet
{ "query": "Represent the Github description:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
Compile a binary map. @param Fluent $fluent @return array
[ "public function compileBinary(Fluent $fluent)\n {\n $map = [\n 'type' => 'binary',\n 'doc_values' => $fluent->doc_values,\n 'store' => $fluent->store,\n ];\n\n return $this->formatMap($map);\n }" ]
[ "def :\n \"\"\"\"\"\"\n CheckParent(self)\n\n return _fitz.Annot_" ]
codesearchnet
{ "query": "Represent the sentence about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
// SetDirectoryId sets the DirectoryId field's value.
[ "func (s *DirectoryDescription) SetDirectoryId(v string) *DirectoryDescription {\n\ts.DirectoryId = &v\n\treturn s\n}" ]
[ "private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n GetField fields = in.readFields();\n beginDefaultContext = fields.get(BEGIN_DEFAULT, true);\n\n // Note that further processing is required in JEEMetadataContextProviderImpl.deserializeThreadCo...
codesearchnet
{ "query": "Represent the Github sentence about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about programming:" }
List the files in a specified directory Args: full_directory_path: The full directory path to check, derive from the os module Returns: returns a list of files
[ "def list_files_in_directory(full_directory_path):\n \n files = list()\n for file_name in __os.listdir(full_directory_path):\n if __os.path.isfile(__os.path.join(full_directory_path, file_name)):\n files.append(file_name)\n return files" ]
[ "def file_or_token(value):\n \n if isfile(value):\n with open(value) as fd:\n return fd.read().strip()\n\n if any(char in value for char in '/\\\\.'):\n # This chars will never be in a token value, but may be in a path\n # The error message will be handled by the parser\n ...
codesearchnet
{ "query": "Represent the Github instruction about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about programming:" }
Create a new instance of single input functions @param name function name @param var0 Input variable @return Resulting operation
[ "public Operation.Info create( String name , Variable var0 ) {\n Input1 func = input1.get(name);\n if( func == null )\n return null;\n return func.create(var0,managerTemp);\n }" ]
[ "public LHS toLHS( CallStack callstack, Interpreter interpreter)\n throws EvalError\n {\n // loosely typed map expression new {a=1, b=2} are treated\n // as non assignment (LHS) to retrieve Map.Entry key values\n // then wrapped in a MAP_ENTRY type LHS for value assignment.\n r...
codesearchnet
{ "query": "Represent the comment about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
Define headers that needs to be included from the current request.
[ "def headers_to_include_from_request(curr_request):\n '''\n \n '''\n return {\n h: v for h, v in curr_request.META.items() if h in _settings.HEADERS_TO_INCLUDE}" ]
[ "public FunctionHandle resolveFunction(Session session, QualifiedName name, List<TypeSignatureProvider> parameterTypes)\n {\n // TODO Actually use session\n // Session will be used to provide information about the order of function namespaces to through resolving the function.\n // This is l...
codesearchnet
{ "query": "Represent the Github post about software development:", "pos": "Represent the Github code about software development:", "neg": "Represent the Github code about Software development:" }
Trigger censoring. @param string $content @return string
[ "protected function _censor($content) {\n $pattern = implode('|', array_map(array($this, '_prepareRegex'), $this->getBlacklist()));\n $content = preg_replace_callback('/(?:^|\\b)(?:' . $pattern . ')(?:\\b|$)/is', array($this, '_censorCallback'), $content);\n\n return $content;\n }" ]
[ "public function antiLight(array $req): void\n {\n $this->isConfigDebug ? print('anti light') : null;\n $this->log(configDefault('anti/light', 'log', 'anti', 'light'), $req);\n }" ]
codesearchnet
{ "query": "Represent the description about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about programming:" }
// LogErrCount is a helper method used primarily for test validation
[ "func (c *Client) LogErrCount() int {\n\tc.Lock()\n\tdefer c.Unlock()\n\treturn len(c.ErrLog)\n}" ]
[ "func (h Handler) GetE(cmd common.GetRequest) (<-chan common.GetEResponse, <-chan error) {\n\t// Being minimalist, not lazy. The chunked handler is not meant to be used with a\n\t// backing store that supports the GetE protocol extension. It would be a waste of\n\t// time and effort to support it here if it would \...
codesearchnet
{ "query": "Represent the Github comment about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about Software development:" }
This is sample for implement BOT in LINE group Invite your BOT to group, then BOT will auto accept your invitation Command availabe : > hi > /author
[ "def RECEIVE_MESSAGE(op):\n '''\n \n '''\n msg = op.message\n \n text = msg.text\n msg_id = msg.id\n receiver = msg.to\n sender = msg._from\n \n try:\n # Check content only text message\n if msg.contentType == 0:\n # Check only group chat\n if...
[ "def Chat(self, Name=''):\n \n o = Chat(self, Name)\n o.Status # Tests if such a chat really exists.\n return o" ]
codesearchnet
{ "query": "Represent the post:", "pos": "Represent the code:", "neg": "Represent the code about programming:" }
// RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation.
[ "func (c *AuthenticationV1beta1Client) RESTClient() rest.Interface {\n\tif c == nil {\n\t\treturn nil\n\t}\n\treturn c.restClient\n}" ]
[ "func (h Handler) GetE(cmd common.GetRequest) (<-chan common.GetEResponse, <-chan error) {\n\t// Being minimalist, not lazy. The chunked handler is not meant to be used with a\n\t// backing store that supports the GetE protocol extension. It would be a waste of\n\t// time and effort to support it here if it would \...
codesearchnet
{ "query": "Represent the sentence about Software development:", "pos": "Represent the code about Software development:", "neg": "Represent the code about Software development:" }
Called when the activity is first created.
[ "@Override\n public void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n MainActivity.updateStoragePrefreneces(this); //needed for unit tests\n\n registerReceiver(networkReceiver, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));\n\n th...
[ "public void onTransformChanged() {\n Log.v(Log.SUBSYSTEM.WIDGET, TAG, \"onTransformChanged(): %s mPreventTransformChanged = %b\",\n getName(), mPreventTransformChanged);\n\n // Even if the calling code that altered the transform doesn't request a\n // layout, we'll do a layout t...
codesearchnet
{ "query": "Represent the Github text:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
// Attempts Migration of a VM to a different host or Root volume of the vm to a different storage pool
[ "func (s *VirtualMachineService) MigrateVirtualMachine(p *MigrateVirtualMachineParams) (*MigrateVirtualMachineResponse, error) {\n\tresp, err := s.cs.newRequest(\"migrateVirtualMachine\", p.toURLValues())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar r MigrateVirtualMachineResponse\n\tif err := json.Unmarsh...
[ "def initrd(self, initrd):\n \n\n initrd = self.manager.get_abs_image_path(initrd)\n\n log.info('QEMU VM \"{name}\" [{id}] has set the QEMU initrd path to {initrd}'.format(name=self._name,\n id=self._id,\n...
codesearchnet
{ "query": "Represent the Github sentence:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
Return the balance of `address`.
[ "def balance_of(self, address, block_identifier='latest'):\n \n return self.proxy.contract.functions.balanceOf(\n to_checksum_address(address),\n ).call(block_identifier=block_identifier)" ]
[ "def post_build(self, p, pay):\n \n p += pay\n if self.auxdlen != 0:\n print(\"NOTICE: A properly formatted and complaint V3 Group Record should have an Auxiliary Data length of zero (0).\")\n print(\" Subsequent Group Records are lost!\")\n return p" ]
codesearchnet
{ "query": "Represent the Github description:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
Check whether the state of this {@link SimpleCallStateMachine} is considered to be terminated. @return
[ "public boolean isTerminated() {\n return this.currentState == COMPLETED || this.currentState == REJECTED || this.currentState == CANCELLED\n || this.currentState == FAILED || this.currentState == REDIRECT;\n }" ]
[ "@Override\n public boolean setProperty(String name, Object value)\n {\n /* Note: can not call local method, since it'll return false for\n * recognized but non-mutable properties\n */\n return mConfig.setProperty(name, value);\n }" ]
codesearchnet
{ "query": "Represent the Github comment about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code about programming:" }
Merge <title> tags @param {Object} elem New title tag
[ "function mergeTitle( elem ) {\n\t\tmerge( elem, function( old ) {\n\t\t\tvar text = elem.children[ 0 ];\n\n\t\t\tutils.replaceElement( old.children[ 0 ], text );\n\t\t\told.children[ 0 ] = text;\n\t\t} );\n\t}" ]
[ "function make_event(event, target) {\n return string_p(event)? Event.make(event, target)\n : /* otherwise */ event }" ]
codesearchnet
{ "query": "Represent the Github sentence about Programming:", "pos": "Represent the Github code about Programming:", "neg": "Represent the Github code:" }
// Validate inspects the fields of the type to determine if they are valid.
[ "func (s *ApproveSkillInput) Validate() error {\n\tinvalidParams := request.ErrInvalidParams{Context: \"ApproveSkillInput\"}\n\tif s.SkillId == nil {\n\t\tinvalidParams.Add(request.NewErrParamRequired(\"SkillId\"))\n\t}\n\n\tif invalidParams.Len() > 0 {\n\t\treturn invalidParams\n\t}\n\treturn nil\n}" ]
[ "function Rule(rules) {\n this.rules = rules;\n // Identifies individual rule\n this.name = \"\";\n // Identifies the grammar that this rule belongs to \n this.grammarName = \"\";\n // Identifies types of rules. Rules can have \"types\" that are diff...
codesearchnet
{ "query": "Represent the sentence about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
@return \Fubhy\GraphQL\Language\Node\Directive @throws \Exception
[ "protected function parseDirective()\n {\n $start = $this->token->getStart();\n $this->expect(Token::AT_TYPE);\n\n return new Directive(\n $this->parseName(),\n $this->parseArguments(),\n $this->location($start)\n );\n }" ]
[ "public function handleManipulateAST(ManipulateAST $ManipulateAST): void\n {\n $ManipulateAST->documentAST = ASTHelper::attachDirectiveToObjectTypeFields(\n $ManipulateAST->documentAST,\n PartialParser::directive('@deferrable')\n );\n\n $ManipulateAST->documentAST->setD...
codesearchnet
{ "query": "Represent the Github description about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about programming:" }
Recursively iterate all child nodes of current node. @yield [child] Gives a child node. @yieldparam child [Parser::AST::Node] child node
[ "def recursive_children\n self.children.each do |child|\n if Parser::AST::Node === child\n yield child\n child.recursive_children { |c| yield c }\n end\n end\n end" ]
[ "public LHS toLHS( CallStack callstack, Interpreter interpreter)\n throws EvalError\n {\n // loosely typed map expression new {a=1, b=2} are treated\n // as non assignment (LHS) to retrieve Map.Entry key values\n // then wrapped in a MAP_ENTRY type LHS for value assignment.\n r...
codesearchnet
{ "query": "Represent the Github description about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code:" }
Find record created on or after date. @param onOrAfterDate cutoff date @return records created on or after date
[ "public List<CouchDbMultifactorAuthenticationTrustRecord> findOnOrAfterDate(final LocalDateTime onOrAfterDate) {\n return db.queryView(createQuery(\"by_recordDate\").startKey(onOrAfterDate), CouchDbMultifactorAuthenticationTrustRecord.class);\n }" ]
[ "def resolve(self, year: int = YEAR_ANY) -> MDate:\n \n year = year or self.year\n if year:\n return self._resolve(year)\n raise ValueError('Unable resolve the date without a specified year.')" ]
codesearchnet
{ "query": "Represent the summarization:", "pos": "Represent the code:", "neg": "Represent the code about Programming:" }
// union returns the union of s and t, reusing s's storage.
[ "func (s stringSet) union(t stringSet, isSuffix bool) stringSet {\n\ts = append(s, t...)\n\ts.clean(isSuffix)\n\treturn s\n}" ]
[ "NameAndType nameType(Symbol sym) {\n return new NameAndType(sym.name, sym.externalType(types), types);\n // the NameAndType is generated from a symbol reference, and the\n // adjustment of adding an additional this$n parameter needs to be made.\n }" ]
codesearchnet
{ "query": "Represent the description about Programming:", "pos": "Represent the code about Programming:", "neg": "Represent the code about programming:" }
// SetDifferences sets the Differences field's value.
[ "func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput {\n\ts.Differences = v\n\treturn s\n}" ]
[ "@Override\n public void addElement(Map<String, Object> e, Map<String, AggregatorFactory> a)\n {\n // since we return a constant, no need to read from the event\n }" ]
codesearchnet
{ "query": "Represent the post about Programming:", "pos": "Represent the code about Programming:", "neg": "Represent the code:" }
Parse the project.xml formatted file and fill in the nodes found
[ "public void parse() throws NodeFileParserException {\n final ResourceXMLParser resourceXMLParser;\n if(null!=file){\n resourceXMLParser=new ResourceXMLParser(file);\n }else{\n resourceXMLParser = new ResourceXMLParser(input);\n }\n //parse both node and sett...
[ "function PbfSplicer(options) {\n // tag which will be auto-removed and auto-injected. Usually 'name'\n this.nameTag = options.nameTag;\n // tag that contains JSON initially, and which works as a prefix for multiple values\n this.multiTag = options.multiTag;\n\n // If options.namePicker is given, this class co...
codesearchnet
{ "query": "Represent the Github comment about Software Development:", "pos": "Represent the Github code about Software Development:", "neg": "Represent the Github code about programming:" }
Removes a person from the list of blocked. @param ComActorsDomainEntityActor $person
[ "public function removeBlocked($person)\n {\n $leader = $this->_mixer;\n\n $data = array(\n 'blocker' => $leader,\n 'blocked' => $person,\n );\n\n $this->getService('repos:actors.block')->destroy($data);\n\n $this->resetStats(array($leader, $person));\n ...
[ "def getDeviceRole(self):\n \"\"\"\"\"\"\n print '%s call getDeviceRole' % self.port\n return self.__stripValue(self.__sendCommand(WPANCTL_CMD + 'getprop -v Network:NodeType')[0])" ]
codesearchnet
{ "query": "Represent the Github summarization about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code:" }
Execute the curl request @param object $handle curl handle to execute @param array $options array of curl configs @return object Response class instance
[ "public function executeRequest($handle, array $options = array())\n {\n static $retries = 0;\n\n $result = curl_exec($handle);\n $info = curl_getinfo($handle);\n\n if ($result === false) {\n $info = array_merge($info, array(\n 'is_success' => false,\n ...
[ "public function body($payload, $mimeType = null)\n {\n $this->mime($mimeType);\n $this->payload = $payload;\n // Iserntentially don't call _serializePayload yet. Wait until\n // we actually send off the request to convert payload to string.\n // At that time, the `serialized_...
codesearchnet
{ "query": "Represent the Github post about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code about Programming:" }
get the element of the list defined by listClass and identified by the in parameter @access public @author Joel Bout, <joel.bout@tudor.lu> @param Class listClass @param string uri @return core_kernel_classes_Resource
[ "public function getListElement( core_kernel_classes_Class $listClass, $uri)\n {\n $returnValue = null;\n\n \n \n if(!empty($uri)){\n\t foreach($this->getListElements($listClass, false) as $element){ \t\n\t \tif($element->getUri() == $uri){\n\t \t\t$return...
[ "protected function parseExpressionHtmlLine( Line$line ):self\n\t{\n\t\t$content= $line->slice(1);\n\n\t\treturn $this->openNode(new StringNode($this,$line))->appendLine(\"<?$content?>\");\n\t}" ]
codesearchnet
{ "query": "Represent the instruction about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about programming:" }
// Get the list of repository information of an organization // // https://developer.github.com/v3/repos/#list-organization-repositories
[ "func (g *OrganizationService) OrganizationRepos(uri *Hyperlink, params M) (\n\trepos []Repository, result *Result) {\n\tif uri == nil {\n\t\turi = &OrganizationReposURL\n\t}\n\turl, err := uri.Expand(params)\n\tif err != nil {\n\t\treturn nil, &Result{Err: err}\n\t}\n\tresult = g.client.get(url, &repos)\n\treturn\...
[ "func (c *ApiController) GetAccountInfo() {\n\tfmt.Println(\"Start get account info\")\n\n\t//user := GithubOauthUser{Name:\"tobe\", HTMLURL: \"https://github.com/tobegit3hub\", Company: \"UnitedStack Inc\"}\n\n\tclient := github.NewClient(oauthCfg.Client(oauth2.NoContext, tkn))\n\n\tuser, _, err := client.Users.Ge...
codesearchnet
{ "query": "Represent the Github description about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code about Software Development:" }
// Change implements imageserver/image.Processor.
[ "func (prc *RotateProcessor) Change(params imageserver.Params) bool {\n\tif !params.Has(rotateParam) {\n\t\treturn false\n\t}\n\tparams, err := params.GetParams(rotateParam)\n\tif err != nil {\n\t\treturn true\n\t}\n\tif params.Empty() {\n\t\treturn false\n\t}\n\tif params.Has(\"rotation\") {\n\t\treturn true\n\t}\...
[ "def :\n \"\"\"\"\"\"\n CheckParent(self)\n\n return _fitz.Annot_" ]
codesearchnet
{ "query": "Represent the description about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code:" }
// Create a new LastFM struct. // The apiKey parameter must be an API key registered with Last.fm.
[ "func New(apiKey string) LastFM {\n\treturn LastFM{\n\t\tapiKey: apiKey,\n\t\tgetter: http.DefaultClient,\n\t\tCache: struct {\n\t\t\t*sync.RWMutex\n\t\t\t*cache.Cache\n\t\t}{\n\t\t\tRWMutex: &sync.RWMutex{},\n\t\t\tCache: cache.New(DefaultDuration, DefaultCleanupInterval),\n\t\t},\n\t}\n}" ]
[ "function(apiClient) {\n this.apiClient = apiClient || Configuration.default.getDefaultApiClient() || ApiClient.instance;\n\n\n this.setApiClient = function(apiClient) {\n this.apiClient = apiClient;\n };\n\n this.getApiClient = function() {\n return this.apiClient;\n };\n\n\n /**\n ...
codesearchnet
{ "query": "Represent the summarization about Programming:", "pos": "Represent the code about Programming:", "neg": "Represent the code about Software development:" }
(Super-simple) Logger @param context {String} Logger level
[ "function WebDriverLogger(log_level) {\n var _push;\n\n // default to no-opt\n if (log_level === \"OFF\" || log_levels.indexOf(log_level) === -1) {\n _push = function(_) {};\n } else {\n _push = function(arg) { this.log.push(arg); };\n }\n\n return {\n log: [],\n push: ...
[ "function make_event(event, target) {\n return string_p(event)? Event.make(event, target)\n : /* otherwise */ event }" ]
codesearchnet
{ "query": "Represent the post about Software development:", "pos": "Represent the code about Software development:", "neg": "Represent the code:" }
/*! Iterates over the nodes \a $nodes and does transformation on them. \sa processNodeTransformationChildren \note This method can be called from operator and functions as long as they have the \a $privateData parameter.
[ "static function processNodeTransformationNodes( $tpl, &$node, &$nodes, &$privateData )\n {\n $useComments = $privateData['use-comments'];\n $php =& $privateData['php-creator'];\n $resourceData =& $privateData['resource-data'];\n return eZTemplateCompiler::processNodeTransformationChi...
[ "NameAndType nameType(Symbol sym) {\n return new NameAndType(sym.name, sym.externalType(types), types);\n // the NameAndType is generated from a symbol reference, and the\n // adjustment of adding an additional this$n parameter needs to be made.\n }" ]
codesearchnet
{ "query": "Represent the text about programming:", "pos": "Represent the code about programming:", "neg": "Represent the code about programming:" }
Creates a DELIVERED message. @param deliveredZxid the last zxid of delivered transaction. @return a protobuf message.
[ "public static Message buildDelivered(Zxid deliveredZxid) {\n ZabMessage.Zxid zxid = toProtoZxid(deliveredZxid);\n ZabMessage.Delivered delivered =\n ZabMessage.Delivered.newBuilder().setZxid(zxid).build();\n return Message.newBuilder().setType(MessageType.DELIVERED)\n .s...
[ "def post_build(self, p, pay):\n \n p += pay\n if self.auxdlen != 0:\n print(\"NOTICE: A properly formatted and complaint V3 Group Record should have an Auxiliary Data length of zero (0).\")\n print(\" Subsequent Group Records are lost!\")\n return p" ]
codesearchnet
{ "query": "Represent the instruction about Software development:", "pos": "Represent the code about Software development:", "neg": "Represent the code:" }
Method 2: Load from a file
[ "public void method2() {\n Engine engine = null;\n String configurationFile = \"/ObstacleAvoidance.fll\";\n URL url = SimpleDimmer.class.getResource(configurationFile);\n try {\n engine = new FllImporter().fromFile(new File(url.toURI()));\n } catch (Exception ex) {\n ...
[ "def post_build(self, p, pay):\n \n p += pay\n if self.auxdlen != 0:\n print(\"NOTICE: A properly formatted and complaint V3 Group Record should have an Auxiliary Data length of zero (0).\")\n print(\" Subsequent Group Records are lost!\")\n return p" ]
codesearchnet
{ "query": "Represent the Github sentence:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
Item renderer for stylesheet-picker dropdown
[ "function _stylesheetListRenderer(item) {\n var html = \"<span class='stylesheet-name'>\" + _.escape(item.name);\n if (item.subDirStr) {\n html += \"<span class='stylesheet-dir'> — \" + _.escape(item.subDirStr) + \"</span>\";\n }\n html += \"</span>\";\n return html;\n ...
[ "def build(self):\n \"\"\"\"\"\"\n from ambry.orm.config import BuildConfigGroupAccessor\n\n # It is a lightweight object, so no need to cache\n return BuildConfigGroupAccessor(self.dataset, 'buildstate', self._session)" ]
codesearchnet
{ "query": "Represent the Github summarization:", "pos": "Represent the Github code:", "neg": "Represent the Github code:" }
Sets the {@code addresses}. @param addresses formatted as "host1[:port],host2[:port]", etc. @throws NullPointerException if {@code addresses} is null
[ "public ConnectionOptions withAddresses(String addresses) {\n this.addresses = Address.parseAddresses(Assert.notNull(addresses, \"addresses\"));\n return this;\n }" ]
[ "public void addAdditionalField(String keyValue) {\n String[] splitted = keyValue.split(\":\");\n\n if (splitted.length != 2) {\n\n throw new IllegalArgumentException(\"additionalField must be of the format key:value, where key is the MDC \"\n + \"key, and value is the GE...
codesearchnet
{ "query": "Represent the description about Software development:", "pos": "Represent the code about Software development:", "neg": "Represent the code:" }
These parameters are sent with the request to the endpoint specified in the action option. @param aParams New parameters to be added. @return this
[ "@Nonnull\n public FineUploaderBasic addParams (@Nullable final Map <String, String> aParams)\n {\n m_aRequestParams.addAll (aParams);\n return this;\n }" ]
[ "@Override\n\tpublic void validateSetup(Server server, Query query) throws ValidationException {\n\t\tlogger.info(\"Starting Stackdriver writer connected to '{}', proxy {} ...\", gatewayUrl, proxy);\n\t}" ]
codesearchnet
{ "query": "Represent the Github sentence about text processing:", "pos": "Represent the Github code about text processing:", "neg": "Represent the Github code about Programming:" }
Constructs a MessageInteractionContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionContext
[ "public function getContext($sid) {\n return new MessageInteractionContext(\n $this->version,\n $this->solution['serviceSid'],\n $this->solution['sessionSid'],\n $this->solution['participantSid'],\n $sid\n );\n }" ]
[ "public function createRole(RoleAssignment $roleAssignment): UIValue\\User\\Role\n {\n return new UIValue\\User\\Role($roleAssignment);\n }" ]
codesearchnet
{ "query": "Represent the instruction about Programming:", "pos": "Represent the code about Programming:", "neg": "Represent the code about Programming:" }
Parses an annotation value @param string $value @return mixed
[ "public function parse($value) {\n\t\t$json = $this->decode($value);\n\t\tif (JSON_ERROR_NONE == json_last_error()) {\n\t\t\treturn $json;\n\t\t}\n\t\t$float = filter_var($value, FILTER_VALIDATE_FLOAT);\n\t\treturn $float !== false ? $float : $value;\n\t}" ]
[ "function make_event(event, target) {\n return string_p(event)? Event.make(event, target)\n : /* otherwise */ event }" ]
codesearchnet
{ "query": "Represent the description about Programming:", "pos": "Represent the code about Programming:", "neg": "Represent the code:" }
// Query sets the query for the function score query.
[ "func (q *FunctionScoreQuery) Query(query Query) *FunctionScoreQuery {\n\tq.query = query\n\treturn q\n}" ]
[ "@Override\n public void addElement(Map<String, Object> e, Map<String, AggregatorFactory> a)\n {\n // since we return a constant, no need to read from the event\n }" ]
codesearchnet
{ "query": "Represent the Github comment about software development:", "pos": "Represent the Github code about software development:", "neg": "Represent the Github code:" }
The every() method tests whether all elements in the array pass the test implemented by the provided function. @param callable $callback @return bool
[ "public function every(callable $callback)\n {\n $array = $this->getArrayCopy();\n foreach ($array as $key => $value) {\n if ($callback($value, $key, $array) === false) {\n return false;\n }\n }\n\n return true;\n }" ]
[ "public static <T> BooleanSupplier curry(Predicate<T> predicate, T value) {\n dbc.precondition(predicate != null, \"cannot bind parameter of a null predicate\");\n return () -> predicate.test(value);\n }" ]
codesearchnet
{ "query": "Represent the instruction about Software development:", "pos": "Represent the code about Software development:", "neg": "Represent the code about programming:" }
Finds query parameters based on {@link javax.ws.rs.QueryParam} annotation. @param baseParam the base parameter URI @param method the method to scan @return the map of parameter URI by parameter name
[ "static Map<String, String> findQueryParams(String baseParam, Method method) {\n Map<String, String> hrefVars = new HashMap<>();\n Annotation[][] parameterAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < parameterAnnotations.length; i++) {\n Annotation[] paramAnn...
[ "public Javalin addHandler(@NotNull HandlerType httpMethod, @NotNull String path, @NotNull Handler handler) {\n return addHandler(httpMethod, path, handler, new HashSet<>()); // no roles set for this route (open to everyone with default access manager)\n }" ]
codesearchnet
{ "query": "Represent the Github summarization about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code about programming:" }
Determine if the browser is Vivaldi. @return bool
[ "public static function checkBrowserVivaldi()\n {\n if (stripos(self::$userAgentString, 'Vivaldi') !== false) {\n $aresult = explode('/', stristr(self::$userAgentString, 'Vivaldi'));\n if (isset($aresult[1])) {\n $aversion = explode(' ', $aresult[1]);\n ...
[ "public File getExistingFile(final String param) {\n return get(param, getFileConverter(),\n new And<>(new FileExists(), new IsFile()),\n \"existing file\");\n }" ]
codesearchnet
{ "query": "Represent the description about NLP:", "pos": "Represent the code about NLP:", "neg": "Represent the code about File management:" }
Initialize the configuration value.
[ "public function initialize()\n {\n if (!$this->checked) {\n $this->config->checkConfig();\n $this->checked = true;\n $this->data = $this->config->get($this->path, $this->default);\n }\n }" ]
[ "@Override\n\tpublic void validateSetup(Server server, Query query) throws ValidationException {\n\t\tlogger.info(\"Starting Stackdriver writer connected to '{}', proxy {} ...\", gatewayUrl, proxy);\n\t}" ]
codesearchnet
{ "query": "Represent the Github text about Software Development:", "pos": "Represent the Github code about Software Development:", "neg": "Represent the Github code about Programming:" }
:param array: array of shape (N, L) or (N, L, I) :param sids: array of N site IDs
[ "def from_array(cls, array, sids):\n \n n_sites = len(sids)\n n = len(array)\n if n_sites != n:\n raise ValueError('Passed %d site IDs, but the array has length %d'\n % (n_sites, n))\n if len(array.shape) == 2: # shape (N, L) -> (N, L, 1)\n ...
[ "def label(self, input_grid):\n \n marked = self.find_local_maxima(input_grid)\n marked = np.where(marked >= 0, 1, 0)\n # splabel returns two things in a tuple: an array and an integer\n # assign the first thing (array) to markers\n markers = splabel(marked)[0]\n ret...
codesearchnet
{ "query": "Represent the Github text about programming:", "pos": "Represent the Github code about programming:", "neg": "Represent the Github code:" }
// SetEngineType sets the EngineType field's value.
[ "func (s *DescribeConfigurationOutput) SetEngineType(v string) *DescribeConfigurationOutput {\n\ts.EngineType = &v\n\treturn s\n}" ]
[ "private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n GetField fields = in.readFields();\n beginDefaultContext = fields.get(BEGIN_DEFAULT, true);\n\n // Note that further processing is required in JEEMetadataContextProviderImpl.deserializeThreadCo...
codesearchnet
{ "query": "Represent the Github post about Software development:", "pos": "Represent the Github code about Software development:", "neg": "Represent the Github code about programming:" }