seed
stringlengths
1
14k
source
stringclasses
2 values
with open("README.md", "r") as fh: long_description = fh.read() setup(name="geots2img", version="0.1.3", description="Geo Time Series to Image", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/juliandehoog/geo-timeseries-to-ima...
ise-uiuc/Magicoder-OSS-Instruct-75K
model_name='gamer', name='API_KEY', ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
# Positional arguments to this script are the invocation for `nbconvert`. # For example: # # Invoke from the the root IHaskell directory: # # test/acceptance.nbconvert.sh jupyter nbconvert # # Invoke with `stack` from the the root IHaskell directory: # # test/acceptance.nbconvert.sh stack exec -- jupyter nbconver...
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
ise-uiuc/Magicoder-OSS-Instruct-75K
logging.debug('Dicebot modified results: {}'.format(modified_results)) else: modified_results = raw_results logging.debug('No modifier applied.') return modified_results @staticmethod def _calc_modifier(value, modifier, roll_operation): logging.debug(...
ise-uiuc/Magicoder-OSS-Instruct-75K
---------- y : array-like or None, shape=(n_samples,) The endogenous (time-series) array. X : array-like or None, shape=(n_samples, n_features), optional
ise-uiuc/Magicoder-OSS-Instruct-75K
}; // Wire up events widget.connect_update_on_resize();
ise-uiuc/Magicoder-OSS-Instruct-75K
)) sys.exit(1) family.print()
ise-uiuc/Magicoder-OSS-Instruct-75K
using namespace std; int main(int argc, char const *argv[]) { int n, data; int buff[35]; cin >> n; for (size_t i = 0; i < n; i++) cin >> buff[i];
ise-uiuc/Magicoder-OSS-Instruct-75K
) rit = RitCache() commit = create_commit(rit, time.time(), msg) logger.info("Created commit %s: %s", commit.commit_id[:short_hash_index], commit.msg) def checkout(*, ref: str, force: bool): logger.debug('checkout')
ise-uiuc/Magicoder-OSS-Instruct-75K
ProfileKey* profile_key; if (profile) profile_key = profile->GetProfileKey(); else profile_key = ProfileKeyStartupAccessor::GetInstance()->profile_key(); return profile_key; }
ise-uiuc/Magicoder-OSS-Instruct-75K
cRP = ChromiumReadPair.fromReadPair(rP)
ise-uiuc/Magicoder-OSS-Instruct-75K
usleep(1000000); this->jeu = new Jeu(j1, j2); this->ob = new FinDeJeu(this->jeu); jeu->jouer(); delete(j1); delete(j2); delete(ob);
ise-uiuc/Magicoder-OSS-Instruct-75K
</section> @yield('script') </body>
ise-uiuc/Magicoder-OSS-Instruct-75K
misfire_grace_time=None, jobstore=store) raise Exception(f'Failed execution in function: {func.__name__!r}') func_wrapper.reschedule_count = reschedule_count return func_wrapper
ise-uiuc/Magicoder-OSS-Instruct-75K
let presenter = router.root as? PasswordlessPresenter expect(presenter).to(beNil()) } } } describe("events") { describe("back") { beforeEach {
ise-uiuc/Magicoder-OSS-Instruct-75K
import javax.persistence.Entity;
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_lidar(ptc, name='LiDAR', size=0.8): return [go.Scatter3d( x=ptc[:,0], y=ptc[:,1], z=ptc[:,2], mode='markers', marker_size=size, name=name)] def showvelo(lidar, calib, labels=None, predictions=None, classes=['Car', 'Truck', 'Van'], size=0.8): gt_bboxes = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
}; AutoCollecPreAggregatedMetrics.countRequest(requestData.duration, requestDimensions); break; case TelemetryType.TelemetryTypeString.Dependency: const remoteDependencyData: Contracts.RemoteDependencyData = (envelope.data as any).baseData; ...
ise-uiuc/Magicoder-OSS-Instruct-75K
''' all_audit_log = ''' query { audits { id tableName tableFields timestamp action
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "${CMD}" eval $CMD || FAILURES="${FAILURES} ${PLATFORM}" done # eval errors if [[ "${FAILURES}" != "" ]]; then echo "" echo "${BINARY} build failed on: ${FAILURES}" exit 1 fi
ise-uiuc/Magicoder-OSS-Instruct-75K
</table> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
station_name: str user_vs30: float, optional A user specified vs30, which potentially differs from the one used
ise-uiuc/Magicoder-OSS-Instruct-75K
# Prob: https://www.hackerrank.com/challenges/most-commons/problem # ref: https://www.hackerrank.com/challenges/most-commons/forum/comments/220882 # ref2: https://codefisher.org/catch/blog/2015/06/16/how-create-ordered-counter-class-python/ def dequeue(self): # Double sided queue. ...
ise-uiuc/Magicoder-OSS-Instruct-75K
username = self.site.user() try: templates = self.templatesWithParams() except (pywikibot.NoPage, pywikibot.IsRedirectPage,
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh pkill "/app/catalogue"
ise-uiuc/Magicoder-OSS-Instruct-75K
end_time_str = msg.get("end_time") start_time = dt_util.parse_datetime(start_time_str) if start_time:
ise-uiuc/Magicoder-OSS-Instruct-75K
sleep 60 done else exit 1 fi
ise-uiuc/Magicoder-OSS-Instruct-75K
ln -sf "$SCRIPT_DIR/festivalrc" ~/.festivalrc
ise-uiuc/Magicoder-OSS-Instruct-75K
print('{:=^40}'.format(' LOJAO DO PYTHON '))
ise-uiuc/Magicoder-OSS-Instruct-75K
lines.append("'vendor/assets/javascripts/" + f + ".js',") else: if file_type == 'scss': lines.append("'%s'," % (normalize(f) + ".scss")) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # # This file is part of the Pumbaa project. # import board from drivers import Ws2812 import time PIXEL_MAX = 81 RED = PIXEL_MAX * b'\x00\xff\x00' GREEN = PIXEL_MAX * b'\xff\x00\x00'
ise-uiuc/Magicoder-OSS-Instruct-75K
from torchvision import transforms STRIDE = 1 EXTRACTION_FPS = 25 NUM_FRAMES = 4 def _sample_video_idx(vlen): frame_stride = STRIDE * EXTRACTION_FPS target_frames = min((vlen // frame_stride) + 1, NUM_FRAMES) sample_range = (target_frames - 1) * frame_stride possible_start_idx = range(0, vlen - sample_...
ise-uiuc/Magicoder-OSS-Instruct-75K
this.Method = HttpMethods.GET; return this.SendAsyncWithGraphResponse<Onenote>(null, cancellationToken); } /// <summary> /// Updates the specified Onenote using PATCH. /// </summary> /// <param name="onenoteToUpdate">The Onenote to update.</param> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from os import path from snakemake.shell import shell # Extract arguments. extra = snakemake.params.get("extra", "") sort_extra = snakemake.params.get("sort_extra", "") samblaster_extra = snakemake.params.get("samblaster_extra", "") log = snakemake.log_fmt_shell(stdout=False, stderr=True) # Check inputs/arguments....
ise-uiuc/Magicoder-OSS-Instruct-75K
name = name + "_target", outs = [name], output_to_bindir = 1,
ise-uiuc/Magicoder-OSS-Instruct-75K
# pixel_length = self.agent.front_depth_camera.image_size_x * self.agent.front_depth_camera.image_size_y # u_coord = repmat(np.r_[self.agent.front_depth_camera.image_size_x - 1:-1:-1], # self.agent.front_depth_camera.image_size_y, 1).reshape(pixel_length)
ise-uiuc/Magicoder-OSS-Instruct-75K
..Default::default() }) .insert_resource(ClearColor(Color::rgb_u8(177, 214, 222))) .insert_resource(LogSettings { level: Level::INFO, ..Default::default() }) .add_plugins(DefaultPlugins);
ise-uiuc/Magicoder-OSS-Instruct-75K
matches.value_of("hostname"), matches.is_present("disable_ssl_verify"), ); // Channel used to communicate from ui to chat let (tx_chat, rx_chat) = unbounded(); // Channel used to communicate from chat to ui
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_argument('-input', dest="input", required=True, help='''Path to a single video or a folder. If path to folder the algorithm will extract frames from all files with extension defined in --extension and save them under separate folders under dest_folder. The frames from each vide...
ise-uiuc/Magicoder-OSS-Instruct-75K
ratings = await tracing_client.ratings.list(request) assert len(ratings) == 0
ise-uiuc/Magicoder-OSS-Instruct-75K
echo Setting up ${APP} for ${DEV_PROJECT} oc new-build --binary=true --strategy=source --labels=app=${APP} --name=${APP} --image-stream=${S2I_IMAGE} -n ${DEV_PROJECT} oc new-app -f ${APP}-dev-template.yaml -n ${DEV_PROJECT}
ise-uiuc/Magicoder-OSS-Instruct-75K
content: String::from("I love cheese and pickles!"), reply: false, retweet: false, }; println!("1 new tweet: {}", tweet.summarize()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
DescribeNsm, }
ise-uiuc/Magicoder-OSS-Instruct-75K
public int compareTo(OrderBean o) { int result; // 按订单升序 if (orderId > o.getOrderId()) { result = 1; } else if (orderId < o.getOrderId()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.utils.translation import gettext_lazy as _ class PropertiesConfig(AppConfig):
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash rm types/typescript/* set -e shopt -s extglob pushd schemas for f in !(Mobile*).json; do ts_path=../types/typescript/${f%.*}.d.ts
ise-uiuc/Magicoder-OSS-Instruct-75K
1 if dim in squeeze_dims else np.random.randint(1, 5) for dim in range(4)
ise-uiuc/Magicoder-OSS-Instruct-75K
batch_size = 32 feed_dict = {x: np.random.rand(batch_size, dim), mu: np.random.rand(batch_size, dim), log_std: np.random.rand(dim)} your_result, true_result = sess.run([your_gaussian_likelihood, true_gaussian_likelihood], feed_dict...
ise-uiuc/Magicoder-OSS-Instruct-75K
return x * 2 sequence = [1, 3, 5, 9] doubled = [ double(x) for x in sequence ] # Put the result of double(x) in a new list, for each of the values in `sequence` doubled = map(double, sequence) print(list(doubled)) # -- Written as a lambda -- sequence = [1, 3, 5, 9]
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, name: str, target_type: Type, value: Any): self.name = name self.target_type = target_type self.value = value super().__init__( f"The {repr(target_type)} expected type for {repr(name)} does not match with " f"the given data type: {type(value...
ise-uiuc/Magicoder-OSS-Instruct-75K
fn label() -> &'static str; /// Constructor. fn new(app: &Application, logger: &Logger) -> Self; } // =========== // === FRP === // =========== /// Frp that can be used in a Component. The FRP requires an initializer that will be called during /// the construction of the component. `Default` + `Command...
ise-uiuc/Magicoder-OSS-Instruct-75K
var d0 = p0 d0.removeAll() XCTAssert(d0.isEmpty) XCTAssertEqual(d0.capacity, freshEmpty.capacity) d0 = p0 d0.removeAll(keepingCapacity: false)
ise-uiuc/Magicoder-OSS-Instruct-75K
The objective is to simulate payloads for input, REST and other requests against one or more FogLAMP instances. This version of fogbench is meant to test the CoAP and HTTP plugins interface of FogLAMP southbound services. fogbench
ise-uiuc/Magicoder-OSS-Instruct-75K
return $this->belongsTo('App\Http\Model\Bank','bank_id','id')->withDefault(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Signature verificationEngine) throws InvalidKeyException, SignatureException { verificationEngine.initVerify(verificationKey); verificationEngine.update(content); return verificationEngine.verify(signature); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
PROFILE_FILE=$HOME/.profile
ise-uiuc/Magicoder-OSS-Instruct-75K
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # All Rights Reserved.
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_from_stream(self): data = b'\x80\x0e\x00\x0a\x00\x03a/b\x01\x00\x03c/d\x02' stream = BufferAdapter(data) message = anyio.run(SubscribePacket.from_stream, stream) (topic, qos) = message.payload.topics[0] self.assertEqual(topic, 'a/b') self.assertEqual(qos, QOS...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// ## A selector between the inclusive or exclusive way to express upper numeric bound #[derive(Debug, PartialEq, Serialize, Deserialize, Clone, Sparsable, OApiCheck)] pub enum OApiNumericMaximum { #[serde(rename = "maximum")] Inclusive(u64), #[serde(rename = "exclusiveMaximum")] Exclusive(u64), }
ise-uiuc/Magicoder-OSS-Instruct-75K
}, 'replaceText': { 'Elenchos': '反诘', 'Fatalism': '宿命', 'Telomania': '终末狂热', 'Ultimate Fate': '终极命运', },
ise-uiuc/Magicoder-OSS-Instruct-75K
} #endregion #region Properties private int Seed { set; get; } public int Number { set; get; } public int Count { set; get; } public int Adjust { set; get; } #endregion #region Function public virtual int[] Run() { int[]...
ise-uiuc/Magicoder-OSS-Instruct-75K
public Movie getMovie () { return movie; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import { EnvBoolean } from './env-type/env-boolean'; import { EnvJSON } from './env-type/env-json'; import { EnvNumber } from './env-type/env-number';
ise-uiuc/Magicoder-OSS-Instruct-75K
CppAD::Independent(a1x); // start a2 level recording CPPAD_TESTVECTOR(a2double) a2x(n), a2y(m); for(size_t j = 0; j < n; j++) a2x[j] = a1x[j]; CppAD::Independent(a2x);
ise-uiuc/Magicoder-OSS-Instruct-75K
version="0.2.0", packages=["mpl_colors"], url="https://github.com/clbarnes/mpl_colors", license="MIT", author="<NAME>", install_requires=["colour", "numpy", "matplotlib"], classifiers=[ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: MIT License", "...
ise-uiuc/Magicoder-OSS-Instruct-75K
logoRenditions?.length > 0 ? logoRenditions[0]?.attributes : logo ? logo.attributes : undefined, [logoRenditions, logo] ); return ( <div ref={selfRef}> <StyledOrganizerBandItem active={active} ref={ref} href={href}
ise-uiuc/Magicoder-OSS-Instruct-75K
} private void FrmDoktorPaneli_Load(object sender, EventArgs e) { DoktorAktarma(); // Branşı comboboxa aktarma SqlCommand komut2 = new SqlCommand("Select BransAd From Tbl_Branslar", bgl.baglanti()); SqlDataReader dr2 = komut2.ExecuteReader(); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
path, subtasks, items_per_subtask ) return corpora def _create_corpora( self, corpus_path: str, subtasks: List[str], items_per_subtask: Optional[int] ) -> SyntaxEvalCorpora: raw_corpora: Dict[str, List[RawItem]] = self._create_raw_corpora( corpus_path, s...
ise-uiuc/Magicoder-OSS-Instruct-75K
NC='\033[0m' # No Color if [ ! -f ./compose.rb ];
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { uint64_t data = 0; std::reverse(std::begin(msg.buf), std::end(msg.buf)); std::memcpy(&data, msg.buf, sizeof(data)); data &= ~(mask << (64 - startBit - length)); data |= valAsBits << (64 - startBit - length); std::memcpy(msg.buf, &data, sizeof(data)); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} //this function if session member is not set then it will be redirected to index.php function confirm_logged_in() { if (!logged_in()) { ?> <script type="text/javascript"> window.location = "login.php"; </script>
ise-uiuc/Magicoder-OSS-Instruct-75K
use Application\Repository\UserRepository; use ApplicationTest\Traits\LimitedAccessSubQuery; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh
ise-uiuc/Magicoder-OSS-Instruct-75K
int *f2() { int i=10; return &i; } int main() { int i = 10;
ise-uiuc/Magicoder-OSS-Instruct-75K
declare const AnimationCssModule: AnimationCssNamespace.IAnimationCss & { /** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */ locals: AnimationCssNamespace.IAnimationCss; }; export = AnimationCssModule;
ise-uiuc/Magicoder-OSS-Instruct-75K
@ApiProperty({ required: false, }) username: string; @ApiProperty({
ise-uiuc/Magicoder-OSS-Instruct-75K
for snapshot in snapshots where snapshot.data() != nil {
ise-uiuc/Magicoder-OSS-Instruct-75K
import Foundation extension String { func charAt(i: Int) -> String { if i < 0 { return "" } if i >= self.characters.count { return "" } let index = self.index(self.startIndex, offsetBy: i) return String(self.characters[index])
ise-uiuc/Magicoder-OSS-Instruct-75K
vec = (1,(x-self.center[0])/self.inter_dist,(y-self.center[1])/self.inter_dist) else: vec = (0,0,0) return vec def __getitem__(self, index): patch = self.transform(image=self._cache_patch[index], keypoints=self._cache_points[index]) vec = self._create_vec(pa...
ise-uiuc/Magicoder-OSS-Instruct-75K
for n in p: if n < 3330 and (n + 3330) in p: nums.append(n) elif (n - 3330) in p: nums.append(n) for n in nums: if len(str(n)) < 4: continue chars = [x for x in str(n)] if all((c in chars) for c in str(n)): if all((c in chars) for c in str(n + 3330)): if ...
ise-uiuc/Magicoder-OSS-Instruct-75K
recursive algorithm :param preorder: a list of integers :param inorder: a list of integers :return: TreeNode, root """ if not preorder: return None
ise-uiuc/Magicoder-OSS-Instruct-75K
public static final short RES_OWNINFOSET = 10; public static final short RES_BUDDYADDED = 11; public static final short RES_BUDDYDELETED = 12; public static final short RES_CLUPDATED = 13; public static final short RES_BUDDYSTATECHANGED = 14;
ise-uiuc/Magicoder-OSS-Instruct-75K
H E A D E R I N F O R M A T I O N * * ***************************************************************************** Project Name: SysPy (System Python) http://cgi.di.uoa.gr/~evlog/syspy.ht...
ise-uiuc/Magicoder-OSS-Instruct-75K
#mpifrtpx src/prg_ensemble_mean_MPI.f90 -o bin/ensemble_mean_MPI.exe -Kfast,parallel,noeval,ocl -V -Qa,d,i,p,t,x -Koptmsg=2 ### gues
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_idx(self, name, idx, unity_client): return unity_client.get_disks()
ise-uiuc/Magicoder-OSS-Instruct-75K
// m_bPauseOutput // The derived class can ask us to stop sending out msgs from the output // queue. For instance, in the RIVA handler it has to get an ack from the // client at least every so many msgs sent. Once it hits that point it will // ask us to stop ...
ise-uiuc/Magicoder-OSS-Instruct-75K
[0, 1, 1, 1, 0, 0, 0], [1, 0, 1, 1, 1, 0, 0], [1, 1, 0, 1, 0, 0, 0], [1, 1, 1, 0, 0, 0, 0], [0, 1, 0, 0, 0, 1, 1], [0, 0, 0, 0, 1, 0, 1], [0, 0, 0, 0, 1, 1, 0]]) return data
ise-uiuc/Magicoder-OSS-Instruct-75K
;; *) SCRIPT_DIR=$(pwd)/$(dirname "$0") ;; esac "$SCRIPT_DIR"/../common_install.sh ccache -M 2G ccache -s tar xzf mongo-c-driver-1.13.0.tar.gz && (cd mongo-c-driver-1.13.0 && mkdir build_cmake && cd build_cmake && CC='ccache gcc' CXX='ccache g++' cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENAB...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.feature_list = sorted(os.listdir(self.dir)) self.trim_seconds = trim_seconds self.indexing = indexing
ise-uiuc/Magicoder-OSS-Instruct-75K
func tabBarController( _ tabBarController: UITabBarController, didSelect viewController: UIViewController ) {} }
ise-uiuc/Magicoder-OSS-Instruct-75K
bcmd.append("-M") bcmd.append("%d" % m) bcmd.append("-R") bcmd.append("rusage[mem=1]") def _parse_nprocs(self, bcmd): bcmd.append('-n') bcmd.append('%d' % self.nprocs) def __str__(self): njobs = len(self.jobs) if njobs == 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
} @Test public void test_handler_taskDisable() throws Exception { when(taskService.findTrigger(TRIGGER_SUBJECT)).thenReturn(triggerEvent); when(taskService.findTasksForTrigger(triggerEvent)).thenReturn(tasks); when(taskService.getActionEventFor(task)).thenReturn(actionEvent); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
private void writeManyEventsUntilAtomixLogIsCompactable() { final int requiredInstances = (int) Math.floorDiv(ATOMIX_SEGMENT_SIZE.toBytes(), LARGE_PAYLOAD_BYTESIZE.toBytes()) + 1; IntStream.range(0, requiredInstances) .forEach( i -> clientRule .g...
ise-uiuc/Magicoder-OSS-Instruct-75K
if not digits_match(die1, die2, 3, 6) and not digits_match(die1, die2, 3, 9): return False if not digits_match(die1, die2, 4, 9) and not digits_match(die1, die2, 4, 6): return False if not digits_match(die1, die2, 6, 4) and not digits_match(die1, die2, 9, 4): return False if not ...
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections; using System.Collections.Generic; using UnityEngine; public class OneShotInteraction : MonoBehaviour {
ise-uiuc/Magicoder-OSS-Instruct-75K
* :::::::.. '..:::: :. :::: :
ise-uiuc/Magicoder-OSS-Instruct-75K
'his own explosive while trying to steal from a condom dispenser.', 'a coconut falling off a tree and smashing there skull in.', 'taking a selfie with a loaded handgun shot himself in the throat.', 'shooting himself to death with gun carried in his breast pocket.', ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for delay in delays: delay_gaussian(delay, ntaps) plt.legend(delays) plt.axis([270, 340, -0.01, 0.26])
ise-uiuc/Magicoder-OSS-Instruct-75K
.filter(|(_, indices)| indices.len() > 1) .fold(BTreeSet::new(), |mut acc, (_, indices)| { acc.extend(indices.iter().skip(1)); // skip(1) to retain one copy acc }) }
ise-uiuc/Magicoder-OSS-Instruct-75K