hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796a9f1d075c9636e3dae7fc668807485c73eb6e
4,912
py
Python
ursina/prefabs/first_person_controller.py
JakeRoggenbuck/ursina
0162ca1136fe4384dc4f3e0d8d54f97f5a8e73e7
[ "MIT" ]
1
2021-03-29T06:00:41.000Z
2021-03-29T06:00:41.000Z
ursina/prefabs/first_person_controller.py
JakeRoggenbuck/ursina
0162ca1136fe4384dc4f3e0d8d54f97f5a8e73e7
[ "MIT" ]
null
null
null
ursina/prefabs/first_person_controller.py
JakeRoggenbuck/ursina
0162ca1136fe4384dc4f3e0d8d54f97f5a8e73e7
[ "MIT" ]
null
null
null
from ursina import * class FirstPersonController(Entity): def __init__(self, **kwargs): super().__init__() self.speed = 5 self.origin_y = -.5 self.camera_pivot = Entity(parent=self, y=2) self.cursor = Entity(parent=camera.ui, model='quad', color=color.pink, scale=.008, rota...
38.077519
146
0.601181
796aa0697347fcbc313b512e90f72698b0725185
156
py
Python
tests/library/barlib/__init__.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
tests/library/barlib/__init__.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
tests/library/barlib/__init__.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. from dace.library import register_library register_library(__name__, "BarLib")
31.2
75
0.814103
796aa303c0e5cfe757a27cd37f0585f311bd1c13
15,740
py
Python
gs_quant/timeseries/datetime.py
alexanu/gs-quant
fbb8d88d570aee545ed3a8601d9052c281ecca19
[ "Apache-2.0" ]
1
2020-05-18T02:09:39.000Z
2020-05-18T02:09:39.000Z
gs_quant/timeseries/datetime.py
atefar2/gs-quant
d31ae3204d5421861897bac49383bc213d5497a2
[ "Apache-2.0" ]
null
null
null
gs_quant/timeseries/datetime.py
atefar2/gs-quant
d31ae3204d5421861897bac49383bc213d5497a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Goldman Sachs. # 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, # sof...
31.99187
118
0.632402
796aa3751c6d79bc6081f03e482ee1d43d63a694
8,066
py
Python
pycave/clustering/kmeans/metrics.py
borchero/leviathan
52bf74adb29ab3f3aff2cfbf76a201ee0a6b39ae
[ "MIT" ]
77
2020-03-23T04:35:26.000Z
2022-03-30T08:07:48.000Z
pycave/clustering/kmeans/metrics.py
AndrewUlmer/pycave
7430fa4a515fe5ea7afbaad108226b4cd9111d8c
[ "MIT" ]
13
2021-01-14T17:05:15.000Z
2022-03-10T09:55:21.000Z
pycave/clustering/kmeans/metrics.py
AndrewUlmer/pycave
7430fa4a515fe5ea7afbaad108226b4cd9111d8c
[ "MIT" ]
5
2021-01-17T11:16:29.000Z
2022-03-12T16:31:16.000Z
import random from typing import Any, Callable, Optional import torch from torchmetrics import Metric class CentroidAggregator(Metric): """ The centroid aggregator aggregates kmeans centroids over batches and processes. """ def __init__( self, num_clusters: int, num_features: ...
38.593301
99
0.658195
796aa37d1f669b4d3a55bfa63bc8f0383d348e25
391
py
Python
NyanPaw/NyanPaw/wsgi.py
vmp32k/NyanPaw
605c1685a228bedf134457f56ca10f8f1194a956
[ "MIT" ]
1
2018-02-06T12:51:44.000Z
2018-02-06T12:51:44.000Z
NyanPaw/NyanPaw/wsgi.py
Nyancoins/NyanPaw
605c1685a228bedf134457f56ca10f8f1194a956
[ "MIT" ]
null
null
null
NyanPaw/NyanPaw/wsgi.py
Nyancoins/NyanPaw
605c1685a228bedf134457f56ca10f8f1194a956
[ "MIT" ]
null
null
null
""" WSGI config for NyanPaw project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
796aa3a7db3fb45c1369ae867363411d3053e516
856
py
Python
deepsnow/location_script.py
steeled/solar-tk
2142c8049dd24899932c47ece4de920623e6a42b
[ "Apache-2.0" ]
14
2019-11-11T15:14:27.000Z
2022-03-21T17:58:33.000Z
deepsnow/location_script.py
steeled/solar-tk
2142c8049dd24899932c47ece4de920623e6a42b
[ "Apache-2.0" ]
3
2020-11-20T19:02:32.000Z
2021-09-18T14:28:22.000Z
deepsnow/location_script.py
steeled/solar-tk
2142c8049dd24899932c47ece4de920623e6a42b
[ "Apache-2.0" ]
8
2019-11-11T15:14:30.000Z
2022-01-21T03:11:14.000Z
import urllib import urllib.parse import urllib.request import simplejson googleGeocodeUrl = 'http://maps.googleapis.com/maps/api/geocode/json?' def get_coordinates(query, from_sensor=False): query = query.encode('utf-8') params = { 'address': query, 'sensor': "true" if from_sensor else "false...
32.923077
70
0.676402
796aa3bb614a01f22b3a00bd636f77a4bcb5ed19
1,328
py
Python
ntk/widgets/widgets.py
njNafir/ntk
05dc8c89751ba91f9ff6220a9850266f5185f451
[ "MIT" ]
3
2021-01-05T04:31:32.000Z
2021-01-07T04:33:48.000Z
ntk/widgets/widgets.py
njNafir/ntk
05dc8c89751ba91f9ff6220a9850266f5185f451
[ "MIT" ]
1
2021-12-29T17:15:01.000Z
2021-12-29T17:15:01.000Z
ntk/widgets/widgets.py
njNafir/ntk
05dc8c89751ba91f9ff6220a9850266f5185f451
[ "MIT" ]
2
2021-01-05T07:45:24.000Z
2021-01-07T04:33:52.000Z
from tkinter import * from tkinter import ttk from dev_help.timepicker import TimePicker from dev_help import global_var as gv def get_a_checkbutton(frame, text="", variable=None, row=0, column=1, padx=(10, 10), pady=(10, 10), sticky="w", use_ttk=True, style=None): if use_ttk: check = ttk.Checkbutton(frame, text=te...
36.888889
166
0.679217
796aa420d69c507530f9898c4599e1ad03b302ec
1,734
py
Python
src/actions.py
mworzala/rich-ci
f792dd368adb1e72e94fa809f3748de617f7b175
[ "MIT" ]
null
null
null
src/actions.py
mworzala/rich-ci
f792dd368adb1e72e94fa809f3748de617f7b175
[ "MIT" ]
null
null
null
src/actions.py
mworzala/rich-ci
f792dd368adb1e72e94fa809f3748de617f7b175
[ "MIT" ]
null
null
null
def main(): # Echo print("Echo") print("With echo enabled, you can see the commands being executed.") print("https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#echoing-command-outputs") print("::echo::on") # Debug messages print("Debug Messages") ...
44.461538
196
0.707036
796aa4f98728ad6aa8904e8db61129eeb20c0cff
14,429
py
Python
tfkit/train.py
voidful/TFk
5ba46a5ef12bdbbd0215a2eadb036b443c382f3f
[ "Apache-2.0" ]
null
null
null
tfkit/train.py
voidful/TFk
5ba46a5ef12bdbbd0215a2eadb036b443c382f3f
[ "Apache-2.0" ]
null
null
null
tfkit/train.py
voidful/TFk
5ba46a5ef12bdbbd0215a2eadb036b443c382f3f
[ "Apache-2.0" ]
null
null
null
import argparse import sys import os from datetime import timedelta import time from itertools import zip_longest import torch from torch.utils import data from tqdm.auto import tqdm from transformers import get_linear_schedule_with_warmup import nlp2 import tfkit import tfkit.utility.tok as tok from tfkit.utility.dat...
48.911864
191
0.6112
796aa53d97f946f028ff8bc880df2d581b4a3edb
18,010
py
Python
tests/test_tornadoparser.py
greyli/webargs
d1edef18ef61c7f1ae591dfe95c3c1e82d49d272
[ "MIT" ]
601
2015-01-02T20:56:39.000Z
2018-12-27T00:41:15.000Z
tests/test_tornadoparser.py
greyli/webargs
d1edef18ef61c7f1ae591dfe95c3c1e82d49d272
[ "MIT" ]
219
2018-12-27T22:21:05.000Z
2022-03-17T16:19:35.000Z
tests/test_tornadoparser.py
greyli/webargs
d1edef18ef61c7f1ae591dfe95c3c1e82d49d272
[ "MIT" ]
104
2015-02-03T18:20:00.000Z
2018-12-17T08:11:34.000Z
from unittest import mock from urllib.parse import urlencode import marshmallow as ma import pytest import tornado.concurrent import tornado.http1connection import tornado.httpserver import tornado.httputil import tornado.ioloop import tornado.web from tornado.testing import AsyncHTTPTestCase from webargs import field...
31.596491
87
0.623209
796aa5cb6c224592fb7e96ec8a0e5a54fd0dfda5
2,768
py
Python
excel_handler.py
thienlongtran/warframe-inventory-info
456ca78f268d61121b54acc47920724222f96848
[ "MIT" ]
null
null
null
excel_handler.py
thienlongtran/warframe-inventory-info
456ca78f268d61121b54acc47920724222f96848
[ "MIT" ]
null
null
null
excel_handler.py
thienlongtran/warframe-inventory-info
456ca78f268d61121b54acc47920724222f96848
[ "MIT" ]
null
null
null
from openpyxl import Workbook import warframe_market_script def itemListToExcel(item_list): """ Saves the item list and corresponding Platinum and Ducat prices of each item to an external Excel file. Args: item_list (list): A list of Warframe items. """ wb = Workbook() ws = wb.active ...
32.564706
119
0.651012
796aa63f08b4d99698d6fbd04f88ed73682ce27a
5,170
py
Python
netapp/santricity/models/symbol/opcode_counter.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/symbol/opcode_counter.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/symbol/opcode_counter.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ OpcodeCounter.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: ...
34.013158
844
0.612186
796aa769f86a3f2e2f7bb3f11181e8371a186c65
16,914
py
Python
src/utils/_variation_details.py
DiscordLiz/salamander
87e8dbddacd4d55672491685007237493295cf5a
[ "Apache-2.0" ]
10
2020-08-20T21:25:01.000Z
2021-06-30T05:28:24.000Z
src/utils/_variation_details.py
mikeshardmind/salamander
f57ba6a8b2b2c9e2fb238df9595caf8ee51f18bf
[ "Apache-2.0" ]
61
2020-09-28T14:56:23.000Z
2022-02-19T20:04:59.000Z
src/utils/_variation_details.py
DiscordLiz/salamander
87e8dbddacd4d55672491685007237493295cf5a
[ "Apache-2.0" ]
2
2020-10-03T17:07:57.000Z
2020-11-02T02:06:11.000Z
# Copyright 2020-present Michael Hall # # 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 a...
22.856757
81
0.530803
796aa76e3247e80c28d84ffa77795a666ffc4dfd
9,605
py
Python
simscale_sdk/models/solid_simulation_control.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/solid_simulation_control.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/solid_simulation_control.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class SolidSimulationControl(object): """NOTE: This class is auto gen...
34.927273
244
0.681104
796aa8cf94072e8a0bdca7da183dbee24e70dc77
1,584
py
Python
Client-Project/src/core/urls.py
techquila/Wagtail-Boilerplate
3a79c9205a1a2479519a25709eb4e4fb1c59b4b7
[ "MIT" ]
1
2021-08-20T04:44:17.000Z
2021-08-20T04:44:17.000Z
Client-Project/src/core/urls.py
muxuezi/Wagtail-Boilerplate
9ca5b5b1ef0901cb49b0c91398853184411112ba
[ "MIT" ]
null
null
null
Client-Project/src/core/urls.py
muxuezi/Wagtail-Boilerplate
9ca5b5b1ef0901cb49b0c91398853184411112ba
[ "MIT" ]
null
null
null
from django.contrib import admin from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.views import defaults as default_views from wagtail.admin import urls as wagtailadmin_urls from wagtail.documents import urls as wagtaildocs_urls from wagtai...
29.886792
76
0.664773
796aabaccb3a36fc752107eccaf8cf25b2d9378c
517
py
Python
ops_boba/api/token-api/token_getCirculatingSupply.py
HabtorNetwork/optimism-v2
7639b9132560754f08c8d4b3b8d3c030f051d464
[ "MIT" ]
null
null
null
ops_boba/api/token-api/token_getCirculatingSupply.py
HabtorNetwork/optimism-v2
7639b9132560754f08c8d4b3b8d3c030f051d464
[ "MIT" ]
null
null
null
ops_boba/api/token-api/token_getCirculatingSupply.py
HabtorNetwork/optimism-v2
7639b9132560754f08c8d4b3b8d3c030f051d464
[ "MIT" ]
null
null
null
import json def token_getCirculatingSupply(event, context): return { "statusCode": 200, "headers": { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": True, "Strict-Transport-Security": "max-age=63072000; includeSubdomains; preload", "X-Content-Type-Options": "n...
27.210526
82
0.615087
796aac24d2ac335abcd65432fe654ab06f6e0229
1,795
py
Python
src/networks/layers/temporal.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
src/networks/layers/temporal.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
src/networks/layers/temporal.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn.utils import weight_norm # Code from https://github.com/locuslab/TCN class Chomp1d(nn.Module): def __init__(self, chomp_size): super(Chomp1d, self).__init__() self.chomp_size = chomp_size def forward(self, x): return x[:, :, :-self.chom...
38.191489
97
0.623398
796aac9082642c9ccf7a9736e179d11672d05c5e
2,508
py
Python
src/backend/common/queries/tests/team_tag_medias_query_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
src/backend/common/queries/tests/team_tag_medias_query_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
src/backend/common/queries/tests/team_tag_medias_query_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
from google.cloud import ndb from backend.common.consts.media_tag import MediaTag from backend.common.consts.media_type import MediaType from backend.common.models.media import Media from backend.common.models.team import Team from backend.common.queries.media_query import TeamTagMediasQuery def test_no_data() -> No...
25.591837
65
0.647528
796aad74115ed321f7f19f4f2ee2313452233752
313
py
Python
Bronze/Bronze_II/2798.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_II/2798.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_II/2798.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
from itertools import combinations N, M = map(int, input().split()) cards = list(map(int, input().split())) cards_combinations = combinations(cards, 3) big_sum = 0 for combination in cards_combinations: temp_sum = sum(combination) if big_sum < temp_sum <= M: big_sum = temp_sum print(big_sum)
20.866667
43
0.699681
796aadd899acb488ac9912d637f37901128ad420
3,907
py
Python
glotes_main/settings.py
20191-ads/glotes_serve
ed48a1b69f051e9f4f017aeef879a782e28be346
[ "MIT" ]
null
null
null
glotes_main/settings.py
20191-ads/glotes_serve
ed48a1b69f051e9f4f017aeef879a782e28be346
[ "MIT" ]
null
null
null
glotes_main/settings.py
20191-ads/glotes_serve
ed48a1b69f051e9f4f017aeef879a782e28be346
[ "MIT" ]
null
null
null
""" Django settings for glotes_main project on Heroku. For more info, see: https://github.com/heroku/heroku-django-template For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settin...
29.598485
91
0.720502
796aae6d0a9ce2c5045c5bf72a204d2fa2865607
4,922
py
Python
app.py
Kaushik-Cognistx/square_lite
a057ddde7d119667a528fc4944fc17571b310dbd
[ "Apache-2.0" ]
null
null
null
app.py
Kaushik-Cognistx/square_lite
a057ddde7d119667a528fc4944fc17571b310dbd
[ "Apache-2.0" ]
null
null
null
app.py
Kaushik-Cognistx/square_lite
a057ddde7d119667a528fc4944fc17571b310dbd
[ "Apache-2.0" ]
null
null
null
import functools from typing import Dict import base64 import streamlit as st # type: ignore import wikipedia # type: ignore from transformers import Pipeline, pipeline # type: ignore from config import config def conditional_decorator(func): @functools.wraps(func) def wrapper(*args, **kwargs): i...
47.326923
1,972
0.602397
796aaec517ee139d658ea2b03f5e9586b3d43907
13,148
py
Python
solum/tests/api/handlers/test_pipeline.py
openstack/solum
0a744883ca00a0ee80e1b6840ac42a78fc397450
[ "Apache-2.0" ]
39
2015-09-26T01:30:52.000Z
2021-05-20T23:37:43.000Z
solum/tests/api/handlers/test_pipeline.py
openstack/solum
0a744883ca00a0ee80e1b6840ac42a78fc397450
[ "Apache-2.0" ]
null
null
null
solum/tests/api/handlers/test_pipeline.py
openstack/solum
0a744883ca00a0ee80e1b6840ac42a78fc397450
[ "Apache-2.0" ]
30
2015-10-25T18:06:39.000Z
2020-01-14T12:14:06.000Z
# # 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...
45.811847
79
0.645573
796ab212644033a1f0f929c40c7a308bd0af0281
1,022
py
Python
playground/blackjack_example/test_blackjack.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
6,140
2018-01-24T03:27:48.000Z
2022-03-31T14:37:54.000Z
playground/blackjack_example/test_blackjack.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
993
2018-02-02T11:21:40.000Z
2022-03-31T20:41:41.000Z
playground/blackjack_example/test_blackjack.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
1,022
2018-03-05T07:45:22.000Z
2022-03-31T04:29:57.000Z
# encoding=utf8 __author__ = "刘欣" from airtest.core.api import * from airtest.cli.parser import cli_setup PKG = "org.cocos2d.blackjack" APK = "blackjack-release-signed.apk" if not cli_setup(): auto_setup(__file__, logdir=True, devices=[ "Android:///?cap_method=javacap&ori_method=adbori", ]) # ins...
21.291667
106
0.725049
796ab258f5b66856710370b263f7dd0b764e6a54
2,441
py
Python
iexfinance/tests/test_utils.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
653
2018-01-02T21:03:49.000Z
2022-03-24T06:37:10.000Z
iexfinance/tests/test_utils.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
219
2017-12-09T21:44:43.000Z
2022-03-23T20:21:46.000Z
iexfinance/tests/test_utils.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
155
2018-02-07T17:08:18.000Z
2022-03-13T23:36:57.000Z
import datetime as dt import pandas as pd import pytest from iexfinance.utils import _handle_lists, _sanitize_dates @pytest.fixture(params=[1, "test"], ids=["int", "string"]) def single(request): return request.param @pytest.fixture( params=[ [1, 2, 3], (1, 2, 3), pd.DataFrame([], ...
29.409639
84
0.623515
796ab27142e49d094b75dc39fae4d2856dc1e961
1,660
py
Python
parser.py
frenchraccoon/whyparser
5e8211a2d2e81b79041ff7784fac1b851a5dd533
[ "BSD-2-Clause" ]
null
null
null
parser.py
frenchraccoon/whyparser
5e8211a2d2e81b79041ff7784fac1b851a5dd533
[ "BSD-2-Clause" ]
null
null
null
parser.py
frenchraccoon/whyparser
5e8211a2d2e81b79041ff7784fac1b851a5dd533
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import sys import heapq def main(): # parser.py distinct [--from TIMESTAMP] [--to TIMESTAMP] input_file # parser.py top nb_top_queries [--from TIMESTAMP] [--to TIMESTAMP] input_file rfrom = 0 rto = sys.maxsize dest = None # get opptional from/to for arg in sys.argv: if arg == '--...
23.380282
79
0.528313
796ab32898089cdb3b142c12935e7259362b2688
15,798
py
Python
tensorflow/python/data/kernel_tests/data_service_ops_test.py
eliberis/tensorflow
9aea03e98d2ef5416dff09f721d6d519ea83e74f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/kernel_tests/data_service_ops_test.py
eliberis/tensorflow
9aea03e98d2ef5416dff09f721d6d519ea83e74f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/kernel_tests/data_service_ops_test.py
eliberis/tensorflow
9aea03e98d2ef5416dff09f721d6d519ea83e74f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
37.436019
80
0.713318
796ab348ac912e40dfcfbffcce9adb376858c536
737
py
Python
inferencia/task/person_reid/body_reid/body_reid_manager.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
null
null
null
inferencia/task/person_reid/body_reid/body_reid_manager.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
5
2021-07-25T23:19:29.000Z
2021-07-26T23:35:13.000Z
inferencia/task/person_reid/body_reid/body_reid_manager.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
1
2021-09-18T12:06:13.000Z
2021-09-18T12:06:13.000Z
from .label.body_reid_label_factory import BodyReidLabelFactory from .model.body_reid_model_factory import BodyReidModelFactory from .visualization.body_reid_visualizer_factory import BodyReidVisualizerFactory class BodyReidManager(): def get_model(model_name="osnet_x0_25", model_path=None, ...
36.85
81
0.682497
796ab36e794e954e98c82044b739a9396c2f9d3b
2,462
py
Python
src/mem/probes/BaseMemProbe.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
16
2020-09-24T00:17:36.000Z
2021-08-12T06:11:52.000Z
src/mem/probes/BaseMemProbe.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
5
2021-01-27T23:09:06.000Z
2022-01-07T03:19:39.000Z
src/mem/probes/BaseMemProbe.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
15
2020-11-18T00:15:28.000Z
2021-12-12T03:18:34.000Z
# Copyright (c) 2015 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
51.291667
74
0.776198
796ab7f38bd751e635a50dd2fe99e8e81c2840ab
2,259
py
Python
third_party/catapult/telemetry/telemetry/internal/forwarders/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
third_party/catapult/telemetry/telemetry/internal/forwarders/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/catapult/telemetry/telemetry/internal/forwarders/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections PortPair = collections.namedtuple('PortPair', ['local_port', 'remote_port']) PortSet = collections.namedtuple('PortSet', ['http', 'https...
28.594937
79
0.695883
796ab96210d711631987531045888afa199a82c5
4,039
py
Python
acc/AccRTL.py
mfkiwl/OpenCGRA-1
1d898da829b416d850ec9f94e3021ca4171ece5b
[ "BSD-3-Clause" ]
49
2020-09-17T19:22:53.000Z
2022-03-25T18:55:13.000Z
acc/AccRTL.py
zslwyuan/OpenCGRA
06646c8c277fd53ea3a287047ac8a4ce3e466295
[ "BSD-3-Clause" ]
8
2020-12-30T20:22:29.000Z
2022-03-29T04:47:27.000Z
acc/AccRTL.py
zslwyuan/OpenCGRA
06646c8c277fd53ea3a287047ac8a4ce3e466295
[ "BSD-3-Clause" ]
12
2020-12-12T21:38:59.000Z
2022-03-15T02:21:15.000Z
""" ========================================================================= AccRTL.py This is not a CGRA related module. This module initially attempts to implement a data flow accelerator, which is future work. ========================================================================= Author : Cheng Tan Date : Feb...
38.103774
145
0.579599
796ab96df16c10524139dfe3a875c77211b1ca77
2,195
py
Python
examples/colors_from_specdict.py
Lounarok/flasgger
6f2ea563bf2ba54d3a751ae4440fc1e6a9f34ca3
[ "MIT" ]
1,696
2015-07-29T14:43:53.000Z
2019-07-26T12:46:27.000Z
examples/colors_from_specdict.py
Lounarok/flasgger
6f2ea563bf2ba54d3a751ae4440fc1e6a9f34ca3
[ "MIT" ]
286
2015-07-29T21:54:47.000Z
2019-07-25T06:19:06.000Z
examples/colors_from_specdict.py
Lounarok/flasgger
6f2ea563bf2ba54d3a751ae4440fc1e6a9f34ca3
[ "MIT" ]
289
2015-08-05T10:19:09.000Z
2019-07-24T01:29:40.000Z
""" Example using a dictionary as specification instead of YAML """ from flask import Flask, jsonify from flasgger import Swagger from flasgger.utils import swag_from app = Flask(__name__) app.config['SWAGGER'] = { 'title': 'Colors API', 'uiversion': 2 } swag = Swagger(app) colors_spec = { "tags": [ "...
18.760684
69
0.511617
796ab9b6cf5705d16c2c745170f97e1627ddbef2
244
py
Python
src/UnitTests/TestData/Grammar/FStringErrors.py
jamesralstin/python-language-server
53eb5886776c9e75590bf2f5a787ba4015879c4d
[ "Apache-2.0" ]
1
2021-02-16T10:01:30.000Z
2021-02-16T10:01:30.000Z
src/UnitTests/TestData/Grammar/FStringErrors.py
jamesralstin/python-language-server
53eb5886776c9e75590bf2f5a787ba4015879c4d
[ "Apache-2.0" ]
null
null
null
src/UnitTests/TestData/Grammar/FStringErrors.py
jamesralstin/python-language-server
53eb5886776c9e75590bf2f5a787ba4015879c4d
[ "Apache-2.0" ]
1
2019-11-20T02:48:46.000Z
2019-11-20T02:48:46.000Z
f'{' f'{\n}' f''' {import something} ''' f''' {def test: pass} ''' f'' b'' f'{something' f'}' f'{#}' f"{" f'{import random}' f'{}' f'{a = 1}' f'{lambda x: 1}' f'\N{' f'{1!}' f'{1!k}' f'{)}' f'{1:)}' f'{ (} }' f'{]}'
5.809524
18
0.344262
796ab9c7a2cc4c3b3b77b39fd62bc567db67e858
834
py
Python
bookmark_app/migrations/0012_auto_20200517_0307.py
arabindamahato/Bookmark-Manager
f0a065c235f862540de6bb17fe8434b95e84f374
[ "MIT" ]
null
null
null
bookmark_app/migrations/0012_auto_20200517_0307.py
arabindamahato/Bookmark-Manager
f0a065c235f862540de6bb17fe8434b95e84f374
[ "MIT" ]
5
2021-03-19T03:27:56.000Z
2021-09-22T19:01:42.000Z
bookmark_app/migrations/0012_auto_20200517_0307.py
arabindamahato/Bookmark-Manager
f0a065c235f862540de6bb17fe8434b95e84f374
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-16 21:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bookmark_app', '0011_remove_customerbookmark_bookmark_name'), ] operations = [ migrations.AlterField( ...
33.36
157
0.66307
796ab9e4399e5228867ee2c6903071b8c2877930
681
py
Python
data_storage/exceptions.py
ropable/data-storage
e575db8eb9445a98808a1aac5ca10a337314f4da
[ "Apache-2.0" ]
null
null
null
data_storage/exceptions.py
ropable/data-storage
e575db8eb9445a98808a1aac5ca10a337314f4da
[ "Apache-2.0" ]
null
null
null
data_storage/exceptions.py
ropable/data-storage
e575db8eb9445a98808a1aac5ca10a337314f4da
[ "Apache-2.0" ]
null
null
null
class ResourceAlreadyExist(Exception): pass class ResourceNotFound(Exception): pass class InvalidResource(Exception): pass class OperationNotSupport(Exception): pass class MetaMetadataMissing(Exception): def __init__(self, resourcename, blob_path): super().__init__( "The ...
15.477273
79
0.684288
796ab9ed5bc1fcb2c82d8a14f1a96d233de0339e
64,737
py
Python
chibchas/tools.py
myforkedrepositories/Chibchas
b8c187d3a84ea80c2488f14d3be340d7c79cf798
[ "BSD-3-Clause" ]
null
null
null
chibchas/tools.py
myforkedrepositories/Chibchas
b8c187d3a84ea80c2488f14d3be340d7c79cf798
[ "BSD-3-Clause" ]
null
null
null
chibchas/tools.py
myforkedrepositories/Chibchas
b8c187d3a84ea80c2488f14d3be340d7c79cf798
[ "BSD-3-Clause" ]
null
null
null
import pickle from datetime import datetime import re import time import getpass import os import sys #requirements import json import pandas as pd import helium as h from selenium.common.exceptions import NoSuchElementException pd.set_option("max_rows",100) #pd.set_option("display.max_columns",100) pd.set_option("m...
37.703553
678
0.601974
796abb7a0a72f84183fdb3cbc7ec9595bff5fe11
1,187
py
Python
usb_protect.py
Ismael-Safadi/unti_usb_keylogger
dd329a515e64ea61b8c20d5a4a019b8d07ccb4b9
[ "MIT" ]
3
2018-08-29T20:31:55.000Z
2020-12-11T03:07:40.000Z
usb_protect.py
Ismael-Safadi/unti_usb_keylogger
dd329a515e64ea61b8c20d5a4a019b8d07ccb4b9
[ "MIT" ]
null
null
null
usb_protect.py
Ismael-Safadi/unti_usb_keylogger
dd329a515e64ea61b8c20d5a4a019b8d07ccb4b9
[ "MIT" ]
null
null
null
import os,getpass,time,win32con from win32api import GetLogicalDriveStrings from win32file import GetDriveType import winsound import datetime #Coded By : Ismael Al-safadi def sound(): for i in range(1,40): winsound.Beep(1000,1000) def takephoto(): import cv2...
25.804348
67
0.550969
796abc0e4a5bb72d9d3a8f006a40f7d694b0e008
962
py
Python
solutions/1441-build-an-array-with-stack-operations.py
lk-hang/leetcode
4c8735463bdcb9f48666e03a39eb03ee9f625cec
[ "MIT" ]
null
null
null
solutions/1441-build-an-array-with-stack-operations.py
lk-hang/leetcode
4c8735463bdcb9f48666e03a39eb03ee9f625cec
[ "MIT" ]
null
null
null
solutions/1441-build-an-array-with-stack-operations.py
lk-hang/leetcode
4c8735463bdcb9f48666e03a39eb03ee9f625cec
[ "MIT" ]
null
null
null
""" Given an array target and an integer n. In each iteration, you will read a number from list = {1,2,3..., n}. Build the target array using the following operations: Push: Read a new element from the beginning list, and push it in the array. Pop: delete the last element of the array. If the target array is already...
30.0625
114
0.612266
796abc8f89dd58ead545c95b0e207ee70fc7c03c
784
py
Python
Python_Tic_tac_toe/test.py
Hacker-Davinci/Python_Learning_Projects_And_Module_From_Youtube
afdf096e0bb139018f4ac0ff006980b4aa95fce9
[ "MIT" ]
1
2021-05-31T15:16:52.000Z
2021-05-31T15:16:52.000Z
Python_Tic_tac_toe/test.py
Hacker-Davinci/Python_Learning_Projects_From_Youtube
afdf096e0bb139018f4ac0ff006980b4aa95fce9
[ "MIT" ]
null
null
null
Python_Tic_tac_toe/test.py
Hacker-Davinci/Python_Learning_Projects_From_Youtube
afdf096e0bb139018f4ac0ff006980b4aa95fce9
[ "MIT" ]
null
null
null
# todo great function to get TODO BELOW def get_valid_locations(board): import numpy as np import random locations = [] board = np.zeros((3, 3)) for r in range(3): for c in range(3): if board[r][c] == 0: locations.append((r, c)) for ...
21.189189
49
0.554847
796ac0d63a68040d866aacfa8393c93b96f4d387
907
py
Python
account/views.py
debitomika/satudata
61cfcf7de616cdcd55ac7b575b8171022476a3f1
[ "Apache-2.0" ]
null
null
null
account/views.py
debitomika/satudata
61cfcf7de616cdcd55ac7b575b8171022476a3f1
[ "Apache-2.0" ]
null
null
null
account/views.py
debitomika/satudata
61cfcf7de616cdcd55ac7b575b8171022476a3f1
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import UserRegisterForm def home(request): return render(request, 'account/index.html') def about(request): return render(request, 'account/portfolio-detail...
27.484848
73
0.694598
796ac280d9731b60af7a3369eb31ffe444fe26c9
13,778
py
Python
helmnet/architectures.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
null
null
null
helmnet/architectures.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
null
null
null
helmnet/architectures.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def getActivationFunction( act_function_name: str, features=None, end=False ) -> nn.Module: """Returns the activation function module given the name Args: act_function_name (str): Name of the activation function, case unsensitive Raises: NotImpl...
29.566524
88
0.561257
796ac3151196ce98e16718736c7dbf12f28c80e9
3,047
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200401/get_bastion_shareable_link.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200401/get_bastion_shareable_link.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200401/get_bastion_shareable_link.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
36.710843
156
0.68231
796ac38430185ff267702f0621a5f9b2eb73d648
3,000
py
Python
sphinx/pygments_styles.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
3
2019-06-11T09:42:08.000Z
2020-03-10T15:57:09.000Z
sphinx/pygments_styles.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
12
2019-01-09T15:43:57.000Z
2020-01-21T10:46:30.000Z
sphinx/pygments_styles.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
10
2019-02-04T11:49:35.000Z
2020-03-21T13:32:20.000Z
""" sphinx.pygments_styles ~~~~~~~~~~~~~~~~~~~~~~ Sphinx theme specific highlighting styles. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.styles.friendly import FriendlyStyle from pygmen...
31.25
78
0.485
796ac418c671a99ef02af6d003f29a85e1ae2651
2,073
py
Python
fspider/http/downloader.py
flagang/fspider
161c1ce44650b133f64218ab56744db71fb91c78
[ "MIT" ]
1
2022-03-04T09:19:53.000Z
2022-03-04T09:19:53.000Z
fspider/http/downloader.py
flagang/fspider
161c1ce44650b133f64218ab56744db71fb91c78
[ "MIT" ]
null
null
null
fspider/http/downloader.py
flagang/fspider
161c1ce44650b133f64218ab56744db71fb91c78
[ "MIT" ]
null
null
null
import logging from http.cookies import SimpleCookie from aiohttp import ClientSession, TCPConnector, ClientTimeout from fspider import signals from fspider.http.request import Request from fspider.http.response import Response logger = logging.getLogger(__name__) session: ClientSession = None async def ger_sess()...
35.741379
114
0.679209
796ac43bd4f3526f432eeab2a0d616d1846b031f
1,973
py
Python
DES322/flaskBackend/08_app.py
waterthatfrozen/Y3T1-CodeVault
0817569d2f48b58efdbede9f882d43dbde263d7c
[ "MIT" ]
null
null
null
DES322/flaskBackend/08_app.py
waterthatfrozen/Y3T1-CodeVault
0817569d2f48b58efdbede9f882d43dbde263d7c
[ "MIT" ]
null
null
null
DES322/flaskBackend/08_app.py
waterthatfrozen/Y3T1-CodeVault
0817569d2f48b58efdbede9f882d43dbde263d7c
[ "MIT" ]
null
null
null
import peewee from flask import Flask, jsonify, request from flask import render_template, send_from_directory, abort import os from product import * app = Flask(__name__) # This hook ensures that a connection is opened to handle any queries # generated by the request. @app.before_request def _db_connect(): db.c...
26.306667
97
0.681703
796ac4c537a7261340dda131f13420e031c5af27
6,046
py
Python
numpy/fft/helper.py
ewmoore/numpy
665a00aec896344cfb12599add600f27a5f519d3
[ "BSD-3-Clause" ]
null
null
null
numpy/fft/helper.py
ewmoore/numpy
665a00aec896344cfb12599add600f27a5f519d3
[ "BSD-3-Clause" ]
null
null
null
numpy/fft/helper.py
ewmoore/numpy
665a00aec896344cfb12599add600f27a5f519d3
[ "BSD-3-Clause" ]
null
null
null
""" Discrete Fourier Transforms - helper.py """ # Created by Pearu Peterson, September 2002 __all__ = ['fftshift', 'ifftshift', 'fftfreq', 'rfftfreq'] from numpy.core import asarray, concatenate, arange, take, \ integer, empty import numpy.core.numerictypes as nt import types def fftshift(x, axes=None): """ ...
27.733945
79
0.529937
796ac4d41704ee041dba282f9c7e5ef3bbb51a6d
496
py
Python
dev/4_02_2018/FanControl.py
npwebste/UPS_Controller
a90ce2229108197fd48f956310ae2929e0fa5d9a
[ "AFL-1.1" ]
null
null
null
dev/4_02_2018/FanControl.py
npwebste/UPS_Controller
a90ce2229108197fd48f956310ae2929e0fa5d9a
[ "AFL-1.1" ]
null
null
null
dev/4_02_2018/FanControl.py
npwebste/UPS_Controller
a90ce2229108197fd48f956310ae2929e0fa5d9a
[ "AFL-1.1" ]
null
null
null
# Universal Power Supply Controller # USAID Middle East Water Security Initiative # # Developed by: Nathan Webster # Primary Investigator: Nathan Johnson # # Version History (mm_dd_yyyy) # 1.00 03_24_2018_NW # ###################################################### import PWM_Wrapper # Pin 11 (BCM 17) DC-DC # Pin 13 (...
19.84
54
0.657258
796ac5a5625ed023eb1a77246df53b695865ef6a
6,524
py
Python
Pyrado/pyrado/plotting/categorical.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
52
2020-05-02T13:55:09.000Z
2022-03-09T14:49:36.000Z
Pyrado/pyrado/plotting/categorical.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
40
2020-09-01T15:19:22.000Z
2021-11-02T14:51:41.000Z
Pyrado/pyrado/plotting/categorical.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
13
2020-07-03T11:39:21.000Z
2022-02-20T01:12:42.000Z
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
42.921053
110
0.696658
796ac611db81e2a822134c9fa0ca862d4a294da8
5,229
py
Python
python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
2
2017-05-15T06:52:18.000Z
2017-06-13T11:55:11.000Z
python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py
MaJun-cn/Paddle
0ec3a42e9740a5f5066053bb49a923d538eba24a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py
MaJun-cn/Paddle
0ec3a42e9740a5f5066053bb49a923d538eba24a
[ "Apache-2.0" ]
4
2020-07-27T13:24:03.000Z
2020-08-06T08:20:32.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # 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 appli...
32.68125
77
0.574488
796ac62b815c46942ea700d19d2567f9b1c49d64
33,183
py
Python
control-tasks/task.py
lunayach/control-tasks
f333b03d7dc31f89ae56c82e22a9ea588547590f
[ "Apache-2.0" ]
24
2019-09-10T18:51:04.000Z
2022-02-24T09:20:32.000Z
control-tasks/task.py
lunayach/control-tasks
f333b03d7dc31f89ae56c82e22a9ea588547590f
[ "Apache-2.0" ]
2
2019-12-15T02:21:06.000Z
2021-03-25T23:15:50.000Z
control-tasks/task.py
lunayach/control-tasks
f333b03d7dc31f89ae56c82e22a9ea588547590f
[ "Apache-2.0" ]
8
2019-09-10T18:51:08.000Z
2021-11-11T03:33:56.000Z
"""Contains classes describing linguistic tasks of interest on annotated data.""" from collections import Counter, OrderedDict import numpy as np import sys import torch import math import itertools PTB_TRAIN_EMPIRICAL_POS_DISTRIBUTION = [0.00003789361998, 0.00006105083219, 0.0001021022538, 0.0001494692788, 0.000176...
44.481233
4,241
0.708043
796ac7b66a95798e07bb8ee283f4a7178947c581
1,399
py
Python
ch9/fillGaps.py
ecmartz/python-practice
7ecc128ea04e3ec0a41667b4590af6795ae1e3fe
[ "CNRI-Python" ]
null
null
null
ch9/fillGaps.py
ecmartz/python-practice
7ecc128ea04e3ec0a41667b4590af6795ae1e3fe
[ "CNRI-Python" ]
2
2017-10-05T04:22:11.000Z
2017-10-05T04:22:32.000Z
ch9/fillGaps.py
ecmartz/python-practice
7ecc128ea04e3ec0a41667b4590af6795ae1e3fe
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python3 """Filling in the gaps. File all files with a given prefix, then locate any gaps in numbering. Rename all later files to close the gap. """ import os import re from pprint import pprint from pathlib import Path def extract_filenames(argpath,argprefix): """Extract filenames and add the gap ...
29.145833
111
0.642602
796ac7e14e9bcfebec5df31be0624341dcec8634
96
py
Python
sysopt/version.py
andrewjlock/sysopt
b9ef17e4532f3a3327afc696ec698eb5dd365350
[ "Apache-2.0" ]
null
null
null
sysopt/version.py
andrewjlock/sysopt
b9ef17e4532f3a3327afc696ec698eb5dd365350
[ "Apache-2.0" ]
null
null
null
sysopt/version.py
andrewjlock/sysopt
b9ef17e4532f3a3327afc696ec698eb5dd365350
[ "Apache-2.0" ]
1
2022-03-09T03:59:49.000Z
2022-03-09T03:59:49.000Z
"""SysOpt version info.""" major = 0 minor = 0 patch = 3 version = f"{major}.{minor}.{patch}"
12
36
0.604167
796ac7e83b209422143512828b9c8248a343af8e
6,290
py
Python
LeetCode-All-Solution/Python3/LC-0567-Permutation-in-String.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0567-Permutation-in-String.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0567-Permutation-in-String.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0567-Permutation-in-String.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-01-06 =============================...
37.664671
120
0.54849
796ac8a2e92c23fb91d6f4f1090288d7f9d86587
3,699
py
Python
annolid/utils/box.py
jeremyforest/annolid
88bb528ee5a39a84a08631b27b934191a8822048
[ "MIT" ]
null
null
null
annolid/utils/box.py
jeremyforest/annolid
88bb528ee5a39a84a08631b27b934191a8822048
[ "MIT" ]
null
null
null
annolid/utils/box.py
jeremyforest/annolid
88bb528ee5a39a84a08631b27b934191a8822048
[ "MIT" ]
null
null
null
"""box python API https://github.com/box/box-python-sdk Please install boxsdk `pip install boxsdk` """ import os import json from boxsdk import OAuth2, Client def get_box_client(config_file='../config/box_config.json'): """authenticate with box.com return app client to access and mananage box folder and fil...
31.084034
98
0.655312
796ac8b4b955f9e2e429156f582d20d0b2a95ac1
79
py
Python
0x01-python-if_else_loops_functions/4-print_hexa.py
Rmolimock/holbertonschool-higher_level_programming
cf0421cbb6463b3960dc581badf7d4bbe1622b7d
[ "MIT" ]
1
2019-05-21T09:34:41.000Z
2019-05-21T09:34:41.000Z
0x01-python-if_else_loops_functions/4-print_hexa.py
Rmolimock/holbertonschool-higher_level_programming
cf0421cbb6463b3960dc581badf7d4bbe1622b7d
[ "MIT" ]
null
null
null
0x01-python-if_else_loops_functions/4-print_hexa.py
Rmolimock/holbertonschool-higher_level_programming
cf0421cbb6463b3960dc581badf7d4bbe1622b7d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 for i in range(99): print("{:d} = ".format(i) + hex(i))
19.75
39
0.544304
796ac9056f9786e438def65bd4a122bd95fa2cab
11,766
py
Python
cinder/tests/unit/volume/drivers/dell_emc/powermax/powermax_fake_objects.py
dell/rhosp-powermax-deploy
c1ee6cf241220a1f2e5a05bb2b6a143954e380ac
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/powermax/powermax_fake_objects.py
dell/rhosp-powermax-deploy
c1ee6cf241220a1f2e5a05bb2b6a143954e380ac
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/powermax/powermax_fake_objects.py
dell/rhosp-powermax-deploy
c1ee6cf241220a1f2e5a05bb2b6a143954e380ac
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2019 Dell Inc. or its subsidiaries. # All Rights Reserved. # # 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...
34.810651
78
0.58907
796ac9c02b74838d5343b162d69caffad3364469
2,679
py
Python
mio/cli/ip_copy.py
Datum-Technology-Corporation/mio_platform_client_cli
74e09ae279ae44b3afd67493d90aec5d45ee7909
[ "Apache-2.0" ]
null
null
null
mio/cli/ip_copy.py
Datum-Technology-Corporation/mio_platform_client_cli
74e09ae279ae44b3afd67493d90aec5d45ee7909
[ "Apache-2.0" ]
null
null
null
mio/cli/ip_copy.py
Datum-Technology-Corporation/mio_platform_client_cli
74e09ae279ae44b3afd67493d90aec5d45ee7909
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Datum Technology Corporation # SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 ######################################################################################################################## # Licensed under the Solderpad Hardware License v 2.1 (the "License"); you may not use this file excep...
58.23913
120
0.440836
796acb4fab6b0f03b9401c600bb1e89de6a66152
5,683
py
Python
main.py
Akaito/route53-updater-docker
09ad00fbbb66e3c5b589b46ffc981f9343ff20c1
[ "Unlicense" ]
2
2019-09-08T02:27:07.000Z
2020-11-12T02:20:11.000Z
main.py
Akaito/route53-updater-docker
09ad00fbbb66e3c5b589b46ffc981f9343ff20c1
[ "Unlicense" ]
1
2020-08-10T17:14:49.000Z
2020-08-10T17:55:01.000Z
main.py
Akaito/route53-updater-docker
09ad00fbbb66e3c5b589b46ffc981f9343ff20c1
[ "Unlicense" ]
3
2020-06-17T09:25:24.000Z
2020-12-17T17:43:44.000Z
#!/usr/bin/env python3 import logging import os import socket import time from datetime import datetime from sys import exit import threading import boto3 import requests def get_ipv4(hostname): if hostname.startswith('*.'): # We want to be able to update a wildcard DNS record like # '*.example....
36.664516
124
0.571353
796acbe88c9eb8d9cc02db5b4346de5de33247ac
2,527
py
Python
src/train_index/train_index_from_java.py
githuboop/faiss-web-service
a82496179c1beb4b6c9524361513519ff473cc07
[ "Unlicense" ]
90
2019-01-02T02:03:15.000Z
2022-02-22T07:14:42.000Z
src/train_index/train_index_from_java.py
githuboop/faiss-web-service
a82496179c1beb4b6c9524361513519ff473cc07
[ "Unlicense" ]
4
2019-09-10T08:50:28.000Z
2021-04-08T07:50:14.000Z
src/train_index/train_index_from_java.py
githuboop/faiss-web-service
a82496179c1beb4b6c9524361513519ff473cc07
[ "Unlicense" ]
21
2019-02-26T11:25:30.000Z
2021-10-30T14:59:53.000Z
import numpy as np import faiss import sys import time sys.path.append("..") from utils.feature_detect import * from utils.read_array_from_java import reshape_array from config import * # prepare index dimensions = SIFT_DIMENSIONS index = faiss.index_factory(dimensions, INDEX_KEY) # index = faiss.IndexIDMap(index) if...
31.5875
94
0.636328
796accd989eac6b5c28df61d2fca90ed6bd252c3
3,633
py
Python
pptx/oxml/shapes/connector.py
handwriter/python-pptx
22351c6f9fe637cadddca3461c4899af7d439711
[ "MIT" ]
1
2020-03-20T01:47:10.000Z
2020-03-20T01:47:10.000Z
pptx/oxml/shapes/connector.py
handwriter/python-pptx
22351c6f9fe637cadddca3461c4899af7d439711
[ "MIT" ]
null
null
null
pptx/oxml/shapes/connector.py
handwriter/python-pptx
22351c6f9fe637cadddca3461c4899af7d439711
[ "MIT" ]
null
null
null
# encoding: utf-8 """ lxml custom element classes for shape-related XML elements. """ from __future__ import absolute_import from .. import parse_xml from ..ns import nsdecls from .shared import BaseShapeElement from ..simpletypes import ST_DrawingElementId, XsdUnsignedInt from ..xmlchemy import BaseOxml...
31.318966
84
0.493256
796acd6d7ebee50c8e1f8d94a9d0b3e80b92fb64
14,501
py
Python
google/ads/google_ads/v2/proto/resources/google_ads_field_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v2/proto/resources/google_ads_field_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v2/proto/resources/google_ads_field_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v2/proto/resources/google_ads_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf im...
60.420833
1,813
0.772429
796acd9931b80b787774bc7f6fdac3fd78e27219
997
py
Python
lista2/Q1-Q14/Q14.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
lista2/Q1-Q14/Q14.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
lista2/Q1-Q14/Q14.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
#Faça um programa que lê as duas notas parciais obtidas por um aluno numa disciplina ao longo #de um semestre, e calcule a sua média. A atribuição de conceitos obedece à tabela abaixo: #o Média de Aproveitamento Conceito #o Entre 9.0 e 10.0 A #o Entre 7.5 e 9.0 B #o Entre 6.0 e 7.5 C #o Entre 4.0 e 6.0 D #o Entre 4.0 ...
36.925926
94
0.709127
796acdc5a1ef97c7bbddde7b83196a9411354ed2
4,456
py
Python
IMLearn/metalearners/adaboost.py
negevh/IML.HUJI
0968ddda47a840c390af7ccce0edfb91288f217b
[ "MIT" ]
null
null
null
IMLearn/metalearners/adaboost.py
negevh/IML.HUJI
0968ddda47a840c390af7ccce0edfb91288f217b
[ "MIT" ]
null
null
null
IMLearn/metalearners/adaboost.py
negevh/IML.HUJI
0968ddda47a840c390af7ccce0edfb91288f217b
[ "MIT" ]
null
null
null
import numpy as np from typing import Callable, NoReturn from IMLearn import BaseEstimator from IMLearn.metrics import misclassification_error class AdaBoost(BaseEstimator): """ AdaBoost class for boosting a specified weak learner Attributes ---------- self.wl_: Callable[[], BaseEstimator] ...
30.312925
78
0.576975
796acff123a6adf12a2b1c66ea8983aec11efcc5
19,631
py
Python
pwndbg/heap/ptmalloc.py
przemub/pwndbg
6fd42dd5ab8ed08a88d5da458bc2a6fce4e2ef33
[ "MIT" ]
null
null
null
pwndbg/heap/ptmalloc.py
przemub/pwndbg
6fd42dd5ab8ed08a88d5da458bc2a6fce4e2ef33
[ "MIT" ]
21
2021-09-27T08:42:33.000Z
2021-10-06T13:38:13.000Z
pwndbg/heap/ptmalloc.py
przemub/pwndbg
6fd42dd5ab8ed08a88d5da458bc2a6fce4e2ef33
[ "MIT" ]
2
2021-10-02T10:20:00.000Z
2021-10-02T10:38:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import OrderedDict import gdb import pwndbg.color.memory as M import pwndbg.events import pwndbg.typeinfo from pwndbg.color import message from pwndbg.constants import ptmalloc from pwndbg.heap import heap_chain_limit # See https://sourceware.org/git/?p...
35.181004
165
0.597524
796acff6c8be61d773f0d7831a25ef3b9caa36bc
3,762
py
Python
samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ipv6-ospfv3-cfg/cd-encode-xr-ipv6-ospfv3-cfg-32-ydk.py
maccioni/ydk-py-samples
d1758694bef97327c5477e65649326c7595ce499
[ "Apache-2.0" ]
1
2021-07-08T14:02:12.000Z
2021-07-08T14:02:12.000Z
samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ipv6-ospfv3-cfg/cd-encode-xr-ipv6-ospfv3-cfg-32-ydk.py
maccioni/ydk-py-samples
d1758694bef97327c5477e65649326c7595ce499
[ "Apache-2.0" ]
null
null
null
samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ipv6-ospfv3-cfg/cd-encode-xr-ipv6-ospfv3-cfg-32-ydk.py
maccioni/ydk-py-samples
d1758694bef97327c5477e65649326c7595ce499
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, 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 applicab...
32.431034
75
0.717172
796ad1fd1f46b515de4c2b1a1657d4b4488abd59
15,657
py
Python
indico/util/marshmallow.py
sms77io/indico
1579ea16235bbe5f22a308b79c5902c85374721f
[ "MIT" ]
1
2021-06-11T20:02:10.000Z
2021-06-11T20:02:10.000Z
indico/util/marshmallow.py
sms77io/indico
1579ea16235bbe5f22a308b79c5902c85374721f
[ "MIT" ]
null
null
null
indico/util/marshmallow.py
sms77io/indico
1579ea16235bbe5f22a308b79c5902c85374721f
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2022 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import os import re from datetime import datetime, time, timedelta from uuid import UUID from dateutil im...
36.753521
113
0.616913
796ad264cb20562edf0f5b37effd968e55a9c3c5
2,706
py
Python
FinnDict/settings.py
burun/FinnDict
5c6c5bb871c05c867b2d8899b2d1301ff1b8fb1b
[ "MIT" ]
2
2015-06-20T15:48:07.000Z
2015-07-23T04:55:46.000Z
FinnDict/settings.py
burun/FinnDict
5c6c5bb871c05c867b2d8899b2d1301ff1b8fb1b
[ "MIT" ]
null
null
null
FinnDict/settings.py
burun/FinnDict
5c6c5bb871c05c867b2d8899b2d1301ff1b8fb1b
[ "MIT" ]
null
null
null
""" Django settings for FinnDict project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) i...
23.327586
71
0.705839
796ad290cc8c5e063ed5b43344d6389c45843145
853
py
Python
social/migrations/0002_dweet_initial.py
Cor4zon/Dwitter
03b239df69a72c6be3eb6f94e23b55b8306d512d
[ "BSD-3-Clause" ]
null
null
null
social/migrations/0002_dweet_initial.py
Cor4zon/Dwitter
03b239df69a72c6be3eb6f94e23b55b8306d512d
[ "BSD-3-Clause" ]
null
null
null
social/migrations/0002_dweet_initial.py
Cor4zon/Dwitter
03b239df69a72c6be3eb6f94e23b55b8306d512d
[ "BSD-3-Clause" ]
2
2022-01-03T17:23:39.000Z
2022-01-10T00:49:06.000Z
# Generated by Django 4.0.1 on 2022-01-04 23:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('social', '0001_profile_i...
32.807692
144
0.637749
796ad2f6f91fb2f2cc18b401abc3acf19665e489
672
py
Python
pytglib/api/functions/disconnect_website.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/functions/disconnect_website.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/functions/disconnect_website.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class DisconnectWebsite(Object): """ Disconnects website from the current user's Telegram account Attributes: ID (:obj:`str`): ``DisconnectWebsite`` Args: website_id (:obj:`int`): Website identifier Returns: Ok Raises: ...
20.363636
65
0.607143
796ad3194605f293a7d055b5b72e0f20298160b6
2,844
py
Python
src/pytorch_metric_learning/utils/distributed.py
mlopezantequera/pytorch-metric-learning
17fe941c5f8ff1177c577d94518bf01a8d035747
[ "MIT" ]
1
2020-12-31T07:18:46.000Z
2020-12-31T07:18:46.000Z
src/pytorch_metric_learning/utils/distributed.py
sophiaas/pytorch-metric-learning
1fb343124d15fd2f63d535df26aa1463daf4ceee
[ "MIT" ]
null
null
null
src/pytorch_metric_learning/utils/distributed.py
sophiaas/pytorch-metric-learning
1fb343124d15fd2f63d535df26aa1463daf4ceee
[ "MIT" ]
null
null
null
import torch from torch.nn.parallel import DistributedDataParallel as DDP from ..utils import common_functions as c_f # modified from https://github.com/allenai/allennlp def is_distributed(): return torch.distributed.is_available() and torch.distributed.is_initialized() # modified from https://github.com/JohnG...
39.5
93
0.71308
796ad33fb0f26655b6ab4162f8949d3baf5cdacf
1,301
py
Python
ch05/05_23.py
leeseedong/book-cryptocurrency
58c0bb3f5a80f8cc73ba47c4839be3bd33c9d67c
[ "Apache-2.0" ]
121
2019-03-23T13:53:06.000Z
2022-03-28T15:15:03.000Z
ch05/05_23.py
leeseedong/book-cryptocurrency
58c0bb3f5a80f8cc73ba47c4839be3bd33c9d67c
[ "Apache-2.0" ]
3
2021-04-14T14:31:26.000Z
2021-05-09T13:46:14.000Z
ch05/05_23.py
leeseedong/book-cryptocurrency
58c0bb3f5a80f8cc73ba47c4839be3bd33c9d67c
[ "Apache-2.0" ]
114
2019-03-21T13:43:03.000Z
2022-03-31T18:42:11.000Z
import sys from PyQt5.QtWidgets import * from PyQt5 import uic from PyQt5.QtCore import * import pybithumb tickers = ["BTC", "ETH", "BCH", "ETC"] form_class = uic.loadUiType("bull.ui")[0] class MyWindow(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) ti...
27.104167
75
0.622598
796ad3bc546e761712bc13fe8cd5bd48bdb3d100
2,307
py
Python
setup.py
atuleu/tf-convex-polygons-iou
68f4284a0c3449f493ee8412f33ac43f20d4b859
[ "MIT" ]
1
2022-03-30T14:35:26.000Z
2022-03-30T14:35:26.000Z
setup.py
atuleu/tf-convex-polygon-iou
14c01bebdffd2091c0fdf535e36318258c4907ff
[ "MIT" ]
null
null
null
setup.py
atuleu/tf-convex-polygon-iou
14c01bebdffd2091c0fdf535e36318258c4907ff
[ "MIT" ]
null
null
null
"""Convex quad IoU for tensorflow. This packages proposes a function to efficiently compute IoU matrices for two set of convex quads. """ from pathlib import Path import sys from setuptools import Distribution, find_packages, setup, Extension DOCLINES = __doc__.split("\n") project_name = 'tf-convex-quad-iou-atuleu'...
31.60274
77
0.655397
796ad620c40a2c14c3945bd9fd46561165bd2cc7
23,453
py
Python
tests/st/auto_monad/test_auto_monad_mindtester.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
1
2021-07-03T06:52:20.000Z
2021-07-03T06:52:20.000Z
tests/st/auto_monad/test_auto_monad_mindtester.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
tests/st/auto_monad/test_auto_monad_mindtester.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
33.552217
99
0.658636
796ad639e4ac984625a260460034547d067fcf94
3,984
py
Python
win32/Demos/win32gui_devicenotify.py
zhanqxun/cv_fish
f78f4f5bdafb070c179efee8b9276719dfaef1d7
[ "Apache-2.0" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/win32/Demos/win32gui_devicenotify.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/win32/Demos/win32gui_devicenotify.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
4
2021-02-11T03:51:39.000Z
2021-02-12T05:10:43.000Z
# Demo RegisterDeviceNotification etc. Creates a hidden window to receive # notifications. See serviceEvents.py for an example of a service doing # that. import sys, time import win32gui, win32con, win32api, win32file import win32gui_struct, winnt # These device GUIDs are from Ioevent.h in the Windows SDK. I...
48
133
0.653865
796ad7559f719f9baf30f17f0eedd5a2191df776
1,604
py
Python
config/urls.py
swappsco/django-base
dae1a783a05bd55893877ba674816ab11e6af665
[ "MIT" ]
null
null
null
config/urls.py
swappsco/django-base
dae1a783a05bd55893877ba674816ab11e6af665
[ "MIT" ]
1
2018-07-29T03:39:09.000Z
2018-07-29T03:39:09.000Z
config/urls.py
swappsco/django-base
dae1a783a05bd55893877ba674816ab11e6af665
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpat...
38.190476
110
0.694514
796ad83027575562d7c2b3e247cd549c8df93a94
4,976
py
Python
build/make-certs.py
pratibhagupta2109/dss
88affd43dd3b96f116d56faa11813a0718a6889e
[ "Apache-2.0" ]
58
2019-10-03T19:15:47.000Z
2022-03-09T16:50:47.000Z
build/make-certs.py
pratibhagupta2109/dss
88affd43dd3b96f116d56faa11813a0718a6889e
[ "Apache-2.0" ]
283
2019-09-30T18:35:02.000Z
2022-03-29T13:36:53.000Z
build/make-certs.py
pratibhagupta2109/dss
88affd43dd3b96f116d56faa11813a0718a6889e
[ "Apache-2.0" ]
51
2019-10-08T18:47:36.000Z
2022-03-23T08:44:06.000Z
#!/usr/bin/env python3 import argparse import itertools import glob import os import shutil import subprocess class CockroachCluster(object): def __init__(self, cluster_context, namespace, ca_cert_to_join=None): self._ca_cert_to_join = ca_cert_to_join self._cluster_context = cluster_context ...
33.173333
90
0.66037
796ad84b8373846e8ce387ff0e29247bd8e0058b
20,243
py
Python
web3/eth.py
smudgil/web3.py
c2a39301468cd6db8f910a74273b0729b4d3556f
[ "MIT" ]
null
null
null
web3/eth.py
smudgil/web3.py
c2a39301468cd6db8f910a74273b0729b4d3556f
[ "MIT" ]
null
null
null
web3/eth.py
smudgil/web3.py
c2a39301468cd6db8f910a74273b0729b4d3556f
[ "MIT" ]
null
null
null
from typing import ( Any, Callable, List, NoReturn, Optional, Sequence, Tuple, Type, Union, cast, overload, ) import warnings from eth_account import ( Account, ) from eth_typing import ( Address, BlockNumber, ChecksumAddress, HexStr, ) from eth_utils imp...
30.858232
120
0.650694
796ad84f9868410e9d1e1cba18f83d45c475e7eb
9,157
py
Python
test/orm/test_sync.py
immerrr/sqlalchemy
995fb577a64061a9cbab62b481c65a4c4d3e5a67
[ "MIT" ]
1
2020-07-21T16:06:40.000Z
2020-07-21T16:06:40.000Z
test/orm/test_sync.py
taogeYT/sqlalchemy
e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f
[ "MIT" ]
4
2020-04-23T19:00:28.000Z
2021-09-28T18:14:58.000Z
test/orm/test_sync.py
taogeYT/sqlalchemy
e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f
[ "MIT" ]
null
null
null
from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import testing from sqlalchemy.orm import attributes from sqlalchemy.orm import class_mapper from sqlalchemy.orm import exc as orm_exc from sqlalchemy.orm import sync from sqlalchemy.orm import unitofwork from sqlalchemy.testing import ass...
33.665441
77
0.576717
796ad886a188765ad874adeb058eb910c3d74aca
959
py
Python
Dalitz/gaussian_samples/legendre/plot_distribution.py
weissercn/MLTools
75dc566947437249ad077939941839126eb20016
[ "MIT" ]
1
2018-04-15T22:26:59.000Z
2018-04-15T22:26:59.000Z
learningml/GoF/data/accept_reject/old_plot_distribution.py
weissercn/learningml
bd784798b846f76e00a3bbb0fb1acf6a1317be12
[ "MIT" ]
null
null
null
learningml/GoF/data/accept_reject/old_plot_distribution.py
weissercn/learningml
bd784798b846f76e00a3bbb0fb1acf6a1317be12
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt #2D double gauss scatter features=np.loadtxt("gauss_data/data_double_high2Dgauss_10000_0.25_0.75_0.1_0.0_0.txt",dtype='d') plt.figure() plt.plot(features[:,0], features[:,1],'.') plt.xlim(0,1) plt.ylim(0,1) plt.savefig("double_gauss_noCPV.png") #1D double gauss histo...
25.918919
97
0.749739
796ad90343f6bc56f8c2d2f8b4c1369f4a88c5dc
7,175
py
Python
control/tests/descfcn_test.py
AI-App/Python-Control
c2f6f8ab94bbc8b5ef1deb33c3d2df39e00d22bf
[ "BSD-3-Clause" ]
1,112
2015-01-14T08:01:33.000Z
2022-03-31T11:54:00.000Z
control/tests/descfcn_test.py
AI-App/Python-Control
c2f6f8ab94bbc8b5ef1deb33c3d2df39e00d22bf
[ "BSD-3-Clause" ]
646
2015-02-02T15:35:23.000Z
2022-03-30T08:19:26.000Z
control/tests/descfcn_test.py
AI-App/Python-Control
c2f6f8ab94bbc8b5ef1deb33c3d2df39e00d22bf
[ "BSD-3-Clause" ]
366
2015-01-28T17:58:06.000Z
2022-03-29T11:04:10.000Z
"""descfcn_test.py - test describing functions and related capabilities RMM, 23 Jan 2021 This set of unit tests covers the various operatons of the descfcn module, as well as some of the support functions associated with static nonlinearities. """ import pytest import numpy as np import control as ct import math f...
36.42132
78
0.697979
796ad903b285fe8b570eee8e705d5fb8b801cbab
146
py
Python
tests/web_platform/css_flexbox_1/test_flex_wrap_wrap.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_flexbox_1/test_flex_wrap_wrap.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_flexbox_1/test_flex_wrap_wrap.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestFlexWrap_Wrap(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flex-wrap_wrap'))
24.333333
69
0.794521
796ada292a885e9f894baa4ede827def2c5f7d83
457
py
Python
navigator/migrations/0007_object_comments.py
chrisrburns/obstool
fa999b0790a5cfc5063acb6535d8cc6e844dfd0b
[ "MIT" ]
null
null
null
navigator/migrations/0007_object_comments.py
chrisrburns/obstool
fa999b0790a5cfc5063acb6535d8cc6e844dfd0b
[ "MIT" ]
null
null
null
navigator/migrations/0007_object_comments.py
chrisrburns/obstool
fa999b0790a5cfc5063acb6535d8cc6e844dfd0b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('navigator', '0006_auto_20150912_1018'), ] operations = [ migrations.AddField( model_name='object', n...
21.761905
67
0.608315
796adad91f96c16720743be497fe5735aa7aadd5
2,760
py
Python
check_file.py
Bensuperpc/CheckFile
425f6aa77578c758892f9b8ab84b4fef46ddf976
[ "MIT" ]
null
null
null
check_file.py
Bensuperpc/CheckFile
425f6aa77578c758892f9b8ab84b4fef46ddf976
[ "MIT" ]
null
null
null
check_file.py
Bensuperpc/CheckFile
425f6aa77578c758892f9b8ab84b4fef46ddf976
[ "MIT" ]
null
null
null
from multiprocessing.dummy import Pool as ThreadPool import time import multiprocessing as mp from pathlib import Path import pathlib import sys import time import os import sys import hashlib import json update = False if len(sys.argv) >= 2: if sys.argv[1] == '-update' or sys.argv[1] == '-u': update = ...
24.864865
80
0.626812
796adbd2e6897717d26d9a92bac1226607bec1ea
1,172
py
Python
moviefetch.py
kartikanand/moviefetch
3d43e571f53316ad753398cafa55aaf28ae95a68
[ "MIT" ]
null
null
null
moviefetch.py
kartikanand/moviefetch
3d43e571f53316ad753398cafa55aaf28ae95a68
[ "MIT" ]
null
null
null
moviefetch.py
kartikanand/moviefetch
3d43e571f53316ad753398cafa55aaf28ae95a68
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os import re import sys import requests OMDB_API_URL = 'https://www.omdbapi.com' pattern = re.compile('([^\s\w]|_)+') def find_movie(name, year=None): # strip characters other than alpha-numeric # for some movies this has a better chance of a direct hit name = pattern.sub('...
21.309091
62
0.634812
796adc07bc013df39f5616c16f01fce4a121500d
3,797
py
Python
setup.py
neverna-ptitsa/yanytapi
3331ec62f6e2d5ca702e9239195d5730457e991a
[ "MIT" ]
1
2019-11-08T18:23:43.000Z
2019-11-08T18:23:43.000Z
setup.py
neverna-ptitsa/yanytapi
3331ec62f6e2d5ca702e9239195d5730457e991a
[ "MIT" ]
null
null
null
setup.py
neverna-ptitsa/yanytapi
3331ec62f6e2d5ca702e9239195d5730457e991a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from yanytapi import __version__ as version from setuptools import find_packages, setup, Command # Package meta-data. NAME...
28.548872
86
0.646036
796add4c15e503888129c3bb23287a96ed81c4e7
2,269
py
Python
Python/Services/DocumentPreparer.py
GermanYakimov/Text_tone_analyzer
7536f680275c6a458dcc22f99b509ca2253103c3
[ "Apache-2.0" ]
12
2018-02-20T14:08:13.000Z
2020-07-20T03:25:16.000Z
Python/Services/DocumentPreparer.py
GermanYakimov/Text_tone_analyzer
7536f680275c6a458dcc22f99b509ca2253103c3
[ "Apache-2.0" ]
1
2020-09-03T14:14:25.000Z
2020-10-18T12:16:24.000Z
Python/Services/DocumentPreparer.py
alcatraz-rm/Text_tone_analyzer
7536f680275c6a458dcc22f99b509ca2253103c3
[ "Apache-2.0" ]
5
2017-12-13T12:14:08.000Z
2020-08-05T19:33:32.000Z
# Copyright © 2018. All rights reserved. # Author: German Yakimov # 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 appl...
32.414286
105
0.624504
796addf196e9accbdf7a9527b6d3b67ca7654123
2,215
py
Python
handle_dat_edge.py
Questions1/Rong360_2nd
342f202e2a638a5775e1ca994111b250a1d9c309
[ "MIT" ]
107
2018-11-29T12:21:11.000Z
2022-03-24T03:39:17.000Z
handle_dat_edge.py
Jie-Yuan/Rong360_2nd
342b20dc3fb1a1b41d683532c6c22757309e0bb5
[ "MIT" ]
2
2018-11-30T03:10:15.000Z
2019-03-13T13:49:27.000Z
handle_dat_edge.py
Jie-Yuan/Rong360_2nd
342b20dc3fb1a1b41d683532c6c22757309e0bb5
[ "MIT" ]
35
2018-12-07T06:21:17.000Z
2022-03-27T14:44:44.000Z
import os import numpy as np import pandas as pd from data_preprocess import time_pass @time_pass def handle_dat_edge(data_all): """ 把dat_edge个每一条记录的info拆开,然后输出,方便后续的计算 为了简化计算,忽略时间信息,把所有的月份的联系记录汇总起来 """ def cal_multi_3(string): s = string.split(',') month_times = len(s) df...
37.542373
108
0.668623
796ade099f0acb60ec998115d1ec6b83f27ecc22
6,574
py
Python
regular_language/unit_tests/test_ast_helper.py
ShoYamanishi/nlpregex
795b36d5a2fad8bc25264b2093ffa9c3723b282b
[ "MIT" ]
1
2021-12-03T07:20:18.000Z
2021-12-03T07:20:18.000Z
regular_language/unit_tests/test_ast_helper.py
ShoYamanishi/nlpregex
795b36d5a2fad8bc25264b2093ffa9c3723b282b
[ "MIT" ]
null
null
null
regular_language/unit_tests/test_ast_helper.py
ShoYamanishi/nlpregex
795b36d5a2fad8bc25264b2093ffa9c3723b282b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Unit test helper class for ast. """ import nlpregex.regular_language.ast class test_AST_helper(): def __init__(self): pass def strip(self, spec): out_str = '' lines = spec.split('\n') for line in lines: ...
27.738397
93
0.486766
796aded780df409b03a1997245ea3d6b89384ba2
512
py
Python
src/file_syncer/main/cli/list_command.py
slively/python-patterns
049c0c780346525f5fb454c779a9e666395bd5cb
[ "MIT" ]
null
null
null
src/file_syncer/main/cli/list_command.py
slively/python-patterns
049c0c780346525f5fb454c779a9e666395bd5cb
[ "MIT" ]
null
null
null
src/file_syncer/main/cli/list_command.py
slively/python-patterns
049c0c780346525f5fb454c779a9e666395bd5cb
[ "MIT" ]
null
null
null
import argparse from src.file_syncer.main.dir_reader.dir_reader_ctrl import DirReaderCtrl from src.file_syncer.main.utils.common_args import add_dir_arg from src.utils.main.cli_utils import BaseCliCommand class ListCommand(BaseCliCommand): def add_arguments(self, parser: argparse.ArgumentParser) -> None: ...
34.133333
73
0.753906
796adf2e8189602665e89003ae45749776f1d63f
12,912
py
Python
src/runner/trainers/base_trainer.py
cmlab-mira/template
ae462f6eed9f3aa71d130c281c01c22fe0124a7b
[ "MIT" ]
4
2019-08-10T16:56:55.000Z
2020-02-21T03:42:41.000Z
src/runner/trainers/base_trainer.py
cmlab-mira/template
ae462f6eed9f3aa71d130c281c01c22fe0124a7b
[ "MIT" ]
19
2019-05-21T12:48:37.000Z
2020-04-01T09:56:42.000Z
src/runner/trainers/base_trainer.py
cmlab-mira/template
ae462f6eed9f3aa71d130c281c01c22fe0124a7b
[ "MIT" ]
1
2019-08-09T17:06:56.000Z
2019-08-09T17:06:56.000Z
import importlib import logging import math import random import torch import numpy as np from torch.optim.lr_scheduler import ( CyclicLR, OneCycleLR, CosineAnnealingWarmRestarts, ReduceLROnPlateau ) from tqdm import tqdm from src.runner.utils import EpochLog LOGGER = logging.getLogger(__name__.split('.')[-1]) ...
45.146853
112
0.576673
796adfdf9dab7f07481328026bb21591a7aa5612
2,737
py
Python
youtube_dl/extractor/rds.py
builder07/ytdl
2c0a5d50af7ecc7302c813d649ee72dcd457a50a
[ "Unlicense" ]
10
2020-05-29T03:20:03.000Z
2022-03-29T01:05:20.000Z
youtube_dl/extractor/rds.py
builder07/ytdl
2c0a5d50af7ecc7302c813d649ee72dcd457a50a
[ "Unlicense" ]
5
2016-04-22T01:33:31.000Z
2016-08-04T15:33:19.000Z
youtube_dl/extractor/rds.py
builder07/ytdl
2c0a5d50af7ecc7302c813d649ee72dcd457a50a
[ "Unlicense" ]
9
2020-05-29T03:21:02.000Z
2021-04-14T03:26:05.000Z
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( parse_duration, parse_iso8601, ) class RDSIE(InfoExtractor): IE_DESC = 'RDS.ca' _VALID_URL = r'https?://(?:www\.)?rds\.ca/vid(?:[eé]|%C3%A9)os/(?:[^/]+/)*(?P<display_id>[^/]+)-(?...
36.986486
117
0.564487
796adfe4229c338cd173001b8a71671567c304ff
1,010
py
Python
client/modules/xbmc/next show.py
DarthToker/jasper-client-TokerWare-
12a65146e36462de94e7a05b7df8736fa615a1eb
[ "MIT" ]
1
2016-09-29T03:36:34.000Z
2016-09-29T03:36:34.000Z
client/modules/xbmc/next show.py
DarthToker/jasper-client-TokerWare-
12a65146e36462de94e7a05b7df8736fa615a1eb
[ "MIT" ]
null
null
null
client/modules/xbmc/next show.py
DarthToker/jasper-client-TokerWare-
12a65146e36462de94e7a05b7df8736fa615a1eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8-*- import random import re import jasperpath from xbmcjson import XBMC, PLAYER_VIDEO #mark1 new_word = "CHANGE IT" message = "changing it" xbmc = XBMC("http://192.168.42.142/jsonrpc", "darthtoker", "Garfield76") WORDS = ("%s" %new_word) PRIORITY = 4 def handle(self, text, mic, profile): """ ...
25.897436
73
0.626733
796ae0bc8a09047fa9ad6e59f64d5c7023eb9c20
776
py
Python
backend/backend/api/serializers.py
CiaraGalvin1999/fyp
9869eb9008b8f7530bfa72a312e61aec157df2c5
[ "MIT" ]
null
null
null
backend/backend/api/serializers.py
CiaraGalvin1999/fyp
9869eb9008b8f7530bfa72a312e61aec157df2c5
[ "MIT" ]
null
null
null
backend/backend/api/serializers.py
CiaraGalvin1999/fyp
9869eb9008b8f7530bfa72a312e61aec157df2c5
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework import serializers class CreateUserSerializer(serializers.ModelSerializer): username = serializers.CharField() password = serializers.CharField(write_only=True, style={'input_type': 'password'}) class M...
38.8
77
0.66366
796ae0e30f5a94d8e3cb3c05c6fc1570572ec721
2,552
py
Python
pycatia/part_interfaces/linear_repartition.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
90
2019-02-21T10:05:28.000Z
2022-03-19T01:53:41.000Z
pycatia/part_interfaces/linear_repartition.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
99
2019-05-21T08:29:12.000Z
2022-03-25T09:55:15.000Z
pycatia/part_interfaces/linear_repartition.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
26
2019-04-04T06:31:36.000Z
2022-03-30T07:24:47.000Z
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
34.958904
108
0.545846
796ae12a74e383ecfef06a82ebbda367c20a6edf
1,800
py
Python
tf2onnx/tflite/UniqueOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/tflite/UniqueOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/tflite/UniqueOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class UniqueOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset...
35.294118
114
0.711111
796ae1300cee080a6f2e7703665b013da4c95a0e
1,089
py
Python
greedy/minimum_coins/python/minimum_coins.py
bakuryuthem0/al-go-rithms
8ad4b65a988740525585ecae2b6f0b815cdbcd66
[ "CC0-1.0" ]
4
2019-10-11T06:12:18.000Z
2021-08-01T14:24:18.000Z
greedy/minimum_coins/python/minimum_coins.py
bakuryuthem0/al-go-rithms
8ad4b65a988740525585ecae2b6f0b815cdbcd66
[ "CC0-1.0" ]
1
2020-10-09T18:51:53.000Z
2020-10-09T18:51:53.000Z
greedy/minimum_coins/python/minimum_coins.py
bakuryuthem0/al-go-rithms
8ad4b65a988740525585ecae2b6f0b815cdbcd66
[ "CC0-1.0" ]
12
2018-10-10T20:45:27.000Z
2021-07-22T09:46:30.000Z
def minimum_coins(value, denominations): result = [] # Assuming denominations is sorted in descendig order for cur_denom in denominations: while cur_denom <= value: result.append(cur_denom) value = value - cur_denom return result # Testing def test(): scenarios = [...
35.129032
159
0.481175
796ae14f4e6099f1f3c909175198c6bfa6cc47a5
16,477
py
Python
research/object_detection/meta_architectures/rfcn_meta_arch.py
azmiozgen/models
7bbece2d9296380b42757030899109116a533b9f
[ "Apache-2.0" ]
862
2019-12-11T18:40:48.000Z
2022-03-29T15:23:58.000Z
research/object_detection/meta_architectures/rfcn_meta_arch.py
azmiozgen/models
7bbece2d9296380b42757030899109116a533b9f
[ "Apache-2.0" ]
33
2019-12-20T12:57:53.000Z
2022-03-12T01:10:15.000Z
research/object_detection/meta_architectures/rfcn_meta_arch.py
azmiozgen/models
7bbece2d9296380b42757030899109116a533b9f
[ "Apache-2.0" ]
165
2019-12-11T20:04:22.000Z
2022-03-29T06:18:12.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
51.170807
80
0.71445
796ae175a98b6dbbe9a992b9ee858d4ada410156
2,067
py
Python
Ex_Files_ML_EssT_Recommendations/Exercise Files/Chapter 5/find_similar_products.py
thatguyandy27/python-sandbox
33dffa286aee942c93c75303ab463313020bbd7a
[ "MIT" ]
null
null
null
Ex_Files_ML_EssT_Recommendations/Exercise Files/Chapter 5/find_similar_products.py
thatguyandy27/python-sandbox
33dffa286aee942c93c75303ab463313020bbd7a
[ "MIT" ]
null
null
null
Ex_Files_ML_EssT_Recommendations/Exercise Files/Chapter 5/find_similar_products.py
thatguyandy27/python-sandbox
33dffa286aee942c93c75303ab463313020bbd7a
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matrix_factorization_utilities # Load user ratings df = pd.read_csv('movie_ratings_data_set.csv') # Load movie titles movies_df = pd.read_csv('movies.csv', index_col='movie_id') # Convert the running list of user ratings into a matrix ratings_df = pd.pivot_table(df, inde...
35.637931
103
0.727141
796ae1bdd27e59c0ea62897bcfd2c863da34770b
4,602
py
Python
test/mitmproxy/test_addonmanager.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
1
2017-12-27T09:05:23.000Z
2017-12-27T09:05:23.000Z
test/mitmproxy/test_addonmanager.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
null
null
null
test/mitmproxy/test_addonmanager.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
2
2018-09-03T19:26:31.000Z
2019-04-08T23:05:15.000Z
import pytest from unittest import mock from mitmproxy import addons from mitmproxy import addonmanager from mitmproxy import exceptions from mitmproxy import options from mitmproxy import command from mitmproxy import master from mitmproxy.test import taddons from mitmproxy.test import tflow class TAddon: def ...
22.895522
68
0.599957
796ae2b7522e67fa1b301fb8ff4a42fbd4c02942
2,267
py
Python
convert_roms_arduino.py
chris-torrence/arduino-at28c64
3bb23ee0db8b27bd6272c5aa7d0c69556d3ce388
[ "MIT" ]
null
null
null
convert_roms_arduino.py
chris-torrence/arduino-at28c64
3bb23ee0db8b27bd6272c5aa7d0c69556d3ce388
[ "MIT" ]
null
null
null
convert_roms_arduino.py
chris-torrence/arduino-at28c64
3bb23ee0db8b27bd6272c5aa7d0c69556d3ce388
[ "MIT" ]
null
null
null
# Read in an Apple II character generator ROM, # make an image of the characters, # then write out the bytes as an Arduino header file # Chris Torrence, May 2016 import numpy as np import matplotlib.pyplot as plt from time import localtime, strftime def drawCharacters(data): """ Create a character map image from a...
35.984127
79
0.640053
796ae354f2713dd2762a6347bcff40c4f6262e19
129
py
Python
ContactApp/admin.py
KaziFarhanuddin/Voting-website-with-django
0e6f8207f1ea78d410f35c7bec3cff6df0105584
[ "MIT" ]
1
2021-08-28T16:06:59.000Z
2021-08-28T16:06:59.000Z
ContactApp/admin.py
KaziFarhanuddin/Voting-website-with-django
0e6f8207f1ea78d410f35c7bec3cff6df0105584
[ "MIT" ]
5
2021-04-08T18:42:47.000Z
2022-01-13T01:00:10.000Z
ContactApp/admin.py
KaziFarhanuddin/Voting-website-with-django
0e6f8207f1ea78d410f35c7bec3cff6df0105584
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ContactModel # Register your models here. admin.site.register(ContactModel)
25.8
33
0.829457