seed
stringlengths
1
14k
source
stringclasses
2 values
resized_image = cv2.resize(image, (800, 600), interpolation=cv2.INTER_AREA) cv2.imshow("Result", resized_image) cv2.waitKey()
ise-uiuc/Magicoder-OSS-Instruct-75K
} if( strlen($prezzoMin) != 0 ) $query->where('prodotto.prezzo', '>=', $prezzoMin); if( strlen($prezzoMax) != 0 ) $query->where('prodotto.prezzo', '<=', $prezzoMax); }); $prodotti = $prodotti
ise-uiuc/Magicoder-OSS-Instruct-75K
description='Python iQuality API library', license='MIT', packages=['iqualitpy'], author='<NAME>', author_email='<EMAIL>', keywords=['iquality', 'api', 'library', 'timetracking'], url='https://github.com/acarmisc/iqualitpy', install_requires=['requests'] )
ise-uiuc/Magicoder-OSS-Instruct-75K
c0.3-0.5,0.8-1,1.4-1.3c-1.9-1.9-3.9-4.2-3.8-7.1c0.2-1.7,0.8-3.2,2.3-4.4c-1.8-2.7-4.4-6.1-2.1-9.4l0.5-0.5l0.5-0.3 c-3.3-6-3.2-15.3,1.1-20.9C30.7,74.7,31.6,73.6,33.7,72.6L33.7,72.6z M47.7,122.9l1.2,14.9l-2.7,2.4l-2.7-2.5l1.3-14.8 C45.3,121.5,47,121.5,47.7,122.9L47.7,122.9z M42.5,126c-1.7,4,0.3,8.2-4.1,10.2c-3....
ise-uiuc/Magicoder-OSS-Instruct-75K
('color', models.CharField(max_length=20)), ('issue', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='website.Issue')), ], ), migrations.AddField( model_name='issue', name='assignee', ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// 1. `<typename>` the name the type of the header will have, i.e. the name of a zero-sized
ise-uiuc/Magicoder-OSS-Instruct-75K
self._receive_data_conn.recv() def teardown(self): if self.is_in_use: self._request_queue.put(Traffic_history_service.QueueDone()) self._request_queue.close() self._request_queue = None
ise-uiuc/Magicoder-OSS-Instruct-75K
# Get RGB pointcloud as well for direct rendering pcs_rgb = [rgb.view(B, 3, -1).permute(0, 2, 1).contiguous() for rgb in rgbs] projs = [] # get joint for all values if self.pointcloud_source == "joint": pcs_X_joint = torch.cat(pcs_X, dim=1) pcs_F_joint =...
ise-uiuc/Magicoder-OSS-Instruct-75K
len(all_line_styles) ) )
ise-uiuc/Magicoder-OSS-Instruct-75K
} chatBox.addChat("Unrecognized command: " + input, errorColor); return false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
help="psql test password", ) parser.add_argument( "--database", type=str, action="store", default="automated_test", help="psql test database", ) args = parser.parse_args() setup(args.host, args.user, args.password, args.database)
ise-uiuc/Magicoder-OSS-Instruct-75K
if removeEntireMention { replacementRange = mention.range } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
/* Framebuffer functions */
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Student extends Model { use HasFactory; protected $table='students'; protected $fillable=['name','email','address','phone']; public function coursess()
ise-uiuc/Magicoder-OSS-Instruct-75K
E3 Family:T7 Amount:T8 Type:T9 E4 Tobacco:T11 State:T10 E5 Alcohol:T13 State:T10 E6 Drug:T14 State:T10 E1 Tobacco:T2 State:T1 E2 Alcohol:T5 State:T4 id event:head (entities) ''' def __init__(self, id, type_, arguments): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def do_not_track(view: typing.Callable) -> typing.Callable: """View decorator to disable tracking"""
ise-uiuc/Magicoder-OSS-Instruct-75K
} ) self._log("create_crawler response: ", response) return crawler_name def creat_job(self, base_name, role_arn, s3_script_bucket, script_path, db_name, table_name, s3_bucket_dst,
ise-uiuc/Magicoder-OSS-Instruct-75K
EnableImages = value; } public DtoOptions() { setFields(new java.util.ArrayList<ItemFields>()); setImageTypes(new java.util.ArrayList<ImageType>()); setImageTypeLimit(Integer.MAX_VALUE); setEnableImages(true);
ise-uiuc/Magicoder-OSS-Instruct-75K
def f(l): dist = lambda a,b:a-b if a>b else b-a global a,b ta,fa,tb,fb = l ht = dist(ta,tb) if (fa>=a and fa<=b) or (fb>=a and fb<=b) or ht==0: return ht + dist(fa,fb) return ht + min(dist(fa,a)+dist(fb,a),dist(fa,b)+dist(fb,b)) n,h,a,b,k = list(map(int,input().split())) [print(f(list...
ise-uiuc/Magicoder-OSS-Instruct-75K
super(Task, self).__init__(*args, **kwargs) @property def queue(self): return self.event.client.bot.coda
ise-uiuc/Magicoder-OSS-Instruct-75K
function sg_hmac_sha1( $inKey, $inData ) { return hash_hmac( "sha1",
ise-uiuc/Magicoder-OSS-Instruct-75K
S2_MAT mt;
ise-uiuc/Magicoder-OSS-Instruct-75K
CommandInputChannel inputChannel, CommandOutputChannel outputChannel) throws Exception {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.use_cuda = params.cuda def init_emb(self, embeddings, pretrained_emb_path, vocab): if pretrained_emb_path is not None: self.load_pretrained(pretrained_emb_path, embeddings, vocab) else: """ Initialize embedding weight like word2vec. The u_embedding is a uniform distribution ...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "Running top with threads (Linux only)" if [ "$(uname)" == "Darwin" ]; then echo "This is a Mac. Not running top -H." elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then top -b -n1 -H >> $outputdir/top_threads.txt fi
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 """test_example .. codeauthor:: <NAME> <<EMAIL>> """
ise-uiuc/Magicoder-OSS-Instruct-75K
mymonth=mydate.month mydata=list(GaugeReading.objects.filter(reading_time__year=myyear,reading_time__month=mymonth, reading_time__day=myday,gauge_name=112).order_by('reading_time')) wl=[] for m in mydata: wl.append(float(m.wlreading)) print(wl) de...
ise-uiuc/Magicoder-OSS-Instruct-75K
// Determine whether segment is in result, and if so, whether it is an // in-out or out-in transition. let in_result = in_result(event, operation); let result_transition = if !in_result { ResultTransition::None } else { determine_result_transition(&event, operation) }; event....
ise-uiuc/Magicoder-OSS-Instruct-75K
self.start() self.view.show_station(station_name, url)
ise-uiuc/Magicoder-OSS-Instruct-75K
p,q=p*i%C,q*(i-m+1)%C return p*inv(q,C,1,0)%C if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(input().strip()) for t_itr in range(t): first_multiple_input = input().rstrip().split() n = int(first_multiple_input[0]) m = int(first_multipl...
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': #main文 rospy.init_node('count')#ノードの初期化 pub = rospy.Publisher('count_up', Int32, queue_size=1) #キューサイズは送る数字,1にカウントアップという名前を付ける #Int32 は送る形式, これだと数字で送る rate = rospy.Rate(20) #一秒間に20回動作 20Hz n = 0 while not rospy.is_shutdown(): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
);""" self.execute(sql)
ise-uiuc/Magicoder-OSS-Instruct-75K
btn.setTitle("Show Form", for: .normal) btn.setTitleColor(.black, for: .normal) btn.widthAnchor.constraint(equalToConstant: 150).isActive = true btn.heightAnchor.constraint(equalToConstant: 50).isActive = true
ise-uiuc/Magicoder-OSS-Instruct-75K
description='Periodic tasks app for Django', install_requires=[ 'Django>=1.8', 'croniter==0.3.16', ], zip_safe=False )
ise-uiuc/Magicoder-OSS-Instruct-75K
void IfcFailureConnectionCondition::getStepLine( std::stringstream& stream ) const { stream << "#" << m_entity_id << "= IFCFAILURECONNECTIONCONDITION" << "("; if( m_Name ) { m_Name->getStepParameter( stream ); } else { stream << "$"; } stream << ",";
ise-uiuc/Magicoder-OSS-Instruct-75K
* @return bool true, if this validator executes successfully, otherwise false */ public function execute(&$value, &$error) { $strict = $this->getParameterHolder()->get('strict'); if ($strict == true) { $re = '/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ["IV_scorer"]
ise-uiuc/Magicoder-OSS-Instruct-75K
form = UserModelForm(data=request.POST) if form.is_valid(): form.save() return redirect('/user/list/')
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "model/normalized/model.hpp"
ise-uiuc/Magicoder-OSS-Instruct-75K
import diamond.collector
ise-uiuc/Magicoder-OSS-Instruct-75K
product_list = [] quant_list = [] # takes quantity from user logger = logging.getLogger(__name__) with open(r'./actionserver/custom_payload.json') as f: frendy_product_menu = json.load(f)
ise-uiuc/Magicoder-OSS-Instruct-75K
.AddTransient<IDnsNameServerProvider, LinuxDnsNameServerProvider>() .AddTransient(CreateDnsResolverWrapper) .AddTransient<IEnvironmentVariables, EnvironmentVariables>() .AddTransient<IEnvironment, EnvironmentWrapper>() .AddTransient<IRecord...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.age = age def readdata(self): self.name = raw_input('enter name') self.age = int(raw_input('enter age')) def display(self): print str(self.name) print str(self.age) class pstudent(students): def __init__(self,name,age,hrs): students.__init__(self...
ise-uiuc/Magicoder-OSS-Instruct-75K
// Computes an Adler32 CRC and passes the data along to an underlying ostream. class crc32_ostream : public llvm::raw_ostream {
ise-uiuc/Magicoder-OSS-Instruct-75K
return Response.ok().entity("magic!").build(); } public Response createAuthorizationV1beta1SelfSubjectRulesReview(IoK8sApiAuthorizationV1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty) { // TODO: Implement... return Response.ok().entity(...
ise-uiuc/Magicoder-OSS-Instruct-75K
field=models.IntegerField(help_text='Number of ATMs', verbose_name=b'ATMs'), ), migrations.AlterField( model_name='bank', name='name', field=models.CharField(help_text='Bank name', max_length=255, verbose_name='Name'), ), migrations.AlterFi...
ise-uiuc/Magicoder-OSS-Instruct-75K
int smallestIndex;
ise-uiuc/Magicoder-OSS-Instruct-75K
export function useSession() { return useContext(SessionContext) || { playerId: null }; }
ise-uiuc/Magicoder-OSS-Instruct-75K
from({ 1, 2, 1, 1 }) | drop_while([](int i) { return i == 1; }) | dump(); // 2 1 1
ise-uiuc/Magicoder-OSS-Instruct-75K
this.Code = code; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
pub use api::call::call; pub use api::{caller, id, print, trap}; static mut DONE: bool = false;
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.luo.jobx.core.rpc.encoder.RpcResponse; import com.luo.jobx.core.util.RpcUtil; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.beans.factory.FactoryBean; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java....
ise-uiuc/Magicoder-OSS-Instruct-75K
# By using this script, you agree to the # RailSem19 license agreement: # https://wilddash.cc/license/railsem19 # ------------------------------------------------------------------- DOWNL_SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" bash ${DOWNL_SCRIPT_DIR}/download_wilddash_file.sh rs19_val.zip ./ DOWNL_SCRIPT_DIR=
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>CodedLadiesInnovateTech/-python-challenge-solutions<gh_stars>1-10 """ Write a Python program to convert a string to a list.
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": # Everything above this line will be executed for each TAB press. # If --get_completions is set, handle_tab_complete() calls exit(). handle_tab_complete () pymk_default()
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>hello_world.py print("hello_world")
ise-uiuc/Magicoder-OSS-Instruct-75K
import net.minecraft.item.ItemAxe; public class ItemTotGAxe extends ItemAxe {
ise-uiuc/Magicoder-OSS-Instruct-75K
SECRET_KEY = "abc" FILEUPLOAD_ALLOWED_EXTENSIONS = ["png"] # FILEUPLOAD_PREFIX = "/cool/upload"
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env python3 import sys sys.path.insert(0, "../lib-ext") sys.path.insert(0, "..") import time from datetime import datetime, timedelta, tzinfo from omron_2jcie_bu01 import Omron2JCIE_BU01
ise-uiuc/Magicoder-OSS-Instruct-75K
return visit_success def scale_up(self, kubeconfig): (result, rc) = oc("scale --replicas=2 -n " + self.project + " dc/" + self.deployment, kubeconfig) if rc !=0 : self.logger.error("scale_up: Failed to scale up " + self.project + "." + self.deployment) return "App sc...
ise-uiuc/Magicoder-OSS-Instruct-75K
Game.timer.add(this.fuelTime, this.extinguish, this); // light up dat world
ise-uiuc/Magicoder-OSS-Instruct-75K
nf.write(' <gco:CharacterString>TIGER/Line&#174;Shapefiles</gco:CharacterString>') else: #print ("Writing to file for line: " + str(linNum)) #print(x) nf.write(x) #print ("printed to file!!!!!!!!") print("Closing the file")
ise-uiuc/Magicoder-OSS-Instruct-75K
const publisher = publisherFactory(); export { publisher };
ise-uiuc/Magicoder-OSS-Instruct-75K
r.weights[i] = Matrix.abs(this.weights[i]); } return r; } public Network scale(double v) { Network r = new Network(this.topology); for (int i = 0; i<topology.length-1; i++) {
ise-uiuc/Magicoder-OSS-Instruct-75K
from untwisted.tools import coroutine from untwisted import core class ChatServer: def __init__(self, server): server.add_map(ACCEPT, self.handle_accept) self.pool = [] @coroutine def handle_accept(self, server, client):
ise-uiuc/Magicoder-OSS-Instruct-75K
super(self.__class__, self).__init__(_dict=OrderedDict)
ise-uiuc/Magicoder-OSS-Instruct-75K
array( "name" => __("Heading Icon",'rt_theme_admin'), "desc" => __('Select and set a icon to precede the product carousel title.','rt_theme_admin'), "id" => $theTemplateID.'_'.$theGroupID."_wcproduct_carousel[values][heading_icon]", "class" => "icon_selection", "value"=> $...
ise-uiuc/Magicoder-OSS-Instruct-75K
SITE = 'http://%s:%s/' % (IP, PORT)
ise-uiuc/Magicoder-OSS-Instruct-75K
'foo.bar', ]; yield [ 'foo.{var}', ['var' => 'bar'], 'foo.bar', ]; yield [ 'foo.{var}', ['voor' => 'bar'], 'foo.{var}',
ise-uiuc/Magicoder-OSS-Instruct-75K
// at least under certain conditions if heap.is_empty() { break; } hashes.push(heap.pop().unwrap().0); } hashes .chunks(BAND_SIZE) .map(|chunk| { let mut hasher = DefaultHasher::new(); chunk.hash(&mut hasher);
ise-uiuc/Magicoder-OSS-Instruct-75K
SetBool("Form.MaximizeBox", false); SetBool("Form.MinimizeBox", false); SetBool("Form.Sizeable", false); SetBool("Form.ToolWindow", false); Set("Form.Name", t_("Noname"));
ise-uiuc/Magicoder-OSS-Instruct-75K
if ptr.is_null() { return null_mut(); } let opaque = &*ptr; if let Some(rpu) = &opaque.rpu { if let Some(rpu_data_nlq) = &rpu.rpu_data_nlq { Box::into_raw(Box::new(RpuDataNlq::from(rpu_data_nlq))) } else { null_mut() }
ise-uiuc/Magicoder-OSS-Instruct-75K
data_url = "https://raw.githubusercontent.com/mwaskom/seaborn-data/master/tips.csv" df = pd.read_csv(data_url)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public string Id { get; set; } public string Name { get; set; } public string KeyName { get; set; } public int EnvironmentId { get; set; } public List<VariationOption> VariationOptions { get; set; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
lighting_(data_rng, image, 0.1, eig_val, eig_vec) def coco_box_to_bbox(box): bbox = np.array([box[0], box[1], box[0] + box[2], box[1] + box[3]], dtype=np.float32) return bbox
ise-uiuc/Magicoder-OSS-Instruct-75K
} deleteButton.snp.makeConstraints { make in make.edges.equalToSuperview() } imageView.layer.cornerRadius = 8 imageView.layer.masksToBounds = true dimmedView.layer.cornerRadius = 8 dimmedView.backgroundColor = .heroGray333333700 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
err = fopen_s(&mpFile, azFileName, "wb");
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace RemoteFork.Items { [Serializable] public class DirectoryItem : IItem { [JsonProperty("playlist_url", DefaultValueHandling = DefaultValueHandling.Ignore)] public string Link; public override string GetLink() { return Link; } public DirectoryItem() ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class HandshakeFailure(BaseLibp2pError): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
start_unixtime = calendar.timegm(starttime.utctimetuple()) end_unixtime = calendar.timegm(endtime.utctimetuple())
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.maximum_size_premise > 2: p_i, ref_i = p2_survivors[:], ref_p2_survivors[:] for i in range(2, self.maximum_size_premise):
ise-uiuc/Magicoder-OSS-Instruct-75K
self.stopped.set() def join(self, timeout=None): super(PRU_write_thread, self).join(timeout) def run(self): while not self.stopped.is_set(): ready = select.select([self.socket], [], [], 0.5)[0] if ready == []: continue frame = self.s...
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys import inspect functions_dir = os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))+ "/scripts" #scripts Directory print(functions_dir) sys.path.insert(0, functions_dir) import file_importer import unittest import yaml with open("../configs/config.yaml", "r") as ymlfil...
ise-uiuc/Magicoder-OSS-Instruct-75K
porcentajeIncrementoU = 10.000000
ise-uiuc/Magicoder-OSS-Instruct-75K
dependencies = [ ('saraswati', '0003_auto_20200402_1918'), ] operations = [ migrations.AddField(
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Compatibility support for python 2 and 3 unified source """ import sys
ise-uiuc/Magicoder-OSS-Instruct-75K
BufReader::new(&self.device).by_ref(), &self.sb, if ino == FUSE_ROOT_ID { self.sb.sb_rootino
ise-uiuc/Magicoder-OSS-Instruct-75K
for field, rule in rules } fields = sort_fields(possible_idxs_per_field)
ise-uiuc/Magicoder-OSS-Instruct-75K
int ret = spx(); slib::exit(ret); }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ GL_UNSIGNED_INT_24_8, PixelType(4) }, { GL_FLOAT, PixelType(4) } };
ise-uiuc/Magicoder-OSS-Instruct-75K
return <Forum />; });
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh ./create_fs.sh xflash --quad-spi-clock 50MHz --factory ../bin/explorer_board.xe --boot-partition-size 0x100000 --data ./fat.fs
ise-uiuc/Magicoder-OSS-Instruct-75K
</Card> </> )} </div> <div className={infoDisplayStyles.column}> {authContext?.user?.userType === UserType.ADMIN && ( <> <Button
ise-uiuc/Magicoder-OSS-Instruct-75K
} }, # Hikey: by default use AEP 'hikey' : { 'instrument' : 'aep', }
ise-uiuc/Magicoder-OSS-Instruct-75K
DATAFLAG="" if [ "$FULL_MEMORY" = "true" ]; then DATAFLAG="--no-store-on-disk" fi echo "Starting emulator..." /root/google-cloud-sdk/bin/gcloud beta emulators datastore start --data-dir "${DATA_DIR}" --host-port "0.0.0.0:${HOST_PORT}" $DATAFLAG
ise-uiuc/Magicoder-OSS-Instruct-75K
return parser.parse_args() def validate_arguments(self): self.validate_configuration_path() self.validate_model() self.validate_task()
ise-uiuc/Magicoder-OSS-Instruct-75K
private hookEventHandlers() { this.connection.on("ReceiveMessage", (msg, msg2) => { let now = Date.now(); let time = new Date(now).toLocaleTimeString(); this.messages.unshift(`${time} | ${msg} : ${msg2}`); this.stringified = this.messages.reduce((acc, item) => { return acc + "\...
ise-uiuc/Magicoder-OSS-Instruct-75K
(x,y) = (mouseEventData['x'],mouseEventData['y']) pixel = frame[y,x] print(f'px:{pixel} pos:{(x,y)}') self.Drawer.append((x,y,pixel))
ise-uiuc/Magicoder-OSS-Instruct-75K
RESULT_PATH = './result' if not os.path.exists(DATA_PATH): os.makedirs(DATA_PATH) print('Downloading and extracting data...') url = 'https://weisslab.cs.ucl.ac.uk/WEISSTeaching/datasets/-/archive/hn2dct/datasets-hn2dct.zip' r = requests.get(url,allow_redirects=True) temp_file = 'temp.zip' _ = open(temp_file,'wb'...
ise-uiuc/Magicoder-OSS-Instruct-75K
result, error = Hedge.run('<stdin>', text) if (error): print(error.asString()) elif result: if len(result.elements) == 1: print(repr(result.elements[0])) else: print(repr(result))
ise-uiuc/Magicoder-OSS-Instruct-75K