seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
try:
from azure.cli.core.cloud import get_active_cloud
except ImportError:
raise ImportError(
"The public API of azure-cli-core has been deprecated starting 2.21.0, " +
"and this method no longer can return a cloud instance. " +
"If you want to use this method, you need to install 'azure-cli-core<2.21.0'. " +
"You may corrupt data if you use current CLI and old azure-cli-core."
)
return get_active_cloud()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 1. 기본 설정
# 1-1 chromedriver
# chromedriver 의 실행파일 위치와, 필요한 옵션을 설정하여 driver 객체를 생성합니다.
driver_path = './chromedriver'
options = Options()
driver = webdriver.Chrome(driver_path, chrome_options = options)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-> block {
let _icx = bcx.insn_ctxt("uniq::make_free_glue");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@register.simple_tag
def svg_to_png_url(svg_path, fill_color=None, stroke_color=None,):
image = SVGToPNGMap.get_png_image(svg_path, fill_color=fill_color, stroke_color=stroke_color)
return image.url if image else ''
@register.inclusion_tag('home/tags/render_png.html')
def render_icon(icon_path=None, icon=None, height=None, width=None, fill_color=None, stroke_color=None, attrs=None):
image_url = ''
if icon_path:
image_url = svg_to_png_url(
svg_path=Path(settings.STATIC_ROOT) / icon_path,
fill_color=fill_color,
stroke_color=stroke_color
| ise-uiuc/Magicoder-OSS-Instruct-75K |
li=[]
tot_list=[]
for line in sys.stdin:
line = line.strip()
line_val = line.split(",")
bat, bowl, wicket, deli = line_val[0], line_val[1], line_val[2], line_val[3]
#print('reducee', bat, bowl)
try:
wicket=int(wicket)
deli=int(deli)
except ValueError:
continue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if step % 20 == 0 and step > 0:
end = time.time()
time_taken = end - start
cost_summ = tf.summary.Summary()
cost_summ.value.add(tag='Train_Cost',
simple_value=float(train_cost))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Get environment variables
access_key = os.getenv('AWS_ACCESS_KEY')
secret_key = os.environ.get('AWS_SECRET_KEY')
cli_path = args.p if hasattr(args, 'p') else '/usr/local/bin/'
if args.single:
print("Running single instance")
else:
print("Running daemon")
my_config = Config(
region_name='us-west-2',
signature_version='v4',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def invertir(self):
auxiliar = Pila()
nodo_auxiliar = self.top
for i in range(self.tamano):
auxiliar.apilar(nodo_auxiliar.elemento)
nodo_auxiliar = nodo_auxiliar.Siguiente
return auxiliar
def copiar(self):
return self.invertir().invertir()
def __repr__(self):
resultado = []
auxiliar = self
while not auxiliar.es_vacia():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
queryDict = request.POST
resp = dict(queryDict)
if len(resp) == 3:
user = resp['user']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @var string
*/
private $pkField;
/**
* Set table
*
* @param string $table
* @return $this
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def sample(params):
# We're not quantizing 8bit, but it doesn't matter
sample = logistic_rsample((params['mean'], params['logscale']))
sample = sample.clamp(min=0., max=1.)
return sample
def log_likelihood(self, x, params):
# Input data x should be inside (not at the edge) n_bins equally-sized
# bins between 0 and 1. E.g. if n_bins=256 the 257 bin edges are:
# 0, 1/256, ..., 255/256, 1.
x = x * (255 / 256) + 1 / 512
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from Algorithms.Update.relative_agreement import perform_update as wrapped_update
from Algorithms.Intervention.degree import intervene as wrapped_intervene
# make sure you set opts.intervention.numb to 0, otherwise
# it'll execute the interventions at the start as well
count = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.timer.start()
@property
def _time(self):
return self.interval - ((time.time() - self.start_time) % self.interval)
def start(self):
if self.timer:
self.start_time = time.time()
self.timer.start()
def stop(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
array( 'comment_ID' => $comment_ID )
);
if( $old_comment_post_ID != $comment_post_ID ){ // if comment_post_ID was updated
wp_update_comment_count( $old_comment_post_ID ); // we need to update comment counts for both posts (old and new)
wp_update_comment_count( $comment_post_ID );
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.path.append(path.abspath(path.join(path.dirname(__file__), "..")))
from LDA import TCVB0
#this demo is assumed to work with famous 20-newsgroups-dataset
#get this version http://qwone.com/~jason/20Newsgroups/20news-bydate-matlab.tgz
def show_usage():
print 'demo1.py path_to_dataset {alpha beta}'
exit(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import './user/user.index';
export default config;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _keys_children(self):
return map(lambda child: (getattr(child, self._child_attr), child), self.children)
@property
def _items(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __await__(self):
if False:
yield self
return GetResourcesResult(
name=self.name,
required_tags=self.required_tags,
resource_group_name=self.resource_group_name,
resources=self.resources,
type=self.type,
id=self.id)
def get_resources(name=None,required_tags=None,resource_group_name=None,type=None,opts=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ -d ${DIST_NAME} ]]; then echo "Deleting ${DIST_NAME}"; rm -rf ${DIST_NAME}; fi
if ! [[ -f ${DIST_ZIP_FILE} ]]; then curl -fLO ${DOWNLOAD_URL}/${DIST_ZIP_FILE}; fi
unzip ${DIST_ZIP_FILE}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
target = callback;
callback = undefined;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Labels(Data):
"""
Tokenizes text-classification datasets as input for training text-classification models.
"""
def __init__(self, tokenizer, columns, maxlength):
"""
Creates a new instance for tokenizing Labels training data.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.http import HttpResponse
from django.template import Context
from django.template import RequestContext
from django.template.loader import render_to_string, select_template
from django.utils.encoding import force_unicode
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dynamodb = boto3.resource(‘dynamodb’)
table = dynamodb.Table('JobSpecs')
response = s3.get_object(Bucket=bucket, Key=key)
class Iowa():
def __init__(self, file_path):
self.filename = self.get_FileName(file_path)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
import torch
import cv2
logger = logging.getLogger(__name__)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Create a dataset specific subfolder to deal with generic download filenames
root = os.path.join(root, 'conll2000chunking')
path = os.path.join(root, split + ".txt.gz")
data_filename = _download_extract_validate(root, URL[split], MD5[split], path, os.path.join(root, _EXTRACTED_FILES[split]),
_EXTRACTED_FILES_MD5[split], hash_type="md5")
logging.info('Creating {} data'.format(split))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct LegProvisionOptionExerciseFixedDate {
/// Required if NoLegProvisionOptionExerciseFixedDates(40495) > 0.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
variable.values.flat[i] = base_value + EPSILON
forward_pass(layers)
loss_2 = layers[final_op_name].output.values
variable.values.flat[i] = base_value
num_grads.flat[i] = (loss_2 - loss_1) / (2 * EPSILON)
return num_grads
# # Var list numerical validation.
# i_var = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tot += len(seq)
freqs = [a/float(tot), g/float(tot), c/float(tot), u/float(tot)]
return freqs
def getfreqs_boxplot(fasta, outfile, classid):
freqs = {} # {seqname : [A,G,C,U]}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
# WSGI Server for Development
# Use this during development vs. apache. Can view via [url]:8001
# Run using virtualenv. 'env/bin/python run.py'
from app import app
app.run(host='127.0.0.1', port=5000, debug=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Xml.Linq;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DWORD err = GetLastError();
std::wostringstream errorText;
errorText << L"Unable to increase reference count of " << hModule;
ThrowWin32Error(err, errorText.str());
}
}
PVOID RuntimeLoader::GetFunctionAddress(LPCSTR funcName)
{
PVOID address = NULL;
const_iterator iter = funcs.find(funcName);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Get the result Transition Probabilities (dictionary)
tp = mdp.getTransitionProbs()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class LineEdit_LoginUsername : LineEdit {
public string get_LoginUsername_text() {
return Convert.ToString(Text);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'page' => elgg_extract('page', $vars),
'entity' => elgg_extract('entity', $vars, elgg_get_page_owner_entity()),
'class' => 'elgg-menu-page',
'show_blog_archive' => elgg_extract('show_blog_archive', $vars),
'blog_archive_options' => elgg_extract('blog_archive_options', $vars),
'blog_archive_url' => elgg_extract('blog_archive_url', $vars),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
obs_type = retro.Observations.IMAGE
env = retro.make(ENV_NAME, LVL_ID, record=False, inttype=retro.data.Integrations.CUSTOM_ONLY, obs_type=obs_type)
verbosity = args.verbose - args.quiet
scores = []
try:
while True:
ob = env.reset()
t = 0
totrew = [0] * args.players
while True:
ac = env.action_space.sample()
ob, rew, done, info = env.step(ac)
if ENV_NAME == 'Arkanoid-Nes':
scores.append(info['score'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@section('content')
<div class="container">
<div class="row mt-3">
<div class="col">
<h3>Proveedores</h3>
</div>
</div>
@if (session('success'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param username The name of the use who wants the lock.
* @return true if the lock was acquired; otherwise false.
*/
public synchronized boolean acquireLock(Lockable target, String username) {
return acquireLock(new LockSubject(target), username);
}
/**
* Acquire the lock on the populated LockSubject object. The username
* is determined from the AuthUtil class.
*
* @see AuthUtil#getRemoteUser()
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if soup.findAll("span", property="v:genre"):
vgenres = soup.findAll("span", property="v:genre")
for vgenre in vgenres:
genre += vgenre.getText().encode('utf-8') + '/'
genre = genre.rstrip('/')
if soup.find("span", "all hidden"):
desc = soup.find("span", "all hidden").getText().replace('newline', '<br/>').encode(
'utf-8')
else:
desc = soup.find(
"span", property="v:summary").getText().replace('newline', '<br/>').encode('utf-8')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
train_interval=4, delta_clip=1.)
dqn.compile(Adam(lr=.00025), metrics=['mae'])
# Okay, now it's time to learn something! We capture the interrupt exception so that training
# can be prematurely aborted. Notice that now you can use the built-in Keras callbacks!
weights_filename = 'dqn_{}_weights.h5f'.format('god_help_me.weights')
dqn.fit(env, nb_steps=100000, log_interval=10000)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
bold_seq = '\033[1m'
colorlog_format = f'{bold_seq} %(log_color)s {log_format}'
colorlog.basicConfig(format=colorlog_format, datefmt='%y-%m-%d %H:%M:%S')
logger = logging.getLogger(logger_name)
if debug:
logger.setLevel(logging.DEBUG)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php the_subtitle( $post->ID ); ?>
<?php the_post_thumbnail( 'medium', array( 'class' => 'image' ) ); ?>
<time class="Icon before timestamp" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" data-icon="📅"><?php echo esc_html( get_the_date( 'M. jS, Y' ) ); ?></time>
<?php if ( comments_open() ) { ?>
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
<?php } ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
responseJson = urllib.parse.unquote(responseText.decode('utf8'))
jsonDict = json.loads(responseJson)
heartBeatCyc = jsonDict.get('heartBeatCyc')
if heartBeatCyc == None:
raise BaseException(responseJson)
logging.info('login seccuss: %s'%(responseJson))
self.heartBeatCyc = int(heartBeatCyc)
self.serialNo = jsonDict.get('serialNo')
return self.heartBeatCyc
def beat(self):
response = requests.post(Network.BEAT_URL, data={'serialNo': self.serialNo},
headers=Network.COMMON_HERADERS, timeout=3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(lista)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(file_name, 'r') as fobj:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
map.SetInputConnection(shrink.GetOutputPort())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//------------------------------------------------------------------------------
namespace XPump.Model
{
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
public partial class xpumpsecureEntities : DbContext
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//! ```no_run
//! use localghost::prelude::*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
img_num = np.shape(preds)[0]
for idx in xrange(img_num):
img_name = org_paths[idx].strip().split('/')[-1]
if '.JPEG' in img_name:
img_id = img_name[:-5]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.conf.urls.static import static
from django.views.generic import TemplateView
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
func testCustomFontIsSetForNewButtons() {
// Given
let font = UIFont.systemFont(ofSize: 100)
// When
navigationBar.setButtonsTitleFont(font, for: .normal)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn check_constraints(any: &$crate::Any) -> $crate::Result<()> {
any.header.assert_primitive()?;
Ok(())
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The down blow are the templates of all the responsing message valid for wechat
# For more information, please visit : http://mp.weixin.qq.com/wiki/index.php?title=%E5%8F%91%E9%80%81%E8%A2%AB%E5%8A%A8%E5%93%8D%E5%BA%94%E6%B6%88%E6%81%AF
global tpl_text
global tpl_image
global tpl_voice
global tpl_video
global tpl_music
global tpl_news
tpl_text = u'''<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>12345678</CreateTime>
<MsgType><![CDATA[text]]></MsgType>
<Content><![CDATA[你好]]></Content>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* 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.
*/
package com.github.harbby.gadtry.graph.impl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>metanoiaweblabs/redwoodblog<gh_stars>1-10
import { SetupWorkerInternalContext, StartHandler } from '../glossary';
export declare const createStartHandler: (context: SetupWorkerInternalContext) => StartHandler;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Self::Yielded => write!(f, "yielded"),
Self::Awaited => write!(f, "awaited"),
Self::VmCall => write!(f, "calling into other vm"),
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { AccountId } from 'domains/entities/account.entity';
import { MoneyEntity } from 'domains/entities/money.entity';
export interface GetAccountBalanceQuery {
getAccountBalance(accountId: AccountId): Promise<MoneyEntity>;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
find * -name "*.cpp" -exec clang-format -i {} +
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let getValueFromTensorPosCode = '';
inputsDimAccShape.forEach((shape, index) => {
if (index === 0) {
getValueFromTensorPosCode += `
if (oPos[${dim}] < ${shape}) {
o = getValueFromTensorPos_origin(oPos.r, oPos.g, oPos.b, oPos.a);
}`;
}
else {
getValueFromTensorPosCode += `
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public boolean isBorrowed() {
return borrowed;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public String getOp() {
return op;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Checks the expression of every `if` statement, and cancels out always falsy branches.
* It detects `true`, `false`, and basic string equality comparison.
*/
export function deadIfsTransformer(context: ts.TransformationContext): ts.Transformer<ts.SourceFile> {
return sourceFile => {
return ts.visitEachChild(sourceFile, visitIfStatements, context);
};
function visitIfStatements(node: ts.Node): ts.Node | ts.Node[] | undefined {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
type Response = ServiceResponse<B>;
type Error = Error;
type InitError = ();
type Transform = CorsMiddleware<S>;
type Future = Ready<Result<Self::Transform, Self::InitError>>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Module({
controllers: [TikTokController],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def lex(text,output_type='all'):
# lexes string, stops when it starts making TypeErrors
# input: f.read()
out_list = []
lexer = Lexer()
lexer.input(text)
while True:
try:
token = lexer.token()
if not token:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private final String baseName;
private final AtomicReference<Integer> version = new AtomicReference<Integer>(0);
public Base(int id, String baseName) {
this.id = id;
this.baseName = baseName;
}
public void incrementVersion() {
int v;
do {
v = version.get();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
include_once 'navigation.php';
$advid=$_GET['id'];
$con=defaultMysqlConnection();
$res=executeQuery($con,"DELETE FROM bulletinboard.advs WHERE id=$advid");
if(!$res)
{
message('Удалено');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { default as Container } from './Card.svelte';
export { default as Section } from './CardSection/CardSection.svelte';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if include_bucket:
parser.add_argument('-b', '--bucket',
help='Bucket name.',
type=str, default=default_bucket)
if include_collection:
parser.add_argument('-c', '--collection',
help='Collection name.',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Attributes:
parent (str):
Parent resource that identifies admin project
and location e.g.,
projects/myproject/locations/us
capacity_commitment_ids (Sequence[str]):
Ids of capacity commitments to merge.
These capacity commitments must exist under
admin project and location specified in the
parent.
"""
parent = proto.Field(proto.STRING, number=1)
capacity_commitment_ids = proto.RepeatedField(proto.STRING, number=2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
guard
let parameters = parameters,
!parameters.isEmpty
else { return nil }
let data = try? JSONSerialization
.data(withJSONObject: parameters, options: [.prettyPrinted, .sortedKeys])
return data
.flatMap { String(data: $0, encoding: .utf8) }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def find_ami(self, **tags):
filters = dict(map(lambda (k,v): ("tag:"+k,v), tags.items()))
results = self.conn.get_all_images(owners=['self'], filters=filters)
if len(results) == 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class GradClipCounter:
def __init__(self):
self.clipped_grad = 0
self.grad_accesses = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <reference path="./datatypes._base.d.ts" />
interface DesignerRepositoryActionsServiceStatic {
GetDownloadObjectContextId(objectFolderId: string, successCallback: (data: { GetDownloadObjectContextIdResult: string }) => any, errorCallback?: () => any): JQueryPromise<{ GetDownloadObjectContextIdResult: string }>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker run --network integration_test -e CQLSH_HOST=cassandra2 -e TEMPLATE=/cassandra-schema/v002.cql.tmpl jaeger-cassandra-schema-integration-test
# Run the test.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[cls.step, cls.step, cls.step, cls.step, cls.step]
]
sg1 = SimpleGridOne(3,
grid,
[3, 0])
return sg1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Set[State]
The epsilon closure of the state.
Raises
------
ValueError
If the state does not exist.
"""
if isinstance(state, str):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'lb':-1000,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
quads[i].animaScaley = XML.getValue("QUADS:QUAD_"+ofToString(i)+":ANIMA:SCALE_Y",1.0);
quads[i].animaScalez = XML.getValue("QUADS:QUAD_"+ofToString(i)+":ANIMA:SCALE_Z",1.0);
quads[i].animaRotateX = XML.getValue("QUADS:QUAD_"+ofToString(i)+":ANIMA:ROTATE_X",0.0);
quads[i].animaRotateY = XML.getValue("QUADS:QUAD_"+ofToString(i)+":ANIMA:ROTATE_Y",0.0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmd.DrawProcedural(Matrix4x4.identity, MaterialManager.BlitMat, (int) BlitPass.ScaledBlit, MeshTopology.Triangles, 3);
}
public static void FullScreenPass(this CommandBuffer cmd, Material mat, int pass) {
cmd.DrawProcedural(Matrix4x4.identity, mat, pass, MeshTopology.Triangles, 3);
}
public static void FullScreenPass(this CommandBuffer cmd, RenderTargetIdentifier dest, Material mat, int pass, bool clearColor = false) {
cmd.SetRenderTarget(dest, RenderBufferLoadAction.Load, RenderBufferStoreAction.Store);
if (clearColor) cmd.ClearRenderTarget(false, true, Color.black);
cmd.DrawProcedural(Matrix4x4.identity, mat, pass, MeshTopology.Triangles, 3);
}
public static void FullScreenPassWithDepth(this CommandBuffer cmd, RenderTargetIdentifier dest, RenderTargetIdentifier depth, Material mat, int pass, bool clearColor = false, bool clearDepth = false) {
cmd.SetRenderTarget(dest, depth);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use http::header::{self, HeaderName, HeaderValue};
pub use jsonrpc_types::v2::*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Parser:
"""
The base class for parsers
"""
# types
from .exceptions import ParsingError, SyntaxError, TokenizationError
# meta methods
def __init__(self, **kwds):
# chain up
super().__init__(**kwds)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int nthFreeCellIndex(int n);
int indexToRow(int index);
int indexToColumn(int index);
int getFreeCellCount();
void nextTick();
long getTick();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
src=cms.InputTag("ALCARECOSiStripCalCosmicsNanoCalibTracks")
)
ALCARECOSiStripCalCosmicsNanoTkCalSeq = cms.Sequence(
ALCARECOSiStripCalCosmicsNanoPrescale*
ALCARECOSiStripCalCosmicsNanoHLT*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36',
'content-type': 'application/x-www-form-urlencoded',
'Sec-Fetch-Site': 'cross-site',
'Sec-Fetch-Mode': 'cors',
'Referer': 'https://www.goat.com/search?query='+ pid,
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'en-US,en;q=0.9',
}
params = {
'x-algolia-agent': 'Algolia for vanilla JavaScript 3.25.1',
'x-algolia-application-id': '2FWOTDVM2O',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source ~/scripts/vars.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
escf, ecor, etot = rank_reduced_ccsd_t(pyscf_mf, eri_rr = None, use_kernel=use_kernel, no_triples=no_triples)
exact_ecor = ecor
exact_etot = etot
filename = 'double_factorization_'+name+'.txt'
with open(filename,'w') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wal -R
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>Files</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_client = _session.client('s3')
def upload_file_from_url(self, url: str, destination: str):
"""
Pulls data from a certain URL, compresses it, and uploads it to S3.
:param url: URL to pull data from.
:param destination: Path within S3 to store data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in 512 192 180 144 96 48 32 16
do
echo "Converting... icon.svg => icon-$i.png"
magick convert -density 200 -background none icon.svg -resize x$i icon-$i.png
done
exit 0 | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace PhoneCommonStrings.Sample.Infrastructure
{
public class DelegateCommand : ICommand
{
private readonly Action action;
public DelegateCommand(Action action)
{
this.action = action;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub type_name: String,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}) => {
const [isSidebarOpened, setIsSidebarOpened] = useState(false);
const toggleSidebar = () => {
setIsSidebarOpened(!isSidebarOpened);
};
return (
<SidebarContext.Provider
value={{
isSidebarOpened,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "core.h"
#include "randombytes.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Use a timer to make the duckiebot disappear
self.lifetimer = rospy.Time.now()
self.publish_duckie_marker()
rospy.loginfo("[%s] has started", self.node_name)
def tag_callback(self, msg_tag):
| 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.