seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
state.optionalCounter =
state.optionalCounter == nil
? CounterState()
: nil
return .none
case .optionalCounter:
return .none
}
}
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
container = QWidget()
container.setLayout(vBoxMain)
self.setCentralWidget(container)
# Then let's set up a menu.
self.menu = self.menuBar()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
actionSheet.addButton(withTitle: title)
}
}
AlertHelper.sharedHelper.setButtonTappedHandler(action: buttonTappedHandler)
actionSheet.show(in: view)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var output: String = ""
lines.indices.forEach { index in
output += lines[index].joined(separator: Tokens.whitespace) + Tokens.newLine
}
return output
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--modeldir 'http://models.geo.admin.ch/;http://geo.so.ch/models' \
--models SO_AWJF_Wegsanierungen_20170629 --disableValidation \
--export --dbschema awjf_wegsanierungen \
/sogis/daten_tools/skripte/db_schema_definition_edit/migration_sogis-db/awjf_wegsanierungen/v1/awjf_wegsanierungen.xtf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BaseModel,
file_path,
)
from .notifications import Notification
from .users import User
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ListPrivilegedResponse, Privilege, TgradeMsg, TgradeQuery, TgradeSudoMsg, ValidatorDiff,
ValidatorVoteResponse,
};
fn main() {
let mut out_dir = current_dir().unwrap();
out_dir.push("schema");
create_dir_all(&out_dir).unwrap();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@not_minified_response
def get_template_ex(request, template_name):
html = render_to_response(
'views/%s.html' % template_name,
context_instance=RequestContext(request, {'form': UserForm()}))
return html
@not_minified_response
def get_embed_codes_dialog(request, slug):
payload = {
'embed_code': 'http://%s/embed/mix/%s' % (Site.objects.get_current().domain, slug)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
feed-forward neural networks.
hidden_layers: An integer indicating the number of hidden layers in the
feed-forward neural networks.
dropout_ratio: The probability of dropping out each unit in the activation.
This can be None, and is only applied during training.
mode: One of the keys from tf.estimator.ModeKeys.
epsilon: A small positive constant to add to masks for numerical stability.
Returns:
final_emb: A Tensor with shape [batch_size, hidden_size].
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ParsersImpl::next_offset(self)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not getenv('VERBOSE'):
return
print(datetime.now(), ' ', end='')
print(*a, **k)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Maintainer : <NAME> <<EMAIL>>
#
# Disclaimer: This script has been tested in non-root mode on given
# ========== platform using the mentioned version of the package.
# It may not work as expected with newer versions of the
# package and/or distribution. In such case, please
# contact "Maintainer" of this script.
#
# ----------------------------------------------------------------------------
#!/bin/bash
# Install dependencies.
sudo yum update -y
sudo yum install -y git gcc wget make python tar \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
props.unwrap().greeting.parse().unwrap(),
);
map
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
twos += two
threes += three
checksum = twos * threes
| ise-uiuc/Magicoder-OSS-Instruct-75K |
],
entry_points='''
[console_scripts]
CAM2RequestsCLI=CAM2RequestsCLI:cli
''',
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app_name="freenit" # noqa: E225
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if classes == []:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let timestamp: Date = Date()
init(level: Level, tag: Tag?, file: StaticString, function: StaticString, line: UInt) {
self.level = level
self.tag = tag
self.file = URL(fileURLWithPath: String(describing: file)).lastPathComponent
self.function = String(describing: function)
self.line = line
}
}
extension Metadata: CustomStringConvertible {
public var description: String {
let desc = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in six.moves.range(len(self.out_channels)):
x = self['conv{}'.format(i)](self.concatenate(x), train=train)
outputs.append(x)
x = [outputs[ii] for ii, s in enumerate(self.skip_connections) if s[i] == 1] + [outputs[i]]
x = outputs[-1]
batch, channels, height, width = x.data.shape
x = F.reshape(F.average_pooling_2d(x, (height, width)), (batch, channels, 1, 1))
return F.reshape(self.linear(x, train), (batch, self.category_num))
def calc_loss(self, y, t):
loss = F.softmax_cross_entropy(y, t)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>patrickmmartin/Newtrino<gh_stars>1-10
import sys
if __name__== "__main__":
with open(sys.argv[1]) as f:
for lines in f:
for line in lines.split(";"):
if (line != ""): print(line + ";") | ise-uiuc/Magicoder-OSS-Instruct-75K |
func addShadow() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using HelixToolkit.SharpDX.Core.Model.Scene2D;
#endif
namespace HelixToolkit.Wpf.SharpDX
{
using Core2D;
#if !COREWPF
using Model.Scene2D;
#endif
namespace Elements2D
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.*;
import java.util.stream.Collectors;
/**
* resource process definition utils
*/
public class ResourceProcessDefinitionUtils {
/**
* get resource process map key is resource id,value is the set of process definition
* @param list the map key is process definition id and value is resource_ids
* @return resource process definition map
*/
public static Map<Integer, Set<Integer>> getResourceProcessDefinitionMap(List<Map<String, Object>> list) {
Map<Integer, String> map = new HashMap<>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var observe: ((TimeInterval) -> Void)? { get set }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @return array|false
*/
public function getReferenceByKeyword(string $keyword)
{
$keyword = $this->da->quoteSmart($keyword);
$sql = "SELECT *
FROM $this->table_name
WHERE source_keyword = $keyword";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
binfun = self.experiment.binfun
if value_label is None:
self.covariates[label] = Covariate(
self, label, description, lambda trial: delta_stim(
binfun(trial[var_label]), binfun(trial.duration)), *args,
**kwargs)
else:
self.covariates[label] = Covariate(
self, label, description,
lambda trial: trial[value_label] * delta_stim(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// reserve capital letters for proper nouns and acronyms.
virtual string HumanName() const = 0;
/// Return the fully namespace-qualified name of the instance class.
virtual string InternalName() const = 0;
};
}
}
#endif | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.app.selectParticle(self.particle)
# return the drag start coordinates
return self.particle.getLoc()
else:
self.app.selectParticle(None)
return False
def drag(self,newx,newy):
"""\
Handler for the duration of the dragging operation.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# flake8: noqa
"""
Confluencer – A CLI tool to automate common Confluence maintenance tasks and content publishing.
Copyright © 2015 1&<NAME> <<EMAIL>>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import pandas as pd
import numpy as np
import pickle
from collections import Counter
import gzip
import random
import sklearn
from wordcloud import WordCloud
import matplotlib.pyplot as plt
from nltk.metrics import *
from sklearn.pipeline import Pipeline
def save(obj, filename, protocol=pickle.DEFAULT_PROTOCOL):
with gzip.open(filename, 'wb') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
b.HasIndex("ChannelID");
b.HasIndex("DigestId");
b.ToTable("DigestPosts");
});
modelBuilder.Entity("ItLinksBot.Models.Link", b =>
{
b.Property<int>("LinkID")
.ValueGeneratedOnAdd()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const expand = (refName: string): string | null => {
const m = refName.match(/^npm:(.+)$/);
if (m === null) return null;
const pkg: string = m[1];
return `https://www.npmjs.com/package/${pkg}`;
};
export { expand };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cin >> matriz[l][c];
}
}
for (int l = 0; l < 3; l++){
for (int c = 0; c < 2; c++){
cout << matriz[l][c] << " ";
}
cout << endl;
}
return 0;
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.info("filename = " + filename + " ---> uri = " + uri + " ---> path = " + uri.getPath());
if (StringUtils.isNotEmpty(uri.toString())) {
fileUriMap.put(filename, uri);
String src = new File(uri.getPath()).getParentFile().getAbsolutePath();
if (!srcTargetMap.containsKey(src)) {
srcTargetMap.put(src, DOCKER_INPUT_PATH + srcTargetMap.size());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
field=models.DateTimeField(null=True),
),
migrations.AddField(
model_name='setting',
name='site_email',
field=models.EmailField(max_length=254, null=True),
),
migrations.AddField(
model_name='setting',
name='site_opentime',
field=models.DateTimeField(null=True),
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int32_t value;
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = table
try:
num_rows = f.result()
except Exception as exc:
logger.info(f"{name}: failed ({exc})")
num_errors += 1
else:
logger.info(f"{name}: {num_rows:,} rows deleted")
if num_errors:
raise RuntimeError(f"{num_errors} tables failed")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_empty_agent_name():
with pytest.raises(ValueError):
main(["script-name", "--agent_name", "basic"])
def test_wrong_agent_name():
with pytest.raises(NotImplementedError) as not_implemented:
main(["script-name", "--agent_name", "basic2", "--scenario", "basic"])
assert str(not_implemented.value) == "There is not agent implemented for agent_name: basic2"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
class BitrixController extends Controller
{
/**
* {@inheritdoc}
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.bol.model.Pit;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.UUID;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def generateParenthesis(self, n: int) -> List[str]:
l=['()']
if n==0: return []
for i in range(1,n):
newl=[]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int testcase, cases = 0;
char s[1024];
scanf("%d", &testcase);
while(testcase--) {
scanf("%s", s);
int n = strlen(s);
int dp[1024][24], inf;
int i, j, k;
memset(dp, 63, sizeof(dp));
inf = dp[0][0];
dp[0][6] = 0;
for(i = 0; i < n; i++) {//where
for(j = 0; j < 24; j++) {//time
if(dp[i][j] == inf)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class RobokassaConfig(AppConfig):
name = 'django-robokassa'
label = 'Robokassa'
verbose_name = u'Робокасса'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
memcpy(m_pool[m_writeIndex].frame, data, size);
if (++m_writeIndex >= POOL_SIZE) m_writeIndex = 0;
}
StreamData* Pool::takeData()
{
StreamData *data = NULL;
if (m_readIndex == m_writeIndex) return data;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
), 'inline': False})
#effects
for i,effect in enumerate(card['effects']):
value=[]
#cnds_iname
if 'cnds_iname' in effect:
value.append(
'__**Condition(s):**__\n'+CardConditions(effect['cnds_iname'])
)
#abil_iname
if 'abil_iname' in effect:
value.append('__**Vision Ability:**__\n'+
DIRS['Ability'][effect['abil_iname']]['name']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Scribe_Values.Look(ref recentVarieties, "recentVarieties");
}
// Token: 0x06000022 RID: 34 RVA: 0x000034A4 File Offset: 0x000016A4
public static void TrackRecentlyConsumed(ref Pawn_VarietyTracker pawnRecord, Pawn ingester, Thing foodSource)
{
if (pawnRecord.recentlyConsumed == null)
{
pawnRecord.recentlyConsumed = new List<string> { "First food" };
pawnRecord.lastVariety = new List<string>();
}
var baseVarietyExpectation = VarietyExpectation.GetBaseVarietyExpectation(ingester);
var varietyExpectation = VarietyExpectation.GetVarietyExpectation(ingester);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<span><a href="/Ar/feqh/report/asatid/">الإحصائیات</a>‌</span> |
<span><a href="/Ar/feqh/timing/">المباشر</a>‌</span> |
<span><a href="/feqh/monitoring/">درس اليوم</a>‌</span> | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
m_children.push_back(pChild);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
state = None
while index < 30:
state = client.cluster.query(query) \
.rowsAsObject()[0].get("state")
if state == "online":
break
self.sleep(1)
if state != "online":
self.log_failure("Index 'index_%s' not yet online" % index)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// # Returns
/// The C string or `null` if there was an error, in which case the [last_error_message](super::err::last_error_message)
/// can be called to get the error message.
/// # Example
/// ```rust
/// # use crate::libhaystack::val::Value;
/// # use crate::libhaystack::c_api::value::*;
/// # use crate::libhaystack::c_api::xstr::*;
/// # unsafe {
/// let name = std::ffi::CString::new("Type").unwrap();
/// let data = std::ffi::CString::new("data").unwrap();
/// let val = haystack_value_make_xstr(name.as_ptr(), data.as_ptr());
/// # let val = Box::<Value>::leak(val.unwrap());
/// let res = haystack_value_get_xstr_type(val) as *mut i8;
/// assert_eq!(std::ffi::CString::from_raw(res), name);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export VIAME_INSTALL="$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd)/../.."
source ${VIAME_INSTALL}/setup_viame.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
def query(self):
if not hasattr(self.state, 'pyquery'):
self.state.pyquery = pyquery.PyQuery(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# data = numpy.ndarray(shape=(2,3), dtype=object)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (null != PlatformOnNewCrashesFound) PlatformOnNewCrashesFound();
else base.OnNewCrashesFound();
}
public Action PlatformOnUserDeniedCrashes { get; set; } = null;
public override void OnUserDeniedCrashes()
{
if (null != PlatformOnUserDeniedCrashes) PlatformOnUserDeniedCrashes();
else base.OnUserDeniedCrashes();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
interpolation between :py:attr:`volume` and :py:attr:`cone_outer_gain`.
""")
cone_outer_gain = _player_property('cone_outer_gain', doc="""
The gain applied outside the cone.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public function get_angka()
{
$varkode = $this->input->get('varkode');
switch($varkode)
{
case 1: $varkode = 'ADM'; break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
touch ${PROJECT_DIR}/Bumper/Assets.xcassets/AppIcon.appiconset/*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# if hasattr(self.config,"comet_api_key"):
if ("comet_api_key" in self.config):
from comet_ml import Experiment
experiment = Experiment(api_key=self.config.comet_api_key, project_name=self.config.exp_name)
experiment.disable_mp()
experiment.log_parameters(self.config["args"])
self.callbacks.append(experiment.get_callback('keras'))
def train(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
full_name = owner_name,
verified = owner_verifed
),
location = location,
media_result = media_result
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
cross_frame = vtreat_impl.perform_transform(
x=X, transform=self, params=self.params_
)
if (cross_plan is None) or (cross_rows != X.shape[0]):
if cross_plan is not None:
warnings.warn(
"Number of rows different than previous fit with retain_cross_plan==True"
)
cross_plan = self.params_["cross_validation_plan"].split_plan(
n_rows=X.shape[0],
k_folds=self.params_["cross_validation_k"],
data=X,
y=y,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ID3ArtistFrameContentParsingOperationFactory {
static func make() -> ID3FrameStringContentParsingOperation {
return ID3FrameStringContentParsingOperationFactory.make() { (content: String) in
return (.Artist, ID3FrameWithStringContent(content: content))
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from numpy import *
import pdb
"""
This test :
1 : loads a measured antenna
2 : applies an electrical delay obtained from data with getdelay method
3 : evaluate the antenna vsh coefficient with a downsampling factor of 2
4 : display the 16 first
"""
filename = 'S1R1.mat'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
id = self.getAncestorThemeParkID()
if(id != None):
return Park(id)
else:
return None
except:
try:
id = self.getAncestorWaterParkID()
if(id != None):
return Park(id)
else:
return None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run_tests() {
$GOPATH/bin/goveralls -service=travis-ci
./tests.sh --skip-go-test
}
release() {
env VERSION=$TRAVIS_TAG ./release.sh
}
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
# Pull Requests.
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
run_tests
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@rs.state(cond=nlp.sig_is_question, read=rawio.prop_in, write=rawio.prop_out)
def drqa_module(ctx):
"""
general question answering using DrQA through a HTTP server
connection check to server
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "building anaconda packages"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Initialize HIP (rocBLAS, rocSPARSE)
bool rocalution_init_hip();
/// Release HIP resources (rocBLAS, rocSPARSE)
void rocalution_stop_hip();
/// Print information about the HIPs in the systems
void rocalution_info_hip(const struct Rocalution_Backend_Descriptor& backend_descriptor);
/// Sync the device (for async transfers)
void rocalution_hip_sync(void);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cur = con.cursor()
create_table_query = "CREATE TABLE IF NOT EXISTS cards('card_title' VARCHAR," + \
" 'card_text' TEXT, 'card_link_text' VARCHAR, 'card_link_url' VARCHAR )"
insert_data_query = f"INSERT INTO " + \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
to be safe). *art* must be in the figure associated with
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public:
array()
{
cout<<"enter length: ";
cin>>length;
size = length;
a = new int [length];
cout<<"enter the elements: ";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
object value,
Type targetType,
object parameter,
CultureInfo culture)
{
throw new NotImplementedException("EmptyStringConverter is one-way");
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
os.remove(file_path)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Deploy cc.uffs.edu.br website and its dependencies.
#
# Author: <NAME> <<EMAIL>>
# Date: 2020-07-22
# License: MIT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php if(!empty(Yii::app()->controller->page_script)) echo Yii::app()->controller->page_script; ?>
<!-- 弹出框 -->
<script src="<?php echo Yii::app()->theme->baseUrl;?>/assets/js/jquery-ui.min.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl;?>/assets/js/jquery.ui.touch-punch.min.js"></script>
<!-- ace scripts -->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<button type="submit" class="btn btn-warning search-btn">Search</button>
</form>
<form class="form" action="searcherByTimePerioudAndComany.php" method="POST" v-show="!searchByFromToDate">
<div class="form-group">
<label for="start date">Start Date</label>
<input required name="start date" type="text" class="form-control" id="start date" placeholder="start date">
</div>
<div class="form-group">
<label for="end date">End Date</label>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(ni):
for j in range(i+1, ni):
dist = ((X[i] - X[j])**2).sum() # compute L2 distance
A[i][j] = dist
A[j][i] = dist # by symmetry
return A
def laplacian_graph(X, mode='affinity', knn=3, eta=0.01, sigma=2.5):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res = true;
}
return res;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void gen_regexp(var_t var, const DataEntry &data, const SourceLoc &range)
{
auto str = data.copy<Prelude::Allocator::Standard>();
strings.push(str.data);
gen<RegexpOp>(var, str.data, str.length);
location(&range);
}
void gen_if(Label *ltrue, var_t var)
{
branches.push(BranchInfo(gen<BranchIfOp>(var), ltrue));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
>>> hyp2 = ['he', 'read', 'the', 'book', 'because', 'he', 'was',
... 'interested', 'in', 'world', 'history']
>>> ref2a = ['he', 'was', 'interested', 'in', 'world', 'history',
... 'because', 'he', 'read', 'the', 'book']
>>> list_of_references = [[ref1a, ref1b, ref1c], [ref2a]]
>>> hypotheses = [hyp1, hyp2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ELECTRON_VERSION=`node -e "console.log(require('electron/package.json').version)"`;
# Rebuild the Realm package
cd node_modules/realm;
HOME=~/.electron-gyp npx node-pre-gyp rebuild --build-from-source --runtime=electron --target=$ELECTRON_VERSION --arch=x64 --dist-url=https://atom.io/download/electron
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def amount_used(self):
return self._amount_used
@amount_used.setter
def amount_used(self, amount_used):
self._amount_used = amount_used
@property
def name(self):
return self._name
@name.setter
def name(self, name):
self._name = name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class DriveTrainDescription {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.os.AsyncTask;
import com.filreas.gosthlm.slapi.SLApiException;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if x == 0:
return True
if x < 0 or x % 10 == 0:
return False
m = 0
y = x
while (x > 0):
m = m * 10 + x % 10
x //= 10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CreateContainer(tables.LinkAction):
name = "create"
verbose_name = _("Create Container")
url = "horizon:nova:containers:create"
attrs = {"class": "btn small ajax-modal"}
class ListObjects(tables.LinkAction):
name = "list_objects"
verbose_name = _("List Objects")
url = "horizon:nova:containers:object_index"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Kraj programa")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
compdef _php_artisan_completer artisan='php artisan'
alias artisan="php artisan"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.selectedIndex = index
}
}
// TSBeforeReleaseViewDelegate
func indexOfBtnArray(_ releaseView: TSBeforeReleaseView, _ index: Int?, _ title: String?) {
// let index = index
guard let title = title else {
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return df
def _group(data, step=4):
data['group_info'] = ['data' if (index+1)%step != 0 else 'target' for index, _ in data.iterrows()]
data['type'] = data['group_info'].astype('category')
del(data['group_info'])
return data
def _bundle_groups(data, index, group_size):
return np.concatenate([data.iloc[index + a] for a in range(0, group_size)])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uint CGBankAcquireListHandler::Execute( CGBankAcquireList* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
| ise-uiuc/Magicoder-OSS-Instruct-75K |
query = parse_qs(params, strict_parsing=True, keep_blank_values=True)
assert query.keys() == args.keys()
with graft_client.consistent_guid():
p1_graft = types.Datetime._promote(args["p1"]).graft
assert query["p1"] == [json.dumps(p1_graft)]
if isinstance(args["p2"], float):
assert query["p2"] == ["2.2"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
686486555 => Some(units::mass::SLUG),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cyphersFile.write("\t\tcode += \'"+cypher.replace('\n','\\n\\\n')+"\';\n")
cyphersFile.write("}\n")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** Format: 'M/D/YY h:m:s a' => 2/28/14 1:2:10 pm */
dateTimeUsShortAmPm,
/** Format: 'M/D/YY h:m:s A' => 2/28/14 14:1:1 PM */
dateTimeUsShortAM_PM,
/** complex object with various properties */
object,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#------------------------------------------------------
# Verifies that:
# - client request has basic authentication header fields
# - the credentials are correct
#------------------------------------------------------
def login_required(f):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { hash, genSaltSync } from 'bcryptjs'
import prismaClient from '../../prisma'
import { AlreadyExistError } from '../../errors/AlreadyExistError'
export type UserType = {
name: string
email: string
password: string
}
class CreateUserService {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private:
class Impl;
std::unique_ptr<Impl> impl;
};
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with self.assertRaisesRegexp(
ValueError,
'Container type "container-4" not found in files: .*'
):
old_container_loading.get_persisted_container("container-4")
def test_load_persisted_container(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.