seed
stringlengths
1
14k
source
stringclasses
2 values
#get_file_description()
ise-uiuc/Magicoder-OSS-Instruct-75K
{ case NotifyCollectionChangedAction.Add: foreach (IBindingMapAnnotation item in e.NewItems) { Target.AddAnnotation(new BindingMKAnnotation(item)); }
ise-uiuc/Magicoder-OSS-Instruct-75K
'version' => null, 'primary_version' => true, ]; });
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestDefrutos(TestDynamic): def get_dynamic_class(self): return DeFrutos_SanzSerna
ise-uiuc/Magicoder-OSS-Instruct-75K
stroke(200) strokeWeight(1) ellipse(self.position.x, self.position.y, 25, 25) # with pushMatrix(): # translate(self.position.x, self.position.y) # rotate(theta) # beginShape() # vertex(0, -self.r * 2) # vertex(-self.r, self.r * ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return NotificationsQueue()
ise-uiuc/Magicoder-OSS-Instruct-75K
default_args = { "depends_on_past": False, "start_date": datetime(2019, 10, 13), "retries": 1, "retry_delay": timedelta(minutes=10), "schedule_interval": "@never", "catchup": False, } with DAG("Airflow-Spell-Testing", default_args=default_args, catchup=False) as dag: first_task = BashOpe...
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ['JudgeProtocol'] class JudgeProtocol(BaseJsonObject):
ise-uiuc/Magicoder-OSS-Instruct-75K
if symbol in ('C4H6', 'bicyclobutane'): return [ Atom(symbol='C', coords=(0.0, 2.13792, 0.58661), units='bohr'), Atom(symbol='C', coords=(0.0, -2.13792, 0.58661), units='bohr'), Atom(symbol='C', coords=(1.41342, 0.0, -0.58924), units='bohr'), Atom(symbol='C', coords=(-1.41342, 0.0...
ise-uiuc/Magicoder-OSS-Instruct-75K
format=kwargs.get('format', None)
ise-uiuc/Magicoder-OSS-Instruct-75K
game_state_renderer.background_idx = 1; } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
export default NumberEight;
ise-uiuc/Magicoder-OSS-Instruct-75K
syll.caryonn = True caryonn = False syll.asp = is_cons(string,i,c) == 2 i += len(c.string) found = True break if found: continue if string[i] == "ं" or string[i] == "ँ": print("FOUND n") syll.n = True caryonn = True
ise-uiuc/Magicoder-OSS-Instruct-75K
# cargo build --release --target x86_64-unknown-linux-gnu # docker build -t jarry6/jsa . && docker push jarry6/jsa:latest docker run --rm -it -v $(pwd):/home/rust/src ekidd/rust-musl-builder \
ise-uiuc/Magicoder-OSS-Instruct-75K
}) it('should not dismiss if cookie not set', () => { component.ngOnInit() expect(matSnackBarRef.dismiss).toHaveBeenCalledTimes(0) }) it('should dismiss if cookie set', () => { cookieService.put('welcome-banner-status', 'dismiss')
ise-uiuc/Magicoder-OSS-Instruct-75K
""" def __init__(self, input_size: Tuple[int, int, int] = (1, 128, 128)) -> None: UNet._check_input_size(input_size) super().__init__() self.input_size = input_size self.enc1 = UNetEncoderBlock(in_channels=input_size[0], out_channels=64) self.enc2 = UNetEncoderBlock(in_ch...
ise-uiuc/Magicoder-OSS-Instruct-75K
redaction_page.check_start_date_is('1-Mar-2020 1:00pm GMT')
ise-uiuc/Magicoder-OSS-Instruct-75K
static let peanutButter = Ingredient( id: "peanut-butter", name: String(localized: "Peanut Butter", table: "Ingredients", comment: "Ingredient name"), title: CardTitle( offset: CGSize(width: 0, height: 190), blendMode: .overlay, fontSize: 35 ),
ise-uiuc/Magicoder-OSS-Instruct-75K
- menuButtonDidPress: specify a closure to be executed when the user press the Menu button while tvProgress is displayed - playButtonDidPress: specify a closure to be executed when the user press the Play/Pause button while tvProgress is displayed - marge: marging size for status label (right an...
ise-uiuc/Magicoder-OSS-Instruct-75K
import eventFunction def launch(event) : event.status = eventFunction.Status.NOT_RESOLVED print(f' EventFunction called: launch({event.object.application.name})')
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return $this->collection; } /** * @return mixed */ public function bulk() { return $this->bulk; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
let low = first & 0x1f; if low < 24 {
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>ErickSimoes/URI-Online-Judge<gh_stars>0 # -*- coding: utf-8 -*- n, w = map(int, input().split()) for _ in range(n): entrada = input() last_space = entrada.rfind(' ') if int(entrada[last_space:]) > w: print(entrada[:last_space])
ise-uiuc/Magicoder-OSS-Instruct-75K
file_list = sp.obtain_files(dir_path) f_band = sp.OneThird_octave(0.625 / 2**(1/3), 80 * 2**(1/3)) rms_x_array = np.zeros((len(f_band), len(file_list)+1)) rms_y_array = np.zeros((len(f_band), len(file_list)+1)) rms_z_array = np.zeros((len(f_band), len(file_list)+1)) rms_x_array[... , 0] = f_band rms_y_arr...
ise-uiuc/Magicoder-OSS-Instruct-75K
) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// The domain error type an `AphroditeError` is mapped to associatedtype DomainError: Error /// The function responsible for transforming an `AphroditeError` into the associated DomainError static func make(from error: AphroditeError) -> DomainError }
ise-uiuc/Magicoder-OSS-Instruct-75K
last_name: str = UserProperty(str, default="", optional=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.init_model() self.in_img = None rospy.Subscriber('/image_raw', SensorImage, self.image_callback, queue_size=1) self.detect_img_pub = rospy.Publisher('/lane_detected', SensorImage, queue_size=1) self.cv_bridge = CvBridge()
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in ${searchPath}; do name=`echo "$i" | cut -d'.' -f1 | cut -d'/' -f2` echo "$name" ffmpeg -i "$i" -vn -acodec pcm_s16le "$2/${name}.wav" done
ise-uiuc/Magicoder-OSS-Instruct-75K
// { text: "time" }, // { text: "boss" }, // ...data.data.jobs.map(it => <IExportColumn>{ text: it.name, icon: it.icon })], // rows: list, // title: this.name // }]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# click an item to open the link to the browser webbrowser.open(text.split('\n')[0], new=2) # top layout of UI class SearchUI(StackLayout): statusLabel = ObjectProperty() resultList = ObjectProperty() searchInput = ObjectProperty() def add_result_to_list_view(self, title, link, weight): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(User.env.context, dict(context, **companies_1)) # 'allowed_company_ids' is replaced if present in keys User = User.with_context(**companies_2) self.assertEqual(User.env.context, dict(context, **companies_2)) # 'allowed_company_ids' is replaced if present in new...
ise-uiuc/Magicoder-OSS-Instruct-75K
@mock.patch('cephlm.cephmetrics.ceph.cluster.Cluster.get_monitors') def test_connectivity_failure(self, mock_get_mon, mock_conn_status): mock_get_mon.return_value = self.monitors mock_conn_status.return_value = ([], self.monitors)
ise-uiuc/Magicoder-OSS-Instruct-75K
private var headerDict = [String: [String]]() private var messageBody = "" public var uid: String { uuid.uuidString } public var headers: [String: [String]] { headerDict } public var body: String { messageBody } public init() {} public func set(value: String, for header: String) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
artists.append( [ plt.imshow( np.transpose(grid, (1, 2, 0)), animated=True, ), plt.text( 0.5,
ise-uiuc/Magicoder-OSS-Instruct-75K
update_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) # Set socket reuse, may not work on all OSs. try: update_sock.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) except: pass # Attempt to bind to the soc...
ise-uiuc/Magicoder-OSS-Instruct-75K
container.Resolve<DSSProvider>().Run(container.Resolve<IWwtContext>()); // Assert //Assert.Equal("image/png", container.Resolve<HttpResponseBase>().ContentType); Assert.Equal(data, outputStream.ToArray()); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
#criterion = torch.nn.L1Loss() # You may also use a combination of more than one loss function # or create your own. optimizer = torch.optim.Adam(model.parameters(), lr=self.args.lr) model.train() epoch_resume = 0 if self.args.resume or self.args.mode==...
ise-uiuc/Magicoder-OSS-Instruct-75K
* can be altered easily in the future */ public dummyInjectionFunction = () => {}; } export default new Injection();
ise-uiuc/Magicoder-OSS-Instruct-75K
from typing import List, Type from docutils import readers from docutils.transforms import Transform from .skill import SkillBase from .transforms import InitializeReportTransform, TokenizeTransform class Reader(readers.Reader): """Basic custom reader class.
ise-uiuc/Magicoder-OSS-Instruct-75K
s3_save_path = os.path.join(S3_EXPORT_DEFAULT_BUCKET, file_path) write_count = 0 with open( s3_save_path, "w", transport_params=dict(multipart_upload_kwargs=UPLOAD_ARGS), ) as fh: write_count = fh.write(data)
ise-uiuc/Magicoder-OSS-Instruct-75K
} } func request(_ requestType: RequestType, path: String, cacheName: String?, parameterType: ParameterType?, parameters: Any?, parts: [FormDataPart]?, responseType: ResponseType, completion: @escaping (_ response: Any?, _ response: HTTPURLResponse, _ error: NSError?) -> Void) -> String { if le...
ise-uiuc/Magicoder-OSS-Instruct-75K
if root: depth+=1 return max(self.calDepth(root.left,depth),self.calDepth(root.right,depth)) return depth
ise-uiuc/Magicoder-OSS-Instruct-75K
pub struct Country { pub territories: Vec<u32>, pub border_color: u32 }
ise-uiuc/Magicoder-OSS-Instruct-75K
class OrderDoesNotExist(Exception): pass class StatusNotAllowed(Exception): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
self._fields[name] = val def __getattr__(self, name): if name == "_fields" or name not in self._fields: raise AttributeError("Cannot find {} in TensorQuantSetting!".format(name)) return self._fields[name] def get_qmin_qmax(self): assert 'qmin' in self._fields an...
ise-uiuc/Magicoder-OSS-Instruct-75K
(<any>globalObject).BABYLON.GuiEditor = GUIEditor; // eslint-disable-next-line @typescript-eslint/naming-convention (<any>globalObject).GUIEDITOR = { GUIEditor }; } export * from "../index";
ise-uiuc/Magicoder-OSS-Instruct-75K
declare flags="" while [ $# -ge 1 ]; do case "$1" in -z|--outOfOrder) flags="${flags} ${1}" shift 1
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_get_display_data_blank(self): column = DisplayConfig(expr='not_prop') data = {'prop': True} self.assertEqual( get_display_data(data, column), {'expr': 'not_prop', 'name': 'not prop', 'value': '---', 'has_history': False} ) class ToHTMLTest(SimpleTes...
ise-uiuc/Magicoder-OSS-Instruct-75K
public enum Difficulty { EASY, NORMAL, HARD }
ise-uiuc/Magicoder-OSS-Instruct-75K
""" print('the type of', repositoryName, 'is', tempCommunityType, '\n"check .\YoshiViz\output"')
ise-uiuc/Magicoder-OSS-Instruct-75K
"compiler-rt/test/builtins/Unit/ashlti3_test", "compiler-rt/test/builtins/Unit/ashrdi3_test", "compiler-rt/test/builtins/Unit/ashrti3_test", "compiler-rt/test/builtins/Unit/bswapdi2_test", "compiler-rt/test/builtins/Unit/bswapsi2_test", # "compiler-rt/test/builtins/Unit/cle...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.addSequential(ShiftDriveGear(robot, self.robot.drive_train.HIGH_GEAR)) self.addSequential(AutoDumbDrive(robot, time=0.5, speed=0))
ise-uiuc/Magicoder-OSS-Instruct-75K
// MyTumbler // // Created by Khang Nguyen on 10/11/18. // Copyright © 2018 Khang Nguyen. All rights reserved. // import UIKit import AlamofireImage class PhotosViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet weak var tableView: UITableView! var posts: [[String: Any...
ise-uiuc/Magicoder-OSS-Instruct-75K
students_t_cdf::run(AnyType &args) { return prob::cdf( students_t(args[1].getAs<double>()), args[0].getAs<double>() ); } /** * @brief Student's t probability density function: In-database interface */ AnyType students_t_pdf::run(AnyType &args) {
ise-uiuc/Magicoder-OSS-Instruct-75K
} println!("0"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def page_context(self): return {
ise-uiuc/Magicoder-OSS-Instruct-75K
break else: print("Unknown Command") def startServer(): thread = ServerThread() thread.start() return thread class ServerThread(Threading.Thread): isRunning = True
ise-uiuc/Magicoder-OSS-Instruct-75K
// Added Eq and Hash to allow this to be a key in a HashMap (MockQuerier) #[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, Eq, JsonSchema, Hash)] pub struct HumanAddr(pub String); #[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, JsonSchema)]
ise-uiuc/Magicoder-OSS-Instruct-75K
InvalidUrlAlert = 'evm_node_alert_5' ValidUrlAlert = 'evm_node_alert_6' NodeWentDownAtAlert = 'evm_node_alert_7' NodeBackUpAgainAlert = 'evm_node_alert_8' NodeStillDownAlert = 'evm_node_alert_9'
ise-uiuc/Magicoder-OSS-Instruct-75K
} //continue //await next(context).ConfigureAwait(false);
ise-uiuc/Magicoder-OSS-Instruct-75K
return wrapper return decorator
ise-uiuc/Magicoder-OSS-Instruct-75K
sum_of_squares = (n * (n + 1) * ((2 * n) + 1)) / 6 print(square_of_sum - sum_of_squares)
ise-uiuc/Magicoder-OSS-Instruct-75K
crs, poly_clip_hires, poly_clip_lowres, poly_seam, poly_clipper, mesh_fine, mesh_coarse, jig_buffer_mesh, jig_clip_hires, jig_clip_lowres, jig_combined_mesh, buffer_shrd_idx ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Return the pool size std::size_t poolSize() const { return totalPoolSize; } };
ise-uiuc/Magicoder-OSS-Instruct-75K
# the replacement digits do not have to be adjacent or consecutive but, have to be the same import timeit import math start = timeit.default_timer() def is_prime(x): if x == 2: return True if x == 1 or x % 2 == 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Stores user and password that must be used to communicate with the router instance through the main port defined in constructor method. :param user: :param password:
ise-uiuc/Magicoder-OSS-Instruct-75K
"b.b_l_t_active_status" =>1, "a.a_v_t_d_driver_id" =>$driverId, "a.a_v_t_d_status" =>1, "ab.a_b_t_status" =>1, )); } $query = $this->db->get(); // echo $this->db->last_query();die; ...
ise-uiuc/Magicoder-OSS-Instruct-75K
func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Resta...
ise-uiuc/Magicoder-OSS-Instruct-75K
class SafeSettings(object): """ Map attributes to values in the safe settings dict """ def __init__(self): self._settings = get_safe_settings() def __getattr__(self, name): try: return self._settings[name.upper()] except KeyError: raise AttributeE...
ise-uiuc/Magicoder-OSS-Instruct-75K
private let header = UILabel(font: Theme.h3Title, color: UIColor.white) private let subheader = UILabel(font: .customBody(size: 14.0), color: UIColor.transparentWhiteText) private let icon = UIImageView() private let balanceLabel = UILabel(font: Theme.body3, color: Theme.secondaryText) private let b...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo $environment_public_key > ./ssh/users_ca.pub # Send our principals, public key and get it signed with environment private key # Pull out the signed certificate and put it in our ~/.ssh/ signed_certificate=$(curl -H "Content-Type": "application/json" $url | jq -r '.result | .user_cert | .[-1] | .signed_cert') echo ...
ise-uiuc/Magicoder-OSS-Instruct-75K
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue",
ise-uiuc/Magicoder-OSS-Instruct-75K
if runconfig["database"] == "mysql": checkscript = mysql_baseline(runconfig)
ise-uiuc/Magicoder-OSS-Instruct-75K
from .approximation import Approximators try: from dvalib import indexer, retriever import numpy as np except ImportError: np = None logging.warning("Could not import indexer / clustering assuming running in front-end mode") from ..models import IndexEntries,QueryResults,Region,Retriever, QueryRegionR...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>opacam/user-service from functools import lru_cache from pathlib import Path from typing import List from pydantic import BaseSettings
ise-uiuc/Magicoder-OSS-Instruct-75K
univector2d<i32> data = { i32data }; auto wr = sequential_file_writer("audio_high_quality.wav"); audio_encode(wr, data, audioformat(data, output_sr)); plot_save("audio_high_quality", "audio_high_quality.wav", ""); } { auto r = resampler<fbase>(resample_quality::normal...
ise-uiuc/Magicoder-OSS-Instruct-75K
# for x in range(16): # fib(x) # print(fib.cache_info())
ise-uiuc/Magicoder-OSS-Instruct-75K
def download_pickle_file():
ise-uiuc/Magicoder-OSS-Instruct-75K
---------- order_id_list: list A list of order ids. either in str or int.
ise-uiuc/Magicoder-OSS-Instruct-75K
self._wait() description_field.clear() self._wait() description_field.send_keys(self.metadata_dict[const.VIDEO_DESCRIPTION].replace('\\n', u'\ue007')) self.logger.debug( 'The video description was set to \"{}\"'.format(self.metadata_dict[const....
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface DisconnectedHandler {
ise-uiuc/Magicoder-OSS-Instruct-75K
errorlog = "/demo/mysite.gunicorn.error" accesslog = "/demo/mysite.gunicorn.access" loglevel = "debug"
ise-uiuc/Magicoder-OSS-Instruct-75K
PRM_FILTER_REGEX='' #build file name VAR_RESULT='' #child return value VAR_CONFIG_FILE_NAME='' #vm config file name
ise-uiuc/Magicoder-OSS-Instruct-75K
}, 'ralph_assets.warehouse': { 'Meta': {'object_name': 'Warehouse'}, 'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), 'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'c...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.read(delim="\n", expect="So, you think you have a good <NAME> joke? "\ "Give me the joke string already....\n", expect_format='asciic') self.read(delim='> ', expect='ADD> ', expect_format='asciic')
ise-uiuc/Magicoder-OSS-Instruct-75K
open override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) _presenter.viewIsAboutToDisappear() } open override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) _presenter.viewHasDisappeared() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert len(in_shape[0]) == 2 input_shape = in_shape[0] label_shape = (input_shape[0], self.num_centers) mu_shape = (self.num_centers, input_shape[1]) out_shape = (input_shape[0], self.num_centers) return [input_shape, mu_shape, label_shape], [out_s...
ise-uiuc/Magicoder-OSS-Instruct-75K
user_callback_kwargs = thelper.utils.get_key_def(user_callback_kwargs_keys, trainer_config, {}) if user_callback is not None: assert "user_callback" not in mset, "metrics set already had a 'user_callback' in it" mset["user_callback"] = thelper.train.utils.Predicti...
ise-uiuc/Magicoder-OSS-Instruct-75K
cost_matrix[i][j] = cost_matrix[i-1][j-1] else: substitution = cost_matrix[i-1][j-1] + 1 insertion = cost_matrix[i-1][j] + 1 deletion = cost_matrix[i][j-1] + 1 compare_val = [substitution, insertion, deletion] # priority
ise-uiuc/Magicoder-OSS-Instruct-75K
:param separator: draw a separating line at the top of the element """ Layout.__init__(self, 'FactSet') if spacing is not None: self.layout['spacing'] = spacing if separator is not None: self.layout['separator'] = separator def fact(self, fact): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
{} """.format(msg)) if len(data) == 0: try: print('<must handle reconnection>') except Exception as e: print(e) except Exception as e: print(e) # all in one for reg...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "LoginGraceTime 60">>/etc/ssh/sshd_config.new cp /etc/ssh/sshd_config.new /etc/ssh/sshd_config rm /etc/ssh/sshd_config.new
ise-uiuc/Magicoder-OSS-Instruct-75K
from core.controllers import acl_decorators from core.controllers import base from core.domain import beam_job_services import feconf
ise-uiuc/Magicoder-OSS-Instruct-75K
common: [
ise-uiuc/Magicoder-OSS-Instruct-75K
function __construct (SessionInterface $session, RedirectionInterface $redirection, BlocksService $blocksService, AssetsService $assetsService, SessionSettings $sessionSettings) { $this->redirection = $redirection; $this->session = $session; $this->blocksService = $block...
ise-uiuc/Magicoder-OSS-Instruct-75K
] def validate_required_secrets(secrets):
ise-uiuc/Magicoder-OSS-Instruct-75K
,Request request) throws NotFoundException; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# plt.plot(year, temp, 'r-', year, fit, 'b') # plt.show()
ise-uiuc/Magicoder-OSS-Instruct-75K
"CUP_CZ_BREN2_556_11_GL", "CUP_CZ_BREN2_556_14_GL", "CUP_arifle_HK416_CQB_M203_Black", "CUP_arifle_HK416_CQB_M203_Desert", "CUP_arifle_HK416_CQB_M203_Wood", "CUP_arifle_HK416_CQB_AG36", "CUP_arifle_HK416_CQB_AG36_Desert",
ise-uiuc/Magicoder-OSS-Instruct-75K