seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
* WEBSITE: https://antonymuga.github.io *
* LINKEDIN: https://www.linkedin.com/in/antony-muga/ *
* CONTACT: https://sites.google.com/view/antonymuga/home*
----------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
visitor.visit(self)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""setup.py description.
This is a setup.py template for any project.
"""
from setuptools import setup, find_packages
with open('README.md', 'r') as f:
long_description = f.read()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# project the old operators onto the new basis
for i in updated_block_ops.keys():
updated_block_ops[i] = self.transform(proj_op, updated_block_ops[i])
projected_block = self.transform(proj_op, resized_block)
updated_block = Block(
side=block_key.side,
length=block_key.length,
basis_size=proj_op_ncol,
block=projected_block,
ops=updated_block_ops
)
self.H.storage.set_item(block_key, updated_block)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
quantity = forms.TypedChoiceField(
choices=COURSE_QUANTITY_CHOICES, coerce=int, label=_("Quantité")
)
override = forms.BooleanField(
required=False, initial=False, widget=forms.HiddenInput
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Generates styles for mobile navigation
*/
function vakker_eltd_mobile_navigation_styles() {
$mobile_nav_styles = array();
$background_color = vakker_eltd_options()->getOptionValue( 'mobile_menu_background_color' );
$border_color = vakker_eltd_options()->getOptionValue( 'mobile_menu_border_bottom_color' );
if ( ! empty( $background_color ) ) {
$mobile_nav_styles['background-color'] = $background_color;
}
if ( ! empty( $border_color ) ) {
$mobile_nav_styles['border-color'] = $border_color;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
}
private func loadBannerAd() {
// This is caught at init before this function ever gets called
guard let placementId = ad.placementId, let fbAdSize = fbAdSize else { return }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
random_numbers = random.sample(range(number_of_applicant), k=lottery_num)
other_random_numbers = LotteryProcess.DataFormating.generateOtherRandomNumbers(number_of_applicant, random_numbers)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@jit
def L1distancesNumpyFast(a,b):
n = len(a)
m = len(b)
distance = np.zeros((n,m))
for i in range(n):
for j in range(m):
distance[i,j] = abs(a[i] - b[j])
return distance
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"cpu_info": "some cpu info",
"running_vms": 0,
"free_disk_gb": 157,
"hypervisor_version": 2000000,
"disk_available_least": 140,
"local_gb": 157,
"free_ram_mb": 7468,
"id": 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise NotImplementedError
def setAuthUser(self, username):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TITLE = 'Красивое место'
STATEMENT = '''
Солнце над Зоной — редкое явление.
Но в те дни, когда оно пробивается из-за туч, можно заметить интересную особенность: его свет не похож на то, к чему привыкли люди до катастрофы. Более того, порой оно высвечивает то, что сложно увидеть в обычном сумраке затянутого облаками неба.
В один такой день, восхищённый внезапно открывшейся панорамой, я сделал [фотоснимок](/static/files/7bjf8qvcne/photo.jpg).
'''
def generate(context):
return TaskStatement(TITLE, STATEMENT)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/opt/flume/bin/flume-ng agent --conf ${FLUME_CONF_DIR:-/opt/flume/conf/} --name ${FLUME_NAME-agent} ${FLUME_OPTS:--Dflume.root.logger=INFO,console} -f ${FLUME_CONFIG_FILE:-/opt/flume/conf/flume-conf.properties} $@
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Now edit config.env with nano or anything you want, then run the userbot with startbot.sh"
echo "Please edit the db to postgresql://botuser:@localhost:5432/botdb"
echo "Good luck!"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.core.management.base import BaseCommand,CommandError
from django.utils.translation import ugettext_lazy as _
from daiquiri.core.constants import ACCESS_LEVEL_CHOICES
from daiquiri.metadata.models import Schema
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('schema', help='the schema to be updated')
parser.add_argument('access_level', help='new access_level and metadata_access_level')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
counter = 1
for img in imgs_hr:
# fake_hr = gan.generator.predict(img_lr) #fix for loop to lr
img = 0.5 * img + 0.5
img = np.asarray(img)
path_hr = "/home/nbayat5/Desktop/celebA/face_recognition_srgan_test/%s/%s_%d.png" % (
parts[6].rstrip(), parts[6].rstrip(), counter)
imageio.imwrite(path_hr, img)
print("img %s_%d.png saved." % (parts[6].rstrip(), counter))
counter += 1
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"file": path,
"line": begin_location.line,
"offset": begin_location.offset,
"endLine": end_location.line,
"endOffset": end_location.offset,
"insertString": insertString
}
req_dict = self.create_req_dict("change", args)
json_str = json_helpers.encode(req_dict)
self.__comm.postCmd(json_str)
if self.__worker_comm.started():
self.__worker_comm.postCmd(json_str)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
requested_priority = luigi.IntParameter()
def params_for_results_display(self):
return {
"puppet_account_id": self.puppet_account_id,
"assertion_name": self.assertion_name,
"region": self.region,
"account_id": self.account_id,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use super::backend::Fb;
use diesel::backend::RawValue;
use diesel::row::{Field, PartialRow, Row as DsRow, RowIndex};
use rsfbclient::Column;
use rsfbclient::Row as RsRow;
use std::ops::Range;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
IPNAME=basic
./tools/rdl2verilog.py -f ./devices/rdl/$IPNAME.rdl
./cheap_pie.sh -dd ./devices/rdl -rf $IPNAME.rdl -fmt rdl -t verilator -topv ./devices/rdl/$IPNAME/${IPNAME}_rf.sv | ise-uiuc/Magicoder-OSS-Instruct-75K |
# You should have received a copy of the GNU General Public License
# along with XBMC; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
#
import xbmcgui
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# See the License for the specific language governing permissions and
# limitations under the License.
# Deprecation warning:
(>&2 echo "warning: this installation method is deprecated since version 0.2.3")
(>&2 echo "warning: it will be completely removed by the version 0.3.0")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
from pydantic import BaseModel
class User(BaseModel):
id: int = -1
name: str = ""
username: str
def __eq__(self, other):
return self.username == other.username
def __hash__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let email: String?
let bio: String?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def pie_chart_factory():
from .android_chart_view import AndroidPieChart
return AndroidPieChart
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.github.leeyazhou.scf.server.core.communication.Server;
import com.github.leeyazhou.scf.server.core.handler.Handler;
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#clf = RandomForestClassifier(criterion='gini', max_depth=5, n_estimators=5)
# (6) 绘制learning curve
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mixer.SetFloat("MusicVolume", -80);
}
}
public void MuteSound()
{
float volume;
mixer.GetFloat("MasterVolume", out volume);
if (volume < -70)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CUDA_VISIBLE_DEVICES=2 python test.py --options experiments/sparse2widedeep/mci/fold04_t.yml
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Register your models here.
admin.site.register(MainMetadata, SimpleHistoryAdmin) | ise-uiuc/Magicoder-OSS-Instruct-75K |
delta = self.TimeStamp - datetime(1950, 1, 1)
self.variables['TIME'] = xr.DataArray([delta.days + delta.seconds / 86400], dims={'TIME': 1})
self.variables['DEPH'] = xr.DataArray([0.], dims={'DEPTH': 1})
for variable in variables:
# Create the matrix to be filled with data:
tmp = np.ones_like(grid.longitud.values.flatten()) * np.nan
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
if configuration.buildtime:
self.vault.vault_connection.write(
build_key_name, **{configuration.name: configuration.value},
)
else:
if self.consul is None:
raise RuntimeError('No Consul extension configured!')
config_key_name = (f'{self.consul_prefix}'
f'/{org_slug}/{project_slug}-{app_slug}/configuration/'
f'{configuration.name}/{version}/{configuration.name}')
build_key_name = config_key_name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__all__ = ["FileToCounts", "TablesFromFiles"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"destination.ip": "192.168.43.135",
"source.port": "50999",
"destination.port": "12345",
"websocket.masked": 1,
"websocket.key": "<KEY>",
"websocket.masked_payload": "Masked payload",
"websocket.payload": dumps(
{
"children":
[
{"name":"module","value":"dHVubmVs"},
{"name":"action","value":"b3Blbg=="},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>armanislam07/Inventory
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Input;
use App\Product_category;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def color_edge(graph:nx.Graph)->Dict[Tuple[int,int],str]:
POSITIVE_COLOR, NEGATIVE_COLOR = "green", "red"
edge_attrs_color = {}
for start_node, end_node,valuew in graph.edges(data=True):
edge_color = POSITIVE_COLOR if valuew['weight']>=0 else NEGATIVE_COLOR
edge_attrs_color[(start_node, end_node)] = edge_color
return edge_attrs_color
def sizes_edges_f(x,max:float,min:float):
return round(10*((max-x)/(max-min)))+1 if np.isnan(x)!=True else 0
def edge_size(graph:nx.Graph,min:float,max:float)->Dict[Tuple[int,int],str]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('name', models.CharField(max_length=255)),
('title', models.CharField(max_length=255)),
('phone', models.CharField(max_length=255)),
('email', models.EmailField(max_length=255)),
],
),
migrations.CreateModel(
name='PressRelease',
fields=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s = 'TEST_STRING'.encode()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.client = Client()
# create fake user
self.new_user = User.objects.create(username='<EMAIL>')
self.new_user.set_password('<PASSWORD>')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
valid_tasks = list(results_agg[DATASET].unique())
results_ranked, results_ranked_by_dataset = rank_result(results_agg)
rank_1 = results_ranked_by_dataset[results_ranked_by_dataset[RANK] == 1]
rank_1_count = rank_1[FRAMEWORK].value_counts()
results_ranked['rank=1_count'] = rank_1_count
results_ranked['rank=1_count'] = results_ranked['rank=1_count'].fillna(0).astype(int)
rank_2 = results_ranked_by_dataset[(results_ranked_by_dataset[RANK] > 1) & (results_ranked_by_dataset[RANK] <= 2)]
rank_2_count = rank_2[FRAMEWORK].value_counts()
results_ranked['rank=2_count'] = rank_2_count
results_ranked['rank=2_count'] = results_ranked['rank=2_count'].fillna(0).astype(int)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{"job_schedulejoblog_column_create_time", "创建时间", "Create time"},
};
return items;
}
@Override
public void runJob() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __getitem__(self, k):
if isinstance(k, str) and '.' in k:
k = k.split('.')
if isinstance(k, (list, tuple)):
return reduce(lambda d, kk: d[kk], k, self)
return super().__getitem__(k)
def get(self, k, default=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--batch_size 64 --sample_ratio 1.0 \
--workers 1 --print_freq 10 \
--distributed --world_size $NGPUS --dist_url 'tcp://127.0.0.1:23343' \
--use_apex --sync_param \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raw_fetcher->Start();
return true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
template = Template('Hello {{ name }}!')
print(template.render(name='<NAME>'))
t = Template("My favorite numbers: {% for n in range(1,10) %}{{n}} " "{% endfor %}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if headless:
options.add_argument(Chromium.HEADLESS)
else:
options.add_argument(Chromium.START_MAXIMIZED)
options.add_argument(Chromium.DISABLE_INFOBARS)
driver = webdriver.Chrome(chrome_options=options)
driver.get('https://github.com/join?source=header-home')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//-----------------------------------------------------------------------------------------------------
override init(frame: CGRect) {
super.init(frame: frame)
defaultInit()
}
required init(coder: NSCoder) {
super.init(coder: coder)!
defaultInit()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Flask-HTTPAuth==3.2.4',
'kmapper==1.2.0',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Joint Name:',joint_info[1])
print('Joint misc:',joint_info[2:])
print('-------------------------------------')
return
def create_joint_velocity_controller(joint_index=0,lower_limit=-10,upper_limit=10,inital_velosity=0):
joint_info = pybullet.getJointInfo(robot, joint_index) # get name of joint, to create on screen label
joint_parameters = pybullet.addUserDebugParameter(paramName=str(joint_info[1])+'VC', rangeMin=lower_limit, rangeMax =upper_limit, startValue=inital_velosity)
# pass the returned array to activate_position_contoller in the main loop of your script
return [ joint_index,joint_parameters]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (addon().getSetting('Block_Noti_sound') == 'true'):
sound = True
return self.notification(str(title), str(desc), xbmcgui.NOTIFICATION_INFO, iseconds, sound)
def VSerror(self, e):
return self.notification('vStream', 'Erreur: ' + str(e), xbmcgui.NOTIFICATION_ERROR, 2000), VSlog('Erreur: ' + str(e))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from email.mime.multipart import MIMEMultipart
from io import BytesIO
import PyPDF2
def new_pdf(details, name, width=216, height=280):
"""Creates a new empty PDF file"""
pdfobj = PyPDF2.PdfFileWriter()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#PY-3261
foo(1,
<weak_warning descr="Argument equals to default parameter value">345<caret></weak_warning>, c=22) | ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [
path("hospitalList", views.HospitalDetailedList.as_view(), name="hospital_list"),
path("hospitalDetail", views.HospitalDetailedSingle.as_view(), name="hospital_read"),
] | ise-uiuc/Magicoder-OSS-Instruct-75K |
//////////////////////////////////////////////////////////////////////////
CMannequinAGExistanceQuery::CMannequinAGExistanceQuery(IAnimationGraphState* pAnimationGraphState)
: m_pAnimationGraphState(pAnimationGraphState)
{
CRY_ASSERT(m_pAnimationGraphState != NULL);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Load non-python dependencies for PropsDE
# Mate-Tools Dependency Parser
# > parser
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("S")
elif c <= h and a <= l:
print("S")
elif c <= h and b <= l:
print("S")
else:
print("N") | ise-uiuc/Magicoder-OSS-Instruct-75K |
echo >&2 "Aborting.";
exit 1;
fi
fi
source venv/bin/activate
pip install -r requirements.txt
(python app.py 2>&1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rigidNode = node.createChild('rigid')
rigidNode.createObject('MechanicalObject', template='Rigid3d', name='DOFs', src='@../frame_topo', showObject=0, showObjectScale='0.1')
#================== offsets mapped to both rigid and scale =======================
offsetNode = rigidNode.createChild('offset')
scaleNode.addChild(offsetNode)
offsetNode.createObject('MechanicalObject', template='Rigid3d', name='DOFs', position='0 1 0 0 0 0 1', showObject=1, showObjectScale='0.25')
offsetNode.createObject('RigidScaleToRigidMultiMapping', template='Rigid,Vec3d,Rigid', input1='@../../rigid/DOFs', input2='@../../scale/DOFs', output='@.', index='0 0 0', printLog='0')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
send_mail("<EMAIL>", "CGTK Test", "Hello, this is a test", image=None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uiapp.run(&env::args().collect::<Vec<_>>());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'httponly': True,
'secure': not DEV_MODE,
}
XSRF_COOKIE_ARGS = {
'httponly': False,
'secure': not DEV_MODE,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return final
def resumo(n, aumento, reducao):
def mostrar(msg1, msg2):
print(f'{msg1:<20}{msg2:>10}')
valor = n
print('_' * 30)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(input_img.shape) == 3:
se = ndimage.generate_binary_structure(3, 6)
elif len(input_img.shape) == 2:
se = ndimage.generate_binary_structure(2, 4)
else:
raise ValueError('Image must be 2D or 3D')
mask_img = binary_closing(mask_img, se, iterations=iterations_closing)
mask_img = binary_fill_holes(mask_img, se)
if return_inverse:
mask_img = np.logical_not(mask_img)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# @app.route('/user_profile', method=['GET'])
# def all_messages(msg_id):
# isloggedin = validate_helper(request.cookies.get('token'))
#
# if not isloggedin:
# return render_template('search.html')
#
# msg_result_size = 0
# msg_results = []
# print('calling db...')
# msg_result_size, msg_results = db.get_all_messages(isloggedin, msg_id)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> None:
# prepare
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>BlazesRus/niflib
/* Copyright (c) 2005-2020, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas or it will be overwritten during //
// the next update. //
//-----------------------------------NOTICE----------------------------------//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# email: <EMAIL>
#
# Reference: <NAME>, <NAME>, <NAME>.
# "Predicting evolution from the shape of genealogical trees"
#
##################################################
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.microsoft.bot.schema.models.Activity;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinWorkerThread;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except:
logging.debug("failed to unmarshal byte payload")
logging.debug("Received message {}".format(payload))
receiver, src, dst = payload['Receiver'], payload['SrcIP'], payload['DstIP']
if dst not in self.trafficDict:
self.trafficDict[dst]=set()
self.trafficDict[dst].add((receiver,src))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>kuwv/python-anymod<gh_stars>0
# -*- coding: utf-8 -*-
'''Provide exceiptions for anymore.'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
re->encode(static_cast<uint>(bias + r - p), rm[context]);
// return decoded value
return map.inverse(r);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __str__(self):
return f' {self.person.name }_{self.id}'+'img'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
compute_collection_id = get_compute_collection_id (module, manager_url, mgr_username, mgr_password, validate_certs,
compute_manager_name, compute_cluster_name)
transport_node_collection_params['compute_collection_id'] = compute_collection_id
transport_node_profile_name = transport_node_collection_params.pop('transport_node_profile_name', None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.result_contract is not None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* cancelMediaJob 取消任务
*
* @param client
*/
public static void cancelMediaJob(COSClient client) {
//1.创建任务请求对象
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from torch.utils.data import Dataset, DataLoader, WeightedRandomSampler
from process_configs import process_configs
import pandas as pd
class FrameBaseDataset(Dataset):
def __init__(self, configs, df):
self.configs = configs
self.df = df
def get_single_trial(self, index):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
migrations.AddField(
model_name='job',
name='employer_email',
field=models.EmailField(blank=True, max_length=254, null=True),
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return value
return None
url = "https://docs.google.com/uc?export=download"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
struct Guard;
impl EditGuard for Guard {
type Msg = Item;
fn activate(edit: &mut EditField<Self>, _: &mut Manager) -> Option<Self::Msg> {
Some(Item::Edit(edit.get_string()))
}
fn edit(edit: &mut EditField<Self>, _: &mut Manager) -> Option<Self::Msg> {
// 7a is the colour of *magic*!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
f = open('global_epidemic_statistics.json.json', 'w',encoding='utf-8')
f.write(html)
f.close()
# In[ ]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pm = CodeSystemConcept(
{"code": "PM", "definition": "Medium priority.", "display": "Medium priority"}
)
"""
Medium priority
Medium priority.
"""
ph = CodeSystemConcept(
{"code": "PH", "definition": "High priority.", "display": "High priority"}
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#return redirect(url_for('index'))
return render_template('pure_html.html')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface ComGithubGiantswarmApiextensionsPkgApisCoreV1alpha1CertConfigSpec {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tmpName = str(uuid.uuid4())
tmpdir = "/tmp"
temp_input_file = f"{tmpdir}/{tmpName}.dat"
temp_output_file = f"{tmpdir}/{tmpName}.json"
shutil.copy(input_file, temp_input_file)
sif = mgm_utils.get_sif_dir(root_dir) + "/ina_segmentation.sif"
r = subprocess.run(["singularity", "run", sif, temp_input_file, temp_output_file])
shutil.copy(temp_output_file, json_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
inputRoot: {
},
menuItem: {
},
title: {
display: "inline-flex",
},
label: {
position: 'relative',
paddingBottom: theme.spacing.unit,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (c != '&') {
stringBuilder.append(c);
} else {
int j = html.indexOf(';', i);
char charUnescape = unescape2Char(html.substring(i, j + 1));
if (charUnescape != 0) {
stringBuilder.append(charUnescape);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if let self = self {
self.lossValues.append(loss)
self.setDataCount(lossValues: self.lossValues)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.activeFadeDuration -= Time.deltaTime;
this.spriteRenderer.material.SetFloat(DissolveObject.materialParameterName, activeFadeDuration);
if (this.activeFadeDuration <= 0f)
{
this.hasDissolvedAction.Invoke();
}
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
citation_strings = {}
for citation, start, end in parser.scanString(text):
# Citations of the form XX CFR YY should be ignored if they are of
# the title/part being parsed (as they aren't external citations)
if (citation[0] != self.cfr_title or citation[1] != 'CFR'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
unit_vectors = UnitVectors.Create()
for v in unit_vectors:
print('{0[0]:.16f} {0[1]:.16f}'.format(v))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.col.WsServerConfig;
/**
*
*/
@Path("/")
@Produces(MediaType.TEXT_HTML)
public class DocsResource {
private final URI raml;
private final String version;
public DocsResource(WsServerConfig cfg) {
this.raml = URI.create(cfg.raml);
version = cfg.versionString();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# import VGG model
| ise-uiuc/Magicoder-OSS-Instruct-75K |
os.environ.setdefault("DEBUG", "0")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangocon.settings")
from django.core.wsgi import get_wsgi_application # noqa
from whitenoise.django import DjangoWhiteNoise # noqa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// file that was distributed with this source code.
//! Rust macros
macro_rules! quote {
($string:expr) => ({
use regex;
regex::quote(&$string)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def line_is_root(line):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with connection.cursor() as cursor:
sql = """DO $$ DECLARE r RECORD;BEGIN FOR r IN (SELECT tablename FROM
pg_catalog.pg_tables WHERE schemaname = 'public\' AND tableowner != 'rdsadmin')
LOOP EXECUTE 'DROP TABLE IF EXISTS ' || quote_ident(r.tablename) || ' CASCADE';END LOOP;END $$;"""
cursor.execute(sql)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def initialize(self):
common.delete_outdated_flat_mapped_networks(self.flat_net_mappings)
sync = synchronization.Synchronization(
oneview_client=self.oneview_client,
neutron_oneview_client=self.neutron_oneview_client,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# return "{{ url_for('static',filename='styles/backgrounds/{" + scss_files[random_index] + "}') }}"
return scss_files[random_index]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ERR_OMICPU_HOT = 142
ERR_OMICPU_NSSPEM = 143
ERR_OMICPU_NSSPEM_LIKE = 144
ERR_SLAB = 145
ERR_SLAB_BLOATED = 146
ERR_SLAB_NSSSOFTOKN = 147
ERR_SLAB_NSS = 148
ERR_LOGROTATE_SIZE = 149
ERR_LOGROTATE = 150
| 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.