seed
stringlengths
1
14k
source
stringclasses
2 values
html = os.path.join(working_dir, '%s.html' % title) log_hevea = os.path.join(working_dir, 'hevea.log') hevea = 'hevea %s -o %s >> %s' % (basename, html, log_hevea) print "--- Invoking hevea..." print hevea os.system(hevea) os.system('bibhva %s >> %s' % (os.path.join(working_dir, title), log_hevea)) os.system(hevea) os.system(hevea) imagen = 'imagen -pdf %s >> %s' % (os.path.join(working_dir, title), log_hevea)
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <algorithm> using namespace std; const int maxn = 1005; char s[maxn]; inline int idx(char c) { if (c == 'I') return 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
Copyright 2013 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); 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 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. """
ise-uiuc/Magicoder-OSS-Instruct-75K
public T Item; public List<Node<T>> Parents { get; } = new List<Node<T>>(); public List<Node<T>> Children { get; } = new List<Node<T>>();
ise-uiuc/Magicoder-OSS-Instruct-75K
- throws: `DescribedError` if something went wrong */ public func value() throws -> String { return try origin.value() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace WpfHandler.UI.AutoLayout.Configuration { /// <summary> /// Close the last started layout group. /// </summary> [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
ise-uiuc/Magicoder-OSS-Instruct-75K
} } // ## Database // The database holds a map of tables, and a data store that holds a data array of values.
ise-uiuc/Magicoder-OSS-Instruct-75K
mv ../src/${fname}_v2.jl ../src/${fname}.jl done
ise-uiuc/Magicoder-OSS-Instruct-75K
} public int getStature() { return stature; } public void setStature(int stature) { this.stature = stature; } public int getWeight() { return weight;
ise-uiuc/Magicoder-OSS-Instruct-75K
cout << "The given number is a power of two" << endl; else cout << "The given number is not a power of two" << endl; }
ise-uiuc/Magicoder-OSS-Instruct-75K
int arrayArgIdx = arrayArgIdxs[0]; int[] idxArgIdxs = Arguments.findTag(outArgs, _tag + "_Locator"); if ( idxArgIdxs.length != 1 ) throw new IllegalArgumentException("There should be only one argument tagged [" + _tag + "_Locator], but there are " + idxArgIdxs); int idxArgIdx = idxArgIdxs[0]; MHMacroTF mTF = new MHMacroTF("envelope arg inbound"); mTF.addOutboundCall(target); int[] innerPermuteArray = MHPermuteTF.getIdentityPermuteArray(outArgs.length); if ( arrayArgIdx < idxArgIdx ) innerPermuteArray = MHPermuteTF.moveArgsInPermuteArray(MHPermuteTF.moveArgsInPermuteArray(innerPermuteArray, 0, 1, arrayArgIdx), 0, 1, idxArgIdx);
ise-uiuc/Magicoder-OSS-Instruct-75K
i01.rightHand = Runtime.create("i01.rightHand", "InMoovHand") #tweaking defaults settings of right hand i01.rightHand.thumb.setMinMax(20,155) i01.rightHand.index.setMinMax(30,130) i01.rightHand.majeure.setMinMax(38,150) i01.rightHand.ringFinger.setMinMax(30,170) i01.rightHand.pinky.setMinMax(30,150) i01.rightHand.thumb.map(0,180,20,155) i01.rightHand.index.map(0,180,30,130) i01.rightHand.majeure.map(0,180,38,150)
ise-uiuc/Magicoder-OSS-Instruct-75K
this.getProduct(req, res);
ise-uiuc/Magicoder-OSS-Instruct-75K
let cm = match res { Ok(message) => message, Err(s) => panic!("{}", s) };
ise-uiuc/Magicoder-OSS-Instruct-75K
##Write a program to input from the input file a familiar greeting of any length, each word on a line. Output the greeting file you just received on a single line, the words separated by a space #Mo file voi mode='r' de doc file with open('05_ip.txt', 'r') as fileInp:
ise-uiuc/Magicoder-OSS-Instruct-75K
-w MSlabel98Out
ise-uiuc/Magicoder-OSS-Instruct-75K
match parse_phase { ParsePhase::Rules => { let line = &line[line.find(|ch: char| ch.is_digit(10)).unwrap()..]; data.rules.push( line.split(" or ") .map(|range| { let mut range_parts = range .split('-') .map(str::parse) .map(Result::unwrap); let start = range_parts.next().unwrap(); let end = range_parts.next().unwrap();
ise-uiuc/Magicoder-OSS-Instruct-75K
:param reverse: is a boolean value. If set to True, then the list elements are sorted as if each comparison were reversed. ''' # NOTE: consider using heapq.merge key = key or (lambda x: x) if reverse: key = key_to_reverse_order(key) heap = [(((0, ), idx), MERGE_SENTINEL) for idx in range(len(chunks))] heapq.heapify(heap)
ise-uiuc/Magicoder-OSS-Instruct-75K
ramachandran.statistics.compute_gaussian_kde_densities_from_directory(dir_path="./pdbx_collections_resolution_1p0", save_file_path="./data/gaussian_density.npz", b_factor_threshold=30, resolution=360, num_processes=12)
ise-uiuc/Magicoder-OSS-Instruct-75K
'x_zero': centre_cor[0], 'y_zero': centre_cor[1]} # attributes displayed in correlations file names naming_varN = naming.VarN() # varN naming object naming_simdir = naming.AHB2D() # simulation directory naming object # PLOT PARAMETERS font_size = get_env('FONT_SIZE', default=_font_size, vartype=float) # plot font size marker_size = get_env('MARKER_SIZE', default=_marker_size, vartype=int) # plot marker size
ise-uiuc/Magicoder-OSS-Instruct-75K
for provider in self._configMain.recentStatProviders: task = Thread( target=provider.getStatistics, args=(self._configMain.region, playerName, playerId, self._playerIdToData) ) vehicleInfoTasks.add(task) task.start() logInfo("Vehicle info task count: %d." % len(vehicleInfoTasks))
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.conf.urls import url, include from project.api.rankings.api import AddRanking, AddScore, GetScoresUser, GetScoresGame urlpatterns = [ url(r'add_ranking$', AddRanking.as_view()), url(r'add_score$', AddScore.as_view()), url(r'get_scores_game$', GetScoresGame.as_view()), url(r'get_scores_user$', GetScoresUser.as_view()) ]
ise-uiuc/Magicoder-OSS-Instruct-75K
email2="", email3="", homepage="", byear="", address2="", phone2="", notes="", bday="20", bmonth="6")) old_contacts = db.get_contact_list() rcontact = random.choice(old_contacts) contact = Contact(lastname="lname", firstname="fname", address="address") contact.id = rcontact.id app.contact.modify_contact_by_id(contact) app.open_home_page() assert len(old_contacts) == app.contact.count() new_contacts = db.get_contact_list() old_contacts.remove(rcontact) old_contacts.append(contact) assert sorted(old_contacts, key=Contact.id_or_max) == sorted(new_contacts, key=Contact.id_or_max)
ise-uiuc/Magicoder-OSS-Instruct-75K
list_per_page = 15 form = NoticeForm admin.site.register(Notice, NoticeAdmin)
ise-uiuc/Magicoder-OSS-Instruct-75K
pub(crate) const REMOTE_ATTR_PARAM_NAME: &str = "remote"; pub(crate) const CREATE_ISSUE_LINK: &str = "https://github.com/myelin-ai/mockiato/issues/new";
ise-uiuc/Magicoder-OSS-Instruct-75K
IEntity::~IEntity() { } std::string IEntity::dumpInformation() const { std::stringstream stream; stream << ITransformable::dumpInformation() << " <IEntity>: " << std::endl << " HasEmission: " << (hasEmission() ? "true" : "false") << std::endl << " IsCollidable: " << (isCollidable() ? "true" : "false") << std::endl
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void done() {} }
ise-uiuc/Magicoder-OSS-Instruct-75K
ROS_INFO("Advertising publisher"); ros::Publisher commanded_pub = n.advertise<modrob_workstation::RobotConfigCommanded>("/ns/robot_config_commanded", 2000); ros::Publisher measured_pub = n.advertise<modrob_workstation::RobotConfigMeasured>("/ns/robot_config_measured", 2000); ros::Rate loop_rate(rate); ROS_INFO("Starting main loop"); while (ros::ok()) { if(sendMeasured()) { ROS_INFO("Sending measured msg"); measured_pub.publish(measuredMsg()); } else { ROS_INFO("Sending commanded msg"); commanded_pub.publish(commandedMsg()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ @Override public boolean acceptsURL(String url) throws SQLException { return url != null && url.contains("jdbc:environment:"); } /** * Get the property information. * * @param url the URL.
ise-uiuc/Magicoder-OSS-Instruct-75K
FrameworkTitle = str
ise-uiuc/Magicoder-OSS-Instruct-75K
Guid GenerateNewGuid(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
public var sourceEndpoint : String = ""; public var baseEndpoint : Endpoint = Endpoint(); public var state : ResultState = .NEW; override public init() { super.init(); } public init(json: String) { if let data = json.data(using: .utf8) { do { let obj = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any];
ise-uiuc/Magicoder-OSS-Instruct-75K
nltk.download('punkt') # word_tokenize is used to break up a string into words print(stock_df['Text Without Punc & Stopwords Joined'][0]) print(nltk.word_tokenize(stock_df['Text Without Punc & Stopwords Joined'][0])) # Obtain the maximum length of data in the document
ise-uiuc/Magicoder-OSS-Instruct-75K
class ListaZasobowGrid { /** * @var EntityManager */ protected $entityManager; /** * Publiczny konstruktor. * * @param Grid $grid * @param EntityManager $entityManager
ise-uiuc/Magicoder-OSS-Instruct-75K
vectors = helper.reshape_field(mesh, vFlow, 'to_array', 'scalars', porder=1) _, vectors = helper.interpolate_high_order(1, mesh['porder'], mesh['ndim'], lo_scalars=None, lo_vectors=vectors)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. import csv import math from haversine import haversine, Unit from define import * """def haversine(c0, c1): "" calculate great circle distance between 2 latitude longitude coordinate pairs :param c0:
ise-uiuc/Magicoder-OSS-Instruct-75K
<Container label={!!label} variant={variant} className="btn" type={type} {...rest}> {Icon && <Icon />} {label} </Container> ); };
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.AlterField( model_name='cash', name='Data_date', field=models.DateTimeField(), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: return version_match.group(1) raise RuntimeError("Unable to find version string.") setup(name='pynatnetclient', version=find_version('pynatnetclient', '__init__.py'), description='Python client to Optitrack.',
ise-uiuc/Magicoder-OSS-Instruct-75K
} #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 4; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET;
ise-uiuc/Magicoder-OSS-Instruct-75K
with oneflow.scope.namespace("scope1"): ... with oneflow.scope.namespace("scope2"): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
result["learning_rate"] = self.optimizer.learning_rate(
ise-uiuc/Magicoder-OSS-Instruct-75K
} return 0;
ise-uiuc/Magicoder-OSS-Instruct-75K
for i, node in enumerate(self.nodes): node.nid = i + 1 if len(node.neighbors) > 1: set_atommap(node.mol, node.nid) node.is_leaf = (len(node.neighbors) == 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
""" return send_template(self.environ, 'bags.html', { 'meta_keywords': 'bags, tiddlyspace', 'meta_description': 'A list of bags on TiddlySpace', 'bags': bags, 'title': 'Bags'}) def list_tiddlers(self, tiddlers): """ List the tiddlers from a container. Include a link to the container if it can be viewed by the current user. List the available serializations for the tiddlers. """ tiddlers_url = (self.environ.get('SCRIPT_NAME', '') + self.environ.get('PATH_INFO', ''))
ise-uiuc/Magicoder-OSS-Instruct-75K
shipyard2.rules.pythons.define_pypi_package('requests', '2.26.0')
ise-uiuc/Magicoder-OSS-Instruct-75K
'''Tests regarding the smisk.mvc module '''
ise-uiuc/Magicoder-OSS-Instruct-75K
x_pos = pos.x() + (self.ui.reply_scroll_area.width() / 2) - (reply_dialog.width() / 2) - 10 y_pos = pos.y() + (self.ui.reply_scroll_area.height() / 2) - (reply_dialog.height() / 2) - 20 reply_dialog.move(x_pos, y_pos) # show the dialog, and while it's showing, # enable a transparent overlay on top of the existing replies
ise-uiuc/Magicoder-OSS-Instruct-75K
metadata_url = csv_url + '-metadata.json' response = requests.get(metadata_url) if response.status_code >= 400: response = requests.get(metadata_url + '?' + query) else: response.status_code = 404 else: metadata_url = csv_url + '-metadata.json' response = requests.get(metadata_url)
ise-uiuc/Magicoder-OSS-Instruct-75K
index=$3 script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" state_dir="${TILT_WORKFLOW_STATE_PATH:-$script_dir}" indexfile="${state_dir}/workflow_index-$resource_name-$workflow_name.tmp" echo "$index" > "$indexfile"
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>uaca/deepy<gh_stars>100-1000 #!/usr/bin/env python
ise-uiuc/Magicoder-OSS-Instruct-75K
} /*####################################################################################################################################################### ######################################################################################################################################################### ##########################################################Inicio Controlador para administrador########################################################## #########################################################################################################################################################
ise-uiuc/Magicoder-OSS-Instruct-75K
from numpy import sin, linspace, pi from pylab import plot, show, title, xlabel, ylabel, subplot from scipy import fft, arange import time; def getFFT(y, Fs):
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.IO; namespace Analogy.LogViewer.Serilog { class AnalogySink : ILogEventSink
ise-uiuc/Magicoder-OSS-Instruct-75K
finally: try: # Kill it in any case process.terminate() except OSError: # Process was already stopped pass
ise-uiuc/Magicoder-OSS-Instruct-75K
tar -zxf *.tar.gz cd *-*/
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Kinetic_Saaand { interface IParticlePairsSelector { IEnumerable<Tuple<Particle, Particle>> selectPairs(IEnumerable<Particle> particles); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.xlabel("Epoch #") plt.ylabel("Loss/Accuracy") plt.legend() plt.savefig(output)
ise-uiuc/Magicoder-OSS-Instruct-75K
task: Box<dyn Task>, last_change: Mutex<Instant>, sc_condition: Notify, }
ise-uiuc/Magicoder-OSS-Instruct-75K
<select class="form-control" name="cetak-kelas"> <option selected disabled>Pilih Kelas...</option> <?php foreach($pilihkelas as $pk){ ?> <option value="<?= $pk->id_kelas;?>"><?= $pk->kode_kelas;?></option> <?php } ?> </select> </div> <div class="form-group"> <label for="cetak-mapel">Pilih Mata Pelajaran :</label> <select class="form-control" name="cetak-mapel"> <option selected disabled>Pilih Mata Pelajaran...</option> <?php foreach($pilihmapel as $pm){ ?> <option value="<?= $pm->id_mapel;?>" <?= $this->session->mapel == $pm->mapel ? 'selected' : ''?>><?= $pm->mapel;?></option> <?php } ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
# Disable authentication, if we enable it, we have to change the default neo4j user # password and then run all the tests with a different one sed -i "s/auth_enabled\=true/auth_enabled\=false/g" $DIR/conf/neo4j-server.properties $DIR/bin/neo4j start sleep 3
ise-uiuc/Magicoder-OSS-Instruct-75K
value_a = int(input("enter the first number")) value_b = int(input("enter the second number")) value_c = int(input("enter the third number")) print(value_b + value_a + value_c) list_of_numbers = [] for number in range(100): list_of_numbers.append(random.randint(1,100)) # inclusive of both values minimum_value = list_of_numbers[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
long_description = re.sub('\\(\\./', github_url_prefix, long_description) setuptools.setup( name='alpha-zero-general', version='1.0.1', license='MIT', packages=['alpha_zero_general'], install_requires=['cffi', 'coloredlogs',
ise-uiuc/Magicoder-OSS-Instruct-75K
print(24+24-m)
ise-uiuc/Magicoder-OSS-Instruct-75K
== validator_pb2._VALIDATORSTATUS.values_by_name["ACTIVE"].number ): av.append(validator_info.public_key) continue return av async def stream(self): async for activation_response in self.stub.WaitForActivation( self._generate_messages() ).__aiter__(): self.stream_responses(activation_response) activated_validators = list() for validator_info in activation_response.statuses: if (
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.db import migrations class Migration(migrations.Migration): dependencies = [
ise-uiuc/Magicoder-OSS-Instruct-75K
def parse_sf2(sf2file): samples = [] with open(sf2file, 'rb') as f: chfile = Chunk(f)
ise-uiuc/Magicoder-OSS-Instruct-75K
mm_esp_near = self.get_mm_esp_eed() if self.mm_atoms_near.charge_comp is None: return mm_esp_near else:
ise-uiuc/Magicoder-OSS-Instruct-75K
response = self._request_test_statistic_detail_view() self.assertEqual(response.status_code, 403) def test_statistic_detail_view_with_permissions(self): self.grant_permission(permission=permission_statistics_view) self.statistic = Statistic.get_all()[0] response = self._request_test_statistic_detail_view()
ise-uiuc/Magicoder-OSS-Instruct-75K
import androidx.lifecycle.AndroidViewModel;
ise-uiuc/Magicoder-OSS-Instruct-75K
else: raise TypeError('invalid parameter type')
ise-uiuc/Magicoder-OSS-Instruct-75K
renamed = {"from":"from_ids", "desc": "description", "icon": "icon_path"} def __init__(self, id: int = None, locale: str = None): self._lazy_set(locals()) @cache_indexes def _filter(self, indexer, data): return indexer.get(self.id, data["items"], "id") def _clean(self): if self.locale.lower() == "default":
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php $module_info = array( 'base' => 'amron', 'name' => 'amron', 'title' => 'Amron', 'version' => '4.5', 'author' => 'GalleryCreator', 'description' => 'Responsive AJAX Gallery with Masonry layout. The gallery is completely customisable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). Required Gmedia Gallery plugin v1.14+',
ise-uiuc/Magicoder-OSS-Instruct-75K
sleep 2 bsub -n 1 openmpi-mpirun dark_arts ../inputs/Marshak_Wave/P4_Lobatto/Refine_4_Cells_4_Time.xml sleep 2 bsub -n 1 openmpi-mpirun dark_arts ../inputs/Marshak_Wave/P4_Lobatto/Refine_4_Cells_16_Time.xml sleep 2
ise-uiuc/Magicoder-OSS-Instruct-75K
if(current >= termination):
ise-uiuc/Magicoder-OSS-Instruct-75K
var arg = args.Item("Two") as CodeAttributeArgument; Assert.AreEqual("false", arg.Value); } [Test] public void Name_AttributeIsNotLastPartOfName_ReturnsShortNameContainingAttributePart() { CreateAttribute( "public class TestAttributeColumn : Attribute {}\r\n" + "[TestAttributeColumn]"); string name = codeAttribute.Name;
ise-uiuc/Magicoder-OSS-Instruct-75K
class iOSTestProjectTests: XCTestCase { override func setUp() { super.setUp()
ise-uiuc/Magicoder-OSS-Instruct-75K
Section(header: Text("Player2 team")) { Picker("Select team1", selection: $pool.player2.team1Index) { ForEach(0..<teams.count) { Text(teams[$0].rawValue) } } Picker("Select team2", selection: $pool.player2.team2Index) { ForEach(0..<teams.count) { Text(teams[$0].rawValue) } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
fill="#908AE4" /> <path d="M24 8.95561L12 21.8063V3.0376H18.4766L24 8.95561Z" fill="#6A61E4" />
ise-uiuc/Magicoder-OSS-Instruct-75K
tutor = "codi" print(tutor)
ise-uiuc/Magicoder-OSS-Instruct-75K
ctx.require(source_balance.value() >= amount, "erc20.transfer.fail: not enough funds"); let target_addr = param_account.value(); let target_balance = balances.get_int64(&target_addr); let result = target_balance.value() + amount; ctx.require(result > 0, "erc20.transfer.fail: overflow"); source_balance.set_value(source_balance.value() - amount); target_balance.set_value(target_balance.value() + amount); ctx.log("erc20.transfer.success"); } // Moves the amount of tokens from sender to recipient using the allowance mechanism. // Amount is then deducted from the caller’s allowance. This function emits the Transfer event. // Input:
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace SoapySDR { /*! * Convert a error code to a string for printing purposes.
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>enlear/reactmaterial-bit<gh_stars>0
ise-uiuc/Magicoder-OSS-Instruct-75K
public string m_szIp; // ip地址 public int m_iPort; // 端口号 }; // 游戏服务器结构信息 public class GameServerInfo { public string m_szLoginServerName; // login server的名字 public string m_szIp; // ip地址 public int m_iPort; // 端口号 public uint m_AccountId; public string m_SessionId; public GameServerStatus m_Status; //当前游戏服务器状态 };
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Camunda.Api.Client.History { public class HistoricUserOperationLogAnnotation { public string Annotation { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
Called when all the children of a node have been queued. process_edge(source, target, edge_data): When a node is reached, process_edge is called on the edge that lead to the node. If this method is returned False, then the node is no longer traversed. select_children(node, reverse = False): Called to select the children of the node that are up for traversal from the given node along with the order the children are to be traversed. By default returns all the children in no particular order. Returns an iterator of tuples - (node, edge_data)
ise-uiuc/Magicoder-OSS-Instruct-75K
Args: job: The CodePipeline job ID message: A message to be logged relating to the job status Raises: Exception: Any exception thrown by .put_job_failure_result() """
ise-uiuc/Magicoder-OSS-Instruct-75K
'updated_at', ])->orderBy('view_count', 'desc')->get(); return view('sitemap.index', compact('posts'))->render(); }); return response($view)->header('Content-Type', 'text/xml'); } /** * @return string
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 '''Enable instrumentationon all supported modules.''' # pylint: disable=R0401 import logging from hypertrace.agent import Agent from hypertrace.env_var_settings import get_env_value
ise-uiuc/Magicoder-OSS-Instruct-75K
name = 'rcps'
ise-uiuc/Magicoder-OSS-Instruct-75K
[Serializable] public class ResponseJobReport { public DateTime TimeResponseSent { get; set; } public float TimeElapsed { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .detectors import * from .max_iou_assigner_v2 import MaxIoUAssignerV2
ise-uiuc/Magicoder-OSS-Instruct-75K
gpu_power = self._get_power_for_gpus(gpu_ids=gpu_ids) return gpu_power @classmethod def from_utils(cls, gpu_ids: Optional[List] = None) -> "GPU": return cls(num_gpus=len(get_gpu_details()), gpu_ids=gpu_ids) @dataclass class CPU(BaseHardware): def __init__( self, output_dir: str, mode: str, model: str, tdp: int, rapl_dir: str = None ): self._output_dir = output_dir
ise-uiuc/Magicoder-OSS-Instruct-75K
struct timed_waiter_on_ready : ::testing::Test { Future future = pc::make_ready_future(); pc::timed_waiter waiter; timed_waiter_on_ready() { waiter = pc::timed_waiter{future}; } }; TYPED_TEST_CASE(timed_waiter_on_ready, futures); TYPED_TEST(timed_waiter_on_ready, wait_until_returns_ready) { EXPECT_EQ(this->waiter.wait_until(std::chrono::steady_clock::now() + 30min), pc::future_status::ready); } TYPED_TEST(timed_waiter_on_ready, wait_for_returns_ready) { EXPECT_EQ(this->waiter.wait_for(2h), pc::future_status::ready); }
ise-uiuc/Magicoder-OSS-Instruct-75K
-> withArgs([ 'x-lk-sanmark-janus-app-secret-hash' , ]) -> andReturn('app-secret-hash-invalid'); $appsHandler -> shouldReceive('isValidByKeyAndSecretHash') -> withArgs([ 'app-key-invalid' , 'app-secret-hash-invalid' , ]) -> andReturn(false); $response = $appVerifyMiddleware -> handle($request, $next); $this -> assertInstanceOf(JsonResponse::class, $response);
ise-uiuc/Magicoder-OSS-Instruct-75K
} public void setIdade(int idade) { this.idade = idade;
ise-uiuc/Magicoder-OSS-Instruct-75K
for node in selroot.children: targetnode = self.treestore.root.getLocation(node.getValue().split('/')) if targetnode!=None: targetnode.setValue(True) self.model = commonqt.PropertyStoreModel(self.treestore,nohide=False,novalues=True,checkboxes=True) self.treeVariables = commonqt.ExtendedTreeView(self) self.treeVariables.header().hide()
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AlterField( model_name='project', name='settings', field=models.TextField(blank=True), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
} } /** * Parses and interprets the reader authentication data. It decodes the * SessionTranscript as well as the data requests and calls the corresponding * methods to interpret them. The reader authentication data is structured as: * ReaderAuthenticationData = { * "SessionTranscript" : SessionTranscript, * "Request" : [ + DataReq ] * } */
ise-uiuc/Magicoder-OSS-Instruct-75K
opt.finish() } pub fn write_filter(&mut self) -> Result<FilterOptionWriter<'_, 'a, F>, TransmitError> { Ok(FilterOptionWriter { opt: self.write_raw_option(IF_FILTER)?, }) } pub fn write_os(&mut self, os: &str) -> Result<(), TransmitError> {
ise-uiuc/Magicoder-OSS-Instruct-75K