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
c7273dcb9719594ed240d392047b44afff69fd8c
560
py
Python
test/test_temp_f_uz_c.py
martabritala/augsta-limena-progr-2-nodarbibas-darbs
c950493224b355767c198c7f45cafd0097f9640b
[ "MIT" ]
null
null
null
test/test_temp_f_uz_c.py
martabritala/augsta-limena-progr-2-nodarbibas-darbs
c950493224b355767c198c7f45cafd0097f9640b
[ "MIT" ]
null
null
null
test/test_temp_f_uz_c.py
martabritala/augsta-limena-progr-2-nodarbibas-darbs
c950493224b355767c198c7f45cafd0097f9640b
[ "MIT" ]
null
null
null
import pytest from src.temperatura_FuzC import FtoC def test_temperatura_viszemaka(): assert FtoC(-500)==-273.15 def test_temperatura_norm(): assert FtoC(32)==0 """ D. Temperatūras pārveidošana F->C Funkcija akceptē vienu argumentu - temperatūru Fārenheita grādos, un atgriež temperatūru Celsija grādos. ...
25.454545
92
0.757143
a26134e92feb5136140867928a7d56f1e9591c96
583
py
Python
app/migrations/0003_auto_20170310_1115.py
TataneInYourFace/wifill-api
9167306aa4b920b87e57d194b9ad073f16977544
[ "MIT" ]
null
null
null
app/migrations/0003_auto_20170310_1115.py
TataneInYourFace/wifill-api
9167306aa4b920b87e57d194b9ad073f16977544
[ "MIT" ]
1
2018-10-19T07:41:21.000Z
2018-10-19T07:41:21.000Z
app/migrations/0003_auto_20170310_1115.py
TataneInYourFace/wifill-api
9167306aa4b920b87e57d194b9ad073f16977544
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-10 10:15 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20170310_...
25.347826
121
0.667238
c963092a8da2bd9bf9ca44b429d4d52d85b2984e
57,702
py
Python
examples/simulation_verilator/test_simulation_verilator.py
leonardt/veriloggen
bc3dacaa6a3e0b0652763881d0edf0421c6d3189
[ "Apache-2.0" ]
null
null
null
examples/simulation_verilator/test_simulation_verilator.py
leonardt/veriloggen
bc3dacaa6a3e0b0652763881d0edf0421c6d3189
[ "Apache-2.0" ]
null
null
null
examples/simulation_verilator/test_simulation_verilator.py
leonardt/veriloggen
bc3dacaa6a3e0b0652763881d0edf0421c6d3189
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import os import veriloggen import simulation_verilator expected_verilog = """ module test ( input io_CLK, input io_RST ); reg CLK; reg RST; wire [32-1:0] myaxi_awaddr; wire [8-1:0] myaxi_awlen; wire myaxi_awvalid; reg myaxi...
30.289764
246
0.630533
f210fbaf7589baf6fe5ca331931320fc4be157e7
5,541
py
Python
tests/Particle/plot_q_gnn.py
maxiaoba/rlk
3e23473f6bbc59552b6b2bcd97245e024d7ca95d
[ "MIT" ]
1
2021-09-28T21:16:54.000Z
2021-09-28T21:16:54.000Z
tests/Particle/plot_q_gnn.py
maxiaoba/rlkit
3e23473f6bbc59552b6b2bcd97245e024d7ca95d
[ "MIT" ]
null
null
null
tests/Particle/plot_q_gnn.py
maxiaoba/rlkit
3e23473f6bbc59552b6b2bcd97245e024d7ca95d
[ "MIT" ]
null
null
null
import csv import os.path import matplotlib matplotlib.rcParams.update({'font.size': 10}) from matplotlib import pyplot as plt import numpy as np import torch import argparse from rlkit.torch import pytorch_util as ptu # Logger Params parser = argparse.ArgumentParser() parser.add_argument('--exp_name', type=str, defau...
37.187919
97
0.600253
3a6a3eee0577da06c07e8369470bc6a2a1142ed5
20,719
py
Python
runtime/python/Lib/site-packages/numpy/core/tests/test_overrides.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
runtime/python/Lib/site-packages/numpy/core/tests/test_overrides.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
null
null
null
runtime/python/Lib/site-packages/numpy/core/tests/test_overrides.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
null
null
null
import inspect import sys import os import tempfile from io import StringIO from unittest import mock import numpy as np from numpy.testing import ( assert_, assert_equal, assert_raises, assert_raises_regex) from numpy.core.overrides import ( _get_implementing_args, array_function_dispatch, ver...
35.417094
80
0.602394
2e70b04bc759ecf30ec2d91fc8ef954a9354a503
617
py
Python
Others/iroha/iroha2019-day1/e.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/iroha/iroha2019-day1/e.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/iroha/iroha2019-day1/e.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): n, a, b = map(int, input().split()) if b >= 1: ds = sorted(list(map(int, input().split()))) min_ds = min(ds) max_ds = max(ds) ans = n - b for i in range(1, len(ds)): if ds[i] - ds[i - 1] > a: ...
19.28125
53
0.366288
f00939c44715cbb46e21a3b0bd4e2b066d1b7f29
2,549
py
Python
extras/pyrepl/console.py
dillionhacker/python222
205414c33fba8166167fd8a6a03eda1a68f16316
[ "Apache-2.0" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
extras/pyrepl/console.py
tuankien2601/python222
205414c33fba8166167fd8a6a03eda1a68f16316
[ "Apache-2.0" ]
null
null
null
extras/pyrepl/console.py
tuankien2601/python222
205414c33fba8166167fd8a6a03eda1a68f16316
[ "Apache-2.0" ]
null
null
null
# Copyright 2000-2004 Michael Hudson mwh@python.net # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and # that both ...
27.117021
71
0.634759
8c977ddfa84897126fd0a57a872a7b5fe3132af4
7,505
py
Python
run.py
encok/Password-locker
67a1e7409b13cc09f84eaf3c6fb49cf3687484d3
[ "MIT" ]
null
null
null
run.py
encok/Password-locker
67a1e7409b13cc09f84eaf3c6fb49cf3687484d3
[ "MIT" ]
null
null
null
run.py
encok/Password-locker
67a1e7409b13cc09f84eaf3c6fb49cf3687484d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 from user import User,Credentials def function(): print(" ____ ") print(" | _ \ ") print(" | |_) ) ____ ___ ___ ") print(" | __/ / _ |/ __ /...
36.609756
218
0.571486
595425875891a0cee8de74935edb4e92d463e248
428
py
Python
6 kyu/Simple Fun 258 Is Divisible By 6.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
6 kyu/Simple Fun 258 Is Divisible By 6.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
6 kyu/Simple Fun 258 Is Divisible By 6.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
def is_divisible_by_6(s): if s=="*": return ["0", "6"] elif s[-1].isdigit() and int(s[-1])%2: return [] check=s.index("*") res=[] digit_sum=sum(int(i) for i in s[:check]+s[check+1:]) for i in range(10): if (check==len(s)-1 and i%2==0 and (i+digit_sum)%3==0) or (check!=len...
35.666667
107
0.521028
d10c234887958033ad358b93f51befff96988cf9
3,662
py
Python
Lab/adventofcode2020/day19.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
10
2020-07-06T11:00:58.000Z
2022-01-29T09:25:24.000Z
Lab/adventofcode2020/day19.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
null
null
null
Lab/adventofcode2020/day19.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
3
2020-07-13T06:39:23.000Z
2020-08-15T16:29:48.000Z
import pnlp import copy file = "data/day19Test.txt" file = "data/day19.txt" # file = "data/day19Test2.txt" def get_rule_msg(file): text = pnlp.read_file(file) tmp_rule, tmp_msg = text.split("\n\n") rule = tmp_rule.split("\n") msg = tmp_msg.split("\n") msg = [m for m in msg if m] return rule, ...
20.806818
51
0.510104
061e61638d075af41efd8296c474d2d74449815b
3,381
py
Python
episcanpy/tools/_clustering.py
mruffalo/epiScanpy
bcb86347d2b8451c384f97162625c8d5efb27ffc
[ "BSD-3-Clause" ]
96
2019-05-25T17:41:13.000Z
2022-02-28T10:29:23.000Z
episcanpy/tools/_clustering.py
mruffalo/epiScanpy
bcb86347d2b8451c384f97162625c8d5efb27ffc
[ "BSD-3-Clause" ]
43
2019-07-12T03:12:51.000Z
2022-03-30T13:07:19.000Z
episcanpy/tools/_clustering.py
mruffalo/epiScanpy
bcb86347d2b8451c384f97162625c8d5efb27ffc
[ "BSD-3-Clause" ]
28
2019-03-28T16:40:52.000Z
2022-03-16T16:12:40.000Z
import anndata as ad import pandas as pd import numpy as np import scanpy as sc import os from sklearn.cluster import KMeans from sklearn.cluster import AgglomerativeClustering from sklearn.metrics.cluster import adjusted_rand_score from sklearn.metrics.cluster import adjusted_mutual_info_score from sklearn.metrics.clu...
34.151515
133
0.67761
f86b7da8f3fbb9efbdcd905d99c8700dd6fd1138
10,086
py
Python
old experiments/UI_cars 2.py
industrial-optimization-group/researchers-night
68f2fcb8530032e157badda772a795e1f3bb2c4b
[ "MIT" ]
null
null
null
old experiments/UI_cars 2.py
industrial-optimization-group/researchers-night
68f2fcb8530032e157badda772a795e1f3bb2c4b
[ "MIT" ]
null
null
null
old experiments/UI_cars 2.py
industrial-optimization-group/researchers-night
68f2fcb8530032e157badda772a795e1f3bb2c4b
[ "MIT" ]
null
null
null
import dash from dash.exceptions import PreventUpdate import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State import dash_bootstrap_components as dbc import utils.dash_reusable_components as drc import dash_table import plotly.express as ex import plotl...
43.474138
131
0.377553
fc84b1c04a3f5e88a7f470b52bc0d429a6403a10
4,940
py
Python
redismutex/mutex.py
abeerupadhyay/py-redismutex
c78c3fd4ce2b820de2e359cb293f73c220a669a5
[ "MIT" ]
3
2018-05-01T08:02:43.000Z
2018-06-07T15:48:27.000Z
redismutex/mutex.py
esquarer/py-redismutex
c78c3fd4ce2b820de2e359cb293f73c220a669a5
[ "MIT" ]
1
2021-06-16T17:52:57.000Z
2021-06-16T17:52:57.000Z
redismutex/mutex.py
esquarer/py-redismutex
c78c3fd4ce2b820de2e359cb293f73c220a669a5
[ "MIT" ]
1
2021-05-12T15:46:35.000Z
2021-05-12T15:46:35.000Z
import time import uuid import redis from .errors import ( BlockTimeExceedError, MutexLockError, MutexUnlockError ) DEFAULT_BLOCK_TIME = 5 DEFAULT_DELAY = 0.5 DEFAULT_EXPIRY = 7 class RedisMutex(object): """Implements mutex using redis """ def __init__(self, redis_conn, blocking=True, ...
30.493827
92
0.579757
5f81ea5aa21400d309dc90cb90458eecca18246f
175
py
Python
typeit/schema/__init__.py
avanov/type
dbf2a94de13b592987695b7346f10cbf53acf3af
[ "MIT" ]
8
2018-06-17T16:01:12.000Z
2021-11-05T23:34:55.000Z
typeit/schema/__init__.py
avanov/type
dbf2a94de13b592987695b7346f10cbf53acf3af
[ "MIT" ]
71
2018-06-23T15:31:56.000Z
2021-03-09T16:56:50.000Z
typeit/schema/__init__.py
avanov/type
dbf2a94de13b592987695b7346f10cbf53acf3af
[ "MIT" ]
1
2021-11-05T23:34:57.000Z
2021-11-05T23:34:57.000Z
from . import meta from . import primitives from . import types from . import nodes from .errors import Invalid __all__ = ['meta', 'primitives', 'types', 'nodes', 'Invalid']
21.875
61
0.714286
22f7a0ebe6f0f561979d87c5cbd7df71ed794e15
4,475
py
Python
mmdet/models/detectors/base.py
DouCir/mmdetection
44613202c379d85315ed47ca670fd9853f90c3a5
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/base.py
DouCir/mmdetection
44613202c379d85315ed47ca670fd9853f90c3a5
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/base.py
DouCir/mmdetection
44613202c379d85315ed47ca670fd9853f90c3a5
[ "Apache-2.0" ]
null
null
null
import logging from abc import ABCMeta, abstractmethod import mmcv import numpy as np import torch.nn as nn import pycocotools.mask as maskUtils from mmdet.core import tensor2imgs, get_classes class BaseDetector(nn.Module): """Base class for detectors""" __metaclass__ = ABCMeta def __init__(self): ...
32.194245
77
0.564022
b4daa8f025570de0584c631c629656d3b33b1f36
924
py
Python
Teste_telas/hot.py
gfcastellano/Agenda-Leonel
543dd46e1836410ec1ad7093ef4a07c2f84678a6
[ "MIT" ]
1
2020-06-16T03:54:09.000Z
2020-06-16T03:54:09.000Z
Teste_telas/hot.py
gfcastellano/Agenda_Leonel
543dd46e1836410ec1ad7093ef4a07c2f84678a6
[ "MIT" ]
1
2020-06-16T03:50:16.000Z
2020-06-16T03:50:16.000Z
Teste_telas/hot.py
gfcastellano/Agenda_Leonel
543dd46e1836410ec1ad7093ef4a07c2f84678a6
[ "MIT" ]
null
null
null
from kivy.lang import Builder from kivymd.app import MDApp KV = ''' #:import KivyLexer kivy.extras.highlight.KivyLexer #:import HotReloadViewer kivymd.utils.hot_reload_viewer.HotReloadViewer BoxLayout: CodeInput: lexer: KivyLexer() style_name: "native" #on_text: app.update_kv_file(self....
23.1
101
0.669913
83dc903f9b88d82f85fef2d37674999a645ab009
2,122
py
Python
Python3Code/KalmanFilter.py
kim66003/ML4QS_group25
cd7f838e95f1583701892175670d7d0c8da0e1be
[ "MIT" ]
null
null
null
Python3Code/KalmanFilter.py
kim66003/ML4QS_group25
cd7f838e95f1583701892175670d7d0c8da0e1be
[ "MIT" ]
null
null
null
Python3Code/KalmanFilter.py
kim66003/ML4QS_group25
cd7f838e95f1583701892175670d7d0c8da0e1be
[ "MIT" ]
null
null
null
import sys import copy from pathlib import Path import pandas as pd import numpy as np import matplotlib.pyplot as plt from util.VisualizeDataset import VisualizeDataset from Chapter3.DataTransformation import LowPassFilter from Chapter3.DataTransformation import PrincipalComponentAnalysis from Chapter3.ImputationMiss...
35.366667
94
0.739397
b0975e73f9a822ec28f8c100fa58980dc8e20606
1,814
py
Python
migrations/versions/9458ea5b7af1_.py
Dev-Elie/Flask-Blog
86ee901d1969a76fe298b9bb31502f160730e6b0
[ "MIT" ]
2
2021-12-09T12:22:54.000Z
2022-02-13T07:36:22.000Z
migrations/versions/9458ea5b7af1_.py
Dev-Elie/Teksade-Blog
86ee901d1969a76fe298b9bb31502f160730e6b0
[ "MIT" ]
null
null
null
migrations/versions/9458ea5b7af1_.py
Dev-Elie/Teksade-Blog
86ee901d1969a76fe298b9bb31502f160730e6b0
[ "MIT" ]
1
2021-11-24T15:17:49.000Z
2021-11-24T15:17:49.000Z
"""empty message Revision ID: 9458ea5b7af1 Revises: 31e6a281df69 Create Date: 2021-02-22 22:06:04.215526 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9458ea5b7af1' down_revision = '31e6a281df69' branch_labels = None depends_on = None def upgrade(): # ...
35.568627
93
0.68688
c699bd7a173f83500dcb970c429722c199d6b1b6
2,441
py
Python
base16/base16-gruvbox-dark-soft.py
memeplex/base16-prompt-toolkit
8a52f886005eb1fa005fd65a2c4b1a680a1f1d91
[ "MIT" ]
12
2017-02-27T02:03:20.000Z
2021-04-12T08:56:46.000Z
base16/base16-gruvbox-dark-soft.py
memeplex/base16-prompt-toolkit
8a52f886005eb1fa005fd65a2c4b1a680a1f1d91
[ "MIT" ]
6
2017-02-27T19:09:13.000Z
2020-12-18T10:47:30.000Z
base16/base16-gruvbox-dark-soft.py
memeplex/base16-prompt-toolkit
8a52f886005eb1fa005fd65a2c4b1a680a1f1d91
[ "MIT" ]
8
2018-02-08T12:49:27.000Z
2021-12-21T12:58:27.000Z
# -*- coding: utf-8 -*- # base16-prompt-toolkit (https://github.com/memeplex/base16-prompt-toolkit) # Base16 Prompt Toolkit template by Carlos Pita (carlosjosepita@gmail.com # Gruvbox dark, soft scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) from prompt_toolkit.terminal.vt100_...
31.294872
109
0.669807
be8929bdc5943b5f3240b9e699568b682de9b933
619
py
Python
Python/Rotate-array-by-D-elements.py
Nikhil-Sharma-1/DS-Algo-Point
b21f598397c9bd4ddf806c0ef62ea8c53d8bda2c
[ "MIT" ]
1,148
2020-09-28T15:06:16.000Z
2022-03-17T16:30:08.000Z
Python/Rotate-array-by-D-elements.py
Nikhil-Sharma-1/DS-Algo-Point
b21f598397c9bd4ddf806c0ef62ea8c53d8bda2c
[ "MIT" ]
520
2020-09-28T18:34:26.000Z
2021-10-30T17:06:43.000Z
Python/Rotate-array-by-D-elements.py
Nikhil-Sharma-1/DS-Algo-Point
b21f598397c9bd4ddf806c0ef62ea8c53d8bda2c
[ "MIT" ]
491
2020-09-28T18:40:14.000Z
2022-03-20T13:41:44.000Z
def rotatethearray(array, d): array[0:d] = reversed(array[0:d]) array[d: ] = reversed(array[d: ]) array.reverse() print(array) print("enter the array of numbers:", end=" ") array = [int(i) for i in input().split()] print() print("enter the value of d:", end=" ") d = int(input()) rotatethearray(array, ...
24.76
68
0.659128
42565ab34378c7772ae9b4cae068ea584657b225
18,105
py
Python
main.py
peternara/conditional-similarity-networks-fashion
1a75e3d9eccebd7570f0183ef195dad075fd85c6
[ "BSD-3-Clause" ]
null
null
null
main.py
peternara/conditional-similarity-networks-fashion
1a75e3d9eccebd7570f0183ef195dad075fd85c6
[ "BSD-3-Clause" ]
null
null
null
main.py
peternara/conditional-similarity-networks-fashion
1a75e3d9eccebd7570f0183ef195dad075fd85c6
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import argparse import os import sys import shutil import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import transforms from torch.autograd import Variable import torch.backends.cudnn as cudnn from triplet_image_loader im...
39.791209
124
0.577078
71a31c58c298414077bbbce45043d2db7e766d79
3,550
py
Python
oauthenticator/auth0.py
NYU-CI/oauthenticator
ae6df8af00a47c533ae06aeaf8de17b787c480b5
[ "CC0-1.0" ]
null
null
null
oauthenticator/auth0.py
NYU-CI/oauthenticator
ae6df8af00a47c533ae06aeaf8de17b787c480b5
[ "CC0-1.0" ]
null
null
null
oauthenticator/auth0.py
NYU-CI/oauthenticator
ae6df8af00a47c533ae06aeaf8de17b787c480b5
[ "CC0-1.0" ]
null
null
null
""" Custom Authenticator to use Auth0 OAuth with JupyterHub Derived using the Github and Google OAuthenticator implementations as examples. The following environment variables may be used for configuration: AUTH0_SUBDOMAIN - The subdomain for your Auth0 account OAUTH_CLIENT_ID - Your client id OAUTH_CLIE...
32.87037
82
0.676338
20cb53fede182ff5c2cbfb0a499683c54323faae
537
py
Python
source/openwarpgui/openwarp/__init__.py
rhydar/Test
32dd54af2c3657d0c49177395d5b1c1f7bd8e127
[ "Apache-2.0" ]
1
2016-07-27T12:32:57.000Z
2016-07-27T12:32:57.000Z
source/openwarpgui/openwarp/__init__.py
rhydar/Test
32dd54af2c3657d0c49177395d5b1c1f7bd8e127
[ "Apache-2.0" ]
null
null
null
source/openwarpgui/openwarp/__init__.py
rhydar/Test
32dd54af2c3657d0c49177395d5b1c1f7bd8e127
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This is initialization module of openwarp. """ __author__ = "caoweiquan322" __copyright__ = "Copyright (C) 2014 TopCoder Inc. All rights reserved." __version__ = "1.0" import logging # Create a base logger for the whole module. logger = logging.getLogger(__name__) logger.setL...
26.85
86
0.709497
247ddfbfdf32f192a5a43a6da9dbf11093c4977d
1,588
py
Python
F_Machine_learning/1_Unsupervised-Learning/solutions/ex2_extra.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
F_Machine_learning/1_Unsupervised-Learning/solutions/ex2_extra.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
F_Machine_learning/1_Unsupervised-Learning/solutions/ex2_extra.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
# one possible solution # if it yields a bad result, rerun code class KM(): def __init__(self, k): self.k = k def distances(self, X): """Makes a distance matrix to the centroids of shape (n_samples x n_centroids)""" return np.vstack([np.sum((X-self.centroids[i,:])**2, ax...
34.521739
105
0.562972
11bb553392246490ee8606bda50366645982ed4f
109
py
Python
setup.py
bklebel/gym-sailingroute
f1b9d2a9aebdda3575da085b68ce3bc6fa7ff906
[ "MIT" ]
null
null
null
setup.py
bklebel/gym-sailingroute
f1b9d2a9aebdda3575da085b68ce3bc6fa7ff906
[ "MIT" ]
null
null
null
setup.py
bklebel/gym-sailingroute
f1b9d2a9aebdda3575da085b68ce3bc6fa7ff906
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_sailingroute', version='0.0.1' install_requires=['gym'] )
13.625
31
0.724771
503b24969992ec3f09e090804b2e06e624389ee8
738
py
Python
examples/standalone/json_parser_main.py
ThatXliner/lark
88a64c990d0986d77ec1710ee8025e9b3b341afb
[ "MIT" ]
1
2021-07-22T14:08:10.000Z
2021-07-22T14:08:10.000Z
examples/standalone/json_parser_main.py
dbl007/lark
61973a70f5786216e28f882048c5d11755631578
[ "MIT" ]
3
2020-11-21T22:22:12.000Z
2020-11-21T22:29:08.000Z
examples/standalone/json_parser_main.py
ThatXliner/lark
88a64c990d0986d77ec1710ee8025e9b3b341afb
[ "MIT" ]
null
null
null
""" Standalone Parser =================================== This example demonstrates how to generate and use the standalone parser, using the JSON example. See README.md for more details. """ import sys from json_parser import Lark_StandAlone, Transformer, inline_args class TreeToJson(Transformer): ...
20.5
76
0.628726
d0de41635888d5031b70831935dd7aa9ffee2895
2,814
py
Python
obstools/tests/test_2_a_scripts_noH.py
paudetseis/OBStools
c6c02d8864c25a14f22d1fae17ff5ad911b9ff00
[ "MIT" ]
1
2019-12-05T04:32:38.000Z
2019-12-05T04:32:38.000Z
obstools/tests/test_2_a_scripts_noH.py
paudetseis/OBStools
c6c02d8864c25a14f22d1fae17ff5ad911b9ff00
[ "MIT" ]
2
2019-12-04T02:06:45.000Z
2019-12-06T22:20:19.000Z
obstools/tests/test_2_a_scripts_noH.py
paudetseis/OBStools
c6c02d8864c25a14f22d1fae17ff5ad911b9ff00
[ "MIT" ]
1
2020-02-25T16:51:35.000Z
2020-02-25T16:51:35.000Z
import os import matplotlib as mpl if os.environ.get('DISPLAY', '') == '': mpl.use('Agg') import stdb import numpy as np import shutil from pathlib import Path from pkg_resources import resource_filename from obspy.clients.fdsn import Client from obstools.atacr import DayNoise, StaNoise, TFNoise from obstools.atac...
30.258065
68
0.648188
2e14b5fc4812f84f6c2f16e8334f12aba6b1ccf7
6,545
py
Python
forge/models/__init__.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
31
2015-07-13T15:36:50.000Z
2022-02-07T21:37:51.000Z
forge/models/__init__.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
109
2015-04-24T10:03:24.000Z
2019-04-12T13:34:01.000Z
forge/models/__init__.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
16
2015-10-03T06:03:22.000Z
2022-03-31T08:24:37.000Z
# -*- coding: utf-8 -*- from sqlalchemy.sql import func, and_ from sqlalchemy.ext.compiler import compiles from sqlalchemy.sql.expression import FunctionElement, text from geoalchemy2.elements import WKBElement from shapely.geometry import box, Point class _interpolate_height_on_plane(FunctionElement): name = "_...
38.052326
90
0.703896
f45424b8fecf9812273d3e0f26fae9b86de5b210
716
py
Python
html_decorators.py
EstebanMongui/challenge-python-04
db027e4eaa47bc66afa0e8aeabbfc25609bb98f8
[ "MIT" ]
null
null
null
html_decorators.py
EstebanMongui/challenge-python-04
db027e4eaa47bc66afa0e8aeabbfc25609bb98f8
[ "MIT" ]
null
null
null
html_decorators.py
EstebanMongui/challenge-python-04
db027e4eaa47bc66afa0e8aeabbfc25609bb98f8
[ "MIT" ]
null
null
null
def div(func): def wrapper(*args): return f'<div>{func(*args)}</div>' return wrapper def article(func): def wrapper(*args): return f'<article>{func(*args)}</article>' return wrapper def p(func): def wrapper(*args): return f'<p>{func(*args)}</p>' return wrapper ...
15.911111
58
0.601955
acd4ae28c8df2770697a9b19a1a3fa6e25f1262c
4,270
py
Python
test/test_files/pylops/pylops/signalprocessing/ConvolveND.py
SoftwareUnderstanding/inspect4py
9c4d7252535082ad938b26baf281d93f3a27285e
[ "BSD-3-Clause" ]
2
2022-02-15T20:30:57.000Z
2022-03-17T00:50:37.000Z
test/test_files/pylops/pylops/signalprocessing/ConvolveND.py
SoftwareUnderstanding/code_inspector
a820b5a7bb18f5df9c3e79346108d8280b20c39a
[ "BSD-3-Clause" ]
101
2021-06-09T14:19:59.000Z
2022-01-24T13:24:39.000Z
test/test_files/pylops/pylops/signalprocessing/ConvolveND.py
SoftwareUnderstanding/inspect4py
9c4d7252535082ad938b26baf281d93f3a27285e
[ "BSD-3-Clause" ]
1
2021-09-22T06:59:32.000Z
2021-09-22T06:59:32.000Z
import numpy as np from pylops import LinearOperator from pylops.utils.backend import get_array_module, get_convolve, \ get_correlate, to_cupy_conditional class ConvolveND(LinearOperator): r"""ND convolution operator. Apply n-dimensional convolution with a compact filter to model (and data) along a s...
36.186441
79
0.585012
aa486b4e806bfbccbbd3cde4ef76538eff1713ac
10,811
py
Python
diyzhl.py
dmaziuk/diy-zhl
79bc42ab184d65972baccba4274e0f06f3ec34d9
[ "Unlicense" ]
6
2019-12-11T00:39:39.000Z
2021-04-17T05:32:31.000Z
diyzhl.py
dmaziuk/diy-zhl
79bc42ab184d65972baccba4274e0f06f3ec34d9
[ "Unlicense" ]
null
null
null
diyzhl.py
dmaziuk/diy-zhl
79bc42ab184d65972baccba4274e0f06f3ec34d9
[ "Unlicense" ]
2
2019-12-11T17:05:58.000Z
2021-06-01T18:27:27.000Z
#!/usr/bin/python -u # # (K) Copy Rites Reversed: reuse what you like (but give credit) # # Credits: # # Mark Powell's "Deco for Divers" # Erik Baker's papers: "Decolessons", "Understanding M-values", and "Clearing up the confusion about Deep Stops" in particular # Buhlmann's "Decompression - Decompression Sickness", E...
40.040741
126
0.451947
b91e423748da495ef84033d3b2cf10c562bebea6
4,855
py
Python
multiagent/scenarios/simple_spread.py
jiayu-ch15/MPE-for-curriculum-learning
c71bdfa6a406f5d6a2dcfcd4c17ae879c4fd27d0
[ "MIT" ]
null
null
null
multiagent/scenarios/simple_spread.py
jiayu-ch15/MPE-for-curriculum-learning
c71bdfa6a406f5d6a2dcfcd4c17ae879c4fd27d0
[ "MIT" ]
null
null
null
multiagent/scenarios/simple_spread.py
jiayu-ch15/MPE-for-curriculum-learning
c71bdfa6a406f5d6a2dcfcd4c17ae879c4fd27d0
[ "MIT" ]
null
null
null
import numpy as np from multiagent.core import World, Agent, Landmark from multiagent.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self): world = World() # set any world properties first world.dim_c = 2 num_agents = 16 num_landmarks = 16 ...
39.471545
106
0.562101
4f65e5b4a487e02e1e182c7932c508323598a2d0
3,625
py
Python
modules/tts/flowtron/text/text_en/__init__.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
modules/tts/flowtron/text/text_en/__init__.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
modules/tts/flowtron/text/text_en/__init__.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
""" from https://github.com/keithito/tacotron """ import re from text.text_en import cleaners from text.text_en.symbols import symbols from text.text_en.symbols import _punctuation as punctuation_symbols # Mappings from symbol to numeric ID and vice versa: _symbol_to_id = {s: i for i, s in enumerate(symbols)} _id_to_s...
29.958678
98
0.636138
cd0be28569d644b45029e560da2e917a9ab86dd9
1,379
py
Python
src/ai/backend/client/exceptions.py
dexterastin/backend.ai-client-py
91a80cb5b1ebec52016db7e976571949386e6bda
[ "MIT" ]
null
null
null
src/ai/backend/client/exceptions.py
dexterastin/backend.ai-client-py
91a80cb5b1ebec52016db7e976571949386e6bda
[ "MIT" ]
null
null
null
src/ai/backend/client/exceptions.py
dexterastin/backend.ai-client-py
91a80cb5b1ebec52016db7e976571949386e6bda
[ "MIT" ]
null
null
null
from typing import Any import json __all__ = ( 'BackendError', 'BackendAPIError', 'BackendClientError', 'APIVersionWarning', ) class BackendError(Exception): '''Exception type to catch all ai.backend-related errors.''' def __str__(self): return repr(self) class BackendAPIError(Back...
22.241935
76
0.591008
961b50676cbcaf66c41d50e3212dad12d647b9a3
1,070
py
Python
joommf/cube/hysteresis.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
7
2016-01-25T09:36:46.000Z
2021-09-03T01:42:19.000Z
joommf/cube/hysteresis.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
1
2016-03-07T17:11:44.000Z
2016-03-07T17:11:44.000Z
joommf/cube/hysteresis.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
9
2015-09-30T10:53:06.000Z
2021-05-12T20:21:52.000Z
import joommf from joommf.energies import Exchange from joommf.energies import Demag from joommf.energies import FixedZeeman, UniformZeeman lx = ly = lz = 50e-9 dx = dy = dz = 5e-9 Ms, A = 8e5, 1.3e-11 mT_conv = 795.77472 H = 200*mT_conv m_init = (0, 0, 0) # initial magnetisation mesh = joommf.Mesh((lx, ly, lz), (dx, ...
31.470588
59
0.720561
fd33434dab7d57c76eaea169b92c5416f991138a
1,273
py
Python
web_flask/100-bootcampbnb.py
johncoleman83/AirBnB
0be3aa5e2598a4950920a689196e518e8c94a463
[ "MIT" ]
2
2018-02-03T16:20:39.000Z
2020-02-28T03:37:02.000Z
web_flask/100-bootcampbnb.py
johncoleman83/AirBnB
0be3aa5e2598a4950920a689196e518e8c94a463
[ "MIT" ]
1
2017-11-15T18:05:03.000Z
2017-11-15T18:05:03.000Z
web_flask/100-bootcampbnb.py
johncoleman83/AirBnB
0be3aa5e2598a4950920a689196e518e8c94a463
[ "MIT" ]
4
2018-01-09T14:29:36.000Z
2020-09-29T13:24:35.000Z
#!/usr/bin/python3 """ Flask App that integrates with AirBnB static HTML Template """ from flask import Flask, render_template, url_for from models import storage # flask setup app = Flask(__name__) app.url_map.strict_slashes = False port = 5000 host = '0.0.0.0' # begin flask page rendering @app.teardown_appcontext...
27.085106
75
0.619796
ec053c9b6d7955a7ab024704c7afd206206c1dcb
327
py
Python
zaifapi/__init__.py
fcce-proj/zaifapi
6299a744363ee84765839dbf997a049d8b90e0cc
[ "MIT" ]
null
null
null
zaifapi/__init__.py
fcce-proj/zaifapi
6299a744363ee84765839dbf997a049d8b90e0cc
[ "MIT" ]
null
null
null
zaifapi/__init__.py
fcce-proj/zaifapi
6299a744363ee84765839dbf997a049d8b90e0cc
[ "MIT" ]
null
null
null
from .exchange_api import * from .oauth import ZaifTokenApi _MAX_COUNT = 1000 _MIN_WAIT_TIME_SEC = 1 __version__ = '1.6.3' __all__ = [ '__version__', 'ZaifTradeApi', 'ZaifPublicApi', 'ZaifTokenTradeApi', 'ZaifTokenApi', 'ZaifPublicStreamApi', 'ZaifLeverageTradeApi', 'ZaifFuturesPublic...
17.210526
31
0.69419
a7a0bff388608948faf30905a4af80357719a1b0
1,114
py
Python
SyncIn/SyncIn/urls.py
LesGrailleurs/H22-GR1-SyncIn
05315bbc996e2f056895f6373f2f463981a0dea5
[ "MIT" ]
1
2022-01-28T22:08:57.000Z
2022-01-28T22:08:57.000Z
SyncIn/SyncIn/urls.py
LesGrailleurs/H22-GR1-SyncIn
05315bbc996e2f056895f6373f2f463981a0dea5
[ "MIT" ]
null
null
null
SyncIn/SyncIn/urls.py
LesGrailleurs/H22-GR1-SyncIn
05315bbc996e2f056895f6373f2f463981a0dea5
[ "MIT" ]
null
null
null
"""SyncIn URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
38.413793
79
0.68851
63818b5fe7ddad48ba9863c1fe50975853f4ee0f
1,231
py
Python
covid/impl/Categorical2.py
tgrrr/covid19uk
afde150b841d7a0773b0fe2b918aa1773f791bfa
[ "MIT" ]
null
null
null
covid/impl/Categorical2.py
tgrrr/covid19uk
afde150b841d7a0773b0fe2b918aa1773f791bfa
[ "MIT" ]
null
null
null
covid/impl/Categorical2.py
tgrrr/covid19uk
afde150b841d7a0773b0fe2b918aa1773f791bfa
[ "MIT" ]
null
null
null
"""Categorical2 corrects a bug in the tfd.Categorical.log_prob""" import tensorflow as tf import tensorflow_probability as tfp from tensorflow_probability.python.internal import distribution_util from tensorflow_probability.python.internal import dtype_util from tensorflow_probability.python.distributions.categorical ...
39.709677
83
0.709992
805f286c874ccdd28439f22ca0aa125f9a157433
683
py
Python
getpinnedmessages.py
conradwee/telegram-analysis
354dadc2123d3f4747dd97ce9b24e1fd94ebc76c
[ "MIT" ]
104
2017-04-08T21:47:35.000Z
2022-01-28T02:11:19.000Z
getpinnedmessages.py
conradwee/telegram-analysis
354dadc2123d3f4747dd97ce9b24e1fd94ebc76c
[ "MIT" ]
10
2016-11-22T20:07:28.000Z
2017-04-07T23:23:21.000Z
getpinnedmessages.py
conradwee/telegram-analysis
354dadc2123d3f4747dd97ce9b24e1fd94ebc76c
[ "MIT" ]
15
2018-03-22T21:13:36.000Z
2021-07-13T04:09:55.000Z
#!/usr/bin/env python3 from json import loads import argparse parser = argparse.ArgumentParser( "Print all the pinned text messages from a Telegram chat log") parser.add_argument( 'file', help='path to the json file (chat log) to analyse') args = parser.parse_args() with open(args.file,'r') a...
29.695652
70
0.642753
ddcd3d7078a71e9d576abb986942471b247cc420
14,974
py
Python
examples/data_augmentation/renderer/kittiLib.py
BehaviorPredictionTestingPlatform/VerifAI
db05f3573c2e7d98c03029c1b4efca93e6b08edb
[ "BSD-3-Clause" ]
109
2019-04-29T03:30:42.000Z
2022-03-31T03:06:26.000Z
examples/data_augmentation/renderer/kittiLib.py
BehaviorPredictionTestingPlatform/VerifAI
db05f3573c2e7d98c03029c1b4efca93e6b08edb
[ "BSD-3-Clause" ]
25
2019-03-25T00:27:39.000Z
2022-03-27T20:29:23.000Z
examples/data_augmentation/renderer/kittiLib.py
BehaviorPredictionTestingPlatform/VerifAI
db05f3573c2e7d98c03029c1b4efca93e6b08edb
[ "BSD-3-Clause" ]
35
2019-02-12T20:50:32.000Z
2022-01-05T11:25:06.000Z
"""Generates a library with images in Kitti forma""" import numpy as np from renderer.library import Library # Helper functions that load the current library objects BACK_ORIENT = -np.pi / 2 FRONT_ORIENT = np.pi / 2 #Paths to car and road image directories FORE_SPACES_FILE = './renderer/imgSampSpaces.pickle' # File...
85.565714
134
0.598704
a341e6afca622634643339eb92ff785dccfc069e
7,726
py
Python
docs/conf.py
wimlds-trojmiasto/batalionki
11d082641e00e65b96aeab6651488bbb8a20712a
[ "MIT" ]
29
2019-08-21T14:06:34.000Z
2022-03-27T12:33:53.000Z
docs/conf.py
wimlds-trojmiasto/batalionki
11d082641e00e65b96aeab6651488bbb8a20712a
[ "MIT" ]
4
2019-08-21T18:14:19.000Z
2019-08-31T19:39:35.000Z
docs/conf.py
wimlds-trojmiasto/batalionki
11d082641e00e65b96aeab6651488bbb8a20712a
[ "MIT" ]
25
2019-08-19T14:21:25.000Z
2022-03-26T19:55:45.000Z
# -*- coding: utf-8 -*- # # birds documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a d...
31.534694
80
0.705281
76d5f3935b4a72c93bbbade8e950f38ae48243ee
34,823
py
Python
tests/test_commands.py
alexpdev/scrapy
636127ec1ea2b8949438015c2167ab5d009ff1bf
[ "BSD-3-Clause" ]
null
null
null
tests/test_commands.py
alexpdev/scrapy
636127ec1ea2b8949438015c2167ab5d009ff1bf
[ "BSD-3-Clause" ]
1
2021-09-20T19:54:42.000Z
2021-09-20T19:54:42.000Z
tests/test_commands.py
alexpdev/scrapy
636127ec1ea2b8949438015c2167ab5d009ff1bf
[ "BSD-3-Clause" ]
null
null
null
import inspect import json import argparse import os import platform import re import subprocess import sys import tempfile from contextlib import contextmanager from itertools import chain from os.path import exists, join, abspath, getmtime from pathlib import Path from shutil import rmtree, copytree from stat import ...
36.771911
119
0.618471
727d6eb490e1b0288fcf975f055084a550b2b513
12,079
py
Python
tests/unit/extractor/test_athena_metadata_extractor.py
Gusto/amundsendatabuilder-1
d24cba9d51795f908c8325d847e020b3c949f34a
[ "Apache-2.0" ]
1
2020-08-20T16:22:07.000Z
2020-08-20T16:22:07.000Z
tests/unit/extractor/test_athena_metadata_extractor.py
Gusto/amundsendatabuilder-1
d24cba9d51795f908c8325d847e020b3c949f34a
[ "Apache-2.0" ]
2
2020-07-20T16:03:49.000Z
2020-08-14T16:14:10.000Z
tests/unit/extractor/test_athena_metadata_extractor.py
Gusto/amundsendatabuilder-1
d24cba9d51795f908c8325d847e020b3c949f34a
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging import unittest from mock import patch, MagicMock from pyhocon import ConfigFactory from typing import Any, Dict # noqa: F401 from databuilder.extractor.athena_metadata_extractor import AthenaMetadataExtractor fro...
45.581132
119
0.488285
0725f533061943d937eca76cf9332b7183dcd121
1,123
py
Python
VMEncryption/main/common.py
qingfuwang/azure-linux-extensions
17b40f2522d53e5ced158b6789ffe6ef75f9791e
[ "Apache-2.0" ]
null
null
null
VMEncryption/main/common.py
qingfuwang/azure-linux-extensions
17b40f2522d53e5ced158b6789ffe6ef75f9791e
[ "Apache-2.0" ]
null
null
null
VMEncryption/main/common.py
qingfuwang/azure-linux-extensions
17b40f2522d53e5ced158b6789ffe6ef75f9791e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # VM Backup extension # # Copyright 2014 Microsoft 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...
37.433333
135
0.727516
efff472a170258289ec1a29534bf49634d3598da
1,070
py
Python
var/spack/repos/builtin/packages/r-munsell/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/r-munsell/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/r-munsell/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RMunsell(RPackage): """Provides easy access to, and manipulation of, the Munsell colours. ...
44.583333
95
0.750467
f35787ec3c6f1eaf13935a6b9d8773a21c46ed2d
1,046
py
Python
deepxde/metrics.py
wangcj05/deepxde
c246eacdf89682fc84706a427c11fa5e00932198
[ "Apache-2.0" ]
8
2021-03-21T18:43:52.000Z
2021-05-26T04:01:53.000Z
deepxde/metrics.py
wangcj05/deepxde
c246eacdf89682fc84706a427c11fa5e00932198
[ "Apache-2.0" ]
null
null
null
deepxde/metrics.py
wangcj05/deepxde
c246eacdf89682fc84706a427c11fa5e00932198
[ "Apache-2.0" ]
1
2021-12-11T14:18:17.000Z
2021-12-11T14:18:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np def accuracy(y_true, y_pred): return np.mean(np.equal(np.argmax(y_pred, axis=-1), np.argmax(y_true, axis=-1))) def l2_relative_error(y_true, y_pred): return np.linalg.norm(y_true ...
27.526316
87
0.717973
4f0910e04ad8ef8d8a4034083699ab0416e7f422
909
py
Python
app.py
jferdizzle/concretespicy
d68a4ac75f53e181ef7e740232415648beb83291
[ "MIT" ]
null
null
null
app.py
jferdizzle/concretespicy
d68a4ac75f53e181ef7e740232415648beb83291
[ "MIT" ]
2
2019-04-13T01:55:38.000Z
2019-04-15T03:43:59.000Z
app.py
jferdizzle/concretespicy
d68a4ac75f53e181ef7e740232415648beb83291
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, g from gifs import get_giphy_results from helpers import divide_chunks app = Flask(__name__) @app.route('/', strict_slashes=False) def index(): gifs = get_giphy_results() gifs = divide_chunks(gifs, int(len(gifs)/4)) return render_template( 'inde...
24.567568
78
0.657866
923a98e9f69159a0da2e92093e05950d37ecec8e
104
py
Python
stubs/pydbus/registration.py
trickeydan/pepper2
3aba1c74568cd0a04c9178caba26e9238c90e9ba
[ "MIT" ]
null
null
null
stubs/pydbus/registration.py
trickeydan/pepper2
3aba1c74568cd0a04c9178caba26e9238c90e9ba
[ "MIT" ]
22
2019-12-22T20:11:24.000Z
2020-01-18T19:09:11.000Z
stubs/pydbus/registration.py
j5api/pepper2
3aba1c74568cd0a04c9178caba26e9238c90e9ba
[ "MIT" ]
null
null
null
"""Stubs for pydbus.registration.""" class ObjectRegistration: def unregister(self) -> None: ...
14.857143
37
0.673077
ed8a2679fde3fe415b3ca6bb32be1caece4d17d0
664
py
Python
manage.py
aklauritzen/django_bootcamp
1020a7e5d51e0de322cd97273ee523633d24147f
[ "MIT" ]
9
2020-11-11T08:22:06.000Z
2021-03-02T14:34:56.000Z
manage.py
aklauritzen/django_bootcamp
1020a7e5d51e0de322cd97273ee523633d24147f
[ "MIT" ]
1
2020-11-11T08:14:27.000Z
2020-11-11T08:14:27.000Z
manage.py
aklauritzen/django_bootcamp
1020a7e5d51e0de322cd97273ee523633d24147f
[ "MIT" ]
4
2020-11-11T08:05:54.000Z
2020-11-13T12:24:37.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bootcamp.settings') try: from django.core.management import execute_from_command_line except Imp...
28.869565
73
0.679217
66bea2c89d806d024aeae8831ffd39b04f966af4
8,045
py
Python
py/lib/utils/voc_map.py
zjZSTU/YOLO_v1
230c74187216e6e34dcb5a243290467b3b37d9f7
[ "Apache-2.0" ]
8
2020-08-07T20:17:15.000Z
2021-11-23T09:47:32.000Z
py/lib/utils/voc_map.py
zjZSTU/YOLO_v1
230c74187216e6e34dcb5a243290467b3b37d9f7
[ "Apache-2.0" ]
1
2021-09-26T03:13:34.000Z
2021-09-26T03:14:16.000Z
py/lib/utils/voc_map.py
zjZSTU/YOLO_v1
230c74187216e6e34dcb5a243290467b3b37d9f7
[ "Apache-2.0" ]
2
2021-04-28T08:16:19.000Z
2022-02-28T08:11:49.000Z
# -*- coding: utf-8 -*- """ @date: 2020/4/20 下午3:30 @file: voc_map.py @author: zj @description: PASCAL VOC版本的mAP计算 """ import json import shutil import os import glob import numpy as np from utils import file from utils import util def pretreat(ground_truth_dir, detection_result_dir, tmp_json_dir): """ 预处理...
32.439516
102
0.556122
d43c264b23936aed8203d75968e07da95141ae92
87,873
py
Python
src/amuse/rfi/channel.py
GFTwrt/amuse
ff9e1ff6904e191f6b5a2e6f84c078062f553293
[ "Apache-2.0" ]
null
null
null
src/amuse/rfi/channel.py
GFTwrt/amuse
ff9e1ff6904e191f6b5a2e6f84c078062f553293
[ "Apache-2.0" ]
null
null
null
src/amuse/rfi/channel.py
GFTwrt/amuse
ff9e1ff6904e191f6b5a2e6f84c078062f553293
[ "Apache-2.0" ]
null
null
null
import inspect import numpy import os.path import pickle as pickle import sys import struct import threading import select import atexit import time import socket import array import logging import shlex logger = logging.getLogger(__name__) # # we want to use the automatic initialization and finalization # of the M...
35.866531
228
0.601277
ddfea09e945fafc7e59f74da912b6a098dedbd15
5,934
py
Python
server/src/modules/base/handlers.py
cemeng/go-links
50ecfadd79213f43c47a23d411475c23a64b39b4
[ "Apache-2.0" ]
176
2019-07-20T00:16:40.000Z
2022-03-29T08:44:11.000Z
server/src/modules/base/handlers.py
cemeng/go-links
50ecfadd79213f43c47a23d411475c23a64b39b4
[ "Apache-2.0" ]
45
2019-08-18T17:03:57.000Z
2022-03-21T14:47:43.000Z
server/src/modules/base/handlers.py
cemeng/go-links
50ecfadd79213f43c47a23d411475c23a64b39b4
[ "Apache-2.0" ]
44
2019-07-22T07:26:55.000Z
2022-03-30T19:55:39.000Z
import jwt import logging from urllib.parse import urlencode from flask import Blueprint, Response, abort, redirect, render_template, request, session, url_for from flask_login import logout_user from oauth2client.client import flow_from_clientsecrets from oauth2client.client import FlowExchangeError from modules.bas...
34.701754
119
0.693124
1d6418d48a7b4fa1ebcc42fea65e8d3772966a52
4,231
py
Python
dl/tests/test_model.py
sarkarchandan/nn-binary-classification
c8a0a865d1775d0d988d3cad52ab0ede5be7d03f
[ "MIT" ]
null
null
null
dl/tests/test_model.py
sarkarchandan/nn-binary-classification
c8a0a865d1775d0d988d3cad52ab0ede5be7d03f
[ "MIT" ]
null
null
null
dl/tests/test_model.py
sarkarchandan/nn-binary-classification
c8a0a865d1775d0d988d3cad52ab0ede5be7d03f
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring # pylint: disable=missing-class-docstring # pylint: disable=missing-function-docstring import unittest from typing import List, Tuple from unittest import mock from pathlib import Path import numpy as np from dl.data.utils import DataSource, random_split, generate_sample_data...
38.463636
80
0.662018
77101046114a4523b6679230a88e62995132ea31
2,248
py
Python
linen_examples/mnist/mnist_benchmark.py
wrzadkow/flax
45937af8379b1f653a7e1e187cc923d0a94585eb
[ "Apache-2.0" ]
null
null
null
linen_examples/mnist/mnist_benchmark.py
wrzadkow/flax
45937af8379b1f653a7e1e187cc923d0a94585eb
[ "Apache-2.0" ]
null
null
null
linen_examples/mnist/mnist_benchmark.py
wrzadkow/flax
45937af8379b1f653a7e1e187cc923d0a94585eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Flax 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 in wri...
29.973333
74
0.722865
a8937bed1351408feed6f1dc5b150ca99fe6103b
1,092
py
Python
python/interpret-core/interpret/test/test_mli_interop.py
prateekiiest/interpret
b5530a587251a77516ab443037fc37f71708564c
[ "MIT" ]
2,674
2019-10-03T14:14:35.000Z
2022-03-31T13:40:49.000Z
python/interpret-core/interpret/test/test_mli_interop.py
prateekiiest/interpret
b5530a587251a77516ab443037fc37f71708564c
[ "MIT" ]
257
2019-11-08T19:22:56.000Z
2022-03-29T20:09:07.000Z
python/interpret-core/interpret/test/test_mli_interop.py
prateekiiest/interpret
b5530a587251a77516ab443037fc37f71708564c
[ "MIT" ]
367
2019-10-31T15:33:21.000Z
2022-03-31T13:40:50.000Z
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license from ..glassbox import LogisticRegression from .utils import synthetic_classification # TODO: Harden these tests later to check content from data method. def test_mli_visualize_interop(): data = synthetic_classification() ...
36.4
84
0.738095
fd196820cf43002799a69222c6688bd962f5f9fd
763
py
Python
igssoftwaremanagement/urlpatterns/urls.py
srcsoftwareengineer/test4interview-software-management
a406acf1b828266aaa9f9c383deea4983c27b61b
[ "MIT" ]
1
2021-11-09T16:42:57.000Z
2021-11-09T16:42:57.000Z
igssoftwaremanagement/urlpatterns/urls.py
srcsoftwareengineer/test4interview-software-management
a406acf1b828266aaa9f9c383deea4983c27b61b
[ "MIT" ]
null
null
null
igssoftwaremanagement/urlpatterns/urls.py
srcsoftwareengineer/test4interview-software-management
a406acf1b828266aaa9f9c383deea4983c27b61b
[ "MIT" ]
1
2021-11-09T15:02:01.000Z
2021-11-09T15:02:01.000Z
"""igssoftwaremanagement URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home...
34.681818
77
0.714286
27e37561206b204bb875017607ff6e74686235ef
21,994
py
Python
base/views/estadisticas_views.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
3
2022-01-04T17:38:04.000Z
2022-01-05T12:45:22.000Z
base/views/estadisticas_views.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
null
null
null
base/views/estadisticas_views.py
francofgp/Syndeo
888a1001f2cbb2ff8b7247e84a2899dcbd08af80
[ "MIT" ]
null
null
null
import datetime from datetime import datetime from sqlite3 import Date from django.shortcuts import render from django.http import JsonResponse # esto sirve para hashear la pass from django.contrib.auth.hashers import make_password from ..serializers import PalabrasSerializer from ..models import Account, Idioma, Tex...
33.993818
140
0.607211
3cca5a969016219c50fa9865e703eee47de3a136
5,350
py
Python
RecoMuon/Configuration/python/RecoMuon_EventContent_cff.py
samarendran23/cmssw
849dd9897db9b894ca83e1b630a3c1eecafd6097
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
RecoMuon/Configuration/python/RecoMuon_EventContent_cff.py
samarendran23/cmssw
849dd9897db9b894ca83e1b630a3c1eecafd6097
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
RecoMuon/Configuration/python/RecoMuon_EventContent_cff.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
# The following comments couldn't be translated into the new config version: # Stand Alone's tracks with extra and hits # Global's tracks with extra and hits # TeV muons products # Tracker's Tracks without extra and hits # Muon Id # Seed # Global's tracks with extra and hits # TeV muons products import FWCore....
56.914894
111
0.483364
2b137dfa559fe78e64c0bd6c330f0ec654f812a5
18,370
py
Python
pycircuit/utilities/DESolver.py
michaelnt/pycircuit
ef3110c1c3789c1e5f30c35e3f5dd15ed4bd349e
[ "BSD-3-Clause" ]
25
2015-05-13T22:49:26.000Z
2020-03-10T04:13:20.000Z
pycircuit/utilities/DESolver.py
michaelnt/pycircuit
ef3110c1c3789c1e5f30c35e3f5dd15ed4bd349e
[ "BSD-3-Clause" ]
1
2016-11-09T13:09:31.000Z
2016-11-09T13:09:31.000Z
pycircuit/utilities/DESolver.py
michaelnt/pycircuit
ef3110c1c3789c1e5f30c35e3f5dd15ed4bd349e
[ "BSD-3-Clause" ]
9
2016-03-05T11:46:27.000Z
2022-01-19T18:30:55.000Z
# Placed into the public domain by: # James R. Phillips # 2548 Vera Cruz Drive # Birmingham, AL 35235 USA # email: zunzun@zunzun.com import numpy, random import pp # http;//www.parallelpython.com - can be single CPU, multi-core SMP, or cluster parallelization # runs only in remote worker def MakeGlobalDESolverObjectI...
43.325472
207
0.610071
dea10278f2d032b6320d40096bf78f630094e2d5
15,131
py
Python
sdk/python/pulumi_azure_native/datalakestore/latest/get_account.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datalakestore/latest/get_account.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datalakestore/latest/get_account.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
40.894595
510
0.671205
14001d40f3b803e215e432fd2125b934924fbce6
22,616
py
Python
InnerEye/Azure/azure_runner.py
MaxCodeXTC/InnerEye-DeepLearning
12b496093097ef48d5ac8880985c04918d7f76fe
[ "MIT" ]
1
2020-09-23T07:26:37.000Z
2020-09-23T07:26:37.000Z
InnerEye/Azure/azure_runner.py
MaxCodeXTC/InnerEye-DeepLearning
12b496093097ef48d5ac8880985c04918d7f76fe
[ "MIT" ]
null
null
null
InnerEye/Azure/azure_runner.py
MaxCodeXTC/InnerEye-DeepLearning
12b496093097ef48d5ac8880985c04918d7f76fe
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
52.595349
119
0.709144
2f279078c7f66608512d448b7c97ec296a24bd1a
5,478
py
Python
tutorial/source/conf.py
ciguaran/pyro
2dfa8da0dd400c3712768385d8306848e93dab9a
[ "Apache-2.0" ]
2
2021-01-04T01:35:23.000Z
2021-01-04T01:35:32.000Z
tutorial/source/conf.py
Ezecc/pyro
11a96cde05756def826c232d76f9cff66f6e6d4f
[ "Apache-2.0" ]
1
2020-05-12T16:26:21.000Z
2020-05-12T17:23:13.000Z
tutorial/source/conf.py
Ezecc/pyro
11a96cde05756def826c232d76f9cff66f6e6d4f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import sphinx_rtd_theme from pyro import __version__ # -*- coding: utf-8 -*- # # Pyro Tutorials documentation build configuration file, created by # sphinx-quickstart on Tue Oct 31 11:33:17 2017. # # This file is execfile()d with ...
30.098901
79
0.684009
cfc29bd7ddaa990c6ffedbc058ef09372b15d870
320
py
Python
ckan/tests/legacy/test_versions.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
12
2015-08-28T16:59:07.000Z
2020-03-08T01:39:30.000Z
ckan/tests/legacy/test_versions.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
13
2019-05-02T21:01:28.000Z
2020-10-20T23:34:48.000Z
ckan/tests/legacy/test_versions.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
10
2015-05-08T04:33:20.000Z
2020-03-03T15:17:58.000Z
import subprocess class TestVersions(object): no_db = True def test_pylons(self): p = subprocess.Popen( 'pip freeze | grep Pylons', shell=True, stdout=subprocess.PIPE) pylons_version = p.communicate()[0].strip() assert pylons_version == "Pylons==0.9.7"
24.615385
55
0.596875
875e2e165ad245a365c316f56f31d8cd925c555a
1,110
py
Python
Useful scripts/train_test_split.py
SathyaKrishnan1211/understanding_perceptron
5dfb0ce278eea20f68799d26dca0ec77eec23e05
[ "MIT" ]
null
null
null
Useful scripts/train_test_split.py
SathyaKrishnan1211/understanding_perceptron
5dfb0ce278eea20f68799d26dca0ec77eec23e05
[ "MIT" ]
null
null
null
Useful scripts/train_test_split.py
SathyaKrishnan1211/understanding_perceptron
5dfb0ce278eea20f68799d26dca0ec77eec23e05
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def train_test_split(X,y,test_size=0.2,random_state=42): """ Accepts only a dataframe or a numpy array as input. :param X: input data X :param y: input data y :param test_size: specifies the size of the test dataset. :param random_state: seed fo...
39.642857
126
0.685586
81c30382c9e33b336d8fa4f6abcc3651aecea92a
1,581
py
Python
hw/ip/rv_plic/util/reg_rv_plic.py
ladmangesh805/opentitan
f4126a4a2eab29f6621aced2bcfd912149ebdf2d
[ "Apache-2.0" ]
1
2019-12-24T02:10:12.000Z
2019-12-24T02:10:12.000Z
hw/ip/rv_plic/util/reg_rv_plic.py
BharathS11/opentitan
bfaf88058776f23428b317aad90ae93b822d6747
[ "Apache-2.0" ]
null
null
null
hw/ip/rv_plic/util/reg_rv_plic.py
BharathS11/opentitan
bfaf88058776f23428b317aad90ae93b822d6747
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""Mako template to hjson register description """ import sys import argparse from io import StringIO from mako.template import Template def main(...
28.745455
74
0.511069
518e0bbed21bcd0e2be6d07def2b396122c80458
17,329
py
Python
matrix/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/v3.py
nzmodbox/repo.modbox
5a5d77089f94f2fdde755ccc2e5f93e81f54f261
[ "Apache-2.0" ]
null
null
null
matrix/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/v3.py
nzmodbox/repo.modbox
5a5d77089f94f2fdde755ccc2e5f93e81f54f261
[ "Apache-2.0" ]
null
null
null
matrix/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/v3.py
nzmodbox/repo.modbox
5a5d77089f94f2fdde755ccc2e5f93e81f54f261
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2014-2016 bromix (plugin.video.youtube) Copyright (C) 2016-2018 plugin.video.youtube SPDX-License-Identifier: GPL-2.0-only See LICENSES/GPL-2.0-only for more information. """ from ...youtube.helper import yt_context_menu from ... import kodion from ...kodion ...
44.777778
111
0.610133
ef0b4725df1fcffbe0e9d8d97116f5e4aa90161b
7,843
py
Python
skyscraper/utils/value_parser.py
amdor/skyscraper
c7f74168356b37dca78291b8eec390b9341dfa57
[ "MIT" ]
1
2020-02-23T16:22:43.000Z
2020-02-23T16:22:43.000Z
skyscraper/utils/value_parser.py
amdor/skyscraper
c7f74168356b37dca78291b8eec390b9341dfa57
[ "MIT" ]
null
null
null
skyscraper/utils/value_parser.py
amdor/skyscraper
c7f74168356b37dca78291b8eec390b9341dfa57
[ "MIT" ]
null
null
null
import re from datetime import date from math import log10 from currency_converter import CurrencyConverter from skyscraper.utils.constants import MASS_KEY, SPEEDOMETER_KEY, PRICE_KEY, AGE_KEY, ACCEPTED_CURRENCIES, \ ACCEPTED_CURRENCY_KEYS, CURRENCY_KEY from skyscraper.utils.constants import POWER_KEY, CONDITION_K...
39.812183
117
0.617876
34909f1924065e2ae99317434e3867ce96b0f93c
1,299
py
Python
deploy/hubserving/ocr_rec/params.py
qbcbyb/PaddleOCR
02584696c96d6d799afe2dd4868b7aebecff8a64
[ "Apache-2.0" ]
null
null
null
deploy/hubserving/ocr_rec/params.py
qbcbyb/PaddleOCR
02584696c96d6d799afe2dd4868b7aebecff8a64
[ "Apache-2.0" ]
null
null
null
deploy/hubserving/ocr_rec/params.py
qbcbyb/PaddleOCR
02584696c96d6d799afe2dd4868b7aebecff8a64
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function class Config(object): pass def read_params(): cfg = Config() # #params for text detector # cfg.det_algorithm = "DB" # cfg.det_model_dir = "./inference/ch_det_m...
24.509434
69
0.676674
f13a038197e7fe0af3b0b111734d25e4b32ca3ce
745
py
Python
pacote-download/PycharmProjects/pyhtonexercicios/ex084.py
ThamirisAdriano/Curso-em-video-Python
5715dfa0d558f7ebe41666a537cccf20fd79ce72
[ "MIT" ]
1
2020-09-05T16:02:56.000Z
2020-09-05T16:02:56.000Z
pacote-download/PycharmProjects/pyhtonexercicios/ex084.py
ThamirisAdriano/Curso-em-video-Python
5715dfa0d558f7ebe41666a537cccf20fd79ce72
[ "MIT" ]
null
null
null
pacote-download/PycharmProjects/pyhtonexercicios/ex084.py
ThamirisAdriano/Curso-em-video-Python
5715dfa0d558f7ebe41666a537cccf20fd79ce72
[ "MIT" ]
null
null
null
temp = [] princ = [] mai = men = 0 while True: temp.append(str(input('Nome:'))) temp.append(float(input('Peso: '))) if len(princ) == 0: mai = men = temp[1] else: if temp[1] > mai: mai = temp[1] elif temp [1] < men: men = temp [1] princ.append(temp[:]) ...
23.28125
56
0.503356
f9f5eb5a3f572f5405585d3e14a205ac138a9fcc
1,027
py
Python
count_kmers.py
nikopech/Snakemake-k-mer
bb12bb241e15eafa390e2b87fee36ff801ae6b1b
[ "MIT" ]
null
null
null
count_kmers.py
nikopech/Snakemake-k-mer
bb12bb241e15eafa390e2b87fee36ff801ae6b1b
[ "MIT" ]
null
null
null
count_kmers.py
nikopech/Snakemake-k-mer
bb12bb241e15eafa390e2b87fee36ff801ae6b1b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pylab as plt import pandas as pd def count_kmers(read, k, counts): """Count kmer occurrences in a given read. Parameters ---------- read : string A single DNA sequence. k : int The value of k for which to count kmers. Returns ------- ...
25.675
71
0.582278
e3c8d198d368f2881051aa50d72c83c0422f574a
468
py
Python
classes/migrations/0011_classinstance_syllabus.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
classes/migrations/0011_classinstance_syllabus.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
classes/migrations/0011_classinstance_syllabus.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-12-17 19:20 import classes.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('classes', '0010_auto_20201217_1138'), ] operations = [ migrations.AddField( model_name='classinstance', ...
23.4
103
0.641026
c8591dcf58ea245693de9dd345250b81d1d9c04a
18,288
py
Python
examples/language_model/bert/create_pretraining_data.py
tangzhiyi11/PaddleNLP
c58a1c6c90e146178276cccb122fae8fdafa0143
[ "Apache-2.0" ]
2
2021-06-23T08:22:09.000Z
2021-10-31T04:28:23.000Z
examples/language_model/bert/create_pretraining_data.py
xiemoyuan/PaddleNLP
e73a02d09dbc249dcd3aa721c507a81cc905210c
[ "Apache-2.0" ]
1
2021-11-22T08:11:08.000Z
2021-11-22T08:11:08.000Z
examples/language_model/bert/create_pretraining_data.py
xiemoyuan/PaddleNLP
e73a02d09dbc249dcd3aa721c507a81cc905210c
[ "Apache-2.0" ]
1
2021-04-28T09:01:37.000Z
2021-04-28T09:01:37.000Z
# coding=utf-8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file ex...
36.576
102
0.615923
bd91ffc23ddd01df578b30083be7a945ff202e39
18,836
py
Python
tms_ur/tms_ur_listener/script/tms_ur_listener_server.py
SigmaHayashi/ros_tms_for_smart_previewed_reality
4ace908bd3da0519246b3c45d0230cbd02e49da0
[ "BSD-3-Clause" ]
null
null
null
tms_ur/tms_ur_listener/script/tms_ur_listener_server.py
SigmaHayashi/ros_tms_for_smart_previewed_reality
4ace908bd3da0519246b3c45d0230cbd02e49da0
[ "BSD-3-Clause" ]
null
null
null
tms_ur/tms_ur_listener/script/tms_ur_listener_server.py
SigmaHayashi/ros_tms_for_smart_previewed_reality
4ace908bd3da0519246b3c45d0230cbd02e49da0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import rospy from tms_ur_listener.msg import julius_msg from tms_ur_listener.srv import gSpeech_msg from tms_ur_speaker.srv import * from std_msgs.msg import Bool from std_msgs.msg import String from std_msgs.msg import Int32 from janome.tokenizer import Tokenizer from tms_msg_...
35.809886
128
0.486515
9e7e8b5208fc8f47c8f5fb89a694c68a70a1e7b5
4,729
py
Python
app/eg018_envelope_custom_field_data.py
OleksiiSemko/eg-03-python-auth-code-grant
ecd534b3d9ba7da981bf19705883d44b34909011
[ "MIT" ]
null
null
null
app/eg018_envelope_custom_field_data.py
OleksiiSemko/eg-03-python-auth-code-grant
ecd534b3d9ba7da981bf19705883d44b34909011
[ "MIT" ]
null
null
null
app/eg018_envelope_custom_field_data.py
OleksiiSemko/eg-03-python-auth-code-grant
ecd534b3d9ba7da981bf19705883d44b34909011
[ "MIT" ]
null
null
null
"""018: Get an envelope's custom field data""" from flask import render_template, url_for, redirect, session, flash, request from os import path import json from app import app, ds_config, views from docusign_esign import * from docusign_esign.client.api_exception import ApiException eg = "eg018" # reference (and UR...
43.787037
110
0.589765
3f6e21e9c472a4a6a3f0bc5113b97621cfcb6b7d
5,359
py
Python
malaya/__init__.py
illaiza115/malaya
002a885db0681ebf056f53b3b1b11fd99687eef1
[ "MIT" ]
1
2021-01-06T07:15:41.000Z
2021-01-06T07:15:41.000Z
malaya/__init__.py
illaiza115/malaya
002a885db0681ebf056f53b3b1b11fd99687eef1
[ "MIT" ]
null
null
null
malaya/__init__.py
illaiza115/malaya
002a885db0681ebf056f53b3b1b11fd99687eef1
[ "MIT" ]
null
null
null
# Malaya Natural Language Toolkit # # Copyright (C) 2019 Malaya Project # Licensed under the MIT License # Author: huseinzol05 <husein.zol05@gmail.com> # URL: <https://malaya.readthedocs.io/> # For license information, see https://github.com/huseinzol05/Malaya/blob/master/LICENSE import os from shutil import rmtree fr...
23.199134
102
0.638365
2fd10dc82f26c3bcb247d865753a10c2e13e62cb
9,189
py
Python
crossword_generator.py
Axelwickm/CLI-Crossword-Generator
a5ae45425817528f262e8f94163973704da1be4b
[ "MIT" ]
1
2020-08-15T08:37:16.000Z
2020-08-15T08:37:16.000Z
crossword_generator.py
Axelwickm/CLI-Crossword-Generator
a5ae45425817528f262e8f94163973704da1be4b
[ "MIT" ]
null
null
null
crossword_generator.py
Axelwickm/CLI-Crossword-Generator
a5ae45425817528f262e8f94163973704da1be4b
[ "MIT" ]
null
null
null
import curses from curses import wrapper import os import time os.environ.setdefault('ESCDELAY', '25') dict_dict = {} # What dictionary to use dictionary_path = "dictionaries/sv_wikidict.txt" def load_dict(path): # Load dictionary from file _words = [] with open(path, "r") as file: for line in f...
34.41573
104
0.46708
1137dbea15095c4bc88057be4ba08ee99c8b4139
512
py
Python
var/spack/repos/builtin/packages/perl-time-piece/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/perl-time-piece/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/perl-time-piece/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlTimePiece(PerlPackage): """Object Oriented time objects""" homepage = "http://sea...
32
91
0.728516
711daf7fe415d69753639ffde98597d0b2504556
55,657
py
Python
pandas/tests/groupby/test_categorical.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
1
2020-08-18T16:49:16.000Z
2020-08-18T16:49:16.000Z
pandas/tests/groupby/test_categorical.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/groupby/test_categorical.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
2
2021-07-17T19:28:31.000Z
2021-11-28T17:14:58.000Z
from datetime import datetime import numpy as np import pytest import pandas as pd from pandas import ( Categorical, CategoricalIndex, DataFrame, Index, MultiIndex, Series, qcut, ) import pandas._testing as tm def cartesian_product_for_groupers(result, args, names, fill_value=np.NaN): ...
32.913661
88
0.570728
d4610d0fa7dfedcba127ffab2a3d2b93a6fe8de9
261
py
Python
setup.py
contmp/django-dark
0e7eb46d720eda3ab2806448971e492049ebb312
[ "MIT" ]
4
2020-10-21T20:20:58.000Z
2021-07-20T16:27:48.000Z
setup.py
contmp/django-vacancies
73f63e18937b9484a2eaf4f7832af653a125cc88
[ "BSD-3-Clause" ]
2
2020-07-02T00:12:59.000Z
2020-11-03T04:06:32.000Z
setup.py
contmp/django-vacancies
73f63e18937b9484a2eaf4f7832af653a125cc88
[ "BSD-3-Clause" ]
1
2020-10-18T04:03:43.000Z
2020-10-18T04:03:43.000Z
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( author="Bastian Probian", author_email="contmp@me.com", long_description=long_description, long_description_content_type="text/markdown" )
21.75
49
0.724138
70854d7fd776b04fc9d4098effd96a474e19b5af
1,723
py
Python
netengine/backends/snmp/airos.py
technouppercut/NetEngine
5bf9b9ca44c59f8b48ffaf0480315bfff4053645
[ "X11" ]
null
null
null
netengine/backends/snmp/airos.py
technouppercut/NetEngine
5bf9b9ca44c59f8b48ffaf0480315bfff4053645
[ "X11" ]
null
null
null
netengine/backends/snmp/airos.py
technouppercut/NetEngine
5bf9b9ca44c59f8b48ffaf0480315bfff4053645
[ "X11" ]
null
null
null
""" NetEngine SNMP Ubiquiti Air OS backend """ __all__ = ['AirOS'] from datetime import timedelta from netengine.backends.snmp import SNMP class AirOS(SNMP): """ Ubiquiti AirOS SNMP backend """ def __str__(self): """ print a human readable object description """ return u"<SNMP...
23.60274
80
0.556007
5cadeb33b22cfbdb2065180732dad9ef799d3fd7
3,110
py
Python
tf_example.py
ligongzzz/TNModel
2609c184a67aac968248bb9d41000b4d647720c3
[ "Apache-2.0" ]
1
2021-06-11T11:34:33.000Z
2021-06-11T11:34:33.000Z
tf_example.py
ligongzzz/TNModel
2609c184a67aac968248bb9d41000b4d647720c3
[ "Apache-2.0" ]
null
null
null
tf_example.py
ligongzzz/TNModel
2609c184a67aac968248bb9d41000b4d647720c3
[ "Apache-2.0" ]
1
2021-06-11T11:34:37.000Z
2021-06-11T11:34:37.000Z
from tensorflow.python.framework.ops import disable_eager_execution from TNModel.utils import * import TNModel.tf_model as tf_model import tensornetwork as tn import tensorflow as tf import numpy as np import os os.environ['TF_DISABLE_MLC'] = '1' # If you want to run in eager mode, just comment those two lines. disab...
30.490196
81
0.62508
3e0cd7bc0f90fde4f875110d9daf40c55bd812fc
516
py
Python
run/migrations/0010_auto_20200223_1859.py
SharifAIChallenge/AIC-GameRunner
025c2987b8c288b6e136e6621b99190a7f2ed21d
[ "MIT" ]
null
null
null
run/migrations/0010_auto_20200223_1859.py
SharifAIChallenge/AIC-GameRunner
025c2987b8c288b6e136e6621b99190a7f2ed21d
[ "MIT" ]
18
2017-01-13T14:27:46.000Z
2018-02-25T00:29:34.000Z
run/migrations/0010_auto_20200223_1859.py
SharifAIChallenge/AIC-GameRunner
025c2987b8c288b6e136e6621b99190a7f2ed21d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-02-23 18:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('run', '0009_run_count_tries'), ] operations = [ migrations.AlterField( ...
24.571429
123
0.596899
e63a18de7304da9f56628efb80991218489eec08
81,512
py
Python
ironic/tests/drivers/test_ipmitool.py
overcastcloud/ironic
c6608e97af33f8d7f3fe2f7deeb78f52196f2cc7
[ "Apache-2.0" ]
null
null
null
ironic/tests/drivers/test_ipmitool.py
overcastcloud/ironic
c6608e97af33f8d7f3fe2f7deeb78f52196f2cc7
[ "Apache-2.0" ]
null
null
null
ironic/tests/drivers/test_ipmitool.py
overcastcloud/ironic
c6608e97af33f8d7f3fe2f7deeb78f52196f2cc7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 NTT DOCOMO, INC. # Copyright 2014 International Business Machines Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance ...
44.59081
79
0.591091
ffb4fe8ae655f460a834d783f0140ecb51d9c970
8,023
py
Python
docs/conf.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
1,884
2020-06-26T13:41:51.000Z
2022-03-30T22:00:45.000Z
docs/conf.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # zamboni documentation build configuration file, created by # sphinx-quickstart on Thu Oct 22 20:39:35 2009. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
32.613821
79
0.708463
5a5545ad6294fe0829fa96f8162c48573833cd38
178
py
Python
server/config.py
bgarrofe/essay-grader
30e51e0c580beba4ef99df0ba2ad0fcdb1b634d3
[ "MIT" ]
1
2021-08-08T21:43:36.000Z
2021-08-08T21:43:36.000Z
server/config.py
bgarrofe/essay-grader
30e51e0c580beba4ef99df0ba2ad0fcdb1b634d3
[ "MIT" ]
null
null
null
server/config.py
bgarrofe/essay-grader
30e51e0c580beba4ef99df0ba2ad0fcdb1b634d3
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get( 'SECRET_KEY') or 'WTWl6UC|<_=EWP^gaU*f%IcFDB=J#*'
22.25
57
0.679775
ecf8b2701b44a5eb64cffb1f67fc2af414757e6d
228
py
Python
message.py
fivunlm/sbb8
9493cfb9d799b57ae4b3bb8a44672fa92736881e
[ "MIT" ]
null
null
null
message.py
fivunlm/sbb8
9493cfb9d799b57ae4b3bb8a44672fa92736881e
[ "MIT" ]
null
null
null
message.py
fivunlm/sbb8
9493cfb9d799b57ae4b3bb8a44672fa92736881e
[ "MIT" ]
null
null
null
class Message: class Kind: TEXT = 100 COMMAND = 200 def __init__(self, kind=Kind.TEXT, payload=None, channel=None): self.kind = kind self.payload = payload self.channel = channel
22.8
67
0.592105
40b66251a96f4ab60da5edcd9b2f61cd3861893e
8,825
py
Python
scripts/old_run_snorkel.py
liuzi/weak_supervision
3a0ef4cdb15455df013e96b4c8392231c41e800f
[ "MIT" ]
null
null
null
scripts/old_run_snorkel.py
liuzi/weak_supervision
3a0ef4cdb15455df013e96b4c8392231c41e800f
[ "MIT" ]
null
null
null
scripts/old_run_snorkel.py
liuzi/weak_supervision
3a0ef4cdb15455df013e96b4c8392231c41e800f
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import sys # from os import listdir # from os.path import isfile, from os.path import join import os # from pathlib import Path # import re # import argparse # import inspect # import textwrap # import pickle import sklearn from datetime import datetime # for cleaning discharg...
33.052434
168
0.676487
9ef15199bc6966bd0bd0c8e9deaaf33280065227
1,580
py
Python
config.py
MichaelNjoroge254/One-Minute_Pitch
14c8e3f160c5a937782bc549bb825aa222ba63f5
[ "MIT" ]
null
null
null
config.py
MichaelNjoroge254/One-Minute_Pitch
14c8e3f160c5a937782bc549bb825aa222ba63f5
[ "MIT" ]
null
null
null
config.py
MichaelNjoroge254/One-Minute_Pitch
14c8e3f160c5a937782bc549bb825aa222ba63f5
[ "MIT" ]
null
null
null
import os class Config: ''' General configuration parent class ''' SECRET_KEY = '1234!' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://moringa:Access@localhost/pitch' UPLOADED_PHOTOS_DEST ='app/static/photos' SQLALCHEMY_TRACK_MODIFICATIONS = True #email configurations MAIL_SE...
29.811321
85
0.709494
047a109a9438bc8a8bdfa6f66f044fc94e6f8068
6,173
py
Python
tests/train_test.py
mjirik/imtools
b7ff33631a035db5fa5156adc5d8536650e4573b
[ "MIT" ]
7
2016-01-06T08:36:31.000Z
2021-11-11T01:00:05.000Z
tests/train_test.py
mjirik/imtools
b7ff33631a035db5fa5156adc5d8536650e4573b
[ "MIT" ]
1
2018-08-06T18:44:19.000Z
2018-08-06T18:44:19.000Z
tests/train_test.py
mjirik/imtools
b7ff33631a035db5fa5156adc5d8536650e4573b
[ "MIT" ]
1
2018-08-06T18:27:03.000Z
2018-08-06T18:27:03.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- # import funkcí z jiného adresáře import unittest import numpy as np import os import os.path import pytest import os.path as op import sys import matplotlib.pyplot as plt import glob import itertools import io3d import sed3 import imtools.trainer3d import imtools.datasets i...
29.966019
124
0.660619
c3060f7a5e487ba2b9354b3b6af03cffe47d444e
2,784
py
Python
cmsplugin_cascade/bootstrap3/tabs.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
1
2022-01-11T07:21:17.000Z
2022-01-11T07:21:17.000Z
cmsplugin_cascade/bootstrap3/tabs.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
null
null
null
cmsplugin_cascade/bootstrap3/tabs.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
1
2020-03-27T18:09:21.000Z
2020-03-27T18:09:21.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.forms import widgets from django.forms.models import ModelForm from django.utils.translation import ungettext_lazy, ugettext_lazy as _ from django.utils.text import Truncator from django.utils.html import format_html from django.forms.fields i...
37.12
90
0.733836
5137338c627e35068bf027dde37d32d27141ef36
5,280
py
Python
huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_customerself_resource_records_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_customerself_resource_records_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_customerself_resource_records_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListCustomerselfResourceRecordsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
31.242604
92
0.619318
00c4b01e958f092a3e65716374d63b9018d5a050
2,426
py
Python
python-sdk/src/forta_agent/utils.py
e1Ru1o/forta-agent-sdk
ae99dd91e2a253658c1658f7af1a3f850129e45b
[ "MIT" ]
null
null
null
python-sdk/src/forta_agent/utils.py
e1Ru1o/forta-agent-sdk
ae99dd91e2a253658c1658f7af1a3f850129e45b
[ "MIT" ]
null
null
null
python-sdk/src/forta_agent/utils.py
e1Ru1o/forta-agent-sdk
ae99dd91e2a253658c1658f7af1a3f850129e45b
[ "MIT" ]
null
null
null
import sys import os from jsonc_parser.parser import JsoncParser import sha3 def get_forta_config(): config = {} # try to read global config global_config_path = os.path.join( os.path.expanduser('~'), '.forta', 'forta.config.json') if os.path.isfile(global_config_path): global_config =...
32.346667
128
0.693735
27ccf953f2a6724563ef7e14807ac1fda8844b10
871
py
Python
data/review_transformer.py
Ruebe92/BoredLameRecommender
ff6b1070359442ca9155641170ed2193fd637e67
[ "MIT" ]
null
null
null
data/review_transformer.py
Ruebe92/BoredLameRecommender
ff6b1070359442ca9155641170ed2193fd637e67
[ "MIT" ]
23
2020-12-02T14:06:55.000Z
2020-12-10T15:08:55.000Z
data/review_transformer.py
Ruebe92/BoredLameRecommender
ff6b1070359442ca9155641170ed2193fd637e67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 7 10:00:46 2020 @author: chris """ import pandas as pd #%% popular_games = pd.read_csv('/data/popular_games_total.csv') popular_games = popular_games.sort_values('num_user_ratings',ascending=False) popular_games_more_than_X =popular_games[popular_games['num_user_rat...
18.531915
87
0.669346
68ec347d3e18260f8d26d0c679dd71654b0e2cc2
219
py
Python
release/scripts/presets/tracking_camera/Nexus_5.py
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
116
2015-11-02T16:36:53.000Z
2021-06-08T20:36:18.000Z
release/scripts/presets/tracking_camera/Nexus_5.py
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
39
2016-04-25T12:18:34.000Z
2021-03-01T19:06:36.000Z
release/scripts/presets/tracking_camera/Nexus_5.py
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
19
2016-01-24T14:24:00.000Z
2020-07-19T05:26:24.000Z
import bpy camera = bpy.context.edit_movieclip.tracking.camera camera.sensor_width = 4.5 camera.units = 'MILLIMETERS' camera.focal_length = 3.91 camera.pixel_aspect = 1 camera.k1 = 0.0 camera.k2 = 0.0 camera.k3 = 0.0
18.25
51
0.753425
f27e9b9ebac0702a44b8073f22a7c423c689b7ea
31,589
py
Python
ws2122-lspm/Lib/site-packages/pm4py/filtering.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/filtering.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/filtering.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
37.921969
189
0.676533
8d33c6c0fcf02badd2a9d2828f81a195e3107f1a
142
py
Python
python/epsilon.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
2
2020-05-03T17:02:44.000Z
2022-02-21T04:09:34.000Z
python/epsilon.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
python/epsilon.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
# Find machine precision epsilon = 1.0 while (1.0 + 0.5 * epsilon) != 1.0: epsilon = 0.5 * epsilon print('Machine precision: ', epsilon)
20.285714
37
0.640845
3f7d8152a827f3873e1140b7b88885c43c4ac400
1,001
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/public_ip_address_sku_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/public_ip_address_sku_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/public_ip_address_sku_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
32.290323
76
0.582418
090f3a857def9dd221f75b995146a91b5b6ea2f4
7,440
py
Python
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/7-extending_bound_25.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/7-extending_bound_25.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/7-extending_bound_25.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_mak...
37.2
89
0.62836
b1e02d9bd4ed7d475057aba106748da7117a98a3
600
py
Python
IMDB_task6.py
amansharmma/IMDB-movie-scraper
d17b5598f8188675429979dfe06e455429aea84d
[ "MIT" ]
null
null
null
IMDB_task6.py
amansharmma/IMDB-movie-scraper
d17b5598f8188675429979dfe06e455429aea84d
[ "MIT" ]
null
null
null
IMDB_task6.py
amansharmma/IMDB-movie-scraper
d17b5598f8188675429979dfe06e455429aea84d
[ "MIT" ]
null
null
null
from pprint import pprint from IMDB_task5 import movie_detail # in this task we are taking a data, how many movies made same language par bani hei # analyse of movie language def analyse_movies_language(): movie_data= movie_detail() count_of_language = {} for one_movie_data in movie_data : movie_language= (one_mo...
35.294118
85
0.796667