seed
stringlengths
1
14k
source
stringclasses
2 values
tracon2022_afterparty_summary_view, name='tracon2022_afterparty_summary_view', ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Creates a new destination, that can then be used as a destination for certificates. :param label: Destination common name :param description: :rtype : Destination :return: New destination
ise-uiuc/Magicoder-OSS-Instruct-75K
</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900 max-w-screen-lg overflow-hidden"> {{ $item["priority"] }} </td> <td class="px-6 py-4 whit...
ise-uiuc/Magicoder-OSS-Instruct-75K
class ProbabilityOfInclusionSVM(BaseEstimator):
ise-uiuc/Magicoder-OSS-Instruct-75K
#step_5()
ise-uiuc/Magicoder-OSS-Instruct-75K
for (a=0; a<3; a++) { // Perform sum over all three texture directions // Copy the texture direction in the reference configuration to V V.x = Q[0][a]; V.y = Q[1][a]; V.z = Q[2][a]; m[a] = dyad(F*V); // Evaluate texture tensor in the current configuration } // --- strain-dependent permeability --- double ...
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_argument('--global', dest='global_flag', action='store_true', help="Create a .aztk/ folder in your home directory for global configurations.") software_parser = parser.add_mutually_exclusive_group() software_parser.add_argument('--python', action="store_true", required=Fal...
ise-uiuc/Magicoder-OSS-Instruct-75K
2) Calculating losing part of the commission on the betting exchange 3) Could do other such as weigh the win on the side of the sportsbook so you dont need to bet as much """
ise-uiuc/Magicoder-OSS-Instruct-75K
// the public domain worldwide. This software is distributed without // any warranty. // // You should have received a copy of the Apache-2.0 License // along with this software. // If not, see <https://opensource.org/licenses/Apache-2.0>.
ise-uiuc/Magicoder-OSS-Instruct-75K
# Deserialize response deserialized = models.DetectorDefinitionPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.DetectorDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
search_fields = ['name'] serializer_class = DoctorApiSerialzer
ise-uiuc/Magicoder-OSS-Instruct-75K
// RVNav // // Created by Lambda_School_Loaner_214 on 1/13/20. // Copyright © 2020 RVNav. All rights reserved. // import Foundation struct MenuItem { var label: String var imageName: String var order: Int var segueID: String = "" var selector: String = ""
ise-uiuc/Magicoder-OSS-Instruct-75K
defer { RUMFeature.instance?.deinitialize() }
ise-uiuc/Magicoder-OSS-Instruct-75K
// It is declared by React Component // To make the compilation successful, temporary values ​​are included export default createContext<DrawerValue>({ toggleDrawer: () => undefined });
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './hello-response.dto'; export * from './hello-response-swagger.dto';
ise-uiuc/Magicoder-OSS-Instruct-75K
if port is not None: pp = "" # port and protocol string pp += str(port) if protocol is not None: pp += '/' + protocol _deny(pp) def _deny(pp=None):
ise-uiuc/Magicoder-OSS-Instruct-75K
targetCorner.y, )
ise-uiuc/Magicoder-OSS-Instruct-75K
tree = ET.ElementTree(file=xml_file) root = tree.getroot() servers = root.getchildren() for ss in servers: server = ss.getchildren() jump_line = 0 for s in server:
ise-uiuc/Magicoder-OSS-Instruct-75K
from ..wintypes import VARIANT, dll_import @dll_import('OleAut32') def VariantInit( pvarg : POINTER(VARIANT) ) -> None: ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.maxpool2d = nn.MaxPool2d(self.maxPoolKernel_dim, self.maxPoolKernel_stride, padding=0) self.fc1 = nn.Linear(self.fc_input_dim, self.fc_output_dim) ############################################################################# # END OF YOUR CODE ...
ise-uiuc/Magicoder-OSS-Instruct-75K
use kaitai_struct::KaitaiStruct; use rust::ExprIoPos;
ise-uiuc/Magicoder-OSS-Instruct-75K
{ month++; if (month > 12) month = 1; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return $this->hasMany(Comment::class); } public function category() { return $this->belongsTo(Category::class); } public function cars()
ise-uiuc/Magicoder-OSS-Instruct-75K
for old_keyword in old_keywords: new_keyword_list = OLD_TO_NEW.get(old_keyword, [old_keyword]) new_keywords += new_keyword_list new_keywords = list(set(new_keywords)) print("New list of keywords for video", video["id"], ":", new_keywords) video["keywords"] = new_k...
ise-uiuc/Magicoder-OSS-Instruct-75K
display.high.setText('{}\N{DEGREE SIGN}'.format(forecast[0]['high']['fahrenheit'])) display.low.setText('{}\N{DEGREE SIGN}'.format(forecast[0]['low']['fahrenheit'])) display.temp.setText('{:.0f}\N{DEGREE SIGN}'.format(conditions['temp_f']))
ise-uiuc/Magicoder-OSS-Instruct-75K
public static let ContentLocations = "Content-Locations" public static let ContentMD5 = "Content-MD5" public static let ContentRange = "Content-Range"
ise-uiuc/Magicoder-OSS-Instruct-75K
// System.out.println(Arrays.deepToString(comparing));
ise-uiuc/Magicoder-OSS-Instruct-75K
fecha_inicio = models.DateTimeField() fecha_fin = models.DateTimeField(null=True) empresa = models.CharField(max_length=50) def __str__(self): """Return company and first_name and last_name.""" return f'{self.user.first_name} {self.user.last_name} | {self.empresa}'
ise-uiuc/Magicoder-OSS-Instruct-75K
import caffe self.caffe_path_=caffe_python_path
ise-uiuc/Magicoder-OSS-Instruct-75K
for(size_t i = 0; i < arr.size(); ++i){ for(size_t j = 0; j < (n+1)/2; ++j){ arr[i][j] = !arr[i][j]; if(j < n-j-1) arr[i][n-j-1] = !arr[i][n-j-1]; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
rclcpp::Time last_time = rclcpp::Time::now(); // Wait until controller has been activated or error has been recovered while (!franka_control.controllerActive() || has_error) { if (franka_control.connected()) { try { std::lock_guard<std::mutex> lock(franka_control.robotMutex()); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "extern/beatsaber-hook/shared/utils/il2cpp-type-check.hpp"
ise-uiuc/Magicoder-OSS-Instruct-75K
return {"accuracy": "Accuracy: " + "{0:.4f}".format(running_accuracy)} else: return {} def build(config): return EvalAccuracy(config)
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "SN0${slave}"; scp -r -P 10022 $1 SN0${slave}.ib:$2; done
ise-uiuc/Magicoder-OSS-Instruct-75K
class SumReducer(Reducer): def reduce(self, key, values, output): output.put(key, sum([float(v) for v in values]))
ise-uiuc/Magicoder-OSS-Instruct-75K
[Item("minecraft:brown_banner", 882, 16, 428)] public class ItemBrownBanner : BlockItem { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
__int64 i,j,an; for (i=2; i<PR_ARR; i++) if (!b[i]) for (j=2; j<=PR_ARR/i; j++) if (i*j<=PR_ARR) b[i*j]=1; an=0; for (i=2; i<PR_ARR; i++) if (!b[i]) { an++; a[an]=i; } } int main() {
ise-uiuc/Magicoder-OSS-Instruct-75K
import network import config from utils import logger def save_model(trainer, model_save_dir, parameters, pass_id): f = os.path.join(model_save_dir, "params_pass_%05d.tar.gz" % pass_id) logger.info("model saved to %s" % f) with utils.open_file(f, "w") as f: trainer.save_parameter_to_tar(f) def s...
ise-uiuc/Magicoder-OSS-Instruct-75K
mediaProva = sum(notasProva) / quantidadeProva mediaTrabalho = sum(notasTrabalho) / quantidadeTrabalho print("Media final = {}".format(media_suicida(mediaProva, mediaTrabalho)))
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Repository.Entities.BaseClasses
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public class BladeExceptionTest { @Test public void testBladeException() throws Exception { try { throw new BadRequestException();
ise-uiuc/Magicoder-OSS-Instruct-75K
y angle is the intersection angle of x,z, x angle is the intersection angle of y,z. times: tuple expand the multiple of the matrix. data_type:str if "init" the data accept init data (elfcar, chgcar). see rotation_axis_by_angle. if "td" the data accept true matrix data...
ise-uiuc/Magicoder-OSS-Instruct-75K
return self._session
ise-uiuc/Magicoder-OSS-Instruct-75K
m.reflect() c = engine.connect()
ise-uiuc/Magicoder-OSS-Instruct-75K
int main(){ return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
project1.delete() api.commit() project2.delete()
ise-uiuc/Magicoder-OSS-Instruct-75K
from rest_framework import serializers from .models import League, Profile class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ('id', 'url', 'username', 'email', 'groups') class GroupSerializer(serializers.HyperlinkedModelSerializer): class Meta: ...
ise-uiuc/Magicoder-OSS-Instruct-75K
fig = plt.figure(figsize=(5, 2), facecolor='white') ax0 = fig.add_subplot(1, 1, 1) font = 'monospace' ax0.text(1, 0.8, "Key figures", color='black', fontsize=28, fontweight='bold', fontfamily=font, ha='center') ax0.text(0, 0.4, "{:,d}".format( data.shape[0]), color='#fcba03', ...
ise-uiuc/Magicoder-OSS-Instruct-75K
Install or verify the installation of COT manual pages and various required third-party helper programs for COT. * qemu-img (http://www.qemu.org/) * mkisofs (http://cdrecord.org/) * ovftool (https://www.vmware.com/support/developer/ovf/) * fatdisk (http://github.com/goblinhack/fatdisk) * vmdktool (http://www.freshp...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.username = "Guest" login_manager.anonymous_user = Anonymous CSRFProtect(app) moment = Moment(app) from sellerhub import models, errors if not app.debug: if app.config["MAIL_SERVER"]:
ise-uiuc/Magicoder-OSS-Instruct-75K
} } return NULL; } CDropTargetWrap::CDropTargetWrap(IDropTarget** ppdt, HWND hwnd) : _hwnd(hwnd) { _cRef = 1; for (int i = 0; i < MAX_DROPTARGETS; i++, ppdt++) { if (*ppdt) { _rgpdt[_count] = *ppdt;
ise-uiuc/Magicoder-OSS-Instruct-75K
class RequestException(Exception): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
# Do not create existing status if read_table("sub_log", source_id)["success"]: return { "success": False, "error": "Log for '{}' already exists.".format(source_id) } try: table.put_item(Item=sub_log, ConditionExpression=Attr("source_id").not_exists()) ex...
ise-uiuc/Magicoder-OSS-Instruct-75K
Task<IEnumerable<T>> GetAllAsync(); T GetById(int id); Task<T> FindByAsync(int id); T Update(T entity); void SaveChanges(); Task SaveChangesAsync(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# shortcut functions for glow def renderGlow (default, node_path, tag = None, tag_function = None, context = None): setCameraBitmask (default, node_path, GlowCameraBitmask, tag, tag_function, context)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Ath this point the arguments syntaxt is correct. The script doesnt know yet if the # file does actually exists, has the correct number of columns and the correct format # Following assumptions are done: # 1. The first row contains the column names # 2. It is CSV Format # 3. All data...
ise-uiuc/Magicoder-OSS-Instruct-75K
let axis: Axis3DEntity = new Axis3DEntity(); axis.initialize(300.0); this.m_rscene.addEntity(axis);
ise-uiuc/Magicoder-OSS-Instruct-75K
print "Removed: ", ", ".join (removed)
ise-uiuc/Magicoder-OSS-Instruct-75K
'console': { 'class': 'logging.StreamHandler', 'formatter': 'verbose' }, }, 'loggers': { 'receptor': {
ise-uiuc/Magicoder-OSS-Instruct-75K
rxUserDisplayName.accept(model.user?.displayName ?? "") } fileprivate func like(_ sender: AnyObject) { if let btn = sender as? Button { btn.isSelected.toggle() } alertService.presentOkayAlert(title: "Like Action", message: "Coming soon!") }
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AddField( model_name='topup', name='stripe_payment_intent', field=models.TextField(default=1), preserve_default=False, ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
import * as LoginUtils from './build/types/utils/login-utils';
ise-uiuc/Magicoder-OSS-Instruct-75K
# decorated function (simple example) decorated_add = calc_decorator(add) print(f'1 + 1 = {decorated_add(1, 1)}') # syntactic sugar print(f'1 + 1 = {do_work(1, 1)}')
ise-uiuc/Magicoder-OSS-Instruct-75K
public class AvatarCreationModel { public enum AvatarCreationMenu{ SMASHER("Smasher"), SUMMONER("Summoner"), SNEAK("Sneak"); private String name; AvatarCreationMenu(String name){ this.name = name;
ise-uiuc/Magicoder-OSS-Instruct-75K
'safe_timelock_create': ['message_id', 'oracle_fees', 'miners_fee_satoshi','return_address', 'locktime', 'pubkey_list', 'req_sigs'], } PROTOCOL_VERSION = '0.12'
ise-uiuc/Magicoder-OSS-Instruct-75K
* @author <a href="mailto:<EMAIL>"><NAME></a> * * @see <a href="http://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW3"> * Local and Push Notification Programming Guide - Provider Communicat...
ise-uiuc/Magicoder-OSS-Instruct-75K
if not py.isint(type): if py.isint(value):type=4 if py.istr(value):type=1
ise-uiuc/Magicoder-OSS-Instruct-75K
Creates a .gitignore file that ignores all files listed in config. """ gitignore_path = os.path.join(dir_path, ".gitignore") if os.path.exists(gitignore_path): print_yellow_bold("Detected .gitignore file.") pass else: print_yellow_bold("Creating default .gitignore...") files_to_ignore = get_config()["defau...
ise-uiuc/Magicoder-OSS-Instruct-75K
T value = _searchValueFunction(search); var filterExpression = _filterFunction(value); return filterExpression; } public bool IsValid(TSearch search) { T value = _searchValueFunction(search); return _searchValidator(value); }...
ise-uiuc/Magicoder-OSS-Instruct-75K
tracklist(Woodkid={"The Golden Age": "Run Boy Run", "On the Other Side": "Samara"}, Cure={"Disintergration": "Lovesong",
ise-uiuc/Magicoder-OSS-Instruct-75K
filtered: np.ndarray = image - blurred filtered[over_flow_ind] = 0 return filtered def filter(self, stack: ImageStack, in_place: bool=True) -> Optional[ImageStack]: """Perform filtering of an image stack Parameters ---------- stack : ImageStack ...
ise-uiuc/Magicoder-OSS-Instruct-75K
word: "Word", request: requests.Response, config: "Config" ) -> "Iterator[WordPronPair]": words = itertools.repeat(word) prons = yield_cmn_pron(request, config) yield from zip(words, prons)
ise-uiuc/Magicoder-OSS-Instruct-75K
auth_router = APIRouter(prefix="/auth") router = auth_router
ise-uiuc/Magicoder-OSS-Instruct-75K
criterion_main!(benches);
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/lib.rs #![no_std] #![feature(specialization)] pub mod clocks; pub mod gpio; #[allow(dead_code)] pub mod gpio_trait; pub mod serial; pub mod timer; pub mod watchdog;
ise-uiuc/Magicoder-OSS-Instruct-75K
# CREATE curl -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/pizzas/ -d "name=Pepperoni" curl -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/orders/ -d "description=Chocolate border&pizza=1&customer_name=Dio&customer_address=Rua Major Jader, 50" # LIST
ise-uiuc/Magicoder-OSS-Instruct-75K
it can also be used to remove other polygons based on an attribute authors: <NAME> email:<EMAIL> add time: 26 February, 2019 """ import os,sys from optparse import OptionParser
ise-uiuc/Magicoder-OSS-Instruct-75K
# Smv DataSet Framework
ise-uiuc/Magicoder-OSS-Instruct-75K
def combsum(self, nums, target): if target == 0: return [[]] if not nums or nums[0] > target or target < 1: return []
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ["euler_gamma_law", "sr_euler_gamma_law", "sr_mhd", "sr_rmhd", "sr_mf"]
ise-uiuc/Magicoder-OSS-Instruct-75K
if !self.working_dir.exists() { panic!("Not a valid working directory!"); } self.execute(vec!["rev-parse", "--git-dir"]) .expect("Not a valid git repository!"); } fn create_branch(&self, name: &str, from: &str) { if self.dry { println!("git ch...
ise-uiuc/Magicoder-OSS-Instruct-75K
print('Running the examples')
ise-uiuc/Magicoder-OSS-Instruct-75K
embed.add_field(name='Area', value=area, inline=False) embed.add_field(name='Grade', value=grade_string, inline=False) embed.add_field(name='Type', value=route_type_text, inline=False) embed.add_field(name='Rating', value='{}/5'.format(rating), inline=False) embed.set_author(name=requestor) embe...
ise-uiuc/Magicoder-OSS-Instruct-75K
author = quote_details_response.get('author') quote = quote_details_response.get('quote')
ise-uiuc/Magicoder-OSS-Instruct-75K
} } impl Default for Cpu {
ise-uiuc/Magicoder-OSS-Instruct-75K
xc = 500*dx + it*dt*vs - 150 xd = 300 iplot += 1 plt.subplot(4,1,iplot) L1 = plt.plot(x, u, label='FEM') L2 = plt.plot(x, U, label='FDM') plt.legend()
ise-uiuc/Magicoder-OSS-Instruct-75K
return sentence @app.route("/stop") def stop(): proc_stop() return "kill thread" if __name__ == '__main__': main()
ise-uiuc/Magicoder-OSS-Instruct-75K
path('<int:sura_num>/<int:number>/', view=views.AyahTextView.as_view(), name='ayah-detail'), path('<int:sura_num>/<int:number>', view=views.AyahTextView.as_view()), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
using Jimu.Module; using Microsoft.Extensions.Configuration;
ise-uiuc/Magicoder-OSS-Instruct-75K
candidate_predecesor_top = M[r - 1][c] + down[r - 1][c] candidate_predecesor_left = M[r][c - 1] + right[r][c - 1] M[r][c] = max(candidate_predecesor_top, candidate_predecesor_left) return M[self.rows_count - 1][self.columns_count - 1] if __name__ == "__main__": ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } } } struct StairsView_Previews: PreviewProvider { static var previews: some View { StairsView(stairs: .constant(.default)) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} return o.toString().replace("\n", "\n "); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return perturbation def _unscale_feature(self, val, stats, is_float=False): [maxn, minn] = stats maxn, minn = float(maxn), float(minn) if is_float: return val * (maxn + minn) + minn else: return int(round(val * (maxn + minn) + minn))
ise-uiuc/Magicoder-OSS-Instruct-75K
return dict([(int(k), v) for k, v in pre.items()]) def write_config(config): with open("config.json", 'w+') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
r_mat_inv = sp.diags(r_inv) features = r_mat_inv.dot(features) return features.A def normalize_adj(adj): adj = sp.coo_matrix(adj) rowsum = np.array(adj.sum(1)) d_inv_sqrt = np.power(rowsum, -0.5).flatten() d_inv_sqrt[np.isinf(d_inv_sqrt)] = 0. d_mat_inv_sqrt = sp.diags(d_inv_sqrt...
ise-uiuc/Magicoder-OSS-Instruct-75K
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIO...
ise-uiuc/Magicoder-OSS-Instruct-75K
os.remove("tempcell.bin") common.logMessage("Done! Repacked", totfiles, "files")
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Hello from the abyss."""
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Debug, StructOpt)] #[structopt(name = "osmflatc")] pub struct Args { /// Verbose mode (-v, -vv, -vvv, etc.) #[structopt(short, long, parse(from_occurrences))] pub verbose: u8, /// Input OSM pbf file #[structopt(name = "input", parse(from_os_str))] pub input: PathBuf, /// Output di...
ise-uiuc/Magicoder-OSS-Instruct-75K
#[must_use] pub struct ProgramBuilder<'a, T: ProgramBuilderType> { ctx: &'a Context, ty: T, opts: Option<Cow<'a, str>>, } impl<'a> ProgramBuilder<'a, FromSource<'a>> { /// Begin building a program with a single source file pub fn with_source(ctx: &'a Context, src: &'a impl AsRef<[u8]>) -> Self { ...
ise-uiuc/Magicoder-OSS-Instruct-75K