seed
stringlengths
1
14k
source
stringclasses
2 values
# print("self.IEE_EmoEngineEventGetUserId.argtypes = [c_void_p , c_void_p]") self.IEE_EmoEngineEventGetType = self.libEDK.IEE_EmoEngineEventGetType self.IEE_EmoEngineEventGetType.restype = c_int self.IEE_EmoEngineEventGetType.argtypes = [c_void_p] # print("self.IEE_EmoEngineEventGetType.argtypes = [c_void_p]")
ise-uiuc/Magicoder-OSS-Instruct-75K
repo_folder = folder_from_git_remote(repo) try: if repo_folder in processed_repos: logger.info(
ise-uiuc/Magicoder-OSS-Instruct-75K
u_strncpy(scriptelem[count].ch, src.source + chOffset, chLen); scriptelem[count].count = chLen; if (checkInScripts(script, scriptcount, scriptelem[count])) { scriptelem[count].tailored = FALSE; count ++; } } rstart = FALSE; } if (U_FAILURE(error)) {
ise-uiuc/Magicoder-OSS-Instruct-75K
low=mid+1 return None my_list=[1,3,5,7,9] print(binarySearch(my_list,3)) print(binarySearch(my_list,-1))
ise-uiuc/Magicoder-OSS-Instruct-75K
#---------------------------------------------# classes = ["cat", "dog"] sets = ["train", "test"] wd = getcwd() for se in sets: list_file = open('cls_' + se + '.txt', 'w') datasets_path = "datasets/" + se types_name = os.listdir(datasets_path) for type_name in types_name: if type_name not in classes:
ise-uiuc/Magicoder-OSS-Instruct-75K
# you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #
ise-uiuc/Magicoder-OSS-Instruct-75K
Body=file.read(), ) if __name__ == '__main__': parser = argparse.ArgumentParser() init_arguments(args_parser=parser) args = parser.parse_args() if not path.isfile(args.path):
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo sed -i "/${IP_ADDR_INTERNAL_EXPECTED} /d" /etc/hosts # extra trailing space, only works with the file we just generated
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>RodrigoMoro3736/Python from utilidadescev import dado, moeda p = dado.leiaDinheiro('Digite o preço R$') moeda.resumo(p, 35, 22)
ise-uiuc/Magicoder-OSS-Instruct-75K
'innermost_method': {'key': 'innermostMethod', 'type': 'str'}, 'innermost_assembly': {'key': 'innermostAssembly', 'type': 'str'}, 'details': {'key': 'details', 'type': '[EventsExceptionDetail]'}, } def __init__(self, *, severity_level: int=None, problem_id: str=None, handled_at: str=None, assembly: str=None, method: str=None, message: str=None, type: str=None, outer_type: str=None, outer_method: str=None, outer_assembly: str=None, outer_message: str=None, innermost_type: str=None, innermost_message: str=None, innermost_method: str=None, innermost_assembly: str=None, details=None, **kwargs) -> None: super(EventsExceptionInfo, self).__init__(**kwargs) self.severity_level = severity_level self.problem_id = problem_id self.handled_at = handled_at self.assembly = assembly self.method = method
ise-uiuc/Magicoder-OSS-Instruct-75K
if let data = FileManager.default.contents(atPath: path) { do { savedImages = try PropertyListDecoder().decode([SavedImage].self, from: data) } catch { print("Property list decoding error: \(error)") } } else { print("Data is nil") }
ise-uiuc/Magicoder-OSS-Instruct-75K
name=$1 secret=$2 TZ='Asia/Shanghai' date=$(date +'%Y-%m-%d %H:%M:%S') echo -n "$pathAndQuery&$name&$date&$secret" | md5sum | cut -d" " -f1 | { read hash; curl -H "X-ND-Date: $date" -H "Authorization: $name:$hash" $endpoint; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Use: ./build.sh docker build . -t artsy/rubyrep:mri docker push artsy/rubyrep:mri
ise-uiuc/Magicoder-OSS-Instruct-75K
private void pesquisa_Click(object sender, EventArgs e) { int res; try { // tenta converter o campo do código do cliente res = int.Parse(codCli.Text); } catch (Exception ex) { // se der errado cria uma caixa de mensagem de erro MessageBox.Show("O campo de pesuisa deve conter apenas números inteiros", "Resultado", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
ise-uiuc/Magicoder-OSS-Instruct-75K
cd static
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>markpp/pl_bolts<filename>models/VQVAE2/config.py
ise-uiuc/Magicoder-OSS-Instruct-75K
seven_boom(end_number) if __name__ == "__main__":
ise-uiuc/Magicoder-OSS-Instruct-75K
return User(**data) class TransactionSchema(ma.SQLAlchemyAutoSchema): ''' Serializes rent from and to DB. ''' class Meta: model = Transaction include_fk = True
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <gpcl.hpp>
ise-uiuc/Magicoder-OSS-Instruct-75K
csv_filename = filename.replace('.mat', '.csv') df.to_csv('csv-data/' + csv_filename, index=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
clientY: 46, // Header }); expect(spy).toBeCalledWith( expect.objectContaining({ kind: "header", location: [2, -1], }) ); }); test("Group header hovered", () => { const spy = jest.fn(); render(
ise-uiuc/Magicoder-OSS-Instruct-75K
check_gpu()
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "ERROR: this version of Playwright does not support running WebKit on MacOS 10.14. Please either update MacOS to 10.15+ or use Playwright@v1.11" exit 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
msip::set_ipi(i);
ise-uiuc/Magicoder-OSS-Instruct-75K
self.execute = True self.verbose = False modes = ["build", "presubmit", "selenium", "unit_tests"] versions = ["Debug", "Release"] parser = OptionParser() parser.add_option( "--list-targets", action="store_true", help="lists all available targets.")
ise-uiuc/Magicoder-OSS-Instruct-75K
impl<U, E> DiseqFdConstraint<U, E> where U: User, E: Engine<U>, { pub fn new(u: LTerm<U, E>, v: LTerm<U, E>) -> Rc<dyn Constraint<U, E>> { assert!(u.is_var() || u.is_number()); assert!(v.is_var() || v.is_number()); Rc::new(DiseqFdConstraint { u, v }) } } impl<U, E> Constraint<U, E> for DiseqFdConstraint<U, E> where U: User,
ise-uiuc/Magicoder-OSS-Instruct-75K
fi # Shallow Git clones (--depth) do not have the N tag: # use 'git-YYYY-MM-DD-hhhhhhh'. test "$revision" || revision=$(cd "$1" && git log -1 --pretty=format:"git-%cd-%h" --date=short 2> /dev/null) # Snapshots from gitweb are in a directory called ffmpeg-hhhhhhh or # ffmpeg-HEAD-hhhhhhh. if [ -z "$revision" ]; then srcdir=$(cd "$1" && pwd) case "$srcdir" in */ffmpeg-[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]) git_hash="${srcdir##*-}";; */ffmpeg-HEAD-[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.junit.Test; import uk.ac.manchester.cs.pronto.constraints.ConflictGraph; import uk.ac.manchester.cs.pronto.ProntoMainTestSuite; /** * @author <NAME> * * <EMAIL>, <EMAIL> *
ise-uiuc/Magicoder-OSS-Instruct-75K
if (str.length() > 0) return str; } return "--"; } private String trim(String data) { if (data != null)
ise-uiuc/Magicoder-OSS-Instruct-75K
AccountName = ""; CurrentStep = 1; IsLoading = false; LoadingText = ""; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine($"Error saving user account name: {ex.Message}"); IsLoading = false; LoadingText = ""; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def _buffer_proxy(filename_or_buf, function, reset_fp=True, file_mode="rb", *args, **kwargs): """ Calls a function with an open file or file-like object as the first argument. If the file originally was a filename, the file will be opened, otherwise it will just be passed to the underlying function. :param filename_or_buf: File to pass.
ise-uiuc/Magicoder-OSS-Instruct-75K
# You must request control every frame.
ise-uiuc/Magicoder-OSS-Instruct-75K
) (ipv4, ipv6) = get_ip() module.exit_json( changed=False,
ise-uiuc/Magicoder-OSS-Instruct-75K
for line in f: files.append(line.split('\n')[0]) # 得到每行的文件名,然后append return files class PointNetDataset(Dataset): # 继承父类Dataset def __init__(self, root_dir, train): super(PointNetDataset, self).__init__() # 执行父类的构造函数,使得我们能够调用父类的属性。 self._train = train # 0是训练文件,1是测试文件 self._classes = [] # 特征和label
ise-uiuc/Magicoder-OSS-Instruct-75K
"""LidarObject class defines features of the object detected by LIDAR.""" def __init__(self, lidar_cluster, object_class, relative_position): self.lidar_cluster = lidar_cluster self.object_class = object_class self.relative_position = relative_position
ise-uiuc/Magicoder-OSS-Instruct-75K
import androidx.core.content.FileProvider; public final class KinRecoveryFileProvider extends FileProvider { }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.tone += 1 self.frequency = tone2frequency(self.tone) def _frequency_decrement(self): self.tone -= 1
ise-uiuc/Magicoder-OSS-Instruct-75K
app.teardown_appcontext(self.teardown) def connect(self): host = self.app.config.get("ARANGODB_HOST", None) db_name = self.app.config.get("ARANGODB_DB", None)
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, token=None, is_test=False, blog_domain=None): self.token = token self.is_test = is_test self.blog_domain = blog_domain def check(self, author, email, body, user_ip, user_agent, url=None, referrer='unknown', blog_domain=None): raise NotImplementedError def report(self, is_spam, author, email, body, user_ip, user_agent, url=None, referrer='unknown', blog_domain=None): raise NotImplementedError
ise-uiuc/Magicoder-OSS-Instruct-75K
for waypoint_data in read_yaml(rospy.get_param('~path', 'waypoints.yaml')):
ise-uiuc/Magicoder-OSS-Instruct-75K
notify = directNotify.newCategory('FriendRequest') def __init__(self, name, dnaStrand): DirectFrame.__init__(self) dna = ToonDNA.ToonDNA()
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="container mt-5"> <table class="table"> <tr align="center"> <th>ID</th> <th>Nome</th> <th>CRM</th> <th>Especialidades</th> <th>Telefone Fixo</th> <th>Telefone Celular</th>
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "main.hpp"
ise-uiuc/Magicoder-OSS-Instruct-75K
def key_pressed(event): if DEBUG: print("KEY: " + event.keysym) key = event.char calculator.verifyInput(app,key) root.bind("<Key>",key_pressed)
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import views urlpatterns = [ path('filestorage/', views.filestorage), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
# Join all the regex parts using '\s+' as separator and # append '$' at the end pattern = re.compile(r'\s+'.join(regex_parts) + r'$') # Scrape data from each line of the log file into a structured dictionary and # store all the dictionaries into a list. # Keep track also of the line index in case of error log_data = [] lines_error = [] num_errors = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
def getVertexNormal(vertIndex, faceNormalsByVertex): # Compute vertex normals by averaging the normals of adjacent faces normal = Vector(0, 0, 0) for adjNormal in faceNormalsByVertex[vertIndex]: normal = normal + adjNormal return normal / len(faceNormalsByVertex[vertIndex]) # Calculate face normals faceNormals = {} for face in model.faces: p0, p1, p2 = [model.vertices[i] for i in face] faceNormal = (p2-p0).cross(p1-p0).normalize()
ise-uiuc/Magicoder-OSS-Instruct-75K
} foreign_links { Io(::std::io::Error); Log(::log::SetLoggerError); ParseError(InternalError); BackendError(backend::Error); } errors { BackendErrors(errors: Vec<backend::Error>) { description("backend errors") display("encountered {} backend error(s)", errors.len()) }
ise-uiuc/Magicoder-OSS-Instruct-75K
wget -O code.deb https://go.microsoft.com/fwlink/?LinkID=760865 sudo dpkg -i code.deb sudo apt install --fix-broken --yes
ise-uiuc/Magicoder-OSS-Instruct-75K
from collections import Counter def main(): prices = {"course": 97.99, "book": 54.99, "wallpaper": 4.99} cart = Counter(course=1, book=3, wallpaper=2) total = 0.0 for product, units in cart.items(): subtotal = units * prices[product] price = prices[product]
ise-uiuc/Magicoder-OSS-Instruct-75K
// deno-lint-ignore no-unused-vars import { A } from "./recursive_imports/A.ts";
ise-uiuc/Magicoder-OSS-Instruct-75K
id='vrep-twolinkball-v0', entry_point='vrepdemo.envs:TwoLinkBallVrepEnv', ) register( id='vrep-twolinkball2-v0', entry_point='vrepdemo.envs:TwoLinkBall2VrepEnv', )
ise-uiuc/Magicoder-OSS-Instruct-75K
scale_grad: *mut f32, bias_grad: *mut f32, in_grad: *mut f32);
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="row"> <div class="col-12"> <div class="page-title"> <h1>parcel status</h1> </div> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
# install_requires=[ # 'Pillow>=2.3.0', # 'numpy>=1.8.2', # 'pytest>=1.6.1',
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "imageTag: build image with 'imageTag'" echo "imageTag: build image with 'imageTag'" echo "Charts: List of Helm charts separated with ','" echo "Example: $_ del v6 'dao-spring-boot,store-spring-boot,workload-db,workload-cache'" } (($# == 3)) || { usage; exit 1; } action=$1 tag=$2 IFS=',' list=($3)
ise-uiuc/Magicoder-OSS-Instruct-75K
if descendant.tag == 'div': division = True page.append(sibling) page.tag = 'div' if division else 'part' return xml def __clean_line(self, line): line = self.__xmlns.sub('', line) line = self.__invalid_ampersand.sub('&amp;', line) return line
ise-uiuc/Magicoder-OSS-Instruct-75K
/// public static final [Widget_Material_TabWidget](https://developer.android.com/reference/android/R.style.html#Widget_Material_TabWidget) pub const Widget_Material_TabWidget : i32 = 16974470; /// public static final [Widget_Material_TextView](https://developer.android.com/reference/android/R.style.html#Widget_Material_TextView) pub const Widget_Material_TextView : i32 = 16974471; /// public static final [Widget_Material_TextView_SpinnerItem](https://developer.android.com/reference/android/R.style.html#Widget_Material_TextView_SpinnerItem) pub const Widget_Material_TextView_SpinnerItem : i32 = 16974472; /// public static final [Widget_Material_TimePicker](https://developer.android.com/reference/android/R.style.html#Widget_Material_TimePicker) pub const Widget_Material_TimePicker : i32 = 16974473;
ise-uiuc/Magicoder-OSS-Instruct-75K
import de.acegen.CustomAppConfiguration; import de.acegen.IDaoProvider; import de.acegen.PersistenceConnection; import de.acegen.PersistenceHandle; import de.acegen.ViewProvider; public class GetDuplicatesAction extends AbstractGetDuplicatesAction { static final Logger LOG = LoggerFactory.getLogger(GetDuplicatesAction.class);
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.contrib.auth.hashers import make_password import uuid import datetime try: # python 3 from urllib.parse import urlparse except ImportError: # python 2 from urlparse import urlparse from helpdesk.templatetags.ticket_to_link import num_to_link class TimeSpentTestCase(TestCase):
ise-uiuc/Magicoder-OSS-Instruct-75K
case EnumContainer.EnumStyle.AlreadyExistsNoExport: serializedEnum = "Error: Trying to generate an enum that's already defined"; break; case EnumContainer.EnumStyle.Flagged: serializedEnum = CreateFlaggedEnum(container); break; case EnumContainer.EnumStyle.Composite: serializedEnum = CreateCompositeEnum(container); break;
ise-uiuc/Magicoder-OSS-Instruct-75K
} public override Judgement CreateJudgement() => new OsuSpinnerBonusTickJudgement();
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ "x${src}" = "x" ]; then echo "Failed to fetch ${pkg}" >&2 exit 1 fi cleanup="${src}" log=$(realpath "log_${pkg}")
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_window_radius(window, hp_radius): """ Calculates the required radius of a window function in order to achieve the provided half power radius.
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 print("ACL"*int(input()))
ise-uiuc/Magicoder-OSS-Instruct-75K
l.append(int(input(f"enter l[{i}]: "))) print(l) ''' output: enter number of elements: 6 enter l[0]: 23 enter l[1]: 11 enter l[2]: 67 enter l[3]: 889
ise-uiuc/Magicoder-OSS-Instruct-75K
rawPath = rawPath.replacingOccurrences(of: "//", with: "/"); let urlPath = (try configuration.getApiRootUrl()).appendingPathComponent(rawPath); var urlBuilder = URLComponents(url: urlPath, resolvingAgainstBaseURL: false)!; var queryItems : [URLQueryItem] = []; if (self.getLoadEncoding() != nil) { queryItems.append(URLQueryItem(name: "loadEncoding", value: try ObjectSerializer.serializeToString(value: self.getLoadEncoding()!))); } if (self.getPassword() != nil) { queryItems.append(URLQueryItem(name: apiInvoker.isEncryptionAllowed() ? "encryptedPassword" : "password", value: try apiInvoker.encryptString(value: self.getPassword()!))); } if (queryItems.count > 0) { urlBuilder.queryItems = queryItems; }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.reference.imageFile = sorted(glob.glob(os.path.join(self.referenceDir, 'IMG-{}-ALOS2*{}-*-*'.format(self.referencePolarization.upper(), referenceFrame))))[0] self.reference.outputFile = self._insar.referenceSlc self.reference.useVirtualFile = self.useVirtualFile #read reference (imageFDR, imageData)=self.reference.readImage() (leaderFDR, sceneHeaderRecord, platformPositionRecord, facilityRecord)=self.reference.readLeader() self.reference.setSwath(leaderFDR, sceneHeaderRecord, platformPositionRecord, facilityRecord, imageFDR, imageData) self.reference.setFrame(leaderFDR, sceneHeaderRecord, platformPositionRecord, facilityRecord, imageFDR, imageData) self.reference.setTrack(leaderFDR, sceneHeaderRecord, platformPositionRecord, facilityRecord, imageFDR, imageData) #setup secondary self.secondary.leaderFile = sorted(glob.glob(os.path.join(self.secondaryDir, 'LED-ALOS2*{}-*-*'.format(secondaryFrame))))[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
int additionalBonus = int.Parse(Console.ReadLine()); if (studentsCount == 0 || lecturesCount == 0) { Console.WriteLine($"Max Bonus: 0."); Console.WriteLine($"The student has attended 0 lectures.");
ise-uiuc/Magicoder-OSS-Instruct-75K
whole_wheat_dough = Dough("Whole Wheat Flour", "Mixing", 200)
ise-uiuc/Magicoder-OSS-Instruct-75K
D_local_sum = T_local * D a2ai.D = D dim_sum_per_rank = a2ai.dim_sum_per_rank B_local = B_global // world_size a2ai.B_local = B_local assert ( B_global % world_size == 0 ), f"num of ranks {world_size} doesn't divide global batch size {B_global}" sharded_input_embeddings = input_embeddings.view( world_size, B_local, D_local_sum )
ise-uiuc/Magicoder-OSS-Instruct-75K
import os, random import librosa import pyloudnorm from pathlib import Path import glob # Arranging the files to be processed def sanity_check(sound): return not('flac' in sound.lower() or 'wav' in sound.lower())
ise-uiuc/Magicoder-OSS-Instruct-75K
public static int getWindowHeight(Context context) { WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); int height = wm.getDefaultDisplay().getHeight(); return height; } /** * 获取NavigationBar高度 * * @param var0 * @return */
ise-uiuc/Magicoder-OSS-Instruct-75K
class AppDelegate: UIResponder, UIApplicationDelegate {
ise-uiuc/Magicoder-OSS-Instruct-75K
shape = [10, 10] data1 = np.random.random(shape) net = core.Net("net") net.GivenTensorFill([], ["Y"], shape=shape, values=data1, name="Y") # Execute via Caffe2 workspace.RunNetOnce(net)
ise-uiuc/Magicoder-OSS-Instruct-75K
local POOL=$1 echo "Checking if snapshot exists with " # Yea, this method of checking if it exists looks pretty dumb, but it's # a limitation of s3cmd. It will return a 0 exit code even if the object # does not exist. ${S3} ls -H s3://${S3_BUCKET}/${SERIAL}/${POOL}.${SNAPSHOT}.gz | grep ${SNAPSHOT} \ >> /dev/null 2>&1 if [ $? -eq 0 ] ; then if [ -z ${DEFAULT_YES} ] ; then local retries=0 local max_retries=10 while [ $retries -lt $max_retries ] ; do read -p "Remote ${EXISTS_PROMPT}" KD_SNAP case $KD_SNAP in
ise-uiuc/Magicoder-OSS-Instruct-75K
// import Foundation struct AppGroup { static let identifier = "group.ios.chat.rocket" }
ise-uiuc/Magicoder-OSS-Instruct-75K
'third line\n'+ 'another pattern: jihAAAAAXXXfed') class Function(FileMatch): regexp = S(r'BEGIN\s+', NAMED('name', RE_IDENTIFIER), r'\n', r'(.*\n)*?END\n') class Statement(FileMatch): regexp = S(r'^\s*', NAMED('name', RE_IDENTIFIER), r'\(\)\n') def test_container_match():
ise-uiuc/Magicoder-OSS-Instruct-75K
if type(network_output_energy) not in [tuple, list]: network_output_energy = [network_output_energy] if weights is None: weights = [0.46,0.23,0.23,0.46] # more preference for starting layers
ise-uiuc/Magicoder-OSS-Instruct-75K
class PolynomialProjectionType(BaseProjectionType): """ Polynomial pixel to ground. This should only used for sensor systems where the radar geometry parameters are not recorded. """ _fields = ('ReferencePoint', 'RowColToLat', 'RowColToLon', 'RowColToAlt', 'LatLonToRow', 'LatLonToCol') _required = ('ReferencePoint', 'RowColToLat', 'RowColToLon', 'LatLonToRow', 'LatLonToCol') # Descriptor RowColToLat = _SerializableDescriptor(
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.jfrog.build.extractor.go.GoDriver; import org.jfrog.build.extractor.scan.DependencyTree; import java.io.IOException; import java.util.*;
ise-uiuc/Magicoder-OSS-Instruct-75K
.ShouldMap("/api/Comments/ByUser/test") .To<CommentsController>(c => c.GetByUser("test", 0, 10)); }
ise-uiuc/Magicoder-OSS-Instruct-75K
Defaults to 0.75 to account for the increased availability of aluminum as a consequence of the new reaction.''',
ise-uiuc/Magicoder-OSS-Instruct-75K
return cisco_ios_xr_namespace_identity_lookup; } bool ClearControllerCounters::has_leaf_or_child_of_name(const std::string & name) const { if(name == "input") return true; return false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_args(): arg_parser = get_arg_parser() CleanupAWSLoadbalancersPlugin.add_args(arg_parser)
ise-uiuc/Magicoder-OSS-Instruct-75K
@classmethod def _can_be_converted_to_setting_automatically(mcs, attr: Any) -> bool: """Return False if attribute should not be converted to a Setting automatically""" callable_types = (property, classmethod, staticmethod) return not isinstance(attr, callable_types) @classmethod def add_settings_help(mcs, cls_name: str, class_dict: dict): if '__module__' not in class_dict: # class is not coming from a module return settings = {
ise-uiuc/Magicoder-OSS-Instruct-75K
typedef pair<int, int> pii; int main() { std::ios::sync_with_stdio(false); int n; int a[1000010]; cin >> n; long long ans = 0;
ise-uiuc/Magicoder-OSS-Instruct-75K
) # ==================================== # REMOVE UNNECESSARY SNIPPETS OR FILES # ==================================== if cfg.shrink.plotly.remove_jupyterlab_plotly: chains.append("(test -d jupyterlab_plotly && rm -rf jupyterlab_plotly || echo)") if cfg.shrink.plotly.remove_data_docs: chains.append(
ise-uiuc/Magicoder-OSS-Instruct-75K
//TODO: change to accept runtime parameters to control tick frequency. Can be used to compare the performance of using Discruptor and Aeron IPC DisruptorStockPricePublisher publisher = new DisruptorStockPricePublisher(ringBuffer, SleepingRandomMillisIdleStrategy.DEFAULT_LOWER_BOUND_SLEEP_PERIOD_MS, SleepingRandomMillisIdleStrategy.DEFAULT_UPPER_BOUND_SLEEP_PERIOD_MS); //DisruptorStockPricePublisher publisher = new DisruptorStockPricePublisher(ringBuffer, Integer.parseInt(args[0]), Integer.parseInt(args[1])); publisher.initialize(useSQLite2InitSecurity); new Thread(publisher).start();; barrier.await(); System.exit(0); }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.hike = hike self.path = path } var color: Color { switch path { case \.elevation: return .gray case \.heartRate: return Color(hue: 0, saturation: 0.5, brightness: 0.7) case \.pace: return Color(hue: 0.7, saturation: 0.4, brightness: 0.7) default: return .black
ise-uiuc/Magicoder-OSS-Instruct-75K
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1) expected_stdout_1 = """ F01 2003-01-01 01:11:00.0000 F02 1 F01 2003-01-01 01:11:01.0000 F02 3 F01 2003-01-01 01:11:02.0000 F02 4 F01 2003-01-01 01:11:03.0000
ise-uiuc/Magicoder-OSS-Instruct-75K
impl From<IoError> for IgnoredIoError { fn from(err: IoError) -> Self { IgnoredIoError(err)
ise-uiuc/Magicoder-OSS-Instruct-75K
std::cout << ", "; if(conn_.is_open()) std::cout << "opened"; else std::cout << "closed"; std::cout << std::endl;
ise-uiuc/Magicoder-OSS-Instruct-75K
gateway = models.GenericIPAddressField(verbose_name=u"网关") network = models.GenericIPAddressField(verbose_name=u"网络号") netmask = models.CharField(max_length=20,default='',null=True,blank='',verbose_name=u"掩码")
ise-uiuc/Magicoder-OSS-Instruct-75K
if let value = json["value"] as? String, let valueBiguint = BigUInt(value.stripHexPrefix().lowercased(), radix: 16) { options.value = valueBiguint } if let toString = json["to"] as? String { guard let addressTo = EthereumAddress(toString) else {return nil} options.to = addressTo } if let fromString = json["from"] as? String { guard let addressFrom = EthereumAddress(fromString) else {return nil} options.from = addressFrom } if let nonceString = json["nonce"] as? String, let nonce = BigUInt(nonceString.stripHexPrefix(), radix: 16) { options.nonce = .manual(nonce) } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
@ParameterizedTest @MethodSource("provideTestDataForPart1") public void testPart1(List<String> input, Object expected, IOHelper io) { testPart1(this.day, input, expected, io); } @ParameterizedTest @MethodSource("provideTestDataForPart2") public void testPart2(List<String> input, Object expected, IOHelper io) { testPart2(this.day, input, expected, io); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
width={theme.spacing(15)} /> <BaseSkeleton animate={animate} className={classes.nextContent} variant="text" width={theme.spacing(25)} /> </> ); };
ise-uiuc/Magicoder-OSS-Instruct-75K
'categories': ['Safari 5.0', 'Safari 4.0', 'Safari Win 5.0', 'Safari 4.1', 'Safari/Maxthon', 'Safari 3.1', 'Safari 4.1'], 'data': [4.55, 1.42, 0.23, 0.21, 0.20, 0.19, 0.14], 'color': 'Highcharts.getOptions().colors[3]'
ise-uiuc/Magicoder-OSS-Instruct-75K
}; export type PaypalResolvers< ContextType = any, ParentType extends ResolversParentTypes['Paypal'] = ResolversParentTypes['Paypal'] > = {
ise-uiuc/Magicoder-OSS-Instruct-75K