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
0dc75b65a9507820b7a1135f0816c7e8f573fa2d
654
py
Python
mitmproxy/contentviews/auto.py
KarlParkinson/mitmproxy
fd5caf40c75ca73c4b767170497abf6a5bf016a0
[ "MIT" ]
24,939
2015-01-01T17:13:21.000Z
2022-03-31T17:50:04.000Z
mitmproxy/contentviews/auto.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3,655
2015-01-02T12:31:43.000Z
2022-03-31T20:24:57.000Z
mitmproxy/contentviews/auto.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3,712
2015-01-06T06:47:06.000Z
2022-03-31T10:33:27.000Z
from mitmproxy import contentviews from . import base class ViewAuto(base.View): name = "Auto" def __call__(self, data, **metadata): # TODO: The auto view has little justification now that views implement render_priority, # but we keep it around for now to not touch more parts. priori...
31.142857
96
0.616208
597
0.912844
0
0
0
0
0
0
178
0.272171
0dc892c0ef85acbf71fdb47d9850dae8da0e6d7a
10,355
py
Python
code/services/synergy_services.py
EdsonECM17/DS_Proyecto_02_Synergy_Logistics
a6c347f99e69b926d337db82653dd16850668f4b
[ "MIT" ]
null
null
null
code/services/synergy_services.py
EdsonECM17/DS_Proyecto_02_Synergy_Logistics
a6c347f99e69b926d337db82653dd16850668f4b
[ "MIT" ]
null
null
null
code/services/synergy_services.py
EdsonECM17/DS_Proyecto_02_Synergy_Logistics
a6c347f99e69b926d337db82653dd16850668f4b
[ "MIT" ]
null
null
null
from typing import List from processing.sl_filters import SynergyLogisticsFilters class Service(SynergyLogisticsFilters): """ Clase que contine servicios para el analisis de la tabla de Synergy Logistics. """ def get_routes_list(self, direction:str or None = None) -> List: """Genera una lista...
45.416667
156
0.630324
10,313
0.991825
0
0
0
0
0
0
5,861
0.563666
0dc9078dabe0f46493d9055058389898b1c4669b
467
py
Python
src/bspline-insert.py
kaykayehnn/geometric_design
206977275abb2bc195665175b504dca13e4792bd
[ "MIT" ]
2
2022-03-17T13:35:13.000Z
2022-03-27T07:45:12.000Z
src/bspline-insert.py
kaykayehnn/geometric_design
206977275abb2bc195665175b504dca13e4792bd
[ "MIT" ]
null
null
null
src/bspline-insert.py
kaykayehnn/geometric_design
206977275abb2bc195665175b504dca13e4792bd
[ "MIT" ]
null
null
null
from sympy import init_printing, Rational from classes.BSpline import BSpline init_printing() # INPUT DATA HERE knots = [ 0, 0, 0, Rational(2, 5), Rational(1, 2), Rational(3, 5), 1, 1, 1, ] # fmt: off control_points = [ [2,2], [0,2], [0,0], [-2,0], [0,-2], [2,-2], ] # f...
12.972222
48
0.5803
0
0
0
0
0
0
0
0
35
0.074946
0dca40621184466cd9ce1c9762d5d83692b16fb4
2,765
py
Python
app/recipe/tests/test_tag_apis.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_apis.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_apis.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from recipe.models import Tag from recipe.serializers import TagSerializer from core.tests.utils import sample_tag, sample_user ...
35.448718
78
0.679928
2,351
0.850271
0
0
0
0
0
0
353
0.127667
0dcacc77536f475e69d67672d4386a6d8109dc9e
1,029
py
Python
tests/test_toolkit.py
eng-tools/sfsidb
5260d64e5ab78db7bab209ac4b34617ebafe9762
[ "MIT" ]
1
2020-07-03T09:33:49.000Z
2020-07-03T09:33:49.000Z
tests/test_toolkit.py
eng-tools/sfsidb
5260d64e5ab78db7bab209ac4b34617ebafe9762
[ "MIT" ]
1
2020-07-03T09:40:16.000Z
2020-07-06T01:23:40.000Z
tests/test_toolkit.py
eng-tools/sfsidb
5260d64e5ab78db7bab209ac4b34617ebafe9762
[ "MIT" ]
null
null
null
from sfsidb import load as sload from sfsidb import toolkit from sfsidb import checking_tools as ct from sfsidb import sensor_file_reader as sfr from tests.conftest import TEST_DATA_DIR def test_get_depth_from_sensor_code(): sensor_ffp = TEST_DATA_DIR + "test-sensor-file.json" si = sfr.read_json_sensor_file(...
30.264706
68
0.730807
0
0
0
0
0
0
0
0
123
0.119534
0dcbb2c8e1a6f536fd7f94e8770c33962e2f268b
1,699
py
Python
nhoods/setup.py
MSLADevServGIS/NhoodProfiles
aa35d2a4d4be177dc8df79a34915eefb31a20634
[ "MIT" ]
null
null
null
nhoods/setup.py
MSLADevServGIS/NhoodProfiles
aa35d2a4d4be177dc8df79a34915eefb31a20634
[ "MIT" ]
null
null
null
nhoods/setup.py
MSLADevServGIS/NhoodProfiles
aa35d2a4d4be177dc8df79a34915eefb31a20634
[ "MIT" ]
null
null
null
# Setup procedures -- WIP import os import re import arcpy arcpy.env.workspace = "in_memory" # TODO: out_gdb = "//cityfiles/DEVServices/WallyG/projects/NhoodProfiles/nhoods/data/NhoodAmenities.gdb/MtStatePlane" # DATA PROCESSING # Nhood_buffers: arcpy.Buffer_analysis("Nhoods", "nhood_buffers", ...
32.673077
246
0.723955
0
0
0
0
0
0
0
0
918
0.540318
0dcc982e8e10f4b504acced8db3b8e7638f722fe
2,085
py
Python
Gathered CTF writeups/ptr-yudai-writeups/2019/Facebook_CTF_2019/babylist/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/ptr-yudai-writeups/2019/Facebook_CTF_2019/babylist/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/ptr-yudai-writeups/2019/Facebook_CTF_2019/babylist/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
from ptrlib import * import re import time def create(name): sock.recvuntil("> ") sock.sendline("1") sock.sendline(name) def add(index, value): sock.recvuntil("> ") sock.sendline("2") sock.sendline(str(index)) sock.sendline(str(value)) def view(index, pos): sock.recvuntil("> ") so...
21.27551
55
0.607674
0
0
0
0
0
0
0
0
406
0.194724
0dce3b2e494bf63f350d54551978be23a2419c37
43,142
py
Python
container_service_extension/lib/pksclient/api/profile_api.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
81
2017-07-05T19:42:41.000Z
2022-03-09T22:04:05.000Z
container_service_extension/lib/pksclient/api/profile_api.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
670
2017-07-05T16:48:02.000Z
2022-03-31T13:40:53.000Z
container_service_extension/lib/pksclient/api/profile_api.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
64
2017-07-05T16:32:55.000Z
2022-03-23T09:36:03.000Z
# coding: utf-8 """ PKS PKS API # noqa: E501 OpenAPI spec version: 1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # python 2 and python 3 compatibility library import six from container_service_extension.lib.pksclient.api_cl...
37.744532
129
0.606138
42,797
0.992003
0
0
0
0
0
0
20,996
0.486672
0dcf49a2d7b38e623e09fc3e02b34c991f5df237
2,334
py
Python
tests/test_utils.py
tesera/shclassify
150a8ccfe0bd02a1510fa3bf9436b717ec427aff
[ "MIT" ]
null
null
null
tests/test_utils.py
tesera/shclassify
150a8ccfe0bd02a1510fa3bf9436b717ec427aff
[ "MIT" ]
null
null
null
tests/test_utils.py
tesera/shclassify
150a8ccfe0bd02a1510fa3bf9436b717ec427aff
[ "MIT" ]
null
null
null
import os import pytest import pandas as pd import numpy as np from shclassify.utils import (inverse_logit, choose_from_multinomial_probs, choose_from_binary_probs) def test_inverse_logit(): assert inverse_logit(0) == 0.5 def test_choose_from_multinomia...
28.120482
79
0.657241
0
0
0
0
0
0
0
0
262
0.112254
0dd00d6b1371d82e5dba287fb1ab84b4b728cdc5
2,111
py
Python
dbdaora/hash/query.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
21
2019-10-14T14:33:33.000Z
2022-02-11T04:43:07.000Z
dbdaora/hash/query.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
null
null
null
dbdaora/hash/query.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
1
2019-09-29T23:51:44.000Z
2019-09-29T23:51:44.000Z
import dataclasses from typing import Any, ClassVar, List, Optional, Sequence, Tuple, Type, Union from dbdaora.keys import FallbackKey from dbdaora.query import BaseQuery, Query, QueryMany from .repositories import HashData, HashEntity, HashRepository @dataclasses.dataclass(init=False) class HashQuery(Query[HashEnt...
30.157143
78
0.639981
1,544
0.731407
0
0
1,614
0.764567
0
0
36
0.017054
0dd0d2e19f18724ff736d3e77f451b5b939ad9d4
20,104
py
Python
pattoo_agents/snmp/snmp.py
palisadoes/pattoo-agents
d73453ceac1747573dfbcad4da724325e86b208d
[ "Apache-2.0" ]
null
null
null
pattoo_agents/snmp/snmp.py
palisadoes/pattoo-agents
d73453ceac1747573dfbcad4da724325e86b208d
[ "Apache-2.0" ]
null
null
null
pattoo_agents/snmp/snmp.py
palisadoes/pattoo-agents
d73453ceac1747573dfbcad4da724325e86b208d
[ "Apache-2.0" ]
null
null
null
"""Module used polling SNMP enabled targets.""" import sys # PIP3 imports import easysnmp from easysnmp import exceptions # Import Pattoo libraries from pattoo_shared import log from pattoo_shared.variables import DataPoint from pattoo_shared.constants import ( DATA_INT, DATA_COUNT64, DATA_COUNT, DATA_STRING, DA...
31.314642
78
0.569389
15,086
0.750398
0
0
0
0
0
0
7,377
0.366942
0dd15e9fbd8b5095490c20bbe408b720a1df4284
76
py
Python
nicos_mlz/resi/setups/resi.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/resi/setups/resi.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/resi/setups/resi.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Resi instrument setup' group = 'basic' includes = ['base']
12.666667
37
0.684211
0
0
0
0
0
0
0
0
36
0.473684
0dd1930770aea04bae379563241478aca2d4c7fe
643
py
Python
flexget/plugins/metainfo/torrent_size.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/torrent_size.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/torrent_size.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import logging from flexget.plugin import priority, register_plugin log = logging.getLogger('torrent_size') class TorrentSize(object): """ Provides file size information when dealing with torrents """ @priority(200) def on_task_m...
27.956522
68
0.656299
403
0.62675
0
0
293
0.455677
0
0
156
0.242613
0dd2555afdd3a6cef51e80f367899168ecaad20e
724
py
Python
day23.py
ednl/aoc2015
0cce9ca34c4218f063b1c6eed92477b47558cf5b
[ "MIT" ]
null
null
null
day23.py
ednl/aoc2015
0cce9ca34c4218f063b1c6eed92477b47558cf5b
[ "MIT" ]
null
null
null
day23.py
ednl/aoc2015
0cce9ca34c4218f063b1c6eed92477b47558cf5b
[ "MIT" ]
null
null
null
import re cmd = re.compile(r'^(\w+) (\w)?(?:, )?((?:\+|-)\d+)?$') with open('input23.txt') as f: # Subtract 1 from jump (offset) to enable ip++ for every instruction mem = [(i, r, j if j is None else int(j) - 1) for s in f for i, r, j in [cmd.match(s.strip()).groups()]] def run(a: int) -> int: reg = {'a':...
28.96
108
0.426796
0
0
0
0
0
0
0
0
157
0.216851
0dd32e9ca2c7ce0add00ea94a0758f176b038de9
27,038
py
Python
src/summarization/metric/rouge_metric.py
youngerous/kobart-voice-summarization
bf48edea602c0661d638f0ed6f4a35c2ced4009f
[ "Apache-2.0" ]
8
2021-05-16T05:40:29.000Z
2022-03-14T08:32:54.000Z
src/summarization/metric/rouge_metric.py
youngerous/kobart-voice-summarization
bf48edea602c0661d638f0ed6f4a35c2ced4009f
[ "Apache-2.0" ]
null
null
null
src/summarization/metric/rouge_metric.py
youngerous/kobart-voice-summarization
bf48edea602c0661d638f0ed6f4a35c2ced4009f
[ "Apache-2.0" ]
3
2021-08-09T08:06:24.000Z
2021-11-29T05:04:56.000Z
""" Ref: https://dacon.io/competitions/official/235673/talkboard/401911?page=1&dtype=recent """ import os import re import platform import itertools import collections import pkg_resources # pip install py-rouge from io import open if platform.system() == "Windows": try: from eunjeon import Mecab exc...
38.625714
97
0.492529
26,614
0.983954
0
0
8,210
0.303534
0
0
1,510
0.055827
0dd358ad72eca9a8df86326685bf5bf8a52c322f
717
py
Python
algorithm_web/admin/contest.py
KMU-algolab/algorithm
2b734978da78b936244580ed1febe4f9f6cf1aea
[ "MIT" ]
null
null
null
algorithm_web/admin/contest.py
KMU-algolab/algorithm
2b734978da78b936244580ed1febe4f9f6cf1aea
[ "MIT" ]
10
2019-03-15T05:12:23.000Z
2020-05-06T13:05:49.000Z
algorithm_web/admin/contest.py
KMU-algolab/algorithm
2b734978da78b936244580ed1febe4f9f6cf1aea
[ "MIT" ]
null
null
null
from django.contrib import admin from .. import models @admin.register(models.Contest) class ContestAdmin(admin.ModelAdmin): """ 대회관리 """ list_display = ['contest_name', 'start_time', 'end_time', 'message', 'host_email', 'after_open'] class Meta: model = models.Contest @admin.register(...
19.378378
100
0.658298
575
0.769746
0
0
682
0.912985
0
0
203
0.271754
0dd372748b3a10e7f2c3a966dab7085e18c12458
3,566
py
Python
kubernetes_env/cpu_script.py
Kn99HN/tracing_env
192d41d945aa1a642250ee1415a7a9babe7d2ba5
[ "Apache-2.0" ]
null
null
null
kubernetes_env/cpu_script.py
Kn99HN/tracing_env
192d41d945aa1a642250ee1415a7a9babe7d2ba5
[ "Apache-2.0" ]
null
null
null
kubernetes_env/cpu_script.py
Kn99HN/tracing_env
192d41d945aa1a642250ee1415a7a9babe7d2ba5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import seaborn as sns import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt import pathlib import pathlib import kube_env import kube_util as util def graph(title, csv_path, output): old_to_new_names = {} df = pd.read_csv(csv_path) for col in df.colum...
42.963855
124
0.530006
0
0
0
0
0
0
0
0
706
0.197981
0dd4787568192c17a9f65ae09cd6486c8711bd89
4,920
py
Python
predix/admin/cf/spaces.py
Saifinbox/predix
d4a69da0adbc503fcf5d569e91c8ebb1aeac0605
[ "BSD-3-Clause" ]
null
null
null
predix/admin/cf/spaces.py
Saifinbox/predix
d4a69da0adbc503fcf5d569e91c8ebb1aeac0605
[ "BSD-3-Clause" ]
null
null
null
predix/admin/cf/spaces.py
Saifinbox/predix
d4a69da0adbc503fcf5d569e91c8ebb1aeac0605
[ "BSD-3-Clause" ]
null
null
null
import logging import predix.admin.cf.api import predix.admin.cf.orgs import predix.admin.cf.apps import predix.admin.cf.services class Space(object): """ Operations and data for Cloud Foundry Spaces. """ def __init__(self, *args, **kwargs): super(Space, self).__init__(*args, **kwargs) ...
28.114286
76
0.57378
4,785
0.972561
0
0
0
0
0
0
2,045
0.41565
0dd5ea13d1486dc2358d111b35e9609c1546878c
953
py
Python
services/traction/api/endpoints/routes/v1/tenant/admin/issuer.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/api/endpoints/routes/v1/tenant/admin/issuer.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/api/endpoints/routes/v1/tenant/admin/issuer.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
import logging from fastapi import APIRouter from starlette import status from api.endpoints.dependencies.tenant_security import get_from_context from api.endpoints.models.v1.tenant import TenantGetResponse from api.services.v1 import tenant_service router = APIRouter() logger = logging.getLogger(__name__) @rou...
26.472222
84
0.757608
0
0
0
0
636
0.667366
535
0.561385
261
0.273872
0dd723ba9c179cbdcdb30d82337ea92feb517a2e
1,573
py
Python
problems/sorting/quick_sort.py
colin-valentini/python-utils
7bbbf6603c050291ee56df266257a351919f5e04
[ "MIT" ]
null
null
null
problems/sorting/quick_sort.py
colin-valentini/python-utils
7bbbf6603c050291ee56df266257a351919f5e04
[ "MIT" ]
1
2021-02-27T23:35:17.000Z
2021-02-27T23:38:49.000Z
problems/sorting/quick_sort.py
colin-valentini/python
7bbbf6603c050291ee56df266257a351919f5e04
[ "MIT" ]
null
null
null
def quick_sort(array): ''' Prototypical quick sort algorithm using Python Time and Space Complexity: * Best: O(n * log(n)) time | O(log(n)) space * Avg: O(n * log(n)) time | O(log(n)) space * Worst: O(n^2) time | O(log(n)) space ''' return _quick_sort(array, 0, len(array)-1) def _quick_sort(arr...
24.578125
78
0.607756
0
0
0
0
0
0
0
0
486
0.308964
0dd777da72c858ecb1ea267bb078c8de582008a6
1,618
py
Python
learning_files/loops.py
MineJockey/python-basics
bd0370413362c69e55fc81366d8c995875f9308a
[ "MIT" ]
null
null
null
learning_files/loops.py
MineJockey/python-basics
bd0370413362c69e55fc81366d8c995875f9308a
[ "MIT" ]
null
null
null
learning_files/loops.py
MineJockey/python-basics
bd0370413362c69e55fc81366d8c995875f9308a
[ "MIT" ]
null
null
null
def loops(): # String Array names = ["Apple", "Orange", "Pear"] # \n is a newline in a string print('\n---------------') print(' For Each Loop') print('---------------\n') # For Each Loop for i in names: print(i) print('\n---------------') print(' For Loop') prin...
25.68254
66
0.524722
0
0
0
0
0
0
0
0
893
0.551916
0dd779133e9d6620bb5632b19fd63b4c804181f6
52,299
py
Python
openplaning/openplaning.py
elcf/python-openplaning
58c5db7b2c42e951138430db883759b6143f4adc
[ "MIT" ]
1
2021-12-17T00:30:40.000Z
2021-12-17T00:30:40.000Z
openplaning/openplaning.py
AltamiroAJ/python-openplaning
5dbb7ec83257173673651c098d8406c38f5c3bb8
[ "MIT" ]
1
2021-09-20T15:12:15.000Z
2021-09-21T18:02:46.000Z
openplaning/openplaning.py
AltamiroAJ/python-openplaning
5dbb7ec83257173673651c098d8406c38f5c3bb8
[ "MIT" ]
1
2021-12-17T00:30:42.000Z
2021-12-17T00:30:42.000Z
import numpy as np from scipy import interpolate, signal from scipy.special import gamma import ndmath import warnings import pkg_resources class PlaningBoat(): """Prismatic planing craft Attributes: speed (float): Speed (m/s). It is an input to :class:`PlaningBoat`. weight (float): Weigh...
52.561809
312
0.569533
52,157
0.997285
0
0
0
0
0
0
25,361
0.484923
0dd86d6751b718e9a801f6c2b5674a1aa993cf90
959
py
Python
curve2map.py
jmilou/image_utilities
92399acf045b4f839afb105b0aa513a27fb31094
[ "MIT" ]
null
null
null
curve2map.py
jmilou/image_utilities
92399acf045b4f839afb105b0aa513a27fb31094
[ "MIT" ]
null
null
null
curve2map.py
jmilou/image_utilities
92399acf045b4f839afb105b0aa513a27fb31094
[ "MIT" ]
1
2018-01-08T19:24:32.000Z
2018-01-08T19:24:32.000Z
# -*- coding: utf-8 -*- """ Created on Tue Oct 6 09:54:17 2015 @author: jmilli """ import numpy as np from scipy.interpolate import interp1d def create2dMap(values,inputRadii=None,maxRadius=None): """ This function takes a 1D radial distribution in input and builds a 2map """ nbValues=len(values) ...
29.96875
76
0.61731
0
0
0
0
0
0
0
0
251
0.261731
0dd886d9f601d6eaa6bdabd1f28a900d852bdcec
543
py
Python
lv1/hash_marathon.py
mrbartrns/programmers-algorithm
7ecbb14c25f0cb69bec766fa4bc6b37b8cfadc47
[ "MIT" ]
null
null
null
lv1/hash_marathon.py
mrbartrns/programmers-algorithm
7ecbb14c25f0cb69bec766fa4bc6b37b8cfadc47
[ "MIT" ]
null
null
null
lv1/hash_marathon.py
mrbartrns/programmers-algorithm
7ecbb14c25f0cb69bec766fa4bc6b37b8cfadc47
[ "MIT" ]
null
null
null
def solution(participant, completion): answer = '' # sort하면 시간절약이 가능 participant.sort() # [a, a, b] completion.sort() # [a, b] print(participant) print(completion) for i in range(len(completion)): if participant[i] != completion[i]: answer = participant[i] bre...
30.166667
56
0.585635
0
0
0
0
0
0
0
0
127
0.226381
0dd8a408a2e9a9ec0eac6d95ae185d9b08ee30c4
7,882
py
Python
chemicals/data_reader.py
daar/chemicals
df3be046055055b99ae762e7a4b852a63134fc82
[ "MIT" ]
null
null
null
chemicals/data_reader.py
daar/chemicals
df3be046055055b99ae762e7a4b852a63134fc82
[ "MIT" ]
null
null
null
chemicals/data_reader.py
daar/chemicals
df3be046055055b99ae762e7a4b852a63134fc82
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
37.35545
94
0.657194
0
0
0
0
0
0
0
0
3,016
0.382644
0dd931b7114a74c84466bdcc4e2ddf5aa167ed20
4,604
py
Python
official/utils/misc/keras_utils.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
180
2018-09-20T07:27:40.000Z
2022-03-19T07:55:42.000Z
official/utils/misc/keras_utils.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
80
2018-09-26T18:55:56.000Z
2022-02-10T02:03:26.000Z
official/utils/misc/keras_utils.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
72
2018-08-30T00:49:15.000Z
2022-02-15T23:22:40.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.145038
80
0.701347
2,599
0.564509
0
0
0
0
0
0
1,740
0.377932
0ddaf186f436077344b9ec71e5a8e4c734247389
2,102
py
Python
saleor/app/management/commands/install_app.py
greentornado/saleor
7f58917957a23c4dd90b47214a4500c91c735dee
[ "CC-BY-4.0" ]
3
2021-06-22T12:38:18.000Z
2021-07-11T15:01:57.000Z
saleor/app/management/commands/install_app.py
greentornado/saleor
7f58917957a23c4dd90b47214a4500c91c735dee
[ "CC-BY-4.0" ]
111
2021-07-19T04:19:30.000Z
2022-03-28T04:32:37.000Z
saleor/app/management/commands/install_app.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
6
2021-11-08T16:43:05.000Z
2022-03-22T17:31:16.000Z
import json from typing import Any, Optional import requests from django.core.exceptions import ValidationError from django.core.management import BaseCommand, CommandError from django.core.management.base import CommandParser from ....app.validators import AppURLValidator from ....core import JobStatus from ...insta...
33.365079
84
0.670314
1,671
0.794957
0
0
0
0
0
0
242
0.115128
0ddb425d77d3e2f51449abccb667b4f56a4ea4c5
7,290
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/operations.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/operations.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/operations.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 Google 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 applicable law or ag...
40.276243
84
0.705898
6,405
0.878601
0
0
5,964
0.818107
0
0
3,914
0.5369
0ddb5907cfb4e23bc38acc79b824cb21a1af696d
1,171
py
Python
objectDetection/detect_images.py
pklink/python-opencv
b1bb82f1e3eccc8e5dcba9e5b595e5976435bdbe
[ "Apache-2.0" ]
1
2022-01-19T14:01:09.000Z
2022-01-19T14:01:09.000Z
objectDetection/detect_images.py
pklink/python-opencv
b1bb82f1e3eccc8e5dcba9e5b595e5976435bdbe
[ "Apache-2.0" ]
1
2019-10-28T08:33:59.000Z
2019-10-28T08:33:59.000Z
objectDetection/detect_images.py
pklink/python-opencv
b1bb82f1e3eccc8e5dcba9e5b595e5976435bdbe
[ "Apache-2.0" ]
1
2019-10-28T08:26:38.000Z
2019-10-28T08:26:38.000Z
import argparse import glob import os, shutil import cv2 from YoloObjectDetector import YoloObjectDetector parser = argparse.ArgumentParser(description="Detect Objects in all images in the given folder.") parser.add_argument("-s", "--size", dest="size", default="320", type=str, help="Spatial Size (tiny, 320, 416, 60...
30.815789
130
0.693424
0
0
0
0
0
0
0
0
260
0.222032
0ddc0bef32477eced0900bb0111e6a1dbf4f7271
186
py
Python
countries/api/urls.py
isidaruk/eurovision_project
976743e66a2fed17c0513f17a9a7d35850e9cde5
[ "MIT" ]
null
null
null
countries/api/urls.py
isidaruk/eurovision_project
976743e66a2fed17c0513f17a9a7d35850e9cde5
[ "MIT" ]
8
2020-02-12T00:23:27.000Z
2022-03-08T21:10:13.000Z
countries/api/urls.py
isidaruk/eurovision_project
976743e66a2fed17c0513f17a9a7d35850e9cde5
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from countries.api.views import CountryViewSet router = DefaultRouter() router.register('', CountryViewSet) urlpatterns = router.urls
20.666667
48
0.822581
0
0
0
0
0
0
0
0
2
0.010753
0ddcb23ab572dfee37d81ec252ad2030e3319efd
1,675
py
Python
python/code_challenges/stacks_and_queues/stacks_and_queues.py
brendanwelzien/data-structures-and-algorithms
0bffe825e34de2e5c072b1e6b6c2cb1d7d1d61f5
[ "MIT" ]
null
null
null
python/code_challenges/stacks_and_queues/stacks_and_queues.py
brendanwelzien/data-structures-and-algorithms
0bffe825e34de2e5c072b1e6b6c2cb1d7d1d61f5
[ "MIT" ]
1
2020-11-10T01:31:39.000Z
2020-11-10T01:31:39.000Z
python/code_challenges/stacks_and_queues/stacks_and_queues.py
brendanwelzien/data-structures-and-algorithms
0bffe825e34de2e5c072b1e6b6c2cb1d7d1d61f5
[ "MIT" ]
null
null
null
class Node: def __init__(self, value, next_p=None): self.next = next_p self.value = value def __str__(self): return f'{self.value}' class InvalidOperationError(Exception): pass class Stack: def __init__(self): self.top = None def push(self, value): curren...
23.263889
81
0.560597
1,667
0.995224
0
0
0
0
0
0
175
0.104478
0ddf3f1c726adc70203174632e31094c4c2d0306
232
py
Python
square/main.py
vishwamshuklaRazorpay/vishwam_test
b0925429385005dac37d92938b7daf6245d636c8
[ "MIT" ]
null
null
null
square/main.py
vishwamshuklaRazorpay/vishwam_test
b0925429385005dac37d92938b7daf6245d636c8
[ "MIT" ]
null
null
null
square/main.py
vishwamshuklaRazorpay/vishwam_test
b0925429385005dac37d92938b7daf6245d636c8
[ "MIT" ]
null
null
null
def main(): number = int(input("Enter number (Only positive integer is allowed)")) print(f'{number} square is {number ** 2}') # Press the green button in the gutter to run the script. if __name__ == '__main__': main()
25.777778
74
0.659483
0
0
0
0
0
0
0
0
151
0.650862
0ddfe1e0014be1bb17e25a898cf24f24861860f8
1,869
py
Python
src/GoTurnRemix.py
aakaashjois/Plant-Tracer
d56c8021665f419e08dddb1ac88d3a719b2c787a
[ "Apache-2.0" ]
null
null
null
src/GoTurnRemix.py
aakaashjois/Plant-Tracer
d56c8021665f419e08dddb1ac88d3a719b2c787a
[ "Apache-2.0" ]
1
2022-02-05T09:35:32.000Z
2022-02-05T09:35:32.000Z
src/GoTurnRemix.py
aakaashjois/Plant-Tracer
d56c8021665f419e08dddb1ac88d3a719b2c787a
[ "Apache-2.0" ]
2
2019-07-28T11:10:31.000Z
2021-05-19T02:27:39.000Z
import torch from torchvision import models from torch import nn class GoTurnRemix(nn.Module): """ Create a model based on GOTURN. The GOTURN architecture used a CaffeNet while GoTurnRemix uses AlexNet. The rest of the architecture is the similar to GOTURN. A PyTorch implementation of GOTURN can b...
40.630435
114
0.612627
1,801
0.963617
0
0
0
0
0
0
561
0.300161
0de4d985008ec5f2946451370dc2a3228dbe91c7
609
py
Python
python/examples/provenance/index_svc/buildrandom.py
xkortex/medifor
2e715256ab170208255c935d1ae8e844ade27574
[ "Apache-2.0" ]
9
2019-09-16T20:37:37.000Z
2021-07-26T05:04:36.000Z
python/examples/provenance/index_svc/buildrandom.py
xkortex/medifor
2e715256ab170208255c935d1ae8e844ade27574
[ "Apache-2.0" ]
19
2019-10-28T22:18:56.000Z
2022-03-12T00:08:34.000Z
python/examples/provenance/index_svc/buildrandom.py
xkortex/medifor-lite
4567e16f59930417506e784e94f3fedb4afcc0c3
[ "Apache-2.0" ]
11
2019-08-02T18:56:43.000Z
2021-04-05T20:32:55.000Z
#!/usr/bin/env python3 import faiss import numpy as np def main(outfile): d = 100 nlist = 100 k = 4 nb = 100000 np.random.seed(1234) xb = np.random.random((nb, d)).astype('float32') xb[:, 0] += np.arange(nb) / 1000. quantizer = faiss.IndexFlatL2(d) index = faiss.IndexIVFFlat(quan...
18.454545
59
0.627258
0
0
0
0
0
0
0
0
63
0.103448
0de5d6a47d80b154cdbdae53819a355507f08a2e
800
py
Python
class3/exercises/exercise1.py
twin-bridges/netmiko_course
31943e4f6f66dbfe523d62d5a2f03285802a8c56
[ "Apache-2.0" ]
11
2020-09-16T06:53:16.000Z
2021-08-24T21:27:37.000Z
class3/exercises/exercise1.py
twin-bridges/netmiko_course
31943e4f6f66dbfe523d62d5a2f03285802a8c56
[ "Apache-2.0" ]
null
null
null
class3/exercises/exercise1.py
twin-bridges/netmiko_course
31943e4f6f66dbfe523d62d5a2f03285802a8c56
[ "Apache-2.0" ]
5
2020-10-18T20:25:59.000Z
2021-10-20T16:27:00.000Z
import os from getpass import getpass from pprint import pprint from netmiko import ConnectHandler # Code so automated tests will run properly password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass() arista1 = { "device_type": "arista_eos", "host": "arista1.lasthop.io", "us...
25.806452
88
0.6425
0
0
0
0
0
0
0
0
265
0.33125
0de6a3bbc2e8361502ee097dee7d73b1ea8c48de
2,891
py
Python
invenio_records_rest/loaders/marshmallow.py
Glignos/invenio-records-rest
4020d9e8c8e21e7c760fa14f9c634636ef6fda38
[ "MIT" ]
null
null
null
invenio_records_rest/loaders/marshmallow.py
Glignos/invenio-records-rest
4020d9e8c8e21e7c760fa14f9c634636ef6fda38
[ "MIT" ]
null
null
null
invenio_records_rest/loaders/marshmallow.py
Glignos/invenio-records-rest
4020d9e8c8e21e7c760fa14f9c634636ef6fda38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Marshmallow loader for record deserialization. Use marshmallow schema to transfor...
27.798077
77
0.64303
1,210
0.41854
0
0
0
0
0
0
978
0.338291
0de9893144b5910f320fefedfcebe7eebec65b42
475
py
Python
app/controllers/user.py
souravlahoti/GithubAction
6cda8f4ab022f78df7539b32571c1406f8943ad5
[ "MIT" ]
null
null
null
app/controllers/user.py
souravlahoti/GithubAction
6cda8f4ab022f78df7539b32571c1406f8943ad5
[ "MIT" ]
null
null
null
app/controllers/user.py
souravlahoti/GithubAction
6cda8f4ab022f78df7539b32571c1406f8943ad5
[ "MIT" ]
null
null
null
from flask import jsonify from flask_restful import Resource class User(Resource): def get(self, id): data = {'name': 'nabin khadka'} return jsonify(data) def put(self, id): pass def patch(self, id): pass def delete(self, id): pass class UserList(Resource):...
16.964286
70
0.572632
408
0.858947
0
0
0
0
0
0
65
0.136842
0dea7700259f79cf79e451f3837519f4601762ad
2,079
py
Python
src/data_augmentation.py
AnweshCR7/autonomous_greenhouse
a29cfe37d0152001d2544216ed65c3472f572b4e
[ "MIT" ]
1
2021-08-09T14:59:16.000Z
2021-08-09T14:59:16.000Z
src/data_augmentation.py
AnweshCR7/autonomous_greenhouse
a29cfe37d0152001d2544216ed65c3472f572b4e
[ "MIT" ]
null
null
null
src/data_augmentation.py
AnweshCR7/autonomous_greenhouse
a29cfe37d0152001d2544216ed65c3472f572b4e
[ "MIT" ]
null
null
null
import os import cv2 import glob import random import numpy as np import matplotlib.pyplot as plt def plot_image(img): plt.axis("off") plt.imshow(img, origin='upper') plt.show() def flip(img, dir_flag): # if flag: return cv2.flip(img, dir_flag) # else: # return img def brightness(i...
30.573529
82
0.622896
0
0
0
0
0
0
0
0
748
0.359788
0deb0c0b3259efb2f490fa173e3f279fb4d413e1
703
py
Python
hashmap-left-join/hashmap_left_join/left_join.py
Sewar-web/data-structures-and-algorithms1
d94f706fb3a30c114bd08a6c2d9b7ed269bc9a21
[ "MIT" ]
null
null
null
hashmap-left-join/hashmap_left_join/left_join.py
Sewar-web/data-structures-and-algorithms1
d94f706fb3a30c114bd08a6c2d9b7ed269bc9a21
[ "MIT" ]
null
null
null
hashmap-left-join/hashmap_left_join/left_join.py
Sewar-web/data-structures-and-algorithms1
d94f706fb3a30c114bd08a6c2d9b7ed269bc9a21
[ "MIT" ]
1
2021-06-26T09:19:43.000Z
2021-06-26T09:19:43.000Z
import os def left_join( hash , hash1): words = [] for value in hash.keys(): if value in hash1.keys(): words.append([value, hash [value],hash1[value] ]) else: words.append([value, hash [value],'NULL' ]) return words ...
17.146341
61
0.439545
0
0
0
0
0
0
0
0
166
0.236131
0deb37fe04b5be7b019c80d0f79badcb0721fecc
2,583
py
Python
datable/web/columns.py
ofirr/dojango-datable
c4d27c23d66c023062270a31f05e21d0982e0b43
[ "MIT" ]
null
null
null
datable/web/columns.py
ofirr/dojango-datable
c4d27c23d66c023062270a31f05e21d0982e0b43
[ "MIT" ]
null
null
null
datable/web/columns.py
ofirr/dojango-datable
c4d27c23d66c023062270a31f05e21d0982e0b43
[ "MIT" ]
null
null
null
# /usr/bin/env python # -*- encoding: utf-8 -*- from django.utils.text import capfirst from django.utils.translation import ugettext as _ from datable.core.serializers import BooleanSerializer from datable.core.serializers import DateSerializer from datable.core.serializers import DateTimeSerializer from datable.core...
23.697248
70
0.663957
2,145
0.83043
0
0
0
0
0
0
204
0.078978
0deb6190172a042c803576352b9c214cd3809bff
1,233
py
Python
maskrcnn_benchmark/modeling/roi_heads/car_cls_rot_head/roi_car_cls_rot_predictor.py
witwitchayakarn/6DVNET
f13b35162ad90fa49d777f3a41383e9d34eb4820
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/roi_heads/car_cls_rot_head/roi_car_cls_rot_predictor.py
witwitchayakarn/6DVNET
f13b35162ad90fa49d777f3a41383e9d34eb4820
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/roi_heads/car_cls_rot_head/roi_car_cls_rot_predictor.py
witwitchayakarn/6DVNET
f13b35162ad90fa49d777f3a41383e9d34eb4820
[ "MIT" ]
null
null
null
from torch import nn import torch.nn.functional as F class FPNPredictor(nn.Module): def __init__(self, cfg): super().__init__() representation_size = cfg.MODEL.ROI_CAR_CLS_ROT_HEAD.MLP_HEAD_DIM num_car_classes = cfg.MODEL.ROI_CAR_CLS_ROT_HEAD.NUMBER_CARS num_rot = cfg.MODEL.ROI_CA...
32.447368
79
0.696675
972
0.788321
0
0
0
0
0
0
14
0.011354
0decb58388efdb35753edb1a250f99a3c2fcefa4
771
py
Python
coderdojochi/migrations/0021_auto_20180815_1757.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
15
2019-05-04T00:24:00.000Z
2021-08-21T16:34:05.000Z
coderdojochi/migrations/0021_auto_20180815_1757.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
73
2019-04-24T15:53:42.000Z
2021-08-06T20:41:41.000Z
coderdojochi/migrations/0021_auto_20180815_1757.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
20
2019-04-26T20:13:08.000Z
2021-06-21T14:53:21.000Z
# Generated by Django 2.0.6 on 2018-08-15 22:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coderdojochi', '0020_mentor_shirt_size'), ] operations = [ migrations.AddField( model_name='mentor', name='home_addr...
26.586207
74
0.581064
678
0.879377
0
0
0
0
0
0
142
0.184176
0def13794ee3ca070ffd095ffc65ba6c515362be
350
py
Python
archives/build_wget.py
onai/code-ecosystem-analyzer
964d1ef5ec4d8f774c52aa2718663bb455d62ecb
[ "Apache-2.0" ]
null
null
null
archives/build_wget.py
onai/code-ecosystem-analyzer
964d1ef5ec4d8f774c52aa2718663bb455d62ecb
[ "Apache-2.0" ]
null
null
null
archives/build_wget.py
onai/code-ecosystem-analyzer
964d1ef5ec4d8f774c52aa2718663bb455d62ecb
[ "Apache-2.0" ]
null
null
null
import sys with open(sys.argv[1]) as handle: for new_line in handle: dest = new_line.split('/')[4] + '_' + new_line.split('/')[5] + '.zip' #print('curl -Ls -I -o /dev/null -w \'%{url_effective}\\n\' ' + new_line.strip()) print('curl -L --user ' + sys.argv[2] + ':' + sys.argv[3] + ' ' + new_...
43.75
107
0.525714
0
0
0
0
0
0
0
0
125
0.357143
0df3e3502236c625d081f0f74dbbd4aea76a92c9
630
py
Python
authors/apps/followers/models.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
null
null
null
authors/apps/followers/models.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
20
2018-11-26T16:22:46.000Z
2018-12-21T10:08:25.000Z
authors/apps/followers/models.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
3
2019-01-24T15:39:42.000Z
2019-09-25T17:57:08.000Z
from django.db import models from ..authentication.models import User class Follower(models.Model): """ Store data on following statistics for users. """ user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='follower') followed = models.ForeignKey(User, on_delete=models.CASCADE, ...
30
89
0.696825
556
0.88254
0
0
0
0
0
0
128
0.203175
0df56e29aeb7cee2f088a3c93b1f67587665424d
477
py
Python
dbt/adapters/doris/__init__.py
qiulin/dbt-doris
4786532ed288b32a729675a4dd01b6e4da993c60
[ "Apache-2.0" ]
2
2022-02-06T02:15:33.000Z
2022-02-22T03:58:53.000Z
dbt/adapters/doris/__init__.py
qiulin/dbt-doris
4786532ed288b32a729675a4dd01b6e4da993c60
[ "Apache-2.0" ]
null
null
null
dbt/adapters/doris/__init__.py
qiulin/dbt-doris
4786532ed288b32a729675a4dd01b6e4da993c60
[ "Apache-2.0" ]
null
null
null
from dbt.adapters.doris.connections import DorisConnectionManager from dbt.adapters.doris.connections import DorisCredentials from dbt.adapters.doris.relation import DorisRelation from dbt.adapters.doris.column import DorisColumn from dbt.adapters.doris.impl import DorisAdapter from dbt.adapters.base import AdapterPlu...
31.8
65
0.840671
0
0
0
0
0
0
0
0
0
0
0df7ced38cda902e631d021c1255e468e0aeb410
750
py
Python
revelation/core/urls.py
Federico-Comesana/revelatte
ccd50831dcdec8bc4a7e83b062d0309f6e4feee2
[ "MIT" ]
null
null
null
revelation/core/urls.py
Federico-Comesana/revelatte
ccd50831dcdec8bc4a7e83b062d0309f6e4feee2
[ "MIT" ]
null
null
null
revelation/core/urls.py
Federico-Comesana/revelatte
ccd50831dcdec8bc4a7e83b062d0309f6e4feee2
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.conf.urls import url import views urlpatterns = [ url(r'public/$', views.RevelationModelListView.as_view(), name='revelation-list'), url(r'u/(?P<pk>\d+)/$', views.UserProfileView.as_view(), name='user-view')...
24.193548
66
0.617333
0
0
0
0
0
0
0
0
175
0.233333
0df83b2e848cfa6dd57435a1970875947775c426
6,395
py
Python
pycarddav/controllers.py
mathstuf/pycarddav
8bfdbef79c11ed9b14304773d26b1542d16ef2b2
[ "MIT" ]
null
null
null
pycarddav/controllers.py
mathstuf/pycarddav
8bfdbef79c11ed9b14304773d26b1542d16ef2b2
[ "MIT" ]
null
null
null
pycarddav/controllers.py
mathstuf/pycarddav
8bfdbef79c11ed9b14304773d26b1542d16ef2b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # vim: set ts=4 sw=4 expandtab sts=4: # Copyright (c) 2011-2013 Christian Geier & contributors # # 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 ...
36.542857
83
0.640813
0
0
0
0
0
0
0
0
2,376
0.37154
0dfaaf84879c7de397b353788d87c5237fcb9080
2,483
py
Python
_test_request.py
arshadkazmi42/crul
7b0b7674afaf4d8c75d961612f6813e97a7d7008
[ "MIT" ]
6
2021-05-18T13:47:55.000Z
2021-12-16T18:18:41.000Z
_test_request.py
arshadkazmi42/crul
7b0b7674afaf4d8c75d961612f6813e97a7d7008
[ "MIT" ]
null
null
null
_test_request.py
arshadkazmi42/crul
7b0b7674afaf4d8c75d961612f6813e97a7d7008
[ "MIT" ]
2
2022-01-05T04:56:46.000Z
2022-01-12T05:10:57.000Z
import unittest from unittest.mock import Mock, patch from request import Request RESPONSE = { "status": "success", "message": "Processed" } class Response: def __init__(self): self.text = RESPONSE['message'] def json(self): return RESPONSE mock_response = Response() class Test...
26.136842
102
0.662908
2,250
0.906162
0
0
1,854
0.746677
0
0
667
0.268627
216e58dc7513012f69f864fede95e2d9e5c499dc
470
py
Python
kirbytoolkit/tests/test_jackknife.py
matthewkirby/kirby_toolkit
37968dfd05d628694f3c52a23a15641aa8eee5ff
[ "MIT" ]
null
null
null
kirbytoolkit/tests/test_jackknife.py
matthewkirby/kirby_toolkit
37968dfd05d628694f3c52a23a15641aa8eee5ff
[ "MIT" ]
null
null
null
kirbytoolkit/tests/test_jackknife.py
matthewkirby/kirby_toolkit
37968dfd05d628694f3c52a23a15641aa8eee5ff
[ "MIT" ]
null
null
null
import numpy as np import kirbytoolkit as ktk def test_jackknife_arr(): arr = [1, 2, 2, 3, 4] jkvar_true = 0.26 jkvar_code = ktk.jackknife_array(arr) np.testing.assert_almost_equal(jkvar_code, jkvar_true, decimal=7) # Test a longer array arr = np.loadtxt('randomdata.dat') jkvar_true = 0.0...
27.647059
69
0.717021
0
0
0
0
0
0
0
0
37
0.078723
216ebd24f2457cf9469911c06b29cd3b21471003
530
py
Python
demo-001.py
zhouyuanmin/MyCode
dbc7df8dc5eba419340ef9aafed75af24f883381
[ "MIT" ]
1
2021-01-22T03:15:29.000Z
2021-01-22T03:15:29.000Z
demo-001.py
zhouyuanmin/MyCode
dbc7df8dc5eba419340ef9aafed75af24f883381
[ "MIT" ]
null
null
null
demo-001.py
zhouyuanmin/MyCode
dbc7df8dc5eba419340ef9aafed75af24f883381
[ "MIT" ]
null
null
null
""" 使用装饰器限制函数的调用次数 """ import functools def call_limit(count): def decorator(func): @functools.wraps(func) def wrapper(*args, **kw): if decorator.calls >= count: raise AssertionError(f"单个程序最多允许调用此方法{count}次") decorator.calls += 1 return func(*ar...
17.096774
62
0.558491
0
0
0
0
304
0.518771
0
0
112
0.191126
216ee6cd0a2a320e0ac816601363649bae571b45
1,691
py
Python
test/tests/set.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/set.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/set.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
s1 = {1} def sorted(s): l = list(s) l.sort() return repr(l) s1 = set() | set(range(3)) print sorted(s1) s2 = set(range(1, 5)) print sorted(s2) print repr(sorted(s1)), str(sorted(s1)) print sorted(s1 - s2) print sorted(s2 - s1) print sorted(s1 ^ s2) print sorted(s1 & s2) print sorted(s1 | s2) print len(...
15.234234
78
0.608516
0
0
0
0
0
0
0
0
15
0.00887
216f4275a182a3efa14efecfb81fc95c79e95c84
2,720
py
Python
scripts/gen_train_test.py
wesleylp/CPE775
3df3c053e9d6da83035c8f2620c3951f7ff94975
[ "MIT" ]
13
2017-11-23T12:23:50.000Z
2020-12-27T10:36:08.000Z
scripts/gen_train_test.py
wesleylp/CPE775
3df3c053e9d6da83035c8f2620c3951f7ff94975
[ "MIT" ]
1
2018-04-19T02:16:34.000Z
2018-04-19T13:37:23.000Z
scripts/gen_train_test.py
wesleylp/CPE775
3df3c053e9d6da83035c8f2620c3951f7ff94975
[ "MIT" ]
3
2018-11-15T00:01:09.000Z
2021-05-11T06:27:46.000Z
import os import argparse import glob import pandas as pd from cpe775 import utils if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('data_dir', metavar='DIR') parser.add_argument('--out-dir', metavar='DIR') args = parser.parse_args() # Output to the data dir fil...
44.590164
119
0.715074
0
0
0
0
0
0
0
0
642
0.236029
21704be6a53209ee30b09ce10c3956a6c5b8c8ba
1,395
py
Python
plot.py
corollari/gradient-descent
089905ab0f4de2c360cfef4fa4957e9c181f27c3
[ "Unlicense" ]
1
2019-03-06T19:43:25.000Z
2019-03-06T19:43:25.000Z
plot.py
corollari/gradient-descent
089905ab0f4de2c360cfef4fa4957e9c181f27c3
[ "Unlicense" ]
null
null
null
plot.py
corollari/gradient-descent
089905ab0f4de2c360cfef4fa4957e9c181f27c3
[ "Unlicense" ]
null
null
null
import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt import random from sympy import symbols, diff, N def fun(X, Y): return 2*(np.exp(-X**2 - Y**2))# - np.exp(-(X - 1)**2 - (Y - 1)**2)) def symfun(X, Y): return 2*(np.exp(1)**(-X**2 - Y**2))# - np.exp(1)**(-(X - 1)**2...
31.704545
122
0.5319
0
0
0
0
0
0
0
0
243
0.174194
2170971213155f1239bf003e5ae24a6a445bc252
639
py
Python
src/app.py
reinzor/selfieboot2016
967a5cb429ae98293e2f0e8d99da2c8edf4e72c0
[ "MIT" ]
null
null
null
src/app.py
reinzor/selfieboot2016
967a5cb429ae98293e2f0e8d99da2c8edf4e72c0
[ "MIT" ]
null
null
null
src/app.py
reinzor/selfieboot2016
967a5cb429ae98293e2f0e8d99da2c8edf4e72c0
[ "MIT" ]
null
null
null
''' Selfiebooth Baas van Horst aan de Maas 2016 - CameraPuzzle =========================== This demonstrates using Scatter widgets with a live camera. You should see a shuffled grid of rectangles that make up the camera feed. You can drag the squares around to see the unscrambled camera feed or double click to scrambl...
23.666667
61
0.697966
183
0.286385
0
0
0
0
0
0
341
0.533646
217147b682f00559525d500ab3019c807cac7a67
521
py
Python
deploy/test.py
zhxiaohe/starwars_api
f1b729e819eb19e5eb59630bed56b13127eb1ef2
[ "MIT" ]
null
null
null
deploy/test.py
zhxiaohe/starwars_api
f1b729e819eb19e5eb59630bed56b13127eb1ef2
[ "MIT" ]
null
null
null
deploy/test.py
zhxiaohe/starwars_api
f1b729e819eb19e5eb59630bed56b13127eb1ef2
[ "MIT" ]
null
null
null
#coding=utf-8 import requests,json headers = {'X-Rundeck-Auth-Token': '2EcW3xe0urFLrilqUOGCVYLXSbdByk2e','Accept': 'application/json'} headers['Content-type']='application/json' rundeck_host= 'http://10.1.16.26:4440' url = rundeck_host+'/api/16/project/fengyang/run/command' data={ 'project':'fengyang', 'exec...
23.681818
99
0.712092
0
0
0
0
0
0
0
0
309
0.571165
21716b55e61aaab71c09221c686d96dab513e84d
2,984
py
Python
app/models/payments.py
StartFuture/workstation-backend
3b88946a3a7e2c9449de938d008a665fc4a17d34
[ "MIT" ]
1
2022-03-20T23:55:34.000Z
2022-03-20T23:55:34.000Z
app/models/payments.py
StartFuture/workstation-backend
3b88946a3a7e2c9449de938d008a665fc4a17d34
[ "MIT" ]
1
2022-03-10T19:26:53.000Z
2022-03-10T19:26:53.000Z
app/models/payments.py
StartFuture/workstation-backend
3b88946a3a7e2c9449de938d008a665fc4a17d34
[ "MIT" ]
1
2022-03-08T21:40:51.000Z
2022-03-08T21:40:51.000Z
import re from flask_restful import Resource, reqparse acceptedCreditCards = { "visa": r"/^4[0-9]{12}(?:[0-9]{3})?$/", "mastercard": r"/^5[1-5][0-9]{14}$|^2(?:2(?:2[1-9]|[3-9][0-9])|[3-6][0-9][0-9]|7(?:[01][0-9]|20))[0-9]{12}$/", "amex": r"/^3[47][0-9]{13}$/", "discover": r"/^65[4-9][0-9]{13}|64[4-9][0-9]{13}|...
30.762887
142
0.467493
1,064
0.356568
0
0
1,029
0.344839
0
0
1,022
0.342493
21731e6d861a39649ea198c473c43e6a73b5f540
2,916
py
Python
jmeter_api/configs/http_cache_manager/test_http_cache_manager.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
11
2020-03-22T13:30:21.000Z
2021-12-25T06:23:44.000Z
jmeter_api/configs/http_cache_manager/test_http_cache_manager.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
37
2019-12-18T13:12:50.000Z
2022-02-10T10:52:37.000Z
jmeter_api/configs/http_cache_manager/test_http_cache_manager.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
5
2019-12-06T10:55:56.000Z
2020-06-01T19:32:32.000Z
import xmltodict import pytest from jmeter_api.configs.http_cache_manager.elements import HTTPCacheManager from jmeter_api.basics.utils import tag_wrapper class TestHTTPCacheManagerArgs: class TestClearCacheEachIteration: def test_check(self): with pytest.raises(TypeError): HT...
39.405405
86
0.645405
2,754
0.944444
0
0
0
0
0
0
183
0.062757
21749d76cf64e34fef78fa86bc1d6551d9be27aa
1,533
py
Python
main/configuration/token_config.py
anderswodenker/sams-app
d9ab3474a5b1f009afe803d14484c000059b61c3
[ "MIT" ]
null
null
null
main/configuration/token_config.py
anderswodenker/sams-app
d9ab3474a5b1f009afe803d14484c000059b61c3
[ "MIT" ]
1
2020-12-10T14:40:57.000Z
2020-12-10T14:40:57.000Z
main/configuration/token_config.py
anderswodenker/sams-app
d9ab3474a5b1f009afe803d14484c000059b61c3
[ "MIT" ]
null
null
null
import configparser import mapping from main.helper.time_helper import get_token_time class TokenConfig: def __init__(self): self.config = configparser.ConfigParser() self.config_data = self.config['DEFAULT'] self.config.read(mapping.token_config) def read_token(self): self.co...
32.617021
83
0.637965
1,444
0.941944
0
0
0
0
0
0
258
0.168297
21758ae5b904cd586ad12411253dc0f4bd9495ef
350
py
Python
tests/data/dos.py
granrothge/multiphonon
486a998eeb6b73b964a58ba0f98fe3ece15bdf6e
[ "MIT" ]
1
2019-05-22T08:46:09.000Z
2019-05-22T08:46:09.000Z
tests/data/dos.py
granrothge/multiphonon
486a998eeb6b73b964a58ba0f98fe3ece15bdf6e
[ "MIT" ]
118
2016-04-04T12:27:15.000Z
2021-08-18T01:46:13.000Z
tests/data/dos.py
granrothge/multiphonon
486a998eeb6b73b964a58ba0f98fe3ece15bdf6e
[ "MIT" ]
5
2017-09-28T16:01:12.000Z
2020-01-31T18:58:09.000Z
#!/usr/bin/env python # # Jiao Lin <jiao.lin@gmail.com> import os datadir = os.path.abspath(os.path.dirname(__file__)) def loadDOS(): f = os.path.join(datadir, 'V-dos.dat') from multiphonon.dos import io E, Z, error = io.fromascii(f) from multiphonon.dos.nice import nice_dos E,g = nice_dos(E, Z) ...
19.444444
52
0.66
0
0
0
0
0
0
0
0
77
0.22
217837f8dc006967d37900044e0628322b10a71d
5,832
py
Python
weather/Weather.py
Eajay/chatting-bot-with-tasks
d02299cb9d84da719eec4950a69484058adc791a
[ "MIT" ]
null
null
null
weather/Weather.py
Eajay/chatting-bot-with-tasks
d02299cb9d84da719eec4950a69484058adc791a
[ "MIT" ]
null
null
null
weather/Weather.py
Eajay/chatting-bot-with-tasks
d02299cb9d84da719eec4950a69484058adc791a
[ "MIT" ]
null
null
null
from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings import re import pymysql import geocoder import datetime import os class Weather: def __init__(self, host, user, passwd, db, port): settings_file_path = 'weather.weather.settings' # The path seen fr...
38.368421
479
0.573217
5,449
0.934008
0
0
0
0
0
0
2,036
0.348989
21784a3d87f08299948e420bf102a93e46449e8b
7,578
py
Python
tests/test_networks/test_brokers/test_publishers/test_producers.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
7
2021-04-12T15:40:11.000Z
2022-03-04T13:46:01.000Z
tests/test_networks/test_brokers/test_publishers/test_producers.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
275
2021-04-03T09:23:40.000Z
2022-01-28T11:56:25.000Z
tests/test_networks/test_brokers/test_publishers/test_producers.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
null
null
null
import asyncio import unittest from asyncio import ( gather, sleep, ) from unittest.mock import ( AsyncMock, call, ) from uuid import ( uuid4, ) import aiopg from minos.common import ( NotProvidedException, ) from minos.common.testing import ( PostgresAsyncTestCase, ) from minos.networks i...
35.246512
114
0.662048
7,025
0.927026
0
0
0
0
6,525
0.861045
642
0.084719
217c49f0f1aaaa2893f92203a3e95b9ea7c76395
4,489
py
Python
text_collector/spiders/sumut_go.py
gusman/web-crawler
d7a41cab2ce82d0e6b0daf5db05944381f0a4bbd
[ "MIT" ]
null
null
null
text_collector/spiders/sumut_go.py
gusman/web-crawler
d7a41cab2ce82d0e6b0daf5db05944381f0a4bbd
[ "MIT" ]
null
null
null
text_collector/spiders/sumut_go.py
gusman/web-crawler
d7a41cab2ce82d0e6b0daf5db05944381f0a4bbd
[ "MIT" ]
null
null
null
import scrapy import datetime import re from datetime import timedelta from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor class ItemNews(scrapy.Item): date = scrapy.Field() title = scrapy.Field() content = scrapy.Field() class SultraZonaSpider(scrapy.Spider): ...
45.343434
155
0.58699
4,321
0.962575
2,900
0.646024
0
0
0
0
1,350
0.300735
217d30de43b0686c9b6a097430ce64fd2cb78174
130
py
Python
test/conftest.py
eliasbrange/aws-cdk-template
7ba7bc921bdd9c0064a6a661a2f47ee767ed70cc
[ "MIT" ]
2
2022-01-03T11:11:32.000Z
2022-03-11T16:34:51.000Z
test/conftest.py
eliasbrange/aws-cdk-template
7ba7bc921bdd9c0064a6a661a2f47ee767ed70cc
[ "MIT" ]
null
null
null
test/conftest.py
eliasbrange/aws-cdk-template
7ba7bc921bdd9c0064a6a661a2f47ee767ed70cc
[ "MIT" ]
1
2022-03-25T20:35:16.000Z
2022-03-25T20:35:16.000Z
import os.path as op import sys path = op.abspath(op.join(op.dirname(op.realpath(__file__)), "..", "src")) sys.path.append(path)
21.666667
74
0.7
0
0
0
0
0
0
0
0
9
0.069231
217d4e0e9bc044b34a21ee15c3e1def8c727534c
3,599
py
Python
addons/stock_landed_costs/models/account_move.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/stock_landed_costs/models/account_move.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/stock_landed_costs/models/account_move.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class AccountMove(models.Model): _inherit = 'account.move' landed_costs_ids = fields.One2many('stock.landed.cost', 'vendor_bill_id', string='Landed Costs') landed_costs...
47.355263
130
0.674632
3,456
0.960267
0
0
1,340
0.372326
0
0
1,028
0.285635
217ddb7ab709173147528cb6c585bd4df64516a7
4,025
py
Python
examples/highcharts/pie-donut.py
Jbrunn/python-highcharts
a4c488ae5c2e125616efad5a722f3dfd8a9bc450
[ "MIT" ]
370
2015-10-07T20:13:10.000Z
2022-03-31T03:43:17.000Z
examples/highcharts/pie-donut.py
Jbrunn/python-highcharts
a4c488ae5c2e125616efad5a722f3dfd8a9bc450
[ "MIT" ]
67
2016-03-14T12:18:44.000Z
2022-02-24T09:24:31.000Z
examples/highcharts/pie-donut.py
Jbrunn/python-highcharts
a4c488ae5c2e125616efad5a722f3dfd8a9bc450
[ "MIT" ]
159
2016-02-25T15:07:52.000Z
2022-03-12T13:04:14.000Z
# -*- coding: utf-8 -*- """ Highcharts Demos Donut chart: http://www.highcharts.com/demo/pie-donut """ from highcharts import Highchart H = Highchart(width = 850, height = 400) data = [{ 'y': 55.11, 'color': 'Highcharts.getOptions().colors[0]', 'drilldown': { 'name'...
32.459677
115
0.429814
0
0
0
0
0
0
0
0
1,882
0.467578
217fa2fb2460ab023c2ba02ea8a4fbc0c4e79eb1
961
py
Python
computer_firm.py
GYosifov88/Python-Basics
f4290061264aebc417bde4948948e4a64739fec9
[ "MIT" ]
null
null
null
computer_firm.py
GYosifov88/Python-Basics
f4290061264aebc417bde4948948e4a64739fec9
[ "MIT" ]
null
null
null
computer_firm.py
GYosifov88/Python-Basics
f4290061264aebc417bde4948948e4a64739fec9
[ "MIT" ]
null
null
null
number_of_computers = int(input()) number_of_sales = 0 real_sales = 0 made_sales = 0 counter_sales = 0 total_ratings = 0 for i in range (number_of_computers): rating = int(input()) rating_scale = rating % 10 possible_sales = rating // 10 total_ratings += rating_scale if rating_scale == 2: r...
25.289474
52
0.661811
0
0
0
0
0
0
0
0
45
0.046826
21803ff77639fb917a3ee0c55d6b108129313c9e
902
py
Python
cogs/messages.py
abdieg/cirila-bot-discord
e6956213cf42762b0260bd71dab47f3217c21560
[ "MIT" ]
null
null
null
cogs/messages.py
abdieg/cirila-bot-discord
e6956213cf42762b0260bd71dab47f3217c21560
[ "MIT" ]
null
null
null
cogs/messages.py
abdieg/cirila-bot-discord
e6956213cf42762b0260bd71dab47f3217c21560
[ "MIT" ]
null
null
null
import discord import os import asyncio from discord.ext import commands from random import randint from cogs.libs import Settings from cogs.libs import Utils class Messages(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_message(self, message): ...
29.096774
59
0.645233
694
0.769401
0
0
607
0.672949
578
0.640798
74
0.08204
218267a67d6b77155bce24d14dba6bc7cf42c90c
315
py
Python
features/best_move.py
raaahuuulll/chess-concepts
92fbed433c1270f8235f454bb4f5416e577bf8a6
[ "Apache-2.0" ]
null
null
null
features/best_move.py
raaahuuulll/chess-concepts
92fbed433c1270f8235f454bb4f5416e577bf8a6
[ "Apache-2.0" ]
null
null
null
features/best_move.py
raaahuuulll/chess-concepts
92fbed433c1270f8235f454bb4f5416e577bf8a6
[ "Apache-2.0" ]
null
null
null
from features.move import Move class BestMove(Move): # TODO: replace this with an attribute which specifies columns @classmethod def from_row(cls, row): return cls(row.fen, row.best_move) def features(self, prefix=None): return super(BestMove, self).features(prefix="best_move")
24.230769
66
0.698413
281
0.892063
0
0
83
0.263492
0
0
73
0.231746
218374c68202eece0493e23ec9145bf2c5224fa4
728
py
Python
util.py
logonod/demoss
c792f6471fc4a30297688db90d221d31d447633a
[ "BSD-2-Clause" ]
null
null
null
util.py
logonod/demoss
c792f6471fc4a30297688db90d221d31d447633a
[ "BSD-2-Clause" ]
null
null
null
util.py
logonod/demoss
c792f6471fc4a30297688db90d221d31d447633a
[ "BSD-2-Clause" ]
null
null
null
import skimage.io import skimage.transform import numpy as np def load_image( path ): try: img = skimage.io.imread( path ).astype( float ) except: return None if img is None: return None if len(img.shape) < 2: return None if len(img.shape) == 4: return None if len(img.shape) ...
25.103448
65
0.608516
0
0
0
0
0
0
0
0
0
0
21844501c3e337cf2b53931afe55bce1da09fdf2
248
py
Python
adgbot/slack.py
astrodatagroup/slack-bot
9e2bf073972c0ac34a76e86746dd77556cdf7451
[ "MIT" ]
2
2020-03-12T23:44:54.000Z
2020-04-24T12:59:08.000Z
adgbot/slack.py
astrodatagroup/slack-bot
9e2bf073972c0ac34a76e86746dd77556cdf7451
[ "MIT" ]
4
2020-04-24T12:57:30.000Z
2020-08-08T14:57:30.000Z
adgbot/slack.py
astrodatagroup/slack-bot
9e2bf073972c0ac34a76e86746dd77556cdf7451
[ "MIT" ]
2
2020-08-07T16:33:57.000Z
2021-10-04T15:26:57.000Z
# -*- coding: utf-8 -*- __all__ = ["post_message"] import requests from . import config def post_message(message): secrets = config.SLACK_JSON r = requests.post(secrets["webhook_url"], json=dict(text=message)) r.raise_for_status()
17.714286
70
0.689516
0
0
0
0
0
0
0
0
50
0.201613
21854e402e44b3f6ade05c63d51b295cbf536a9f
10,054
py
Python
train_lirpa.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
9
2021-03-31T20:27:50.000Z
2022-01-07T21:52:47.000Z
train_lirpa.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
2
2021-06-21T15:38:07.000Z
2021-11-08T09:10:09.000Z
train_lirpa.py
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
4
2021-07-17T15:04:14.000Z
2022-02-09T17:51:39.000Z
import argparse import multiprocessing import random import time import torch.optim as optim from auto_LiRPA.eps_scheduler import LinearScheduler, AdaptiveScheduler, SmoothedScheduler, FixedScheduler from auto_LiRPA.perturbations import * from auto_LiRPA.utils import MultiAverageMeter from torch.nn import CrossEntropy...
47.424528
136
0.647106
0
0
0
0
0
0
0
0
2,381
0.236821
2185931a1852d943461e09408575acf28198d271
3,684
py
Python
qcs_api_client/models/client_application.py
rigetti/qcs-api-client-python
569cb9fa972dec1a706757374acb3df3ce649ec4
[ "Apache-2.0" ]
2
2021-12-15T23:24:40.000Z
2022-01-03T01:14:17.000Z
qcs_api_client/models/client_application.py
rigetti/qcs-api-client-python
569cb9fa972dec1a706757374acb3df3ce649ec4
[ "Apache-2.0" ]
3
2022-01-10T21:55:13.000Z
2022-02-22T19:41:01.000Z
qcs_api_client/models/client_application.py
rigetti/qcs-api-client-python
569cb9fa972dec1a706757374acb3df3ce649ec4
[ "Apache-2.0" ]
3
2021-12-15T23:24:42.000Z
2022-01-09T11:16:17.000Z
from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union import attr from ..models.client_applications_download_link import ClientApplicationsDownloadLink from ..types import UNSET, Unset from ..util.serialization import is_not_none T = TypeVar("T", bound="ClientApplication") @attr.s(auto_attri...
31.758621
106
0.628664
3,354
0.910423
0
0
3,381
0.917752
0
0
447
0.121336
2186641f0d4ffce02d56535a8ecd616ced38432d
73
py
Python
Configuration/Eras/python/Modifier_run2_GEM_2017_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Eras/python/Modifier_run2_GEM_2017_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Eras/python/Modifier_run2_GEM_2017_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms run2_GEM_2017 = cms.Modifier()
18.25
40
0.808219
0
0
0
0
0
0
0
0
0
0
2187970fb1dec3395b976692b9ba5465f2f484c3
16,792
py
Python
d4rl/carla/data_collection_agent_lane.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
552
2020-04-20T01:07:02.000Z
2022-03-31T16:47:39.000Z
d4rl/carla/data_collection_agent_lane.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
103
2020-04-20T14:18:32.000Z
2022-03-30T14:33:45.000Z
d4rl/carla/data_collection_agent_lane.py
chappers/d4rl
b838da60b51c98c1d673a81657f58a44ccf5d3fe
[ "Apache-2.0" ]
135
2020-04-21T16:57:52.000Z
2022-03-30T14:29:55.000Z
# !/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # # Modified by Rowan McAllister on 20 April 2020 import argparse import dat...
36.34632
138
0.632861
11,283
0.671927
0
0
0
0
0
0
3,600
0.214388
2189e908a5d40835988cf4b8179b93819c50451d
2,386
py
Python
wren/pomo.py
kthy/wren
62e9439ea82a1d984f07fa8cd00421e0e640196f
[ "MIT" ]
1
2021-06-04T07:15:02.000Z
2021-06-04T07:15:02.000Z
wren/pomo.py
kthy/wren
62e9439ea82a1d984f07fa8cd00421e0e640196f
[ "MIT" ]
9
2021-02-20T22:33:05.000Z
2021-04-12T17:35:48.000Z
wren/pomo.py
pyxy-dk/wren
62e9439ea82a1d984f07fa8cd00421e0e640196f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Gettext manipulation methods.""" from os import remove from os.path import exists from pathlib import Path from shutil import copyfile, copystat from typing import Sequence from filehash import FileHash from polib import MOFile, POFile, mofile from wren.change import Change def apply_cha...
34.57971
80
0.725482
0
0
0
0
0
0
0
0
727
0.304694
218b02aeb89c1d716160e75933fbb97fec67090f
199
py
Python
mysite/polls/urls.py
cs-fullstack-fall-2018/django-intro1-psanon19
0ae36780fd664313a011e7a219bc401b158fe93f
[ "Apache-2.0" ]
null
null
null
mysite/polls/urls.py
cs-fullstack-fall-2018/django-intro1-psanon19
0ae36780fd664313a011e7a219bc401b158fe93f
[ "Apache-2.0" ]
null
null
null
mysite/polls/urls.py
cs-fullstack-fall-2018/django-intro1-psanon19
0ae36780fd664313a011e7a219bc401b158fe93f
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('language/', views.language), path('system/', views.system), path('ide/', views.ide), path('', views.nothing) ]
19.9
38
0.638191
0
0
0
0
0
0
0
0
28
0.140704
218b26291a3fa107e3de76aeb9676ea1fe58456c
5,908
py
Python
Boston_House_Prices.py
Anuska-Ghosh2002/bostonproj
fa3e55ea8417d58a84a66b11dc093d106bd10c79
[ "MIT" ]
null
null
null
Boston_House_Prices.py
Anuska-Ghosh2002/bostonproj
fa3e55ea8417d58a84a66b11dc093d106bd10c79
[ "MIT" ]
null
null
null
Boston_House_Prices.py
Anuska-Ghosh2002/bostonproj
fa3e55ea8417d58a84a66b11dc093d106bd10c79
[ "MIT" ]
null
null
null
import streamlit as st import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set() from sklearn.datasets import load_boston from sklearn import preprocessing from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.met...
28.403846
82
0.676202
0
0
0
0
0
0
0
0
2,048
0.346649
218bab7ad0514bef0bd2c2671ceec38449ab044f
4,585
py
Python
tests/controller/worker/test_worker_manager.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
1
2020-02-13T18:57:53.000Z
2020-02-13T18:57:53.000Z
tests/controller/worker/test_worker_manager.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
46
2020-02-14T22:14:33.000Z
2021-06-10T21:17:49.000Z
tests/controller/worker/test_worker_manager.py
scailfin/rob-core
791383085181747cf41c30f6cd13f6762e438d8a
[ "MIT" ]
3
2021-05-06T15:22:29.000Z
2021-06-01T16:19:36.000Z
# This file is part of the Reproducible and Reusable Data Analysis Workflow # Server (flowServ). # # Copyright (C) 2019-2021 NYU. # # flowServ is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Unit tests for the worker factory.""" im...
37.892562
116
0.639258
0
0
0
0
1,440
0.314068
0
0
1,676
0.36554
218be87fd5642367ab0f3fbe799b44f1dfb60d9c
640
py
Python
pyconcz/announcements/migrations/0002_announcement_font_size.py
martinpucala/cz.pycon.org-2019
044337ed0e7f721e96d88da69511ba5493d127e6
[ "MIT" ]
6
2018-08-25T13:40:22.000Z
2019-05-25T21:58:41.000Z
pyconcz/announcements/migrations/0002_announcement_font_size.py
Giraafje/cz.pycon.org-2019
f7bfad2f0c0f98368e2f6163f7dce70335549a68
[ "MIT" ]
188
2018-08-26T06:53:50.000Z
2022-02-12T04:04:36.000Z
pyconcz/announcements/migrations/0002_announcement_font_size.py
Giraafje/cz.pycon.org-2019
f7bfad2f0c0f98368e2f6163f7dce70335549a68
[ "MIT" ]
15
2018-11-03T06:32:34.000Z
2020-02-11T21:17:14.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-06-11 05:18 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('announcements', '0001_initial'), ] operations = [ ...
29.090909
206
0.676563
451
0.704688
0
0
0
0
0
0
155
0.242188
218c1665960b6db6a4d4a313af360d78024780d3
896
py
Python
docs/_ext/db_tables_extension.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
2
2021-07-28T08:46:13.000Z
2022-01-19T17:05:48.000Z
docs/_ext/db_tables_extension.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
3
2020-11-10T23:34:17.000Z
2021-03-31T16:19:21.000Z
docs/_ext/db_tables_extension.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
null
null
null
"""Custom Sphinx extension to inject database documentation into a ReST document.""" from docutils import nodes from docutils.parsers.rst import Directive import sys import os import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir)...
24.216216
86
0.668527
306
0.341518
0
0
0
0
0
0
205
0.228795
218cc1a2784c43a8ecfb6c736b8023171e1890c1
149
py
Python
vb2py/PythonCard/__init__.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/__init__.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/__init__.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
""" Created: 2001/08/05 Purpose: Turn PythonCard into a package __version__ = "$Revision: 1.1.1.1 $" __date__ = "$Date: 2001/08/06 19:53:11 $" """
16.555556
41
0.651007
0
0
0
0
0
0
0
0
148
0.993289
218d8e2910387226505ef85b9f0bcefc1939728c
764
py
Python
xschem/bandgap_opamp/test/bandgap_bmr_test_op.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
15
2020-12-13T12:33:15.000Z
2022-02-17T18:09:25.000Z
xschem/bandgap_opamp/test/bandgap_bmr_test_op.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
null
null
null
xschem/bandgap_opamp/test/bandgap_bmr_test_op.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
6
2021-01-02T05:52:21.000Z
2022-03-28T06:55:07.000Z
import SpiceInterface import TestUtilities # create the test utility object test_utilities_obj = TestUtilities.TestUtilities() test_utilities_obj.netlist_generation('bandgap_opamp_test_op.sch', 'rundir') # create the spice interface spice_interface_obj = SpiceInterface.SpiceInterface(netlist_path="rundir/bandgap_opa...
28.296296
102
0.789267
0
0
0
0
0
0
0
0
347
0.454188
218f388452a32732371a26acb9b1b26668fa0afb
238
py
Python
cloudmesh-exercises/cloudmesh-common-2.py
cybertraining-dsc/fa19-516-170
8746be5a89d897a155468303308efb71ce7ba849
[ "Apache-2.0" ]
null
null
null
cloudmesh-exercises/cloudmesh-common-2.py
cybertraining-dsc/fa19-516-170
8746be5a89d897a155468303308efb71ce7ba849
[ "Apache-2.0" ]
null
null
null
cloudmesh-exercises/cloudmesh-common-2.py
cybertraining-dsc/fa19-516-170
8746be5a89d897a155468303308efb71ce7ba849
[ "Apache-2.0" ]
1
2019-09-06T17:27:32.000Z
2019-09-06T17:27:32.000Z
# fa19-516-170 E.Cloudmesh.Common.2 from cloudmesh.common.dotdict import dotdict color = {"red": 255, "blue": 255, "green": 255, "alpha": 0} color = dotdict(color) print("A RGB color: ", color.red, color.blue, color.green, color.alpha)
29.75
71
0.697479
0
0
0
0
0
0
0
0
75
0.315126
219042565e81d8c12997684eb40b91c86b416cb5
701
py
Python
ex18.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
ex18.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
ex18.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
#this one is like your scripts with argv def print_two(*args): arg1, arg2 = args print "arg1: %r, arg2: %r" % (arg1, arg2) #ok, the *args is actually pointless, we can just do this def print_two_again(arg1, arg2): print "arg1: %r, arg2: %r" % (arg1, arg2) #this just takes one argument def print_one(arg1):...
24.172414
76
0.663338
0
0
0
0
0
0
0
0
321
0.457917
2190f77ed4afd28489afe1b10eb418ec19a517fe
5,182
py
Python
study_tool/entities/menu.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
study_tool/entities/menu.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
study_tool/entities/menu.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
from enum import IntEnum import os import pygame import random import time import cmg import cmg.mathlib from cmg.application import * from cmg.graphics import * from cmg.input import * from study_tool.config import Config from study_tool.entities.entity import Entity class Menu(Entity): def __init__(self, option...
40.484375
84
0.614628
4,910
0.947511
0
0
0
0
0
0
131
0.02528
2191076de1edb4c0b0a54d9d4d3796be34c4306f
3,677
py
Python
zhangwei_helper/function/Regedit.py
zwzw911/zhangwei_helper
8696533f5df50464d619a35834ec19d514a1b13b
[ "MIT" ]
null
null
null
zhangwei_helper/function/Regedit.py
zwzw911/zhangwei_helper
8696533f5df50464d619a35834ec19d514a1b13b
[ "MIT" ]
null
null
null
zhangwei_helper/function/Regedit.py
zwzw911/zhangwei_helper
8696533f5df50464d619a35834ec19d514a1b13b
[ "MIT" ]
null
null
null
''' 对windows的注册表进行操作 _open_key: 返回key _read_key_value:读取key下一个value的值和类型 _save_key_value:以某种类型的方式,把值保存到某个key中 read_PATH_value:读取环境变量PATH的值 append_value_in_PATH:为PATH添加一个值 del_value_in_PATH:从PATH中删除一个值 check_key_value_exists(key,value_name):检查某个key小,value_name是否存在 create_value(key,value_name,value_type,value): 直接调用_sav...
30.89916
82
0.700027
0
0
0
0
0
0
0
0
1,411
0.359124
2192768bff882444e0830f98671a750d87dcfce9
22,767
py
Python
deep_staple/HybridIdLoader.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
deep_staple/HybridIdLoader.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
deep_staple/HybridIdLoader.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
import warnings from collections.abc import Iterable from collections import OrderedDict import torch import numpy as np from torch.utils.data import Dataset from deep_staple.utils.torch_utils import interpolate_sample, augmentNoise, spatial_augment, torch_manual_seeded, ensure_dense from deep_staple.utils.common_uti...
45.172619
157
0.605877
22,415
0.984539
0
0
0
0
0
0
2,328
0.102253
2192db0d2cc72055b715c3531dbce38ec2537308
438
py
Python
scripts/model_assembly/parquet_explorer.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
17
2018-12-19T16:32:38.000Z
2021-10-05T07:58:15.000Z
scripts/model_assembly/parquet_explorer.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
183
2018-12-20T17:03:01.000Z
2022-02-23T22:21:42.000Z
scripts/model_assembly/parquet_explorer.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
5
2019-01-04T22:37:49.000Z
2022-01-19T17:34:16.000Z
import sys import json import pandas as pd def main(): parquet_filename = sys.argv[1] json_filename = parquet_filename.replace(".parquet", ".json") print(json_filename) parquet_df = pd.read_parquet(parquet_filename) parquet_json = parquet_df.to_json() parquet_data = json.loads(parquet_json) ...
20.857143
65
0.707763
0
0
0
0
0
0
0
0
30
0.068493
219394299c86acbdbecacd314e8a2cf464bd2c78
1,720
py
Python
day02/main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
day02/main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
day02/main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
def main(): valid_passwords_by_range_policy = 0 valid_passwords_by_position_policy = 0 with open('input') as f: for line in f: policy_string, password = parse_line(line.strip()) policy = Policy.parse(policy_string) if policy.is_valid_by_range_policy(password): ...
38.222222
98
0.676744
847
0.492442
0
0
256
0.148837
0
0
194
0.112791
21941897416bc012f80774571a8681a87ac48cad
6,858
py
Python
captcha_cnn/runbycolab.py
Rhysn/captcha_break
5c2675deaff105a323a80c4631f3cf01d76ae345
[ "MIT" ]
null
null
null
captcha_cnn/runbycolab.py
Rhysn/captcha_break
5c2675deaff105a323a80c4631f3cf01d76ae345
[ "MIT" ]
null
null
null
captcha_cnn/runbycolab.py
Rhysn/captcha_break
5c2675deaff105a323a80c4631f3cf01d76ae345
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # coding:utf-8 #pip install graphic-verification-code from captcha.image import ImageCaptcha import random,gvcode import numpy as np import tensorflow as tf number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n...
37.681319
141
0.594051
5,100
0.739774
0
0
0
0
0
0
781
0.113287
2194785ae66285d905bdd54bde253e59e60bc9d5
1,476
py
Python
progs/PyEpoch-master/PyEpoch-master/example.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/PyEpoch-master/PyEpoch-master/example.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/PyEpoch-master/PyEpoch-master/example.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
# PyEpoch Module Example File. import pyepoch # -- TODAY() -- # The today() function returns today's date. today = pyepoch.today() print("Today's date & time:") print(today) # -- TIMEZONE() -- # The timezone() function returns a date with a different timezone. # timezone() takes two(2) arguments: # - date = a da...
31.404255
117
0.680217
0
0
0
0
0
0
0
0
1,198
0.811653
2195d746a275485f7b8e060e078812f4fd92ce29
9,615
py
Python
plugins.disable/warpy_plugin/warpy_plugin.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
38
2015-02-12T11:57:59.000Z
2018-11-15T16:03:45.000Z
plugins.disable/warpy_plugin/warpy_plugin.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
68
2015-02-05T23:29:47.000Z
2017-12-27T08:26:25.000Z
plugins.disable/warpy_plugin/warpy_plugin.py
StarryPy/StarryPy-Historic
b9dbd552b8c4631a5a8e9dda98b7ba447eca59da
[ "WTFPL" ]
21
2015-02-06T18:58:21.000Z
2017-12-24T20:08:59.000Z
# -*- coding: UTF-8 -*- from base_plugin import SimpleCommandPlugin from plugins.core.player_manager_plugin import permissions, UserLevels from utility_functions import build_packet, move_ship_to_coords, extract_name from packets import ( Packets, WarpAliasType, WarpWorldType, WarpActionType, player...
36.83908
79
0.555174
9,156
0.952262
0
0
2,107
0.219137
0
0
1,643
0.170879
2197966d631c9c92b13301a3f1143b67b6729392
1,735
py
Python
sum/4-sum-II.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
sum/4-sum-II.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
sum/4-sum-II.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
# LTE using two pointers O(n**3) class Solution(object): def fourSumCount(self, A, B, C, D): # corner case: if len(A) == 0: return 0 A.sort() B.sort() C.sort() D.sort() count = 0 for i in range(len(A)): for j in range(len(B)...
26.287879
71
0.311816
1,669
0.96196
0
0
0
0
0
0
218
0.125648
219817d56a9878e2e56c8fd6d1d6e60bcea7971d
1,693
py
Python
event/filetype_check_pull_request_handler.py
micnncim/spinnakerbot
449a1ba76c62619b515691dbd21f791f5f1d3e5b
[ "Apache-2.0" ]
null
null
null
event/filetype_check_pull_request_handler.py
micnncim/spinnakerbot
449a1ba76c62619b515691dbd21f791f5f1d3e5b
[ "Apache-2.0" ]
null
null
null
event/filetype_check_pull_request_handler.py
micnncim/spinnakerbot
449a1ba76c62619b515691dbd21f791f5f1d3e5b
[ "Apache-2.0" ]
null
null
null
from .handler import Handler from .pull_request_event import GetPullRequest, GetRepo format_message = ('We prefer that non-test backend code be written in Java or Kotlin, rather ' + 'than Groovy. The following files have been added and written in Groovy:\n\n' + '{}\n\n' + 'See our server-side ...
36.021277
140
0.606615
1,224
0.722977
0
0
0
0
0
0
462
0.272888
21995407ba2e718df75670c68ae5c377959bb276
96
py
Python
venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/8f/3e/26/6ee86ef4171b7194b098a053f1e488bca8ba920931fd5f9fb809ad9a37
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
21997f6cf26e1689e600188920ad6640d1b47a5e
4,231
py
Python
deployment/code/scp-03-Permission.py
weiping-bj/SCP-Workaround-in-AWS-ChinaRegions
f8feeed0fa568cf01b35e092681a975c5b7a8c54
[ "MIT" ]
1
2021-11-08T06:10:40.000Z
2021-11-08T06:10:40.000Z
deployment/code/scp-03-Permission.py
weiping-bj/SCP-Workaround-in-AWS-ChinaRegions
f8feeed0fa568cf01b35e092681a975c5b7a8c54
[ "MIT" ]
null
null
null
deployment/code/scp-03-Permission.py
weiping-bj/SCP-Workaround-in-AWS-ChinaRegions
f8feeed0fa568cf01b35e092681a975c5b7a8c54
[ "MIT" ]
1
2022-03-30T06:24:16.000Z
2022-03-30T06:24:16.000Z
import json import os import boto3 topicArn = os.environ['TOPIC_ARN'] assumedRole = os.environ['ASSUMED_ROLE'] scpBoundary = os.environ['SCP_BOUNDARY_POLICY'] sns_client = boto3.client('sns') sts_client = boto3.client('sts') def lambda_handler(event, context): print(event) accountID = event['account'] ...
32.05303
120
0.605294
0
0
0
0
0
0
0
0
1,119
0.262861
219a50648cf64b278567555f4d618a30757f4bc1
1,200
py
Python
betfairlightweight/endpoints/navigation.py
rozzac90/betfair
de885adf308e48bfc2614df46a5375a7df6386ef
[ "MIT" ]
1
2020-04-15T22:17:26.000Z
2020-04-15T22:17:26.000Z
betfairlightweight/endpoints/navigation.py
rozzac90/betfair
de885adf308e48bfc2614df46a5375a7df6386ef
[ "MIT" ]
null
null
null
betfairlightweight/endpoints/navigation.py
rozzac90/betfair
de885adf308e48bfc2614df46a5375a7df6386ef
[ "MIT" ]
1
2021-04-26T14:47:28.000Z
2021-04-26T14:47:28.000Z
from requests import ConnectionError from ..exceptions import APIError from ..utils import check_status_code from .baseendpoint import BaseEndpoint class Navigation(BaseEndpoint): """ Navigation operations. """ def list_navigation(self, session=None): """ This Navigation Data for App...
30
85
0.66
1,048
0.873333
0
0
70
0.058333
0
0
308
0.256667
219aa4d5dddc72d3249a60a8339ee2344c7a1e6b
3,733
py
Python
datasets/fbp_dataset.py
Zumo09/Feedback-Prize
e7e7343a81bfec2f5b187f2266154da0bbe48fb9
[ "MIT" ]
null
null
null
datasets/fbp_dataset.py
Zumo09/Feedback-Prize
e7e7343a81bfec2f5b187f2266154da0bbe48fb9
[ "MIT" ]
null
null
null
datasets/fbp_dataset.py
Zumo09/Feedback-Prize
e7e7343a81bfec2f5b187f2266154da0bbe48fb9
[ "MIT" ]
null
null
null
import os from tqdm import tqdm from functools import reduce from typing import Dict, List, Callable, Tuple import numpy as np import pandas as pd from sklearn.preprocessing import OrdinalEncoder import torch from torch.utils.data import Dataset class FBPDataset(Dataset): def __init__( self, doc...
30.85124
88
0.595232
2,174
0.582373
0
0
320
0.085722
0
0
417
0.111706
219b49298771b09ffd76ddb885ed2c8ac603b1e4
614
py
Python
mtw/fl_user/urls.py
sukumar1612/medical-transcription-website
8ac2aaaec2e93a2f512e9f22fbf805c9c36a0d6d
[ "MIT" ]
2
2021-05-24T06:08:41.000Z
2021-05-26T19:21:01.000Z
mtw/fl_user/urls.py
sukumar1612/medical-transcription-website
8ac2aaaec2e93a2f512e9f22fbf805c9c36a0d6d
[ "MIT" ]
null
null
null
mtw/fl_user/urls.py
sukumar1612/medical-transcription-website
8ac2aaaec2e93a2f512e9f22fbf805c9c36a0d6d
[ "MIT" ]
3
2021-05-22T11:37:30.000Z
2021-06-01T08:34:01.000Z
from django.urls import path from fl_user import views app_name = 'fl_user' urlpatterns = [ path('receive_data/',views.receive_data, name='receive_data'), path('doctorhome/', views.doctorhome, name='doctorhome'), path('fluhome/', views.fluhome, name='fluhome'), path('sluhome/', views.sluhome, name='s...
36.117647
74
0.726384
0
0
0
0
0
0
0
0
229
0.372964
219b950bb1bd75ed87fec4ee388a2ee1d19a75cf
4,350
py
Python
check_purefa_hw.py
frank-m/nagios-plugins
64681d8c89143f9deb9f3bd9a9c2d4e9bd040bb0
[ "Apache-2.0" ]
null
null
null
check_purefa_hw.py
frank-m/nagios-plugins
64681d8c89143f9deb9f3bd9a9c2d4e9bd040bb0
[ "Apache-2.0" ]
null
null
null
check_purefa_hw.py
frank-m/nagios-plugins
64681d8c89143f9deb9f3bd9a9c2d4e9bd040bb0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018, 2019, 2020 Pure Storage, Inc. # # * Overview # # This short Nagios/Icinga plugin code shows how to build a simple plugin to monitor Pure Storage FlashArrays. # The Pure Storage Python REST Client is used to query the FlashArray. # # * Installation # # The script should be co...
39.189189
117
0.691494
1,675
0.385057
0
0
334
0.076782
0
0
2,273
0.522529