seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
except Exception as e:
logger_object.log(file_object,'Exception occured in preprocessing . Exception message: '+str(e))
logger_object.log(file_object,'preprocessing Unsuccessful')
raise Exception()
if __name__=="__main__":
args = argparse.ArgumentParser()
args.add_argument("--config", default="params.yaml")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!moduleFolderName.empty() && !IsEquivalent(moduleFolderName, applicationFolderName))
{
LoadPluginsInFolderName(moduleFolderName, _filter);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print()
print()
print()
# Link the PRs and SHAs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def SetLogLevel(verbose_count, add_handler=True):
"""Sets log level as |verbose_count|.
Args:
verbose_count: Verbosity level.
add_handler: If true, adds a handler with |CustomFormatter|.
"""
logging_common.InitializeLogging(
_WrappedLoggingArgs(verbose_count, 0),
handler=None if add_handler else logging.NullHandler())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
typedef CBarcode1<CJSONArray> CBarcode1JS;
rho::String js_Barcode1_getDefaultID(CJSONArray& oParams, const rho::String& )
{
return rho::String();
}
rho::String js_Barcode1_setDefaultID(CJSONArray& oParams, const rho::String& )
{
return rho::String();
}
rho::String js_Barcode1_enumerate(const rho::String& strID, CJSONArray& oParams)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lookup[word] = get_word_value(word)
position = sorted((value, key) for (key, value) in lookup.items())
return [value for (_, value) in position]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Input: root = [10,5,-3,3,2,null,11,3,-2,null,1], targetSum = 8
# Output: 3
# Explanation: The paths that sum to 8 are shown.
#
# Example 2:
#
# Input: root = [5,4,8,11,null,13,4,7,2,null,null,5,1], targetSum = 22
# Output: 3
#
#
# Constraints:
#
# The number of nodes in the tree is in the range [0, 1000].
# -10^9 <= Node.val <= 10^9
# -1000 <= targetSum <= 1000
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from PIL import Image
class User(AbstractUser):
# First Name and Last Name do not cover name patterns
# around the globe.
name = CharField(_('Nome de usuário:'), blank=True, max_length=255)
# Profile Models
image = models.ImageField(verbose_name='Foto de Perfil:',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>xuzijian629/pace2020
#include "graph.cpp"
Graph reorder(const Graph& g, const vector<int>& to) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class EastLiteralWidthTestCase(unittest.TestCase):
def test_get_east_asian_width_count_1(self):
text = "你好,世界!"
expect = 11
result = text_lib.get_east_asian_width_count(text)
self.assertEqual(expect, result)
def test_get_east_asian_width_count_2(self):
text = "hello, world!"
expect = 13
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@JsonIdentityInfo(generator = ObjectIdGenerators.UUIDGenerator.class, scope = ServiceDTO.class)
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class ServiceRuleDTO {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return (Reflect[trapName] as TrapFunc<T, P>)(...a as TrapArgs<T, P>);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (Activator.CreateInstance(property.GetAttribute<CustomSerializeAttribute>().Serializer) is ISerializer serializer)
{
value = serializer.Parse(value);
}
else
{
JSONParser.Error("Custom Serializer Must Implement ISerializer");
}
}
var par = Expression.Parameter(_result.GetType());
var assign = Expression.Assign(Expression.Property(par, name), Expression.Constant(value));
var expression = Expression.Lambda(Expression.Block(assign, par), par);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}{} } }}
{ {
{{if//N
(
true ){ //VS
} else {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd -
cp ~/.gen_form_template/settings/settings.zip $1
echo Zip ok | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public function getIsProfit()
{
return $this->input("is_profit")=="true";
}
public function getIsSetChild()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.forms import ValidationError
import django.http as http
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Override point for customization after application launch.
return true
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
url: "some url"
),
Restaurant.Review(
rating: 4,
text: "ipsum lorem lorem ipsum, ipsum lorem lorem ipsum, ipsum lorem lorem ipsum, ipsum lorem lorem ipsum, ipsum lorem lorem ipsum, ipsum lorem lorem ipsum, ipsum lorem lorem ipsum,",
url: "some url"
),
Restaurant.Review(
rating: 4,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Copyright 2016, RadiantBlue Technologies, Inc.
*
* 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 |
respository_url=response.urljoin(respository.xpath('.//a/@href').extract_first())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NAME = 'Git'
@property
def installed(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public ShoppingBasket getShoppingBasket(){
ShoppingBasket result = this.shoppingBasket;
return result;
}
public void setLineItems(Set<LineItem> newLineItems){
Set<LineItem> oldValues = new HashSet<LineItem>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
////////////////////////////////////////////////////////////////////////////////////
typedef std::vector<unsigned int> vec_type;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
version="",
author="",
author_email="",
description="",
url="",
packages=setuptools.find_packages(),
install_requires=[],
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
def iterate(self, callback):
for page_num in range(1, self.num_pages + 1):
page = self.create_page(page_num)
i = 0
for coord in page:
callback(coord, page_num, i)
i += 1
def create_page(self, page_num):
if page_num == 1:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!empty($_SERVER['HTTP_FORWARDED'])) {
return $_SERVER['HTTP_FORWARDED'];
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
registerProblem(highlightElement, highlightType, message, fixesToIntentions(highlightElement, fixes));
}
default void registerProblem(@NotNull PsiElement highlightElement,
@NotNull ProblemHighlightType highlightType,
@NotNull String message,
@NotNull List<? extends IntentionAction> actions) {
registerProblem(highlightElement, highlightType, message, intentionsToFixes(highlightElement, actions));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.doc.splitlines()[0] if self.doc else ""
@property
def html_doc(self) -> str:
return DocToHtml("ROBOT")(self.doc) if self.doc else ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# multinomial is hard to use here
sample = probs > mx.random.uniform(0, 1, shape = probs.shape)
return probs, sample
class BinaryBinaryRBM(object):
def __init__(self, n_visible = 0, n_hidden = 0, ctx = mx.cpu()):
self.ctx = ctx
self.n_visible = n_visible
self.n_hidden = n_hidden
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.bucket_path_prefix = 'files-should/have-this-prefix'
self.bucket_path_param = 'gs://not-so-fancy-bucket/path/prefix-param'
self.bucket_name_param = 'not-so-fancy-bucket'
self.bucket_path_prefix_param = 'path/prefix-param'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd ..
# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
curl -OL https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz
tar -xvzf tmux-$TMUX_VER.tar.gz
cd tmux-$TMUX_VER
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
sudo make install
cd ..
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"-c",
"user.email='<EMAIL>'",
"commit",
"-am",
"test",
],
cwd=repo_dir,
)
| 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 the License.
class Instance:
def __init__(self, obj):
from eagle1 import date, time
self.obj = obj
self.timestamp = (date(), time())
self.type = type(obj)
if self.type == type("") or self.type == type({}):
self.items = self.obj.items()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}) => (
<CardWrapper {...props}>
<Wrapper overflow="hidden">
<StyledImage fluid={image} />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Change title to host name to demo NLB
if app.config['SHOWHOST'] == "true":
title = socket.gethostname()
# Init Redis
if not r.get(button1): r.set(button1,0)
if not r.get(button2): r.set(button2,0)
@app.route('/', methods=['GET', 'POST'])
def index():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param checkid: CheckID to update
:param checktype: The type of the check (PING, HTTP, DNS, etc.)
:type checktype: str
:type fields: dict
:param fields: Fields in check that will be updated
:type customerid: string
:param customerid: subaccount ID
:rtype: dict
:return: Return information from NodePing query
"""
url = "{0}/{1}".format(API_URL, checkid)
url = _utils.create_url(token, url, customerid)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const dispatch = useDispatch();
const {
user,
currencies: userTokens,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
@abc.abstractmethod
def output_dtype(self):
""":return: output data type for specific task."""
def list_available_tasks(base=BaseTask) -> typing.List[typing.Type[BaseTask]]:
""":return: a list of available task types."""
ret = [base]
for subclass in base.__subclasses__():
ret.extend(list_available_tasks(subclass))
return ret
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f"File {record} not found in {wav_folder}, skipping")
continue
relative_folders = record.split("/")
relative_path_without_file = "/".join(relative_folders[:-1])
new_file_name = f"{'.'.join(relative_folders[-1].split('.')[:-1])}.{extension}"
features_path = os.path.join(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def contact_form(request: HttpRequest, user_id: int):
try:
user = User.objects.get(id=user_id)
except User.DoesNotExist:
return db_error(_('Requested user does not exist.'))
assert isinstance(user, User)
if request.method == 'POST':
form = ContactForm(request.POST)
if form.is_valid():
content = form.content + CONTACT_FOOTER + request.user.email
user.email_user(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@default (new Date).getUTCFullYear()
*/
readonly year?: number;
}
/**
Get the number of days in a month.
@example
```
import monthDays from 'month-days';
monthDays({month: 1, year: 2016});
//=> 29
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.device.delete_file(on_device_tarball + ".gz")
os.remove(on_host_tarball)
for paths in self.device_and_host_paths:
after_dir = paths[self.AFTER_PATH]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bucket, _ = self._parse_uri(path)
self.conn.create_bucket(bucket)
print 'made bucket: [%s]' % bucket
def rb(self, path, *args):
if not self.conn:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import {Style} from './Style';
const pointStyles = new Style({
stroked: false,
filled: true,
getFillColor: [238, 77, 90],
getRadius: 3,
pointRadiusMinPixels: 2,
pointRadiusMaxPixels: 4
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The customer’s current subscriptions.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static ConnMap_t g_login_server_conn_map;
static serv_info_t* g_login_server_list;
static uint32_t g_login_server_count;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return roc_auc_score(y_true,y_pred) | ise-uiuc/Magicoder-OSS-Instruct-75K |
__author__ = 'jers'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
padding: 0 20px;
`;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-15 15:08
from __future__ import unicode_literals
| ise-uiuc/Magicoder-OSS-Instruct-75K |
goal_tolerance:
- {name: 'joint11', position: 0.1, velocity: 0.1, acceleration: 0.1}
- {name: 'joint12', position: 0.1, velocity: 0.1, acceleration: 0.1}
- {name: 'joint13', position: 0.1, velocity: 0.1, acceleration: 0.1}
- {name: 'joint14', position: 0.1, velocity: 0.1, acceleration: 0.1}
- {name: 'joint15', position: 0.1, velocity: 0.1, acceleration: 0.1}
goal_time_tolerance: {secs: 0, nsecs: 0}
"
echo "<<<" "$VARIABLE" "\n<<<"
echo ">>>"
rostopic pub /trajectory_editor/follow_joint_trajectory_goal control_msgs/FollowJointTrajectoryGoal --once "$VARIABLE"
echo ">>>"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_nonuniform_illumination_rgb(transform_test_data):
"""Test for PlantCV."""
# Load rgb image
rgb_img = cv2.imread(transform_test_data.small_rgb_img)
corrected = nonuniform_illumination(img=rgb_img, ksize=11)
assert np.mean(corrected) < np.mean(rgb_img)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let key = ws.current_manifest.parent().unwrap();
let id = package.package_id();
let package = MaybePackage::Package(package);
ws.packages.packages.insert(key.to_path_buf(), package);
ws.target_dir = if let Some(dir) = target_dir {
Some(dir)
} else {
ws.config.target_dir()?
};
ws.members.push(ws.current_manifest.clone());
ws.member_ids.insert(id);
ws.default_members.push(ws.current_manifest.clone());
Ok(ws)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('-'.join(num))
print(''.join(num)) | ise-uiuc/Magicoder-OSS-Instruct-75K |
unsetopt HIST_BEEP # no bell on error in history
unsetopt HUP # no hup signal at shell exit
unsetopt LIST_BEEP # no bell on ambiguous completion
setopt LOCAL_OPTIONS # allow functions to have local options
setopt LOCAL_TRAPS # allow functions to have local traps
unsetopt PRINT_EXIT_VALUE # do not print return value if non-zero
unsetopt RM_STAR_SILENT # ask for confirmation for `rm *' or `rm path/*'
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
})
}
#[test]
fn ordinary() {
test_literal!(1.0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## Minimal installs.
sudo apt-get update \
&& sudo apt-get install -y \
build-essential \
ca-certificates \
clang \
curl \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(geoJsonNew, 'w') as json_data:
json.dump(d, json_data)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The corner radius used when `shouldRoundTopCorners` is enabled.
Default Value is 8.0.
*/
var cornerRadius: CGFloat { get }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return fn(1, 2);
}
assert(testOmitted((a, b) => a + b) == 3);
assert(testOmitted(a => a) == 1);
assert(testOmitted(() => 42) == 42);
function testOmittedReturn1(): (a: i32, b: i32) => i32 {
return (a, b) => a + b;
}
function testOmittedReturn2(): (a: i32, b: i32) => i32 {
return a => a;
}
function testOmittedReturn3(): (a: i32, b: i32) => i32 {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import migrations, models
class Migration(migrations.Migration):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gerado. Quando isso ocorrer, informar:
a. A soma de todos os números gerados
b. A quantidade de números gerados que é impar
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Up,
Down,
Left,
Right,
Start,
StepOnce,
Escape,
Ctrl,
}
/// Combo keycode and mouse button code
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
def read_paragraph_element(element):
"""Returns text in given ParagraphElement
Args:
element: ParagraphElement from Google Doc
"""
text_run = element.get('textRun')
if not text_run:
return ''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default class DistrictRepository extends Repository<District> {
async getDistricts(getFiltersDistrictsDTO:GetFiltersDistrictsDTO){
let {page, limit, search} = getFiltersDistrictsDTO;
if(!page)page=1;if(!limit)limit=100;
const skip = (page-1)*limit;
const query = this.createQueryBuilder('district')
.orderBy('district','ASC')
.offset(skip)
.limit(limit);
if(search) query.andWhere('district like :search',{search:`%${search}%`});
const districts = await query.getManyAndCount();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
range: NSMakeRange(0, attributedString.length))
titleLabel.attributedText = attributedString
}
public func set(layout: CardView.Layout) {
self.layer.cornerRadius = layout.cornerRadius
self.layer.masksToBounds = true
iconTopLayoutConstraint.constant = layout.topOffset
closeButton.alpha = layout.closeButtonAlpha
}
@IBAction func closeTapped(_ sender: UIButton) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ON c.videoId = grouped_c.InnerVideoId
AND c.wordCount = grouped_c.MaxWordCount
AND c.id = grouped_c.MaxId) B
ON A.v = B.videoId;"""
cursor.execute(sql)
manyCaptions = cursor.fetchall()
videos_df = pd.read_sql(sql, connection)
connection.close()
# note that the other program which put the vectors there only did it on captions WHERE language like '%en%'
# for that reason this query does not contain language. It has instead WHERE tfidfVector IS NOT NULL
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static void main(String[] args) {
final String s = "110110000111011111100001001111110101000000";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res[j][i] = array[j][i]
if direction == 'r':
i += 1
if j == shape[0] - 1:
direction = 'ur'
else:
direction = 'dl'
elif direction == 'dl':
i -= 1
j += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"[***] Openning shell over USB to IOS device.\n")
try:
window['-OUTPUT-'].update(window['-OUTPUT-'].get() +
"[*] Sending Reverse SSH payload.....\n",)
if checkrain.reverse_ssh() != True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.urls import path, include
handler404 = 'database.views.page_not_found'
handler500 = 'database.views.server_error'
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('database.urls')),
path('', include('bestmatchfinder.urls')),
path('', include('namingalgorithm.urls')),
path('', include('clustalanalysis.urls')),
path('', include('extra.urls')),
path('', include('graphs.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XCTAssertTrue(sut.assets.count == 1, "Asset was not added")
XCTAssertEqual(sut.assets[0], cash, "Cash was not in asset list")
}
func testAddLiability() {
let creditCard = StatementItem(context: coreDataStack.container.viewContext)
creditCard.ammount = 2000.0
creditCard.name = "Visa"
creditCard.category = "Credit Card"
creditCard.type = .liability
sut.addLiability(liability: creditCard)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut pkt: sys::AVPacket = std::mem::zeroed();
// OPEN SOURCE
assert_eq!(
sys::avformat_open_input(
&mut ifmt_ctx,
input_path_cstr.as_ptr(),
std::ptr::null_mut(),
std::ptr::null_mut(),
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(arg) > self.length:
message = f"That argument must be no more than {plural(self.length):character} ({len(arg)}/{self.length})."
raise commands.BadArgument(message)\
return arg
| ise-uiuc/Magicoder-OSS-Instruct-75K |
html_list = glob.glob(os.path.join(self.html_dir, "candidates/*.html"))
election_list = []
candidate_list = []
for html_path in html_list:
with open(html_path, 'r') as f:
html = f.read()
soup = BeautifulSoup(html, 'html.parser')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
install_requires=['nose',
'requests'
],
zip_safe=False,
license='BSD 3-Clause License'
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
javac -cp "lib/*" -sourcepath src/main/java -d classes src/main/java/depsolver/Main.java
#javac -sourcepath src/main/java -d classes $JAVAS
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void LuaEntity::UpdateEntity() const
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright © 2018年 wzq. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
protected void onResume() {
super.onResume();
// Set the second argument by your choice.
// Usually, 0 for back-facing camera, 1 for front-facing camera.
// If the OS is pre-gingerbreak, this does not have any effect.
mPreview = new CameraPreview(this, 0, CameraPreview.LayoutMode.FitToParent);
LayoutParams previewLayoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
// Un-comment below lines to specify the size.
//previewLayoutParams.height = 500;
//previewLayoutParams.width = 500;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env bash
if [[ -f ./scripts/release-after-hook.sh ]]
then
./scripts/release-after-hook.sh
fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
from common import runtests
from .shared import while_loop_maker
from .shared import setGenerator, setKnownFailures, test_exceptions
setGenerator(while_loop_maker)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_content = remoteResource[AvROCProcessRes.TimeSeriesTag].ToObject<Dictionary<string, Dictionary<string, string>>>();
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Six leading zeroes with =", mine_adventcoins(part_two=True))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let rootKey: Key
let subviews: [Key: UIView]
var root: UIView { self.subviews[self.rootKey]! }
}
public typealias AnyIndexedSubviews = IndexedSubviews<AnyBindingKey>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Wrapper for UILabel, which allows easy instantiation with text, if you wish.
public class Label: View<UILabel> {
override public init() {
super.init()
self.view = UILabel()
}
public convenience init(_ text: String) {
self.init()
view.text = text
| ise-uiuc/Magicoder-OSS-Instruct-75K |
done
sleep $SLEEP
### Send spot_failure message to S3
if [ ! -f $JOBID.spot_failure ]; then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return np.array(output_audio, dtype = 'int16')
# Example
# applyDSP_worsenRand("1.wav", "out.wav")
def applyDSP_worsenRand(file_in, file_out):
sound1 = AudioProcessing(file_in)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
soma = 0
matriz = []
for i in range(0,12,+1):
linha = []
for j in range(0,12,+1):
numeros = float(input())
linha.append(numeros)
matriz.append(linha)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Attribute(NaturalNumber("Deaths_AIAN")),
Attribute(NaturalNumber("Deaths_NHPI")),
Attribute(NaturalNumber("Deaths_Multiracial")),
Attribute(NaturalNumber("Deaths_Other")),
Attribute(NaturalNumber("Deaths_Unknown")),
Attribute(NaturalNumber("Deaths_Ethnicity_Hispanic")),
Attribute(NaturalNumber("Deaths_Ethnicity_NonHispanic")),
Attribute(NaturalNumber("Deaths_Ethnicity_Unknown")),
Attribute(NaturalNumber("Hosp_Total")),
Attribute(NaturalNumber("Hosp_White")),
Attribute(NaturalNumber("Hosp_Black")),
Attribute(NaturalNumber("Hosp_Latinx")),
Attribute(NaturalNumber("Hosp_Asian")),
Attribute(NaturalNumber("Hosp_AIAN")),
Attribute(NaturalNumber("Hosp_NHPI")),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Label(
text=bind(format!("Count: {}", bind.count).into()),
wrap=false,
),
HStack(left_margin=5.0) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
}
gamma * epsilon
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public OrganizationEditViewModel Organization { get; set; }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while True:
if self.next is None:
self.next = self.q.get()
if self.next is not None and not self.ready:
self.ready = self.child_q.get()
if self.next is not None and self.ready:
tmp = self.next
self.next = None
self.ready = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from transducer.rnn import (
LayerNormGRU,
LayerNormGRUCell,
LayerNormGRULayer,
LayerNormLSTM,
LayerNormLSTMCell,
LayerNormLSTMLayer,
)
def get_devices():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
c = collect([1, 2, 3, 4, 5])
self.assertTrue(c.contains(1))
self.assertFalse(c.contains('a'))
def test_set(self):
c = collect({1, 2, 3, 4, 5})
self.assertTrue(c.contains(1))
self.assertFalse(c.contains('a'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Value this measurement represents.
*
* @return string
*/
public function getValue()
{
return $this->value;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.