seed
stringlengths
1
14k
source
stringclasses
2 values
_objFilename = 'data/{}_obj.json'
ise-uiuc/Magicoder-OSS-Instruct-75K
LMin = getattr(metadata, "RADIANCE_MINIMUM_BAND_{0}".format(band_num)) QCalMax = getattr(metadata, "QUANTIZE_CAL_MAX_BAND_{0}".format(band_num)) QCalMin = getattr(metadata, "QUANTIZE_CAL_MIN_BAND_{0}".format(band_num)) elif Meta == "oldMeta": LMax = getattr...
ise-uiuc/Magicoder-OSS-Instruct-75K
___assertIs(isinstance(True, int), True) ___assertIs(isinstance(False, int), True) ___assertIs(isinstance(1, bool), False) ___assertIs(isinstance(0, bool), False)
ise-uiuc/Magicoder-OSS-Instruct-75K
public: /** * @brief Construct a new MessageHandler object * * @param a_setPose_name - The node u would like the MessageHandler set pose to subscribe to * @param a_setCostumPose_name - The node u would like the MessageHandler set costum pose to subscribe to * @param ranges - The physica...
ise-uiuc/Magicoder-OSS-Instruct-75K
# In Tutorial [9]: """ Now, we collect the previous steps together in a function to make it easily repeatable. """ # Adapted from Tutorial [9]: def getMinorMajorRatio(image):
ise-uiuc/Magicoder-OSS-Instruct-75K
fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.TextField(unique=True)), ], ), migrations.AddField( model_name='team', name='department',
ise-uiuc/Magicoder-OSS-Instruct-75K
while True: try:
ise-uiuc/Magicoder-OSS-Instruct-75K
else: print("That word must not exist. This dictionary is very comprehensive.")
ise-uiuc/Magicoder-OSS-Instruct-75K
from .get_live_output import * from .get_media_service import * from .get_private_endpoint_connection import * from .get_streaming_endpoint import * from .get_streaming_locator import * from .get_streaming_policy import * from .get_transform import * from .job import * from .list_asset_container_sas import * from .list...
ise-uiuc/Magicoder-OSS-Instruct-75K
mod state; mod tag; pub use self::mlvalues::Value; pub use self::tag::Tag; pub use alloc::*; pub use callback::*; pub use custom::*;
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>rusel/base/dir_forms.py from django import forms class UploadForm(forms.Form): upload = forms.FileField()
ise-uiuc/Magicoder-OSS-Instruct-75K
cout << (magic ? "" : "not ") << "magic" << endl; return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public interface OauthClientDetailsService extends BaseService<OauthClientDetails, OauthClientDetailsExample> { }
ise-uiuc/Magicoder-OSS-Instruct-75K
super.init(coder: aDecoder) } ///设置高度(set height) override func prepare() { super.prepare() var rect = frame rect.size = CGSize(width: frame.width, height: DCRefresherHeaderHeight) self.frame = rect } ///设置位置(set postion)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.name = name self.summaries_names = None self.mean_trajectories = mean_trajectories self.use_logger = use_logger def compute(self, data): """ Calculate the summary statistic value for given 'data' :param data: a fixed data set or simulation result ...
ise-uiuc/Magicoder-OSS-Instruct-75K
tags = UnicodeSetAttribute() last_post_datetime = UTCDateTimeAttribute(null=True) notes = ListAttribute(default=list) # Delete the table # print(Thread.delete_table()) # Create the table if not Thread.exists(): Thread.create_table(wait=True) # Create a thread
ise-uiuc/Magicoder-OSS-Instruct-75K
</span> @endif </div> <div class="form-group @if ($errors->has('status')) has-error @endif"> {!! Form::label('status', 'Estado da conta:') !!}</br> {!! Form::select('status', array('default' => 'Seleccione uma opção') + $status, 'default', array('class' => 'form-control')) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import net.fabricmc.api.ModInitializer; public class ActuallyUnbreaking implements ModInitializer { @Override public void onInitialize() { // registering config
ise-uiuc/Magicoder-OSS-Instruct-75K
let _ = buffer.by_ref().lines().next().unwrap().unwrap(); // Separator let mut source = Vec::new(); for line in buffer .by_ref() .lines() .take(height.parse::<usize>().unwrap()) { source.push(line); } let _ = buffer.by_ref().lines().next().unwrap().unwrap(); // ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# # 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 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.consider_DObs = True
ise-uiuc/Magicoder-OSS-Instruct-75K
BIT_RATE=128000 echo MUSIC_HOME = $MUSIC_HOME echo TMP_MUSIC_DIR = $TMP_MUSIC_DIR usage(){ echo echo "Usage: $(basename $0) (dir|list) path" exit 1 }
ise-uiuc/Magicoder-OSS-Instruct-75K
import time from dct.util.model import Model
ise-uiuc/Magicoder-OSS-Instruct-75K
# # 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...
ise-uiuc/Magicoder-OSS-Instruct-75K
def fit(self, x, y, val_x, val_y): eval_set = [(val_x,val_y)]
ise-uiuc/Magicoder-OSS-Instruct-75K
var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
ise-uiuc/Magicoder-OSS-Instruct-75K
def name(self): """Return name prediction column.""" return self._name @property def is_trained(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
) done )
ise-uiuc/Magicoder-OSS-Instruct-75K
// swap, since mu_i should decrease, but mu_j should increase. swap(new_para.mu_i_new, new_para.mu_j_new); swap(new_para.var_i_new, new_para.var_j_new); // KL_oj_ji: means KL divergence between the posterior // and prior for object j, given the observation o_j > o_i,
ise-uiuc/Magicoder-OSS-Instruct-75K
if not limit: has_next = False paginated_list = list_to_paginate[offset:] elif offset + limit < len(list_to_paginate): has_next = True paginated_list = list_to_paginate[offset : offset + limit] else: has_next = False paginated_list = list_to_paginate[offset:] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# Print everything out for varname, varval in ( ('FC', self.f77), ('CC', self.cc), ('PPLIST', self.pplist), ('USR_LFLAGS', self.usr_lflags), ('IFMPI', self.ifmpi), ('SOURCE_ROOT', self.source_root), ...
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ std::vector<CassConsistency> consistencies_; /** * Query */ std::string query_; When(){}; /** * Build the when section for the priming request
ise-uiuc/Magicoder-OSS-Instruct-75K
mapper.put("\ue0ad", "\u183a\u1822"); mapper.put("\ue0ae", "\u183a\u1823"); mapper.put("\ue0af", "\u183a\u1825\u180b"); mapper.put("\ue0b0", "\u183a\u1820"); mapper.put("\ue0b1", "\u183a\u1820"); mapper.put("\ue0b1\ue00d", "\u183a\u1820"); mapper.put("\ue05c\ue057...
ise-uiuc/Magicoder-OSS-Instruct-75K
../misen.swift -path Sample/Images.xcassets -exportPath Sample/ImageAsset.swift -enumName ImageAsset
ise-uiuc/Magicoder-OSS-Instruct-75K
# load config from .env file if there is one load_dotenv() WRITE_TO_GIT_REPO = os.getenv('WRITE_TO_GIT_REPO', 'false').lower() == 'true' WRITE_DIR = "./data" CALENDAR_ROOT_URL = os.getenv("CALENDAR_ROOT_URL", "https://www.vermontjudiciary.org/court-calendars")
ise-uiuc/Magicoder-OSS-Instruct-75K
else: print('Could not find ' + id) return emp ids_list=open('list_of_ids.txt','r') idx = 0; with open('output.csv','w', newline='',encoding='utf-8') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>aflaxman/performance_of_insilicova_replication_archive<gh_stars>0 #!/bin/sh # $CONDA_PREFIX/etc/conda/deactivate.d/env_vars.sh export LD_LIBRARY_PATH="$LD_LIBRARY_SAVE" unset LD_LIBRARY_SAVE
ise-uiuc/Magicoder-OSS-Instruct-75K
export {NoticeView} from './notice'
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "mergeIntervals.h" int mergeIntervals::naive(int n){
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Qsi.Athena.Tree; public sealed class AthenaGroupingExpressionNode : QsiGroupingExpressionNode { public AthenaSetQuantifier? SetQuantifier { get; set; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
throw new ArgumentOutOfRangeException(nameof(hours), $"{nameof(hours)} must be between 0 and 23 inclusive"); } if (minutes > 59) { throw new ArgumentOutOfRangeException(nameof(minutes), $"{nameof(minutes)} must be between 0 and 59 inclusive"); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
try { final DataForm.Field mam = room.getConfigurationForm().get().findField("mam"); if (mam != null) { return Result.PASSED;
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>syberflea/materials """ Clustering example using an SMS spam dataset with SciPy. Associated with the Real Python article Scientific Python: Using SciPy for Optimization
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public LilyOfTheValley() : base("Lily Of The Valley") { AddVersion("lily_of_the_valley", "1.0.0") .WithPath("models/block") .WithParent("block/cross") .AddTexture("cross", "block/lily_of_the_valley"); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name='wxAnimation', version='0.0.1a', url='https://github.com/kdschlosser/wxAnimation', packages=find_packages(include=['webp', 'webp.*', 'webp_build']), package_data={'webp_build': ['*.h', '*.c']}, author='<NAME>', description='wxPython animation decoders', license='MIT', s...
ise-uiuc/Magicoder-OSS-Instruct-75K
ax.set_xticks(np.arange(extent[0], extent[1]), minor=True) ax.set_yticks(np.arange(extent[2], extent[3]), minor=True) ax.grid(which='minor', color='w', linestyle='-', linewidth=2) ax.set_xlabel(f'Observability in {day_time_start.year}-{day_time_start.month}-{...
ise-uiuc/Magicoder-OSS-Instruct-75K
create_stats_ordered_dict( "Success Num", np.sum(acc_sum), stat_prefix=stat_prefix, always_show_all_stats=True ) ) statistics.update( create_stats_ordered_dict( "Traj Num", len(paths), stat_prefix=stat_prefix, always_show_all_stats=True...
ise-uiuc/Magicoder-OSS-Instruct-75K
LoadFile /usr/lib/x86_64-linux-gnu/libstdc++.so.6 LoadModule otel_module $SCRIPT_DIR/bazel-out/k8-opt/bin/otel.so EOF
ise-uiuc/Magicoder-OSS-Instruct-75K
constructor() { } ngOnInit() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
class ServiceCatalogClientCompositeOperations(object): """ This class provides a wrapper around :py:class:`~oci.service_catalog.ServiceCatalogClient` and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource...
ise-uiuc/Magicoder-OSS-Instruct-75K
return not self.__ge__(other) def __le__(self, other): """Test for smaller or equal antenna number.""" return not self.__gt__(other)
ise-uiuc/Magicoder-OSS-Instruct-75K
def DirType(string: str) -> str: if os.path.isdir(string): return string raise ArgumentTypeError( 'Directory does not exist: "{}"'.format(os.path.abspath(string))) class Cli(ArgumentParser): def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
public bool CanSave => Period != null && Liability.StartDate != default(DateTime); protected string Controller => LiabilityResources.GetLiabilityController(Liability.LiabilityType); protected Func<Task> OnSave => onSave; public IMvxCommand CancelCommand { get; set; } public I...
ise-uiuc/Magicoder-OSS-Instruct-75K
var date: Date?; var isEnabled: Bool = false; var isHoliday: Bool = false; enum CodingKeys: String, CodingKey{ case id = "dplId"
ise-uiuc/Magicoder-OSS-Instruct-75K
return "index"; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
FMCrop.ratio16x9, FMCrop.ratio9x16, FMCrop.ratioOrigin, ] // all available filters will be used config.availableFilters = []
ise-uiuc/Magicoder-OSS-Instruct-75K
:param child_work_item_ids: :type child_work_item_ids: list of int :param id: :type id: int :param title: :type title: str """
ise-uiuc/Magicoder-OSS-Instruct-75K
// Return positive launch return true } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(): a, b = map(int, input().split()) pins = ['x' for _ in range(10)]
ise-uiuc/Magicoder-OSS-Instruct-75K
return s[:-2]
ise-uiuc/Magicoder-OSS-Instruct-75K
this.getGetDomesticScheduledPaymentConsentsConsentId405 = getGetDomesticScheduledPaymentConsentsConsentId405; } public java.lang.Object getFaultInfo() { return this.getGetDomesticScheduledPaymentConsentsConsentId405; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import data_generation.diffusion as diffusion
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_datasets_names() -> List[str]: return list(default_datasets)
ise-uiuc/Magicoder-OSS-Instruct-75K
def serialize(self, form): return dict()
ise-uiuc/Magicoder-OSS-Instruct-75K
from ...models import SeatMap class SeatMapClient(HttpClient): """Client to interact with Seat Maps""" def __init__(self, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
# generate autogen_str = ''' class {classname}: def __init__(self, *args, **kargs): self.org = triton.{classname}(*args, **kargs) {functions} '''.format(classname=classname, functions='\n'.join([str(f) for f in funcs])) return autogen_str def gen_module_for_namespace(classname, input_st...
ise-uiuc/Magicoder-OSS-Instruct-75K
hash_table[nums[i]]=i for i in range(len(nums)): if target-nums[i] in hash_table: if hash_table[target-nums[i]] != i: return [i, hash_table[target-nums[i]] ] return []
ise-uiuc/Magicoder-OSS-Instruct-75K
white = u"\u001b[37m" #ANSI Background colors blackB = u"\u001b[40m" redB = u"\u001b[41m" greenB = u"\u001b[42m" yellowB = u"\u001b[43m" blueB = u"\u001b[44m" magnetaB = u"\u001b[45m" magentaB = magnetaB cyanB = u"\u001b[46m" whiteB = u"\u001b[47m" #ANSI reset "color" reset = u"\u001b[0m" #Unused utility function def p...
ise-uiuc/Magicoder-OSS-Instruct-75K
from sqlalchemy.orm import Session, relationship, sessionmaker from sqlalchemy.orm.attributes import InstrumentedAttribute from sqlalchemy.sql.type_api import TypeEngine from pandemic import SignatureBuilder, field from pandemic.normalizers import ModelFieldEx, Normalizers Base = declarative_base()
ise-uiuc/Magicoder-OSS-Instruct-75K
from app.common.service import get_one, delete_one from app.models import TodoList, TodoItem from app.todo_list.forms import TodoForm from app import db todoList = Blueprint('todoList', __name__, template_folder='templates') @todoList.route('/', methods=['GET']) def get_todos(): return redirect(url_for('main.ind...
ise-uiuc/Magicoder-OSS-Instruct-75K
let metadata = tokio::fs::metadata(entry.path()).await.unwrap(); size += metadata.len() as usize;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.compare_json_lists(name_file, response.data['networks']) def test_try_update_active_netipv6(self): """Test of success to update active Network IPv6 changing cluster unit, network type and environment vip.""" name_file = self.json_path % 'put/net_active.json'
ise-uiuc/Magicoder-OSS-Instruct-75K
import json import pandas as pd from nltk.translate.bleu_score import sentence_bleu INFILE = "path/to/input/file" class BleuScore: def __init__(self, infile): self._infile = infile def get_df(self): i = 0 df = {} with open(self._infile, 'r') as fp: for line in fp:
ise-uiuc/Magicoder-OSS-Instruct-75K
Vue.use(VueI18n) function loadLocaleMessages () { const locales = require.context('./lang', true, /[A-Za-z0-9-_,\s]+\.json$/i) const messages: any = {} for (const key of locales.keys()) { const matched = key.match(/([A-Za-z0-9-_]+)\./i)
ise-uiuc/Magicoder-OSS-Instruct-75K
Handler handler; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); handler= new Handler(this.getMainLooper()){
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name="algorithms", version="0.1", description="Implements a few optimisation algorithms", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/chichilele/algorithms", packages=find_packages(), entry_points={"console_scripts": ["...
ise-uiuc/Magicoder-OSS-Instruct-75K
feat = ogr.Feature(lyr.GetLayerDefn()) feat.SetGeometry(ogr.CreateGeometryFromWkt('POINT(1000 30000000)')) lyr.CreateFeature(feat) feat = ogr.Feature(lyr.GetLayerDefn()) feat.SetGeometry(ogr.CreateGeometryFromWkt('POINT(-1000 30000000)')) lyr.CreateFeature(feat) feat = ogr.Feature(lyr.GetLay...
ise-uiuc/Magicoder-OSS-Instruct-75K
assert step_result.was_successful() is True source_items = step_result.get_result() assert 2 == len(source_items.get_new_items()) assert 2 == len(source_items.get_updated_items())
ise-uiuc/Magicoder-OSS-Instruct-75K
fields =['name','email', 'message' ] widgets = { 'message': Textarea(attrs={'cols' : 20, 'rows' : 3}), }
ise-uiuc/Magicoder-OSS-Instruct-75K
fn visit_negation(&mut self, _expression: &SubExpression) { } fn visit_not_equal(&mut self, _left: &SubExpression, _right: &SubExpression) { } fn visit_or(&mut self, _left: &SubExpression, _right: &SubExpression) { } fn visit_path(&mut self, start_point: &SubExpression, steps: &[Step]) {
ise-uiuc/Magicoder-OSS-Instruct-75K
''' This code is used to extract tokenized sentences from an input pdf. As a first step, API call is made to get all the paragraphs from the pdf. Second step is to tokenize the sentences from each of the paragraph. Sample run : python pdf_to_para_wfm.py -i /tmp/ma_hc_2017_WA1248_alt_ta.pdf -o /tmp/out.txt -l ta '''...
ise-uiuc/Magicoder-OSS-Instruct-75K
public enum ChargeType { FIXED
ise-uiuc/Magicoder-OSS-Instruct-75K
print('O preço total do pedido é: R$ %.2f' % (total))
ise-uiuc/Magicoder-OSS-Instruct-75K
{this.renderMenuToggle()} {this.renderNavigation()} </ion-toolbar>
ise-uiuc/Magicoder-OSS-Instruct-75K
$stat = new SearchStat(); $stat->setLanguage(getLanguage()); $stat->setCreationDate(getCurrentDate()); $stat->setUserId(getUserId()); $stat->setIp($_SERVER["REMOTE_ADDR"]); $stat->setQuery($search); if (getArrayElement($_GET, "tag")) {
ise-uiuc/Magicoder-OSS-Instruct-75K
f"python{self.pip.python_version.major}.{self.pip.python_version.minor}" ) @cached_property def pip(self) -> Pip: """Pip dependency manager.""" return Pip(self.ctx, self.project_root) @cached_property
ise-uiuc/Magicoder-OSS-Instruct-75K
if (user.password !== '') { throw returnError(400, 'User already created'); } await models.User.updateOne(
ise-uiuc/Magicoder-OSS-Instruct-75K
class ExecuteSQL: """执行SQL语句 """
ise-uiuc/Magicoder-OSS-Instruct-75K
coalesce(am.new_date,'') as 'appear_date', coalesce((select group_concat(er.pmid separator ', ') from hgmd_pro.extrarefs as er where am.acc_num = er.acc_num),'') as 'secondary_pmid', coalesce(fsite.name,'') as 'func_site_name', coalesce(fsite.type,'') as 'func_site_type', coalesce(sp.location,'') as 'splice_lo...
ise-uiuc/Magicoder-OSS-Instruct-75K
# parse include m = re.match(vl_include_re, line) if m: include = m.group(1) include = resolve_include_path(include, os.path.dirname(filename)) if include:
ise-uiuc/Magicoder-OSS-Instruct-75K
} return Set(list).map{ $0 } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_model_path(): ws = get_workspace() model_path = Model.get_model_path('worst-model', _workspace=ws) return model_path if __name__ == '__main__': model_path = get_model_path() print(model_path) print("ok")
ise-uiuc/Magicoder-OSS-Instruct-75K
name="anotherexamplemodel_delete", ), path(
ise-uiuc/Magicoder-OSS-Instruct-75K
farClippingPlane = json["farClippingPlane"]; const std::string skyVal = json["skybox"]; if (skyVal != skyboxPath) skybox = Rendering::RenderManager::getSkybox(skyVal); skyboxPath = skyVal; }
ise-uiuc/Magicoder-OSS-Instruct-75K
python3 \ make_diff_stats.py \ -d \ prog0:p0:../deps/dfxml/samples/difference_test_0.xml \ prog1:p1:../deps/dfxml/samples/difference_test_1.xml
ise-uiuc/Magicoder-OSS-Instruct-75K
} } catch (AccessControlException ace) { //println(" Yikes! " + ace.getMessage()); if (isGrantExpected) { //fail("caught AccessControlException"); throw ace; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
try: print( f"Ship: {ship} - leave_date: {leave_date} - arrive_date: {arrive_date} - province: {province} - destination: {destination} - surname: {surname} - name: {name}") # print(f"link_family: {link_family} - idRegistro: {id_register}") ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def obtenir_bet_rate(self,trios_quatre_cinq): if trios_quatre_cinq == 3: return self.obj_3lines_bet_rate if trios_quatre_cinq == 4: return self.obj_4lines_bet_rate if trios_quatre_cinq == 5: return self.obj_5lines_bet_rate
ise-uiuc/Magicoder-OSS-Instruct-75K
driver : WebDriver Object. 사용법 : driver.<Appium WebDriver Methods> driver.contexts
ise-uiuc/Magicoder-OSS-Instruct-75K
drop_rate, attn_drop_rate, dpr[i]) for i in range(depth) ])
ise-uiuc/Magicoder-OSS-Instruct-75K