seed
stringlengths
1
14k
source
stringclasses
2 values
self::assertSame('segment_a', $body['$_GET']['conditions']['survey'][0]['field']); self::assertSame('=', $body['$_GET']['conditions']['survey'][0]['operator']); self::assertSame('64', $body['$_GET']['conditions']['survey'][0]['values'][0]);
ise-uiuc/Magicoder-OSS-Instruct-75K
p.add_task('Plan opstellen','commentaar verwerken') p.add_task('Financiering regelen','Bedelen op straathoek') p.remove_task('Plan opstellen','eerste voorstel schrijven') p.remove_task('Plan opstellen','sedfsvs') p.add_task('team samenstellen', 'aertf')
ise-uiuc/Magicoder-OSS-Instruct-75K
up - create or start gargantua stop - stop gargantua destroy - destroy gargantua options: -h, --help - print this message EOF
ise-uiuc/Magicoder-OSS-Instruct-75K
class FollowSuit(Dataset): def __init__(self, csv_file): """ Args: csv_file (string): Path to the csv file with image indexes and class label annotations. """
ise-uiuc/Magicoder-OSS-Instruct-75K
...L..L......L..L.L.......LL...L.LL.L...LL...L..LL....L....L.L..L...L...L.L.....LL.....L..L LLLLL.LLLLLL.LLLLLLLL.LLLLLLLLL.LLLLLL.LLLLLLL.LLLLLLLLLLLL.LLLL.LLLLLLLL.LLLLLLLLLLLLLL.LL LLLLL.LLLLLLLL.LL.LLLLLLLL.LLLL.LLLLLL.LLLLLLLLLLL.L.LLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLL.LLLLL LLLLL.LLLLLL.LLLLLLLL.LLLL.LLLL.LLLLLL.LLL.L...
ise-uiuc/Magicoder-OSS-Instruct-75K
Parameters ---------- N : int The size of the DFT transform matrix to return. Returns ------- D : ndarray The DFT transform matrix. See Also -------- scipy.linalg.dft : The function used to generate the DFT transform matrix. Notes
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh JARDIR=../../lib ../../bin/webmod -C./control/webmod.control -print java -cp $JARDIR/oui4.jar oui.paramtool.ParamTool ./input/webmod.params
ise-uiuc/Magicoder-OSS-Instruct-75K
D = pairwise_distances(X, metric=self.metric) medoid_idxs = self._initialize_medoids( D, self.n_clusters, random_state_ ) labels = None # Continue the algorithm as long as # the medoids keep changing and the maximum number # of iterations is not excee...
ise-uiuc/Magicoder-OSS-Instruct-75K
user = payload.get("user_name") if not user: user = payload["user"]["name"]
ise-uiuc/Magicoder-OSS-Instruct-75K
name='FeatureMaps')) self.built = True def preprocess(self, resized_inputs): """SSD preprocessing. Maps pixel values to the range [-1, 1]. Args: resized_inputs: a [batch, height, width, channels] float tensor representing a batch of images.
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.x() * self.y() * self.z() # define a sphere, but keep the variable definition on the outside. For fun class Sphere: def __init__(self, radius): self.r = radius
ise-uiuc/Magicoder-OSS-Instruct-75K
gpu_id, prefix + 'rois_pred_y_logN__logy')) save_entropy(labels_oh, im_score, class_weight, roi_score, ims, rois, cfg.PIXEL_MEANS, preffix, '', sample_dir, rois_pred_hatE, rois_pred_E, y_logN__logy) def save_im(labels_oh, im_score, ims, pixel_means, prefix...
ise-uiuc/Magicoder-OSS-Instruct-75K
def set_txinwitness(self, txinwitness: List[str]) -> None: self._txinwitness = txinwitness def set_sequence(self, sequence: int) -> None: self._sequence = sequence def from_sql(self, vin): self._idx = vin[0] self.set_txid(vin[1]) self.set_vout(vin[2]) self.s...
ise-uiuc/Magicoder-OSS-Instruct-75K
public static function getEnv(): ImmutableMap { if (!isset(self::$theUnmodifiableEnvironment)) { self::$theUnmodifiableEnvironment = ImmutableMap::of($_ENV); } return self::$theUnmodifiableEnvironment; } public static function getEnvValue(string $name, ?string $defaultVa...
ise-uiuc/Magicoder-OSS-Instruct-75K
$tst=34; $ipos=_instr(0,$txt," ".$attribute."=".chr($tst),0); if ($ipos == 0) { $tst=39; $ipos=_instr(0,$txt," ".$attribute."=".chr($tst),0); } if ($ipos != 0) { $txt=substr($txt,$ipos + strlen($attribute) + 2); $ipos=_instr(0,$txt,chr($tst),0); if ($ipos > 1) { $res=substr($txt,0,$ipos-1); }...
ise-uiuc/Magicoder-OSS-Instruct-75K
} else if developers.imageD != nil{ Image(uiImage: UIImage(data: developers.imageD ?? self.image)!) .resizable()
ise-uiuc/Magicoder-OSS-Instruct-75K
""" BAD_EXPRESSIONS = r""" "' 1.B *24 "\" (1, 2] [1, 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
} while (!isPortAvailable(port)); this.port.set(port); return port; } @Override protected void after() { super.after(); Spark.stop(); await().atMost(1, TimeUnit.SECONDS).pollDelay(100, TimeUnit.MILLISECONDS).until(() -> isPortAvailable(port.get()));
ise-uiuc/Magicoder-OSS-Instruct-75K
nodes = [n for n in nodes if n in nbunch] # iterate over edges using temporal order return self.edges_iter(nbunch=nodes, data=data, keys=keys) # ========================================================================= def timerange(self, t1, t2, inside=True, sort=None): "...
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self) -> None: super().__init__(message='Cannot connect to voice channel to play the clip: too many members connected')
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, training: LabelledCollection, test: LabelledCollection, vocabulary: dict = None, name=''): assert set(training.classes_) == set(test.classes_), 'incompatible labels in training and test collections' self.training = training self.test = test self.vocabulary = vocabu...
ise-uiuc/Magicoder-OSS-Instruct-75K
with np.load(os.path.join("models", 'scaler.npz')) as data: scaler.mean_ = data['arr_0'] scaler.scale_ = data['arr_1'] # compute audio audio, rate = sf.read(args.audio, always_2d=True) # downmix to mono audio = np.mean(audio, axis=1)
ise-uiuc/Magicoder-OSS-Instruct-75K
Deck.Add(cardTwo); Assert.Equal(Diamonds, cardTwo.suit); } [Fact] public void RemoveCardTest() { Card cardThree = new Card(); cardThree.Value = Card.CardValue.Three; cardThree.suit = Card.Suit.Hearts; Card cardFou...
ise-uiuc/Magicoder-OSS-Instruct-75K
######################### { n**2 for n in range(12) } # Set comprehension { n:n**2 for n in range(12) } # Dict comprehension { a % 3 for a in range(1000) } # a = {0, 1, 2} # GENERATOR EXPRESSION ---- see next chapter for deets ( n**2 for n in range(12) )
ise-uiuc/Magicoder-OSS-Instruct-75K
msg = "Constructing the set of reads to output" logging.info(msg) alignment_raw_data = {qname: raw_data[qname] for qname in itertools.islice(alignment_qnames, args.max_reads)} rrna_raw_data = {qname: raw_data[qname] for qname in itertools.islice(rrna_qnames, args.max_reads)} ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def _on_close(self, ws): self.onClose() def _on_open(self, ws): # Grab the websocket so we can use it to send later self.ws = ws self.onOpen() def onMessage(self, message): # over-ride this method in child class # to alter message handling behaviour ...
ise-uiuc/Magicoder-OSS-Instruct-75K
private int FindNextVisibleCharIndex (int startVisibleCharIndex = 0) { var generator = cachedTextGenerator; var curVisibleIndex = -1; for (int i = 0; i < generator.characterCount; i++) { if (generator.characters[i].charWidth == 0f) continue...
ise-uiuc/Magicoder-OSS-Instruct-75K
from ._compat import FileNotFoundError class TimezoneNotFound(FileNotFoundError):
ise-uiuc/Magicoder-OSS-Instruct-75K
for (Feature feature : sums.getFeatures()) { Double value = sums.getValue(feature);
ise-uiuc/Magicoder-OSS-Instruct-75K
Obtain the subquery that has the alias "a" .. code-block:: python subquery = pgmock.sql(sql_string, pgmock.subquery('a')) Todo: - Support for subqueries without an alias (e.g. after an "in" keyword) """ return Selector().subquery(alias)
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class studentdetail extends Model { use HasFactory; protected $fillable = [ 'std_name', 'std_email', 'std_city',
ise-uiuc/Magicoder-OSS-Instruct-75K
Graph networkx.Graph if radius is set
ise-uiuc/Magicoder-OSS-Instruct-75K
class Gallery(models.Model): id = models.AutoField(primary_key=True) image = models.FileField(null=True,blank=True,upload_to='') class Video(models.Model): id = models.AutoField(primary_key=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
else: with open(directory + "/" +filename, "rb") as input: input.seek(size * int(msg["part"])) data = input.read(size) s.send(data) else: s.send_string("Song does not exits! Marranito") ...
ise-uiuc/Magicoder-OSS-Instruct-75K
blobs[1].data[:] = np.arange(blobs[1].data.size).reshape(blobs[1].data.shape) blobs[4].data[:] = np.arange(blobs[4].data.size).reshape(blobs[4].data.shape) net.layers[0].set_params(blobs) net.write('test/test_nnet', 0) pointer, read_only_flag = blobs[1].data.__array_interface__['data'] # Test 2 data_copy = blobs[1]....
ise-uiuc/Magicoder-OSS-Instruct-75K
cont=cont + 1
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <boost/smart_ptr.hpp> // Threading primitives wrapper for SDL_Thread. // // This module defines primitives for wrapping C++ around SDL's threading // interface namespace threading { struct manager {
ise-uiuc/Magicoder-OSS-Instruct-75K
beta = alpha if alpha != None: alpha = alpha.next self.head = gamma return
ise-uiuc/Magicoder-OSS-Instruct-75K
ndim = p.shape[0] p0 = []; fail=0 while len(p0) < nwalkers and fail < 1000: pp = p + ep*np.random.randn(ndim) if not np.isinf(lnprior(pp, vinfo, snobj)): p0.append(pp) else: fail += 1 if len(p0) < nwalkers: raise RuntimeError("Could not establish an initial set of ...
ise-uiuc/Magicoder-OSS-Instruct-75K
pk3.transform_all(max_generations=2) assert len(pk3.compounds) == 31
ise-uiuc/Magicoder-OSS-Instruct-75K
t_wallet = TradeWalletAccount.objects.create( money=1456.23, trade=self.trade ) self.assertTrue(t_wallet.token) def test_one_client_can_have_several_wallet_accounts(self): ClientWalletAccount.objects.create( money=1456.23, client=self....
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_annotation_class(self): return SequenceAnnotation def get_storage(self, data): from .utils import SequenceLabelingStorage
ise-uiuc/Magicoder-OSS-Instruct-75K
let parameters = ConfigurationParameters(startDate: startDate, endDate: endDate, numberOfRows: numberOfRows, calendar: testCalendar, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="badge badge-danger">{{ __('Unsubscribed') }}</div> @elseif ($message->clicked_at) <div class="badge badge-success">{{ __('Clicked') }}</div> @elseif ($message->opened_at) <div class="badge badge-success">{{ __('Opened') }}</div> @elseif ($message->delivered_at) <div class="badge badge-info">...
ise-uiuc/Magicoder-OSS-Instruct-75K
this->setDisplayStartLine(0); this->setAddressingMode(Page); this->setContrast(210); this->setSegmentRemap(false); this->setComScanDirection(false); this->setMuxRatio(63);
ise-uiuc/Magicoder-OSS-Instruct-75K
if state == 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
if tweet["retweeted"] == False: created_at = repr(tweet["created_at"]) tweet_id_str = repr(tweet["id_str"]) text = repr(clean_tweet(tweet["text"]).replace("'",''))
ise-uiuc/Magicoder-OSS-Instruct-75K
user['_id'] except KeyError: user['_id'] = self._max_id user_exists = self.db.find_one({'username': user['username']})
ise-uiuc/Magicoder-OSS-Instruct-75K
shutil.copy2(file, destpath) else: playlistloc = PurePath(get_folder(playlistfile)) loc = get_folder(file).relative_to(playlistloc) shutil.copy2(file, destpath / loc)
ise-uiuc/Magicoder-OSS-Instruct-75K
filepath: (conf: any) => string | null } declare var conf: Conf; declare module "pkg-conf" { export = conf }
ise-uiuc/Magicoder-OSS-Instruct-75K
it("should merge actions based on merge rules", () => { let merge = true; const redoReducer = createReducer({ mergeRules: { [incrementMood.type]: () => merge, }, });
ise-uiuc/Magicoder-OSS-Instruct-75K
declarations: [ AppComponent, ], imports: [
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns: y_predicted: The forecasted values of discharge capacity. """ # The function 'series_to_supervised' is used to frame the time series training # data as supervised learning dataset. learning_df = series_to_supervised( input_data, n_in=1, n_out=1, dropnan=True) learning_df =...
ise-uiuc/Magicoder-OSS-Instruct-75K
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The software MAY ONLY be used with the Kite Tech Ltd platform and MAY NOT be modified // to be used...
ise-uiuc/Magicoder-OSS-Instruct-75K
break; } } if (assembly == null) { assembly = Assembly.Load(name); } Program.ForceLoadAssembly(assembly, initializeStaticMembers);
ise-uiuc/Magicoder-OSS-Instruct-75K
https://medium.com/atoti/topic-modeling-on-twitter-using-sentence-bert-8acdad958eb1 https://medium.com/analytics-vidhya/bert-for-topic-modeling-bert-vs-lda-8076e72c602b https://github.com/MilaNLProc/contextualized-topic-models
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const DEFAULT_ROUND_SIZE_START: usize = 1_000; /// Default increase in round size between rounds. pub const DEFAULT_ROUND_SIZE_STEP: usize = 100; /// Defualt total number of rounds to record. pub const DEFAULT_SAMPLE_SIZE: usize = 100; /// Run a target in linearly-increasing round sizes. These can then be analyz...
ise-uiuc/Magicoder-OSS-Instruct-75K
# ------------------------------------------------------------------------------------------------------------------ @staticmethod def __convert_dt_from_str(s): if s.find(r'.') >= 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
ln -s "$(pwd)/git/.gitconfig" "$HOME/.gitconfig"
ise-uiuc/Magicoder-OSS-Instruct-75K
// Inlines inline CBaseTexture::CBaseTexture( CBaseDevice *pDevice, DWORD cLevels, D3DPOOL UserPool, D3DFORMAT UserFormat, REF_TYPE refType) :
ise-uiuc/Magicoder-OSS-Instruct-75K
import { Profissional } from './profissional'; import { Base } from './base'; import { Cliente } from './cliente';
ise-uiuc/Magicoder-OSS-Instruct-75K
} bool UKGWeaponStateActive::BeginFiringSequence(uint8 FireModeNum, bool bClientFired) { // TDOO return false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def policy_id(self): """ Gets the policy_id of this Image. 12 character hexadecimal internal identifier for security policy for this Container :return: The policy_id of this Image. :rtype: str """ return self._policy_id
ise-uiuc/Magicoder-OSS-Instruct-75K
if not args.nosave:
ise-uiuc/Magicoder-OSS-Instruct-75K
def _variables(self): return [] def _action(self, time_step, policy_state, seed): observation_and_action_constraint_splitter = ( self.observation_and_action_constraint_splitter)
ise-uiuc/Magicoder-OSS-Instruct-75K
def add(self, word): '''Add a word to the Trie.''' self.words.append(word) node = self.root for i in xrange(0, len(word)): if word[i] not in node.successors: node.add(word[i]) node = node.next(word[i]) node.word = self.words[-1]
ise-uiuc/Magicoder-OSS-Instruct-75K
All tests have completed.
ise-uiuc/Magicoder-OSS-Instruct-75K
m_scale_key_frames = 0; m_volume_boxes = 0; try { _read(); } catch (...) { _clean_up(); throw; } } void rsm_t::_read() { m_magic = m__io->read_bytes(4); if (!(magic() == std::string("\x47\x52\x53\x4D", 4))) { throw kaitai::validation_not_equal_error<std::string>(
ise-uiuc/Magicoder-OSS-Instruct-75K
* @var string */ protected $signature = 'import:dev'; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
:param camera_position: The position of the camera in km with respect to the solar system barycenter in the inertial frame at the time the image was taken :param unique_check: A flag specifying whether to allow a single catalogue star to be potentially paired with
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 from .starts import prepare_seed, prepare_logger, get_machine_info, save_checkpoint, copy_checkpoint from .optimizers import get_optim_scheduler
ise-uiuc/Magicoder-OSS-Instruct-75K
snap_name = sys.argv[5] server = VIServer() server.connect(serverName, login, passwd) myVm = server.get_vm_by_name(vm_name) try: revertTask = myVm.revert_to_named_snapshot(snap_name) server.disconnect() except (VIException), err: print "RevertResult = " + err.message sys.exit(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
isVisible && messageCoords && setMessageCoords(messageCoords); }, [isVisible]); const { top: childrenTopPosition = 0, left: childrenLeftPosition = 0, width: childrenWidth = 0, height: childrenHeight = 0, } = childrenRef?.current?.getBoundingClientRect() || {};
ise-uiuc/Magicoder-OSS-Instruct-75K
mod ball;
ise-uiuc/Magicoder-OSS-Instruct-75K
@commands.Cog.listener()
ise-uiuc/Magicoder-OSS-Instruct-75K
void create(); int get(int, int); void set(int, int, int);
ise-uiuc/Magicoder-OSS-Instruct-75K
temp = df['Label'].unique() u_tumor = {} #k=tumor, v=1 for t in temp: t= t.split(":")[0] if t not in u_tumor:
ise-uiuc/Magicoder-OSS-Instruct-75K
}else if newCenter.y > visibleRect.maxY-2{ newCenter.y = visibleRect.maxY-2 }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert ScalarDateTime().coerce_input(val) == expected
ise-uiuc/Magicoder-OSS-Instruct-75K
# parameter self._vocab_size = vocab_size = len(dataset.in_idx2word)
ise-uiuc/Magicoder-OSS-Instruct-75K
fn jetstream_flow_control() { let s = util::run_server("tests/configs/jetstream.conf");
ise-uiuc/Magicoder-OSS-Instruct-75K
self.set_session('journal_entry_id', '') self.set_session('account_title_id', '')
ise-uiuc/Magicoder-OSS-Instruct-75K
# https://www.acmicpc.net/problem/2742
ise-uiuc/Magicoder-OSS-Instruct-75K
## iii,18 ## jjj,18 ##
ise-uiuc/Magicoder-OSS-Instruct-75K
use App\Http\Requests\UpdateUserRequest; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { use RegistersUsers; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <reference path="CDP/Plugin/Include.ts" /> module.exports = CDP.Plugin.NativeBridge;
ise-uiuc/Magicoder-OSS-Instruct-75K
this.expressRouter.get('/:id', HousesRouter.hController.getHouse); this.expressRouter.get('/', HousesRouter.hController.getHouses); this.expressRouter.post('/', HousesRouter.hController.postHouse); this.expressRouter.post('/photo', HousesRouter.hController.postPhoto); //cannot post vi...
ise-uiuc/Magicoder-OSS-Instruct-75K
let phraseStr = mnemonicString.cString(using: .utf8) if mnemonic_check(phraseStr) == 0 { throw NSError(domain: "com.swiftyeos.error", code: 1, userInfo: [NSLocalizedDescriptionKey: "Invalid Mnemonic"]) }
ise-uiuc/Magicoder-OSS-Instruct-75K
spectrum = dict() for layer in layers: measure = self.__create_and_measure_layer(layer) spectrum[current_layer_singularity] = measure current_layer_singularity += singularity_step return spectrum # /// <summary> # /// Создание изображения, соответств...
ise-uiuc/Magicoder-OSS-Instruct-75K
# O(n) time. O(1) space. Greedy. class Solution: def maxProfit(self, prices: List[int], fee: int) -> int: result = 0 lo = 0x7FFFFFFF for price in prices: if price < lo: lo = price else: profit = price - lo - fee if pro...
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(Entry)
ise-uiuc/Magicoder-OSS-Instruct-75K
name = 'chi_ssa_21' agency_name = 'Chicago Special Service Area #21 Lincoln Square Ravenswood' timezone = 'America/Chicago' allowed_domains = ['www.lincolnsquare.org']
ise-uiuc/Magicoder-OSS-Instruct-75K
# You could also use a comment to "disable" or comment out a piece of code: # print "This won't run." print "This will run."
ise-uiuc/Magicoder-OSS-Instruct-75K
"" }
ise-uiuc/Magicoder-OSS-Instruct-75K
func applicationDidFinishLaunching(_ aNotification: Notification) { // Insert code here to initialize your application } func applicationWillTerminate(_ aNotification: Notification) { // Insert code here to tear down your application } }
ise-uiuc/Magicoder-OSS-Instruct-75K
result = fake_path_class(path) result.glob_results = {} for pattern, paths in glob_results.iteritems(): result.glob_results[pattern] = [result / fake_path_class(p) for p in paths] return result class TestBuckPlatformBase(object): def test_glob_includes_simple(self): search_base = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
["q2-quality-filter=q2_quality_filter.plugin_setup:plugin"] }, package_data={ "q2_quality_filter": ["citations.bib"], "q2_quality_filter.test": ["data/*"], }, zip_safe=False, )
ise-uiuc/Magicoder-OSS-Instruct-75K
int_max = 2147483647 limit = int_max/10
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="col-sm-6"> <div class="form-group"> <label class="control-label">No Telp</label> <input type="text" name="no_telp" class="form-control">
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @return self */ public static function fromUninit(): self { return new self(self::TYPE_UNINIT); } /** * Account state to run message *
ise-uiuc/Magicoder-OSS-Instruct-75K