hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c18f09b8f5369b2d98ea558dbc26227c15367da2
131
py
Python
2344.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
2344.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
2344.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
n = int(input()) if n == 0: print('E') elif n <= 35: print('D') elif n <= 60: print('C') elif n <= 85: print('B') else: print('A')
18.714286
24
0.519084
0
0
0
0
0
0
0
0
15
0.114504
c18f1ada21fe45a22c35f613a302bd0bd45fb736
871
py
Python
tests/test_Sk.py
sambit-giri/DMemu
1827832efdab2dfcb735035b6956854e34d17202
[ "MIT" ]
3
2021-08-23T14:50:38.000Z
2022-02-25T11:06:05.000Z
tests/test_Sk.py
sambit-giri/BCMemu
3b2afb1fb3be09f98a7730e7a5ff18baafd8660e
[ "MIT" ]
null
null
null
tests/test_Sk.py
sambit-giri/BCMemu
3b2afb1fb3be09f98a7730e7a5ff18baafd8660e
[ "MIT" ]
null
null
null
import numpy as np import pickle from BCMemu import * ### Cosmology Ob, Om = 0.0463, 0.2793 bcmdict = {'log10Mc': 13.32, 'mu' : 0.93, 'thej' : 4.235, 'gamma' : 2.25, 'delta' : 6.40, 'eta' : 0.15, 'deta' : 0.14, } k_eval = 10**np.linspace(-1,1.08,50) def test_BCM_7p...
31.107143
182
0.619977
0
0
0
0
0
0
0
0
136
0.156142
c18ff04ae0b27c497f2250200b6017afaacf3341
271
py
Python
main/forms.py
levertco/stactistics
a62ba5e43b6ffb22f8b22d974aa4942d133bf7d1
[ "MIT" ]
null
null
null
main/forms.py
levertco/stactistics
a62ba5e43b6ffb22f8b22d974aa4942d133bf7d1
[ "MIT" ]
3
2021-03-19T03:26:02.000Z
2021-06-10T21:55:35.000Z
main/forms.py
levertco/stactistics
a62ba5e43b6ffb22f8b22d974aa4942d133bf7d1
[ "MIT" ]
null
null
null
from django import forms from .models import Review,Website class WebsiteForm(forms.ModelForm): class Meta: model= Website exclude= ['reviews','owner'] class ReviewForm(forms.ModelForm): class Meta: model= Review fields='__all__'
22.583333
36
0.671587
208
0.767528
0
0
0
0
0
0
25
0.092251
c1911e4814c500c6d717e67d052d56f8aad603a6
1,693
py
Python
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
1
2021-06-15T22:14:22.000Z
2021-06-15T22:14:22.000Z
import re from django import forms from django.utils.translation import gettext_lazy as _ from usuarios.models import Usuario class RegistroForm(forms.Form): REGEX_USERNAME = r'^[a-zA-Z0-9]([._-](?![._-])|[a-zA-Z0-9]){3,18}[a-zA-Z0-9]$' username = forms.CharField( max_length=100, label=_('U...
26.873016
84
0.604843
1,569
0.923484
0
0
0
0
0
0
304
0.178929
c191569683e9fab2fbe1691bb0fddbc792e5b431
1,586
py
Python
main-bme280-thread.py
obviateio/micropython-esp32
9b10e1fd96a0ef80ddd6ced79d0ab1a941da4870
[ "MIT" ]
null
null
null
main-bme280-thread.py
obviateio/micropython-esp32
9b10e1fd96a0ef80ddd6ced79d0ab1a941da4870
[ "MIT" ]
null
null
null
main-bme280-thread.py
obviateio/micropython-esp32
9b10e1fd96a0ef80ddd6ced79d0ab1a941da4870
[ "MIT" ]
null
null
null
# Originally from: # https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/blob/master/MicroPython_BUILD/components/micropython/esp32/modules_examples/bme280.py import machine, _thread, time import micropython, gc import bme280 i2c=machine.I2C(scl=machine.Pin(22),sda=machine.Pin(21),speed=400000) bme=bme280.BME280(i2...
36.883721
153
0.594578
0
0
0
0
0
0
0
0
253
0.159521
c191d5b851aa17930934dfcfc06e7f9a47195619
1,644
py
Python
preprocess_package/test_pdf2crops.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
1
2021-08-02T01:51:35.000Z
2021-08-02T01:51:35.000Z
preprocess_package/test_pdf2crops.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
1
2021-11-03T08:58:30.000Z
2021-11-03T08:58:30.000Z
preprocess_package/test_pdf2crops.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
null
null
null
from preprocess_package.pdf2pages import pdf2pages from preprocess_package.cut_images import cut_images_save import os import cv2 pwd = os.getcwd() image_index = 1 if __name__ == '__main__': imgs_file_path = './pictures/发票扫描图片' failed_imgs_file_path = './pictures/failed_images' single_img_file_path = './...
33.55102
113
0.631995
0
0
0
0
0
0
0
0
847
0.494743
c19246725b954f2f43ba88f9e9c66c4d573ae9a3
1,238
py
Python
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
# bot.py import os from discord.ext import commands from dotenv import load_dotenv from rachmaninoff_bot import RachmaninoffBot from cogs.general_cog import GeneralCog from cogs.weather_cog import WeatherCog from cogs.traffic_cog import TrafficCog from cogs.covid_cog import CovidCog from cogs.stock_cog import StockCog ...
32.578947
80
0.710824
0
0
0
0
0
0
0
0
99
0.079968
c192bf77330b23f5e695e3815dc856ee252d5e96
5,305
py
Python
geeker/mylog/log_config.py
4379711/functools_lyl
61b6cdbf304d3eacbffcbf85a27ecf72d3d275d8
[ "MIT" ]
1
2019-07-23T09:35:35.000Z
2019-07-23T09:35:35.000Z
geeker/mylog/log_config.py
4379711/functools_lyl
61b6cdbf304d3eacbffcbf85a27ecf72d3d275d8
[ "MIT" ]
null
null
null
geeker/mylog/log_config.py
4379711/functools_lyl
61b6cdbf304d3eacbffcbf85a27ecf72d3d275d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import logging.handlers from logging.handlers import TimedRotatingFileHandler import gzip import os import time from geeker.functions import Singleton class GzTimedRotatingFileHandler(TimedRotatingFileHandler): def __init__(self, filename, when, interval, **kwar...
37.359155
114
0.532328
5,207
0.960878
0
0
239
0.044104
0
0
735
0.135634
c1957a877ea69974035f42a8db38ff5234fcd531
13,245
py
Python
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
null
null
null
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
2
2022-01-23T20:27:16.000Z
2022-01-30T15:51:35.000Z
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
1
2022-01-23T22:16:07.000Z
2022-01-23T22:16:07.000Z
import json import logging from binance.helpers import round_step_size from sqlalchemy import false from ..enums import * import bson import abc import itertools from ..objects import EState, EOrderType, ECommand, EnhancedJSONEncoder from ..utils import safe_sum, round_step_downward, truncate, safe_multiply, safe_subst...
44.003322
174
0.649
12,792
0.965798
0
0
10,915
0.824085
7,178
0.54194
6,038
0.45587
c198314254036559bc40906b82bd6eec9b2cf13a
4,150
py
Python
ohos/ndk/archive_ndk.py
ShadowCCY/build
5c88ebad21093ef816087c9160bda8e5e9035008
[ "Apache-2.0" ]
null
null
null
ohos/ndk/archive_ndk.py
ShadowCCY/build
5c88ebad21093ef816087c9160bda8e5e9035008
[ "Apache-2.0" ]
14
2021-09-07T08:39:43.000Z
2021-09-17T08:50:23.000Z
ohos/ndk/archive_ndk.py
ShadowCCY/build
5c88ebad21093ef816087c9160bda8e5e9035008
[ "Apache-2.0" ]
1
2021-09-07T06:19:48.000Z
2021-09-07T06:19:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021 Huawei Device 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 # #...
39.150943
78
0.604819
0
0
0
0
0
0
0
0
986
0.23759
c1983d2c626217431ca80bafdd345d71048cc22d
587
py
Python
lib/utils/utils.py
PaperCodeSubmission/ICML2020-697
00f7732c236b9c6234e76a47dfebe5de314d5c01
[ "MIT" ]
12
2019-09-26T01:55:25.000Z
2020-01-21T06:53:04.000Z
lib/utils/utils.py
PaperCodeSubmission/ICML2020-697
00f7732c236b9c6234e76a47dfebe5de314d5c01
[ "MIT" ]
2
2021-08-09T03:53:26.000Z
2021-08-18T10:16:25.000Z
lib/utils/utils.py
PaperCodeSubmission/ICML2020-697
00f7732c236b9c6234e76a47dfebe5de314d5c01
[ "MIT" ]
4
2021-06-09T06:02:15.000Z
2021-10-05T13:33:15.000Z
import numpy as np """ some really utils functions """ def get_score_label_array_from_dict(score_dict, label_dict): """ :param score_dict: defaultdict(list) :param label_dict: defaultdict(list) :return: np array with score and label """ assert len(score_dict) == len(label_dict), "The score_di...
27.952381
90
0.678024
0
0
0
0
0
0
0
0
214
0.364566
c19b573ce46ab404e883f0fd6d1da1c94abd41bc
512
py
Python
algorithms/Python/implementation/bon appetit.py
Kumbong/hackerrank
36125f3a17c3e0f1fa889495e8ad33b0aa424552
[ "MIT" ]
8
2019-09-19T19:38:09.000Z
2022-02-14T13:59:37.000Z
algorithms/Python/implementation/bon appetit.py
Kumbong/hacker-rank
36125f3a17c3e0f1fa889495e8ad33b0aa424552
[ "MIT" ]
null
null
null
algorithms/Python/implementation/bon appetit.py
Kumbong/hacker-rank
36125f3a17c3e0f1fa889495e8ad33b0aa424552
[ "MIT" ]
7
2019-09-23T13:17:27.000Z
2022-01-27T18:02:16.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the bonAppetit function below. def bonAppetit(bill, k, b): sum = 0 for i in bill: sum+=i sum = sum - bill[k] if sum//2 == b: print('Bon Appetit') else: print(b-(sum//2)) if __name__ == '__ma...
16
51
0.556641
0
0
0
0
0
0
0
0
78
0.152344
c19b66b11e8920b6ef16169525e7de5c6d536e86
3,675
py
Python
tests/test_expr_where.py
alexkyllo/kusto-tool
c7689dfa363a1c8d40532cc7929570154fe82307
[ "MIT" ]
null
null
null
tests/test_expr_where.py
alexkyllo/kusto-tool
c7689dfa363a1c8d40532cc7929570154fe82307
[ "MIT" ]
null
null
null
tests/test_expr_where.py
alexkyllo/kusto-tool
c7689dfa363a1c8d40532cc7929570154fe82307
[ "MIT" ]
null
null
null
from kusto_tool import expression as exp from pytest import fixture from .fake_database import FakeDatabase @fixture def db(): return FakeDatabase("test", "testdb") @fixture def tbl(db): return exp.TableExpr("tbl", database=db, columns={"foo": str, "bar": int}) def test_where_eq_str(): actual = str(e...
26.824818
78
0.593741
0
0
0
0
160
0.043537
0
0
927
0.252245
c19ba5d245f195cdb6eb4605b71e37758440a2a2
4,991
py
Python
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
import requests import simplejson as json from six.moves.urllib.parse import urljoin from datadog_checks.checks import AgentCheck class TwitchtvCheck(AgentCheck): CHECK_NAME = 'twitchtv' def __init__(self, name, init_config, agentConfig, instances=None): super(TwitchtvCheck, self).__init__(name, ini...
36.97037
95
0.598077
4,856
0.972951
0
0
0
0
0
0
814
0.163094
c19c3f1d1283d225db3d7d7ddef5d1c3d3346d48
393
py
Python
plugins/amazon/__init__.py
nim4/pantea
29bee731157b1a643bcfeed37133c7575bc9340f
[ "MIT" ]
3
2016-09-26T06:47:57.000Z
2017-10-03T17:05:16.000Z
plugins/amazon/__init__.py
nim4/pantea
29bee731157b1a643bcfeed37133c7575bc9340f
[ "MIT" ]
null
null
null
plugins/amazon/__init__.py
nim4/pantea
29bee731157b1a643bcfeed37133c7575bc9340f
[ "MIT" ]
null
null
null
from lib.util import get_info_by_url, insert_to_db __host = ".amazon." __sess = "x-main=" def parse(headers): name = get_info_by_url('http://' + headers["Host"] + '/gp/history/', headers, [("id='nav-signin-text' class='nav-button-em'>", "<")])[0] if name is None: return False insert_to_db("Am...
28.071429
76
0.613232
0
0
0
0
0
0
0
0
122
0.310433
c19e5fe5435a4cf4b75d4a2f8a46480d0ba1db04
2,842
py
Python
tests/test_config.py
drdavella/tox-conda
8cb9d2f4fed1f7b3e851a2460bbd7756fad7d19c
[ "MIT" ]
2
2018-12-05T18:37:46.000Z
2018-12-29T02:41:23.000Z
tests/test_config.py
drdavella/tox-conda
8cb9d2f4fed1f7b3e851a2460bbd7756fad7d19c
[ "MIT" ]
7
2018-11-03T14:55:23.000Z
2019-03-27T20:26:07.000Z
tests/test_config.py
drdavella/tox-conda
8cb9d2f4fed1f7b3e851a2460bbd7756fad7d19c
[ "MIT" ]
1
2018-12-28T16:00:19.000Z
2018-12-28T16:00:19.000Z
import pytest def test_conda_deps(tmpdir, newconfig): config = newconfig( [], """ [tox] toxworkdir = {} [testenv:py1] deps= hello conda_deps= world something """.format( tmpdir ), ) assert ...
26.811321
78
0.574243
0
0
0
0
0
0
0
0
1,166
0.410274
c19ec7fa6563be347aaab52b5eafbb49e3825d49
20,933
py
Python
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
1
2021-07-01T13:00:30.000Z
2021-07-01T13:00:30.000Z
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
2
2020-12-31T14:33:02.000Z
2020-12-31T14:38:26.000Z
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
3
2021-01-05T20:26:15.000Z
2021-02-15T14:54:44.000Z
**Chapter 19 – Training and Deploying TensorFlow Models at Scale** _This notebook contains all the sample code in chapter 19._ <table align="left"> <td> <a target="_blank" href="https://colab.research.google.com/github/ageron/handson-ml2/blob/master/19_training_and_deploying_at_scale.ipynb"><img src="https://ww...
37.514337
655
0.716572
0
0
0
0
0
0
0
0
2,188
0.104464
c19f8556fffeaba80b71b3e0bca33cbbc4243288
2,291
py
Python
test/test_testrun_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
1
2019-09-10T17:55:53.000Z
2019-09-10T17:55:53.000Z
test/test_testrun_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
null
null
null
test/test_testrun_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
2
2019-02-12T23:15:10.000Z
2022-03-11T20:08:28.000Z
# coding: utf-8 """ qTest Manager API Version 8.6 - 9.1 qTest Manager API Version 8.6 - 9.1 OpenAPI spec version: 8.6 - 9.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest impo...
18.328
69
0.526408
1,791
0.781755
0
0
0
0
0
0
1,212
0.529027
c1a047f305103c02462a6d290c41963621ea947a
3,731
py
Python
scripts/evaluations/create_pruned_corpus.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
25
2018-03-03T11:57:57.000Z
2022-01-16T21:19:54.000Z
scripts/evaluations/create_pruned_corpus.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
385
2018-02-21T16:52:06.000Z
2022-02-17T07:44:56.000Z
scripts/evaluations/create_pruned_corpus.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
19
2018-03-20T01:08:11.000Z
2021-09-29T01:04:49.000Z
""" Prune the preassembled corpus json file """ import json import sys from tqdm import tqdm def isInfluenceStatement(s): return s["type"] == "Influence" if __name__ == "__main__": with open(sys.argv[1], "r") as f: sts = json.load(f) filtered_sts = [] hasWMKey = lambda x: x.get("WM") is no...
42.397727
125
0.564996
0
0
0
0
0
0
0
0
1,823
0.488609
c1a0698046ea5c15fed9403075b6dadc726dcd15
1,562
py
Python
ax/exceptions/data_provider.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/exceptions/data_provider.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/exceptions/data_provider.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Iterable class DataProviderError(Exception): """Base Exception for Ax DataProviders. ...
33.234043
86
0.65493
1,320
0.84507
0
0
0
0
0
0
696
0.445583
c1a329ce0d56913c2a3d217d2eff794cd4ce53ce
156
py
Python
zfit/core/__init__.py
olantwin/zfit
dae89fd95fc2158c0e7530664d8ca999db4802c5
[ "BSD-3-Clause" ]
1
2022-01-15T13:38:12.000Z
2022-01-15T13:38:12.000Z
zfit/core/__init__.py
kailiu77/zfit
00eed81fb34e0eb2e4bae5ddc9ebf38699e107ca
[ "BSD-3-Clause" ]
null
null
null
zfit/core/__init__.py
kailiu77/zfit
00eed81fb34e0eb2e4bae5ddc9ebf38699e107ca
[ "BSD-3-Clause" ]
null
null
null
from . import (baseobject, basepdf, basemodel, basefunc, data, interfaces, integration, math, loss, sample, limits, operations, parameter, )
52
99
0.692308
0
0
0
0
0
0
0
0
0
0
c1a365128f0c36be71cba9ee9f85b9c58b5f1207
29,113
py
Python
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
1
2021-02-02T18:41:48.000Z
2021-02-02T18:41:48.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="Settings.py"> # Copyright (c) 2003-2021 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of th...
36.574121
624
0.645828
27,659
0.950057
0
0
19,582
0.67262
0
0
15,215
0.522619
c1a36f901ada2ecff8f592caff250af3e4962c6a
6,713
py
Python
gui/backend/tests/unit/test_Sqleditor.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
11
2022-03-02T11:04:16.000Z
2022-03-29T05:28:23.000Z
gui/backend/tests/unit/test_Sqleditor.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
1
2022-03-25T15:12:16.000Z
2022-03-31T18:59:22.000Z
gui/backend/tests/unit/test_Sqleditor.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
3
2022-03-24T11:32:12.000Z
2022-03-25T20:40:14.000Z
# Copyright (c) 2020, 2022, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. # # This program is also distributed with certain software (including # ...
39.958333
120
0.714584
3,660
0.545211
1,538
0.229108
2,706
0.403098
0
0
2,033
0.302845
c1a48eb1c0e309496f0be9a970ec65fc62f63f3c
981
py
Python
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
889
2016-08-27T01:37:35.000Z
2018-10-07T19:47:56.000Z
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
218
2021-05-25T01:46:15.000Z
2022-02-11T01:08:52.000Z
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
145
2016-09-27T06:56:24.000Z
2018-09-25T16:09:28.000Z
import tensorflow as tf import hyperchamber as hc import hypergan as hg import numpy as np from hypergan.losses.lamb_gan_loss import LambGanLoss from hypergan.ops import TensorflowOps from unittest.mock import MagicMock from tests.mocks import mock_gan loss_config = {'test': True, 'reduce':'reduce_mean', 'labels': [0...
32.7
119
0.654434
558
0.568807
0
0
0
0
0
0
72
0.073394
c1a639306302ef557c6752a6a01fb763ef49ebd4
4,846
py
Python
examples/poly_model/poly_dimension_adaptive.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
1
2020-06-26T10:37:56.000Z
2020-06-26T10:37:56.000Z
examples/poly_model/poly_dimension_adaptive.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
null
null
null
examples/poly_model/poly_dimension_adaptive.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
2
2020-04-20T12:50:11.000Z
2020-04-24T10:35:13.000Z
import chaospy as cp import numpy as np import easyvvuq as uq import os # import fabsim3_cmd_api as fab import matplotlib.pyplot as plt plt.close('all') # author: Wouter Edeling __license__ = "LGPL" HOME = os.path.abspath(os.path.dirname(__file__)) # Set up a fresh campaign called "sc" my_campaign = uq.Campaign(nam...
35.372263
88
0.639909
0
0
0
0
0
0
0
0
2,184
0.450681
c1a725906e88f1b2357a9d34b387186061ce645e
280
py
Python
tests/data/test_regression_file_path_fixture/tests-inputs/case/test_fixture.py
sdinot/pytest-executable
45e5b2df8e81213973c6d8d70ec6e0fb0c4b8db6
[ "Apache-2.0" ]
8
2020-04-22T06:26:58.000Z
2022-01-22T05:14:45.000Z
tests/data/test_regression_file_path_fixture/tests-inputs/case/test_fixture.py
sdinot/pytest-executable
45e5b2df8e81213973c6d8d70ec6e0fb0c4b8db6
[ "Apache-2.0" ]
6
2020-08-08T19:56:15.000Z
2021-11-11T09:05:43.000Z
tests/data/test_regression_file_path_fixture/tests-inputs/case/test_fixture.py
sdinot/pytest-executable
45e5b2df8e81213973c6d8d70ec6e0fb0c4b8db6
[ "Apache-2.0" ]
2
2020-04-23T06:37:42.000Z
2020-04-29T21:59:25.000Z
from fnmatch import fnmatch def test_fixture(regression_file_path): assert fnmatch(str(regression_file_path.relative), "[01].xmf") assert fnmatch( str(regression_file_path.absolute), "*/test_regression_file_path_fixture0/references/case/[01].xmf", )
28
72
0.732143
0
0
0
0
0
0
0
0
73
0.260714
c1a87ca84277a3dd76ad935ca0c45a7628e65f14
3,996
py
Python
preprocess_data/preprocess_data.py
s-diaco/DRL4Trading
8f6042d7ce0381dc1fc809558e529a512c4c4e01
[ "MIT" ]
4
2021-07-05T12:18:34.000Z
2022-02-07T19:41:45.000Z
preprocess_data/preprocess_data.py
s-diaco/DRL4Trading
8f6042d7ce0381dc1fc809558e529a512c4c4e01
[ "MIT" ]
5
2021-04-04T09:44:59.000Z
2021-06-26T09:38:53.000Z
preprocess_data/preprocess_data.py
s-diaco/DRL4Trading
8f6042d7ce0381dc1fc809558e529a512c4c4e01
[ "MIT" ]
2
2021-07-05T12:18:34.000Z
2021-08-04T08:01:11.000Z
"""preprocess data before using it""" import logging import pandas as pd from preprocess_data import csv_data, custom_col_base, custom_columns def col_from_cls(client_class, data): ''' Create "series" from a given function and dataframe Parameters: client_func (callable): fu...
35.362832
78
0.651401
0
0
0
0
0
0
0
0
1,574
0.3935
c1ab4ab02c0597d4e6630967716526281f28d594
17,930
py
Python
constants.py
datarobot-community/soccer_match_prediction
80aea8e7e14d772178909656496e05122ebff0a8
[ "Apache-2.0" ]
2
2020-06-16T14:34:13.000Z
2020-07-15T18:13:41.000Z
constants.py
datarobot-community/soccer_match_prediction
80aea8e7e14d772178909656496e05122ebff0a8
[ "Apache-2.0" ]
null
null
null
constants.py
datarobot-community/soccer_match_prediction
80aea8e7e14d772178909656496e05122ebff0a8
[ "Apache-2.0" ]
2
2021-07-23T06:40:49.000Z
2022-02-11T17:52:26.000Z
LEAGUES = [ 'Scottish Premiership', 'Italy Serie A', 'French Ligue 1', 'Spanish Segunda Division', 'Australian A-League', 'Italy Serie B', 'Dutch Eredivisie', 'Mexican Primera Division Torneo Clausura', 'Russian Premier Liga', 'Spanish Primera Division', 'English League One',...
26.562963
47
0.56068
0
0
0
0
0
0
0
0
9,554
0.53199
c1ae4861c8eb6db57eabd223609f74170cb8381d
474
py
Python
string-list.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
string-list.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
string-list.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
import sys import itertools def main(): with open(sys.argv[1]) as input_file: for line in input_file: length, letters = line.strip().split(',') length = int(length) letters = letters.strip() result = set(''.join(e) for e in itertools.product(let...
24.947368
87
0.525316
0
0
0
0
0
0
0
0
18
0.037975
c1ae52c695e3f0b50fa41e0e39c71498b5115833
403
py
Python
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
import os from falcon import Request, Response class ServerMetadataResource: def on_get(self, req: Request, resp: Response) -> None: resp.cache_control = ['public', 'max-age=604800'] resp.media = { 'chat': { 'host': os.getenv('CHITTY_CHAT_HOST', '127.0.0.1'), ...
25.1875
67
0.550868
352
0.873449
0
0
0
0
0
0
95
0.235732
c1aeb6b648385e5dd2afb1d49db366eb4bba7f45
1,295
py
Python
tests/compiler_2.py
louisyoungx/zpycli
87deb188d1fd7782c60912edf1eeedb719b649a6
[ "MIT" ]
null
null
null
tests/compiler_2.py
louisyoungx/zpycli
87deb188d1fd7782c60912edf1eeedb719b649a6
[ "MIT" ]
null
null
null
tests/compiler_2.py
louisyoungx/zpycli
87deb188d1fd7782c60912edf1eeedb719b649a6
[ "MIT" ]
null
null
null
import sys if ".." not in sys.path: sys.path.insert(0,"..") import zpylib.ast.lexer as lex from zpylib.grammar import * # Test it out data = """ # TEST Apple = 3 + 4 * 10 + -20 *2 def Print(what): if True: go(what + 10) 如果 错: x = 'yoo what's up' '''what fuck''' {:.2f}.format(name) """ class Compi...
24.433962
79
0.550579
969
0.744812
0
0
0
0
0
0
320
0.245965
c1aeb773120f6e8b25cc706f47a68a22cbbc7e59
989
py
Python
setup.py
wasilak/yamllint-junit
0861484dc38220f772a4563974eebeae71ee6fb2
[ "MIT" ]
4
2017-11-28T22:04:01.000Z
2021-08-18T16:09:02.000Z
setup.py
wasilak/yamllint-junit
0861484dc38220f772a4563974eebeae71ee6fb2
[ "MIT" ]
5
2020-08-03T15:44:28.000Z
2021-11-05T10:47:51.000Z
setup.py
wasilak/yamllint-junit
0861484dc38220f772a4563974eebeae71ee6fb2
[ "MIT" ]
1
2020-08-28T15:05:51.000Z
2020-08-28T15:05:51.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from yamllint_junit_bootstrap import bootstrap version = bootstrap.__version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='yamllint-junit', packages=['yamllint_junit_bootstrap'], version=ve...
25.358974
89
0.65723
0
0
0
0
0
0
0
0
413
0.417594
c1aeb94e32529b20eed44693cf5cf6e8db8c7b4a
199
py
Python
pyot/utils/tft/routing.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
1
2022-02-04T03:12:09.000Z
2022-02-04T03:12:09.000Z
pyot/utils/tft/routing.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
null
null
null
pyot/utils/tft/routing.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
null
null
null
from pyot.models.tft import base def platform_to_region(platform: str) -> str: '''Return the region correspondent to a given platform''' return base.PyotRouting._platform2regions[platform]
28.428571
61
0.763819
0
0
0
0
0
0
0
0
57
0.286432
c1af19eb5f9a129022353a3807101d1e028dd303
242
py
Python
problems/biclique/solver/main.py
Benezivas/algobattle-problems
b00b85413893bd1618001a4cdaa0dd7442f4e481
[ "MIT" ]
null
null
null
problems/biclique/solver/main.py
Benezivas/algobattle-problems
b00b85413893bd1618001a4cdaa0dd7442f4e481
[ "MIT" ]
null
null
null
problems/biclique/solver/main.py
Benezivas/algobattle-problems
b00b85413893bd1618001a4cdaa0dd7442f4e481
[ "MIT" ]
null
null
null
"""Simple dummy solver for the BiClique problem, outputting a static solution.""" with open("output", "w") as output: output.write("s set1 1\n") output.write("s set2 2\n") output.write("s set2 3\n") output.write("s set2 4\n")
34.571429
81
0.652893
0
0
0
0
0
0
0
0
140
0.578512
c1affedd9b9ad2746552cd2f0960a1b9537db67c
6,151
py
Python
pyalfred/server/database.py
tingiskhan/pyalfred
c9fac2672af92906bcc4294e14844e904423c2e6
[ "MIT" ]
null
null
null
pyalfred/server/database.py
tingiskhan/pyalfred
c9fac2672af92906bcc4294e14844e904423c2e6
[ "MIT" ]
null
null
null
pyalfred/server/database.py
tingiskhan/pyalfred
c9fac2672af92906bcc4294e14844e904423c2e6
[ "MIT" ]
null
null
null
from typing import Union, List, Type from sqlalchemy.orm import scoped_session, sessionmaker from logging import Logger from starlette.endpoints import HTTPEndpoint from starlette.requests import Request from starlette.responses import JSONResponse from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR, HTTP_200_O...
34.172222
113
0.634368
5,437
0.883921
0
0
1,506
0.244838
3,762
0.611608
1,032
0.167778
c1b0a13dd61f692f08ec2294ecce99fedfad9c35
4,628
py
Python
hdv/redfish/http_handler.py
opnfv/cirv-hdv
2d145d4f1fd231def2c9d52a71267031b938c0ac
[ "Apache-2.0" ]
null
null
null
hdv/redfish/http_handler.py
opnfv/cirv-hdv
2d145d4f1fd231def2c9d52a71267031b938c0ac
[ "Apache-2.0" ]
null
null
null
hdv/redfish/http_handler.py
opnfv/cirv-hdv
2d145d4f1fd231def2c9d52a71267031b938c0ac
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2020 China Mobile Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is ...
35.6
79
0.590104
3,630
0.784356
0
0
0
0
0
0
1,477
0.319144
c1b2c130162bc0b7988dfc259c05389cac64465c
3,006
py
Python
appserver/migrations/versions/a6ca510027a5_seed_annotationstyle_and_domainurlsmap_.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
8
2022-01-28T08:43:07.000Z
2022-03-23T11:18:10.000Z
appserver/migrations/versions/a6ca510027a5_seed_annotationstyle_and_domainurlsmap_.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
23
2022-02-14T15:25:00.000Z
2022-03-28T15:30:45.000Z
appserver/migrations/versions/a6ca510027a5_seed_annotationstyle_and_domainurlsmap_.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
5
2022-01-28T15:45:44.000Z
2022-03-14T11:36:49.000Z
"""Seed AnnotationStyle and DomainURLsMap tables Revision ID: a6ca510027a5 Revises: fb1654973fbd Create Date: 2020-08-19 23:27:53.132930 """ import json from alembic import context from alembic import op import sqlalchemy as sa from sqlalchemy.orm.session import Session from sqlalchemy.sql import table, column from...
28.093458
76
0.641717
0
0
0
0
0
0
0
0
1,075
0.357618
c1b48598f2501dd038d05132ab6a96a3689973e1
18,205
py
Python
trace.py
rawoul/apitrace
e9fcdcf14a99f5cb4729abb7bbf7817d7aa59d18
[ "MIT" ]
1
2017-07-25T20:22:08.000Z
2017-07-25T20:22:08.000Z
trace.py
rawoul/apitrace
e9fcdcf14a99f5cb4729abb7bbf7817d7aa59d18
[ "MIT" ]
null
null
null
trace.py
rawoul/apitrace
e9fcdcf14a99f5cb4729abb7bbf7817d7aa59d18
[ "MIT" ]
null
null
null
########################################################################## # # Copyright 2008-2010 VMware, Inc. # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software withou...
35.418288
166
0.572535
16,629
0.91343
0
0
0
0
0
0
6,338
0.348146
c1b62424e13951dc15b2f1d8f1ebe1749e5c2d11
3,334
py
Python
prepare_dataset.py
TheElderMindseeker/pytorch-domain-adaptation
70ca862708bd6e59b5eee5d7c8bd808ef3457dc8
[ "MIT" ]
null
null
null
prepare_dataset.py
TheElderMindseeker/pytorch-domain-adaptation
70ca862708bd6e59b5eee5d7c8bd808ef3457dc8
[ "MIT" ]
null
null
null
prepare_dataset.py
TheElderMindseeker/pytorch-domain-adaptation
70ca862708bd6e59b5eee5d7c8bd808ef3457dc8
[ "MIT" ]
null
null
null
# pylint: disable=invalid-name,missing-docstring import os import subprocess import urllib.parse import uuid def read_temporal_data(temporal_path: str): temporal_data = dict() for line in open(temporal_path, 'r'): name, v_cls, s_frm_1, f_frm_1, s_frm_2, f_frm_2 = line.strip().split() temporal_...
38.767442
79
0.596581
0
0
0
0
0
0
0
0
529
0.158668
c1b820b4d47994172a5b13534ae44af8e3d7d6e0
228
py
Python
10.变态跳台阶/10.变态跳台阶(DP).py
shenweichen/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
483
2020-01-05T12:58:59.000Z
2022-03-19T05:44:00.000Z
10.变态跳台阶/10.变态跳台阶(DP).py
moshilangzi/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
1
2020-01-20T08:47:15.000Z
2020-01-27T13:24:15.000Z
10.变态跳台阶/10.变态跳台阶(DP).py
moshilangzi/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
122
2020-01-05T14:10:04.000Z
2022-03-19T05:24:42.000Z
# -*- coding:utf-8 -*- class Solution: def jumpFloorII(self, number): # write code here dp = [0,1,2] for i in range(3,number+1): dp.append(sum(dp)+1) return dp[number]
25.333333
35
0.491228
192
0.842105
0
0
0
0
0
0
39
0.171053
c1b891e7d61a9e3e64538ab34a986ee96aa12260
2,866
py
Python
corehq/ex-submodules/phonelog/migrations/0006_auto__chg_field_devicereportentry_app_version__chg_field_devicereporte.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/ex-submodules/phonelog/migrations/0006_auto__chg_field_devicereportentry_app_version__chg_field_devicereporte.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/ex-submodules/phonelog/migrations/0006_auto__chg_field_devicereportentry_app_version__chg_field_devicereporte.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'DeviceReportEntry.app_version' db.alter_column(u'phonelog_devicereportentry', 'app_versi...
54.075472
140
0.60328
2,740
0.956036
0
0
0
0
0
0
1,762
0.614794
c1b8b6e21410622622aa640ba1d082574eb412ec
8,201
py
Python
lib/providers/theaudiodb.py
DaVukovic/script.artwork.beef
cb6e54cd2b3bccc82660ad277c13618746f36e08
[ "MIT" ]
40
2017-10-29T22:43:43.000Z
2022-03-12T05:59:05.000Z
lib/providers/theaudiodb.py
supmagc/script.artwork.beef
afd76b290d13b2e9ea00d7f9772961353f4640b8
[ "MIT" ]
47
2017-01-31T21:28:20.000Z
2021-03-23T06:53:51.000Z
lib/providers/theaudiodb.py
supmagc/script.artwork.beef
afd76b290d13b2e9ea00d7f9772961353f4640b8
[ "MIT" ]
31
2017-10-16T05:28:53.000Z
2022-02-24T19:50:24.000Z
import xbmc from lib.libs import mediatypes from lib.libs.addonsettings import settings from lib.libs.pykodi import json, UTF8JSONDecoder from lib.libs.utils import SortedDisplay from lib.providers.base import AbstractProvider, AbstractImageProvider, cache, build_key_error class TheAudioDBAbstractProvider(AbstractIm...
44.32973
118
0.631386
6,976
0.850628
0
0
0
0
0
0
1,794
0.218754
c1b9ee59be99f775c2f552e13c66ff23db053369
1,025
py
Python
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import pytest from osp.corpus.models import Document from osp.corpus.models import Document_Format pytestmark = pytest.mark.usefixtures('db') def test_format_counts(): """ Document.format_counts() """ d1 = Document.create(path='1') d2 = Document.create(path='2') d3 = Document.create(pat...
24.404762
62
0.650732
0
0
0
0
0
0
0
0
214
0.20878
c1ba667085462dd4a1725b7706f902a599a1b8e8
3,696
py
Python
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from constants.jobs import JobLifeCycle from db.models.repos import Repo from dockerizer.builders.base import BaseDockerBuilder class BaseJobDockerBuilder(BaseDockerBuilder): CHECK_INTERVAL = 10 def __init__(self, ...
34.222222
91
0.588474
981
0.265422
0
0
0
0
0
0
709
0.191829
c1bb44a49533620993e5fb48385ae2720ad43392
2,786
py
Python
code/attr2vec_func.py
xuliang09/JAPE
961a0cf9d10abf81cc24a71ac33274b42bc2fbc1
[ "MIT" ]
91
2018-03-13T03:56:15.000Z
2022-03-26T13:47:22.000Z
code/attr2vec_func.py
codeinging/JAPE
b4b3617a7c61df5f7093921553dd3b0a7497506d
[ "MIT" ]
10
2018-04-02T15:47:08.000Z
2022-03-01T09:28:10.000Z
code/attr2vec_func.py
codeinging/JAPE
b4b3617a7c61df5f7093921553dd3b0a7497506d
[ "MIT" ]
23
2018-05-30T07:18:38.000Z
2021-08-15T06:13:29.000Z
import math import collections import random import numpy as np import tensorflow as tf import itertools import time def sum_rows(x): """Returns a vector summing up each row of the matrix x.""" cols = tf.shape(x)[1] ones_shape = tf.stack([cols, 1]) ones = tf.ones(ones_shape, x.dtype) return tf.res...
35.265823
119
0.645011
0
0
0
0
0
0
0
0
59
0.021177
c1bb5795f5cf4b1f0f656850cbb021970ffc7c82
5,218
py
Python
src/installer/src/tortuga/db/componentDbApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/db/componentDbApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/db/componentDbApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # 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...
31.624242
76
0.590264
4,208
0.806439
0
0
0
0
0
0
1,607
0.307972
c1bd3526605a6b1d3a41d10be0e5bafa8ed8f574
312
py
Python
python_data_structures/stack.py
chandlerbrtek/python-data-structures
7fb8a4c4879fb148e607a627a98d0111e5a942a3
[ "MIT" ]
null
null
null
python_data_structures/stack.py
chandlerbrtek/python-data-structures
7fb8a4c4879fb148e607a627a98d0111e5a942a3
[ "MIT" ]
null
null
null
python_data_structures/stack.py
chandlerbrtek/python-data-structures
7fb8a4c4879fb148e607a627a98d0111e5a942a3
[ "MIT" ]
null
null
null
"""Main module.""" class Stack: stack = [] def isEmpty(self) -> bool: return len(self.stack) == 0 def push(self, value: any) -> None: self.stack.append(value) def peek(self) -> any: return self.stack[-1] def pop(self) -> any: return self.stack.pop()
20.8
39
0.532051
293
0.939103
0
0
0
0
0
0
18
0.057692
c1c255b1f03413b3ba902b4ef59492fdc92fec91
2,667
py
Python
network/embedding.py
cherry979988/OpenNRE
740e6abd3b8b30625cb88a643a2acb65d5e923dd
[ "MIT" ]
1
2019-10-08T02:53:28.000Z
2019-10-08T02:53:28.000Z
network/embedding.py
flyounger/OpenNRE
1f30a0b3109e9b3c3284fa72a1562f81cdb70fdf
[ "MIT" ]
null
null
null
network/embedding.py
flyounger/OpenNRE
1f30a0b3109e9b3c3284fa72a1562f81cdb70fdf
[ "MIT" ]
1
2020-07-22T08:39:09.000Z
2020-07-22T08:39:09.000Z
import tensorflow as tf import numpy as np FLAGS = tf.app.flags.FLAGS class Embedding(object): def __init__(self, is_training, word_vec, word, pos1, pos2): temp_word_embedding = tf.get_variable(initializer=word_vec, name = 'temp_word_embedding', dtype=tf.float32) unk_word_embedding = tf.get_varia...
56.744681
179
0.656543
2,594
0.972628
0
0
0
0
0
0
109
0.04087
c1c3368fb90c0a4c1c5f3d9670d74ff773fbc850
768
py
Python
experiments/mapModel.py
PerceptronV/denoising-text-autoencoders
8ef59e2531a4fc7531002cffd3546f27eadb8ec9
[ "Apache-2.0" ]
null
null
null
experiments/mapModel.py
PerceptronV/denoising-text-autoencoders
8ef59e2531a4fc7531002cffd3546f27eadb8ec9
[ "Apache-2.0" ]
null
null
null
experiments/mapModel.py
PerceptronV/denoising-text-autoencoders
8ef59e2531a4fc7531002cffd3546f27eadb8ec9
[ "Apache-2.0" ]
1
2022-03-04T05:57:52.000Z
2022-03-04T05:57:52.000Z
import torch.nn as nn class MappingModel(nn.Module): def __init__(self, dims, nlayers=1, units=128, activation=nn.ReLU): super(MappingModel, self).__init__() print(nlayers) if nlayers == 1: self.linmap = nn.Linear(dims, dims) elif nlayers == 2: self.linmap =...
30.72
76
0.518229
743
0.967448
0
0
0
0
0
0
0
0
c1c4c548cee3344d6a0288f1062e34cef764d45e
1,166
py
Python
clafiyy/new/sum.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
clafiyy/new/sum.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
clafiyy/new/sum.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
# @Time : 2019/5/22 11:26 # @Author : shakespere # @FileName: sum.py import pandas as pd submission_1 = pd.read_csv("./data/merge_0.8550913438849271_predictions.csv") submission_2 = pd.read_csv("./data/merge_0.8551243481873769_predictions.csv") submission_3 = pd.read_csv("./data/merge_0.8571411176454415_pre...
58.3
302
0.747856
0
0
0
0
0
0
0
0
501
0.429674
c1c554676d59b1bbb3e5980c3277d57ab792911e
4,216
py
Python
lexos/receivers/matrix_receiver.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
107
2015-03-19T09:10:31.000Z
2022-01-29T01:33:48.000Z
lexos/receivers/matrix_receiver.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
864
2015-05-19T19:27:00.000Z
2022-01-28T18:48:52.000Z
lexos/receivers/matrix_receiver.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
25
2015-06-02T23:03:06.000Z
2020-08-06T04:27:49.000Z
"""This is the receiver for the matrix model.""" from typing import NamedTuple, Optional, Dict from lexos.receivers.base_receiver import BaseReceiver DocumentLabelMap = Dict[int, str] class TokenOption(NamedTuple): """A typed tuple to represent token option.""" # the size of each token n_gram_size: in...
31.699248
79
0.671252
4,014
0.952087
0
0
0
0
0
0
1,713
0.406309
c1c5a2754fda11c89b443f7e02da5e10a6ab2f74
3,791
py
Python
src/train_process/build_cnn_model/Train_model.py
rober5566a/NTUT_109-2_MVA_Final-Project
d18494760750efae1ff0810dcaa281a03d0827c0
[ "MIT" ]
null
null
null
src/train_process/build_cnn_model/Train_model.py
rober5566a/NTUT_109-2_MVA_Final-Project
d18494760750efae1ff0810dcaa281a03d0827c0
[ "MIT" ]
null
null
null
src/train_process/build_cnn_model/Train_model.py
rober5566a/NTUT_109-2_MVA_Final-Project
d18494760750efae1ff0810dcaa281a03d0827c0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from Model.CNN_1 import CNN def test_performance(model, device, test_loader, loss, pred_train_labels, train_labels, printHistory=True): test_num_right = 0 for step, (datas, labels) in enumerate(test_loader):...
37.534653
118
0.613558
0
0
0
0
0
0
0
0
719
0.18966
c1c7615a1093ffe7d7e900aa21ffc5ae797e37b3
374
py
Python
tests/mocks.py
lgatellier/webhook-router
7e68e469b54c1f605d03e10744774cb9f1f094f3
[ "Apache-2.0" ]
1
2022-03-06T19:01:23.000Z
2022-03-06T19:01:23.000Z
tests/mocks.py
lgatellier/webhook-router
7e68e469b54c1f605d03e10744774cb9f1f094f3
[ "Apache-2.0" ]
8
2021-11-18T22:49:49.000Z
2022-03-30T09:29:43.000Z
tests/mocks.py
lgatellier/webhook-gateway
975b7d380b17fd3b534d9c1eca51b6dd2cc44d00
[ "Apache-2.0" ]
null
null
null
from fastapi import Request class MockedHTTPRequest(Request): def __init__(self, body: dict = {}, headers: dict = {}): super().__init__({"type": "http"}) self.__body = body self.__headers = headers @property def body(self) -> dict: return self.__body @property def...
22
60
0.604278
343
0.917112
0
0
134
0.358289
0
0
12
0.032086
c1c7c2c4ce7d208b7884ed9d436d4aa0dfa66353
2,821
py
Python
src/csi_rover_vision/nodes/depth_image_processor.py
BhargavRE25/Rover-Machine-Learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
3
2020-09-21T17:15:08.000Z
2020-09-25T01:08:19.000Z
src/csi_rover_vision/nodes/depth_image_processor.py
columbia-university-robotics/vehicle-machine-learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
null
null
null
src/csi_rover_vision/nodes/depth_image_processor.py
columbia-university-robotics/vehicle-machine-learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Header from geometry_msgs.msg import PoseStamped from nav_msgs.msg import Odometry from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError import cv2 import sys import numpy as np import message_filters import tf class DepthImageProc...
30.333333
97
0.651542
2,463
0.873095
0
0
0
0
0
0
464
0.164481
c1c86881d74c59dcc1055e4123f85ff985b2a7b8
14,313
py
Python
src/ecs/packing_utils_v2.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
3
2019-03-01T12:16:02.000Z
2019-12-19T07:59:07.000Z
src/ecs/packing_utils_v2.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
null
null
null
src/ecs/packing_utils_v2.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import const_map import math import packing_method # 选择在packing_model 中的装配方案 pack_function = packing_method.used_func def pack_api(dataObj, predict_result,target_c_m): ''' 装配接口 :param dataObj: 数据对象 :param predict_result: 预测结果 ''' picker = VmWorker(predict_result) ...
27.107955
90
0.505485
14,660
0.948806
0
0
0
0
0
0
3,627
0.234742
c1c892c83086b1d88c5c729a393446e22f1c34cf
1,653
py
Python
edgedb/lang/schema/basetypes/uuid.py
jonathanslenders/edgedb
35ad66c4bd525cd9966f8029e5b385e888323f82
[ "Apache-2.0" ]
1
2021-12-15T09:34:48.000Z
2021-12-15T09:34:48.000Z
edgedb/lang/schema/basetypes/uuid.py
jonathanslenders/edgedb
35ad66c4bd525cd9966f8029e5b385e888323f82
[ "Apache-2.0" ]
null
null
null
edgedb/lang/schema/basetypes/uuid.py
jonathanslenders/edgedb
35ad66c4bd525cd9966f8029e5b385e888323f82
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # 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...
30.611111
76
0.696915
613
0.370841
0
0
0
0
0
0
695
0.420448
c1c9379695253067028b6d9dd41b3f7776b4991c
304
py
Python
experimental/python_q_wrapper/Q/validate.py
subramon/qlu
2fb8a2b3636dd11e2dfeae2a6477bd130316da47
[ "MIT" ]
null
null
null
experimental/python_q_wrapper/Q/validate.py
subramon/qlu
2fb8a2b3636dd11e2dfeae2a6477bd130316da47
[ "MIT" ]
7
2020-07-29T16:48:25.000Z
2020-09-26T23:47:22.000Z
experimental/python_q_wrapper/Q/validate.py
subramon/qlu
2fb8a2b3636dd11e2dfeae2a6477bd130316da47
[ "MIT" ]
1
2015-05-14T22:34:13.000Z
2015-05-14T22:34:13.000Z
def is_p_vector(val): """checks whether given value is of type P_Vector""" from Q.p_vector import PVector return isinstance(val, PVector) def is_p_scalar(val): """checks whether given vlaue is of type P_Scalar""" from Q.p_scalar import PScalar return isinstance(val, PScalar)
23.384615
56
0.710526
0
0
0
0
0
0
0
0
104
0.342105
c1cbab332513a23ee2e04a851cca5c5b17c6cd1c
9,348
py
Python
GraphOfDocs_Representation/create.py
imis-lab/book-chapter
8260a60ec91dd29616eeed80f34bdea00fb73cd7
[ "MIT" ]
2
2020-09-29T11:40:56.000Z
2020-09-29T11:41:04.000Z
GraphOfDocs_Representation/create.py
imis-lab/personnel-selection
f04d78c8211f21ab53db4ecdddfc9c78ffc26a36
[ "MIT" ]
null
null
null
GraphOfDocs_Representation/create.py
imis-lab/personnel-selection
f04d78c8211f21ab53db4ecdddfc9c78ffc26a36
[ "MIT" ]
null
null
null
""" This script contains functions that create data in the Neo4j database. """ import json import platform from pathlib import Path from gensim.models import Word2Vec from GraphOfDocs_Representation.utils import ( clear_screen, generate_words ) # Initialize an empty set of edges. edges = {} # Initia...
39.443038
109
0.586543
0
0
0
0
0
0
0
0
5,054
0.54065
c1ce58fcb7e82f1a80b448eadcae66a5b6f084aa
199
py
Python
backend/reception/admin.py
singsaker/intern
9376732c6d537f46443ad43afa51e82df2005da8
[ "MIT" ]
4
2021-10-06T19:09:12.000Z
2022-03-28T12:14:42.000Z
backend/reception/admin.py
singsaker/intern
9376732c6d537f46443ad43afa51e82df2005da8
[ "MIT" ]
2
2021-11-30T16:07:05.000Z
2022-02-17T23:57:00.000Z
backend/reception/admin.py
singsaker/intern
9376732c6d537f46443ad43afa51e82df2005da8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Semester, Shift, ShiftDate # Register your models here. admin.site.register(Semester) admin.site.register(Shift) admin.site.register(ShiftDate)
22.111111
46
0.809045
0
0
0
0
0
0
0
0
28
0.140704
c1ce88fe488c659942b6230df65f6d5d692a9484
3,720
py
Python
tests/test_validator.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
7
2018-02-02T07:50:20.000Z
2021-03-14T22:46:58.000Z
tests/test_validator.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
2
2019-02-14T08:38:54.000Z
2020-02-19T08:08:02.000Z
tests/test_validator.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
1
2019-10-12T23:38:44.000Z
2019-10-12T23:38:44.000Z
import pytest import mwtab @pytest.mark.parametrize("files_source", [ "tests/example_data/mwtab_files/ST000122_AN000204.json", "tests/example_data/mwtab_files/ST000122_AN000204.txt" ]) def test_validate(files_source): """Test method for validating passing mwTab and JSON files from Metabolomics Workbench. ...
43.255814
121
0.75672
0
0
0
0
3,673
0.987366
0
0
1,691
0.45457
c1cf6fd8b07f9923a803e8e52a473b551c59d7c1
4,653
py
Python
bin/star_imports.py
HansPinckaers/impsort.vim
56e367e3e0ce5d7ea5c800492270282c3a53eda2
[ "MIT" ]
40
2016-05-31T22:19:42.000Z
2022-01-08T15:24:23.000Z
bin/star_imports.py
HansPinckaers/impsort.vim
56e367e3e0ce5d7ea5c800492270282c3a53eda2
[ "MIT" ]
35
2016-06-06T16:41:49.000Z
2022-03-16T13:40:56.000Z
bin/star_imports.py
HansPinckaers/impsort.vim
56e367e3e0ce5d7ea5c800492270282c3a53eda2
[ "MIT" ]
10
2017-04-14T07:42:06.000Z
2022-02-24T08:45:39.000Z
#!/usr/bin/env python """Very simple AST parser to get star imports. Nothing more. """ import os import ast import imp import sys from importlib import import_module try: str_ = unicode # noqa F821 except: str_ = str modules_seen = set() import_names = set() class NodeVisitor(ast.NodeVisitor): using_...
28.2
76
0.537073
2,454
0.527402
0
0
0
0
0
0
324
0.069632
c1d03ba215616beda33d94352aa9954fa9534d44
3,666
py
Python
ledger/migrations/0001_initial.py
joatuapp/joatu-django
5626d03ba89c55650ff5bff2e706ca0883ae3b9c
[ "MIT" ]
10
2018-05-13T18:01:57.000Z
2018-12-23T17:11:14.000Z
ledger/migrations/0001_initial.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
88
2018-05-04T15:33:46.000Z
2022-03-08T21:09:21.000Z
ledger/migrations/0001_initial.py
joatuapp/joatu-django
5626d03ba89c55650ff5bff2e706ca0883ae3b9c
[ "MIT" ]
7
2018-05-08T16:05:06.000Z
2018-09-13T05:49:05.000Z
# Generated by Django 2.0.3 on 2018-03-24 03:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('demands', '0001_initial'), ('projects', '0004_auto_20180323_1346'), ('profiles', '0009_p...
50.916667
158
0.611839
3,540
0.96563
0
0
0
0
0
0
729
0.198854
c1d2a8d963e6ebb39bdd05cfd3af6f753ebfe074
821
py
Python
cookbook/c09/p06_optarg_decorator.py
Xiao-jiuguan/python3-cookbook
95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05
[ "Apache-2.0" ]
3
2018-05-10T01:13:08.000Z
2018-06-17T12:34:07.000Z
cookbook/c09/p06_optarg_decorator.py
Xiao-jiuguan/python3-cookbook
95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05
[ "Apache-2.0" ]
2
2020-09-19T17:10:23.000Z
2020-10-17T16:43:52.000Z
cookbook/c09/p06_optarg_decorator.py
Xiao-jiuguan/python3-cookbook
95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05
[ "Apache-2.0" ]
1
2020-07-20T22:10:31.000Z
2020-07-20T22:10:31.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: 带可选参数的装饰器 Desc : """ from functools import wraps, partial import logging def logged(func=None, *, level=logging.DEBUG, name=None, message=None): if func is None: return partial(logged, level=level, name=name, message=message) logname = name ...
19.093023
71
0.637028
0
0
0
0
231
0.275328
0
0
130
0.154946
c1d364f1b1140a439139d1301d9e7d4e7d3275ad
482
py
Python
loader.py
afsara-rahman/Quadruple
5cc5e0007f16eb75b0368427652f671cbf78f15f
[ "MIT" ]
null
null
null
loader.py
afsara-rahman/Quadruple
5cc5e0007f16eb75b0368427652f671cbf78f15f
[ "MIT" ]
null
null
null
loader.py
afsara-rahman/Quadruple
5cc5e0007f16eb75b0368427652f671cbf78f15f
[ "MIT" ]
null
null
null
#Media loader class. #Loads images. import os, sys, pygame from pygame.locals import * #Load an image. :) def load_image(file, transparent = True): print("Loading " + file + " ..") fullname = os.path.join('media', file) image = pygame.image.load(fullname) if transparent == True: image = image...
24.1
46
0.634855
0
0
0
0
0
0
0
0
74
0.153527
c1d522ea9886ba08db71b2edc7bf38ab91008a5b
26,793
py
Python
vespa/common/pulse_funcs/bloch_multi.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/common/pulse_funcs/bloch_multi.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/common/pulse_funcs/bloch_multi.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# Python modules import multiprocessing import math # 3rd party modules import numpy as np # Our modules from pylab import * # GAMMA = 26753.0 - replaced with user defined value TWOPI = 6.283185 def isiterable(p_object): try: it = iter(p_object) except TypeError: return False return ...
33.324627
134
0.556265
2,132
0.079573
1,409
0.052588
59
0.002202
0
0
11,885
0.443586
c1d8533dc5b50c1147107c9c121f06d5e5bfcd69
1,318
py
Python
spectator/gauge.py
brharrington/spectator-py
08001c29be458e3b0de24292738441c04c2b3fbc
[ "Apache-2.0" ]
46
2019-02-06T13:20:54.000Z
2021-12-05T02:33:35.000Z
spectator/gauge.py
brharrington/spectator-py
08001c29be458e3b0de24292738441c04c2b3fbc
[ "Apache-2.0" ]
9
2018-04-26T22:07:19.000Z
2022-01-20T00:45:42.000Z
spectator/gauge.py
brharrington/spectator-py
08001c29be458e3b0de24292738441c04c2b3fbc
[ "Apache-2.0" ]
18
2018-04-26T22:00:00.000Z
2021-10-21T04:40:42.000Z
from abc import ABCMeta, abstractmethod from future.utils import with_metaclass from spectator.atomicnumber import AtomicNumber from spectator.clock import SystemClock class AbstractGauge(with_metaclass(ABCMeta)): @abstractmethod def get(self): pass @abstractmethod def set(self, value): ...
20.920635
77
0.626707
1,140
0.864947
0
0
153
0.116085
0
0
22
0.016692
c1d995325cdcad39ba73751aa9937c73ab171ea8
2,763
py
Python
lib/rucio/client/accountlimitclient.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
1
2017-08-07T13:34:55.000Z
2017-08-07T13:34:55.000Z
lib/rucio/client/accountlimitclient.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
null
null
null
lib/rucio/client/accountlimitclient.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Mario Lassnig, <mario...
37.337838
154
0.674267
2,015
0.72928
0
0
0
0
0
0
1,250
0.452407
c1dae57fa4e3464ff7fae0220eed527133197673
5,146
py
Python
functions.py
Project3-Group10/stocker-eyes
73fd410091348a4a358681a554b80e7c1c47b1ab
[ "FTL" ]
1
2021-04-17T07:13:39.000Z
2021-04-17T07:13:39.000Z
functions.py
Project3-Group10/stocker-eyes
73fd410091348a4a358681a554b80e7c1c47b1ab
[ "FTL" ]
33
2021-04-14T13:56:07.000Z
2021-05-05T04:43:10.000Z
functions.py
Project3-Group10/stocker-eyes
73fd410091348a4a358681a554b80e7c1c47b1ab
[ "FTL" ]
1
2021-10-14T00:44:00.000Z
2021-10-14T00:44:00.000Z
import os from dotenv import load_dotenv, find_dotenv import requests import smtplib, ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import requests_cache load_dotenv(find_dotenv()) ALPHA_API_KEY = os.getenv('ALPHA_API_KEY') NEWS_API = os.getenv('GET_NEWS_KEY') EMAIL_PASSWORD ...
37.838235
136
0.706374
0
0
0
0
0
0
0
0
1,636
0.317917
c1dca4278a150c965a6fa445d1242b2411276737
47,762
py
Python
ice/parser/parser.py
i2y/ice
db9abf04fbd0b256f13507900a4e5129e65b71a0
[ "MIT" ]
null
null
null
ice/parser/parser.py
i2y/ice
db9abf04fbd0b256f13507900a4e5129e65b71a0
[ "MIT" ]
null
null
null
ice/parser/parser.py
i2y/ice
db9abf04fbd0b256f13507900a4e5129e65b71a0
[ "MIT" ]
null
null
null
import warnings from collections import Sequence import rply from rply import ParserGenerator from ice import __version__ from . import lexer name_seq = 0 def get_temp_name(): global name_seq name_seq += 1 name_symbol = Symbol('_gs%s' % name_seq) return name_symbol class ParsingError(Exception):...
25.859231
116
0.653825
1,723
0.036075
0
0
31,804
0.665885
0
0
21,147
0.442758
c1dd6874deb6cbc28514ef2ec2c7c714f60a5adc
1,282
py
Python
poetry/apps/corpus/spiders/strofa.py
IlyaGusev/PoetryCorpus
7a5f70e6a46b4717f7c903671f9a6a917aee6162
[ "Apache-2.0" ]
45
2016-10-24T13:13:55.000Z
2022-01-21T05:39:06.000Z
poetry/apps/corpus/spiders/strofa.py
IlyaGusev/PoetryCorpus
7a5f70e6a46b4717f7c903671f9a6a917aee6162
[ "Apache-2.0" ]
23
2017-01-18T17:34:25.000Z
2017-11-01T17:39:02.000Z
poetry/apps/corpus/spiders/strofa.py
IlyaGusev/PoetryCorpus
7a5f70e6a46b4717f7c903671f9a6a917aee6162
[ "Apache-2.0" ]
7
2017-08-25T03:08:08.000Z
2020-05-22T22:55:58.000Z
import scrapy import re class StrofaSpider(scrapy.Spider): name = 'poems_strofa' start_urls = ['http://strofa.su/vse-poety/'] custom_settings = {} def parse(self, response): for href in response.css('.poemlinks a::attr(href)'): poet_url = response.urljoin(href.extract()) ...
33.736842
80
0.569423
1,253
0.977379
1,101
0.858814
0
0
0
0
226
0.176287
c1e179fd88680caa02ec8f42737513b72ccb61e5
1,167
py
Python
FindImmo/admin.py
sdaouda/immoniger
85b4f23fed6e73d8df8700103723725f267e31d8
[ "Apache-2.0" ]
null
null
null
FindImmo/admin.py
sdaouda/immoniger
85b4f23fed6e73d8df8700103723725f267e31d8
[ "Apache-2.0" ]
6
2021-03-19T00:41:08.000Z
2022-03-11T23:46:42.000Z
FindImmo/admin.py
sdaouda/immoniger
85b4f23fed6e73d8df8700103723725f267e31d8
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Category, Product,Project, Vendor,Zone,Localite,TypeProject,Service,TypeService,Commodite class CategoryAdmin(admin.ModelAdmin): list_display = ['name', 'slug'] prepopulated_fields = {'slug': ('name',)} admin.site.register(Category, CategoryAdmin) class Com...
36.46875
109
0.718937
660
0.565553
0
0
0
0
0
0
234
0.200514
c1e24833c06f938f20d6edff45d2cb02a8374976
145
py
Python
real_graph_select.py
Beaconsyh08/Real_Graph_Select
a164e76102ecd5aa78763050fd05029acb0b4993
[ "MIT" ]
null
null
null
real_graph_select.py
Beaconsyh08/Real_Graph_Select
a164e76102ecd5aa78763050fd05029acb0b4993
[ "MIT" ]
null
null
null
real_graph_select.py
Beaconsyh08/Real_Graph_Select
a164e76102ecd5aa78763050fd05029acb0b4993
[ "MIT" ]
null
null
null
from app import app, db from app.models import Poem @app.shell_context_processor def make_shell_context(): return {'db': db, 'Poem': Poem}
18.125
35
0.731034
0
0
0
0
90
0.62069
0
0
10
0.068966
c1e31e1fa25e6136930d59b414288f8412c884ca
3,194
py
Python
04 - Classes-inheritance-oops/40-classes-numeric-unary-magic-methods.py
python-demo-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
2
2019-08-23T06:05:55.000Z
2019-08-26T03:56:07.000Z
04 - Classes-inheritance-oops/40-classes-numeric-unary-magic-methods.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
null
null
null
04 - Classes-inheritance-oops/40-classes-numeric-unary-magic-methods.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
4
2020-10-01T07:16:07.000Z
2021-07-17T07:55:08.000Z
# HEAD # Classes - Magic Methods - Unary Numeric Magic Methods # DESCRIPTION # Describes the magic methods of classes # pos, neg, abs, invert # round, floor, ceil, trunc # RESOURCES # # https://rszalski.github.io/magicmethods/ # Now would be a good time to note that you don't have to define # ever...
47.671642
428
0.715404
936
0.293049
0
0
0
0
0
0
2,847
0.891359
c1e580496376c92672392fa607ae6aa0fdbdf110
2,446
py
Python
data/local_news_data/crawler/spmiddlewares/fake404.py
SSK-14/Covid19-Search-Engine
2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6
[ "Apache-2.0" ]
1
2020-06-14T16:52:55.000Z
2020-06-14T16:52:55.000Z
data/local_news_data/crawler/spmiddlewares/fake404.py
SSK-14/Covid19-Search-Engine
2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6
[ "Apache-2.0" ]
1
2020-05-06T14:28:10.000Z
2020-05-06T14:28:10.000Z
data/local_news_data/crawler/spmiddlewares/fake404.py
SSK-14/Covid19-Search-Engine
2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This script was borrowed from the RISJbot repository (https://github.com/pmyteh/RISJbot) All credit goes to original author """ # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html # from scrapy_deltaf...
34.450704
88
0.647588
1,962
0.802126
0
0
85
0.034751
0
0
1,150
0.470155
c1e6cca7b165fead74a5bacc1f44b552bb2b6d04
954
py
Python
tests/test_import.py
sandeep937/dvc
b3df249c9f9ae0ff2b54f58845d7c2479be86232
[ "Apache-2.0" ]
null
null
null
tests/test_import.py
sandeep937/dvc
b3df249c9f9ae0ff2b54f58845d7c2479be86232
[ "Apache-2.0" ]
null
null
null
tests/test_import.py
sandeep937/dvc
b3df249c9f9ae0ff2b54f58845d7c2479be86232
[ "Apache-2.0" ]
null
null
null
import os from uuid import uuid4 from dvc.main import main from tests.basic_env import TestDvc class TestCmdImport(TestDvc): def test(self): ret = main(['import', self.FOO, 'import']) self.assertEqual(ret, 0) self.assertTrue(os.path.exists('import.dvc')) ret = main(['import', 'n...
26.5
74
0.619497
851
0.892034
0
0
0
0
0
0
140
0.146751
c1e77797557582d8cf0f019777241dcacc17a322
1,620
py
Python
wapps/factories/identity.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
7
2018-01-17T20:26:59.000Z
2022-03-23T08:12:00.000Z
wapps/factories/identity.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
511
2017-10-21T17:59:50.000Z
2022-03-28T18:49:21.000Z
wapps/factories/identity.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
2
2018-05-02T08:27:42.000Z
2020-08-17T18:42:49.000Z
import factory from wapps.models import IdentitySettings from .image import ImageFactory, SvgFileField from .site import SiteFactory from .tag import TagFactory class IdentityFactory(factory.DjangoModelFactory): site = factory.SubFactory(SiteFactory) name = factory.Faker('word') description = factory.Fa...
30.566038
57
0.661728
1,451
0.895679
0
0
468
0.288889
0
0
233
0.143827
c1e80041ebc0d75ee3fd1571a9a3316026d87a13
4,405
py
Python
app/views/recommend.py
HunterLC/FARSystem
a8b91fcd1914e84dd2ec2b8321c51627779bb89b
[ "Apache-2.0" ]
null
null
null
app/views/recommend.py
HunterLC/FARSystem
a8b91fcd1914e84dd2ec2b8321c51627779bb89b
[ "Apache-2.0" ]
null
null
null
app/views/recommend.py
HunterLC/FARSystem
a8b91fcd1914e84dd2ec2b8321c51627779bb89b
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, redirect, url_for from flask import request from flask import render_template from flask import session from sqlalchemy import and_ from .. import db from app.models import Actors, Users, Likes from ..recommend import Recommend recommend_blue = Blueprint('recommend', __name__) @recommen...
40.787037
115
0.638138
0
0
0
0
4,229
0.930064
0
0
854
0.187816
c1ea027732ae7e7ee9cb06e19892037f93c8cab4
1,946
py
Python
neutron/tests/unit/agent/ovsdb/native/test_connection.py
SUSE-Cloud/neutron
879665d3041e74df4b287b4c18b88288850cf11c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/agent/ovsdb/native/test_connection.py
SUSE-Cloud/neutron
879665d3041e74df4b287b4c18b88288850cf11c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/agent/ovsdb/native/test_connection.py
SUSE-Cloud/neutron
879665d3041e74df4b287b4c18b88288850cf11c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
43.244444
78
0.658787
1,085
0.557554
0
0
1,031
0.529805
0
0
699
0.359198
c1ed06289f200a78cf33c1b5fc0ea50a0834297a
663
py
Python
ml-agents-envs1/mlagents/envs/communicator_objects/__init__.py
MikeWise2718/ml-agents-mod
c8393b7973be329b79cda70a7140d734205013f9
[ "Apache-2.0" ]
null
null
null
ml-agents-envs1/mlagents/envs/communicator_objects/__init__.py
MikeWise2718/ml-agents-mod
c8393b7973be329b79cda70a7140d734205013f9
[ "Apache-2.0" ]
null
null
null
ml-agents-envs1/mlagents/envs/communicator_objects/__init__.py
MikeWise2718/ml-agents-mod
c8393b7973be329b79cda70a7140d734205013f9
[ "Apache-2.0" ]
null
null
null
from .agent_action_pb2 import * from .agent_info_pb2 import * from .brain_parameters_pb2 import * from .command_pb2 import * from .compressed_observation_pb2 import * from .custom_action_pb2 import * from .custom_observation_pb2 import * from .custom_reset_parameters_pb2 import * from .demonstration_meta_pb2 im...
34.894737
50
0.809955
0
0
0
0
0
0
0
0
0
0
c1ed087977b1a3a244c379b67768158ed7b31bba
3,031
py
Python
setup.py
satvidh/batch-scoring
13da21e813da3e757526b9c51f7dd1fe2b224603
[ "BSD-3-Clause" ]
null
null
null
setup.py
satvidh/batch-scoring
13da21e813da3e757526b9c51f7dd1fe2b224603
[ "BSD-3-Clause" ]
null
null
null
setup.py
satvidh/batch-scoring
13da21e813da3e757526b9c51f7dd1fe2b224603
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import codecs import os.path import re from setuptools import setup, find_packages extra = {} def read_requirements_file(file): fname = os.path.join(os.path.abspath(os.path.dirname(__file__)), file) with open(fname, 'r') as r: return r.readlines() install_requires = ...
34.83908
109
0.709997
0
0
0
0
0
0
0
0
1,794
0.591884
c1ed569418f14a7b151160b01f80064045a30cb9
407
py
Python
evap/results/urls.py
PFischbeck/EvaP
33c4f07186966e0ef2636174aec1e6f330a91226
[ "MIT" ]
null
null
null
evap/results/urls.py
PFischbeck/EvaP
33c4f07186966e0ef2636174aec1e6f330a91226
[ "MIT" ]
null
null
null
evap/results/urls.py
PFischbeck/EvaP
33c4f07186966e0ef2636174aec1e6f330a91226
[ "MIT" ]
null
null
null
from django.urls import path from evap.results import views app_name = "results" urlpatterns = [ path("", views.index, name="index"), path("semester/<int:semester_id>/evaluation/<int:evaluation_id>", views.evaluation_detail, name="evaluation_detail"), path("evaluation/<int:evaluation_id>/text_answers_ex...
31.307692
140
0.766585
0
0
0
0
0
0
0
0
180
0.44226
c1eef54b8313d4e6d9e3bc6391a17c5d907262af
2,513
py
Python
Backend/home/home.py
davematias/PortfolioBackendV2
8fedb0cae038dda4d5c06cd2b24e17dcfee614ce
[ "MIT" ]
null
null
null
Backend/home/home.py
davematias/PortfolioBackendV2
8fedb0cae038dda4d5c06cd2b24e17dcfee614ce
[ "MIT" ]
9
2020-09-07T07:14:00.000Z
2022-02-18T09:55:16.000Z
Backend/home/home.py
davematias/PortfolioV2
8fedb0cae038dda4d5c06cd2b24e17dcfee614ce
[ "MIT" ]
null
null
null
import os import smtplib, ssl from email.message import EmailMessage from typing import Tuple from flask import Blueprint, jsonify, request from flask_jwt_extended import jwt_required from utils import dynamo site_blueprint = Blueprint('site', __name__,) @site_blueprint.route('/profile', methods=['GET']) def profile(...
28.556818
150
0.653004
0
0
0
0
1,385
0.551134
0
0
488
0.19419
c1ef6cd665d8c946e334fa3d830567b1386f5e61
312
py
Python
src/helper/helper.py
JosephSalomon/GN-Core
9baf2c49bb176a4c9ffc76ab9feb823f7ca7bd20
[ "MIT" ]
null
null
null
src/helper/helper.py
JosephSalomon/GN-Core
9baf2c49bb176a4c9ffc76ab9feb823f7ca7bd20
[ "MIT" ]
null
null
null
src/helper/helper.py
JosephSalomon/GN-Core
9baf2c49bb176a4c9ffc76ab9feb823f7ca7bd20
[ "MIT" ]
null
null
null
###***********************************### ''' Grade Notifier File: helper.py Author: Ehud Adler Core Maintainers: Ehud Adler, Akiva Sherman, Yehuda Moskovits Copyright: Copyright 2019, Ehud Adler License: MIT ''' ###***********************************### def print_to_screen(text): print("RENDER::" + text)
20.8
44
0.541667
0
0
0
0
0
0
0
0
262
0.839744
c1eff3a6449550c9247cbee5b8aedcd969ea87e9
1,845
py
Python
src/nmrezman/phase01/train/train_findings.py
mozzilab/NM_Radiology_AI
8df83c14e88534142f43411e33913682eab26582
[ "MIT" ]
1
2022-03-17T12:28:12.000Z
2022-03-17T12:28:12.000Z
src/nmrezman/phase01/train/train_findings.py
mozzilab/NM_Radiology_AI
8df83c14e88534142f43411e33913682eab26582
[ "MIT" ]
null
null
null
src/nmrezman/phase01/train/train_findings.py
mozzilab/NM_Radiology_AI
8df83c14e88534142f43411e33913682eab26582
[ "MIT" ]
null
null
null
# %% # nmrezman from .general import train_findings_model # Misc import argparse # %% desc_str = "Train Phase 01 Findings vs No Findings Model" def get_args_parser(): parser = argparse.ArgumentParser(description=desc_str, add_help=False) # Paths parser.add_argument( "--data_path", typ...
26.73913
135
0.645528
0
0
0
0
0
0
0
0
751
0.407046
c1f0856e892c8089aea911b5d6e0ad351d8e20d8
1,474
py
Python
setup.py
olricson/remotefreebox
16e2a42ed7cfcfd1ab303184280564eeace77919
[ "BSD-2-Clause" ]
14
2015-01-04T22:14:07.000Z
2020-11-11T18:53:20.000Z
setup.py
olricson/remotefreebox
16e2a42ed7cfcfd1ab303184280564eeace77919
[ "BSD-2-Clause" ]
3
2017-11-08T14:28:32.000Z
2021-08-30T21:58:04.000Z
setup.py
olricson/remotefreebox
16e2a42ed7cfcfd1ab303184280564eeace77919
[ "BSD-2-Clause" ]
7
2015-03-17T12:43:09.000Z
2020-05-10T23:47:35.000Z
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: ...
29.48
72
0.677069
0
0
0
0
0
0
0
0
905
0.613559
c1f1080c356b5d730e19c3e67bf76fb079c62c16
2,237
py
Python
model_main.py
yuxuan1995liu/darkflowyolo_detection
a7807e9b85833e3f877d46bb60e8fa7d0596a10b
[ "MIT" ]
null
null
null
model_main.py
yuxuan1995liu/darkflowyolo_detection
a7807e9b85833e3f877d46bb60e8fa7d0596a10b
[ "MIT" ]
null
null
null
model_main.py
yuxuan1995liu/darkflowyolo_detection
a7807e9b85833e3f877d46bb60e8fa7d0596a10b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from darkflow.net.build import TFNet import cv2 import pprint as pp import os # options = {"model": "cfg/custum_yolo.cfg", # "batch": 8, # "load": "bin/yolo.weights", # "epoch": 3, # "trainer":"adam", # "gpu": 1...
28.679487
136
0.599911
0
0
0
0
0
0
0
0
882
0.394278
c1f245590fbe23acc3fd6f32e6491551e7d43e6a
7,275
py
Python
train.py
angelorodem/tensorflow2-char-rnn
f28503c61de62eade9b477bf13573988fb3807de
[ "MIT" ]
null
null
null
train.py
angelorodem/tensorflow2-char-rnn
f28503c61de62eade9b477bf13573988fb3807de
[ "MIT" ]
null
null
null
train.py
angelorodem/tensorflow2-char-rnn
f28503c61de62eade9b477bf13573988fb3807de
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import argparse import pickle from colorama import init, Fore init(autoreset=True) def str2bool(v): if isinstance(v, bool): return v if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() ...
33.680556
101
0.677938
0
0
0
0
403
0.055395
0
0
1,703
0.234089
c1f29d841c4f62a411df976675d972c35cfa098c
35
py
Python
python/testData/completion/fStringLikeCompletionNotAvailableInByteLiterals.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/fStringLikeCompletionNotAvailableInByteLiterals.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
1
2020-07-30T19:04:47.000Z
2020-07-30T19:04:47.000Z
python/testData/completion/fStringLikeCompletionNotAvailableInByteLiterals.py
bradleesand/intellij-community
750ff9c10333c9c1278c00dbe8d88c877b1b9749
[ "Apache-2.0" ]
1
2020-10-15T05:56:42.000Z
2020-10-15T05:56:42.000Z
my_expr = 42 s = b'foo{my_e<caret>'
17.5
22
0.657143
0
0
0
0
0
0
0
0
18
0.514286
c1f2c8a367fb5a9ac50a001ff98f24d08a3663e9
1,023
py
Python
spark-ml-workshop/SparkCustomMLExample/src/main/python/train.py
Code360In/spark-code-examples
181c9906d32571ba6138e63040edfcb4c74ef4bf
[ "MIT" ]
null
null
null
spark-ml-workshop/SparkCustomMLExample/src/main/python/train.py
Code360In/spark-code-examples
181c9906d32571ba6138e63040edfcb4c74ef4bf
[ "MIT" ]
null
null
null
spark-ml-workshop/SparkCustomMLExample/src/main/python/train.py
Code360In/spark-code-examples
181c9906d32571ba6138e63040edfcb4c74ef4bf
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pandas as pd import pickle import sys import base64 import re from sklearn.linear_model import LinearRegression # Here we keep input data to Dataframe constructor rows = [] for line in sys.stdin: line = line.replace('[', '') line = line.replace(']', '') line = line.replace('\n'...
23.790698
72
0.654936
0
0
0
0
0
0
0
0
240
0.234604
c1f2d237f1126654af0b97b1caec7c54058b92fe
15,956
py
Python
models.py
Eudorajab1/jasmin_smsc_gui
c0a240e61791e167f23c39eb4f2663e27294af0d
[ "MIT" ]
9
2021-04-29T19:37:34.000Z
2022-03-28T23:44:54.000Z
models.py
Eudorajab1/jasmin_smsc_gui
c0a240e61791e167f23c39eb4f2663e27294af0d
[ "MIT" ]
1
2022-03-28T23:46:35.000Z
2022-03-28T23:46:35.000Z
models.py
Eudorajab1/jasmin_smsc_gui
c0a240e61791e167f23c39eb4f2663e27294af0d
[ "MIT" ]
2
2021-11-02T08:57:09.000Z
2022-02-01T14:04:57.000Z
""" This file defines the database models """ from .common import db, Field from pydal.validators import * from yatl.helpers import * from py4web.utils.form import Form, FormStyleBulma MTROUTE_TYPES = ('DefaultRoute', 'StaticMTRoute', 'RandomRoundrobinMTRoute','FailoverMTRoute') MOROUTE_TYPES = ('DefaultRoute', 'Stat...
109.287671
327
0.675859
0
0
0
0
0
0
0
0
9,994
0.625563
c1f4638cedf017f2f1d8ccd8e4707001e8f8c9ff
27
py
Python
Python POO/main.py
lucasjlgc/Python-POO
56c98e7abb47a0268396f1981e58a0a2441db4fe
[ "MIT" ]
null
null
null
Python POO/main.py
lucasjlgc/Python-POO
56c98e7abb47a0268396f1981e58a0a2441db4fe
[ "MIT" ]
null
null
null
Python POO/main.py
lucasjlgc/Python-POO
56c98e7abb47a0268396f1981e58a0a2441db4fe
[ "MIT" ]
null
null
null
from pessoa import Pessoa
9
25
0.814815
0
0
0
0
0
0
0
0
0
0
c1f4b67816e30d74cbc32d55dadcfb14a56793f0
1,043
py
Python
concurrent/futures/config.py
mikhtonyuk/rxpython
cfdd38225a3b7960bd475c6a4e380f3dd6a6a0fe
[ "MIT" ]
2
2015-11-25T15:56:04.000Z
2018-11-19T13:31:49.000Z
concurrent/futures/config.py
sergiimk/rxpython
cfdd38225a3b7960bd475c6a4e380f3dd6a6a0fe
[ "MIT" ]
null
null
null
concurrent/futures/config.py
sergiimk/rxpython
cfdd38225a3b7960bd475c6a4e380f3dd6a6a0fe
[ "MIT" ]
null
null
null
import traceback import logging logger = logging.getLogger(__package__) def log_error_handler(cls, tb): try: logger.error('Future/Task exception was never retrieved:\n%s', ''.join(tb)) except: pass class Default(object): # Called when failure of the future was not h...
28.972222
71
0.684564
794
0.761266
0
0
479
0.459252
0
0
221
0.211889
c1f564366e13f51ec035c82bf8d6c69e97064976
292
py
Python
mytest.py
chalendony/duden
bf455452ed68b4a7f39b45fec05c7236afef36e1
[ "MIT" ]
null
null
null
mytest.py
chalendony/duden
bf455452ed68b4a7f39b45fec05c7236afef36e1
[ "MIT" ]
null
null
null
mytest.py
chalendony/duden
bf455452ed68b4a7f39b45fec05c7236afef36e1
[ "MIT" ]
null
null
null
import duden def main(): # find the correct url # get definition and examples w1 = duden.get('einfach_einmal_simpel') # remove beispiel code to get the meanings??? print(w1.meaning_example) # change the depth, include code if __name__ == '__main__': main()
16.222222
49
0.660959
0
0
0
0
0
0
0
0
161
0.55137
c1f5fa22f45bcd7c67412cd5116711d5de10540b
1,275
py
Python
setup.py
gocept/gocept.download
205fc9d2f6c9dabc3081897ebb7cbaac31737f29
[ "ZPL-2.1" ]
1
2020-07-17T10:05:23.000Z
2020-07-17T10:05:23.000Z
setup.py
gocept/gocept.download
205fc9d2f6c9dabc3081897ebb7cbaac31737f29
[ "ZPL-2.1" ]
null
null
null
setup.py
gocept/gocept.download
205fc9d2f6c9dabc3081897ebb7cbaac31737f29
[ "ZPL-2.1" ]
null
null
null
"""zc.buildout recipe for downloading and extracting an archive.""" from setuptools import setup, find_packages name = "gocept.download" classifiers = [ "Environment :: Console", "Environment :: Plugins", "Framework :: Buildout", "Intended Audience :: Developers", "Intended Audience :: System Ad...
31.875
70
0.644706
0
0
0
0
0
0
0
0
685
0.537255
c1f67abeeac600fa8d3d5268d75de3463965e9bb
144
py
Python
500.py
TebbaaX/DownTime-Score
204f1f69e6ad46c36cc7d3a56483f4e51bf6c29b
[ "MIT" ]
4
2021-05-08T00:13:47.000Z
2021-05-10T00:47:00.000Z
500.py
TebbaaX/DownTime-Score
204f1f69e6ad46c36cc7d3a56483f4e51bf6c29b
[ "MIT" ]
1,449
2021-10-12T20:20:57.000Z
2022-03-31T11:40:41.000Z
500.py
TebbaaX/DownTime-Score
204f1f69e6ad46c36cc7d3a56483f4e51bf6c29b
[ "MIT" ]
1
2021-09-15T21:41:54.000Z
2021-09-15T21:41:54.000Z
import time print ("this is a 500 years python dummy file") print ("see you after 500 years") time.sleep(15768000000) print ("Time Travel!")
28.8
48
0.722222
0
0
0
0
0
0
0
0
78
0.541667
c1f7f53e370043972065de6da7367e0c0230a78e
489
py
Python
pyleecan/Methods/Slot/Slot/comp_radius_mid_active.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Slot/Slot/comp_radius_mid_active.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Slot/Slot/comp_radius_mid_active.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- def comp_radius_mid_active(self): """Compute the radius at the middle of the active part of the slot Parameters ---------- self : Slot A Slot object Returns ------- Rmw: float Mid active radius [m] """ Rbo = self.get_Rbo() Hslot = sel...
18.807692
70
0.556237
0
0
0
0
0
0
0
0
237
0.484663
c1f7fea5aff1bf06616d7084eb6453de5655b0d4
9,044
py
Python
lib/roi_data_rel/minibatch_rel.py
champon1020/TRACE
8ed0aed87e153af66f02502887a4de0d39867209
[ "MIT" ]
34
2021-08-19T05:59:58.000Z
2022-03-26T09:26:54.000Z
lib/roi_data_rel/minibatch_rel.py
champon1020/TRACE
8ed0aed87e153af66f02502887a4de0d39867209
[ "MIT" ]
8
2021-09-15T05:27:23.000Z
2022-02-27T12:38:03.000Z
lib/roi_data_rel/minibatch_rel.py
champon1020/TRACE
8ed0aed87e153af66f02502887a4de0d39867209
[ "MIT" ]
6
2021-09-16T10:51:38.000Z
2022-03-05T22:48:54.000Z
# Adapted by Ji Zhang in 2019 # # Based on Detectron.pytorch/lib/roi_data/minibatch.py written by Roy Tseng import numpy as np import cv2 import os from core.config import cfg import utils.blob as blob_utils import roi_data.rpn def get_minibatch_blob_names(is_training=True): """Return blob names in the order in...
39.321739
148
0.604821
0
0
0
0
0
0
0
0
2,334
0.258072
c1f8caf0b7bccc8a2071b61868b5c37f051d87b7
1,825
py
Python
src/enamlnative/android/android_adapter.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
237
2017-09-15T19:31:45.000Z
2022-03-17T04:22:20.000Z
src/enamlnative/android/android_adapter.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
74
2017-09-06T20:16:41.000Z
2022-03-05T13:34:35.000Z
src/enamlnative/android/android_adapter.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
22
2017-09-15T19:32:11.000Z
2022-03-17T18:33:39.000Z
""" Copyright (c) 2017, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file LICENSE, distributed with this software. Created on May 20, 2017 @author: jrm """ from atom.api import Typed, set_default from .android_view_group import AndroidViewGroup, ViewGroup from .bridge i...
34.433962
73
0.708493
1,446
0.792329
0
0
0
0
0
0
760
0.416438
c1f984744cc0b49bb53cce60881571379454c3b2
693
py
Python
instagram_api/interfaces/media/constraints.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/interfaces/media/constraints.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/interfaces/media/constraints.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod, abstractproperty __all__ = ['ConstraintsInterface'] class ConstraintsInterface(metaclass=ABCMeta): @abstractproperty def title(self) -> str: ... @abstractproperty def min_aspect_ratio(self) -> float: ... @abstractproperty def max_aspect_ratio(self) ...
22.354839
59
0.686869
596
0.860029
0
0
502
0.724387
0
0
22
0.031746
c1f9b7556a7c50bccced5f81f9d0073842096cd3
21,532
py
Python
forms/models.py
CodeForAfrica/gmmp
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
[ "Apache-2.0" ]
4
2020-01-05T09:14:19.000Z
2022-02-17T03:22:09.000Z
forms/models.py
CodeForAfrica/gmmp
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
[ "Apache-2.0" ]
68
2019-12-23T02:19:55.000Z
2021-04-23T06:13:36.000Z
forms/models.py
CodeForAfrica/gmmp
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
[ "Apache-2.0" ]
2
2020-11-07T12:23:21.000Z
2021-11-07T18:21:31.000Z
from collections import OrderedDict from django.db import models from django.utils.translation import gettext_lazy as _ from forms.modelutils import * # The following necessitated for some of the channges # https://code.djangoproject.com/ticket/19539 necessitated removal of __metaclass__ # get_fields_with_model wa...
51.635492
454
0.711081
17,279
0.80248
0
0
0
0
0
0
10,061
0.467258