seed
stringlengths
1
14k
source
stringclasses
2 values
@pytest.mark.skipif("'GOOGLE_APPLICATION_CREDENTIALS' not in os.environ") def test_google_vision_api_label_extractor(): ext = GoogleVisionAPILabelExtractor(num_retries=5)
ise-uiuc/Magicoder-OSS-Instruct-75K
def print_segment (x1, y1, x2, y2): print "%.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, -1" % \ (0, x1, y1, 0, x2, y2, R) print_segment (0, 0, - wave/6, H) print_segment (- wave/6, H, wave/6, H) print_segment (wave/6, H, 0, 0) # Source print "*" print "1, 1" print "w1b, 0.0, 1.0" # Load print "*"
ise-uiuc/Magicoder-OSS-Instruct-75K
def execute(env, policy, gamma=1.0, render=False): totalReward = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
return img parser = argparse.ArgumentParser() parser.add_argument("config") parser.add_argument("pth") parser.add_argument("input") parser.add_argument("output") args = parser.parse_args() input_path = args.input output_path = args.output os.makedirs(output_path,exist_ok=True) img_list = os.listdir(...
ise-uiuc/Magicoder-OSS-Instruct-75K
let blockID: CourseBlockID? let courseID: String var block: CourseBlock? { didSet {
ise-uiuc/Magicoder-OSS-Instruct-75K
readonly title: string; } }; }
ise-uiuc/Magicoder-OSS-Instruct-75K
return JsonResponse(data)
ise-uiuc/Magicoder-OSS-Instruct-75K
# -- markdown options -----------------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
$0.twoFactor = TwoFactorState(token: "deadbeefdeadbeef") } store.send(.twoFactor(.codeChanged("1234"))) { $0.twoFactor?.code = "1234" $0.twoFactor?.isFormValid = true } store.send(.twoFactor(.submitButtonTapped)) { $0.twoFactor?.isTwoFactorRequestInFlight = true } store.r...
ise-uiuc/Magicoder-OSS-Instruct-75K
'perPage', 'lastPage',
ise-uiuc/Magicoder-OSS-Instruct-75K
Map<String, Double> location; for(int i=0; i<poi.length(); i++){ try { temp = (JSONObject) poi.get(i); location = new HashMap<>(); location.put("lat",temp.getDouble("noorLat")); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
sc=getnums(y.text) if len(sc)>=2: m[3]=sc[0];m[4]=sc[1] if all(z!=None for z in m): l.append(tuple(m)) return l def getfromflashscores(year,ln): suffix=['premier-league','championship','league-one','league-two','national-league'][ln] name=suffix.replace('-',' ') suffix+='/results/' ur...
ise-uiuc/Magicoder-OSS-Instruct-75K
type EndpointsSchema<R extends string | string[]> = NormalizedSchema< EndpointEntities, R > export const removeEndpoint = (id: string) => ({type: REMOVE_ENDPOINT, id} as const) export const setEndpoint = (
ise-uiuc/Magicoder-OSS-Instruct-75K
this.error = error;
ise-uiuc/Magicoder-OSS-Instruct-75K
text2d = cv.viz_WText("Different simple widgets", (20, 20), 20, cv.viz_Color().green()) viz.showWidget("text2d", text2d) text3d = cv.viz_WText3D("Simple 3D text", ( 0.5, 0.5, 0.5), 0.125, False, cv.viz_Color().green()) viz.showWidget("text3d", text3d) viz.showWidget("plane1", c...
ise-uiuc/Magicoder-OSS-Instruct-75K
a = np.array([1, 2, 3, 4, 5, 6], dtype=np.float) b = a.byteswap(inplace=False) print(a) print(b) c = a.byteswap(inplace=True) print(a) print(c)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public string IsCompleted { get; set; } public void GetResult() { } public void OnCompleted(Action continuation) { } public MissingBoolIsCompletedProperty GetAwaiter() => this; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
func testWhenImagePreviewActionCalled_ShouldNot_NavigateToWebView() { let detailViews = MockDetailNavigation() let rootVC = RootViewController()
ise-uiuc/Magicoder-OSS-Instruct-75K
var config = new ConfigRoot { Brokers = new List<BrokerConfig>
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
// Start is called before the first frame update void Start()
ise-uiuc/Magicoder-OSS-Instruct-75K
return Log.log(logging.WARN, tag, source, message, exc_info) @staticmethod def d(tag, source, message="", exc_info=None): return Log.log(logging.DEBUG, tag, source, message, exc_info) @staticmethod def i(tag, source, message="", exc_info=None): return Log.log(logging.INFO, tag,...
ise-uiuc/Magicoder-OSS-Instruct-75K
import time import sys import logging from multiprocessing import Process import zmq import traceback import collections import logging import daiquiri
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Какой сам ☭ * User: <NAME> * Date: 11.01.14 22:41 */ public class Lexf { public static void start() {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Defender Of Nothing // Copyright (C) 2007 by <NAME> // // This file is released under the terms of the MIT license.
ise-uiuc/Magicoder-OSS-Instruct-75K
// 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. // using System.Collections.Concurrent; using System.Threading; namespace RedFoxMQ.Transports.InProc { /// <summary> /// Concurr...
ise-uiuc/Magicoder-OSS-Instruct-75K
_service_resource_type = 'service'
ise-uiuc/Magicoder-OSS-Instruct-75K
[ var(k) for k in self.left_sided_parameters if k not in self.parent_fusion_parameters ], 1,
ise-uiuc/Magicoder-OSS-Instruct-75K
class FindersTest(unittest.TestCase):
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Constructs a new `Current` that indicates the current context is a span /// with the given `metadata` and `metadata`. pub fn new(id: Id, metadata: &'static Metadata<'static>) -> Self { Self { inner: CurrentInner::Current { id, metadata } }
ise-uiuc/Magicoder-OSS-Instruct-75K
order=99999 ) class RelativePageLinkHandler(PageLinkHandler): """ Rich text link handler that forces all page links to be relative. This special page link handler makes it so that any internal Wagtail page links inserted into rich text fields are rendered as relative links. Standard ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import gatewayconfig.constants as constants from gatewayconfig.logger import get_logger
ise-uiuc/Magicoder-OSS-Instruct-75K
if result >= 45: winner += 1 #print("test ", test, " has score ", result)
ise-uiuc/Magicoder-OSS-Instruct-75K
0x69e534d4, 0x67c64c4a, 0xd0878744, 0x291aac48, 0xd566e893, 0xd37d776d, 0x9ed3c2d5, 0xac8f5f69, 0x1a40338f, 0x072d8377, 0xc73d7ae4, 0x430be8fb, 0xa514ff6a, 0x8c2cc0d5, 0x5156b871, 0x41198aa1, 0xbdd35764, 0x30b48d60, 0x3e295a1a, 0x8695ebd2, 0xea3464bf, 0x780fad50, 0x6a9308...
ise-uiuc/Magicoder-OSS-Instruct-75K
#addr_one_gadget = libc_base + one_gadget addr_system = libc_base + libc.symbol("system") create("dummy") # 4 for i in range(5): add(4, 0xbeef) create("free hook") # 5 add(5, u32("/bin")) add(5, u32("/sh\x00")) add(5, addr_system & 0xffffffff) add(5, addr_system >> 32) add(5, 0) sock.interactive()
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash hugo server --watch --verbose --buildDrafts --cleanDestinationDir --disableFastRender --buildFuture --baseURL http://localhost
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Askr-ssy/Batch-test-service- # -*- encoding: utf-8 -*- class RedisSubscriber(object): def __init__(self,channel): self.
ise-uiuc/Magicoder-OSS-Instruct-75K
parser = argparse.ArgumentParser(description="") parser.add_argument('input', help="Input file") parser.add_argument('func', help="Function to run", choices=[f.__name__ for f in possible_funcs])
ise-uiuc/Magicoder-OSS-Instruct-75K
def update(self, files, force=False): '''run update secret This receives a list of file names and converts it into a secret. The secret is then written to disk and passed into the `oc replace` command. ''' secret = self.prep_secret(files) if secret['returncode'...
ise-uiuc/Magicoder-OSS-Instruct-75K
views.data_cleanup_voter_hanging_data_process_view, name='data_cleanup_voter_hanging_data_process'), re_path(r'^data_cleanup_voter_list_analysis/$', views.data_cleanup_voter_list_analysis_view, name='data_cleanup_voter_list_analysis'), re_path(r'^data_voter_statistics/$', views.data_voter_statis...
ise-uiuc/Magicoder-OSS-Instruct-75K
fileprivate init?(notification: Notification, willShow: Bool) { guard let userInfo = notification.userInfo, let frameBegin = (userInfo[UIResponder.keyboardFrameBeginUserInfoKey] as? NSValue)?.cgRectValue, let frameEnd = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] a...
ise-uiuc/Magicoder-OSS-Instruct-75K
RaftClient.Instance.OnAddCommand -= ApplyClientCommandUI; } private void ApplyClientCommandUI(char command, int index)
ise-uiuc/Magicoder-OSS-Instruct-75K
tar -C ${TEMP_DIR} -xzv -f ${TEMP_DIR}/${HELM_TGZ} PATH=${TEMP_DIR}/linux-amd64/:$PATH helm init --client-only helm repo add jupyterhub https://jupyterhub.github.io/helm-chart helm dependency update helm-chart/renku-gateway
ise-uiuc/Magicoder-OSS-Instruct-75K
width=Screen(19), background=Colors.blue ), onTap=Alert("hello")), ), Padding( Button(label='red button', style=buttonstyle( borderRadius=Px(5), width=S...
ise-uiuc/Magicoder-OSS-Instruct-75K
required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
PyTransmit is a flexible FTPClient library for python web development. :copyright: Copyright (c) 2014 by <NAME>. :license: BSD, see LICENSE.txt for details. """ from ftp import FTPClient
ise-uiuc/Magicoder-OSS-Instruct-75K
@gen.coroutine def main_coro(args): c = SolrClient(host=args.host) s = yield gen.Task(c.core_status) print(s.body) def main(args): m = partial(main_coro, args) ioloop.IOLoop.current().run_sync(m)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.domain.refresh_from_db() self.assertEqual(response_data["domain"], "myposthog.com") self.assertEqual(response_data["verified_at"], None) self.assertEqual(self.domain.verified_at, None) self.assertEqual( self.domain.last_verification_retry, datetime.datetime(2021,...
ise-uiuc/Magicoder-OSS-Instruct-75K
latitude = float(row[1]) longitude = float(row[2]) scraper = WalgreensScraper(latitude, longitude, name, [self.KeyPrefix + name]) scraper.MakeGetRequest() except Exception as e: pr...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo echo '`javac -version` reports:' javac -version echo echo "Please ensure that JDK $1 is installed and resolves first in your PATH." echo -n '`which java` reports: ' which java
ise-uiuc/Magicoder-OSS-Instruct-75K
getContentMargin() { const { gutter = 0 } = this.properties; let { border } = this.properties; if (!border) return `margin-left:-${gutter}rpx; margin-top:-${gutter}rpx`; if (!isObject(border)) border = {} as any;
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_questionnaire_result_set(self): if self.request.GET.get('result_set'): return QuestionnaireResult.objects.get(pk=self.request.GET.get('result_set')) return QuestionnaireResult(questionnaire=self.get_questionnaire()) def get_success_url(self): return reverse('basic_qu...
ise-uiuc/Magicoder-OSS-Instruct-75K
int main() { boool b = falsse; b = truue; // Good int i = 0, j = 0; // b = (i == j); // Hmm... return 0;
ise-uiuc/Magicoder-OSS-Instruct-75K
* The request is paused until client responds with continueWithAuth. */ public class AuthRequired { private final org.openqa.selenium.devtools.fetch.model.RequestId requestId; private final org.openqa.selenium.devtools.network.model.Request request; private final org.openqa.selenium.devtools.page.model...
ise-uiuc/Magicoder-OSS-Instruct-75K
DataType dtype_; int depth_; }; REGISTER_KERNEL_BUILDER(Name("OctreeSetProperty").Device(DEVICE_GPU), OctreeSetPropertyOp); } // namespace tensorflow
ise-uiuc/Magicoder-OSS-Instruct-75K
l_outs = [l_cdf0, l_cdf1] l_top = nn.layers.MergeLayer(l_outs) l_target_mu0 = nn.layers.InputLayer((None, 1))
ise-uiuc/Magicoder-OSS-Instruct-75K
class MPTTMeta: order_insertion_by = ['name'] class Brand(models.Model): name = models.CharField(max_length=50) is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
startClusters = [] clustKeys = countToClusters.keys() clustKeys.sort() # this way, returned lists are in order of ascending len for clusterKey in clustKeys: clusterList = countToClusters[clusterKey] startClusters.append(clusterList) return startClusters def getRMSDtableLimited( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
.file("brotli/c/dec/bit_reader.c") .file("brotli/c/dec/decode.c") .file("brotli/c/dec/huffman.c") .file("brotli/c/dec/state.c") .file("brotli/c/enc/backward_references.c") .file("brotli/c/enc/backward_references_hq.c") .file("brotli/c/enc/bit_cost.c") .file("brotli/c/enc/block_splitter.c...
ise-uiuc/Magicoder-OSS-Instruct-75K
# type='StandardRoIHead', _delete_=True, type='KeypointRoIHead', output_heatmaps=False, # keypoint_head=dict( # type='HRNetKeypointHead', # num_convs=8, # in_channels=256, # features_size=[256, 256, 256, 256], # conv_out...
ise-uiuc/Magicoder-OSS-Instruct-75K
@section("content") @include("admin.partials.errors") <div class="row"> <div class="col-sm-12 col-md-12"> <div class="panel panel-default"> <div class="panel-heading">@yield('title')</div> <div class="panel-body"> {{ Form::open(['route' => ['users.update',$user->id],"method"=>"PUT"]) }}
ise-uiuc/Magicoder-OSS-Instruct-75K
O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : |||// \ / _||||| -:- |||||- \
ise-uiuc/Magicoder-OSS-Instruct-75K
# y_hat = t1_predict_manually @ simca_C # y_hat_rawunits = y_hat * plsmodel._y_std + plsmodel._y_mean # assert data["expected_y_predicted"] == approx(y_hat_rawunits.values.ravel(), abs=1e-5) # prediction_error = data["y"].values - y_hat_rawunits.values # R2_y = (data["y"].var(ddof=1) - prediction_e...
ise-uiuc/Magicoder-OSS-Instruct-75K
use crate::FormatNodeFields; use rome_js_syntax::JsConditionalExpression; impl FormatNodeFields<JsConditionalExpression> for FormatNodeRule<JsConditionalExpression> { fn fmt_fields(node: &JsConditionalExpression, formatter: &mut JsFormatter) -> FormatResult<()> {
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Send to rooms to inform the peers that the server will go offline /// </summary> RaiseOfflineEvent = 4, MaxValue = 100, #endregion }
ise-uiuc/Magicoder-OSS-Instruct-75K
visitor.visit_typedef(self.name) super(CtypesTypedef, self).visit(visitor) def py_string(self, ignore_can_be_ctype=None): return self.name class CtypesBitfield(CtypesType): def __init__(self, base, bitfield):
ise-uiuc/Magicoder-OSS-Instruct-75K
#[test] fn it_works() { assert_eq!(2 + 2, 4); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.urls import path, include # Importing views: from .views import trending_twitter_topics urlpatterns = [ path(r"trending/", trending_twitter_topics, name="Trending Topics") ]
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App; use Illuminate\Database\Eloquent\Model; class Payments_tickets extends Model { protected $fillable = ['payment_id', 'ticket_id', 'tickets_amount'];
ise-uiuc/Magicoder-OSS-Instruct-75K
@CreateDateColumn({ type: 'timestamp with time zone' }) createdAt: string; @UpdateDateColumn({ type: 'timestamp with time zone' }) updatedAt: string; }
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "database already exists"
ise-uiuc/Magicoder-OSS-Instruct-75K
extension AVAudioInputNode: AVAudioInputNodeExports { }
ise-uiuc/Magicoder-OSS-Instruct-75K
'pyproct.data.handler.protein', 'pyproct.data.matrix', 'pyproct.data.matrix.featurearray', 'pyproct.data.matrix.combination', 'pyproct.data.matrix.protein', 'pyproct.data.matrix.protein.cases', ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import net.minecraft.client.RunArgs; @Mixin(MinecraftClient.class) public class MinecraftMixin { @Inject(at = @At("TAIL"), method = "<init>") void testmod_onConstruct(RunArgs ra, CallbackInfo cb) { System.out.println("We do a little trolling!"); System.out.println(MinecraftClient.getInstance()....
ise-uiuc/Magicoder-OSS-Instruct-75K
`sample_rate` : int Audio samples per second. (CD quality is 44100). `sample_size` : int The bit precision. Must be either 8 or 16. """ def __init__(self, duration, frequency=440, **kwargs): super(Sine, self).__init__(duration, **kwargs) self.frequency = f...
ise-uiuc/Magicoder-OSS-Instruct-75K
$q->where('ended_at', '>=', Carbon::now()); }); }); } /** * Return TOD for automatic internal whitelist, take note that this is single object, not a collections.
ise-uiuc/Magicoder-OSS-Instruct-75K
class BedriftConfig(AppConfig): name = 'bedrift'
ise-uiuc/Magicoder-OSS-Instruct-75K
result.extend(left[i:] or right[j:]) break return result print(mergeSort([3,4,5,1,2,8,3,7,6]))
ise-uiuc/Magicoder-OSS-Instruct-75K
} public static async UniTask TranslateTowardsTime(this Transform From, TranslateData moveInfo,Vector3 anchor, byte time = 6) { await WhenAll(From.MoveTowards(moveInfo.To.position + anchor, moveInfo.MoveSpeed), From.RotateLerp(new RotateData(moveInfo.T...
ise-uiuc/Magicoder-OSS-Instruct-75K
df_group_final = df_group_final.reset_index() df_group_final = df_group_final.sort_values(['imgid_heading', 'prediction']) df_group_top_vote = df_group_final.drop_duplicates(subset = 'imgid_heading', keep = 'first') return df_group_final, df_group_top_vote
ise-uiuc/Magicoder-OSS-Instruct-75K
return render_template("kalender_akademik.html") @app.route('/informasi_skripsi') def informasi_skripsi(): return render_template("informasi_skripsi.html")
ise-uiuc/Magicoder-OSS-Instruct-75K
__author__ = 'zaqwes_user'
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare const cidDial: string[];
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def display_name(self) -> str: return self._emr_version.__str__() @property
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Test making an additional query to get the count """ for i in range(n): users = list(ssn.query(User)) count = ssn.query(User).count()
ise-uiuc/Magicoder-OSS-Instruct-75K
return BaseDirectory.save_config_path(_XDG_RESOURCE)
ise-uiuc/Magicoder-OSS-Instruct-75K
from model.lenet import LeNet
ise-uiuc/Magicoder-OSS-Instruct-75K
} impl Clone for OpenOptions { fn clone(&self) -> Self; } #[cfg(unix)] impl OpenOptionsExt for OpenOptions { fn custom_flags(&mut self, flags: i32) -> &mut Self; fn mode(&mut self, mode: u32) -> &mut Self; } #[cfg(windows)] impl OpenOptionsExt for OpenOptions { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
############################################################################### raise NotImplementedError
ise-uiuc/Magicoder-OSS-Instruct-75K
shuffle(self.question_list) def _getQuestion(self): """Send a question dict to the controller""" return self.question_list.pop(0) def __repr__(self): return f"Question() => Keeps the list of all questions"
ise-uiuc/Magicoder-OSS-Instruct-75K
# FOR NOW - remove all children
ise-uiuc/Magicoder-OSS-Instruct-75K
<i class="text-primary"></i> <span class="nav-link-text">Área Administrativa</span> </a> </li> </ul> </div> </div> </div> </nav> <!-- Main content --> <div class="main-content" id="panel"> <!-- Header -->
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>main.py """ Colortex - simple textual painter Based on: https://gist.github.com/BigglesZX/4016539 https://gist.github.com/almost/d2832d0998ad9dfec2cacef934e7d247
ise-uiuc/Magicoder-OSS-Instruct-75K
@Bean @ConditionalOnBean(LockHandler.class) @ConditionalOnMissingBean public GracefulReleaseHandler gracefulReleaseHandler() {
ise-uiuc/Magicoder-OSS-Instruct-75K
if (event.getAction() == MotionEvent.ACTION_DOWN) { int[] states = {android.R.attr.state_pressed}; if (d.setState(states)) { d.invalidateSelf(); } return true; } else if (event.getAction() == MotionEvent.ACTION_UP) { int newStates[] = {}; if (d.setState(newStates)) {...
ise-uiuc/Magicoder-OSS-Instruct-75K
package com.epam.jdi.light.elements.interfaces; public interface PageObject { }
ise-uiuc/Magicoder-OSS-Instruct-75K
else: print('A frase NÃO é um PALINDROMO')
ise-uiuc/Magicoder-OSS-Instruct-75K
var endpoint = ScootersMapEndpoint() func test_init_shouldAssignCorrectPath() { XCTAssertEqual(endpoint.path, "/scooters") }
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>paulscottrobson/flat-forth-compiler
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(Menu) admin.site.register(Dish)
ise-uiuc/Magicoder-OSS-Instruct-75K