hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4836790f7f179775fa2922a17970fb8bf8a4796d
95
py
Python
test_tools.py
dahcase/gee_tools
4aa445e3a25ef2b9dd19762dc21ef5dcc9debc04
[ "MIT" ]
null
null
null
test_tools.py
dahcase/gee_tools
4aa445e3a25ef2b9dd19762dc21ef5dcc9debc04
[ "MIT" ]
null
null
null
test_tools.py
dahcase/gee_tools
4aa445e3a25ef2b9dd19762dc21ef5dcc9debc04
[ "MIT" ]
1
2022-01-13T23:39:05.000Z
2022-01-13T23:39:05.000Z
# coding=utf-8 from geetools.tests import test_tools import unittest unittest.main(test_tools)
19
37
0.831579
28d0fb86c9812083762bb3cabbe48c954743b199
22,075
py
Python
dis_snek/api/http/http_requests/guild.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/api/http/http_requests/guild.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/api/http/http_requests/guild.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union from dis_snek.client.const import Absent, MISSING from dis_snek.client.utils.serializer import dict_filter_none from ..route import Route if TYPE_CHECKING: from dis_snek.models.discord.snowflake import Snowflake_Type class GuildRequests: re...
33.497724
151
0.58872
e730b1dbd6eee3e1d7e20a1747b3cae6737a7fc1
3,128
py
Python
Python/NeonOcean.S4.Order/NeonOcean/S4/Order/Tools/Once.py
NeonOcean/Order
7e7cbdb26e98bb276c7b27cedc75164634e64148
[ "CC-BY-4.0" ]
null
null
null
Python/NeonOcean.S4.Order/NeonOcean/S4/Order/Tools/Once.py
NeonOcean/Order
7e7cbdb26e98bb276c7b27cedc75164634e64148
[ "CC-BY-4.0" ]
null
null
null
Python/NeonOcean.S4.Order/NeonOcean/S4/Order/Tools/Once.py
NeonOcean/Order
7e7cbdb26e98bb276c7b27cedc75164634e64148
[ "CC-BY-4.0" ]
null
null
null
from __future__ import annotations import typing from NeonOcean.S4.Order.Tools import Exceptions class Once: def __init__ (self): """ An object for tracking whether or not sections of code that are only suppose to run once have done so already. """ self.Triggered = dict() # type: typing.Dict[str, typing.S...
37.238095
160
0.745524
2f162433572bf74f8d9cc228a9e32411493bc956
60,905
py
Python
isstools/widgets/widget_batch_mode.py
elistavitski/isstools
482b40bb0017b1a480ff862c1a53e89dfac947ec
[ "BSD-3-Clause" ]
null
null
null
isstools/widgets/widget_batch_mode.py
elistavitski/isstools
482b40bb0017b1a480ff862c1a53e89dfac947ec
[ "BSD-3-Clause" ]
null
null
null
isstools/widgets/widget_batch_mode.py
elistavitski/isstools
482b40bb0017b1a480ff862c1a53e89dfac947ec
[ "BSD-3-Clause" ]
null
null
null
import inspect import re import pkg_resources from PyQt5 import uic, QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import ( FigureCanvasQTAgg as FigureCanvas, NavigationToolbar2QT as NavigationToolbar) from matplotlib.figure import Figure from matplotlib.widgets import Cursor from PyQt5 import uic, ...
53.803004
131
0.482686
09f88ec52cb4b1182dc69684d2728fe4ffa1f97e
5,464
py
Python
clifford/tools/g3c/object_fitting.py
rotu/clifford
7a0a0e83be9e2b67da2681d66e8cb4ede912fa51
[ "BSD-3-Clause" ]
null
null
null
clifford/tools/g3c/object_fitting.py
rotu/clifford
7a0a0e83be9e2b67da2681d66e8cb4ede912fa51
[ "BSD-3-Clause" ]
null
null
null
clifford/tools/g3c/object_fitting.py
rotu/clifford
7a0a0e83be9e2b67da2681d66e8cb4ede912fa51
[ "BSD-3-Clause" ]
null
null
null
from . import * @numba.njit def val_fit_circle(point_list): """ Performs Leo Dorsts circle fitting technique """ # Check if there are just 3 points if point_list.shape[0] == 3: best_obj = point_list[0, :] for i in range(1, 3): best_obj = omt_func(best_obj, point_list[i...
35.025641
92
0.660322
e9ee0b3ef0f9af7cce9474de078f5f83a0f73c38
77,753
py
Python
examples/python/bus_driver_scheduling_flow_sat.py
mingodad/or-tools
2c67e00f3a8a861440f0b8016e209c51990a0403
[ "Apache-2.0" ]
null
null
null
examples/python/bus_driver_scheduling_flow_sat.py
mingodad/or-tools
2c67e00f3a8a861440f0b8016e209c51990a0403
[ "Apache-2.0" ]
null
null
null
examples/python/bus_driver_scheduling_flow_sat.py
mingodad/or-tools
2c67e00f3a8a861440f0b8016e209c51990a0403
[ "Apache-2.0" ]
2
2020-02-26T18:11:33.000Z
2020-12-02T07:44:34.000Z
# Copyright 2010-2018 Google LLC # 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...
42.768427
88
0.4722
42c017f2704ef055179c438cf9da10b67cb5e942
195
py
Python
Thesis@3.9.1/Lib/site-packages/django/contrib/sitemaps/apps.py
nverbois/TFE21-232
7113837b5263b5c508bfc6903cb6982b48aa7ee4
[ "MIT" ]
null
null
null
Thesis@3.9.1/Lib/site-packages/django/contrib/sitemaps/apps.py
nverbois/TFE21-232
7113837b5263b5c508bfc6903cb6982b48aa7ee4
[ "MIT" ]
null
null
null
Thesis@3.9.1/Lib/site-packages/django/contrib/sitemaps/apps.py
nverbois/TFE21-232
7113837b5263b5c508bfc6903cb6982b48aa7ee4
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class SiteMapsConfig(AppConfig): name = "django.contrib.sitemaps" verbose_name = _("Site Maps")
24.375
54
0.769231
011c49aa9a44446c1dea7cd8168289b9f4d4a546
495
py
Python
example/ABC119-D.py
koba-e964/SortedSet
f614979eb8ba3370707b8f599ade5b9fc4c3fe87
[ "Unlicense" ]
43
2021-09-05T11:23:23.000Z
2022-03-31T04:21:31.000Z
example/ABC119-D.py
koba-e964/SortedSet
f614979eb8ba3370707b8f599ade5b9fc4c3fe87
[ "Unlicense" ]
2
2022-03-04T14:10:32.000Z
2022-03-07T17:45:28.000Z
example/ABC119-D.py
koba-e964/SortedSet
f614979eb8ba3370707b8f599ade5b9fc4c3fe87
[ "Unlicense" ]
11
2022-01-20T13:36:35.000Z
2022-03-20T12:22:46.000Z
# https://atcoder.jp/contests/abc119/submissions/28441723 # paste SortedSet here import sys input = sys.stdin.readline INF = 1 << 60 A, B, Q = map(int, input().split()) s = SortedSet([-INF] + [int(input()) for i in range(A)] + [INF]) t = SortedSet([-INF] + [int(input()) for i in range(B)] + [INF]) for i in range(Q):...
26.052632
83
0.575758
dca99a25d0b354777b6ac1ea3a5b36e54ed762e6
15,085
py
Python
concordia/admin/__init__.py
Violet26/concordia
d126f80808b22e428881fb6c429f0dcb695fc8b2
[ "CC0-1.0" ]
1
2020-02-03T22:23:27.000Z
2020-02-03T22:23:27.000Z
concordia/admin/__init__.py
Violet26/concordia
d126f80808b22e428881fb6c429f0dcb695fc8b2
[ "CC0-1.0" ]
9
2021-03-19T12:43:20.000Z
2022-02-10T15:40:48.000Z
concordia/admin/__init__.py
Violet26/concordia
d126f80808b22e428881fb6c429f0dcb695fc8b2
[ "CC0-1.0" ]
null
null
null
from urllib.parse import urljoin from django.conf import settings from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.decorators import permission_required from django.contrib.auth.models import User from django.db.models import Count from django.shortcuts import g...
28.898467
87
0.638117
0737bb4aaabbea17fc036794c0f0477485f296db
7,283
py
Python
business_rules/operators.py
Buzzvil/business-rules
1b47959008a5e4f31f0d655756d34436de6785a6
[ "MIT" ]
null
null
null
business_rules/operators.py
Buzzvil/business-rules
1b47959008a5e4f31f0d655756d34436de6785a6
[ "MIT" ]
2
2021-02-02T01:32:46.000Z
2021-02-02T05:45:09.000Z
business_rules/operators.py
Buzzvil/business-rules
1b47959008a5e4f31f0d655756d34436de6785a6
[ "MIT" ]
null
null
null
from __future__ import annotations import inspect import re from decimal import Decimal from functools import wraps from .fields import FIELD_NO_INPUT, FIELD_NUMERIC, FIELD_SELECT, FIELD_SELECT_MULTIPLE, FIELD_TEXT from .utils import float_to_decimal, fn_name_to_pretty_label class BaseType(object): def __init__...
30.991489
99
0.679528
5fecd6797fa75051cc09a88bfbdb9dc80a0548c2
18,339
py
Python
prcslib/sexpdata.py
kazssym/prcslib-python
ce8d00b7d3ab9b5df39b5abca417e751999830c4
[ "MIT" ]
1
2019-09-21T14:17:44.000Z
2019-09-21T14:17:44.000Z
prcslib/sexpdata.py
kazssym/prcslib-python
ce8d00b7d3ab9b5df39b5abca417e751999830c4
[ "MIT" ]
2
2021-02-13T04:11:10.000Z
2022-03-05T02:43:47.000Z
prcslib/sexpdata.py
kazssym/prcslib-python
ce8d00b7d3ab9b5df39b5abca417e751999830c4
[ "MIT" ]
null
null
null
# [[[cog import cog; cog.outl('"""\n%s\n"""' % file('README.rst').read()) ]]] """ S-expression parser for Python ============================== `sexpdata` is a simple S-expression parser/serializer. It has simple `load` and `dump` functions like `pickle`, `json` or `PyYAML` module. >>> from sexpdata import loads, du...
27.371642
79
0.537925
d9bd8deb88faf0310ae2f10260c80cf96678032b
1,925
py
Python
aiida_abacus/calculations/functions.py
materials-science/aiida-abacus
b59e56f92b31dbe5ddf317bc4ab74eda6c3d3ea7
[ "MIT" ]
null
null
null
aiida_abacus/calculations/functions.py
materials-science/aiida-abacus
b59e56f92b31dbe5ddf317bc4ab74eda6c3d3ea7
[ "MIT" ]
null
null
null
aiida_abacus/calculations/functions.py
materials-science/aiida-abacus
b59e56f92b31dbe5ddf317bc4ab74eda6c3d3ea7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from aiida.engine import calcfunction @calcfunction def create_kpoints_from_distance(structure, distance, force_parity, system_2d): """[Refer to `aiida_quantumespresso/calculations/functions/create_kpoints_from_distance`, v.3.4.2] Calculation function to compute a k-point mesh for a struct...
37.745098
209
0.735065
4cac96847cd151b377797181ae95a15356a20e93
14,638
py
Python
GitHub_RankingsScraperShell.py
cassandrarogers/Rankings
64ae37ecc3009b59c672b6ccf63813fcac054abc
[ "MIT" ]
2
2018-06-21T20:36:44.000Z
2019-05-02T12:49:39.000Z
GitHub_RankingsScraperShell.py
cassandrarogers/Rankings
64ae37ecc3009b59c672b6ccf63813fcac054abc
[ "MIT" ]
null
null
null
GitHub_RankingsScraperShell.py
cassandrarogers/Rankings
64ae37ecc3009b59c672b6ccf63813fcac054abc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 21 15:30:15 2018 Rankings Scraper Shell @author: rogers """ def GetRankings(ranking, **kwargs): import pandas as pd import datetime from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from itertools import islice...
43.307692
128
0.576718
7a416fadc03b039aeeb53260ace412577993da89
1,393
py
Python
test.py
MenesesGHZ/KNN-python
db9cc4eb4e11a068ddb639664a9c8d1df548c308
[ "MIT" ]
null
null
null
test.py
MenesesGHZ/KNN-python
db9cc4eb4e11a068ddb639664a9c8d1df548c308
[ "MIT" ]
null
null
null
test.py
MenesesGHZ/KNN-python
db9cc4eb4e11a068ddb639664a9c8d1df548c308
[ "MIT" ]
null
null
null
import numpy as np import math from knn import KNN from graphs import display_knn_test_graph def test(): # Dataset -> Labeled Examples X = np.array([ [1, 3.6], #blue [2.2, 6.4], #blue [3.3, 0.8], #blue [3.8, 7.4], #orange [4.3, 5.1], #blue ...
29.020833
88
0.511127
241c62827da27889eecf1131b9959b6f886d28fa
1,851
py
Python
ooobuild/cssdyn/xml/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/xml/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/xml/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
57.84375
131
0.829281
0d09936106bf5b756aed5db0fb6884f9f6b195bb
285
py
Python
Util.py
CvvT/ElfParse
20f190a940ff2a48d80b05a282cfa0086c63ea75
[ "Apache-2.0" ]
8
2015-11-19T01:51:51.000Z
2019-10-12T09:57:37.000Z
Util.py
CvvT/ElfParse
20f190a940ff2a48d80b05a282cfa0086c63ea75
[ "Apache-2.0" ]
null
null
null
Util.py
CvvT/ElfParse
20f190a940ff2a48d80b05a282cfa0086c63ea75
[ "Apache-2.0" ]
15
2015-09-19T19:56:41.000Z
2019-10-12T09:57:38.000Z
__author__ = 'CwT' import struct def getStrbyfd(file, addr): file.seek(addr) # print hex(addr) str = [] byte = struct.unpack("B", file.read(1))[0] while byte: str.append(chr(byte)) byte = struct.unpack("B", file.read(1))[0] return ''.join(str)
21.923077
50
0.578947
caab6b4215b9980ad964992aa39b17c02d20ec70
3,076
py
Python
SQM_discreteness/utils.py
Ohyeon5/SQM_basis
a04662f1a4520128dd347b1e84d14717feb0655a
[ "Apache-2.0" ]
1
2020-09-22T10:32:20.000Z
2020-09-22T10:32:20.000Z
utils.py
Ohyeon5/SQM_discreteness
4f44d4f3e15e834ed544df35c065b715f1f7ce92
[ "Apache-2.0" ]
1
2021-08-23T06:59:46.000Z
2021-08-23T06:59:46.000Z
utils.py
Ohyeon5/SQM_discreteness
4f44d4f3e15e834ed544df35c065b715f1f7ce92
[ "Apache-2.0" ]
null
null
null
# utilization functions import numpy as np import pandas as pd import argparse import configparser import matplotlib.pyplot as plt # read configuration from the config.ini files def get_configs(): parser = argparse.ArgumentParser() parser.add_argument("--config", dest="config", help="Configuration file used to run...
42.136986
112
0.68498
a0c9c5b42624f567a0a7e9328de03ae28ae55223
7,952
py
Python
spark_auto_mapper_fhir/value_sets/observation_interpretation_codes.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/observation_interpretation_codes.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/observation_interpretation_codes.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
47.903614
98
0.743587
c42b9176df1cc76071d99aff4b2a7e191dd7bb76
347
py
Python
tests/test_result.py
efremov-dma/elasticmagic
90a39153289a545bd14084b9ffb17b87121da405
[ "Apache-2.0" ]
25
2015-04-27T12:43:12.000Z
2021-04-06T07:11:48.000Z
tests/test_result.py
efremov-dma/elasticmagic
90a39153289a545bd14084b9ffb17b87121da405
[ "Apache-2.0" ]
41
2015-09-28T10:51:59.000Z
2021-07-23T16:09:19.000Z
tests/test_result.py
efremov-dma/elasticmagic
90a39153289a545bd14084b9ffb17b87121da405
[ "Apache-2.0" ]
12
2015-08-28T17:30:02.000Z
2021-12-01T15:36:23.000Z
from elasticmagic import agg, types from elasticmagic.result import SearchResult def test_search_result_with_error_and_aggregations(): raw_result = {'error': True} res = SearchResult( raw_result, aggregations={'types': agg.Terms(field='type', type=types.Integer)} ) assert res.aggregati...
28.916667
75
0.708934
5c08b7981a94fbb7cee01547e252be61efd8b4b3
1,863
py
Python
2015/solutions/24.py
adtok/advent-of-code
df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01
[ "MIT" ]
null
null
null
2015/solutions/24.py
adtok/advent-of-code
df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01
[ "MIT" ]
null
null
null
2015/solutions/24.py
adtok/advent-of-code
df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01
[ "MIT" ]
null
null
null
"""Advent of Code 2015: Day 24""" import itertools import functools from typing import Callable, List def parse_input(input_file: str) -> List[int]: """Parses a file of line-separated integers into a list""" with open(input_file, "r") as file: data = list(map(int, file)) return data def product...
26.239437
71
0.66452
dcb746f824588e134e0f944fa3ca64479a088790
7,537
py
Python
python/sqlflow_submitter/xgboost/explain.py
Kelang-Tian/sqlflow
36eab7802cff31d862c1983d23407647339fd18a
[ "Apache-2.0" ]
2
2020-07-02T09:21:24.000Z
2021-07-20T03:29:12.000Z
python/sqlflow_submitter/xgboost/explain.py
Anxuy/sqlflow
400eff5f9d20dcf4af8ee5e940b078bfeca98197
[ "Apache-2.0" ]
null
null
null
python/sqlflow_submitter/xgboost/explain.py
Anxuy/sqlflow
400eff5f9d20dcf4af8ee5e940b078bfeca98197
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SQLFlow 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 applicable law o...
40.740541
91
0.551546
2cea00cdafc40a96424e3b0f137007f7cc06e2a2
1,871
py
Python
app/core/admin.py
tusharkhatiwada/swim-app-api
23050f86275569ab032a287c50268b6c641fbe0e
[ "MIT" ]
null
null
null
app/core/admin.py
tusharkhatiwada/swim-app-api
23050f86275569ab032a287c50268b6c641fbe0e
[ "MIT" ]
1
2019-08-20T17:40:23.000Z
2019-08-20T17:40:23.000Z
app/core/admin.py
tusharkhatiwada/swim-app-api
23050f86275569ab032a287c50268b6c641fbe0e
[ "MIT" ]
2
2019-10-24T07:31:22.000Z
2019-10-25T08:39:36.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import Group from rest_framework.authtoken.models import Token from django.utils.translation import gettext as _ from core import models @admin.register(models.User) class UserAdmin(Base...
26.728571
72
0.590593
afd58db5d410a62f537d6b673687eec09ed7ac61
5,346
py
Python
modin/engines/dask/pandas_on_dask/frame/partition_manager.py
ienkovich/modin
b7e1188f7ba01e3a313996e092a65b63f6b76fa0
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-19T04:01:17.000Z
2021-05-19T04:01:17.000Z
modin/engines/dask/pandas_on_dask/frame/partition_manager.py
ienkovich/modin
b7e1188f7ba01e3a313996e092a65b63f6b76fa0
[ "ECL-2.0", "Apache-2.0" ]
57
2021-01-22T15:52:03.000Z
2021-06-12T18:22:04.000Z
modin/engines/dask/pandas_on_dask/frame/partition_manager.py
ienkovich/modin
b7e1188f7ba01e3a313996e092a65b63f6b76fa0
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-29T12:12:42.000Z
2022-01-29T12:12:42.000Z
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
39.021898
87
0.589974
c6f72e4d7a4123c914394056c2c541f68d3c22c7
3,537
py
Python
components/google-cloud/tests/experimental/custom_job/integration/test_custom_job_complie.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
1
2020-05-29T06:45:46.000Z
2020-05-29T06:45:46.000Z
components/google-cloud/tests/experimental/custom_job/integration/test_custom_job_complie.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
components/google-cloud/tests/experimental/custom_job/integration/test_custom_job_complie.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow 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 applicabl...
37.62766
99
0.642635
f7319d88946b78f26293dd74a23f8a820010f76c
4,775
py
Python
.environment/lib/python3.8/site-packages/docplex/mp/engine_factory.py
LuisMi1245/QPath-and-Snakes
48f784da67d9720c955890a28543c9863e02a455
[ "MIT" ]
null
null
null
.environment/lib/python3.8/site-packages/docplex/mp/engine_factory.py
LuisMi1245/QPath-and-Snakes
48f784da67d9720c955890a28543c9863e02a455
[ "MIT" ]
null
null
null
.environment/lib/python3.8/site-packages/docplex/mp/engine_factory.py
LuisMi1245/QPath-and-Snakes
48f784da67d9720c955890a28543c9863e02a455
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # Source file provided under Apache License, Version 2.0, January 2004, # http://www.apache.org/licenses/ # (c) Copyright IBM Corp. 2015, 2016 # -------------------------------------------------------------------------- # gendoc: ignore...
39.46281
115
0.553927
146aa1e4089e245131e6204d9835b10f12c57304
347
py
Python
XiuxiuService/AliSDK/top/api/rest/AlibabaAliqinFcIotCardofferRequest.py
nightHearter/XiuxiuService
281c2d5eef85936edcd0d9ec97c8d165078f444c
[ "MIT" ]
null
null
null
XiuxiuService/AliSDK/top/api/rest/AlibabaAliqinFcIotCardofferRequest.py
nightHearter/XiuxiuService
281c2d5eef85936edcd0d9ec97c8d165078f444c
[ "MIT" ]
null
null
null
XiuxiuService/AliSDK/top/api/rest/AlibabaAliqinFcIotCardofferRequest.py
nightHearter/XiuxiuService
281c2d5eef85936edcd0d9ec97c8d165078f444c
[ "MIT" ]
null
null
null
''' Created by auto_sdk on 2017.04.21 ''' from top.api.base import RestApi class AlibabaAliqinFcIotCardofferRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.billreal = None self.billsource = None def getapiname(self): return 'alibaba...
26.692308
56
0.731988
243832ce8da6f53e18b0f5f7c2b15bd3ceb02ebc
1,268
py
Python
numba/tests/test_unsigned_arith.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
numba/tests/test_unsigned_arith.py
shiquanwang/numba
a41c85fdd7d6abf8ea1ebe9116939ddc2217193b
[ "BSD-2-Clause" ]
null
null
null
numba/tests/test_unsigned_arith.py
shiquanwang/numba
a41c85fdd7d6abf8ea1ebe9116939ddc2217193b
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import unittest from numba import void, int32, uint32, jit, int64 @jit(void(uint32[:], uint32, uint32)) def prng(X, A, C): for i in range(X.shape[0]): for j in range(100): v = (A * X[i] + C) X[i] = v & 0xffffffff @jit(uint32()) def unsigned_literal(): return...
23.481481
49
0.601735
6d2c44d8c0e7d6cdfbfa8ab703f917b2a8871b7f
337
py
Python
coursework2/task1/mapper.py
foundnet/UOE_EP_coursework1
25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8
[ "Apache-2.0" ]
null
null
null
coursework2/task1/mapper.py
foundnet/UOE_EP_coursework1
25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8
[ "Apache-2.0" ]
null
null
null
coursework2/task1/mapper.py
foundnet/UOE_EP_coursework1
25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import os file_name = os.environ["mapreduce_map_input_file"] file_name = file_name[file_name.rfind("/")+1:] for line in sys.stdin: line = line.strip() token_list = line.split(" ") for item in token_list: if item.strip() != "": print item.strip() + "\t" + f...
22.466667
57
0.620178
4b3645c2bd6c51656ff5aa50a95b177164be0c94
47
py
Python
run.py
mdaue/sanic_scaffolding
70a5f3423f92d2377cddea04836f5107d0503e77
[ "MIT" ]
3
2017-04-06T14:06:49.000Z
2020-02-23T21:10:57.000Z
run.py
mdaue/sanic_scaffolding
70a5f3423f92d2377cddea04836f5107d0503e77
[ "MIT" ]
null
null
null
run.py
mdaue/sanic_scaffolding
70a5f3423f92d2377cddea04836f5107d0503e77
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sanic_scaffolding
15.666667
24
0.808511
efe54d25a0348dae43c095647fa90b313a6c8c60
4,921
py
Python
third_party/nucleus/io/fastq.py
ruif2009/deepvariant
c7fd07016577c253f81ef253aed65c416e4c0ef7
[ "BSD-3-Clause" ]
null
null
null
third_party/nucleus/io/fastq.py
ruif2009/deepvariant
c7fd07016577c253f81ef253aed65c416e4c0ef7
[ "BSD-3-Clause" ]
null
null
null
third_party/nucleus/io/fastq.py
ruif2009/deepvariant
c7fd07016577c253f81ef253aed65c416e4c0ef7
[ "BSD-3-Clause" ]
1
2022-02-03T21:54:57.000Z
2022-02-03T21:54:57.000Z
# Copyright 2018 Google Inc. # # 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 code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
36.451852
80
0.766917
357b7489b9159212c268319ba5d1ecadbc52ffa7
836
py
Python
1980.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
1980.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
1980.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
def factorial(num): if num == 0 or num == 1: return 1 elif num == 2: return 2 elif num == 3: return 6 elif num == 4: return 24 elif num == 5: return 120 elif num == 6: return 720 elif num == 7: return 5040 elif num ==...
20.390244
29
0.4689
0c550b8eec4852984083ef098b534c0aa9c89eae
5,860
py
Python
single_stage_detector/ssd/model/anchor_utils.py
matthew-frank/training
dc72f48cc5279f80e8e1736d0756c83f9e3cf116
[ "Apache-2.0" ]
567
2018-09-13T05:07:49.000Z
2020-11-23T11:52:11.000Z
single_stage_detector/ssd/model/anchor_utils.py
matthew-frank/training
dc72f48cc5279f80e8e1736d0756c83f9e3cf116
[ "Apache-2.0" ]
222
2018-09-14T10:15:39.000Z
2020-11-20T22:21:09.000Z
single_stage_detector/ssd/model/anchor_utils.py
matthew-frank/training
dc72f48cc5279f80e8e1736d0756c83f9e3cf116
[ "Apache-2.0" ]
279
2018-09-16T12:40:29.000Z
2020-11-17T14:22:52.000Z
import math import torch from torch import nn, Tensor from typing import List, Optional from model.image_list import ImageList class AnchorGenerator(nn.Module): """ Module that generates anchors for a set of feature maps and image sizes. The module support computing anchors at multiple sizes and asp...
44.393939
117
0.636519
763ab4ee80df1b0a20c7881ccd062ebbae8175e8
250
py
Python
custom/up_nrhm/urls.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
custom/up_nrhm/urls.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
custom/up_nrhm/urls.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from django.conf.urls import url from custom.up_nrhm.views import asha_af_report urlpatterns = [ url(r'^asha_af_report/$', asha_af_report, name='asha_af_report'), ]
25
69
0.804
26c2b6ded4fa12dcb8e5522435547b7263d92309
179
py
Python
configs/mobilenet_v2/mobilenet_v2_b32x8_imagenet.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-15T07:36:04.000Z
2022-03-15T07:36:04.000Z
configs/mobilenet_v2/mobilenet_v2_b32x8_imagenet.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
5
2022-03-02T02:58:56.000Z
2022-03-23T05:51:53.000Z
configs/mobilenet_v2/mobilenet_v2_b32x8_imagenet.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2021-12-28T18:30:40.000Z
2021-12-28T18:30:40.000Z
_base_ = 'mobilenet-v2_8xb32_in1k.py' _deprecation_ = dict( expected='mobilenet-v2_8xb32_in1k.py', reference='https://github.com/open-mmlab/mmclassification/pull/508', )
25.571429
72
0.748603
aff762a7edcf62c15bcc1704da5489fd1a6c3cc7
2,535
py
Python
day8/day8.py
BLannoo/Advent-of-Code-2020
a4efa637e5885a3f849b8bad13c7115c82bdec97
[ "MIT" ]
null
null
null
day8/day8.py
BLannoo/Advent-of-Code-2020
a4efa637e5885a3f849b8bad13c7115c82bdec97
[ "MIT" ]
null
null
null
day8/day8.py
BLannoo/Advent-of-Code-2020
a4efa637e5885a3f849b8bad13c7115c82bdec97
[ "MIT" ]
null
null
null
from dataclasses import dataclass def test_silver_example(): assert 5 == run_till_loop(read_instructions("example.txt"))[0] def test_silver(): assert 1548 == run_till_loop(read_instructions("input.txt"))[0] def test_gold_example(): assert 8 == run_till_loop(read_instructions("example.txt"), True)[0] ...
31.296296
106
0.67929
71d0832275c7552dd377158c32acab0a02ee0a0a
104,399
py
Python
src/com/dtmilano/android/viewclient.py
Fuzion24/AndroidViewClient
b1dad1f059cb564aca8e55247dc16d55a3248ee9
[ "Apache-2.0" ]
3
2016-06-22T17:24:57.000Z
2020-05-29T20:08:18.000Z
src/com/dtmilano/android/viewclient.py
Fuzion24/AndroidViewClient
b1dad1f059cb564aca8e55247dc16d55a3248ee9
[ "Apache-2.0" ]
null
null
null
src/com/dtmilano/android/viewclient.py
Fuzion24/AndroidViewClient
b1dad1f059cb564aca8e55247dc16d55a3248ee9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright (C) 2012-2014 Diego Torres Milano Created on Feb 2, 2012 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 Un...
38.325624
202
0.562371
389185dbd3902154e239648b04013c0b63f6333d
11,003
py
Python
tests/optimize/test_lie_algebra.py
jsmz97/pennylane
de7b7c0b452c8d59867d11f84b9c332a36e08ab1
[ "Apache-2.0" ]
3
2022-01-19T13:41:52.000Z
2022-01-22T03:38:58.000Z
tests/optimize/test_lie_algebra.py
jsmz97/pennylane
de7b7c0b452c8d59867d11f84b9c332a36e08ab1
[ "Apache-2.0" ]
1
2021-05-18T07:38:21.000Z
2021-05-18T07:38:21.000Z
tests/optimize/test_lie_algebra.py
jsmz97/pennylane
de7b7c0b452c8d59867d11f84b9c332a36e08ab1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
29.263298
97
0.644097
af0dc418e06e950ec43c98ccb0d1391a44d5d83f
9,680
py
Python
pyquil/api/_compiler.py
notmgsk/pyquil
db42246e4cf0a7801a58250ab16629c27815997a
[ "Apache-2.0" ]
1
2019-03-11T13:37:20.000Z
2019-03-11T13:37:20.000Z
pyquil/api/_compiler.py
notmgsk/pyquil
db42246e4cf0a7801a58250ab16629c27815997a
[ "Apache-2.0" ]
null
null
null
pyquil/api/_compiler.py
notmgsk/pyquil
db42246e4cf0a7801a58250ab16629c27815997a
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright 2016-2018 Rigetti Computing # # 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...
44
104
0.665702
66d5524755827697fe10230599637df076846136
585
py
Python
turnero/turnero_app/migrations/0004_auto_20190618_1259.py
Juannauta/Turnero
4af8186cf95508713ec9bcc076740ffbc40b2bb8
[ "MIT" ]
null
null
null
turnero/turnero_app/migrations/0004_auto_20190618_1259.py
Juannauta/Turnero
4af8186cf95508713ec9bcc076740ffbc40b2bb8
[ "MIT" ]
null
null
null
turnero/turnero_app/migrations/0004_auto_20190618_1259.py
Juannauta/Turnero
4af8186cf95508713ec9bcc076740ffbc40b2bb8
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-18 12:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('turnero_app', '0003_auto_20190618_1256'), ] operations = [ migrations.AddField( model_name='serviciosusuarios', name...
24.375
54
0.606838
8d0d3b5fabca091a8eb2d15cd070993902d29727
1,009
py
Python
12 Preprocessing pipeline/train.py
aishifugi/generating-sound-with-neural-networks
e0f0b875510178f7e31764a080ca7e463af46e38
[ "MIT" ]
81
2020-11-16T12:26:55.000Z
2022-03-26T18:04:21.000Z
12 Preprocessing pipeline/train.py
aishifugi/generating-sound-with-neural-networks
e0f0b875510178f7e31764a080ca7e463af46e38
[ "MIT" ]
3
2021-06-22T14:40:50.000Z
2022-01-16T17:35:49.000Z
11 Implementing VAE/code/train.py
musikalkemist/generating-sound-with-neural-networks
4e71d22683edb9bd56aa46de3f022f4e1dec1cf1
[ "MIT" ]
27
2021-01-15T16:00:18.000Z
2022-03-16T09:11:41.000Z
from tensorflow.keras.datasets import mnist from autoencoder import VAE LEARNING_RATE = 0.0005 BATCH_SIZE = 32 EPOCHS = 100 def load_mnist(): (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = x_train.astype("float32") / 255 x_train = x_train.reshape(x_train.shape + (1,)) x_test = ...
25.871795
75
0.666006
8394a39db3f52ccba924ececb588c9535ef09a14
3,173
py
Python
kubeseal.py
p3lim/sublime-kubeseal
e91f5f771e5731e1c512c487788472ef1bfe9c02
[ "MIT" ]
null
null
null
kubeseal.py
p3lim/sublime-kubeseal
e91f5f771e5731e1c512c487788472ef1bfe9c02
[ "MIT" ]
2
2021-05-12T20:28:03.000Z
2021-05-15T13:23:55.000Z
kubeseal.py
p3lim/sublime-kubeseal
e91f5f771e5731e1c512c487788472ef1bfe9c02
[ "MIT" ]
null
null
null
import re import subprocess import sublime import sublime_plugin ANSI_ESCAPE = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]') settings = None def plugin_loaded(): ''' Called when the plugin is loaded, used to load the settings for the package. ''' global settings settings = sublime.load_settings('kuebseal.sublime-sett...
27.353448
105
0.714151
ce5587d9c8c65a6544e904ea0549dbe6c2e6b9c3
329
py
Python
aetherguild/framework/utils/sentry.py
katajakasa/aetherguild3
4dc5485398d39cc2be47820d1194d91fe73a0435
[ "MIT" ]
null
null
null
aetherguild/framework/utils/sentry.py
katajakasa/aetherguild3
4dc5485398d39cc2be47820d1194d91fe73a0435
[ "MIT" ]
null
null
null
aetherguild/framework/utils/sentry.py
katajakasa/aetherguild3
4dc5485398d39cc2be47820d1194d91fe73a0435
[ "MIT" ]
null
null
null
from raven.handlers.logging import SentryHandler from raven_aiohttp import AioHttpTransport from raven import Client class AsyncSentryHandler(SentryHandler): def __init__(self, *args, **kwargs): kwargs['client'] = Client(transport=AioHttpTransport) super(AsyncSentryHandler, self).__init__(*args, *...
32.9
65
0.765957
4da255bf08eec678cb6fe113f3829e1bfec4d259
3,471
py
Python
src/test/data_structure/list_exercise_test.py
EduHubICT/python-basic
43765320e7ff4d5d13a11684f8320513f47ea1ff
[ "MIT" ]
null
null
null
src/test/data_structure/list_exercise_test.py
EduHubICT/python-basic
43765320e7ff4d5d13a11684f8320513f47ea1ff
[ "MIT" ]
3
2020-06-13T14:48:36.000Z
2020-07-02T15:51:13.000Z
src/test/data_structure/list_exercise_test.py
Big0one/python-basic
43765320e7ff4d5d13a11684f8320513f47ea1ff
[ "MIT" ]
1
2020-06-06T22:51:50.000Z
2020-06-06T22:51:50.000Z
import unittest from src.main.data_structure.list_exercise import * class TestList(unittest.TestCase): def test_find_average(self): self.assertEqual(find_average([1, 2, 3]), 2) self.assertEqual(find_average([1, 2, 3, 4, 5, 6, 7, -1]), 3.375) def test_sort_list(self): self.assertEqual...
34.366337
86
0.553155
2d812d5fa0739929ba357062a212fedbb4c78de3
857
py
Python
tests/test_multivariate/test_sample_analysis.py
anukaal/probnum-evaluation
5074229cd6fa33aa1884eded792be5c78ba9fb4c
[ "MIT" ]
5
2021-05-01T17:20:08.000Z
2021-05-03T09:13:28.000Z
tests/test_multivariate/test_sample_analysis.py
anukaal/probnum-evaluation
5074229cd6fa33aa1884eded792be5c78ba9fb4c
[ "MIT" ]
9
2021-02-14T11:45:44.000Z
2021-06-07T09:37:33.000Z
tests/test_multivariate/test_sample_analysis.py
anukaal/probnum-evaluation
5074229cd6fa33aa1884eded792be5c78ba9fb4c
[ "MIT" ]
2
2021-02-14T10:31:21.000Z
2022-03-29T12:37:52.000Z
"""Tests for sample analysis functions.""" import numpy as np import pytest from probnumeval import multivariate @pytest.fixture def fake_samples(): return np.random.rand(100, 3) @pytest.fixture def fake_reference(): return np.random.rand(3) @pytest.mark.parametrize("p", [1, 2, np.inf]) def test_sample_s...
25.969697
86
0.757293
fbfcc818b154bd8f75bc8cc3cc661ff72a26ce82
5,124
py
Python
aoc2021/d20.py
jbudynek/advent-of-code
16ab71b110e9766b445bce3d3172b11d421b2f75
[ "CC0-1.0" ]
null
null
null
aoc2021/d20.py
jbudynek/advent-of-code
16ab71b110e9766b445bce3d3172b11d421b2f75
[ "CC0-1.0" ]
null
null
null
aoc2021/d20.py
jbudynek/advent-of-code
16ab71b110e9766b445bce3d3172b11d421b2f75
[ "CC0-1.0" ]
null
null
null
# coding: utf-8 from collections import Counter from timeit import default_timer as timer import numpy as np # Helpers ########## def print_field(xyids, DBG=True): coords = xyids.keys() if(DBG): print(xyids) x_min = min(coords, key=lambda t: t[0])[0]-1 x_max = max(coords, key=lambda t: t[0])...
23.18552
521
0.484192
cb28b7beeb920baca8daaf50418b4bc6b6bb5333
98,805
py
Python
test/test_c10d.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
1
2019-07-23T11:20:58.000Z
2019-07-23T11:20:58.000Z
test/test_c10d.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
null
null
null
test/test_c10d.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
null
null
null
import copy import math import multiprocessing import os import random import sys import tempfile import threading import time import unittest from datetime import timedelta from itertools import groupby from functools import wraps from collections import namedtuple import torch import common_utils as common from tor...
37.972713
113
0.593361
96b6ce0fa76a7f37b1fa3abdc8caa4a635ae05c4
586
py
Python
velkozz_web_api/apps/social_media_api/migrations/0002_auto_20210216_0106.py
velkoz-data-ingestion/velkozz_web_api
519a6a90e5fdf5bab8ba2daf637768c5fd424a12
[ "MIT" ]
null
null
null
velkozz_web_api/apps/social_media_api/migrations/0002_auto_20210216_0106.py
velkoz-data-ingestion/velkozz_web_api
519a6a90e5fdf5bab8ba2daf637768c5fd424a12
[ "MIT" ]
null
null
null
velkozz_web_api/apps/social_media_api/migrations/0002_auto_20210216_0106.py
velkoz-data-ingestion/velkozz_web_api
519a6a90e5fdf5bab8ba2daf637768c5fd424a12
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-16 01:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('social_media_api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='scienceposts', name='permali...
24.416667
62
0.59727
2bba1321f2937a721b5004173eb96266ad21b4ee
13,658
py
Python
src/rogerthat/bizz/friend_helper.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/friend_helper.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/friend_helper.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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...
36.324468
110
0.647825
536f80faaadafb43135fd6ff29ef9eaf3df78ce0
1,531
py
Python
helper_functions.py
SatyadevaNaidu/EdgeDetectionOfAnImage
8562677fe02baf7160342970d663e9c0b2b76d16
[ "Unlicense" ]
null
null
null
helper_functions.py
SatyadevaNaidu/EdgeDetectionOfAnImage
8562677fe02baf7160342970d663e9c0b2b76d16
[ "Unlicense" ]
null
null
null
helper_functions.py
SatyadevaNaidu/EdgeDetectionOfAnImage
8562677fe02baf7160342970d663e9c0b2b76d16
[ "Unlicense" ]
null
null
null
from pathlib import Path from skimage import io from scipy import ndimage import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg def read_colorimg(imgpath): # Read the color image color_img = mpimg.imread(imgpath) # Convert the color to grayscale gray_img = np....
38.275
108
0.677988
a4b6162ef9aead54081487d8d8c6298ecd74d06d
5,112
py
Python
setup.py
carlinmack/tqdm
6888abd3dc33582d8437d825e11a7ef45d186397
[ "MIT" ]
1
2019-11-12T23:28:21.000Z
2019-11-12T23:28:21.000Z
setup.py
carlinmack/tqdm
6888abd3dc33582d8437d825e11a7ef45d186397
[ "MIT" ]
2
2019-11-28T23:26:50.000Z
2020-10-30T12:45:23.000Z
setup.py
carlinmack/tqdm
6888abd3dc33582d8437d825e11a7ef45d186397
[ "MIT" ]
1
2021-08-30T15:26:47.000Z
2021-08-30T15:26:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup def find_packages(where='.'): # os.walk -> list[(dirname, list[subdirs], list[files])] return [folder.replace("/", ".").lstrip(".") ...
40.571429
74
0.603678
b8b80bdaa75ee426a8d629b8c7efaf3b1d5c70f8
9,893
py
Python
frontera/tests/test_utils_url.py
TeamHG-Memex/frontera
06ab4002428528a2d8b67c1e82368cc5988b2228
[ "BSD-3-Clause" ]
3
2015-11-11T19:37:16.000Z
2017-03-15T13:33:54.000Z
frontera/tests/test_utils_url.py
TeamHG-Memex/frontera
06ab4002428528a2d8b67c1e82368cc5988b2228
[ "BSD-3-Clause" ]
null
null
null
frontera/tests/test_utils_url.py
TeamHG-Memex/frontera
06ab4002428528a2d8b67c1e82368cc5988b2228
[ "BSD-3-Clause" ]
2
2016-09-08T08:30:24.000Z
2018-10-02T22:00:47.000Z
import unittest from frontera.utils.url import parse_url, parse_domain_from_url, \ parse_domain_from_url_fast, safe_url_string, canonicalize_url simple_url = 'http://www.example.com' complete_url = 'http://username:password@www.example.com:80/some/page/do?a=1&b=2&c=3#frag' class TestParseUrl(unittest.TestCase):...
49.964646
114
0.610836
507097d6242b3861342f22d46deb67628b3095e5
3,356
py
Python
suji/kansuji.py
jikyo/suji4p
00b7f6f0ac088810cbb379f6a1687db7d329a996
[ "Apache-2.0" ]
3
2021-02-16T10:53:33.000Z
2021-09-21T07:55:09.000Z
suji/kansuji.py
jikyo/suji4p
00b7f6f0ac088810cbb379f6a1687db7d329a996
[ "Apache-2.0" ]
1
2021-02-15T11:19:43.000Z
2021-02-24T07:29:03.000Z
suji/kansuji.py
jikyo/suji4p
00b7f6f0ac088810cbb379f6a1687db7d329a996
[ "Apache-2.0" ]
null
null
null
""" The entry point to the kansuji methods. This provides a method to convert from the mixed japanese number notation to Kansuji string value, and a method to convert from mixed number notations to Kansuji string. """ from suji.converter import values class Kansuji: __zero = '零' __minus = 'マイナス' __num...
23.633803
98
0.532181
5ec556c10c387c722a187725bdfd445dd0e002a0
1,738
py
Python
python_src/2020_08_august_contest/day_23.py
BurnySc2/leetcode-solutions
db86cc945f81d2b84891c5446f4887253011890e
[ "MIT" ]
null
null
null
python_src/2020_08_august_contest/day_23.py
BurnySc2/leetcode-solutions
db86cc945f81d2b84891c5446f4887253011890e
[ "MIT" ]
1
2021-08-01T09:56:31.000Z
2021-08-01T09:56:31.000Z
python_src/2020_08_august_contest/day_23.py
BurnySc2/leetcode-solutions
db86cc945f81d2b84891c5446f4887253011890e
[ "MIT" ]
null
null
null
from typing import List, Dict from collections import deque # TOO SLOW class StreamChecker: def __init__(self, words: List[str]): self.words = words self.keep_track = deque() self.word_counter: Dict[str, List[str]] = {word: list(word) for word in words} self.longest_word = max(len(i...
39.5
178
0.567319
81fd8d5ff99dac0ea700184d0817a4a885871b75
1,832
py
Python
python/src/nnabla/backward_function/clip_grad_by_value.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
1
2020-08-03T12:49:19.000Z
2020-08-03T12:49:19.000Z
python/src/nnabla/backward_function/clip_grad_by_value.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
1
2020-11-09T07:33:29.000Z
2020-11-09T07:33:29.000Z
python/src/nnabla/backward_function/clip_grad_by_value.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
37.387755
87
0.679039
05b0b553be8e24e6ac5375afb2e581a459beef8a
1,372
py
Python
autobahntestsuite/autobahntestsuite/case/case5_2.py
rishabh-bector/autobahn-testsuite
57030060630c10b22be44774973eaa61987b716c
[ "Apache-2.0" ]
595
2015-10-20T09:01:18.000Z
2022-03-28T08:48:27.000Z
autobahntestsuite/autobahntestsuite/case/case5_2.py
rishabh-bector/autobahn-testsuite
57030060630c10b22be44774973eaa61987b716c
[ "Apache-2.0" ]
73
2015-12-03T14:21:56.000Z
2022-02-05T01:53:05.000Z
autobahntestsuite/autobahntestsuite/case/case5_2.py
rishabh-bector/autobahn-testsuite
57030060630c10b22be44774973eaa61987b716c
[ "Apache-2.0" ]
65
2015-11-04T15:58:37.000Z
2022-02-09T03:49:24.000Z
############################################################################### ## ## Copyright (c) Crossbar.io Technologies GmbH ## ## 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...
41.575758
123
0.610787
6ce8d9e7e39fcdea894ebc81df888ae15bbc04a3
1,298
py
Python
Lib/site-packages/wagtailimportexport/forms.py
nateonmission/nateonmission.com
c7c5078ca2160fa97cb6cdc0497438547f82ae41
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wagtailimportexport/forms.py
nateonmission/nateonmission.com
c7c5078ca2160fa97cb6cdc0497438547f82ae41
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wagtailimportexport/forms.py
nateonmission/nateonmission.com
c7c5078ca2160fa97cb6cdc0497438547f82ae41
[ "bzip2-1.0.6" ]
null
null
null
from django import forms from django.utils.translation import ugettext as _ try: from wagtail.admin.widgets import AdminPageChooser from wagtail.core.models import Page except ImportError: # fallback for Wagtail <2.0 from wagtail.wagtailadmin.widgets import AdminPageChooser from wagtail.wagtailcore.mo...
34.157895
79
0.724191
359883fbfbbc5abcbce84f615b78aa3d0b55511d
2,246
py
Python
preprocess.py
Huy-Ngo/dependency-size
791b9a8cc3ae632d702ab0d12f13556698018a44
[ "MIT" ]
null
null
null
preprocess.py
Huy-Ngo/dependency-size
791b9a8cc3ae632d702ab0d12f13556698018a44
[ "MIT" ]
7
2020-12-15T14:05:06.000Z
2021-01-13T09:52:52.000Z
preprocess.py
Huy-Ngo/dependency-size
791b9a8cc3ae632d702ab0d12f13556698018a44
[ "MIT" ]
null
null
null
from urllib3 import PoolManager, disable_warnings disable_warnings() import json import pprint import requirements def request_pkg_info(pkg_name, pkg_ver = ''): """Get json response from pypi Parameters: pkg_name : str pkg_ver : str Returns: json/dict """ url = '' if p...
28.43038
92
0.625557
535a243224a9cf101dbd3e2441ccde5a3c2b1349
375
py
Python
pythonlatex/__init__.py
jordyril/PythonLaTeX
547c699b7f01ab90a023893f7e6a9736e78534e5
[ "MIT" ]
null
null
null
pythonlatex/__init__.py
jordyril/PythonLaTeX
547c699b7f01ab90a023893f7e6a9736e78534e5
[ "MIT" ]
null
null
null
pythonlatex/__init__.py
jordyril/PythonLaTeX
547c699b7f01ab90a023893f7e6a9736e78534e5
[ "MIT" ]
null
null
null
""" A library complementing/building upon the package 'pylatex' by Jelte Fennema (see https://github.com/JelteF/PyLaTeX for the original package) .. :copyright: (c) 2019 by Jordy Rillaerts. :license: MIT, see License for more details. """ from .figure import Figure, SubFigure from .table import Table from .savin...
31.25
91
0.762667
d3f8337903e468d168279143c8c57c038bb31e29
861
py
Python
distribution_procedures/__init__.py
Art-Ev/AequilibraE-GUI
0c6ea37dcb5079cca499a4e17f0f96586c887be7
[ "MIT" ]
22
2018-08-31T13:05:07.000Z
2021-11-18T08:50:26.000Z
distribution_procedures/__init__.py
Art-Ev/AequilibraE-GUI
0c6ea37dcb5079cca499a4e17f0f96586c887be7
[ "MIT" ]
65
2018-06-30T18:20:02.000Z
2022-03-21T04:51:43.000Z
distribution_procedures/__init__.py
Art-Ev/AequilibraE-GUI
0c6ea37dcb5079cca499a4e17f0f96586c887be7
[ "MIT" ]
6
2018-10-18T23:16:32.000Z
2022-02-10T13:39:18.000Z
""" ----------------------------------------------------------------------------------------------------------- Package: AequilibraE Name: QGIS distribution dialogs and procedures initializer Purpose: Original Author: Pedro Camargo (c@margo.co) Contributors: Last edited by: Pedro Camargo Website: ...
34.44
108
0.586527
291cf3015459404140adaf6df24ea49d5a77aa6e
169
py
Python
community_library/delivery_management/apps.py
kiruthihan10/Community-Library
d2f68e27e14586e7a2bafab42024e1e9c57834f1
[ "MIT" ]
null
null
null
community_library/delivery_management/apps.py
kiruthihan10/Community-Library
d2f68e27e14586e7a2bafab42024e1e9c57834f1
[ "MIT" ]
null
null
null
community_library/delivery_management/apps.py
kiruthihan10/Community-Library
d2f68e27e14586e7a2bafab42024e1e9c57834f1
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DeliveryManagementConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'delivery_management'
24.142857
56
0.792899
1d3890e348d6a74e2c24fa00e3fe92a19c2bbfdd
1,597
py
Python
Golem/golem_run.py
shyam-chipsoft/Tools
bfc5a15f585da429f7e87968e3401a9934eda13b
[ "MIT" ]
5
2021-03-25T09:16:28.000Z
2021-06-12T06:48:43.000Z
Golem/golem_run.py
shyam-chipsoft/Tools
bfc5a15f585da429f7e87968e3401a9934eda13b
[ "MIT" ]
null
null
null
Golem/golem_run.py
shyam-chipsoft/Tools
bfc5a15f585da429f7e87968e3401a9934eda13b
[ "MIT" ]
1
2021-07-20T05:37:16.000Z
2021-07-20T05:37:16.000Z
import os import re import time import json import collections import copy from os import listdir global_settings = '' golem_settings = [] golems = [] interval = 0 configFile = r'./config.json' def runCmd(s): # print s os.system(s + ' 2>&1') def loadCfg(): jsonfile = file(configFile) jsonobj = json.l...
28.017544
112
0.673137
2485e70d3a644b2f5d1501898a0247a909633992
1,236
py
Python
examples/test_show_file_choosers.py
mdmintz/seleniumspot
f5c225aa4fcd0b4124fc990e3892c36736290ce8
[ "MIT" ]
1
2022-02-26T15:09:58.000Z
2022-02-26T15:09:58.000Z
examples/test_show_file_choosers.py
mdmintz/seleniumspot
f5c225aa4fcd0b4124fc990e3892c36736290ce8
[ "MIT" ]
null
null
null
examples/test_show_file_choosers.py
mdmintz/seleniumspot
f5c225aa4fcd0b4124fc990e3892c36736290ce8
[ "MIT" ]
null
null
null
""" self.show_file_choosers() is used to show hidden file-upload fields. Verify that one can choose a file after the hidden input is visible. """ import os from seleniumbase import BaseCase class FileUpload(BaseCase): def test_show_file_choosers(self): self.open("https://imgbb.com/upload") ...
42.62069
76
0.679612
4c4522fbd0bde8cfe854c3c71b7a51160b73f08f
10,799
py
Python
nylon/preprocessing/preprocessing.py
admariner/nylon
a66cc594b83f50bcc38bd199382755ffbc99cfb8
[ "MIT" ]
80
2021-06-14T15:30:17.000Z
2022-01-27T03:56:43.000Z
nylon/preprocessing/preprocessing.py
admariner/nylon
a66cc594b83f50bcc38bd199382755ffbc99cfb8
[ "MIT" ]
24
2021-06-14T17:29:27.000Z
2021-08-09T14:43:40.000Z
nylon/preprocessing/preprocessing.py
admariner/nylon
a66cc594b83f50bcc38bd199382755ffbc99cfb8
[ "MIT" ]
10
2021-06-21T16:30:44.000Z
2021-07-17T12:48:32.000Z
import numpy as np import pandas as pd from sklearn.compose import ColumnTransformer from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.pipeline import Pipeline from prince.ca import CA from nltk.stem import WordNetLemmatizer from nltk.tokenize import word_tokenize from nltk.corpus import stopword...
34.39172
150
0.602278
6b7425f79dff273142b8fe3b553aa948595ab192
4,408
py
Python
test/functional/interface_bitcoin_cli.py
brebcoin/brebcoin
17829cdd63d79e8950da03d9c4ff16a4dd847875
[ "MIT" ]
null
null
null
test/functional/interface_bitcoin_cli.py
brebcoin/brebcoin
17829cdd63d79e8950da03d9c4ff16a4dd847875
[ "MIT" ]
null
null
null
test/functional/interface_bitcoin_cli.py
brebcoin/brebcoin
17829cdd63d79e8950da03d9c4ff16a4dd847875
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test brebcoin-cli""" from test_framework.test_framework import BitcoinTestFramework from test_framework...
55.1
160
0.695554
97caf7a7584269ae9301e26ea3de8b2ab1f000dd
4,354
py
Python
dc_checking/ldgplot.py
yuemning/dc-bucket-elim
c962b8fc638efbacbabbdf8c6f170c5a11be072d
[ "MIT" ]
2
2020-08-24T08:37:56.000Z
2020-10-02T02:37:12.000Z
dc_checking/ldgplot.py
yuemning/dc-bucket-elim
c962b8fc638efbacbabbdf8c6f170c5a11be072d
[ "MIT" ]
null
null
null
dc_checking/ldgplot.py
yuemning/dc-bucket-elim
c962b8fc638efbacbabbdf8c6f170c5a11be072d
[ "MIT" ]
1
2020-11-24T20:40:42.000Z
2020-11-24T20:40:42.000Z
import matplotlib.pyplot as plt import networkx as nx import math def distance(pos1, pos2): return math.sqrt((pos1[0] - pos2[0])**2 + (pos1[1] - pos2[1])**2) class LDGPlot(): """Plotting tool for labeled distance graph. Given a reference to labeled distance graph LDG, plot the graph. Assumes LDG is u...
39.225225
169
0.522508
2f51b7f1451ae7b2cd94c7303e318f07fedf0a1e
17,023
py
Python
registered/routing.py
paulswartz/registered
3f59f4886d723631d1304503558e0f5ea53a3139
[ "MIT" ]
null
null
null
registered/routing.py
paulswartz/registered
3f59f4886d723631d1304503558e0f5ea53a3139
[ "MIT" ]
null
null
null
registered/routing.py
paulswartz/registered
3f59f4886d723631d1304503558e0f5ea53a3139
[ "MIT" ]
null
null
null
""" Calculate shortest/fastest paths for missing intervals. """ from difflib import SequenceMatcher from itertools import count import os import sys import attr import folium import osmnx as ox import rtree import shapely from shapely.geometry import MultiPoint, box import networkx as nx from registered.routing_helpers...
33.509843
98
0.592845
ac2bfd3f8ca5020afd95b3b3edc68d8b70d76ccb
4,093
py
Python
mmtbx/refinement/real_space/weight.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
mmtbx/refinement/real_space/weight.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
mmtbx/refinement/real_space/weight.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function from cctbx.array_family import flex import mmtbx.refinement.real_space.individual_sites import random from six.moves import range class run(object): def __init__( self, map_data, xray_structure, pdb_hierarchy, geometry_res...
37.898148
78
0.645248
c4a8203576982b399f56c445eecafc281301430f
123
py
Python
CommentManagement/admin.py
officialrafsan/travelxpRED
2209fba418496c7e64dde8cba271cfb8020856ac
[ "MIT" ]
null
null
null
CommentManagement/admin.py
officialrafsan/travelxpRED
2209fba418496c7e64dde8cba271cfb8020856ac
[ "MIT" ]
null
null
null
CommentManagement/admin.py
officialrafsan/travelxpRED
2209fba418496c7e64dde8cba271cfb8020856ac
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Comment admin.site.register([Comment])
17.571429
32
0.788618
a98c6b223b5351f3333cb0749a3b8a5380ef7968
3,749
py
Python
test/websockets/test_poller.py
autokrator-uog/backend
0a2d46f9b52465ed8dfc9234858d6a93f3754c05
[ "MIT" ]
null
null
null
test/websockets/test_poller.py
autokrator-uog/backend
0a2d46f9b52465ed8dfc9234858d6a93f3754c05
[ "MIT" ]
null
null
null
test/websockets/test_poller.py
autokrator-uog/backend
0a2d46f9b52465ed8dfc9234858d6a93f3754c05
[ "MIT" ]
1
2019-06-09T23:51:13.000Z
2019-06-09T23:51:13.000Z
import json import pytest from unittest.mock import patch from endpoints.websockets.poller import NewInfoPollerThread class TestPoller(object): @pytest.fixture() def patch_accounts_service_client(self): p = patch("endpoints.websockets.poller.AccountsServiceClient") yield p.start().return_val...
39.882979
158
0.750067
84636c407610f85147e110c66ef90f189d473e39
3,053
py
Python
utils/python-rpc/framework/rpc.py
Aifolin/motifcoin
82c3c5378240f43e6cfde762c4c2dbc92b645cc3
[ "MIT" ]
null
null
null
utils/python-rpc/framework/rpc.py
Aifolin/motifcoin
82c3c5378240f43e6cfde762c4c2dbc92b645cc3
[ "MIT" ]
null
null
null
utils/python-rpc/framework/rpc.py
Aifolin/motifcoin
82c3c5378240f43e6cfde762c4c2dbc92b645cc3
[ "MIT" ]
1
2019-08-05T13:04:45.000Z
2019-08-05T13:04:45.000Z
# Copyright (c) 2018 The Motif Project # # 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 code must retain the above copyright notice, this list of # conditio...
36.345238
89
0.636096
f97abad955bb08abe18f04537086fb478104bcbe
2,863
py
Python
tests/test_atprogram.py
martinabr/pydgilib
9e27b11e74518375ae78959a71f896e92a51cdb1
[ "BSD-3-Clause" ]
2
2019-04-05T13:27:54.000Z
2020-10-09T22:56:22.000Z
tests/test_atprogram.py
martinabr/pydgilib
9e27b11e74518375ae78959a71f896e92a51cdb1
[ "BSD-3-Clause" ]
null
null
null
tests/test_atprogram.py
martinabr/pydgilib
9e27b11e74518375ae78959a71f896e92a51cdb1
[ "BSD-3-Clause" ]
1
2019-09-11T07:48:45.000Z
2019-09-11T07:48:45.000Z
"""This module holds the automated tests for atprogram.""" from atprogram.atprogram import (atprogram, get_device_info, get_project_size) from os import path, getcwd import pytest project_path = path.join(getcwd(), "UnitTest", "UnitTest") def test_atprogram_simple(): """test_atprogram_simple.""" assert not ...
38.173333
80
0.670625
45a2ce77620071bcb68dc6184bc3c4f73fcdb744
986
py
Python
mautrix/util/config/string.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
1
2018-08-24T13:33:30.000Z
2018-08-24T13:33:30.000Z
mautrix/util/config/string.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
4
2018-07-10T11:43:46.000Z
2018-09-03T22:08:02.000Z
mautrix/util/config/string.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
2
2018-07-03T04:07:08.000Z
2018-09-10T03:13:59.000Z
# Copyright (c) 2022 Tulir Asokan # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import annotations from abc import ABC import io from ruamel.yaml i...
25.947368
70
0.690669
c3c17b03c67cfe5844a9c17f022e8aac18ff91dc
1,752
py
Python
stackapp/utils.py
Taycode/teamwave-interview
9136920d58e945da750f462be2b3bbc22be0d7b1
[ "MIT" ]
null
null
null
stackapp/utils.py
Taycode/teamwave-interview
9136920d58e945da750f462be2b3bbc22be0d7b1
[ "MIT" ]
6
2020-06-05T20:34:24.000Z
2021-06-10T18:17:05.000Z
stackapp/utils.py
Taycode/teamwave-interview
9136920d58e945da750f462be2b3bbc22be0d7b1
[ "MIT" ]
null
null
null
import requests from datetime import datetime class StackAPIQuestion: tags = [] owner = {} is_answered = False view_count = None answer_count = None score = None last_activity_date = None creation_date = None last_edit_date = None question_id = None link = None title = ...
29.2
75
0.609018
69d31c8d4c59a0861108541d7832f94494cf6a53
423
py
Python
python/tb_web_crawler/venv/Scripts/pip3-script.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/tb_web_crawler/venv/Scripts/pip3-script.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/tb_web_crawler/venv/Scripts/pip3-script.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
#!C:\Users\Yuki\Desktop\bugs\python\tb_web_crawler\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',...
32.538462
74
0.673759
e6d5c8dd7d848239b73593327590af1705e8bc45
1,526
py
Python
Tests/Data/Elliptic/square_1x1_SteadyStateDiffusion_Python/bcs_laplace_eq.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
1
2021-06-25T13:43:06.000Z
2021-06-25T13:43:06.000Z
Tests/Data/Elliptic/square_1x1_SteadyStateDiffusion_Python/bcs_laplace_eq.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
13
2015-01-09T13:08:57.000Z
2018-01-25T12:56:17.000Z
Tests/Data/Elliptic/square_1x1_SteadyStateDiffusion_Python/bcs_laplace_eq.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
2
2018-03-01T13:07:12.000Z
2018-03-01T13:16:22.000Z
import OpenGeoSys from math import pi, sin, cos, sinh, cosh a = 2.0*pi/3.0 # analytical solution used to set the Dirichlet BCs def solution(x, y): return sin(a*x) * sinh(a*y) # gradient of the analytical solution used to set the Neumann BCs def grad_solution(x, y): return a * cos(a*x) * sinh(a*y), \ ...
28.792453
68
0.629096
3a9a158fa9dac7aa96a2b71a844672d46805c04b
3,586
py
Python
Rendering/Label/Testing/Python/labeledMesh.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,755
2015-01-03T06:55:00.000Z
2022-03-29T05:23:26.000Z
Rendering/Label/Testing/Python/labeledMesh.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
29
2015-04-23T20:58:30.000Z
2022-03-02T16:16:42.000Z
Rendering/Label/Testing/Python/labeledMesh.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,044
2015-01-05T22:48:27.000Z
2022-03-31T02:38:26.000Z
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # demonstrate use of point labeling and the selection window # Create the RenderWindow, Renderer and both Actors # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkR...
24.731034
66
0.754322
5d53ef86436aec0e2952ea793119166be04857eb
10,429
py
Python
bela/lex.py
BLIPNTU/bela
49cd9087bef88020af28a04eb67ab7dc09e17753
[ "MIT" ]
2
2022-01-26T14:11:45.000Z
2022-03-08T06:54:00.000Z
bela/lex.py
BLIPNTU/bela
49cd9087bef88020af28a04eb67ab7dc09e17753
[ "MIT" ]
null
null
null
bela/lex.py
BLIPNTU/bela
49cd9087bef88020af28a04eb67ab7dc09e17753
[ "MIT" ]
1
2022-03-16T11:31:40.000Z
2022-03-16T11:31:40.000Z
# -*- coding: utf-8 -*- # This code is a part of BELA package: https://github.com/letuananh/bela # :developer: Le Tuan Anh <tuananh.ke@gmail.com> # :license: MIT, see LICENSE for more details. """ Lexical Analyser """ import logging from pathlib import Path from collections import defaultdict as dd from collections ...
39.059925
136
0.587784
f3f7ca17dc94a0e8163b08c43f193a17c5bf3785
3,505
py
Python
testing_selenium_capabilities/tests/test_template.py
ikostan/SELENIUM_WEBDRIVER_WORKING_WITH_ELEMENTS
5039e777e4831d1a89d4056047c24e54bbfec5b3
[ "Unlicense" ]
null
null
null
testing_selenium_capabilities/tests/test_template.py
ikostan/SELENIUM_WEBDRIVER_WORKING_WITH_ELEMENTS
5039e777e4831d1a89d4056047c24e54bbfec5b3
[ "Unlicense" ]
1
2021-06-02T00:02:27.000Z
2021-06-02T00:02:27.000Z
testing_selenium_capabilities/tests/test_template.py
ikostan/SELENIUM_WEBDRIVER_WORKING_WITH_ELEMENTS
5039e777e4831d1a89d4056047c24e54bbfec5b3
[ "Unlicense" ]
1
2019-08-07T01:37:25.000Z
2019-08-07T01:37:25.000Z
import unittest import datetime from drivers.driver import Driver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver import ActionChains from selenium.webdriver.support.ui import WebDriverWait ...
31.017699
106
0.602568
1a04aafeb0a59c6303deb04828a2a12be6da0a67
303
py
Python
data/multilingual/Latn.NOB/Mono_12/pdf_to_json_test_Latn.NOB_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.NOB/Mono_12/pdf_to_json_test_Latn.NOB_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.NOB/Mono_12/pdf_to_json_test_Latn.NOB_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.NOB/Mono_12/udhr_Latn.NOB_Mono_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
d6e47199339be553f3810ff709dd04f5f2692164
9,372
py
Python
SCRAPE/Lib/site-packages/twisted/trial/_dist/worker.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/trial/_dist/worker.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/trial/_dist/worker.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.trial._dist.test.test_worker -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This module implements the worker classes. @since: 12.3 """ import os from zope.interface import implementer from twisted.internet.defer import Deferred from twisted.internet...
29.564669
86
0.637431
519bbb1b087b99a7129a1eb0d99da5eff96f6331
2,923
py
Python
src/code/plots/thesis/dg_growth.py
dvaruas/minority_recommendations
8adcbf5af5c322e4b20d4336b12ecda62a5c4d5f
[ "MIT" ]
null
null
null
src/code/plots/thesis/dg_growth.py
dvaruas/minority_recommendations
8adcbf5af5c322e4b20d4336b12ecda62a5c4d5f
[ "MIT" ]
null
null
null
src/code/plots/thesis/dg_growth.py
dvaruas/minority_recommendations
8adcbf5af5c322e4b20d4336b12ecda62a5c4d5f
[ "MIT" ]
null
null
null
# This plot is to get the degree growth for synthetic growth networks. # Minority fraction = [0.1, 0.2, 0.3, 0.4, 0.5] (x-axis) # homophily values = [0.0, 0.2, 0.5, 0.8, 1.0] (y-axis) import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir)) #---------------------...
47.918033
125
0.588779
c5575f12a27b27ee362320f4c33425e27a28c063
1,710
py
Python
test/test_ip_availabilities_list.py
displague/metal-python
96e64e9ac41025d85ff6f61693165e29e1c366db
[ "MIT" ]
null
null
null
test/test_ip_availabilities_list.py
displague/metal-python
96e64e9ac41025d85ff6f61693165e29e1c366db
[ "MIT" ]
3
2021-09-27T05:10:36.000Z
2021-09-27T06:10:57.000Z
test/test_ip_availabilities_list.py
displague/metal-python
96e64e9ac41025d85ff6f61693165e29e1c366db
[ "MIT" ]
null
null
null
# coding: utf-8 """ Metal API This is the API for Equinix Metal. The API allows you to programmatically interact with all of your Equinix Metal resources, including devices, networks, addresses, organizations, projects, and your user account. The official API docs are hosted at <https://metal.equinix.com/dev...
31.090909
312
0.678947
a2a7cb6a8f371b48c84aaa69bbff95190fdd603c
11,046
py
Python
userbot/plugins/solarsystem.py
ghion266/SensibleUserbot
16ad83206fa14fe4315143fa8a94e5687eb06fcb
[ "MIT" ]
44
2021-01-11T13:33:48.000Z
2022-02-05T17:53:33.000Z
userbot/plugins/solarsystem.py
ghion266/SensibleUserbot
16ad83206fa14fe4315143fa8a94e5687eb06fcb
[ "MIT" ]
5
2020-08-25T15:58:13.000Z
2021-02-09T09:57:57.000Z
userbot/plugins/solarsystem.py
ghion266/SensibleUserbot
16ad83206fa14fe4315143fa8a94e5687eb06fcb
[ "MIT" ]
226
2020-02-25T05:58:57.000Z
2022-03-12T04:12:33.000Z
from telethon import events import asyncio from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern=r"solarsystem")) async def _(event): if event.fwd_from: return animation_interval = 0.1 animation_ttl = range(0, 549755813888) await event.edit("Solar") animation_chars = [ ...
66.945455
76
0.080844
6a5ec02889d3e5098dc3073d5c220a9693f85494
8,403
py
Python
dashboard/apps/app1.py
gamyers/solar-697
90ca38072456af385c98b1bdf3c3d563e2c71f15
[ "MIT" ]
1
2021-08-24T00:00:23.000Z
2021-08-24T00:00:23.000Z
dashboard/apps/app1.py
gamyers/solar-697
90ca38072456af385c98b1bdf3c3d563e2c71f15
[ "MIT" ]
null
null
null
dashboard/apps/app1.py
gamyers/solar-697
90ca38072456af385c98b1bdf3c3d563e2c71f15
[ "MIT" ]
2
2021-08-30T20:36:36.000Z
2021-11-02T19:13:33.000Z
import sqlite3 import sys import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import logzero import numpy as np import pandas as pd import plotly.graph_objects as go import yaml from app import app from dash.dependencies import Input, Output from d...
32.952941
100
0.471855
e96cfab2bcc41c52643b1b66805b3431e547d7aa
14,914
py
Python
lale/lib/sklearn/random_forest_regressor.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
lale/lib/sklearn/random_forest_regressor.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
lale/lib/sklearn/random_forest_regressor.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM 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 writing, ...
41.427778
215
0.436972
02b7a499c52f149ffc58ef593948b27a0ef09da9
47
py
Python
documentation/models/__init__.py
ElNahoko/HSE_ARNOSH
1a8661db454e6a9e7f775a3ffd58a3936a43bb59
[ "Apache-2.0" ]
1
2019-08-10T17:57:58.000Z
2019-08-10T17:57:58.000Z
documentation/models/__init__.py
ElNahoko/HSE_ARNOSH
1a8661db454e6a9e7f775a3ffd58a3936a43bb59
[ "Apache-2.0" ]
null
null
null
documentation/models/__init__.py
ElNahoko/HSE_ARNOSH
1a8661db454e6a9e7f775a3ffd58a3936a43bb59
[ "Apache-2.0" ]
2
2019-08-14T18:08:04.000Z
2019-09-04T19:01:08.000Z
# -*- coding: utf-8 -*- from . import DOC_HSE
11.75
23
0.574468
2194b0f4c81f699d0b0074a2249dc674e7199f6d
3,538
py
Python
pypeln/task/stage.py
quarckster/pypeln
f4160d0f4d4718b67f79a0707d7261d249459a4b
[ "MIT" ]
1,281
2018-09-20T05:35:27.000Z
2022-03-30T01:29:48.000Z
pypeln/task/stage.py
webclinic017/pypeln
5231806f2cac9d2019dacbbcf913484fd268b8c1
[ "MIT" ]
78
2018-09-18T20:38:12.000Z
2022-03-30T20:16:02.000Z
pypeln/task/stage.py
webclinic017/pypeln
5231806f2cac9d2019dacbbcf913484fd268b8c1
[ "MIT" ]
88
2018-09-24T10:46:14.000Z
2022-03-28T09:34:50.000Z
import typing as tp from dataclasses import dataclass from pypeln import utils as pypeln_utils from pypeln.utils import T, Kwargs from .queue import IterableQueue, OutputQueues from .worker import Worker, StageParams, TaskPool, ProcessFn from .supervisor import Supervisor from . import utils @dataclass class Stage(p...
29.983051
83
0.619842
250030e6eefea385d925851a5e35a0f9d8d9b471
891
py
Python
modules/Greetings.py
TheReaper62/Embeded
9cfa9422d33d8e5586888227a89d7bf758e680d1
[ "Apache-2.0" ]
1
2021-09-21T10:25:07.000Z
2021-09-21T10:25:07.000Z
modules/Greetings.py
TheReaper62/Embeded
9cfa9422d33d8e5586888227a89d7bf758e680d1
[ "Apache-2.0" ]
null
null
null
modules/Greetings.py
TheReaper62/Embeded
9cfa9422d33d8e5586888227a89d7bf758e680d1
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands from discord.app import slash_command class Greetings(commands.Cog): def __init__(self, client): self.client = client self._last_member = None @commands.Cog.listener() async def on_member_join(self, member): channel = member.guild.sys...
31.821429
77
0.652076
9a50963bf64b12aff4a81853feea3d71f2ce9a96
56,962
py
Python
sdk/python/pulumi_aws/rds/instance.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/rds/instance.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/rds/instance.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Instan...
68.217964
1,380
0.708771
6ca3f27854ff5aba9aa7dcdc3ba1c65b78e62959
9,880
py
Python
botenv/lib/python3.9/site-packages/deprecated/classic.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
169
2017-12-05T15:22:20.000Z
2022-03-08T03:24:56.000Z
botenv/lib/python3.9/site-packages/deprecated/classic.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
48
2018-06-21T22:39:37.000Z
2022-01-07T17:57:59.000Z
botenv/lib/python3.9/site-packages/deprecated/classic.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
23
2018-06-21T22:36:48.000Z
2021-12-22T19:31:18.000Z
# -*- coding: utf-8 -*- """ Classic deprecation warning =========================== Classic ``@deprecated`` decorator to deprecate old python classes, functions or methods. .. _The Warnings Filter: https://docs.python.org/3/library/warnings.html#the-warnings-filter """ import functools import inspect import platform ...
33.720137
102
0.606781
b1f631fc212ea7f8f3f2da1212da43e3df4e7e92
2,219
py
Python
Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
1
2021-06-23T23:38:50.000Z
2021-06-23T23:38:50.000Z
Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
106
2021-06-08T23:57:54.000Z
2022-03-08T00:36:46.000Z
Examples/Tests/ElectrostaticSphereEB/PICMI_inputs_3d.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
1
2021-06-21T18:50:43.000Z
2021-06-21T18:50:43.000Z
#!/usr/bin/env python3 from pywarpx import picmi ########################## # physics parameters ########################## V_domain_boundary = 0.0 V_embedded_boundary = 1.0 ########################## # numerics parameters ########################## dt = 1e-6 # --- Nb time steps max_steps = 1 # --- grid nx = ...
21.970297
82
0.601622
c17e927a9f9a9b00b4a9f1ae20cdbe984b907f2f
7,266
py
Python
nets/off.py
reallongnguyen/Optical-Flow-Guided-Feature
f05081d76ced407c7c68013d49d57f0a20c71715
[ "MIT" ]
19
2018-12-21T03:45:02.000Z
2022-02-11T18:44:55.000Z
nets/off.py
islingio/Optical-Flow-Guided-Feature
f05081d76ced407c7c68013d49d57f0a20c71715
[ "MIT" ]
11
2020-09-25T19:44:20.000Z
2021-09-07T23:55:41.000Z
nets/off.py
islingio/Optical-Flow-Guided-Feature
f05081d76ced407c7c68013d49d57f0a20c71715
[ "MIT" ]
7
2018-10-30T04:03:36.000Z
2020-06-16T00:09:21.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import tensorflow as tf from tensorflow.contrib.layers import l2_regularizer, batch_norm, conv2d from nets import nets_factory # tf.add_check_numerics_ops() # slim = tf.contrib.slim _NUM_CHANELS = 128 sobel...
39.064516
94
0.5951
b6e37840740823f0061d05f93aa8117c4bd85acf
1,271
py
Python
src/mpl3115a2_simpletest.py
GAVLab/ros_mpl3115a2
ba6408044187857766b325bbee6c323a9753d051
[ "BSD-3-Clause" ]
null
null
null
src/mpl3115a2_simpletest.py
GAVLab/ros_mpl3115a2
ba6408044187857766b325bbee6c323a9753d051
[ "BSD-3-Clause" ]
null
null
null
src/mpl3115a2_simpletest.py
GAVLab/ros_mpl3115a2
ba6408044187857766b325bbee6c323a9753d051
[ "BSD-3-Clause" ]
null
null
null
# Simple demo of the MPL3115A2 sensor. # Will read the pressure and temperature and print them out every second. # Author: Tony DiCola import time import board import busio import adafruit_mpl3115a2 # Initialize the I2C bus. i2c = busio.I2C(board.SCL, board.SDA) # Initialize the MPL3115A2....
35.305556
82
0.742722
c45d976077c0f0fbbcbb00951bec3b8c35e0bc17
25,359
py
Python
SimulationToolsUI/ResultsViewerUI.py
keim-hs-esslingen/ki4robofleet
1ff1df5d53ab80c0dcd7b84d87c2df0071e0bf9f
[ "MIT" ]
4
2021-07-06T03:55:25.000Z
2022-03-27T17:05:59.000Z
SimulationToolsUI/ResultsViewerUI.py
keim-hs-esslingen/ki4robofleet
1ff1df5d53ab80c0dcd7b84d87c2df0071e0bf9f
[ "MIT" ]
null
null
null
SimulationToolsUI/ResultsViewerUI.py
keim-hs-esslingen/ki4robofleet
1ff1df5d53ab80c0dcd7b84d87c2df0071e0bf9f
[ "MIT" ]
1
2022-02-23T11:53:05.000Z
2022-02-23T11:53:05.000Z
#!/usr/bin/env python3 # ============================================================================= # Created at Hochschule Esslingen - University of Applied Sciences # Department: Anwendungszentrum KEIM # Contact: emanuel.reichsoellner@hs-esslingen.de # Date: May 2021 # License: MIT License # =====================...
36.698987
143
0.575417
1b678beb2bb546521cfc3b27dd7b3f043f67331e
1,555
py
Python
sdm/tests/test_sdm.py
dougalsutherland/py-sdm
9773bf33438986a8312db82b1c9086c81fae5099
[ "BSD-3-Clause" ]
21
2015-02-17T13:59:52.000Z
2019-05-08T09:25:52.000Z
sdm/tests/test_sdm.py
beartiantian/py-sdm
9773bf33438986a8312db82b1c9086c81fae5099
[ "BSD-3-Clause" ]
2
2015-01-19T17:08:23.000Z
2015-01-22T19:19:06.000Z
sdm/tests/test_sdm.py
dougalsutherland/py-sdm
9773bf33438986a8312db82b1c9086c81fae5099
[ "BSD-3-Clause" ]
5
2016-01-07T06:45:29.000Z
2018-05-21T15:50:05.000Z
from functools import partial import os import numpy as np from sklearn.preprocessing import LabelEncoder from .. import SDC, NuSDC, Features data_dir = os.path.join(os.path.dirname(__file__), 'data') ################################################################################ # TODO: add *real* tests def _ch...
31.1
80
0.485531
ed255a93edf617817fa081784ecf413134128468
36
py
Python
moviealert/exceptions.py
ArionMiles/Diomedes
50e50bae65bc35901230ead01fe5c259db1344b0
[ "MIT" ]
10
2019-03-08T12:34:21.000Z
2020-07-20T17:05:34.000Z
moviealert/exceptions.py
ArionMiles/Diomedes
50e50bae65bc35901230ead01fe5c259db1344b0
[ "MIT" ]
12
2019-05-04T18:56:34.000Z
2022-02-10T07:33:50.000Z
moviealert/exceptions.py
ArionMiles/Diomedes
50e50bae65bc35901230ead01fe5c259db1344b0
[ "MIT" ]
1
2019-04-12T16:00:15.000Z
2019-04-12T16:00:15.000Z
class BMSError(Exception): pass
12
26
0.722222
b30dba06436353d8faf55cd5df68ed17d7e1dd52
201
py
Python
packs/consul/actions/parse_nodes.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/consul/actions/parse_nodes.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/consul/actions/parse_nodes.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from lib import action class ConsulParseNodesAction(action.ConsulBaseAction): def run(self, data): nodes = [] # Loop through the keys, and return the needful return nodes
22.333333
55
0.671642
22eafde8bf7201393d6bda5decdbd7215c7458f8
1,324
py
Python
main.py
fm85/IoTB_Raspi_MQTT-Publish
3290b0ea81d110950bca16984cc88d0d923a58fb
[ "MIT" ]
null
null
null
main.py
fm85/IoTB_Raspi_MQTT-Publish
3290b0ea81d110950bca16984cc88d0d923a58fb
[ "MIT" ]
null
null
null
main.py
fm85/IoTB_Raspi_MQTT-Publish
3290b0ea81d110950bca16984cc88d0d923a58fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ------------------------------------------------------------------ Projekt: MQTT Client Beispiel Beschreibung: Publiziert exemlarisch einen Sensorwert über MQTT Abhängigkeiten: paho-mqtt (vorher mit pip3 installieren) Institution: GBS Verfasser: F.Reifler Datum: ...
25.960784
80
0.602719
eb45a785c3c38d4811ae4891ef509566f4e61c25
9,008
py
Python
trax/supervised/training_test.py
YannickWehr/trax
67dda3b236339a7f6de803a3f84a9e92d0f0442c
[ "Apache-2.0" ]
null
null
null
trax/supervised/training_test.py
YannickWehr/trax
67dda3b236339a7f6de803a3f84a9e92d0f0442c
[ "Apache-2.0" ]
null
null
null
trax/supervised/training_test.py
YannickWehr/trax
67dda3b236339a7f6de803a3f84a9e92d0f0442c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.336245
80
0.676399
63a383e7cbab3802c707edbaff1f31e38b9ee4b5
407
py
Python
src/imageclassifier/wsgi.py
ootsutsukee/Adv-Pro-Python2-final-project
50f0c8396d114be857f721918fa0013d2f15ff2c
[ "MIT" ]
null
null
null
src/imageclassifier/wsgi.py
ootsutsukee/Adv-Pro-Python2-final-project
50f0c8396d114be857f721918fa0013d2f15ff2c
[ "MIT" ]
null
null
null
src/imageclassifier/wsgi.py
ootsutsukee/Adv-Pro-Python2-final-project
50f0c8396d114be857f721918fa0013d2f15ff2c
[ "MIT" ]
1
2022-02-26T17:50:12.000Z
2022-02-26T17:50:12.000Z
""" WSGI config for imageclassifier 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/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612