hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7386ae7d3af76b23ee781c2d7088fc91be893043
3,793
py
Python
build/management/commands/build_citations.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
build/management/commands/build_citations.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
build/management/commands/build_citations.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.core.management import call_command from django.conf import settings from django.db import connection from build.management.commands.parse_excel_annotations import Command as ParseExcel from common.models import Publication, PublicationJourn...
35.448598
133
0.707619
7386ba33be23e47e3cdc26640caf5854875a75f9
13,985
py
Python
masakari_monitors_icmp_plugin/hostmonitor/host_handler_icmp/handle_host.py
ooneko/masakari-monitors-icmp-plugin
b57309a2590fa5436b197275a77da7f34f691a2e
[ "Apache-2.0" ]
null
null
null
masakari_monitors_icmp_plugin/hostmonitor/host_handler_icmp/handle_host.py
ooneko/masakari-monitors-icmp-plugin
b57309a2590fa5436b197275a77da7f34f691a2e
[ "Apache-2.0" ]
null
null
null
masakari_monitors_icmp_plugin/hostmonitor/host_handler_icmp/handle_host.py
ooneko/masakari-monitors-icmp-plugin
b57309a2590fa5436b197275a77da7f34f691a2e
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2019 UnitedStack 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 ...
34.875312
78
0.597354
7386cdd656277e9c32d56163308dd8c54f44dcc5
2,402
py
Python
custom_components/heatzy/__init__.py
moreau-se/hass-heatzy
aa5e490b473c1e63cbd3155e6c54f2f6eda34fb4
[ "MIT" ]
14
2020-12-26T00:52:26.000Z
2022-03-13T14:15:35.000Z
custom_components/heatzy/__init__.py
moreau-se/hass-heatzy
aa5e490b473c1e63cbd3155e6c54f2f6eda34fb4
[ "MIT" ]
12
2021-01-16T14:21:52.000Z
2022-03-26T12:20:19.000Z
custom_components/heatzy/__init__.py
Cyr-ius/hass-heatzy
aa5e490b473c1e63cbd3155e6c54f2f6eda34fb4
[ "MIT" ]
6
2021-03-14T12:51:45.000Z
2022-03-02T18:06:06.000Z
"""Heatzy platform configuration.""" from datetime import timedelta import logging import async_timeout from heatzypy import HeatzyClient from heatzypy.exception import HeatzyException, HttpRequestFailed from homeassistant.components.climate.const import DOMAIN as CLIM_DOMAIN from homeassistant.const import CONF_PASS...
32.026667
88
0.699001
7386e558097b9b299bffe14afa121c0e2ffc6279
4,603
py
Python
FreePie Scripts/F1-2014_and_other_games/F1 2014 Mouse Script (Full Mouse Control).py
KlrShaK/Self_Driving_in_Project_Cars
bde144eb5b8d1a382bb51e8987e93d6b74d457ce
[ "MIT" ]
2
2020-09-21T18:13:55.000Z
2020-11-18T18:01:37.000Z
FreePie Scripts/F1-2014_and_other_games/F1 2014 Mouse Script (Full Mouse Control).py
KlrShaK/Self_Driving_in_Project_Cars
bde144eb5b8d1a382bb51e8987e93d6b74d457ce
[ "MIT" ]
null
null
null
FreePie Scripts/F1-2014_and_other_games/F1 2014 Mouse Script (Full Mouse Control).py
KlrShaK/Self_Driving_in_Project_Cars
bde144eb5b8d1a382bb51e8987e93d6b74d457ce
[ "MIT" ]
null
null
null
# ============================================================================================= # /////////////////////////////// F1 2014 Mouse Steering Script /////////////////////////////// # ============================================================================================= # This is a modified script,...
50.582418
99
0.381273
73870984491e8ed833248d1a1d272ac965a4e894
3,592
py
Python
data/global-configuration/packs/azure/hostingdrivers/hostingdriver_azure.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/azure/hostingdrivers/hostingdriver_azure.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/azure/hostingdrivers/hostingdriver_azure.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os from opsbro.httpclient import get_http_exceptions, httper from opsbro.hostingdrivermanager import InterfaceHostingDriver, HOSTING_DRIVER_LAYER_CLOUD from opsbro.jsonmgr import jsoner class AzureHostingDriver(InterfaceHostingDriver): name = 'azure' layer = HOSTING_DRIVER_LAYER_CLOUD def __i...
40.818182
116
0.558463
738713f2eb81a1c95090490a7441f1830bacd712
1,868
py
Python
devel/create-test-data.py
mohanboddu/noggin
933d97b1c06db3f37acfeb86c32b45171f4e80b0
[ "MIT" ]
null
null
null
devel/create-test-data.py
mohanboddu/noggin
933d97b1c06db3f37acfeb86c32b45171f4e80b0
[ "MIT" ]
null
null
null
devel/create-test-data.py
mohanboddu/noggin
933d97b1c06db3f37acfeb86c32b45171f4e80b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import python_freeipa from faker import Faker from noggin.security.ipa import Client fake = Faker() ipa_server = "ipa.example.com" ipa_user = "admin" ipa_pw = "adminPassw0rd!" ipa = Client(host=ipa_server, verify_ssl=False) ipa.login(ipa_user, ipa_pw) # create a developers group try: ip...
26.685714
88
0.60546
738729927cf087e686729171f37728bee15864ff
848
py
Python
src/pygame_launcher.py
asmacdo/UntitledSideProject
4980da9633eda02b71ff1dfab176b575e9873714
[ "MIT" ]
null
null
null
src/pygame_launcher.py
asmacdo/UntitledSideProject
4980da9633eda02b71ff1dfab176b575e9873714
[ "MIT" ]
null
null
null
src/pygame_launcher.py
asmacdo/UntitledSideProject
4980da9633eda02b71ff1dfab176b575e9873714
[ "MIT" ]
null
null
null
import pygame from bot import UntitledSideProject from drawer.pygame_drawer.packet import packet as ex_packet from drawer.pygame import Drawer as PygameDrawer from drawer.pygame import GAME_DIMENSIONS, Location from rlbot.utils.structures.game_data_struct import GameTickPacket def main(): me = UntitledSideProject...
28.266667
66
0.708726
73875dba67fbf59fb015a15beca7714c19b4a295
294
py
Python
tests/inputs/future-features/61-function-as-an-object.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
tests/inputs/future-features/61-function-as-an-object.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
tests/inputs/future-features/61-function-as-an-object.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
# From paper: # Politz, Joe Gibbs, Alejandro Martinez, Matthew Milano, Sumner Warren, Daniel Patterson, # Junsong Li, Anand Chitipothu, and Shriram Krishnamurthi. “Python: The Full Monty.” In # ACM SIGPLAN Notices, 48:217–232. ACM, 2013. def f(): return f.x f.x = -1 v = f() # <- works! O_O
29.4
89
0.693878
738763bf3399b2f5c19271164fcfea00c757a2ec
10,233
py
Python
cockroach/proto/status_pb2.py
abhishekgahlot/cockroach-python
72903f583da182530e208cf41644d74e1a7ef505
[ "Apache-2.0" ]
1
2015-11-05T19:20:27.000Z
2015-11-05T19:20:27.000Z
cockroach/proto/status_pb2.py
abhishekgahlot/cockroach-python
72903f583da182530e208cf41644d74e1a7ef505
[ "Apache-2.0" ]
null
null
null
cockroach/proto/status_pb2.py
abhishekgahlot/cockroach-python
72903f583da182530e208cf41644d74e1a7ef505
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: cockroach/proto/status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refle...
45.079295
1,160
0.747581
738774cde978063c133743ad861126582e5b7d05
16,947
py
Python
runsum.py
daviddwlee84/RSAsummarization
39889247829546743ff22443da8266ce31e605b7
[ "Apache-2.0" ]
null
null
null
runsum.py
daviddwlee84/RSAsummarization
39889247829546743ff22443da8266ce31e605b7
[ "Apache-2.0" ]
null
null
null
runsum.py
daviddwlee84/RSAsummarization
39889247829546743ff22443da8266ce31e605b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # encoding=utf-8 from subprocess import call, STDOUT from glob import glob import nltk from nltk.corpus import stopwords import os, struct from tensorflow.core.example import example_pb2 import pyrouge import shutil from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairw...
38.168919
214
0.622588
73878b8ee47ba9f9c6d5737824228424e0895096
1,578
py
Python
problemSets/problemSet-02/02-03.bisection-search.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
1
2019-10-06T22:58:39.000Z
2019-10-06T22:58:39.000Z
problemSets/problemSet-02/02-03.bisection-search.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
problemSets/problemSet-02/02-03.bisection-search.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 5 13:12:26 2019 @author: sodatab MITx: 6.00.1x """ """ 02-03 Using Bisection Search to Make the Program Faster -------------------------------------------------------- The following variables contain values as described below: balance - the ...
28.178571
109
0.698352
738802d545f98fcedc040f618c53e20fbd770295
291
py
Python
executor/tests/seeker_tests/samples/recorder.py
Reed-CompBio/GrapheryExecutor
5692a06c9f4322fd2c6233eac487c653d2fd558f
[ "MIT" ]
null
null
null
executor/tests/seeker_tests/samples/recorder.py
Reed-CompBio/GrapheryExecutor
5692a06c9f4322fd2c6233eac487c653d2fd558f
[ "MIT" ]
null
null
null
executor/tests/seeker_tests/samples/recorder.py
Reed-CompBio/GrapheryExecutor
5692a06c9f4322fd2c6233eac487c653d2fd558f
[ "MIT" ]
null
null
null
from executor.seeker import tracer @tracer() def simple_loop_trace_non(): for i in range(10): pass @tracer("i") def simple_loop_trace_index(): for i in range(10): pass @tracer("i") def simple_while_loop_trace_index(): i = 0 while i < 10: i += 1
13.857143
36
0.611684
73882e7b59a9ea5d5f7a8558d7548001534fbb51
13,345
py
Python
src/power_load_forecaster.py
tdm-project/tdm-power-load-forecaster
4e3644dedd204b6db4bdcf459e7f9fdc4a721588
[ "Apache-2.0" ]
null
null
null
src/power_load_forecaster.py
tdm-project/tdm-power-load-forecaster
4e3644dedd204b6db4bdcf459e7f9fdc4a721588
[ "Apache-2.0" ]
null
null
null
src/power_load_forecaster.py
tdm-project/tdm-power-load-forecaster
4e3644dedd204b6db4bdcf459e7f9fdc4a721588
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2021, CRS4 - Center for Advanced Studies, Research and Development # in Sardinia # # 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.a...
41.188272
96
0.591682
73883398ae64ab61c221308358bf16ef317fc753
1,287
py
Python
meg_runtime/logger.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
null
null
null
meg_runtime/logger.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
5
2020-03-24T19:59:38.000Z
2020-04-22T03:44:43.000Z
meg_runtime/logger.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
2
2020-03-13T18:35:46.000Z
2020-04-11T20:19:20.000Z
import sys import logging class Logger(object): """Base MEG logging class.""" __instance = None def __init__(self, **kwargs): if Logger.__instance is not None: # Except if another instance is created raise Exception(self.__class__.__name__ + " is a singleton!") el...
29.930233
73
0.621601
73884545c29ce71d7da109888ea340c10f3d897e
21,787
py
Python
vyper/parser/global_context.py
daejunpark/viper
a9281385661e95610ec0b1e163fc60ebba4d7f01
[ "MIT" ]
1
2021-04-23T21:48:20.000Z
2021-04-23T21:48:20.000Z
vyper/parser/global_context.py
iamonuwa/vyper
4908ae7a671301dd487f9a087e2e7c8e1813879b
[ "MIT" ]
null
null
null
vyper/parser/global_context.py
iamonuwa/vyper
4908ae7a671301dd487f9a087e2e7c8e1813879b
[ "MIT" ]
null
null
null
from vyper import ast from vyper.ast_utils import ( parse_to_ast, ) from vyper.exceptions import ( EventDeclarationException, FunctionDeclarationException, InvalidTypeException, ParserException, StructureException, VariableDeclarationException, ) from vyper.parser.constants import ( Cons...
41.657744
171
0.551154
73885c20741806916d901970d0f178aebb0e39dd
9,450
py
Python
tf/nn/nnutils.py
gsalinaslopez/MagRSS
615a6649572b044973f753d704d706d66ae12026
[ "MIT" ]
3
2021-01-12T14:06:54.000Z
2021-01-27T10:44:33.000Z
tf/nn/nnutils.py
gsalinaslopez/MagRSS
615a6649572b044973f753d704d706d66ae12026
[ "MIT" ]
null
null
null
tf/nn/nnutils.py
gsalinaslopez/MagRSS
615a6649572b044973f753d704d706d66ae12026
[ "MIT" ]
null
null
null
import csv import datetime import pathlib import matplotlib.pyplot as plt import numpy as np import pandas as pd import tensorflow as tf from tensorflow import keras from tensorflow import feature_column """ Data handling and generators """ def _get_clean_train_filepaths(train_data_dir): """Crawls directory s...
29.439252
81
0.638836
73888fc045516d876a006fe1be5521e77e7d356b
2,015
gyp
Python
support/v8/src/extensions/experimental/experimental.gyp
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
1
2021-01-05T12:18:32.000Z
2021-01-05T12:18:32.000Z
support/v8/src/extensions/experimental/experimental.gyp
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
1
2022-03-27T10:33:09.000Z
2022-03-27T10:33:09.000Z
support/v8/src/extensions/experimental/experimental.gyp
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
null
null
null
# Copyright 2011 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
39.509804
72
0.690819
7388936f5aa724c58cfd963ec5de8b8cc30fb599
7,727
py
Python
aea/helpers/ipfs/pb/unixfs_pb2.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/helpers/ipfs/pb/unixfs_pb2.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/helpers/ipfs/pb/unixfs_pb2.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: unixfs.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
29.605364
588
0.593892
73889a9bb0fa8bae8f78d7bf59e0d974657ddca4
1,972
py
Python
tests/settings.py
SamTheisens/kawalc1
c0189c04d130680e51ca4396794c735bd51cf258
[ "MIT" ]
14
2019-04-07T08:04:15.000Z
2019-11-03T08:27:51.000Z
tests/settings.py
kawalc1/kawalc1
6963f7f3f93e7ab897dfcda265c9dd3b12433f18
[ "MIT" ]
22
2019-03-25T05:27:12.000Z
2020-08-17T22:13:19.000Z
tests/settings.py
kawalc1/kawalc1
6963f7f3f93e7ab897dfcda265c9dd3b12433f18
[ "MIT" ]
1
2019-04-07T16:18:33.000Z
2019-04-07T16:18:33.000Z
import os LOCAL = True # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = "./" import logging mpl_logger = logging.getLogger('matplotlib') mpl_logger.setLevel(logging.WARNING) INMEMORYSTORAGE_PERSIST = True STATIC_DIR = os.path.join(BASE_DIR, 'static') VALIDATION_DIR = os.path.join(...
27.013699
71
0.731237
7388caa2cfa62027f7f299253ace5d53077ad0b9
2,436
py
Python
pydemic/models/clinical_acessor.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
pydemic/models/clinical_acessor.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
pydemic/models/clinical_acessor.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
from typing import Union, TYPE_CHECKING import sidekick as sk if TYPE_CHECKING: from ..clinical_models import CrudeFR, HospitalizationWithDelay, HospitalizationWithOverflow ClinicalModel = Union["CrudeFR", "HospitalizationWithDelay", "HospitalizationWithOverflow"] class Clinical: """ Implements the...
30.835443
96
0.627258
7388d6c9d01986fab1e7cb80d7b2ece4342887bb
2,964
py
Python
script/ht_bert_model.py
FooQoo/getting-started-prediction-competition
342655aceabacd90f9746a1dc5870afa56944975
[ "MIT" ]
null
null
null
script/ht_bert_model.py
FooQoo/getting-started-prediction-competition
342655aceabacd90f9746a1dc5870afa56944975
[ "MIT" ]
null
null
null
script/ht_bert_model.py
FooQoo/getting-started-prediction-competition
342655aceabacd90f9746a1dc5870afa56944975
[ "MIT" ]
null
null
null
import numpy as np import optuna import pandas as pd from random import randint import lightgbm as lgb from catboost import CatBoost from catboost import Pool from sklearn.linear_model import LogisticRegression from sklearn.metrics import confusion_matrix, classification_report, f1_score from tqdm import tqdm def get_...
33.681818
94
0.667341
73890b31aca219029a40cb86ee156f39a4131c7f
8,780
py
Python
engine/src/juliabox/vol/volmgr.py
karthiganesh/juliabox
761d39c7f8f481bdb5bf1dc4011d4e267158e551
[ "MIT" ]
50
2016-09-09T02:17:09.000Z
2022-03-15T17:16:20.000Z
engine/src/juliabox/vol/volmgr.py
wsshin/JuliaBox
395df7654834f9671ab132cd29c02fb05ce42c27
[ "MIT" ]
58
2016-08-29T19:19:28.000Z
2018-11-14T01:49:16.000Z
engine/src/juliabox/vol/volmgr.py
wsshin/JuliaBox
395df7654834f9671ab132cd29c02fb05ce42c27
[ "MIT" ]
24
2016-09-27T18:20:54.000Z
2022-01-02T09:37:44.000Z
import os import datetime import errno import pytz from juliabox.jbox_util import LoggerMixin, unique_sessname from juliabox.db import JBoxUserV2, JBoxDynConfig from jbox_volume import JBoxVol from juliabox.cloud import JBPluginCloud, Compute class VolMgr(LoggerMixin): STATS = None STAT_NAME = "stat_volmgr" ...
37.046414
119
0.616059
738919336d965535070e8f5c3b1c77afa3d9cf80
3,748
py
Python
metalibm_functions/unit_tests/fuse_fma.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
2
2019-02-18T13:42:04.000Z
2021-03-12T18:54:53.000Z
metalibm_functions/unit_tests/fuse_fma.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
metalibm_functions/unit_tests/fuse_fma.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
36.038462
89
0.70064
738921989a2bdec68647069a9b524b0c70e83266
1,449
py
Python
blousebrothers/confs/management/commands/update_stats.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/confs/management/commands/update_stats.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/confs/management/commands/update_stats.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
import numpy as np from django.core.management.base import BaseCommand from oscar.core.loading import get_classes StatsSpe, StatsItem, Test, Speciality, Item, Conference = get_classes( 'confs.models', ( "StatsSpe", "StatsItem", "Test", "Speciality", "Item", "Conference" ) ) class Command(BaseCo...
32.2
93
0.569358
73893b555ea5a1f6942d3226890ee853635ee810
2,310
py
Python
tests/api/v2_1_1/test_users.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_users.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_users.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI users API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 without restriction, inc...
34.477612
95
0.774026
73893d3ab713b4623307495a9ee1b8d24327ba81
6,070
py
Python
state.py
psorus/gradeopt
65b11fc3527904ec45b07ffa962fa4df63d2e41e
[ "MIT" ]
null
null
null
state.py
psorus/gradeopt
65b11fc3527904ec45b07ffa962fa4df63d2e41e
[ "MIT" ]
null
null
null
state.py
psorus/gradeopt
65b11fc3527904ec45b07ffa962fa4df63d2e41e
[ "MIT" ]
null
null
null
from abc import ABCMeta,abstractmethod class state: """Each class supports a leave(leave,into)->bool, with which you can stop the transformation from leave into into (return False to stop the execution). Also there is the less general leave_[state0](into)->bool, which is called after the general one. After those tw...
35.91716
728
0.665898
738946ef44c3b4b81a9406643fe6c2ce58c95a47
8,096
py
Python
VAE_clim_clim_conv_opt_ann_BN_2.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
VAE_clim_clim_conv_opt_ann_BN_2.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
VAE_clim_clim_conv_opt_ann_BN_2.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
""" training of VAE_clim_clim_conv with 2 latent nodes """ # loading some packages from tensorflow.keras.layers import Lambda, Input, Dense from cbrain.layers import * from tensorflow.keras.models import Model from tensorflow.keras.losses import mse, binary_crossentropy from tensorflow.keras.utils import plot_model f...
30.322097
125
0.740242
73894ff79e05d922ca567cddf0bfcd394986c008
20,517
py
Python
sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
41.786151
216
0.671297
738958dedec406bec536a41c5cd01cea6e977e3f
94
py
Python
TGMMlibraries/TGMMlibraries/__init__.py
Xqua/standalone-Mouse
1655a2cf15563155a13d6094638c5d440a383005
[ "BSD-3-Clause" ]
2
2018-10-16T01:52:14.000Z
2021-03-16T11:53:46.000Z
TGMMlibraries/TGMMlibraries/__init__.py
leoguignard/Mouse-Atlas
d2985fbb6251b60a5830a4d5e7e112a92738a665
[ "BSD-3-Clause" ]
2
2018-11-24T00:16:44.000Z
2019-11-11T09:01:26.000Z
TGMMlibraries/TGMMlibraries/__init__.py
leoguignard/Mouse-Atlas
d2985fbb6251b60a5830a4d5e7e112a92738a665
[ "BSD-3-Clause" ]
2
2018-11-21T23:55:04.000Z
2020-12-10T16:52:54.000Z
# from hierarchicalTree import hierarchicalTree, read_svb from lineageTree import lineageTree
31.333333
57
0.87234
7389682b426abaca0ad485b68aa62a4ad9fb513c
319
py
Python
Algorithms/Codeforces Round #784 (Div. 4)/B.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
null
null
null
Algorithms/Codeforces Round #784 (Div. 4)/B.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
null
null
null
Algorithms/Codeforces Round #784 (Div. 4)/B.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
1
2022-03-07T13:56:55.000Z
2022-03-07T13:56:55.000Z
from collections import Counter t = int(input()) res = "" for _ in range(t): n = int(input()) raw_list = input().split() raw_list = [int(raw_list[i]) for i in range(n)] ctr = Counter(raw_list) res += (str(ctr.most_common(1)[0][0] if ctr.most_common(1)[0][1] >= 3 else -1)) + '\n' print(res)
21.266667
90
0.583072
73896f107b8413e0b3f1406e82ad2fa80128176a
3,959
py
Python
Lib/sharing.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
Lib/sharing.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
null
null
null
Lib/sharing.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sharing Items This module allows you to share items, to import files and to open URLs. """ import pyto import threading import base64 import os from typing import List try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(class_name): return None __PySh...
22.884393
180
0.635514
7389805304bfee13a5a27f1ec0eed465c954f211
5,388
py
Python
Tools/Scripts/webkitpy/layout_tests/servers/http_server_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/layout_tests/servers/http_server_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/layout_tests/servers/http_server_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2012 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
49.888889
201
0.676318
7389cfa5e772daaba9a8d5eb06b95b0fe2f5c60b
736
py
Python
algorithms/python/ilog2.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
1
2017-02-20T21:04:47.000Z
2017-02-20T21:04:47.000Z
algorithms/python/ilog2.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
null
null
null
algorithms/python/ilog2.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
2
2017-02-20T21:04:49.000Z
2021-05-18T11:29:16.000Z
def ilog2(n): ''' Return binary logarithm base two of n. >>> ilog2(0) Traceback (most recent call last): ... ValueError: math domain error >>> ilog2(-10) Traceback (most recent call last): ... ValueError: math domain error >>> [ilog2(i) for i in range(1, 10)] [0, 1, 1, 2...
24.533333
46
0.504076
7389e80999c8fa4d5e78c0d69d1a3ae1c1b3a5c4
1,226
py
Python
tensorflow_similarity/training_metrics/__init__.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
706
2021-09-04T02:11:05.000Z
2022-03-31T13:29:14.000Z
tensorflow_similarity/training_metrics/__init__.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
119
2021-09-01T22:32:40.000Z
2022-03-30T22:39:27.000Z
tensorflow_similarity/training_metrics/__init__.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
57
2021-09-04T02:11:14.000Z
2022-03-31T13:29:15.000Z
# Copyright 2021 The TensorFlow 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 agreed to ...
45.407407
80
0.796085
738a1759c6b44f9f4836b56f8c95d2437ec0da58
8,672
py
Python
SCRAPE/Lib/site-packages/twisted/web/http_headers.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/web/http_headers.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/web/http_headers.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.web.test.test_http_headers -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An API for storing HTTP header names and values. """ from collections.abc import Sequence as _Sequence from typing import ( AnyStr, Dict, Iterator, List, Mapping...
30.751773
87
0.587984
738a3f16f6bf56d3e72241171778f8bf90f441ff
2,006
py
Python
properties/meshes.py
aditiapratama/blenderseed
667af6742af4a2a4b94fbad1e0732dd56724afb1
[ "MIT" ]
256
2015-03-29T06:17:49.000Z
2022-03-31T03:45:52.000Z
properties/meshes.py
aditiapratama/blenderseed
667af6742af4a2a4b94fbad1e0732dd56724afb1
[ "MIT" ]
366
2017-02-06T18:45:01.000Z
2021-09-22T07:25:13.000Z
properties/meshes.py
aditiapratama/blenderseed
667af6742af4a2a4b94fbad1e0732dd56724afb1
[ "MIT" ]
56
2015-03-09T09:02:57.000Z
2022-01-07T15:53:43.000Z
# # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2019 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
38.576923
84
0.731306
738a571317f2033200d574625236e04ce8c1780e
58
py
Python
jumpscale/tools/zos/consumption/__init__.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/tools/zos/consumption/__init__.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/tools/zos/consumption/__init__.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from .usage import cloud_units, cost, calculate_vdc_price
29
57
0.844828
738a91d126f4f9f474362a0f16ba4877c910b842
2,316
py
Python
__init__.py
sayonarahash-bye/firecat
9d88cc454689124fad2a4035155c7361b4920659
[ "MIT" ]
null
null
null
__init__.py
sayonarahash-bye/firecat
9d88cc454689124fad2a4035155c7361b4920659
[ "MIT" ]
null
null
null
__init__.py
sayonarahash-bye/firecat
9d88cc454689124fad2a4035155c7361b4920659
[ "MIT" ]
null
null
null
import platform class firecat: """ Mess files like an cat. """ def __init__(self): pass def read(self, file): """ param file: the file to be read return -> io: the file's content """ with open(file) as fl: read = fl.read(...
26.318182
63
0.474093
738aa1eccefcab1a1c5873cd3dc67343d5b0f5a2
1,080
py
Python
locallibrary/contrib/sites/migrations/0003_set_site_domain_and_name.py
PFdevelopment/locallibrary
7e061a72d67d1bc89fa792850c7a699fec48dea9
[ "MIT" ]
null
null
null
locallibrary/contrib/sites/migrations/0003_set_site_domain_and_name.py
PFdevelopment/locallibrary
7e061a72d67d1bc89fa792850c7a699fec48dea9
[ "MIT" ]
null
null
null
locallibrary/contrib/sites/migrations/0003_set_site_domain_and_name.py
PFdevelopment/locallibrary
7e061a72d67d1bc89fa792850c7a699fec48dea9
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
25.116279
129
0.642593
738b0b61e17ab475a11081f6af81e4b675d09701
5,302
py
Python
oscar/lib/python2.7/site-packages/django_extensions/management/commands/sqldsn.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_extensions/management/commands/sqldsn.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_extensions/management/commands/sqldsn.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sqldns.py - Prints Data Source Name on stdout """ import sys from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django.core.management.color import color_style class Command(BaseCommand): help = """Prints DSN on stdout...
36.819444
113
0.454545
738b11b6cf0b3b01c1bd7d7fe167b8324593c651
9,461
py
Python
client/ClientMain.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
client/ClientMain.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
client/ClientMain.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
from utils.StorageUtility import StorageUtility from tkinter import simpledialog import tkinter as tk from tkinter import ttk from gui.LoginWindow import LoginWindow from ClientNode import ClientNode from gui.VerticalScrolledPane import VerticalScrolledPane from gui.MessageThumbnail import MessageThumbnail from gui.Reg...
43.004545
120
0.63989
738b2d977490b226f302b44d493230256d2fb64c
16,607
py
Python
sphinxcontrib/needs/directives/needbar.py
Youcef-DZ/sphinxcontrib-needs
bfd66ff49bbbe05679d71ac9c9f86bf8f1b9b786
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/needbar.py
Youcef-DZ/sphinxcontrib-needs
bfd66ff49bbbe05679d71ac9c9f86bf8f1b9b786
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/needbar.py
Youcef-DZ/sphinxcontrib-needs
bfd66ff49bbbe05679d71ac9c9f86bf8f1b9b786
[ "MIT" ]
null
null
null
import math import os import matplotlib import numpy from docutils import nodes from sphinxcontrib.needs.filter_common import FilterBase, filter_needs if not os.environ.get("DISPLAY"): matplotlib.use("Agg") import hashlib from docutils.parsers.rst import directives from sphinxcontrib.needs.logging import get_l...
39.167453
118
0.59764
738b405cce402a251770a0175412bbdaa7ded93c
41,188
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
40.942346
217
0.662596
738b49f4c543c64b4ff9989b52a6424d84e0637e
20,824
py
Python
homeassistant/helpers/entity.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-04-07T15:44:54.000Z
2020-04-07T15:44:54.000Z
homeassistant/helpers/entity.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
homeassistant/helpers/entity.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""An abstract class for entities.""" from abc import ABC import asyncio from datetime import datetime, timedelta import functools as ft import logging from timeit import default_timer as timer from typing import Any, Dict, Iterable, List, Optional, Union from homeassistant.config import DATA_CUSTOMIZE from homeassist...
32.335404
134
0.624184
738bed72b095760a9d5637e1c72ee7ccba541442
5,307
py
Python
tests/launcher/test_service.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/launcher/test_service.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/launcher/test_service.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from pathlib import Path from unittest.mock import Mock, patch from uuid import uuid4 import pytest from antarest.core.config import Config from antarest.core.interfaces.eventbus import Event, EventType from antarest.core.jwt import JWTUser from antarest.core.requests import RequestParameters from antarest.launcher.m...
27.076531
79
0.661202
738beef140ee1f2eb80d4157b625e5ad2ebfe590
9,551
py
Python
feincms/module/medialibrary/models.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
17
2015-03-11T09:57:21.000Z
2019-09-03T11:11:45.000Z
feincms/module/medialibrary/models.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
null
null
null
feincms/module/medialibrary/models.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
3
2015-07-07T06:33:11.000Z
2020-01-29T15:45:49.000Z
# ------------------------------------------------------------------------ # coding=utf-8 # ------------------------------------------------------------------------ from __future__ import absolute_import, unicode_literals import os import re import six import django from django.db import models from django.db.models...
30.612179
87
0.56727
738c3d046f0a4a33215558bba7a9738f4758b4d3
3,600
py
Python
tests/test_change_finder.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
null
null
null
tests/test_change_finder.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
100
2021-02-06T17:50:15.000Z
2022-03-31T20:30:49.000Z
tests/test_change_finder.py
ardhani31/Covid19-SIRV
813bc66f668a3d2945dc97474ea1149bbc6e40c2
[ "Apache-2.0" ]
1
2021-09-18T12:36:11.000Z
2021-09-18T12:36:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest import warnings from covsirphy import ChangeFinder, Trend, Term class TestChangeFinder(object): @pytest.mark.parametrize( "country", [ "Italy", "Japan", "India", "United States", "Greece", "Russia", "Brazil", "Fra...
42.857143
82
0.663333
738c4c2031a7de0e7bbb7013a97f0642abcccfb0
3,026
py
Python
cosmic_toolkit/models.py
RonquilloAeon/cosmic-py
1035df714a58b7c9c23d785d55c21d589fe497a9
[ "MIT" ]
null
null
null
cosmic_toolkit/models.py
RonquilloAeon/cosmic-py
1035df714a58b7c9c23d785d55c21d589fe497a9
[ "MIT" ]
2
2021-06-04T16:07:11.000Z
2021-08-04T04:22:22.000Z
cosmic_toolkit/models.py
RonquilloAeon/cosmic-py
1035df714a58b7c9c23d785d55c21d589fe497a9
[ "MIT" ]
null
null
null
import inspect import json from abc import ABCMeta, abstractmethod from datetime import datetime from decimal import Decimal from typing import Any, Generator, List, Optional, Type from uuid import UUID from pydantic import BaseModel from cosmic_toolkit.types import JSONSerializer, NormalDict class Event(BaseModel)...
26.778761
85
0.592531
738c4e866a2a84f2dd2e23a07067eb8474a2f850
6,673
py
Python
oscar/lib/python2.7/site-packages/IPython/utils/_process_win32.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/utils/_process_win32.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/utils/_process_win32.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Windows-specific implementation of process utilities. This file is only meant to be imported by process.py, not by end-users. """ #----------------------------------------------------------------------------- # Copyright (C) 2010-2011 The IPython Development Team # # Distributed under the terms of the B...
34.57513
111
0.588041
738c81af95891a8a0ace6b64b05a65dda5c16485
11,602
py
Python
xlnet/main_tf_estimator.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
50
2020-02-02T09:24:44.000Z
2022-03-01T03:22:19.000Z
xlnet/main_tf_estimator.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
1
2020-02-04T03:50:02.000Z
2020-02-04T04:41:37.000Z
xlnet/main_tf_estimator.py
AlibabaPAI/DAPPLE
fd75dcfbc6c73a7624b9fd9d8c3334e5d04bcd20
[ "BSD-3-Clause" ]
9
2020-02-02T09:23:31.000Z
2021-09-22T07:24:34.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from datasets.squad_tfrecords import input_fn_builder from models.slice_xlnet import XlnetSlice from utils import create_optimizer, init_from_checkpoint from utils import get_run_config...
44.452107
122
0.624289
738d4ae7d0c5f773259143d239f83dfed9b6150e
634
py
Python
examples/run_dfwa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
examples/run_dfwa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
examples/run_dfwa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.task import Task from niapy.problems import Sphere from niapy.algorithms.basic import DynamicFireworksAlgorithm # we will run Fi...
28.818182
93
0.749211
738d58d3aa42aad27cefb943b82401d888c24464
5,374
py
Python
tests/test_views.py
jakejg/Backcountry-Food-Planner
00cd4acb41592142f1129ae52e7ec14a567d6ae3
[ "MIT" ]
null
null
null
tests/test_views.py
jakejg/Backcountry-Food-Planner
00cd4acb41592142f1129ae52e7ec14a567d6ae3
[ "MIT" ]
null
null
null
tests/test_views.py
jakejg/Backcountry-Food-Planner
00cd4acb41592142f1129ae52e7ec14a567d6ae3
[ "MIT" ]
null
null
null
import os from app import app from unittest import TestCase from app.models import db, connect_db, User, Trip, Meal, Ingredient, TripMeal from datetime import datetime from flask import json os.environ['DATABASE_URL'] = "postgresql:///food_planner_test" from app.api_requests import get_nutrition_data db.drop_all() db....
28.585106
95
0.569222
738d7e67cbcdd69847684ec419d92303729ea5fe
216
py
Python
catalyst/core/utils/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
2
2021-02-22T12:15:41.000Z
2021-05-02T15:22:24.000Z
catalyst/core/utils/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/core/utils/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
# flake8: noqa from catalyst.contrib.utils import * from catalyst.utils import * from .callbacks import filter_callbacks_by_node, sort_callbacks_by_order from .data import get_loaders_from_params, validate_loaders
27
72
0.842593
738d9e1d6ddb3a69a1759c98e0af344e8abbc057
760
py
Python
alipay/aop/api/response/ZhimaCreditPeZmgoPaysignConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/ZhimaCreditPeZmgoPaysignConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/ZhimaCreditPeZmgoPaysignConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class ZhimaCreditPeZmgoPaysignConfirmResponse(AlipayResponse): def __init__(self): super(ZhimaCreditPeZmgoPaysignConfirmResponse, self).__init__() self._agreement_id = None...
29.230769
112
0.731579
738da4850b2d86524bb815a3b6d436e6327b0475
133,049
py
Python
packages/vaex-ui/vaex/ui/layers.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
337
2016-02-11T07:36:35.000Z
2018-12-10T07:17:35.000Z
packages/vaex-ui/vaex/ui/layers.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
127
2016-07-06T15:43:14.000Z
2018-12-11T18:46:27.000Z
packages/vaex-ui/vaex/ui/layers.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
29
2016-10-05T14:15:28.000Z
2018-11-29T10:17:00.000Z
import collections import operator import vaex.vaexfast import threading import matplotlib import numpy as np import scipy.ndimage import matplotlib.colors import traceback import vaex import vaex.delayed import vaex.ui.storage import vaex.ui.undo import vaex.ui.colormaps import vaex.grids from vaex.ui.icons import ic...
48.504922
239
0.613473
738dca18ecdb31f7b68bfd858d47ee46e19109f3
1,103
py
Python
mmaction/models/heads/__init__.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/models/heads/__init__.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/models/heads/__init__.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import imp from .audio_tsn_head import AudioTSNHead from .base import BaseHead from .bbox_head import BBoxHeadAVA, BBoxTranSTLHeadAVA, BBoxX3DHeadAVA from .fbo_head import FBOHead from .i3d_head import I3DHead from .lfb_infer_head import LFBInferHead from .misc_head impor...
35.580645
85
0.788758
738dd09ae3876fc153196694235230d93e4f44d7
2,413
py
Python
crowdastro/active_learning/random_sampler.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
13
2015-11-07T15:24:44.000Z
2020-04-20T05:29:58.000Z
crowdastro/active_learning/random_sampler.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
234
2016-02-21T23:53:16.000Z
2019-06-27T00:26:08.000Z
crowdastro/active_learning/random_sampler.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
3
2015-11-07T00:20:09.000Z
2018-10-03T13:37:15.000Z
"""Learning with random sampling. Pool-based. Binary class labels. Matthew Alger The Australian National University 2016 """ import numpy from .sampler import Sampler class RandomSampler(Sampler): """Pool-based learning with random sampling.""" def sample_index(self): """Finds index of a random u...
28.05814
72
0.586407
738df10acda36601df44558bc6e6b15bcdce27b5
1,993
py
Python
river/anomaly/gaussian.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/anomaly/gaussian.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/anomaly/gaussian.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
from river import anomaly, proba class GaussianScorer(anomaly.base.SupervisedAnomalyDetector): """Univariate Gaussian anomaly detector. This is a supervised anomaly detector. It fits a Gaussian distribution to the target values. The anomaly score is then computed as so: $$score = 2 * \\mid CDF(y) - ...
26.932432
97
0.617662
738e2d8bfe2e8ae91e084d8b286eff6a9dd8cf4f
11,191
py
Python
pancompare.py
shepherdjay/pan-os-scripts
03bacaa688ba74146532869e636e7a338c922fef
[ "MIT" ]
2
2017-12-10T14:20:15.000Z
2018-03-29T21:49:19.000Z
pancompare.py
shepherdjay/pan-os-scripts
03bacaa688ba74146532869e636e7a338c922fef
[ "MIT" ]
29
2017-02-01T18:02:24.000Z
2022-03-21T14:32:05.000Z
pancompare.py
shepherdjay/pan-os-scripts
03bacaa688ba74146532869e636e7a338c922fef
[ "MIT" ]
2
2017-10-16T16:28:32.000Z
2017-12-10T14:20:16.000Z
#!/usr/bin/env python3 # noinspection PyPackageRequirements import re import netaddr import pan.xapi import yaml class Config: def __init__(self, filename): with open(filename, 'r') as stream: config = yaml.safe_load(stream) self.top_domain = config['top_domain'] self.firewa...
38.857639
162
0.679921
738e37ba9e0244ce7aa1de9ed975e8b2af2686f6
2,952
py
Python
examples/diffusion/cube.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
examples/diffusion/cube.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
examples/diffusion/cube.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
r""" Laplace equation (e.g. temperature distribution) on a cube geometry with different boundary condition values on the cube sides. This example was used to create the SfePy logo. Find :math:`T` such that: .. math:: \int_{\Omega} c \nabla s \cdot \nabla T = 0 \;, \quad \forall s \;. """ from __future__ i...
20.5
72
0.486789
738e717099b7c564a94e14212f5fa8a16f069758
6,070
py
Python
Primerwalk_GUI.py
irahorecka/SequencingPrimerGenerator
ce0577b2ec046b9ce0323420999f514cb2f5004e
[ "MIT" ]
2
2019-10-22T12:23:08.000Z
2019-11-09T20:02:53.000Z
Primerwalk_GUI.py
irahorecka/Sequencing-Primer-Generator
ce0577b2ec046b9ce0323420999f514cb2f5004e
[ "MIT" ]
1
2021-06-02T00:40:15.000Z
2021-06-02T00:40:15.000Z
Primerwalk_GUI.py
irahorecka/SequencingPrimerGenerator
ce0577b2ec046b9ce0323420999f514cb2f5004e
[ "MIT" ]
null
null
null
""" A .py file to generate kivy user interface to facilitate easy primer generation and order placement template for IDT. """ import os import datetime import kivy from kivy.config import Config from kivy.app import App from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.uix.button im...
35.290698
134
0.592257
738e8781c8e9361ebc645fd302d7510bf9d62167
14,593
py
Python
pytest_adaptavist/metablock.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
pytest_adaptavist/metablock.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
pytest_adaptavist/metablock.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
"""Process reporting of tests or test steps.""" from __future__ import annotations import signal from datetime import datetime from enum import IntEnum from functools import singledispatch from io import BufferedReader, BytesIO from types import FrameType, TracebackType from typing import Any, Literal, NoReturn, Tupl...
54.451493
151
0.651066
738ea30635b138900498d96c7c0f988f6506c912
1,979
py
Python
spoonbill/writers/base_writer.py
anton-shakh-qg/spoonbill
b54d48f053009d2d6dd8c6a023348af2d54188fe
[ "BSD-3-Clause" ]
null
null
null
spoonbill/writers/base_writer.py
anton-shakh-qg/spoonbill
b54d48f053009d2d6dd8c6a023348af2d54188fe
[ "BSD-3-Clause" ]
null
null
null
spoonbill/writers/base_writer.py
anton-shakh-qg/spoonbill
b54d48f053009d2d6dd8c6a023348af2d54188fe
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict class BaseWriter: """ Base writer class """ def __init__(self, workdir, tables, options): """ :param workdir: Working directory :param tables: The table objects :param options: Flattening options """ self.workdir = wo...
32.983333
94
0.612936
738eb25006935c6402019d9ae88ac23f5cfc8368
1,337
py
Python
tests/stores/test_utils.py
dblueai/dblue-stores
146866d8477e891dd09145d816a928d5e3ffa65c
[ "MIT" ]
1
2020-01-18T00:30:17.000Z
2020-01-18T00:30:17.000Z
tests/stores/test_utils.py
dblueai/dblue-stores
146866d8477e891dd09145d816a928d5e3ffa65c
[ "MIT" ]
5
2020-02-27T10:30:55.000Z
2021-06-02T00:49:29.000Z
tests/stores/test_utils.py
dblueai/dblue-stores
146866d8477e891dd09145d816a928d5e3ffa65c
[ "MIT" ]
1
2020-01-18T00:30:21.000Z
2020-01-18T00:30:21.000Z
import tempfile from unittest import TestCase from dblue_stores.utils import append_basename, is_protected_type, walk class TestUtils(TestCase): def test_is_protected_type(self): assert is_protected_type(None) is True assert is_protected_type(1) is True assert is_protected_type(1.1) is T...
33.425
79
0.61107
738ebaa6c8c2186b31d6beaddff2add93798e417
3,105
py
Python
tests/unit/dht/serialization/test_datagram.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
tests/unit/dht/serialization/test_datagram.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
tests/unit/dht/serialization/test_datagram.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
import unittest from lbrynet.dht.serialization.datagram import RequestDatagram, ResponseDatagram, decode_datagram from lbrynet.dht.serialization.datagram import REQUEST_TYPE, RESPONSE_TYPE class TestDatagram(unittest.TestCase): def test_ping_request_datagram(self): serialized = RequestDatagram(REQUEST_TYP...
50.901639
109
0.677295
738f18078f2794871140521513ec7a70da7caee1
1,747
py
Python
create_giga_HC_dictionary.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
create_giga_HC_dictionary.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
create_giga_HC_dictionary.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
# Copyright (c) Puyuan Liu # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # This script intends to manually create a dictionary for the training data from tqdm import tqdm from collections import Counter # Since the training target are full...
34.94
95
0.67945
738f2dc03a10a7c86cf7547f497328614189fb03
8,268
py
Python
doctr/models/detection/linknet/pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
628
2021-02-13T21:49:37.000Z
2022-03-31T19:48:57.000Z
doctr/models/detection/linknet/pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
694
2021-02-08T15:23:38.000Z
2022-03-31T07:24:59.000Z
doctr/models/detection/linknet/pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
90
2021-04-28T05:39:02.000Z
2022-03-31T06:48:36.000Z
# Copyright (C) 2021, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. from typing import Any, Callable, Dict, List, Optional, Tuple import numpy as np import torch from torch import nn from torch...
34.886076
119
0.616231
738f3d8e0af0fe47a20c02ff343693a0c20f3d8c
11,145
py
Python
scrape_reports.py
grasbergerm/personalsite
dc6115006b98cd016419885c221be12b63db3607
[ "CC-BY-3.0" ]
null
null
null
scrape_reports.py
grasbergerm/personalsite
dc6115006b98cd016419885c221be12b63db3607
[ "CC-BY-3.0" ]
null
null
null
scrape_reports.py
grasbergerm/personalsite
dc6115006b98cd016419885c221be12b63db3607
[ "CC-BY-3.0" ]
null
null
null
import requests, json, re, urllib.parse, os from string import Template from bs4 import BeautifulSoup import new_email def read_value(soup, id): value = soup.find(id=id).get('value') if value.lower() == "n/a": return "" else: return value def get_email(email): if email.lower() == "n...
42.056604
128
0.690534
738f43c687496d51e62a220265ae4b46ac82779f
16,065
py
Python
src/thread/period_checker.py
rcmelendez/devo-lapua-docker
e3d90d99e6e13f669139802a47e33335e68dd73b
[ "MIT" ]
null
null
null
src/thread/period_checker.py
rcmelendez/devo-lapua-docker
e3d90d99e6e13f669139802a47e33335e68dd73b
[ "MIT" ]
null
null
null
src/thread/period_checker.py
rcmelendez/devo-lapua-docker
e3d90d99e6e13f669139802a47e33335e68dd73b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import threading import json from ast import literal_eval from time import sleep from datetime import datetime, timezone from statistics import mean, stdev from devo.sender import Sender from ..db.db_handler import DbHandler from ..utils.constants import MESSAGES, RESULTS, ALARM_KINDS from ..uti...
44.625
82
0.523561
738f477c3918be4c1140e42c77902239756a29ae
1,756
py
Python
2021/day_02/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
2021/day_02/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
2021/day_02/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
import dataclasses from unittest import TestCase import numpy as np unit_vectors = { "forward": np.array((1, 0)), "down": np.array((0, 1)), "up": np.array((0, -1)), } @dataclasses.dataclass class Command: instruction: str quantity: int def read_input(filename="input"): with open(filename) ...
21.95
73
0.59738
738f4b5503acd387c93892e47cb2495eafdd64a7
1,582
py
Python
pyembroidery/JsonWriter.py
fstwn/ironpyembroidery
1e1620edbba2ca2c661acb743ce9f58caa0c2bc3
[ "MIT" ]
null
null
null
pyembroidery/JsonWriter.py
fstwn/ironpyembroidery
1e1620edbba2ca2c661acb743ce9f58caa0c2bc3
[ "MIT" ]
null
null
null
pyembroidery/JsonWriter.py
fstwn/ironpyembroidery
1e1620edbba2ca2c661acb743ce9f58caa0c2bc3
[ "MIT" ]
null
null
null
from .EmbFunctions import * ENCODE = False WRITE_FILE_IN_TEXT_MODE = True def decoded_name(names, data): command = decode_embroidery_command(data) try: name = names[command[0]] if command[1] != None: name = name + " t" + str(command[1]) if command[2] != None: ...
29.849057
94
0.518963
738f4ea15c3f646b2efa2b5b59684a0410415960
4,567
py
Python
magma/courses.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
4
2015-01-21T20:57:09.000Z
2015-01-27T14:43:12.000Z
magma/courses.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
2
2015-02-08T14:53:09.000Z
2019-10-23T08:12:49.000Z
magma/courses.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
1
2016-03-30T17:12:00.000Z
2016-03-30T17:12:00.000Z
# -*- coding: UTF-8 -*- from magma.souputils import text, coursecode, parseint, parsefloat, parsebool from magma.souputils import parseresult import platform if platform.python_version() >= '3.0': unicode = str class Course(dict): """ A course, which is a dict with at least the following attributes: ...
28.54375
78
0.517189
738f523692e2d392fc9539ee36d1f458ec5a7710
2,891
py
Python
baseline/exp3_2d3ds/loader.py
matsuren/ugscnn
0ab73274d03d3c0016a78a7fa5a7e6017be7e268
[ "MIT" ]
null
null
null
baseline/exp3_2d3ds/loader.py
matsuren/ugscnn
0ab73274d03d3c0016a78a7fa5a7e6017be7e268
[ "MIT" ]
null
null
null
baseline/exp3_2d3ds/loader.py
matsuren/ugscnn
0ab73274d03d3c0016a78a7fa5a7e6017be7e268
[ "MIT" ]
null
null
null
import numpy as np from glob import glob import os import random from torch.utils.data import Dataset from imageio import imread # precomputed mean and std of the dataset precomp_mean = [0.4974898, 0.47918808, 0.42809588, 1.0961773] precomp_std = [0.23762763, 0.23354423, 0.23272438, 0.75536704] class SemSegLoader(Dat...
36.1375
116
0.578001
738f6259f852ca0a64a2be20aa9d9cf98db9c454
11,385
py
Python
cle/memory.py
mattrepl/cle
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
1
2021-05-11T17:27:28.000Z
2021-05-11T17:27:28.000Z
cle/memory.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
cle/memory.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
import bisect import struct import cffi from .errors import CLEMemoryError __all__ = ('Clemory',) # TODO: Further optimization is possible now that the list of backers is sorted class Clemory(object): """ An object representing a memory space. Uses "backers" and "updates" to separate the concepts of loaded ...
34.5
148
0.550637
738fa80334dbd0c4c2ea3907cfb54210142c73bf
1,985
py
Python
venv/Lib/site-packages/pyrogram/raw/base/input_geo_point.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/input_geo_point.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/input_geo_point.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
38.921569
93
0.646348
738fbc0f2115bded60edadffab78384dfa9f5175
3,872
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/_container_registry_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/_container_registry_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/_container_registry_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
27.460993
100
0.666064
738ff005150119b63c70619204e8d9bafe576623
2,507
py
Python
userbot/__main__.py
amibotdisini/PocongUserbot
1bbefe68f25dbcb969bc5517026253bb68331fca
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-07T21:26:35.000Z
2022-03-07T21:26:35.000Z
userbot/__main__.py
amibotdisini/PocongUserbot
1bbefe68f25dbcb969bc5517026253bb68331fca
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__main__.py
amibotdisini/PocongUserbot
1bbefe68f25dbcb969bc5517026253bb68331fca
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # Copyright (C) 2021 TeamUltroid for autobot # Ported by @mrizmanaziz # FROM Man-Userbot # ReCode by @Pocongonlen # """...
29.845238
171
0.69286
7390037aff2b38c5f892859c38aed8ed602cc31c
4,010
py
Python
alipay/aop/api/request/AlipayCommerceEducateSceneUserQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceEducateSceneUserQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceEducateSceneUserQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceEducateSceneUserQueryModel import AlipayCommerceEducateSceneUserQueryModel class AlipayCommerceEducateSceneUserQueryRe...
27.655172
148
0.64788
739017d87b1a2ed7a4a57706c6354673647b5c98
2,842
py
Python
tests/test_mfa.py
vishalbelsare/prince
bd5b29fafe853579c9d41e954caa4504d585665d
[ "MIT" ]
749
2017-08-18T09:42:38.000Z
2022-03-31T03:36:21.000Z
tests/test_mfa.py
vishalbelsare/prince
bd5b29fafe853579c9d41e954caa4504d585665d
[ "MIT" ]
115
2017-08-21T10:48:54.000Z
2022-03-17T16:38:52.000Z
tests/test_mfa.py
vishalbelsare/prince
bd5b29fafe853579c9d41e954caa4504d585665d
[ "MIT" ]
136
2017-09-01T06:36:45.000Z
2022-02-18T15:32:10.000Z
"""Tests for multiple correspondence analysis. The example comes from https://www.utdallas.edu/~herve/Abdi-MFA2007-pretty.pdf """ import unittest import matplotlib as mpl import numpy as np import pandas as pd import prince class TestMFA(unittest.TestCase): def setUp(self): X = pd.DataFrame( ...
35.525
98
0.552076
7390407d48ad7bb2f946b42acf12495d5f3c7dfd
4,388
py
Python
tests/test_angular_cl.py
austinpeel/jax_cosmo
39404b339580ea671f3afebeedd44ca19a363c90
[ "MIT" ]
null
null
null
tests/test_angular_cl.py
austinpeel/jax_cosmo
39404b339580ea671f3afebeedd44ca19a363c90
[ "MIT" ]
null
null
null
tests/test_angular_cl.py
austinpeel/jax_cosmo
39404b339580ea671f3afebeedd44ca19a363c90
[ "MIT" ]
null
null
null
import jax.numpy as jnp import numpy as np import pyccl as ccl from numpy.testing import assert_allclose from numpy.testing import assert_array_equal import jax_cosmo.background as bkgrd from jax_cosmo import Cosmology from jax_cosmo import probes from jax_cosmo.angular_cl import angular_cl from jax_cosmo.angular_cl i...
26.756098
81
0.634458
7390603c85c79b39395cd87725d6bc861648cd9d
8,816
py
Python
formulae/terms/variable.py
teucer/formulae
a94684a53f58be05ae468226305ef056f177af8e
[ "MIT" ]
null
null
null
formulae/terms/variable.py
teucer/formulae
a94684a53f58be05ae468226305ef056f177af8e
[ "MIT" ]
null
null
null
formulae/terms/variable.py
teucer/formulae
a94684a53f58be05ae468226305ef056f177af8e
[ "MIT" ]
null
null
null
import sys import numpy as np import pandas as pd from pandas.api.types import is_categorical_dtype, is_numeric_dtype, is_string_dtype from formulae.categorical import Treatment class Variable: """Representation of a variable in a model Term. This class and ``Call`` are the atomic components of a model te...
36.580913
99
0.606511
73906aa209304700917afa555bc60606799b0961
297
py
Python
helper_functions/greatest_common_divisor.py
McCoubs/project-euler
7acc2fc26e4e36411bafd2bc6d09b17ac4aa9546
[ "MIT" ]
null
null
null
helper_functions/greatest_common_divisor.py
McCoubs/project-euler
7acc2fc26e4e36411bafd2bc6d09b17ac4aa9546
[ "MIT" ]
null
null
null
helper_functions/greatest_common_divisor.py
McCoubs/project-euler
7acc2fc26e4e36411bafd2bc6d09b17ac4aa9546
[ "MIT" ]
null
null
null
def greatest_common_divisor(a, b): """ Function returns greatest common divisor using Euclid's Algorithm. REQ: a, b >= 0 and whole :param a: {int} :param b: {int} :return: {int} greatest common divisor of a and b """ while b: a, b = b, a % b return a
21.214286
70
0.579125
73907925312df26eda87618a7b1e9bcfe0e1108f
4,067
py
Python
src/precision_recall_by_seqcount.py
MaaT-Pharma/AMBER
76aa10e2295265b16337b7bfab769d67d3bea66a
[ "Apache-2.0" ]
null
null
null
src/precision_recall_by_seqcount.py
MaaT-Pharma/AMBER
76aa10e2295265b16337b7bfab769d67d3bea66a
[ "Apache-2.0" ]
null
null
null
src/precision_recall_by_seqcount.py
MaaT-Pharma/AMBER
76aa10e2295265b16337b7bfab769d67d3bea66a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Modifications Copyright 2020 MaaT Pharma # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.009346
159
0.717974
7390844420b5646419e5d6c0d55acc700b6154af
6,724
py
Python
dataset/prepare_data.py
Holden-Lin/gpt2_chinese
8ca985c1ebeafe3615c397825eebdc489eb18939
[ "Apache-2.0" ]
null
null
null
dataset/prepare_data.py
Holden-Lin/gpt2_chinese
8ca985c1ebeafe3615c397825eebdc489eb18939
[ "Apache-2.0" ]
null
null
null
dataset/prepare_data.py
Holden-Lin/gpt2_chinese
8ca985c1ebeafe3615c397825eebdc489eb18939
[ "Apache-2.0" ]
null
null
null
""" Turn a merged corpus into tfrecord files. NOTE: You will want to do this using several processes. I did this on an AWS machine with 72 CPUs using GNU parallel as that's where I had the deduplicated RealNews dataset. """ import argparse import ujson as json # from sample.encoder import get_encoder, tokenize_for_gro...
35.57672
118
0.572576
73909f941593d94cd29561762c89d4a73fa9295a
815
py
Python
examples.py
cooperra/humblebundle-python
2fa5a3451537f5e2a76a16c0f3ea5d1e1f6d1c0d
[ "MIT" ]
61
2015-01-08T20:35:45.000Z
2022-01-24T01:07:35.000Z
examples.py
cooperra/humblebundle-python
2fa5a3451537f5e2a76a16c0f3ea5d1e1f6d1c0d
[ "MIT" ]
10
2015-01-16T08:21:18.000Z
2020-04-06T11:54:11.000Z
examples.py
cooperra/humblebundle-python
2fa5a3451537f5e2a76a16c0f3ea5d1e1f6d1c0d
[ "MIT" ]
19
2015-01-02T07:19:27.000Z
2021-05-29T16:44:56.000Z
__author__ = "Joel Pedraza" __copyright__ = "Copyright 2014, Joel Pedraza" __license__ = "MIT" import humblebundle # Start a new session. # It's not a RESTful api, we must store an auth token in out session cookies. client = humblebundle.HumbleApi() # Login and store the auth cookie in the session client.login("user...
31.346154
77
0.753374
7390bcd308fd18814b8af823719df6a983dedd70
2,682
py
Python
code/3.tuning/3.5.ssi_grouped_tuning_lr.py
amberkiser/MachineLearningTransferability
5e715d6e1db80155f0e7a5d8fa361cc5944256e0
[ "MIT" ]
null
null
null
code/3.tuning/3.5.ssi_grouped_tuning_lr.py
amberkiser/MachineLearningTransferability
5e715d6e1db80155f0e7a5d8fa361cc5944256e0
[ "MIT" ]
null
null
null
code/3.tuning/3.5.ssi_grouped_tuning_lr.py
amberkiser/MachineLearningTransferability
5e715d6e1db80155f0e7a5d8fa361cc5944256e0
[ "MIT" ]
null
null
null
import time import pandas as pd from sklearn.linear_model import LogisticRegression from base_tuning import DownsampledTuning start_time = time.time() dv_name = 'SSI' dataset = 'grouped' X_data = pd.read_pickle('../../data/split_sets/X_%s_train_SSI.pkl' % dataset) y_data = pd.read_pickle('../../data/split_sets/y_%s...
38.869565
106
0.774049
7390ceeb3bf571a361027576c54a9d635c89dd56
2,380
py
Python
hamster_test_version.py
iamnotmarcel/HamsterModell
ce8391e8e120e2cf957f9d49e812be3c4f757f75
[ "MIT" ]
null
null
null
hamster_test_version.py
iamnotmarcel/HamsterModell
ce8391e8e120e2cf957f9d49e812be3c4f757f75
[ "MIT" ]
1
2022-03-26T17:27:30.000Z
2022-03-26T17:27:30.000Z
hamster_test_version.py
iamnotmarcel/HamsterModell
ce8391e8e120e2cf957f9d49e812be3c4f757f75
[ "MIT" ]
null
null
null
import socket import threading import time as t import msgpack import random import sys import time PORT = 5050 SERVER = "0.0.0.0" ADDR = (SERVER, PORT) FORMAT = 'utf-8' DISCONNECT_MESSAGE = "!D" FORWARD_MESSAGE = "!F" TURN_MESSAGE = "!T" def move_forward(): t.sleep(2) print("moving forward") # pass def...
26.741573
83
0.530252
73913d1f115b5923ca00ca292294828122183f06
2,107
py
Python
scripts/practice/FB-reRun/FindMedianfromDataStream.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/FindMedianfromDataStream.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/FindMedianfromDataStream.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Find Median from Data Stream The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value and the median is the mean of the two middle values. For example, for arr = [2,3,4], the median is 3. For example, for arr = [2,3], the median is (2 + 3) / 2 = 2.5. Im...
32.415385
169
0.668723
7391a101899f756665ccacc7b22fff1c9f396e2f
17,579
py
Python
src/FeatureGeneration.py
arifx/openpredict
7e0945176b9cd1ca5179207b37308ce0800082a3
[ "CC-BY-4.0" ]
13
2019-11-06T09:16:52.000Z
2022-03-08T23:28:27.000Z
src/FeatureGeneration.py
arifx/openpredict
7e0945176b9cd1ca5179207b37308ce0800082a3
[ "CC-BY-4.0" ]
null
null
null
src/FeatureGeneration.py
arifx/openpredict
7e0945176b9cd1ca5179207b37308ce0800082a3
[ "CC-BY-4.0" ]
3
2020-05-07T18:29:03.000Z
2021-09-15T08:23:55.000Z
import itertools import math import numpy as np import pandas as pd import argparse import os from oddt import toolkit from oddt import fingerprints import pandas as pd import numpy as np import itertools def fasta2seq(lines): lines = lines[lines.index('\n')+1:] lines =lines.replace('\n','') return lin...
25.851471
221
0.633483
7391b0287fd9da6e50b593764809ca781710396d
3,679
py
Python
intersight/models/compute_physical_summary_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_physical_summary_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_physical_summary_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class ComputePhysicalSummaryRef(object): """ NOTE: ...
24.526667
78
0.550149
7391bc4eefcf922929feb123b7477c6ad69bc689
3,944
py
Python
backend/db/models/subscriptions.py
mitche50/nano-repeat
86f419b92bfa22f4072bd35944fb0ecde84d01ba
[ "MIT" ]
1
2022-02-10T04:12:14.000Z
2022-02-10T04:12:14.000Z
backend/db/models/subscriptions.py
mitche50/nano-repeat
86f419b92bfa22f4072bd35944fb0ecde84d01ba
[ "MIT" ]
null
null
null
backend/db/models/subscriptions.py
mitche50/nano-repeat
86f419b92bfa22f4072bd35944fb0ecde84d01ba
[ "MIT" ]
1
2021-01-23T00:13:33.000Z
2021-01-23T00:13:33.000Z
from decimal import Decimal from datetime import datetime, timedelta import re from tortoise.models import Model from tortoise import fields from tortoise.contrib.pydantic import pydantic_model_creator from db.db_mixin import TimestampMixin class Subscriptions(Model, TimestampMixin): """User's associated subscri...
32.866667
138
0.638438
7391bdbae2b601a4da12eb4525fc1beb59fa2970
4,533
py
Python
0x0C-python-almost_a_circle/tests/test_models/test_base.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x0C-python-almost_a_circle/tests/test_models/test_base.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x0C-python-almost_a_circle/tests/test_models/test_base.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """This module contains a class that test all functionality of the Base model. """ import unittest import pep8 from models.base import Base from models.square import Square from models.rectangle import Rectangle class TestBase(unittest.TestCase): """Base class tests. """ def setUp(s...
28.33125
79
0.526803
7391e1242caaaaca8e62216e444be0ebf5d39b7c
3,473
py
Python
src/pyfuzz/fuzz_data_interpreter.py
fabriceyhc/pyfuzz
67f8bd844f63139ca8f795b2bc6e30a419fa037e
[ "MIT" ]
null
null
null
src/pyfuzz/fuzz_data_interpreter.py
fabriceyhc/pyfuzz
67f8bd844f63139ca8f795b2bc6e30a419fa037e
[ "MIT" ]
null
null
null
src/pyfuzz/fuzz_data_interpreter.py
fabriceyhc/pyfuzz
67f8bd844f63139ca8f795b2bc6e30a419fa037e
[ "MIT" ]
null
null
null
import struct import random class FuzzedDataInterpreter(object): def __init__(self, data=b"\x01\x02\x03\x04\x05\x06\x07\x08", bytes_idx=0): self.data = data self.bytes_idx = bytes_idx def bytes_remaining(self): return len(self.data) - self.bytes_idx...
33.07619
98
0.594875
7391e284e98fc9c8cb077f67da108eee603a6faa
27,832
py
Python
superset/config.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
1
2019-11-12T09:38:18.000Z
2019-11-12T09:38:18.000Z
superset/config.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
null
null
null
superset/config.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.912467
166
0.715831
739204b5b7fe31bf59922b6096eb955cdee07078
8,573
gyp
Python
chrome/browser/resources/chromeos/chromevox/chromevox.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/browser/resources/chromeos/chromevox/chromevox.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2016-07-11T15:19:20.000Z
2017-04-02T20:38:55.000Z
chrome/browser/resources/chromeos/chromevox/chromevox.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'conditions': [ ['chromeos==1', { 'variables': { # Whether to compress the 4 main ChromeVox scripts. 'chromevox_compress_js%': ...
34.292
93
0.465065
73921aa0ee9db938f36c2129c661c0ea5dc9cfa1
3,088
py
Python
geonames_test.py
smithhmark/vigilant-octo-potato
71a9cc931efa83c4e235fd584d949678f3c11d00
[ "MIT" ]
null
null
null
geonames_test.py
smithhmark/vigilant-octo-potato
71a9cc931efa83c4e235fd584d949678f3c11d00
[ "MIT" ]
null
null
null
geonames_test.py
smithhmark/vigilant-octo-potato
71a9cc931efa83c4e235fd584d949678f3c11d00
[ "MIT" ]
null
null
null
import io import pytest import geonames @pytest.fixture() def first_data_line(): return "3039154 El Tarter El Tarter Ehl Tarter,Эл Тартер 42.57952 1.65362 P PPL AD 02 1052 1721 Europe/Andorra 2012-11-03" @pytest.fixture() def first_5_data_lines(): return """3039154 El Tarter El Tarter Ehl Tarter,Эл Тар...
40.631579
294
0.66807
73921b4db89e3c33fe95f02049fb475e73392320
13,195
py
Python
examples/solvers using low level utilities/iterative_close.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
11
2018-10-26T17:34:29.000Z
2020-04-27T21:21:33.000Z
examples/solvers using low level utilities/iterative_close.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
examples/solvers using low level utilities/iterative_close.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.path import numexpr as ne import scipy as sp import scipy.sparse plt.ion() import pybie2d """ Demonstrate how to use the pybie2d package to solve an interior/exterior Laplace problem on a complicated domain using a global qua...
44.278523
129
0.689428
73922ec55cef0577aadd12e39ec720176f3df84d
12,977
py
Python
Amplo/AutoML/IntervalAnalyser.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-01-07T13:34:37.000Z
2022-03-17T06:40:28.000Z
Amplo/AutoML/IntervalAnalyser.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-03-22T13:42:22.000Z
2022-03-31T16:20:44.000Z
Amplo/AutoML/IntervalAnalyser.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
1
2021-12-17T22:41:11.000Z
2021-12-17T22:41:11.000Z
import warnings from pathlib import Path from typing import Union import faiss import numpy as np import pandas as pd from Amplo.Utils.io import merge_logs from Amplo.Utils.data import check_dataframe_quality, check_pearson_correlation class IntervalAnalyser: noise = 'Noise' def __init__(self, ...
35.749311
120
0.591739
739232d72b465875daf78c605361a93387304301
862
py
Python
jumpscale/packages/admin/services/diskcheck.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/packages/admin/services/diskcheck.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/packages/admin/services/diskcheck.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.loader import j from jumpscale.tools.servicemanager.servicemanager import BackgroundService from jumpscale.tools.notificationsqueue.queue import LEVEL class DiskCheckService(BackgroundService): def __init__(self, interval="* * * * *", *args, **kwargs): """ Check disk space every...
35.916667
109
0.650812
73924fa14961d6edd2c28c2775f17ca1ebb7994e
2,761
py
Python
cnocr/utils.py
daniellibin/cnocr
1d98ced066da3ec021fd2e6b1b8852e626d891d9
[ "Apache-2.0" ]
null
null
null
cnocr/utils.py
daniellibin/cnocr
1d98ced066da3ec021fd2e6b1b8852e626d891d9
[ "Apache-2.0" ]
null
null
null
cnocr/utils.py
daniellibin/cnocr
1d98ced066da3ec021fd2e6b1b8852e626d891d9
[ "Apache-2.0" ]
1
2020-04-24T14:25:13.000Z
2020-04-24T14:25:13.000Z
# coding: utf-8 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"...
31.375
97
0.702282