hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
837126c7ed58a646eeb7ff8f2ca3a90bb536b289
3,486
py
Python
rootfs/guest/daemon.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
rootfs/guest/daemon.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
rootfs/guest/daemon.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
import time, sys, mmap import subprocess from flask import Flask, request app = Flask(__name__) import fcntl, time, struct import redis from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor # executor = ProcessPoolExecutor(max_workers=2) executor = ThreadPoolExecutor(max_workers=2) MEMINFO = False EN...
33.2
155
0.660356
0
0
0
0
907
0.260184
0
0
482
0.138267
837207e8e61e09370cb7047d5c02c7ae05cae9d2
2,729
py
Python
mil_text/rank_plot_all.py
AntonValk/BagGraph-Graph-MIL
1447b52b32995cf6c71e731dd1261104cd66ced0
[ "MIT" ]
8
2021-12-10T19:21:03.000Z
2022-03-24T18:53:02.000Z
mil_text/rank_plot_all.py
AntonValk/BagGraph-Graph-MIL
1447b52b32995cf6c71e731dd1261104cd66ced0
[ "MIT" ]
null
null
null
mil_text/rank_plot_all.py
AntonValk/BagGraph-Graph-MIL
1447b52b32995cf6c71e731dd1261104cd66ced0
[ "MIT" ]
null
null
null
import csv import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt datasets = ['alt.atheism', 'comp.graphics', 'comp.os.ms-windows.misc', 'comp.sys.ibm.pc.hardware', 'comp.sys.mac.hardware', 'comp.windows.x', 'misc.forsale', 'rec.autos', 'rec.motorcycles', 'rec.s...
43.31746
161
0.635398
0
0
0
0
0
0
0
0
1,120
0.410407
8372488d6e57ae388189d3f6803e33eed08b9007
6,434
py
Python
rh_logger/backends/backend_datadog_logging.py
tomuram/rh_logger
dbd1d918ac163994694da82c7e90758cc29bf0e5
[ "MIT" ]
1
2020-05-08T15:22:46.000Z
2020-05-08T15:22:46.000Z
rh_logger/backends/backend_datadog_logging.py
HoraceKem/rh_logger
7217ce54f1578e7324947ad33381f3c2d1f07e6b
[ "MIT" ]
1
2016-05-13T17:35:02.000Z
2016-05-13T17:35:02.000Z
rh_logger/backends/backend_datadog_logging.py
HoraceKem/rh_logger
7217ce54f1578e7324947ad33381f3c2d1f07e6b
[ "MIT" ]
3
2016-11-28T05:44:42.000Z
2021-08-10T18:28:56.000Z
'''logger.py - the Datadog logger''' import collections import datadog import datetime import os import logging import rh_logger import rh_logger.api import sys import traceback class DatadogLogger(rh_logger.api.Logger): '''Logger for datadog''' def __init__(self, name, config): self.name = name ...
38.993939
79
0.524712
6,182
0.960833
0
0
0
0
0
0
1,751
0.272148
8372ad2c895756d8ba6acd08356e8ae7366b2454
11,715
py
Python
script_preprocess/building_aggregated_data.py
FrappucinoGithub/school_meal_forecast_regressions
23db636e7592b39cf100d7e7c707a411779b79bc
[ "MIT" ]
2
2021-05-06T19:02:44.000Z
2021-05-10T09:04:36.000Z
script_preprocess/building_aggregated_data.py
FrappucinoGithub/school_meal_forecast_regressions
23db636e7592b39cf100d7e7c707a411779b79bc
[ "MIT" ]
1
2021-03-15T11:16:54.000Z
2021-03-15T11:16:54.000Z
script_preprocess/building_aggregated_data.py
FrappucinoGithub/school_meal_forecast_regressions
23db636e7592b39cf100d7e7c707a411779b79bc
[ "MIT" ]
1
2021-02-24T13:49:46.000Z
2021-02-24T13:49:46.000Z
import os import pandas as pd import spacy from sklearn.feature_extraction.text import CountVectorizer import datetime import numpy as np from processing import get_annee_scolaire if __name__ == "__main__": #print("files", os.listdir("data_processed")) ########################## # Chargement des donné...
41.39576
169
0.553564
0
0
0
0
0
0
0
0
5,725
0.487898
83731763e6cbd3e1546d2f2ccc7d203e0567127e
1,411
py
Python
main/migrations/0028_auto_20170103_1634.py
jsmnbom/htxaarhuslan
5244c4e65f4912c5d2e193f1ac355b3206d1c1b8
[ "MIT" ]
1
2019-09-06T10:28:40.000Z
2019-09-06T10:28:40.000Z
main/migrations/0028_auto_20170103_1634.py
jsmnbom/htxaarhuslan
5244c4e65f4912c5d2e193f1ac355b3206d1c1b8
[ "MIT" ]
2
2018-10-22T10:33:04.000Z
2019-01-31T19:36:04.000Z
main/migrations/0028_auto_20170103_1634.py
jsmnbom/htxaarhuslan
5244c4e65f4912c5d2e193f1ac355b3206d1c1b8
[ "MIT" ]
1
2019-09-06T10:28:41.000Z
2019-09-06T10:28:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-01-03 15:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0027_auto_20170103_1130'), ] operations = ...
38.135135
159
0.59674
1,221
0.864731
0
0
0
0
0
0
316
0.223796
8373339dd9a549bf7c7f2156eb693bffea51c85a
6,207
py
Python
gw_grb_h_0_ppd_summaries.py
KamshatTazhenova/hh0
c71845056c5a108cb95654b1a1012d63034541c2
[ "MIT" ]
11
2017-07-04T06:56:17.000Z
2022-01-04T08:35:48.000Z
gw_grb_h_0_ppd_summaries.py
KamshatTazhenova/hh0
c71845056c5a108cb95654b1a1012d63034541c2
[ "MIT" ]
null
null
null
gw_grb_h_0_ppd_summaries.py
KamshatTazhenova/hh0
c71845056c5a108cb95654b1a1012d63034541c2
[ "MIT" ]
5
2017-07-07T10:00:19.000Z
2021-06-08T09:38:25.000Z
import numpy as np import matplotlib.pyplot as mp import matplotlib.cm as mpcm import matplotlib.colors as mpc import scipy.stats as ss # plotting settings lw = 1.5 mp.rc('font', family = 'serif') mp.rcParams['text.latex.preamble'] = [r'\boldmath'] mp.rcParams['axes.linewidth'] = lw mp.rcParams['lines.linewidth'] = lw...
33.733696
84
0.624617
0
0
0
0
0
0
0
0
972
0.156597
837393fa0b035c535d77757051efaef98b194a88
1,724
py
Python
first_lab.py
ShevchenyaIlya/Chess_knight_move
b7339edbf9423d028f6eb852e0c1c46869a6c0ff
[ "Apache-2.0" ]
null
null
null
first_lab.py
ShevchenyaIlya/Chess_knight_move
b7339edbf9423d028f6eb852e0c1c46869a6c0ff
[ "Apache-2.0" ]
null
null
null
first_lab.py
ShevchenyaIlya/Chess_knight_move
b7339edbf9423d028f6eb852e0c1c46869a6c0ff
[ "Apache-2.0" ]
null
null
null
import pygame from laboratory.base import ChessBoard, ChessHorse, Grid import os os.environ["SDL_VIDEO_WINDOW_POS"] = "400, 100" surface = pygame.display.set_mode((600, 600)) pygame.display.set_caption("Chess knight move") pygame.init() grid = ChessBoard() horse = ChessHorse() cells = Grid() def stand_color(): ...
26.523077
79
0.541763
0
0
0
0
0
0
0
0
66
0.038283
8375a587533b43ad16c1fde976759a83788c8ad5
1,925
py
Python
models/faster_rcnn_fpn.py
martin-marek/parking-space-occupancy
5514adcb435e239f36b19f4e868678ae0a65f5b8
[ "MIT" ]
6
2021-07-29T04:15:15.000Z
2022-01-12T07:18:14.000Z
models/faster_rcnn_fpn.py
martin-marek/parking-space-occupancy
5514adcb435e239f36b19f4e868678ae0a65f5b8
[ "MIT" ]
null
null
null
models/faster_rcnn_fpn.py
martin-marek/parking-space-occupancy
5514adcb435e239f36b19f4e868678ae0a65f5b8
[ "MIT" ]
4
2021-07-27T10:04:33.000Z
2021-11-27T20:28:35.000Z
from torch import nn from torchvision.models.detection.backbone_utils import resnet_fpn_backbone from torchvision.models.utils import load_state_dict_from_url from .utils import pooling from .utils.class_head import ClassificationHead class FasterRCNN_FPN(nn.Module): """ A Faster R-CNN FPN inspired parking l...
37.019231
115
0.682078
1,686
0.875844
0
0
0
0
0
0
661
0.343377
837739a005a237684a780c9335e0ae3dc01c7873
730
py
Python
configProvider.py
misc77/dsegenerator
3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4
[ "MIT" ]
null
null
null
configProvider.py
misc77/dsegenerator
3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4
[ "MIT" ]
null
null
null
configProvider.py
misc77/dsegenerator
3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4
[ "MIT" ]
null
null
null
from resources import Resources import configparser def getConfigEntry(group, item): entry = None if group != None and item != None: config = configparser.ConfigParser() try: config.read(Resources.getConfigFile()) except(FileNotFoundError): print("ERROR: File '"...
29.2
109
0.642466
0
0
0
0
0
0
0
0
30
0.041096
8378ea628ccc21371175ad9061b5e8ae8ef0a59b
3,041
py
Python
H5_News_Tracker/gui/ticker_window.py
Mouse-Diplodicus/H5-NewsTracker
a771105463db6757171ea28e847208960c7ac598
[ "BSD-2-Clause" ]
null
null
null
H5_News_Tracker/gui/ticker_window.py
Mouse-Diplodicus/H5-NewsTracker
a771105463db6757171ea28e847208960c7ac598
[ "BSD-2-Clause" ]
20
2020-02-27T01:39:28.000Z
2021-12-13T20:39:17.000Z
H5_News_Tracker/gui/ticker_window.py
Mouse-Diplodicus/H5-NewsTracker
a771105463db6757171ea28e847208960c7ac598
[ "BSD-2-Clause" ]
null
null
null
""" Program displays a window with text using Tkinter when run. """ import tkinter import webbrowser from tkinter import font from tkinter import ttk class TickerWindow(tkinter.Frame): """Main Object for creating and running the news ticker gui""" max_label_width = 80 font_size = 12 updating_feed = [...
39.493506
117
0.64584
2,888
0.949688
0
0
0
0
0
0
864
0.284117
837a6c35581467319f1075c05fa1224fd922d268
3,562
py
Python
Yu/Web.py
Hiroshiba/KotohiraYu
1ab5a5376e01aae5c730ae163298e1c34980b586
[ "MIT" ]
null
null
null
Yu/Web.py
Hiroshiba/KotohiraYu
1ab5a5376e01aae5c730ae163298e1c34980b586
[ "MIT" ]
1
2019-05-18T13:16:25.000Z
2019-05-18T13:16:25.000Z
Yu/Web.py
Hiroshiba/KotohiraYu
1ab5a5376e01aae5c730ae163298e1c34980b586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import configparser import glob import sqlite3 import traceback import json from bottle import route, run, auth_basic, abort, response from sqlite3 import OperationalError config = configparser.ConfigParser() config.read('config/config.ini') def VERIFY(username, password): retur...
31.522124
174
0.571028
0
0
0
0
3,122
0.876474
0
0
1,488
0.417743
837a8a805f3fa86050a9f939d897eba29f04412d
1,713
py
Python
urduhack/stop_words.py
fahdrazavi/urduhack
a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8
[ "MIT" ]
null
null
null
urduhack/stop_words.py
fahdrazavi/urduhack
a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8
[ "MIT" ]
null
null
null
urduhack/stop_words.py
fahdrazavi/urduhack
a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8
[ "MIT" ]
null
null
null
# coding: utf8 """ Complete collection of stopwords for the Urdu language. Maintainer: Ikram Ali([email protected]) version = 2019.04.07 Source = https://github.com/urduhack/urdu-stopwords """ # Urdu Language Stop words list STOP_WORDS = frozenset(""" آ آئی آئیں آئے آتا آتی آتے آس آنا آنی آنے آپ آیا ابھی از اس ا...
57.1
101
0.76474
0
0
0
0
0
0
0
0
2,787
0.986898
837ad353a450f945fc5a6b024a1362ed9689c173
3,982
py
Python
src/sequencemodel_09.py
PatrikValkovic/neural-networks-step-by-step
86f5f98de1dbeb3a69ba101f06e303dbaabe6b8e
[ "MIT" ]
1
2021-02-04T09:01:44.000Z
2021-02-04T09:01:44.000Z
src/sequencemodel_09.py
alexdevero/neural-networks-step-by-step
55e12e82c78f9be2d942fc1bff252b92fb61c1dd
[ "MIT" ]
null
null
null
src/sequencemodel_09.py
alexdevero/neural-networks-step-by-step
55e12e82c78f9be2d942fc1bff252b92fb61c1dd
[ "MIT" ]
2
2021-01-30T15:17:50.000Z
2021-02-04T09:01:45.000Z
import numpy as np from progressbar import progressbar class SequenceModel: def __init__(self, layers, loss, metrices = [], random_seed = None): self._rand = np.random.RandomState(random_seed); self.loss = loss self.metrices = metrices self.layers = layers def zero_grad...
45.770115
120
0.566298
3,925
0.985686
0
0
0
0
0
0
440
0.110497
837c932ac45c8e6207580a84130808a7f51d5177
685
py
Python
django_sso_app/app/views.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
1
2021-11-16T15:16:08.000Z
2021-11-16T15:16:08.000Z
django_sso_app/app/views.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
django_sso_app/app/views.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect from django.views import View from ..core import app_settings class AppLoginView(View): def get(self, request, *args, **kwargs): next = request.GET.get('next', '') return HttpResponseRedirect(app_settings.REMOTE_LOGIN_URL + next) class AppSignupView...
26.346154
74
0.694891
568
0.829197
0
0
0
0
0
0
24
0.035036
837cbe3de90b812a9c90cd64972dc52fe2924f87
8,989
py
Python
tests/components/multimatic/__init__.py
thomasgermain/home-assistant
69a8ba678e0276bc1bfde0f3d9e9d3682209f962
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
tests/components/multimatic/__init__.py
thomasgermain/home-assistant
69a8ba678e0276bc1bfde0f3d9e9d3682209f962
[ "Apache-2.0" ]
73
2020-10-01T06:39:39.000Z
2022-03-31T06:16:15.000Z
tests/components/multimatic/__init__.py
thomasgermain/home-assistant
69a8ba678e0276bc1bfde0f3d9e9d3682209f962
[ "Apache-2.0" ]
4
2019-10-26T14:25:13.000Z
2020-11-10T11:00:18.000Z
"""The tests for multimatic integration.""" from __future__ import annotations import datetime from typing import Any from unittest.mock import AsyncMock, patch from pymultimatic.model import ( ActiveFunction, BoilerStatus, Circulation, Device, Dhw, EmfReport, Error, FacilityDetail, ...
26.206997
82
0.585938
1,872
0.208231
0
0
1,064
0.118354
1,307
0.145384
1,652
0.18376
837cd4561ed86c61a564513e1e29e4b4eaead664
4,877
py
Python
test/e2e/test_200_header_invalid.py
elukey/mod_h2
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
[ "Apache-2.0" ]
null
null
null
test/e2e/test_200_header_invalid.py
elukey/mod_h2
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
[ "Apache-2.0" ]
null
null
null
test/e2e/test_200_header_invalid.py
elukey/mod_h2
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
[ "Apache-2.0" ]
null
null
null
# # mod-h2 test suite # check handling of invalid chars in headers # import copy import os import re import sys import time import pytest from datetime import datetime from TestEnv import TestEnv from TestHttpdConf import HttpdConf def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv...
43.159292
119
0.565717
4,336
0.889071
0
0
0
0
0
0
1,994
0.408858
837d850bff1c24037cf6a37770c38618903819c0
7,529
py
Python
controller/controller.py
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
1
2021-12-02T07:29:29.000Z
2021-12-02T07:29:29.000Z
controller/controller.py
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
null
null
null
controller/controller.py
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
null
null
null
from scenarios import helper from scenarios.builder import Builder from model.enumerations import e_ExperienceFactor, e_MentalOrEmotionalFactor, e_PhyOrPhyFactor, e_EntityType, e_Relation, e_CausalFactorType from model.knowledge_base import kb from model.entities import Entity, CausalFactor from model.utils import Boun...
37.272277
140
0.504582
7,174
0.952849
0
0
0
0
0
0
2,080
0.276265
837e4da85868086f6aef55e405fd04f2686a56f3
1,567
py
Python
stan/data/data_lex.py
chappers/Stan
61c189ab12ea50214390804cff5694ac51f8df35
[ "MIT" ]
1
2015-01-06T11:10:24.000Z
2015-01-06T11:10:24.000Z
stan/data/data_lex.py
chappers/Stan
61c189ab12ea50214390804cff5694ac51f8df35
[ "MIT" ]
null
null
null
stan/data/data_lex.py
chappers/Stan
61c189ab12ea50214390804cff5694ac51f8df35
[ "MIT" ]
null
null
null
""" The :mod:`stan.data_lex` module is the lexer for SAS-like language. """ from pyparsing import * from stan.data.data_expr import EXPR_, ID_, DATA, SET, RENAME, RUN, DROP, KEEP, SEMI_, LOGICAL_ # set up logic dataStepStmt = Forward() # data/set inline options rename_stmt = (OneOrMore(Group(ID_ + Suppress("=") ...
35.613636
139
0.613912
0
0
0
0
0
0
0
0
305
0.194639
837e63fb36e90c2f7dc83ee4de463a8b38b3fbca
2,334
py
Python
setup.py
JayDwayne/Neopo
964e1a13ed016b5a74ccb33b7384a0f783100cd7
[ "MIT" ]
null
null
null
setup.py
JayDwayne/Neopo
964e1a13ed016b5a74ccb33b7384a0f783100cd7
[ "MIT" ]
null
null
null
setup.py
JayDwayne/Neopo
964e1a13ed016b5a74ccb33b7384a0f783100cd7
[ "MIT" ]
null
null
null
import os from platform import system from setuptools import setup from subprocess import run, PIPE, CalledProcessError running_on_windows = system() == "Windows" running_in_docker = os.path.isfile("/.dockerenv") # Consistent version as AUR try: count = run(["git", "rev-list", "--count", "HEAD"], stdo...
35.363636
81
0.70437
0
0
0
0
0
0
0
0
1,263
0.541131
837ecef31551741e285f87a84d5925f220afb694
2,045
py
Python
jmetal/core/operator.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
1
2020-05-26T18:57:31.000Z
2020-05-26T18:57:31.000Z
jmetal/core/operator.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
null
null
null
jmetal/core/operator.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
2
2019-01-08T11:52:52.000Z
2020-05-25T13:21:26.000Z
from abc import ABCMeta, abstractmethod from typing import TypeVar, Generic, List S = TypeVar('S') R = TypeVar('R') """ .. module:: Operator :platform: Unix, Windows :synopsis: Templates for operators. .. moduleauthor:: Antonio J. Nebro <[email protected]> """ class Operator(Generic[S, R]): """ Class re...
21.989247
90
0.627873
1,762
0.861614
0
0
569
0.27824
0
0
492
0.240587
8383163f22959bd98885d5ed979d31561a7823ce
1,389
py
Python
foo/pictureR/wordsTemplate.py
MangetsuC/arkHelper
02705294f1bc3ecf926e0a9c62c59026494f62f8
[ "MIT" ]
147
2020-05-06T10:36:13.000Z
2022-03-17T13:03:16.000Z
foo/pictureR/wordsTemplate.py
MangetsuC/arkHelper
02705294f1bc3ecf926e0a9c62c59026494f62f8
[ "MIT" ]
34
2020-07-21T01:20:10.000Z
2022-01-30T06:38:11.000Z
foo/pictureR/wordsTemplate.py
MangetsuC/arkHelper
02705294f1bc3ecf926e0a9c62c59026494f62f8
[ "MIT" ]
17
2020-12-10T14:42:34.000Z
2022-02-26T15:23:58.000Z
from PIL import Image, ImageDraw, ImageFont from numpy import asarray from cv2 import cvtColor, COLOR_RGB2BGR, imshow, waitKey from os import getcwd def getFontSize_name(resolution): x = resolution[0] if x <= 1024: return (16, (1024,576)) elif x <= 1280: return (21, (1280,720)) elif x <...
37.540541
101
0.670266
0
0
0
0
0
0
0
0
419
0.27332
8383af1ee3c86c7a8396f853fcb82a399a1772cb
1,185
py
Python
bin/concat_msa.py
HadrienG/arbetsprov
ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f
[ "MIT" ]
5
2021-10-11T09:30:52.000Z
2022-01-03T07:03:17.000Z
bin/concat_msa.py
HadrienG/arbetsprov
ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f
[ "MIT" ]
null
null
null
bin/concat_msa.py
HadrienG/arbetsprov
ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f
[ "MIT" ]
1
2022-01-03T07:03:51.000Z
2022-01-03T07:03:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse from Bio import AlignIO def concat_msa(msas, output): """concatenate msas together""" alignments = [] for msa in msas: align = AlignIO.read(msa, "fasta") # shorten id so the concatenated alignment keeps it for record i...
23.7
63
0.592405
0
0
0
0
0
0
0
0
248
0.209283
8384d1480db51cc6251738da74aa3074adb07e4f
11,099
py
Python
rendez-vous.py
MrDarkness117/parseTsum
03f9f4d7c9e90a48eec5c689082a4274a160f501
[ "MIT" ]
null
null
null
rendez-vous.py
MrDarkness117/parseTsum
03f9f4d7c9e90a48eec5c689082a4274a160f501
[ "MIT" ]
null
null
null
rendez-vous.py
MrDarkness117/parseTsum
03f9f4d7c9e90a48eec5c689082a4274a160f501
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys...
39.080986
136
0.594918
0
0
0
0
0
0
0
0
3,549
0.317499
838511c8e3372a6ae2d5fbb109dbbc9156779d54
171
py
Python
stdlib/getpass_qs.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
3
2015-11-20T14:30:53.000Z
2015-12-19T05:55:19.000Z
stdlib/getpass_qs.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
null
null
null
stdlib/getpass_qs.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
1
2016-01-05T20:54:49.000Z
2016-01-05T20:54:49.000Z
import getpass # prompt user without echoing output print getpass.getpass() print getpass.getpass(prompt="Custom Prompt:") print "user login name:", getpass.getuser()
17.1
46
0.766082
0
0
0
0
0
0
0
0
70
0.409357
8385780ba677837b4c5c4c3d8cf272c764342143
385
py
Python
backend/todo/migrations/0008_auto_20190403_0812.py
Bhunesh2000/todoWithDjango
e5fa52a087180b66ae283e6b36fe790323d7b920
[ "MIT" ]
null
null
null
backend/todo/migrations/0008_auto_20190403_0812.py
Bhunesh2000/todoWithDjango
e5fa52a087180b66ae283e6b36fe790323d7b920
[ "MIT" ]
11
2019-04-03T09:49:17.000Z
2022-02-10T08:23:26.000Z
backend/todo/migrations/0008_auto_20190403_0812.py
Bhunesh2000/todoWithDjango
e5fa52a087180b66ae283e6b36fe790323d7b920
[ "MIT" ]
1
2019-10-21T19:26:29.000Z
2019-10-21T19:26:29.000Z
# Generated by Django 2.2 on 2019-04-03 08:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('todo', '0007_todo_dateevent'), ] operations = [ migrations.AlterField( model_name='todo', name='dateEvent', ...
20.263158
57
0.58961
294
0.763636
0
0
0
0
0
0
101
0.262338
8385a072d6737fbd7ff6db50b44b8505e7dcadb3
1,797
py
Python
public/neumeeditor/models/fields/short_code_field.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
public/neumeeditor/models/fields/short_code_field.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
public/neumeeditor/models/fields/short_code_field.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
import re from django.db import models unacceptable_chars = "[^a-z0-9\._]" duplicate_spaces_and_dots = "[\ .]+" class ShortCodeField(models.CharField): description = "A short string representing a glyph name" def pre_save(self, model_instance, add): model_instance.short_code = sanitize_short_code(mo...
28.983871
82
0.582638
270
0.15025
0
0
0
0
0
0
611
0.340011
8386475aa5d024fe1d36e6904efce3bbf70bc22b
328
py
Python
2/week2/c.py
briannice/logiscool-python
00cf772072f574d297ed487e8edc9bb0158b6c68
[ "Apache-2.0" ]
null
null
null
2/week2/c.py
briannice/logiscool-python
00cf772072f574d297ed487e8edc9bb0158b6c68
[ "Apache-2.0" ]
null
null
null
2/week2/c.py
briannice/logiscool-python
00cf772072f574d297ed487e8edc9bb0158b6c68
[ "Apache-2.0" ]
null
null
null
def som(a, b): """Bereken de som van twee getallen. Als de som groter is dan nul return je de som. Als de som kleiner is dan nul, dan return je nul. Args: a (int): het eerste getal b (int): het tweede getal """ pass assert som(1, 2) == 3 assert som(-1, -2) == -3 assert som(0, ...
20.5
87
0.570122
0
0
0
0
0
0
0
0
227
0.692073
83882ea566cc14498c7c6f7269a02089a389aa86
2,862
py
Python
src/plugins/pipeline_plugins/utils/blob.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
11
2021-03-23T22:03:00.000Z
2022-03-30T17:12:38.000Z
src/plugins/pipeline_plugins/utils/blob.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
3
2021-07-21T10:13:24.000Z
2021-10-18T03:44:03.000Z
src/plugins/pipeline_plugins/utils/blob.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
5
2021-05-07T03:30:29.000Z
2021-11-03T21:05:00.000Z
# python3 # coding=utf-8 # Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
37.657895
75
0.677149
2,060
0.719776
0
0
0
0
0
0
1,692
0.591195
8388c207ef02a512832cd36b34b04ff91b5bc7e2
2,636
py
Python
LinearModel/scripts/three_classes_train.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
LinearModel/scripts/three_classes_train.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
LinearModel/scripts/three_classes_train.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
# coding=utf-8 # date: 2019/1/1, 19:38 # name: smz import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from sklearn.utils import shuffle from LinearModel.modules.model3 import ModelThreeClasses from LinearModel.configuration.options import opts from LinearModel.scripts.gen_data import generate_d...
35.621622
119
0.65478
0
0
0
0
0
0
0
0
576
0.206452
83894f358de50ff81cde8fdfc6091027cb2fdbb8
21,108
py
Python
trio/_core/tests/test_multierror.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
4
2017-03-01T22:14:46.000Z
2020-07-31T07:18:18.000Z
trio/_core/tests/test_multierror.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
81
2017-01-22T11:58:29.000Z
2017-05-27T22:17:49.000Z
trio/_core/tests/test_multierror.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
1
2020-05-28T19:38:09.000Z
2020-05-28T19:38:09.000Z
import logging import pytest from traceback import extract_tb, print_exception, format_exception, _cause_message import sys import os import re from pathlib import Path import subprocess from .tutil import slow from .._multierror import MultiError, concat_tb from ..._core import open_nursery class NotHashableExcep...
29.646067
88
0.648664
287
0.013597
0
0
1,037
0.049128
449
0.021272
5,729
0.271414
838a825c230b5aebf0d63f09c997caea89e365c9
3,896
py
Python
servo/drv/ec3po_gpio.py
mmind/servo-hdctools
c7d50190837497dafc45f6efe18bf01d6e70cfd2
[ "BSD-3-Clause" ]
2
2019-09-25T22:44:39.000Z
2020-07-26T22:29:20.000Z
servo/drv/ec3po_gpio.py
mmind/servo-hdctools
c7d50190837497dafc45f6efe18bf01d6e70cfd2
[ "BSD-3-Clause" ]
null
null
null
servo/drv/ec3po_gpio.py
mmind/servo-hdctools
c7d50190837497dafc45f6efe18bf01d6e70cfd2
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Driver for gpio controls through ec3po. Provides the following console controlled function: _Get_single, _Set_single, _Get_multi, _Set_multi """ imp...
25.973333
76
0.652977
3,330
0.854723
0
0
0
0
0
0
2,183
0.560318
838aa6ee041eb5a569fe74b2aa529125b8e2fda2
2,595
py
Python
scipy_util/util.py
idf/sci_util_py
53b4d961a1a8faeb444d2972ca7a2baf4a966f6e
[ "BSD-3-Clause" ]
null
null
null
scipy_util/util.py
idf/sci_util_py
53b4d961a1a8faeb444d2972ca7a2baf4a966f6e
[ "BSD-3-Clause" ]
1
2016-02-10T19:17:20.000Z
2016-02-10T20:04:59.000Z
scipy_util/util.py
idf/scipy_util
53b4d961a1a8faeb444d2972ca7a2baf4a966f6e
[ "BSD-3-Clause" ]
null
null
null
""" Adapted from https://github.com/bytefish/facerec """ import os from PIL import Image import numpy as np import random def read_image(filename): imarr = np.array([]) try: im = Image.open(os.path.join(filename)) im = im.convert("L") # convert to greyscale imarr = np.array(im, dtype=...
23.807339
74
0.570713
0
0
0
0
0
0
0
0
813
0.313295
838c4a8c221ca4daa94ec9e1d608b97fed7bdb05
110
py
Python
cmsplugin_markdown/apps.py
glomium/cmstemplate
6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_markdown/apps.py
glomium/cmstemplate
6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_markdown/apps.py
glomium/cmstemplate
6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class CmspluginMarkdownConfig(AppConfig): name = 'cmsplugin_markdown'
18.333333
41
0.8
73
0.663636
0
0
0
0
0
0
20
0.181818
838edfd8c862125c349c121325bcacc9bf203166
1,177
py
Python
tools/harness/tests/freemem.py
lambdaxymox/barrelfish
06a9f54721a8d96874a8939d8973178a562c342f
[ "MIT" ]
111
2015-02-03T02:57:27.000Z
2022-03-01T23:57:09.000Z
tools/harness/tests/freemem.py
lambdaxymox/barrelfish
06a9f54721a8d96874a8939d8973178a562c342f
[ "MIT" ]
12
2016-03-22T14:44:32.000Z
2020-03-18T13:30:29.000Z
tools/harness/tests/freemem.py
lambdaxymox/barrelfish
06a9f54721a8d96874a8939d8973178a562c342f
[ "MIT" ]
55
2015-02-03T05:28:12.000Z
2022-03-31T05:00:03.000Z
########################################################################## # Copyright (c) 2009, ETH Zurich. # All rights reserved. # # This file is distributed under the terms in the attached LICENSE file. # If you do not find this file, copies can be found by writing to: # ETH Zurich D-INFK, Universitaetstrasse 6, CH...
33.628571
80
0.605777
640
0.543755
0
0
656
0.557349
0
0
572
0.485981
8391c2e017e6f922119fae69c3e8b24e0d685ffc
2,959
py
Python
grad_cam.py
SamuelCahyawijaya/pytorch-smoothgrad
d9a5a359aab520a500e19359b309d1c030babb20
[ "MIT" ]
77
2017-07-28T15:54:44.000Z
2018-04-21T08:25:36.000Z
grad_cam.py
SamuelCahyawijaya/pytorch-smoothgrad
d9a5a359aab520a500e19359b309d1c030babb20
[ "MIT" ]
null
null
null
grad_cam.py
SamuelCahyawijaya/pytorch-smoothgrad
d9a5a359aab520a500e19359b309d1c030babb20
[ "MIT" ]
12
2019-10-11T16:00:51.000Z
2021-12-10T03:21:54.000Z
import argparse import os import sys import numpy as np from scipy import misc import cv2 import torch import torch.nn as nn from torch.autograd import Variable from torchvision.models import vgg16, vgg19 from torchvision.utils import save_image from lib.gradients import GradCam, GuidedBackpropGrad from lib.image_uti...
29.29703
84
0.677256
0
0
0
0
0
0
0
0
510
0.172356
83927dd68fcacbf5d7c2a21161a37e8eb6342054
1,021
py
Python
Task2G.py
asew4/Flood-Warning-System-8
66f436caf8307232604b830e4dc4ab385de0556e
[ "MIT" ]
null
null
null
Task2G.py
asew4/Flood-Warning-System-8
66f436caf8307232604b830e4dc4ab385de0556e
[ "MIT" ]
null
null
null
Task2G.py
asew4/Flood-Warning-System-8
66f436caf8307232604b830e4dc4ab385de0556e
[ "MIT" ]
1
2022-02-06T02:27:29.000Z
2022-02-06T02:27:29.000Z
from floodsystem import stationdata, datafetcher, station stations = stationdata.build_station_list() stationdata.update_water_levels(stations) #Empty lists for each of the risk categories severe_level_station = [] high_level_station = [] moderate_level_station = [] low_level_station = [] for station in stations: #S...
30.939394
66
0.712047
0
0
0
0
0
0
0
0
122
0.119491
83929360847de74ce432577b4612ddd776a07618
3,472
py
Python
Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
#//------------------------------------------------------------------- #/*/{Protheus.doc} ACDA035 - # #@author PEDRO ANTONIO MISSAGLIA #@since 23/09/2019 #@version P12 # # CT001 - Inclusão de Lançamento de Inventário # CT002 - Visão de um lançamento de inventário # CT003 - Visualização das legendas # CT0...
27.125
88
0.692396
2,833
0.807123
0
0
318
0.090598
0
0
1,348
0.384046
8392df442da4b2f8acf4cb05c261720a7e2145a4
967
py
Python
tests/unit/test_cust_driver.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
2
2021-01-22T07:34:35.000Z
2021-01-23T04:36:41.000Z
tests/unit/test_cust_driver.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
1
2021-02-27T05:56:45.000Z
2021-02-27T05:57:03.000Z
tests/unit/test_cust_driver.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from jina import Flow, Document from jina.executors import BaseExecutor from jina.parsers import set_pea_parser from jina.peapods.peas import BasePea cur_dir = Path(__file__).parent def test_load_executor_with_custom_driver(): with BaseExecutor.load_config(str(cur_dir / 'yaml/test-execu...
31.193548
110
0.733195
0
0
0
0
0
0
0
0
228
0.235781
8393065c4b6aeffae6a10f048cd67e3a8fa65388
373
py
Python
02-19-Cuma/forLoop.py
cihatdev/misha-staj
d0ee95d5e77a7d7a1f16611d49c87be429a25b31
[ "MIT" ]
9
2021-03-16T20:21:54.000Z
2022-01-08T09:15:10.000Z
02-19-Cuma/forLoop.py
cihatdev/misha-staj
d0ee95d5e77a7d7a1f16611d49c87be429a25b31
[ "MIT" ]
1
2021-02-28T21:27:17.000Z
2021-02-28T21:27:17.000Z
02-19-Cuma/forLoop.py
cihatdev/misha-staj
d0ee95d5e77a7d7a1f16611d49c87be429a25b31
[ "MIT" ]
1
2021-05-24T11:34:48.000Z
2021-05-24T11:34:48.000Z
# for loops # for letter in "Cihat Salik": # print(letter) friends = ["Hasan", "Mahmut", "Ali", "Veli"] for friend in friends: print(friend) for index in range(3, 10): print(index) for index in range(len(friends)): print(friends[index]) for index in range(5): if index == 0: print("Fi...
15.541667
44
0.600536
0
0
0
0
0
0
0
0
114
0.30563
839340ab08b4524ada1d06b4a611b58353ecf4dc
3,813
py
Python
ricga/ricga_server.py
MeteorKepler/laughing-invention
6f856d7ba27f956d8dceb18fe14ba2575beae6aa
[ "Apache-2.0" ]
1
2018-04-12T01:44:32.000Z
2018-04-12T01:44:32.000Z
ricga/ricga_server.py
MeteorKepler/RICGA
6f856d7ba27f956d8dceb18fe14ba2575beae6aa
[ "Apache-2.0" ]
null
null
null
ricga/ricga_server.py
MeteorKepler/RICGA
6f856d7ba27f956d8dceb18fe14ba2575beae6aa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cgi from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import tensorflow as tf from ricga import configuration from ricga import inference_wrapper from ricga.inference_utils import caption_g...
37.019417
115
0.59402
2,617
0.686336
0
0
0
0
0
0
976
0.255966
839409e02d06e81916f52fdb0dab1efe39b69585
2,190
py
Python
rotation_analysis/analysis/probe/gui/gui.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
null
null
null
rotation_analysis/analysis/probe/gui/gui.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-08-09T21:51:41.000Z
2021-08-09T21:51:45.000Z
rotation_analysis/analysis/probe/gui/gui.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-10-16T14:07:59.000Z
2021-10-16T17:09:03.000Z
import os import sys if sys.platform.startswith('linux'): from OpenGL import GL from PyQt5.QtQml import QQmlApplicationEngine from PyQt5.QtWidgets import QApplication from analysis.probe.gui.backend_classes import PythonBackendClass1, Logger from analysis.probe.gui.image_providers import PyplotImagePro...
35.322581
135
0.719635
0
0
0
0
0
0
0
0
799
0.36484
83944542d560f5e410e723d98ca83aade353b2f1
3,701
py
Python
test/integration/test_forcemerge.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
null
null
null
test/integration/test_forcemerge.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
null
null
null
test/integration/test_forcemerge.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
null
null
null
import opensearchpy import curator import os import json import string import random import tempfile from time import sleep import click from click import testing as clicktest from mock import patch, Mock from . import CuratorTestCase from . import testvars as testvars import logging logger = logging.getLogger(__name...
37.765306
94
0.604431
3,263
0.881654
0
0
0
0
0
0
893
0.241286
8394cbef054df0807f179df99652e99fb23bca5e
7,331
py
Python
datacube_alchemist/_utils.py
erin-telfer/datacube-alchemist
4c37b2243027769f01ce0729e5ff56d0f6354316
[ "Apache-2.0" ]
15
2020-06-23T06:03:41.000Z
2021-12-23T00:19:01.000Z
datacube_alchemist/_utils.py
erin-telfer/datacube-alchemist
4c37b2243027769f01ce0729e5ff56d0f6354316
[ "Apache-2.0" ]
69
2019-08-14T02:03:38.000Z
2022-03-04T03:38:20.000Z
datacube_alchemist/_utils.py
erin-telfer/datacube-alchemist
4c37b2243027769f01ce0729e5ff56d0f6354316
[ "Apache-2.0" ]
3
2020-09-21T22:01:34.000Z
2021-09-22T03:02:26.000Z
import json from pathlib import Path import re from typing import Dict import boto3 import structlog from datacube.model import Dataset from datacube.virtual import Measurement, Transformation from eodatasets3 import DatasetAssembler, serialise from eodatasets3.model import DatasetDoc, ProductDoc from eodatasets3.prop...
32.438053
105
0.657755
259
0.035329
0
0
0
0
0
0
2,010
0.274178
8394cda94ca23da8940ee7626693fe1126d8fab2
834
py
Python
HMBBF/migrations/0015_auto_20161202_1733.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
HMBBF/migrations/0015_auto_20161202_1733.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
HMBBF/migrations/0015_auto_20161202_1733.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('HMBBF', '0014_theme'), ] operations = [ migrations.AddField( model_name='theme', name='time', ...
27.8
134
0.588729
725
0.869305
0
0
0
0
0
0
203
0.243405
83963bff306e66c0a55e66eed48eb8e977fd0dbd
4,649
py
Python
rb/processings/text_classifier/text_classifier.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
null
null
null
rb/processings/text_classifier/text_classifier.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
2
2021-10-17T14:00:52.000Z
2021-10-17T14:00:52.000Z
rb/processings/text_classifier/text_classifier.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
null
null
null
from rb.core.lang import Lang from rb.core.document import Document from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.similarity.word2vec import Word2Vec from rb.similarity.vector_model import VectorModelType, CorporaEnum, VectorModel from rb.similarity.vector_model_factory import VECT...
35.219697
113
0.591955
3,868
0.832007
0
0
0
0
0
0
437
0.093999
839812d03b6dbafa768b4338253f5ebbd452fe07
821
py
Python
vault_importer/csv.py
rpetti/vault-keepassxc-importer
7258a1062a52426e44fddce57d0f841f98f3c2c1
[ "Apache-2.0" ]
null
null
null
vault_importer/csv.py
rpetti/vault-keepassxc-importer
7258a1062a52426e44fddce57d0f841f98f3c2c1
[ "Apache-2.0" ]
null
null
null
vault_importer/csv.py
rpetti/vault-keepassxc-importer
7258a1062a52426e44fddce57d0f841f98f3c2c1
[ "Apache-2.0" ]
null
null
null
import csv class Csv: def __init__(self, csv_file): self.reader = csv.reader(open(csv_file, newline=''), delimiter=',') def parse(self): parsed = [] # Ignore the first line, 't is the header next(self.reader) for row in self.reader: secret = { ...
26.483871
75
0.483557
807
0.982948
0
0
0
0
0
0
96
0.116931
839832c0e53eab95cbbd979af3ec19abef8086bb
3,069
py
Python
src/reader/_plugins/enclosure_tags.py
mirekdlugosz/reader
d929b88f1981085b68e82019aa59af126479d4a9
[ "BSD-3-Clause" ]
205
2018-07-14T12:54:21.000Z
2022-03-29T06:47:13.000Z
src/reader/_plugins/enclosure_tags.py
mirekdlugosz/reader
d929b88f1981085b68e82019aa59af126479d4a9
[ "BSD-3-Clause" ]
275
2018-01-28T20:57:13.000Z
2022-03-29T21:45:11.000Z
src/reader/_plugins/enclosure_tags.py
mirekdlugosz/reader
d929b88f1981085b68e82019aa59af126479d4a9
[ "BSD-3-Clause" ]
12
2021-01-01T17:15:53.000Z
2022-03-22T09:38:12.000Z
""" enclosure_tags ~~~~~~~~~~~~~~ Fix tags for MP3 enclosures (e.g. podcasts). Adds a "with tags" link to a version of the file with tags set as follows: * the entry title as title * the feed title as album * the entry/feed author as author This plugin needs additional dependencies, use the ``unstable-plugins`` ext...
26.008475
81
0.640274
0
0
1,306
0.425546
1,418
0.46204
0
0
979
0.318996
8398b2a65cd51b95d6dff4f5e09806cedb08e588
454
py
Python
sqllite/delete_the_data.py
arjunjanamatti/pymongo_practise
d69153f6a0cce9416b10c0adf300986bfe9dfe22
[ "Apache-2.0" ]
null
null
null
sqllite/delete_the_data.py
arjunjanamatti/pymongo_practise
d69153f6a0cce9416b10c0adf300986bfe9dfe22
[ "Apache-2.0" ]
null
null
null
sqllite/delete_the_data.py
arjunjanamatti/pymongo_practise
d69153f6a0cce9416b10c0adf300986bfe9dfe22
[ "Apache-2.0" ]
null
null
null
import _sqlite3 mydb = _sqlite3.connect(database = 'namelist') with mydb: cur = mydb.cursor() name = 'update_name_placeholder' cur.execute('DELETE FROM users WHERE First_name = ?', (name,)) mydb.commit() print('Data deleted!!!') cur = mydb.cursor() selectquery = 'SELECT * FROM users...
16.814815
66
0.627753
0
0
0
0
0
0
0
0
130
0.286344
8398ea34b25e65cea834c631c5374561393da5cc
35,415
py
Python
tools/messages/aura4_messages.py
AuraUAS/aura-core
4711521074db72ba9089213e14455d89dc5306c0
[ "MIT", "BSD-2-Clause-FreeBSD" ]
8
2016-08-03T19:35:03.000Z
2019-12-15T06:25:05.000Z
tools/messages/aura4_messages.py
AuraUAS/aura-core
4711521074db72ba9089213e14455d89dc5306c0
[ "MIT", "BSD-2-Clause-FreeBSD" ]
4
2018-09-27T15:48:56.000Z
2018-11-05T12:38:10.000Z
tools/messages/aura4_messages.py
AuraUAS/aura-core
4711521074db72ba9089213e14455d89dc5306c0
[ "MIT", "BSD-2-Clause-FreeBSD" ]
5
2017-06-28T19:15:36.000Z
2020-02-19T19:31:24.000Z
import struct # Message id constants command_ack_id = 10 config_airdata_id = 11 config_board_id = 12 config_ekf_id = 13 config_imu_id = 14 config_mixer_id = 15 config_mixer_matrix_id = 16 config_power_id = 17 config_pwm_id = 18 config_stability_damping_id = 19 command_inceptors_id = 20 command_zero_gyros_id = 21 comma...
30.742188
86
0.472766
33,918
0.95773
0
0
0
0
0
0
1,892
0.053424
839c15c319f76f2a4d3c57f98d73d5a1cfa11959
1,563
py
Python
influxdbnagiosplugin/tests/test_query.py
paulboot/influxdb-nagios-plugin
945eeb518d22863a7878b3726b24d8a2e9e485bb
[ "Apache-2.0" ]
5
2016-05-16T22:35:09.000Z
2020-11-13T16:03:45.000Z
influxdbnagiosplugin/tests/test_query.py
paulboot/influxdb-nagios-plugin
945eeb518d22863a7878b3726b24d8a2e9e485bb
[ "Apache-2.0" ]
2
2017-11-28T00:01:19.000Z
2022-01-21T14:04:58.000Z
influxdbnagiosplugin/tests/test_query.py
paulboot/influxdb-nagios-plugin
945eeb518d22863a7878b3726b24d8a2e9e485bb
[ "Apache-2.0" ]
9
2015-12-03T00:37:57.000Z
2021-09-08T09:23:05.000Z
""" Query construction tests. """ from hamcrest import assert_that, is_, equal_to from influxdbnagiosplugin.query import ExplicitQueryBuilder, SingleMeasurementQueryBuilder def test_explicit_query(): query = ExplicitQueryBuilder("SHOW MEASUREMENTS") assert_that(query().query, is_(equal_to( "SHOW MEAS...
26.948276
90
0.627639
0
0
0
0
0
0
0
0
459
0.293666
839cf93a477b1ceb19582913fdf13770dea82220
27,056
py
Python
sfftk_migrate/test_sfftk_migrate.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
sfftk_migrate/test_sfftk_migrate.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
2
2020-04-02T15:25:10.000Z
2020-04-03T14:32:12.000Z
sfftk_migrate/test_sfftk_migrate.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import types import unittest import inspect from lxml import etree from . import XSL, XML, VERSION_LIST from .core import get_module, get_stylesheet, get_source_version, get_migration_path, list_versions from .main import parse_args from .migrate import migrate_by_styleshe...
50.383613
120
0.623965
25,762
0.952173
0
0
0
0
0
0
6,718
0.2483
839e9ac3360c11d26c97e8b4677e721f25a025a1
11,298
py
Python
ross/stochastic/st_shaft_element.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
69
2018-12-26T19:21:26.000Z
2022-02-10T08:48:03.000Z
ross/stochastic/st_shaft_element.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
639
2018-12-18T16:44:11.000Z
2022-03-27T16:46:41.000Z
ross/stochastic/st_shaft_element.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
136
2019-01-08T12:37:32.000Z
2022-03-30T07:14:35.000Z
"""Shaft element module for STOCHASTIC ROSS. This module creates an instance of random shaft element for stochastic analysis. """ from ross.shaft_element import ShaftElement from ross.stochastic.st_materials import ST_Material from ross.stochastic.st_results_elements import plot_histogram from ross.units import Q_, ch...
32.28
88
0.547354
10,259
0.908037
0
0
1,258
0.111347
0
0
7,978
0.706143
839ec849aea4ca2defce43d38650cfab96daff56
2,873
py
Python
sympy/benchmarks/bench_symbench.py
vprusso/sympy
d5aa27ec88bb076f59087aada97d99bfff8b2f4c
[ "BSD-3-Clause" ]
null
null
null
sympy/benchmarks/bench_symbench.py
vprusso/sympy
d5aa27ec88bb076f59087aada97d99bfff8b2f4c
[ "BSD-3-Clause" ]
null
null
null
sympy/benchmarks/bench_symbench.py
vprusso/sympy
d5aa27ec88bb076f59087aada97d99bfff8b2f4c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function, division from sympy.core.compatibility import xrange from random import random from sympy import factor, I, Integer, pi, simplify, sin, sqrt, Symbol, sympify from sympy.abc import x, y, z from timeit import default_timer as clock def bench_R1(): "real(...
21.765152
78
0.484859
0
0
0
0
0
0
0
0
490
0.170553
839f729c16c6176bd93a48ef474f3a2349aae65f
774
py
Python
tests/test_capture.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
5
2021-06-10T01:32:06.000Z
2021-12-22T23:05:52.000Z
tests/test_capture.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
17
2020-08-03T16:35:26.000Z
2022-03-30T17:29:41.000Z
tests/test_capture.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
null
null
null
from tempfile import NamedTemporaryFile import os import pytest from c10_tools.capture import main @pytest.fixture def args(): return {'<infile>': pytest.PCAP, '<outfile>': NamedTemporaryFile('wb').name, '-f': True, '-q': True, '-t': pytest.TMATS} def test_over...
22.114286
70
0.595607
0
0
0
0
200
0.258398
0
0
103
0.133075
83a0c16822a34d798946b9dc4c088ff91cd8ad8d
330
py
Python
e-olymp/p15/373.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
e-olymp/p15/373.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
e-olymp/p15/373.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
# TODO: tle import re import sys m = {"?": ".?", "*": ".*?"} def score(s): return sum(ord(e) - ord("a") + 1 for e in s) def tr(s): return "(?=({}))".format("".join(m.get(e, e) for e in s)) for ln in sys.stdin: p, s = ln.rstrip().split() res = re.findall(tr(p), s) print(score(min(res)) if res...
15.714286
61
0.50303
0
0
0
0
0
0
0
0
41
0.124242
83a1781aa9bd0a390115621e83bce23ea229c38b
1,025
py
Python
dino.py
panpepson/DinoBot-chroma-offline
a6587555bf52c1545e69d79a4d30f19ad911eff2
[ "MIT" ]
null
null
null
dino.py
panpepson/DinoBot-chroma-offline
a6587555bf52c1545e69d79a4d30f19ad911eff2
[ "MIT" ]
3
2021-06-08T21:14:50.000Z
2022-03-12T00:22:40.000Z
dino.py
panpepson/DinoBot-chroma-offline
a6587555bf52c1545e69d79a4d30f19ad911eff2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np import cv2 from mss.linux import MSS as mss from PIL import Image import time import pyautogui as pg #mon = {'top': 480, 'left': 130, 'width': 70, 'height': 35} mon = {'top': 200, 'left': 410, 'width': 50, 'height': 30} #git-b01 def process_image(original_image): processed_...
26.282051
80
0.62439
0
0
0
0
0
0
0
0
152
0.148293
83a1f16b819638b10f8073878aae0693547c3238
5,085
py
Python
trove/tests/scenario/groups/instance_create_group.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
1
2019-09-20T08:31:54.000Z
2019-09-20T08:31:54.000Z
trove/tests/scenario/groups/instance_create_group.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
trove/tests/scenario/groups/instance_create_group.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
34.828767
78
0.73117
3,322
0.653294
0
0
4,026
0.79174
0
0
1,476
0.290265
83a21e9300920f882ecbddf58f262c3769b6771a
20,066
py
Python
reco_utils/recommender/deeprec/models/dkn.py
suhoy901/recommenders
8ec9f1950d694a5aeaa3d463ac23cad661a30a11
[ "MIT" ]
28
2021-11-12T08:26:40.000Z
2022-03-27T07:21:24.000Z
reco_utils/recommender/deeprec/models/dkn.py
shobhit-agarwal/recommenders
8ec9f1950d694a5aeaa3d463ac23cad661a30a11
[ "MIT" ]
5
2021-11-10T02:58:32.000Z
2022-03-21T16:13:11.000Z
reco_utils/recommender/deeprec/models/dkn.py
shobhit-agarwal/recommenders
8ec9f1950d694a5aeaa3d463ac23cad661a30a11
[ "MIT" ]
9
2021-11-03T07:14:47.000Z
2022-02-22T13:42:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np import tensorflow as tf from reco_utils.recommender.deeprec.models.base_model import BaseModel __all__ = ["DKN"] class DKN(BaseModel): """DKN model (Deep Knowledge-Aware Network) H. Wang, F. Zh...
41.630705
126
0.546397
19,834
0.988438
0
0
0
0
0
0
3,751
0.186933
83a22a3ba1efc66d7ca002b326c88281fa4ad1f6
2,193
py
Python
LeNet-5/LeNet-5.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
LeNet-5/LeNet-5.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
LeNet-5/LeNet-5.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics, losses # 1.数据集准备 (x, y), (x_val, y_val) = datasets.mnist.load_data() # 加载数据集,返回的是两个元组,分别表示训练集和测试集 x = tf.convert_to_tensor(x, dtype=tf.float32) / 255. # 转换为张量,并缩放到0~1 y = tf.convert_to_tensor(y, dtype=tf.int32) #...
47.673913
106
0.674875
0
0
0
0
0
0
0
0
1,312
0.454766
83a488662edcd23d97eb9c55b24ca7fbca5d6193
7,727
py
Python
gw_full_latest/CloudTTN.py
rendikanyut/LowCostLoRaGw
a4bce0cf123ffeb48a01e779a62d76b1bf1c4486
[ "Linux-OpenIB" ]
654
2016-03-01T08:43:24.000Z
2022-03-22T06:55:27.000Z
gw_full_latest/CloudTTN.py
rendikanyut/LowCostLoRaGw
a4bce0cf123ffeb48a01e779a62d76b1bf1c4486
[ "Linux-OpenIB" ]
315
2016-02-25T10:36:11.000Z
2022-03-31T20:59:21.000Z
gw_full_latest/CloudTTN.py
rendikanyut/LowCostLoRaGw
a4bce0cf123ffeb48a01e779a62d76b1bf1c4486
[ "Linux-OpenIB" ]
388
2016-02-16T14:40:36.000Z
2022-03-15T04:03:20.000Z
#------------------------------------------------------------------------------- # Part of this Python script is taken from the Pycom NanoGateway # https://github.com/pycom/pycom-libraries/tree/master/examples/lorawan-nano-gateway # # Adapted by [email protected] # # This file is part of the low-cost LoRa gatewa...
31.410569
162
0.640611
2,568
0.332341
0
0
0
0
0
0
3,897
0.504335
83a6888316b1c7a494fc6ea76d1fb65b1293789a
2,651
py
Python
pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
try: import tkinter as tk except ImportError: import Tkinter as tk class DialogueEntry(tk.Toplevel): """ DialogueEntry : tkinter.Toplevel Dialogue box that allow the user to input a text in a field. kwargs : title : title of the dialogue box text : text di...
36.819444
180
0.606941
2,573
0.970577
0
0
0
0
0
0
941
0.35496
83a72aa00c8eb33d1a3ee2b6393e98bf6532dbf4
6,467
py
Python
siqbal/hooks.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
null
null
null
siqbal/hooks.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
null
null
null
siqbal/hooks.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "SIqbal" app_title = "SIqbal" app_publisher = "RC" app_description = "Customizations for SIqbal" app_icon = "octicon octicon-file-directory" app_color = "green" app_email = "[email protected]" app_l...
28.117391
101
0.706355
0
0
0
0
0
0
0
0
5,639
0.871965
83a7ad962e9be184926ad2137bbbb0b45b02188c
4,781
py
Python
testing/python/tests/test_dcgm_reader.py
omertuc/DCGM
904e1600e5924ef60ac5256d492d0b7f6a7244bc
[ "Apache-2.0" ]
null
null
null
testing/python/tests/test_dcgm_reader.py
omertuc/DCGM
904e1600e5924ef60ac5256d492d0b7f6a7244bc
[ "Apache-2.0" ]
null
null
null
testing/python/tests/test_dcgm_reader.py
omertuc/DCGM
904e1600e5924ef60ac5256d492d0b7f6a7244bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.947368
94
0.69316
0
0
0
0
3,933
0.822631
0
0
1,031
0.215645
83a81a83e057b3d3c679bc9510ffe5779a6f5647
14,761
py
Python
tests/lava/lib/dl/slayer/neuron/test_alif.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
37
2021-09-30T16:47:15.000Z
2022-03-07T22:29:21.000Z
tests/lava/lib/dl/slayer/neuron/test_alif.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
36
2021-11-04T16:54:55.000Z
2022-03-31T02:26:29.000Z
tests/lava/lib/dl/slayer/neuron/test_alif.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
20
2021-10-29T22:55:58.000Z
2022-03-22T17:27:16.000Z
# Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause import sys import os import unittest import numpy as np import matplotlib.pyplot as plt import torch import torch.nn.functional as F from lava.lib.dl.slayer.neuron import alif verbose = True if (('-v' in sys.argv) or ('--verbose' in sys....
34.569087
78
0.492175
12,960
0.877989
0
0
0
0
0
0
2,519
0.170652
83a83633ab9542d9e22f77076652f1c0ce78f53a
526
py
Python
amount_test.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
null
null
null
amount_test.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
2
2015-11-08T18:50:11.000Z
2015-11-08T18:50:42.000Z
amount_test.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
null
null
null
import decimal import pytest from amount import Amount as A def test_basic(): a = A(("0.30", "$")) assert '$ 0.30' == str(a) a = A({"$": decimal.Decimal(4)}) assert '$ 4', str(a) def test_add(): a = A(("2.34", "$")) b = A(("5.97", "$")) assert "$ 8.31" == str(a+b) c = A(("9.01", "CA...
21.04
46
0.452471
0
0
0
0
0
0
0
0
126
0.239544
83a84321ea0a0bc9570475d0ce3c63e9712bd0ca
4,449
py
Python
DiscoGAN/discogan_train.py
sumersumerdjl/kozistr-Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
1
2021-08-16T01:40:46.000Z
2021-08-16T01:40:46.000Z
DiscoGAN/discogan_train.py
Psyche-mia/Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
null
null
null
DiscoGAN/discogan_train.py
Psyche-mia/Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
1
2021-08-16T01:35:21.000Z
2021-08-16T01:35:21.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division import tensorflow as tf # import numpy as np import time import discogan import sys sys.path.insert(0, '../') import image_utils as iu from datasets import Pix2PixDataSet as DataSets results = { 'sampl...
34.757813
111
0.537199
0
0
0
0
0
0
0
0
917
0.206114
83a940e2ed8e27f8008df09f81164f38241b0cc0
303
bzl
Python
examples/index.bzl
SebastianPodgajny/rules_nodejs
7d1fbd9b6751225f502eccf2a91d1059371d461d
[ "Apache-2.0" ]
null
null
null
examples/index.bzl
SebastianPodgajny/rules_nodejs
7d1fbd9b6751225f502eccf2a91d1059371d461d
[ "Apache-2.0" ]
null
null
null
examples/index.bzl
SebastianPodgajny/rules_nodejs
7d1fbd9b6751225f502eccf2a91d1059371d461d
[ "Apache-2.0" ]
null
null
null
"Used to reference the nested workspaces for examples in /WORKSPACE" ALL_EXAMPLES = [ "angular", "app", "kotlin", "nestjs", "parcel", "protocol_buffers", "user_managed_deps", "vendored_node", "vendored_node_and_yarn", "web_testing", "webapp", "worker", ]
18.9375
68
0.617162
0
0
0
0
0
0
0
0
211
0.69637
83a97810070d0ec137e7706e16cb2e0d4e501275
2,611
py
Python
testproject/testproject/views.py
Najiva/django-tables2-column-shifter
90695d5890c4ef6d7ba58a189a53d712aa8b9e14
[ "BSD-3-Clause" ]
19
2017-01-04T19:17:57.000Z
2021-08-05T20:06:32.000Z
testproject/testproject/views.py
Najiva/django-tables2-column-shifter
90695d5890c4ef6d7ba58a189a53d712aa8b9e14
[ "BSD-3-Clause" ]
16
2017-02-20T20:24:01.000Z
2021-07-23T12:50:35.000Z
testproject/testproject/views.py
Najiva/django-tables2-column-shifter
90695d5890c4ef6d7ba58a189a53d712aa8b9e14
[ "BSD-3-Clause" ]
8
2017-01-26T07:15:54.000Z
2022-03-22T18:03:24.000Z
from django.views.generic import TemplateView from django_tables2.config import RequestConfig from django_tables2_column_shifter.tables import ( ColumnShiftTableBootstrap2, ColumnShiftTableBootstrap3, ColumnShiftTableBootstrap4, ColumnShiftTableBootstrap5, ) from .models import Author, Book from .tabl...
32.234568
86
0.73152
2,215
0.848334
0
0
0
0
0
0
487
0.186519
83a9d512e8c7c2d7396ec8d190a1c692e2814f87
1,812
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/Workset.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Autodesk/Revit/DB/__init___parts/Workset.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Autodesk/Revit/DB/__init___parts/Workset.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class Workset(WorksetPreview,IDisposable): """ Represents a workset in the document. """ @staticmethod def Create(document,name): """ Create(document: Document,name: str) -> Workset Creates a new workset. document: The document in which the new instance is created. name: The wo...
22.37037
215
0.671634
1,806
0.996689
0
0
303
0.167219
0
0
1,145
0.631898
83ab1978e9bfcb9289cdc6a850d6619b639f3ad4
967
py
Python
experiments/12_wiki_training.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
null
null
null
experiments/12_wiki_training.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
null
null
null
experiments/12_wiki_training.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
1
2020-12-02T09:07:06.000Z
2020-12-02T09:07:06.000Z
import numpy as np EXPERIMENT_NAME = 'EXP_12' CORPUS_PATH = '/home/dddhiraj/Documents/stuff/data/wiki_en.txt' TRAINING_WINDOW = 5 CONTEXT_DIMENSION = 64 LEANING_RATE = 1 DROPOUT = 0.05 CONTEXT_DECAY = 1 - TRAINING_WINDOW ** -0.5 CONTRASTIVE_WEIGHT = 1#0.1 NEGATIVE_SAMPLE_SIZE ...
21.021739
82
0.680455
0
0
0
0
0
0
0
0
342
0.353671
83ab5e631ea0bec7a174bfa753c93a724a3979a9
49,562
py
Python
yasi.py
arenadotio/yasi-sexp-indenter
f64cd332b3f41d7c2b3458b4279a13ec26df16b8
[ "MIT" ]
null
null
null
yasi.py
arenadotio/yasi-sexp-indenter
f64cd332b3f41d7c2b3458b4279a13ec26df16b8
[ "MIT" ]
1
2020-07-14T16:07:38.000Z
2020-07-14T16:07:38.000Z
yasi.py
arenadotio/yasi-sexp-indenter
f64cd332b3f41d7c2b3458b4279a13ec26df16b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ yasi Date: 20th November 2013 Author: nkmathew <[email protected]> Dialect aware s-expression indenter """ from __future__ import print_function import argparse import hashlib import os import re import shutil import sys import time import collections import json i...
38.994493
115
0.57877
0
0
0
0
8,118
0.163795
0
0
22,255
0.449034
83aba0fd5dc8afef0605fcfd0ba5992a35684f2e
12,989
py
Python
Speedo/plugins/animoji.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
Speedo/plugins/animoji.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
Speedo/plugins/animoji.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
3
2021-10-12T08:17:01.000Z
2021-12-21T01:17:54.000Z
import asyncio from collections import deque from . import * @speedo.on(Speedo_cmd(pattern="think$", outgoing=True)) @speedo.on(sudo_cmd(pattern="think$", allow_sudo=True)) async def _(event): if event.fwd_from: return event = await eor(event, "think") deq = deque(list("🤔🧐🤔🧐🤔🧐")) for _ ...
26.781443
81
0.528755
0
0
0
0
13,151
0.911997
10,514
0.729126
3,982
0.276144
83abb74e341537b5ab6f003c11360924411e10b7
4,014
py
Python
Chapter09/01-optimize-mlp-layers.py
KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python
ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686
[ "MIT" ]
null
null
null
Chapter09/01-optimize-mlp-layers.py
KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python
ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686
[ "MIT" ]
null
null
null
Chapter09/01-optimize-mlp-layers.py
KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python
ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686
[ "MIT" ]
null
null
null
from deap import base from deap import creator from deap import tools import random import numpy import mlp_layers_test import elitism # boundaries for layer size parameters: # [layer_layer_1_size, hidden_layer_2_size, hidden_layer_3_size, hidden_layer_4_size] BOUNDS_LOW = [ 5, -5, -10, -20] BOUNDS_HIGH = [15, 10...
31.359375
89
0.623069
0
0
0
0
0
0
0
0
1,244
0.309915
83abd40caac456af21954f1d6b702333668a6968
14,410
py
Python
tokenizer/state_table.py
xxronvel/foobar
0e4ca414a532eaa69803888a65ac1a2e0114183e
[ "MIT" ]
1
2016-04-28T02:20:59.000Z
2016-04-28T02:20:59.000Z
tokenizer/state_table.py
xxronvel/foobar
0e4ca414a532eaa69803888a65ac1a2e0114183e
[ "MIT" ]
null
null
null
tokenizer/state_table.py
xxronvel/foobar
0e4ca414a532eaa69803888a65ac1a2e0114183e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2016 Aarón Abraham Velasco Alvarez 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, including without limitation the rig...
83.294798
151
0.373352
0
0
0
0
0
0
0
0
1,503
0.104288
83ade6c082d1004a672714e19137f8f4cc8ec685
748
py
Python
notifications_utils/__init__.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
3
2020-04-29T17:13:43.000Z
2020-12-04T21:08:33.000Z
notifications_utils/__init__.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
21
2020-04-16T12:29:46.000Z
2022-02-28T17:17:15.000Z
notifications_utils/__init__.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
4
2020-02-21T20:20:00.000Z
2021-02-11T19:00:59.000Z
import re SMS_CHAR_COUNT_LIMIT = 612 # 153 * 4 # regexes for use in recipients.validate_email_address. # Valid characters taken from https://en.wikipedia.org/wiki/Email_address#Local-part # Note: Normal apostrophe eg `Firstname-o'[email protected]` is allowed. hostname_part = re.compile(r"^(xn-|[a-z0-9]+)(-[a-z0-9]...
44
92
0.667112
0
0
0
0
0
0
0
0
472
0.629333
83af8ba0d0f4e817ed4ef6eadece62ddc41fd7db
1,230
py
Python
respondd/Cache.py
FreiFunkMuenster/py-respondd
4b59b0fa2418ed021abe2dca5906b8290e4600d0
[ "MIT" ]
null
null
null
respondd/Cache.py
FreiFunkMuenster/py-respondd
4b59b0fa2418ed021abe2dca5906b8290e4600d0
[ "MIT" ]
null
null
null
respondd/Cache.py
FreiFunkMuenster/py-respondd
4b59b0fa2418ed021abe2dca5906b8290e4600d0
[ "MIT" ]
null
null
null
import time class Cache(object): globalCache = {} localCace = {} timeout = 0 now = time.time() @staticmethod def setTimeout(timeout): Cache.timeout = timeout @staticmethod def updateTime(): Cache.now = time.time() @staticmethod def _isValid(timestamp): return True if Cache.now - Cache.timeout <= tim...
22.363636
66
0.652846
1,217
0.989431
0
0
1,110
0.902439
0
0
98
0.079675
83b09d2ad07562da3b8e8e789cc7815800d89928
1,338
py
Python
jsonclasses_cli/package/swift/main_program_content.py
forever9717/jsonclasses-cli
b20d10cdf2d6c970a879e2a64f31555d4d808829
[ "MIT" ]
null
null
null
jsonclasses_cli/package/swift/main_program_content.py
forever9717/jsonclasses-cli
b20d10cdf2d6c970a879e2a64f31555d4d808829
[ "MIT" ]
null
null
null
jsonclasses_cli/package/swift/main_program_content.py
forever9717/jsonclasses-cli
b20d10cdf2d6c970a879e2a64f31555d4d808829
[ "MIT" ]
null
null
null
from jsonclasses.cgraph import CGraph from .import_lines import import_lines from .string_query import string_query from .int_query import int_query from .float_query import float_query from .bool_query import bool_query from .sort_order import sort_order from .data_enum import data_enum from .data_class import data_cl...
34.307692
64
0.724963
0
0
0
0
0
0
0
0
47
0.035127
83b0ae650bd55397213c23d819dd2927624d8665
121
py
Python
common/utils/__init__.py
jl1990/alpha-zero-general
6a1549f9cd1b2ebdffee30f8de1be9cbefecd5f4
[ "MIT" ]
null
null
null
common/utils/__init__.py
jl1990/alpha-zero-general
6a1549f9cd1b2ebdffee30f8de1be9cbefecd5f4
[ "MIT" ]
null
null
null
common/utils/__init__.py
jl1990/alpha-zero-general
6a1549f9cd1b2ebdffee30f8de1be9cbefecd5f4
[ "MIT" ]
null
null
null
"""Useful utils """ from .eval import * from .misc import * # progress bar from .progress.progress.bar import Bar as Bar
17.285714
45
0.719008
0
0
0
0
0
0
0
0
33
0.272727
83b152d0790dab9900fa13fb39789949a2ecb7fe
6,664
py
Python
examples/move_presets.py
crazy-djactor/OnVifControlCam
36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d
[ "MIT" ]
null
null
null
examples/move_presets.py
crazy-djactor/OnVifControlCam
36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d
[ "MIT" ]
null
null
null
examples/move_presets.py
crazy-djactor/OnVifControlCam
36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d
[ "MIT" ]
null
null
null
import zeep import asyncio, sys from onvif import ONVIFCamera import cv2 import numpy as np import urllib from urllib.request import urlopen IP="192.168.2.22" # Camera IP address PORT=80 # Port USER="admin" # Username PASS="C0nc3ll0M4r1n" # Password XMAX = 1 XMIN = -1 YMAX = 1 YMIN = -1 mov...
36.415301
144
0.620048
2,722
0.408463
0
0
0
0
0
0
2,092
0.313926
83b20a373bfc0ad0b76d049c2ba241c013b10033
737
py
Python
utils.py
OttrOne/suivi
9e53a39b0f50054b89cb960eb9055fd0a28a5ebf
[ "MIT" ]
null
null
null
utils.py
OttrOne/suivi
9e53a39b0f50054b89cb960eb9055fd0a28a5ebf
[ "MIT" ]
2
2022-01-11T15:50:04.000Z
2022-01-13T01:53:53.000Z
utils.py
OttrOne/suivi
9e53a39b0f50054b89cb960eb9055fd0a28a5ebf
[ "MIT" ]
null
null
null
from string import ascii_lowercase, digits from random import choice from re import compile def id_generator(length=8, chars=ascii_lowercase + digits): return ''.join(choice(chars) for _ in range(length)) def hrsize(num: int) -> str: for unit in ['', 'KiB', 'MiB', 'GiB', 'TiB']: if num < 1024.0: ...
28.346154
72
0.58616
0
0
0
0
0
0
0
0
112
0.151967
83b36d8e12e62551ee0f6bc0e1772654ff4d0f33
232
py
Python
comment/admin.py
Samurai-XHe/myblog
c9e182b84c3cb06b3207e7359f0a4d352c28d043
[ "MIT" ]
1
2018-09-25T09:11:17.000Z
2018-09-25T09:11:17.000Z
comment/admin.py
Samurai-XHe/myblog
c9e182b84c3cb06b3207e7359f0a4d352c28d043
[ "MIT" ]
null
null
null
comment/admin.py
Samurai-XHe/myblog
c9e182b84c3cb06b3207e7359f0a4d352c28d043
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Comment @admin.register(Comment) class CommentAdmin(admin.ModelAdmin): list_display = ('id', 'content_object', 'text', 'comment_time', 'user', 'root', 'parent', 'reply_to')
29
105
0.728448
143
0.616379
0
0
168
0.724138
0
0
70
0.301724
83b3965c73ce131b836c28e365aa820a33396d8f
2,602
py
Python
DiSPy/core/path.py
munrojm/DiSPy
c1ae9e213d16bfd098b362e7d54d997cd95f8919
[ "MIT" ]
19
2018-10-05T01:49:36.000Z
2021-11-23T13:35:22.000Z
DiSPy/core/path.py
munrojm/DiSPy
c1ae9e213d16bfd098b362e7d54d997cd95f8919
[ "MIT" ]
1
2019-03-27T20:13:08.000Z
2019-03-28T23:22:22.000Z
DiSPy/core/path.py
munrojm/DiSPy
c1ae9e213d16bfd098b362e7d54d997cd95f8919
[ "MIT" ]
6
2019-06-05T21:41:16.000Z
2021-04-07T09:23:42.000Z
import numpy as np from typing import Dict, List from monty.json import MSONable from pymatgen.core.structure import Structure from pymatgen.symmetry.groups import SymmOp from DiSPy.core.dg import DistortionGroup from DiSPy.core.vecutils import closewrapped # -- Path object and its attributes class Path(MSONable):...
30.97619
112
0.593774
2,302
0.884704
0
0
755
0.290161
0
0
165
0.063413
83b4ad592dcb04cd2de490a6b0d70c2d9d26c009
2,815
py
Python
photos/models.py
kimutaimeshack/Instagram_clone
bdb035087f85fe055da29634cf7bc5dcb843897f
[ "MIT" ]
null
null
null
photos/models.py
kimutaimeshack/Instagram_clone
bdb035087f85fe055da29634cf7bc5dcb843897f
[ "MIT" ]
null
null
null
photos/models.py
kimutaimeshack/Instagram_clone
bdb035087f85fe055da29634cf7bc5dcb843897f
[ "MIT" ]
null
null
null
from django.db import models import datetime as dt from django.urls import reverse # Create your models here. class Editor(models.Model): first_name = models.CharField(max_length =30 ,null=True) last_name = models.CharField(max_length =30 ,null=True) email = models.EmailField() phone_number = models.Cha...
29.946809
79
0.671403
2,377
0.844405
0
0
416
0.14778
0
0
398
0.141385
83b730a44041eeddf60233b1f8b68fb907f48e86
2,386
py
Python
tests/unit/test_product.py
jeantardelli/architecture-patterns-with-python
d48c7d6d4a44073b815c7e6770e44cf2e231e35b
[ "MIT" ]
1
2021-04-07T18:04:56.000Z
2021-04-07T18:04:56.000Z
tests/unit/test_product.py
jeantardelli/architecture-patterns-with-python
d48c7d6d4a44073b815c7e6770e44cf2e231e35b
[ "MIT" ]
null
null
null
tests/unit/test_product.py
jeantardelli/architecture-patterns-with-python
d48c7d6d4a44073b815c7e6770e44cf2e231e35b
[ "MIT" ]
null
null
null
from datetime import date, timedelta from allocation.domain import events from allocation.domain.model import Product, OrderLine, Batch today = date.today() tomorrow = today + timedelta(days=1) later = tomorrow + timedelta(days=10) def test_prefers_warehouse_batches_to_shipments(): in_stock_batch = Batch("in-stoc...
39.114754
86
0.720034
0
0
0
0
0
0
0
0
472
0.197821
83b9a7791d97770f25fe0980d7aaeedc83bafde6
6,129
py
Python
tests/unit/states/test_grafana.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2020-03-31T22:51:16.000Z
2020-03-31T22:51:16.000Z
tests/unit/states/test_grafana.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
tests/unit/states/test_grafana.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2021-09-30T07:00:01.000Z
2021-09-30T07:00:01.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Jayesh Kariya <[email protected]> ''' # Import Python libs from __future__ import absolute_import, print_function, unicode_literals # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase from tests.suppo...
44.093525
81
0.498287
5,633
0.919073
0
0
0
0
0
0
1,431
0.23348
83b9dae35ff849de97a8ab5c1b5b328eee4bf2a8
517
py
Python
08.Graph/Kruskal.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
08.Graph/Kruskal.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
08.Graph/Kruskal.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
def pprint(arr): for line in arr: print(line) # 5 7 # 0 1 1 # 0 2 3 # 1 2 3 # 1 3 6 # 2 3 4 # 2 4 2 # 3 4 5 import sys import heapq as hq N, M = map(int, sys.stdin.readline().split(" ")) W = [[float('inf')] * N for _ in range(N)] h = [] for _ in range(M): i, j, w = map(int, sys.stdin.readline().split(...
16.15625
55
0.537718
0
0
0
0
0
0
0
0
65
0.125725
83babd001889716c3b9b2382b50058698f6c9529
4,701
py
Python
resources.py
kordimsan/FreeWorker-Api
f4566d2d500328725c88d5fc5df7a4763cb4c185
[ "MIT" ]
null
null
null
resources.py
kordimsan/FreeWorker-Api
f4566d2d500328725c88d5fc5df7a4763cb4c185
[ "MIT" ]
null
null
null
resources.py
kordimsan/FreeWorker-Api
f4566d2d500328725c88d5fc5df7a4763cb4c185
[ "MIT" ]
null
null
null
#from flask_restful import Resource, reqparse from flask_restplus import Resource, reqparse,fields from models import UserModel, RevokedTokenModel from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt) from run import api pars...
34.313869
147
0.605829
3,914
0.832589
0
0
3,623
0.770687
0
0
954
0.202936
83bb637db13a5d4678648b8d28c8559126ac4919
3,176
py
Python
archivist/parser.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
2
2021-05-04T15:12:37.000Z
2021-09-08T10:04:41.000Z
archivist/parser.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
35
2021-05-04T12:39:26.000Z
2022-03-28T09:20:19.000Z
archivist/parser.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
6
2021-04-28T14:49:48.000Z
2022-01-07T15:29:05.000Z
"""common parser argument """ # pylint: disable=missing-docstring # pylint: disable=too-few-public-methods import argparse from enum import Enum import logging from sys import exit as sys_exit from . import archivist from .logger import set_logger from .proof_mechanism import ProofMechanism LOGGER = logging.getL...
25.821138
90
0.630668
857
0.269836
0
0
0
0
0
0
1,024
0.322418
83bc85a7d09d10f1f239ce0341b95393b82459b8
6,635
py
Python
skytap/models/UserData.py
mapledyne/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2019-04-17T13:07:30.000Z
2021-09-09T22:01:14.000Z
skytap/models/UserData.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
10
2016-11-02T20:48:38.000Z
2021-09-15T15:29:34.000Z
skytap/models/UserData.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2016-03-03T07:25:13.000Z
2016-08-30T15:33:03.000Z
"""Support for the UserData resource in Skytap. Specifically, this is for custom ('user data') that's applied to an environment or VM. This data can be text or, in the context of using it with this Skytap script, it can also be JSON or YAML and will then be re-parsed. This allows users to put data into a VM user data...
29.753363
79
0.505803
6,009
0.905652
0
0
0
0
0
0
2,571
0.387491
83bdd2c382d1213ade5ce2c23b12fd693e9a4c32
700
py
Python
example.py
six-two/py_derive_cmd
ae821f16a057a809166b287ab9f203a8cf4b34b3
[ "MIT" ]
null
null
null
example.py
six-two/py_derive_cmd
ae821f16a057a809166b287ab9f203a8cf4b34b3
[ "MIT" ]
null
null
null
example.py
six-two/py_derive_cmd
ae821f16a057a809166b287ab9f203a8cf4b34b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=unused-wildcard-import from py_derive_cmd import * import cmd class MyCmd(cmd.Cmd): pass s = Settings(MyCmd, print_warnings=False) @make_command(s, 'Test for the decorator', aliases=['d']) def test_decorator(shell: MyCmd, req_arg: str, opt_arg: str = None): print('Dec...
25
96
0.708571
30
0.042857
0
0
293
0.418571
0
0
191
0.272857
83be1a3a3ee334b7ce8506d005b0c751dcb0f57c
2,474
py
Python
tf_quant_finance/datetime/constants.py
slowy07/tf-quant-finance
0976f720fb58a2d7bfd863640c12a2425cd2f94f
[ "Apache-2.0" ]
3,138
2019-07-24T21:43:17.000Z
2022-03-30T12:11:09.000Z
tf_quant_finance/datetime/constants.py
Aarif1430/tf-quant-finance
9372eb1ddf2b48cb1a3d4283bc67a10647ddc7a6
[ "Apache-2.0" ]
63
2019-09-07T19:16:03.000Z
2022-03-29T19:29:40.000Z
tf_quant_finance/datetime/constants.py
Aarif1430/tf-quant-finance
9372eb1ddf2b48cb1a3d4283bc67a10647ddc7a6
[ "Apache-2.0" ]
423
2019-07-26T21:28:05.000Z
2022-03-26T13:07:44.000Z
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
26.891304
80
0.696847
1,766
0.713824
0
0
0
0
0
0
1,705
0.689167
83bf94a78ac2eb29dfd1c2b50e991146823fcf6e
2,345
py
Python
generate_trajectories.py
keuntaeklee/pytorch-PPUU
0ba8c953df9cdb1e9937e301ed3384ac6b66ea73
[ "MIT" ]
159
2019-01-23T07:17:36.000Z
2022-03-29T14:33:31.000Z
generate_trajectories.py
keuntaeklee/pytorch-PPUU
0ba8c953df9cdb1e9937e301ed3384ac6b66ea73
[ "MIT" ]
44
2019-04-29T15:11:44.000Z
2022-02-21T18:28:46.000Z
generate_trajectories.py
keuntaeklee/pytorch-PPUU
0ba8c953df9cdb1e9937e301ed3384ac6b66ea73
[ "MIT" ]
61
2019-01-23T12:31:54.000Z
2022-03-07T09:25:20.000Z
import argparse, pdb import gym import numpy as np import os import pickle import random import torch import scipy.misc from gym.envs.registration import register parser = argparse.ArgumentParser() parser.add_argument('-display', type=int, default=0) parser.add_argument('-seed', type=int, default=1) parser.add_argumen...
24.946809
103
0.704478
0
0
0
0
0
0
0
0
571
0.243497
83c0b7884ac12f94ceaeb582cc3c5f5cebb5a227
999
py
Python
main.py
mvazifeh/gridart
78c01d6e660ca9c61f1220e102975ca632a2af6b
[ "MIT" ]
null
null
null
main.py
mvazifeh/gridart
78c01d6e660ca9c61f1220e102975ca632a2af6b
[ "MIT" ]
null
null
null
main.py
mvazifeh/gridart
78c01d6e660ca9c61f1220e102975ca632a2af6b
[ "MIT" ]
null
null
null
import matplotlib.pylab as plt import numpy as np import random from scipy.ndimage import gaussian_filter mu =9 N = 50 k = 10 eta =10 sigma = 2 p0 = 0.5 inverse_random = False L = range(N*N) Q = np.zeros((N*mu,N*mu)) for o in range(mu*mu): print(o) F = 1000*k a = np.ones((N,N)) for k_ in range(1000): ...
24.975
79
0.573574
0
0
0
0
0
0
0
0
14
0.014014
83c0d18d58ec56ff811ed70776d16216d48d95ed
9,841
py
Python
fixture/contact.py
ruslankl9/python_training
7bcaf2606a80935a4a0c458af4e6a078f241fb38
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
ruslankl9/python_training
7bcaf2606a80935a4a0c458af4e6a078f241fb38
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
ruslankl9/python_training
7bcaf2606a80935a4a0c458af4e6a078f241fb38
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import re class ContactHelper(object): def __init__(self, app): self.app = app def change_field_value(self, field_name, text): wd = self.app.wd if text is not None: wd.find_element_by_name(field_name).click() wd.find_element_b...
43.737778
117
0.648206
9,836
0.995345
0
0
0
0
0
0
1,463
0.148047
83c1d004633b6b337c6d2bc2c9a3fefc61d57d42
789
py
Python
setup.py
nakagami/pure-pyawabi
5ffafcaa381727af7f84013cf036a4e8f7dd51da
[ "MIT" ]
1
2021-12-13T11:29:04.000Z
2021-12-13T11:29:04.000Z
setup.py
nakagami/pure-pyawabi
5ffafcaa381727af7f84013cf036a4e8f7dd51da
[ "MIT" ]
null
null
null
setup.py
nakagami/pure-pyawabi
5ffafcaa381727af7f84013cf036a4e8f7dd51da
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="pure-pyawabi", version="0.2.4", description='A morphological analyzer awabi clone', long_description=open('README.md', encoding='utf-8').read(), long_description_content_type="text/markdown", url='https://github.com/nakagami/pure-pyawabi/', classifi...
30.346154
64
0.628644
0
0
0
0
0
0
0
0
416
0.52725
83c2085a8eb1b76f57b29dca121b213d911376c1
3,137
py
Python
vacancies_and_studentships/models.py
okyame/Arkestra
4aa22816b33d8f2d7a6bc8f7a498957134b557dd
[ "BSD-2-Clause" ]
1
2020-01-15T15:17:06.000Z
2020-01-15T15:17:06.000Z
vacancies_and_studentships/models.py
okyame/Arkestra
4aa22816b33d8f2d7a6bc8f7a498957134b557dd
[ "BSD-2-Clause" ]
null
null
null
vacancies_and_studentships/models.py
okyame/Arkestra
4aa22816b33d8f2d7a6bc8f7a498957134b557dd
[ "BSD-2-Clause" ]
null
null
null
from django.db import models # from cms.models.fields import PlaceholderField from cms.models import CMSPlugin # from filer.fields.image import FilerImageField from arkestra_utilities.output_libraries.dates import nice_date # from arkestra_utilities.models import ArkestraGenericModel from arkestra_utilities.generic_...
36.057471
157
0.723621
2,416
0.770163
0
0
725
0.231113
0
0
1,045
0.333121
83c27bbb12a53e327e73c5820df10eeefe5bccca
239
py
Python
examples/django/015_deploy_app/project/example/views.py
HalfBottleOfMind/website
9bc83f11127ebb4f65124f794a7138373c95ab81
[ "Apache-2.0" ]
12
2020-09-08T03:33:43.000Z
2021-09-03T12:31:38.000Z
examples/django/015_deploy_app/project/example/views.py
HalfBottleOfMind/website
9bc83f11127ebb4f65124f794a7138373c95ab81
[ "Apache-2.0" ]
39
2021-01-29T16:11:45.000Z
2021-12-08T08:34:27.000Z
examples/django/015_deploy_app/project/example/views.py
HalfBottleOfMind/website
9bc83f11127ebb4f65124f794a7138373c95ab81
[ "Apache-2.0" ]
23
2020-09-07T14:42:39.000Z
2021-12-07T20:41:29.000Z
from rest_framework import viewsets from .models import Label from .serizalizers import LabelSerializer class LabelViewSet(viewsets.ModelViewSet): queryset = Label.objects.all().order_by('id') serializer_class = LabelSerializer
23.9
49
0.799163
131
0.548117
0
0
0
0
0
0
4
0.016736
83c2e6b596e3c848fe9f97b575c98a5ef638509f
2,660
py
Python
src/olympia/github/tests/test_views.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/github/tests/test_views.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/github/tests/test_views.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
import json from django.utils.http import urlencode import mock import requests from olympia.amo.tests import AMOPaths, TestCase from olympia.amo.urlresolvers import reverse from olympia.files.models import FileUpload from olympia.github.tests.test_github import ( GithubBaseTestCase, example_pull_request) clas...
31.666667
77
0.642105
2,343
0.880827
0
0
0
0
0
0
404
0.15188
83c369bbe9d3c23a66d5fe993029ea43352f5559
676
py
Python
exopy_qm/tasks/tasks/GetIOValuesTask.py
rassouly/exopy_qm
82eb7e4b4fc7364df3462bb7faa7a0880d699afc
[ "BSD-3-Clause" ]
null
null
null
exopy_qm/tasks/tasks/GetIOValuesTask.py
rassouly/exopy_qm
82eb7e4b4fc7364df3462bb7faa7a0880d699afc
[ "BSD-3-Clause" ]
null
null
null
exopy_qm/tasks/tasks/GetIOValuesTask.py
rassouly/exopy_qm
82eb7e4b4fc7364df3462bb7faa7a0880d699afc
[ "BSD-3-Clause" ]
null
null
null
from exopy.tasks.api import (InstrumentTask) from atom.api import Unicode, Bool, set_default import sys from exopy_qm.utils.dynamic_importer import * class GetIOValuesTask(InstrumentTask): """ Gets the IO values """ get_io_1 = Bool(True).tag(pref=True) get_io_2 = Bool(True).tag(pref=True) datab...
26
58
0.653846
522
0.772189
0
0
0
0
0
0
50
0.073964
83c3b7af49b5b0a425d6a463dbe982452346eedf
4,381
py
Python
src/ns_web_api/web/ptx/thsr.py
steny138/PyNintendoEPrice
def9c95690cf3cf72615ae4216fee8fca2934de1
[ "Apache-2.0" ]
null
null
null
src/ns_web_api/web/ptx/thsr.py
steny138/PyNintendoEPrice
def9c95690cf3cf72615ae4216fee8fca2934de1
[ "Apache-2.0" ]
3
2020-06-22T15:38:18.000Z
2021-11-24T02:01:51.000Z
src/ns_web_api/web/ptx/thsr.py
steny138/PyNintendoEPrice
def9c95690cf3cf72615ae4216fee8fca2934de1
[ "Apache-2.0" ]
1
2018-08-04T08:15:05.000Z
2018-08-04T08:15:05.000Z
import requests import logging from .auth import Auth domain = "https://ptx.transportdata.tw/MOTC/v2/Rail/THSR/" default_limit_count = 20 logger = logging.getLogger('flask.app') auth = Auth() def get_station(): """GET /v2/Rail/THSR/Station 取得車站基本資料 Returns: [dict] -- 車站基本資料 """ action = "...
20.471963
105
0.582059
0
0
0
0
0
0
0
0
1,762
0.375933