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
79a565e7d7928d619d4922162412c3aac164285d
3,016
py
Python
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
4
2021-02-08T16:18:12.000Z
2021-12-28T07:13:51.000Z
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
null
null
null
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict from nonebot.log import logger from peewee import JOIN from .db import DB from .tables import BilibiliUser, BilibiliUserStatus, FollowLink, Group def log_sql(s): # logger.debug(f"[DB:SQL] {s.sql()}") return s def get_all_groups(): yield from ...
24.92562
78
0.655172
0
0
60
0.019894
0
0
0
0
60
0.019894
79a69b808745f05349b2ede483ce4782883293d0
1,536
py
Python
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
5
2015-07-14T17:11:24.000Z
2016-07-28T11:52:03.000Z
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
null
null
null
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
null
null
null
db = 'log.db' import sqlite3 import time dbc = sqlite3.connect(db, check_same_thread=False) dbc.text_factory = str c = dbc.cursor() def key(obj): return obj[2] while True: c.execute('SELECT userid, name, COUNT(`date`) FROM log WHERE `date` > \'' + time.strftime('%Y-%m-%d 00:00:00') + '\' AND result=1 GROUP BY use...
45.176471
149
0.575521
0
0
0
0
0
0
0
0
719
0.468099
79a7ef7c11468985df93521d767d16d3db7e7f54
1,949
py
Python
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #Copyright 2018 Jim Van Fleet #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law or agreed to ...
34.192982
73
0.531042
1,363
0.699333
0
0
0
0
0
0
650
0.333504
79aa3668bb043f0729ae0d753b69ad0de26cb30d
2,270
py
Python
models/networkgcn.py
Byomyyt/GnTCN
b4cc9e97fc0b0438deb0a7e118817a7ab73ae93c
[ "MIT" ]
91
2021-04-06T15:33:11.000Z
2022-03-31T05:16:27.000Z
models/networkgcn.py
ddddwee1/GnTCN
e1abb8c526b2a9904d6f964b0084b54f123b82c9
[ "MIT" ]
17
2021-01-04T09:08:20.000Z
2022-03-17T11:45:27.000Z
models/networkgcn.py
ddddwee1/GnTCN
e1abb8c526b2a9904d6f964b0084b54f123b82c9
[ "MIT" ]
15
2021-01-18T01:54:23.000Z
2021-09-24T01:29:32.000Z
import numpy as np import torch import torch.nn.functional as F from TorchSUL import Model as M from torch.nn.parameter import Parameter import torch.nn.init as init class PropLayer(M.Model): def initialize(self, outdim, usebias=True): self.outdim = outdim self.act = torch.nn.ReLU() self.act2 = torch.nn.Re...
27.02381
75
0.657269
2,093
0.922026
0
0
0
0
0
0
244
0.107489
79ac7f2c83fe009a0c2f95dafc3599ebde6411df
307
py
Python
tests/backends/test_init.py
benkrikler/fast-carpenter-github-test
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
12
2019-05-17T13:02:20.000Z
2020-08-31T08:16:47.000Z
tests/backends/test_init.py
FAST-HEP/fast-carpenter
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
104
2019-05-17T16:25:35.000Z
2022-03-28T16:11:10.000Z
tests/backends/test_init.py
benkrikler/fast-carpenter-github-test
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
16
2019-05-20T16:57:48.000Z
2020-09-28T16:36:21.000Z
import pytest import fast_carpenter.backends as backends def test_get_backend(): coffea_back = backends.get_backend("coffea:dask") assert hasattr(coffea_back, "execute") with pytest.raises(ValueError) as e: backends.get_backend("doesn't exist") assert "Unknown backend" in str(e)
25.583333
53
0.732899
0
0
0
0
0
0
0
0
54
0.175896
79ae5d267641860a50ba60429c85299cdeeef14d
1,534
py
Python
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
10
2020-08-30T03:19:10.000Z
2021-08-08T17:38:06.000Z
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
null
null
null
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
6
2020-08-30T03:19:13.000Z
2021-11-26T23:32:42.000Z
from typing import Dict import logging logger = logging.getLogger(__name__) def path_builder(url: str, path: str) -> str: if path == "" or path is None: return url if path.startswith("/"): path = path[1:] if url.endswith("/"): url = f"{url}{path}" else: url = f"{url}/{...
27.890909
140
0.627119
0
0
0
0
0
0
0
0
407
0.265319
79ae9cb10f166f65649baf95240f5d262fca4fa9
1,856
py
Python
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
import typing class NotRelativePrimeError(ValueError): def __init__(self, a, b, d, msg=''): super().__init__(msg or "%d and %d are not relatively prime, divider=%i" % (a, b, d)) self.a = a self.b = b self.d = d def bit_size(num: int) -> int: try: return num.bit_length...
25.424658
93
0.553341
232
0.125
0
0
0
0
0
0
713
0.384159
79af2c5e0250f4d13af181fe19d4ed482ecdc804
12,217
py
Python
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
import datetime import json import os from uuid import uuid4 import pytest import numpy as np from pandas import util from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile from whylogs.core.model_profile import ModelProfile from whylogs.util import time from whylogs.util.protobuf im...
35.106322
107
0.681919
0
0
0
0
0
0
0
0
1,648
0.134894
79af4b15407f4473ba60b0d4c07074b41824263f
2,645
py
Python
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
4
2018-01-24T01:34:39.000Z
2021-01-14T21:29:47.000Z
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
2
2018-06-09T22:28:56.000Z
2018-06-12T01:40:10.000Z
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 ''' The CLI API definition, available to both the core and plugins. ''' import sys from ..exceptions import NotInstalled from .. import __installed__ # Define the global name to launcher function map. _launchers = dict() # Define a single character to launcher function map. _shortforms = dict() def ...
25.432692
76
0.677127
0
0
0
0
0
0
0
0
1,191
0.450284
79b1464dc8a1a2223cbbc525bfa7851ed4e2bee9
1,408
py
Python
lego/apps/gallery/migrations/0006_auto_20171210_1610.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/gallery/migrations/0006_auto_20171210_1610.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/gallery/migrations/0006_auto_20171210_1610.py
wahello/lego
a0b02f3abc997fe96326e9c9c05b49847170041b
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
# Generated by Django 2.0 on 2017-12-10 16:10 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("gallery", "0005_auto_20170912_1708")] operations = [ migrations.AlterField( m...
29.333333
61
0.52983
1,251
0.888494
0
0
0
0
0
0
196
0.139205
79b154f9526abf942504a9812110e0bdc124d139
1,898
py
Python
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
1
2019-05-28T11:32:11.000Z
2019-05-28T11:32:11.000Z
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
null
null
null
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
null
null
null
from os import unlink from random import randint import util import tempfile def config_setup(stack, *configs): config_name = "tconfig" + str(randint(1000, 5000)) fp = tempfile.NamedTemporaryFile(delete=False) for c in configs: fp.write(bytes(c+"\n", 'utf8')) fp.close() util.run(f"rio ...
21.325843
68
0.615385
0
0
0
0
0
0
0
0
318
0.167545
79b1746a37fe8892a2af50ecacc257f9f91b14cd
1,090
py
Python
Semana5/lab05/tienda/models.py
SPFelipe/TECSUP-DAE-2021-2
ec218d0a7fa66a73e3e0a8889e325cf2ce2a74d3
[ "MIT" ]
null
null
null
Semana5/lab05/tienda/models.py
SPFelipe/TECSUP-DAE-2021-2
ec218d0a7fa66a73e3e0a8889e325cf2ce2a74d3
[ "MIT" ]
null
null
null
Semana5/lab05/tienda/models.py
SPFelipe/TECSUP-DAE-2021-2
ec218d0a7fa66a73e3e0a8889e325cf2ce2a74d3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Categoria(models.Model): nombre = models.CharField(max_length=200) pub_date = models.DateTimeField('Fecha Creación') def __str__(self): return self.nombre class Product(models.Model): categoria = models.ForeignKey(Categoria, on_del...
34.0625
70
0.725688
1,030
0.943223
0
0
0
0
0
0
100
0.091575
79b4abdae3efe0c4ff65adf1b7ab722b6fbb2d46
71
py
Python
PyUdemy/Day1/variables.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
PyUdemy/Day1/variables.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
PyUdemy/Day1/variables.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
a=input("a= ") b=input("b= ") aa=a a=b b=aa print("a=",a) print("b=",b)
10.142857
14
0.507042
0
0
0
0
0
0
0
0
18
0.253521
79b4dd93658058c4c08b578922c3ee4d84c4d4e5
5,548
py
Python
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
import os import datetime import csv import time import random from time import sleep from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementExceptio...
53.864078
188
0.605443
5,097
0.918213
0
0
0
0
0
0
1,411
0.254188
79b52191dc7ea7de4c6237513c7af4e22ce1b28f
3,339
py
Python
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
null
null
null
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
6
2019-12-13T09:55:45.000Z
2022-03-11T23:47:29.000Z
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
1
2019-05-16T06:58:16.000Z
2019-05-16T06:58:16.000Z
# Copyright (c) 2012-2016 Seafile Ltd. """ The MIT License (MIT) Copyright (c) 2013 Omar Bohsali 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 ...
38.825581
152
0.7059
2,056
0.615753
0
0
0
0
0
0
2,219
0.66457
79b68a6d1a405ace81c0d0f659613828d57db047
3,203
py
Python
data/make_stterror_data/tts.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
32
2020-01-03T09:53:03.000Z
2021-09-07T07:23:26.000Z
data/make_stterror_data/tts.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
null
null
null
data/make_stterror_data/tts.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
6
2020-01-21T06:50:21.000Z
2021-01-22T08:04:00.000Z
import data.make_stterror_data.utils as utils import os import sys import subprocess # TTS imports from gtts import gTTS import pyttsx3 # sys.path.append("~/PycharmProjects/pyfestival") # https://github.com/techiaith/pyfestival/pull/4 # import festival __author__ = 'Gwena Cunha' """ Text-To-Speech Module """ ...
42.706667
127
0.675617
2,881
0.899469
0
0
0
0
0
0
1,068
0.333437
79b7a93216b116c4fe2b33e6f3183397b498a763
1,047
py
Python
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
from year2019.intcode_v2 import Intcode from common import input_integer_sep def part_one(inp_list): program1 = ( "NOT A J\n" "NOT B T\n" "OR T J\n" "NOT C T\n" "OR T J\n" "AND D J\n" "WALK\n" ) p = Intcode( inp_list, [ord(char) for ch...
20.529412
43
0.472779
0
0
0
0
0
0
0
0
216
0.206304
79b7cbd53300df46238acfe16835276ec2f45c5e
2,252
py
Python
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
7
2015-07-01T18:01:40.000Z
2019-12-27T02:04:07.000Z
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
6
2015-07-01T11:32:34.000Z
2021-06-10T20:35:32.000Z
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
10
2015-07-01T11:20:35.000Z
2020-10-02T18:58:07.000Z
import logging from django.core.management.base import BaseCommand from django.template.defaultfilters import slugify from july.models import User from july.people.models import Location from july.utils import check_location from optparse import make_option class Command(BaseCommand): help = 'fix locations' ...
32.637681
79
0.517318
1,988
0.882771
0
0
0
0
0
0
249
0.110568
79b9401f776d3b7758cf615a45ec455370cc2331
42
py
Python
tests/identifiers/__init__.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
8
2019-09-25T14:45:28.000Z
2021-11-08T10:30:03.000Z
tests/identifiers/__init__.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
113
2018-07-10T12:58:16.000Z
2020-12-09T22:33:15.000Z
tests/identifiers/__init__.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
12
2018-07-10T11:00:02.000Z
2021-01-27T12:19:56.000Z
"""Tests for package name identifiers."""
21
41
0.714286
0
0
0
0
0
0
0
0
41
0.97619
79b9db085b3980a703000d7ded2a0b497ec1fcdd
6,338
py
Python
core/feature/gps_location_daywise/gps_location_daywise.py
MD2Korg/CerebralCortex-DataAnalysis
73f5ea2430bc7c23de422dccb7b65ef9f8917595
[ "BSD-2-Clause" ]
1
2018-04-24T18:11:24.000Z
2018-04-24T18:11:24.000Z
core/feature/gps_location_daywise/gps_location_daywise.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
10
2018-03-13T19:04:09.000Z
2018-05-12T01:40:03.000Z
core/feature/gps_location_daywise/gps_location_daywise.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
42
2017-12-07T17:08:14.000Z
2019-06-02T08:25:12.000Z
# Copyright (c) 2018, MD2K Center of Excellence # - Alina Zaman <azaman@memphis.edu> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copy...
48.015152
114
0.631745
4,311
0.680183
0
0
0
0
0
0
2,328
0.367308
79bc0b508670cb51847c1e5dbe41b345258f4db3
263
py
Python
Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
rows, columns = [int(x) for x in input().split(", ")] matrix = [[int(i) for i in input().split()] for _ in range(rows)] for column in range(columns): sum_column = 0 for row in range(rows): sum_column += matrix[row][column] print(sum_column)
26.3
65
0.619772
0
0
0
0
0
0
0
0
4
0.015209
79bc48970d40d17cad24372399c2613c8f57a896
2,939
py
Python
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
2
2020-04-28T07:59:30.000Z
2020-05-17T15:36:04.000Z
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
import sys import uuid import psutil import time from datetime import datetime # remove for production from pprint import pprint from functools import reduce import function_lib as lib class Invocation: def __init__(self, exp_uuid: str, root: str, data: dict): self.exp_id = exp_uuid self.root_ide...
40.819444
131
0.543042
2,750
0.935692
0
0
0
0
0
0
690
0.234774
79bc840d240556a6ff5b245bea2de77b90bf2da0
470
py
Python
mysite/news/forms.py
rsg33/testsite
939e5c25f2e128c30d4a8593337059971587dd3c
[ "MIT" ]
null
null
null
mysite/news/forms.py
rsg33/testsite
939e5c25f2e128c30d4a8593337059971587dd3c
[ "MIT" ]
null
null
null
mysite/news/forms.py
rsg33/testsite
939e5c25f2e128c30d4a8593337059971587dd3c
[ "MIT" ]
null
null
null
from django import forms from .models import News class NewsForm(forms.ModelForm): class Meta: model = News # fields = '__all__' fields = ['title', 'content', 'is_published', 'category'] widgets = { 'title': forms.TextInput(attrs={'class': 'form-control'}), ...
33.571429
82
0.574468
418
0.889362
0
0
0
0
0
0
155
0.329787
79bcabef33a714ea5bd9e55eb07ea14a99365d51
4,123
py
Python
src/pymor/tools/io/vtk.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
2
2022-03-22T11:47:12.000Z
2022-03-22T11:48:23.000Z
src/pymor/tools/io/vtk.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
14
2022-01-05T09:25:11.000Z
2022-03-31T17:07:10.000Z
src/pymor/tools/io/vtk.py
moro1111/pymor
aa03f2521ee3c7b8a9e7da4cb109caea4c788b29
[ "Unlicense" ]
1
2022-03-28T10:58:18.000Z
2022-03-28T10:58:18.000Z
# This file is part of the pyMOR project (https://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause) from pymor.core.config import config config.require('VTKIO') from pathlib import Path import meshio fro...
32.464567
113
0.66408
0
0
0
0
0
0
0
0
1,904
0.4618
79be6504986834ffb4fc631ea1dcce3c139c7fb4
161
py
Python
wsmode/exceptions.py
29527/OKExPyWebsocket
d084373e0bf18ca533bcc8f4fc1ba051d6be0209
[ "MIT" ]
2
2021-08-20T10:01:22.000Z
2021-11-07T21:41:35.000Z
wsmode/exceptions.py
29527/OKExPyWebsocket
d084373e0bf18ca533bcc8f4fc1ba051d6be0209
[ "MIT" ]
null
null
null
wsmode/exceptions.py
29527/OKExPyWebsocket
d084373e0bf18ca533bcc8f4fc1ba051d6be0209
[ "MIT" ]
3
2021-08-18T09:07:15.000Z
2022-03-11T08:09:06.000Z
class MessageTypeNotExist(Exception): """ 消息类型不存在 """ pass class TopicMessageTypeNotExist(Exception): """ 主题消息类型不存在 """ pass
10.733333
42
0.590062
189
0.979275
0
0
0
0
0
0
80
0.414508
79bf7da39552fc06aca988e7aec5e90f151e4f97
159
py
Python
cart/admin.py
shaongitt/boihut
d93c6b503dd7ad4f37dc572a6dec21f593bf7b35
[ "BSD-2-Clause" ]
null
null
null
cart/admin.py
shaongitt/boihut
d93c6b503dd7ad4f37dc572a6dec21f593bf7b35
[ "BSD-2-Clause" ]
null
null
null
cart/admin.py
shaongitt/boihut
d93c6b503dd7ad4f37dc572a6dec21f593bf7b35
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from .models import Cart,CartItems # Register your models here. admin.site.register(CartItems) admin.site.register(Cart)
26.5
35
0.792453
0
0
0
0
0
0
0
0
29
0.18239
79c3715dd99e77bde511c274c350ef404bb7cf2e
1,887
py
Python
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
import torch.nn as nn from models.blocks import GlobalAvgPool2d class _VanillaConvBlock(nn.Module): def __init__(self, in_channels, out_channels, kernel_size): super(_VanillaConvBlock, self).__init__() self._block = nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size, str...
39.3125
110
0.581346
1,816
0.962374
0
0
0
0
0
0
0
0
79c4397925c5e818a6ed0d6ef4f084f5009de3b4
1,079
py
Python
routemaster_sdk/exceptions.py
thread/routemaster-sdk
1300508525a3e1495c640f9c7ff689bb6f621d7e
[ "MIT" ]
null
null
null
routemaster_sdk/exceptions.py
thread/routemaster-sdk
1300508525a3e1495c640f9c7ff689bb6f621d7e
[ "MIT" ]
null
null
null
routemaster_sdk/exceptions.py
thread/routemaster-sdk
1300508525a3e1495c640f9c7ff689bb6f621d7e
[ "MIT" ]
null
null
null
"""Well known exceptions.""" from routemaster_sdk.types import LabelRef, StateMachine class UnknownLabel(ValueError): """Represents a label unknown in the given state machine.""" deleted = False def __init__(self, label: LabelRef) -> None: self.label = label def __str__(self): retur...
26.975
77
0.682113
980
0.908248
0
0
0
0
0
0
291
0.269694
79c473b0364a6ca1e495e68f26cc755757c8686b
604
py
Python
servicebox/platforms/api/views.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
servicebox/platforms/api/views.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
servicebox/platforms/api/views.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
from platforms.models import PlatformGroup, Platform from rest_framework import viewsets from platforms.api.serializers import PlatformGroupSerializer, PlatformSerializer class PlatformViewSet(viewsets.ModelViewSet): """ API endpoint that allows tenants to be viewed or edited. """ queryset = Platform...
27.454545
81
0.768212
427
0.706954
0
0
0
0
0
0
150
0.248344
79c4bc7411a8ceae834135ef0832c81c48a8f427
5,528
py
Python
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
1
2019-03-20T07:10:08.000Z
2019-03-20T07:10:08.000Z
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
import cv2 import numpy as np from scipy.ndimage.filters import gaussian_filter from scipy.ndimage.interpolation import map_coordinates def upsample(image, image_size_target): padding0 = (image_size_target - image.shape[0]) / 2 padding1 = (image_size_target - image.shape[1]) / 2 padding_start0 = int(np.ce...
38.929577
120
0.680174
0
0
0
0
0
0
0
0
606
0.109624
79c67d96a3b58ae9b3f7d1e5efc7a2527f181276
1,663
py
Python
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
null
null
null
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
43
2020-02-06T22:23:42.000Z
2020-04-29T23:56:43.000Z
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
2
2020-02-06T21:01:42.000Z
2020-02-06T23:43:11.000Z
from taskobra.orm import * import platform import cpuinfo import subprocess def create_system(args, database_engine): system = System(name=platform.node()) cpu_info = cpuinfo.get_cpu_info() system.add_component(OperatingSystem( name=platform.system(), version=platform.platform(), )) ...
25.984375
74
0.578473
0
0
0
0
0
0
0
0
646
0.388455
79ca87eadda13d9fdb7282bf224ad560fc96b076
2,392
py
Python
expression_builder/tests/test_string_replace.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
expression_builder/tests/test_string_replace.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
expression_builder/tests/test_string_replace.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
import unittest from expression_builder.exceptions import ExpressionError from expression_builder.expression_builder import ExpressionBuilder class StringReplaceTests(unittest.TestCase): # noinspection PyPep8Naming def setUp(self): self.exp = ExpressionBuilder() self.exp.add_to_global("fred"...
36.8
86
0.640886
2,246
0.938963
0
0
0
0
0
0
390
0.163043
79ca9ccc9aed4b417288aeae0d80662e45b6689d
309
py
Python
example/simple.py
yoophi/str_pic
e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b
[ "MIT" ]
null
null
null
example/simple.py
yoophi/str_pic
e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b
[ "MIT" ]
3
2021-06-08T19:34:37.000Z
2022-03-11T23:18:13.000Z
example/simple.py
yoophi/str_pic
e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_dummyimage import DummyImage app = Flask(__name__) dummyimage = DummyImage(app, url_prefix="/dm", endpoint="images", route="img") @app.route("/") def index(): return render_template("index.html") if __name__ == "__main__": app.run(debug=True)
19.3125
78
0.721683
0
0
0
0
69
0.223301
0
0
43
0.139159
79cc5960935ea7fbba4fb0eb6555e1ecb03c2fbf
1,562
py
Python
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
4
2020-05-09T11:01:32.000Z
2020-06-03T14:44:06.000Z
mints/args/typed.py
candy-kingdom/cli
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
43
2020-01-27T21:14:16.000Z
2020-06-18T17:57:20.000Z
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
null
null
null
from typing import Type, Any class Typed: """A typed command line argument. A typed command line argument is used for specifying the type to convert the value to. For example, consider the following code: @cli def double(number: Opt[int]('A number to double.')): print(number ...
31.877551
78
0.587068
1,530
0.979513
0
0
0
0
0
0
1,135
0.726633
79cd97ed3020f125684d084c92be22793583d226
5,994
py
Python
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
import json import time import cherrypy class albums: def __init__(self,artist,year,title,num): self.artist=artist self.year=year self.title=title self.N=num class owner(albums): def __init__(self,nome,date): self.album_list=[] self.nome=nome self.last_...
45.067669
101
0.584918
5,542
0.924591
0
0
1,310
0.218552
0
0
672
0.112112
79ce0327616efa9691f6ae8fe41ab9246d6bf9e6
143
py
Python
tests/redirects_tests/urls.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/redirects_tests/urls.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/redirects_tests/urls.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from django.http import HttpResponse urlpatterns = [ url(r'^$', lambda req: HttpResponse('OK')), ]
20.428571
48
0.678322
0
0
0
0
0
0
0
0
9
0.062937
79d29ea8f56cec3596c251c94d5aca0bfd3a1026
1,653
pyde
Python
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
import random from itertools import product CS = 10 # cell size W = 600 # width H = 600 # height COLS = W // CS ROWS = H // CS DENSITY = 0.35 dirs = list(product((-1, 0, 1), repeat=2)) dirs.remove((0, 0)) points = [] new_points = [] run = False def xy2flat(x, y): x = (x + COLS) % COLS y = (y + ROWS) % RO...
21.467532
66
0.557774
0
0
0
0
0
0
0
0
77
0.046582
79d585582066d6853246fd14d5eec7b556e67b85
5,064
py
Python
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil from conans import ConanFile, CMake, tools class LibwebpConan(ConanFile): name = "libwebp" version = "1.0.0" description = "library to encode and decode images in WebP format" url = "http://github.com/bincrafters/conan-libwebp" ...
42.2
120
0.634874
4,947
0.976896
0
0
101
0.019945
0
0
1,890
0.373223
79d5867444343ac92dd71c753e06968277e1c875
5,184
py
Python
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
2
2020-04-04T21:09:56.000Z
2020-04-08T17:00:58.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
13
2020-04-11T21:50:57.000Z
2020-04-19T03:19:48.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Exposes several methods for transmitting cyclic messages. The main entry point to these classes should be through :meth:`can.BusABC.send_periodic`. """ import abc import logging import threading import time import warnings log = logging.getLogger('can.bcm') class CyclicTask(object): """ ...
32.603774
119
0.643711
4,240
0.817901
0
0
274
0.052855
0
0
2,369
0.456983
79d996f9c7b739201903f7162ae39e85d80aae38
513
py
Python
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
5
2017-04-11T00:18:42.000Z
2021-08-01T04:27:20.000Z
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
47
2017-04-27T18:57:27.000Z
2017-07-16T21:18:28.000Z
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
4
2018-05-17T12:33:59.000Z
2022-02-20T16:08:51.000Z
from pywintypes import com_error import win32com.client from main import OutputError, BrailleOutput class Virgo (BrailleOutput): """Braille output supporting the Virgo screen reader.""" name = 'Virgo' def __init__(self, *args, **kwargs): super (Virgo, self).__init__(*args, **kwargs) try: self.object = win...
23.318182
68
0.744639
411
0.80117
0
0
0
0
0
0
88
0.17154
79da26b04e69fcee30b862a1e5dd200b98e09556
3,050
py
Python
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
2
2021-04-26T16:37:38.000Z
2022-03-15T01:26:19.000Z
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
null
null
null
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
1
2022-03-15T01:26:23.000Z
2022-03-15T01:26:23.000Z
import pandas as pd import numpy as np from os import path from path_service import LOG_DIR, DATA_DIR from sklearn.metrics import log_loss import re prob_columns = list(map(lambda x: f"prob{x}", range(8))) prob_columns_without_end = list(map(lambda x: f"prob{x}", range(7))) def row_check(df: pd.DataFrame): df.loc...
34.659091
106
0.627213
0
0
0
0
0
0
0
0
301
0.098689
79daca46089122299df7193b935021df51332239
1,255
py
Python
tests/test_data.py
tappitikarrass/flask-ap
88b97bb522474ca3dc056c209640050af74cb5dc
[ "BSD-3-Clause" ]
null
null
null
tests/test_data.py
tappitikarrass/flask-ap
88b97bb522474ca3dc056c209640050af74cb5dc
[ "BSD-3-Clause" ]
null
null
null
tests/test_data.py
tappitikarrass/flask-ap
88b97bb522474ca3dc056c209640050af74cb5dc
[ "BSD-3-Clause" ]
null
null
null
import base64 # USER post_user_data_200 = { "username": "sbandera1", "firstname": "Stepan", "lastname": "Bandera", "email": "stepanko@liamg.com", "phone": "123", "password": "supersecret" } post_user_alt_data_200 = { "username": "ivanbahryanyi", "firstname": "Ivan", "lastname": "Bahryanyi",...
22.818182
87
0.663745
0
0
0
0
0
0
0
0
673
0.536255
79dc47eea0d2277e80b8015449551a4eef9526a7
235
py
Python
terrafirma/calendar/apps.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
terrafirma/calendar/apps.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
terrafirma/calendar/apps.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class CalendarConfig(AppConfig): name = 'terrafirma.calendar' label = 'terrafirma_calendar' verbose_name = _('Terrafirma Calendar')
26.111111
54
0.770213
143
0.608511
0
0
0
0
0
0
63
0.268085
79dd7101e6c2dbca64177e87d238cd48079dd45d
6,466
py
Python
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
4
2019-10-18T01:27:48.000Z
2020-02-14T05:45:29.000Z
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
3
2020-02-10T05:58:30.000Z
2020-09-28T22:42:04.000Z
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
null
null
null
# Copyright 2019 https://github.com/kodi-addons # # 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 rights # to use, copy, modify, merge, p...
38.951807
115
0.665636
0
0
0
0
4,904
0.758429
0
0
1,722
0.266316
79df34a92c6aa109d6fb09a1fbe24d44b829d071
3,440
py
Python
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
import pickle from flask import Flask, request, jsonify, session from flask_cors import CORS, cross_origin import sklearn from sklearn.decomposition import TruncatedSVD import pandas as pd import numpy as np ranks = [] app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' class Model: ...
23.888889
127
0.563081
2,040
0.593023
0
0
931
0.27064
0
0
645
0.1875
8dab135854cbf1898ed8a1808f3a10f5e2425b1b
235
py
Python
ccr/urls.py
nikhil96sher/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
12
2015-12-30T06:31:57.000Z
2017-12-26T01:42:18.000Z
ccr/urls.py
nikhilsheoran96/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
null
null
null
ccr/urls.py
nikhilsheoran96/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
5
2015-12-30T07:06:22.000Z
2019-04-24T05:46:01.000Z
from django.conf.urls import patterns,url from ccr import views urlpatterns=patterns( '', url(r'^$',views.main), url(r'^save/',views.save), url(r'^template/',views.template), url(r'^compile/',views.compile), url(r'^run/',views.run), )
21.363636
41
0.702128
0
0
0
0
0
0
0
0
49
0.208511
8daf3e4c8966ce1a6bddee1ab26929f7ffa13135
9,354
py
Python
tools/Project/UI_ModuleMgrDlg.py
wzhengsen/engine-x
f398b94a9a5bb9645c16d12d82d6366589db4e21
[ "MIT" ]
null
null
null
tools/Project/UI_ModuleMgrDlg.py
wzhengsen/engine-x
f398b94a9a5bb9645c16d12d82d6366589db4e21
[ "MIT" ]
null
null
null
tools/Project/UI_ModuleMgrDlg.py
wzhengsen/engine-x
f398b94a9a5bb9645c16d12d82d6366589db4e21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UI/ModuleMgrDlg.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...
55.023529
123
0.715843
9,115
0.96231
0
0
0
0
0
0
1,172
0.123733
8db06f6b303411c51b7e7ee7f461a4a3b7ef48b6
3,941
py
Python
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
null
null
null
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
null
null
null
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
2
2021-10-14T14:38:43.000Z
2022-03-21T16:21:06.000Z
"""Transmissivity classes """ import numpy as np import scipy.integrate as integrate_mod import spowtd.spline as spline_mod def create_transmissivity_function(parameters): """Create a transmissivity function Returns a callable object that returns transmissivity at a given water level. The class of t...
34.269565
73
0.664298
3,168
0.803857
0
0
0
0
0
0
1,467
0.372241
8db1c50adc29a6ffdf16eef7eb3f4db1957e630c
1,737
py
Python
python/hillEquations.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
1
2021-01-07T13:12:51.000Z
2021-01-07T13:12:51.000Z
python/hillEquations.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
7
2020-04-12T22:25:46.000Z
2020-04-13T07:50:40.000Z
python/hillEquations.py
daniel-anavaino/tinkercell
7896a7f809a0373ab3c848d25e3691d10a648437
[ "BSD-3-Clause" ]
2
2020-04-12T21:57:01.000Z
2020-04-12T21:59:29.000Z
""" category: Generate kinetics name: Hill equations description: automatically generate the equilibrium rate equation for transcription icon: hillequation.png menu: yes specific for: Coding tool: yes """ from tinkercell import * from tc2py import * items = tc_selectedItems(); genes = []; for i in range(0,items.lengt...
28.47541
88
0.62061
0
0
0
0
0
0
0
0
492
0.283247
8db29e40510fc64c7655a39c604ac0d49c03c44b
795
py
Python
setup.py
Flowerowl/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
204
2015-01-03T14:29:43.000Z
2021-12-15T16:21:28.000Z
setup.py
QQ83076130/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
5
2015-05-14T10:34:24.000Z
2017-10-09T15:53:47.000Z
setup.py
QQ83076130/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
77
2015-01-13T01:44:16.000Z
2021-12-15T16:21:39.000Z
#encoding:utf-8 from setuptools import setup, find_packages import sys, os version = '0.4.3' setup(name='ici', version=version, description="方便程序员在terminal查询生词的小工具", long_description="""方便程序员在terminal查询生词的小工具""", classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_cla...
27.413793
95
0.632704
0
0
0
0
0
0
0
0
382
0.448884
8db3a905d27b52ca5f7ab31fe8496b3bc345779b
24,074
py
Python
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
4
2017-02-08T22:50:28.000Z
2018-05-29T07:29:47.000Z
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
81
2016-07-19T13:55:12.000Z
2021-05-07T15:03:05.000Z
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
13
2016-07-19T13:33:19.000Z
2019-04-25T08:04:15.000Z
""" Copyright (c) 2015 SONATA-NFV 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 agreed to in...
43.533454
143
0.620005
22,129
0.919055
0
0
1,381
0.057355
0
0
7,936
0.329595
8db3db553de8307aa88c5fde47c1bd6250050be2
2,246
py
Python
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
2
2021-09-05T16:42:13.000Z
2021-09-09T18:41:14.000Z
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Union from discord import Member, User, Embed from discord.ext import commands from bot.main import NewCommand class Avatar(commands.Cog): def __init__(self, client): self.client = client @commands.command( name='avatar', cls=NewComman...
45.836735
269
0.638023
2,028
0.902939
0
0
1,934
0.861086
1,188
0.52894
1,000
0.445236
8db417da99710aab489ce1f6e872bf13a1887670
323
py
Python
pylinkedin/exceptions.py
johnjoo1/scrape-linkedin
4860e90e65aa776ce84afa3041a5bd826790ec0a
[ "MIT" ]
160
2016-06-27T12:55:20.000Z
2021-10-02T12:38:55.000Z
pylinkedin/exceptions.py
johnjoo1/scrape-linkedin
4860e90e65aa776ce84afa3041a5bd826790ec0a
[ "MIT" ]
16
2017-03-23T08:38:32.000Z
2020-02-24T22:39:19.000Z
pylinkedin/exceptions.py
johnjoo1/scrape-linkedin
4860e90e65aa776ce84afa3041a5bd826790ec0a
[ "MIT" ]
55
2017-02-23T14:29:45.000Z
2021-05-03T09:28:19.000Z
class ProfileNotFound(Exception): """ Exception if the linkedin url points to the linkedin not found page """ pass class NotAProfile(Exception): """ Exception raised if you pass a non linkedin profile as url """ pass class ServerIpBlacklisted(Exception): pass class BadStatusCode(Exception): p...
24.846154
79
0.724458
317
0.981424
0
0
0
0
0
0
141
0.436533
8db5993b3ba09fcfb72c92ea6f0805e8ba07d24f
810
py
Python
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
print(isinstance(3, int)) lista = ['marina', 2, 'jujuba'] lista2 = [] for i in lista: if isinstance(i, str): lista2.append(i) print(lista2) myList = ['marina', 123, 9.5] print(isinstance(9.5, int)) #strings items = ['marina', 123, 9.5] print(isinstance(9.5, float)) str_items = ['abc', 'Abc','def', 'BBBB','...
18.837209
54
0.691358
0
0
0
0
0
0
0
0
223
0.275309
8db72819dbae785cf03bf81e31c9e2232cea71f2
1,283
py
Python
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
3
2021-03-13T14:07:25.000Z
2022-03-12T01:51:49.000Z
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
1
2021-09-12T15:03:12.000Z
2021-09-12T15:03:12.000Z
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
null
null
null
import os import logging APP_NAME = 'psycopg3-connpool' # Set to False to force reporting queries to share pool with non-reporting queries REPORTING_POOL = True POOL_MIN_SIZE = 1 POOL_MAX_SIZE = 10 POOL_MAX_IDLE = 60 POOL_STAT_SLEEP = 300 if not REPORTING_POOL: pool_max_size += 5 CURR_PATH = os.path.abspath(...
23.759259
84
0.731878
0
0
0
0
0
0
0
0
480
0.374123
8db775d1dd9bd4e0cb2fd047201ecfb22122ee56
247
py
Python
toughradius/common/__init__.py
capitek-wangsj/toughradius
ee0e6c20d32262ff7a6ace653af5a78340db62a2
[ "Apache-2.0" ]
null
null
null
toughradius/common/__init__.py
capitek-wangsj/toughradius
ee0e6c20d32262ff7a6ace653af5a78340db62a2
[ "Apache-2.0" ]
null
null
null
toughradius/common/__init__.py
capitek-wangsj/toughradius
ee0e6c20d32262ff7a6ace653af5a78340db62a2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 class ObjectDict(dict): def __getattr__(self, name): try: return self[name] except KeyError: raise AttributeError(name) def __setattr__(self, name, value): self[name] = value
24.7
39
0.587045
231
0.935223
0
0
0
0
0
0
15
0.060729
8db868f6631d93b30648549794d251ef271627af
3,695
py
Python
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.examples.tutorials.mnist import mnist TRAIN_FILE = 'train.tfrecords' VALIDATION_FILE = 'train.tfrecords' def lenet(images): net = slim.layers.conv2d(images, 20, [5,5], scope='conv1') net = slim.layers.max_pool2d(net, [2,2...
39.731183
91
0.673884
0
0
0
0
0
0
0
0
1,639
0.443572
8db9b3ff0897bce11d0fb7fc945e79ab18d1a305
2,635
py
Python
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
null
null
null
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
2
2017-12-27T17:38:18.000Z
2017-12-27T17:42:10.000Z
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # # Copyright 2017 - Ben Frankel # # ...
43.196721
83
0.447059
0
0
0
0
0
0
0
0
1,999
0.758634
8db9c18f5e2082b747c4a03ec17f797125c796c9
605
py
Python
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
1
2015-05-04T09:28:14.000Z
2015-05-04T09:28:14.000Z
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from django.core.management import setup_environ import sys sys.path.append('/var/wsgi/maiznet') sys.path.append('/var/wsgi') from maiznet import settings setup_environ(settings) from maiznet.register.models import Presence wfile_announces = open("/var/wsgi/maiznet/tools/ml/emails_announces","w"...
23.269231
73
0.760331
0
0
0
0
0
0
0
0
150
0.247934
8dbb58ecd3a0dc98c548334dbc3b8ca871d442dd
1,368
py
Python
tests/functional/test_actions.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_actions.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_actions.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
42.75
107
0.765351
0
0
0
0
649
0.474415
0
0
700
0.511696
8dbbf348283d5d908174cdee1b01595e478b5b7d
11,798
py
Python
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
5
2019-08-17T07:53:02.000Z
2022-02-26T07:17:37.000Z
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
9
2019-06-28T07:36:10.000Z
2022-03-11T23:48:39.000Z
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
1
2020-04-14T12:48:40.000Z
2020-04-14T12:48:40.000Z
import torch import torch.nn as nn from program.graph_utils import * from helper import fc_block, LayerNormGRUCell # helper class for GraphEncoder class AttrProxy(object): """ Translates index lookups into attribute lookups. To implement some trick which able to use list of nn.Module in a nn.Module s...
32.323288
112
0.577386
11,635
0.986184
0
0
0
0
0
0
1,272
0.107815
8dbd46f30d6dfa6a1507fd5a331fbdfbe41f94f6
744
py
Python
adam_io/utils.py
barcesat/adam_io
c9b36a696dca2338de02925cc9af78bc59b55fce
[ "MIT" ]
null
null
null
adam_io/utils.py
barcesat/adam_io
c9b36a696dca2338de02925cc9af78bc59b55fce
[ "MIT" ]
null
null
null
adam_io/utils.py
barcesat/adam_io
c9b36a696dca2338de02925cc9af78bc59b55fce
[ "MIT" ]
null
null
null
# check with status codes # exceptions # check 'error' and 'status' from socket import inet_pton, inet_aton, AF_INET, error def valid_ipv4(address: str): """ :param address: ip address string :return: if the address is a valid dotted ipv4 address """ try: inet_pton(AF_INET, address) e...
21.257143
58
0.61828
213
0.28629
0
0
0
0
0
0
258
0.346774
8dbf72711729ecd397489eebb67c03ca4962e12f
182
py
Python
core/__init__.py
xmings/IdeaNote
a538d4bf012255a19583f9acc57576c44105283e
[ "Apache-2.0" ]
25
2019-11-13T03:35:34.000Z
2022-03-26T04:13:50.000Z
core/__init__.py
xmings/IdeaNote
a538d4bf012255a19583f9acc57576c44105283e
[ "Apache-2.0" ]
3
2019-11-04T06:23:35.000Z
2021-02-08T07:21:04.000Z
core/__init__.py
xmings/IdeaNote
a538d4bf012255a19583f9acc57576c44105283e
[ "Apache-2.0" ]
null
null
null
#!/bin/python # -*- coding: utf-8 -*- # @File : __init__.py # @Author: wangms # @Date : 2018/8/7 from flask import Blueprint core = Blueprint('core', __name__) from . import view
18.2
34
0.648352
0
0
0
0
0
0
0
0
100
0.549451
8dc0d85e7869f55ab1de18e5ff3544c306008e2b
3,241
py
Python
doc/examples/doc_code/raysgd_torch_signatures.py
thedrow/ray
584645cc7da2bfd7d341d52b59c9c8561dbd119b
[ "Apache-2.0" ]
1
2020-02-25T08:43:46.000Z
2020-02-25T08:43:46.000Z
doc/examples/doc_code/raysgd_torch_signatures.py
mwbrulhardt/ray
b97b8c2be1c7d01e2c93ca97a0b87120bfa2bd1a
[ "Apache-2.0" ]
1
2019-03-16T07:08:57.000Z
2019-03-16T07:08:57.000Z
doc/examples/doc_code/raysgd_torch_signatures.py
gehring/ray
d8eeb9641314740572e81f9836cbce3e5b8f2b73
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ This file holds code for the Pytorch Trainer creator signatures. It ignores yapf because yapf doesn't allow comments right after code blocks, but we put comments right after code blocks to prevent large white spaces in the documentation. """ # yapf: disable # __torch_model_start__ import torch.nn a...
26.565574
85
0.719222
0
0
0
0
0
0
0
0
2,383
0.735267
8dc3232c7e5f402c1d0748b307d531d49a9423ea
144
py
Python
lib/abridger/extraction_model/table.py
willangenent/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
8
2016-10-19T14:15:34.000Z
2020-06-23T09:37:02.000Z
lib/abridger/extraction_model/table.py
freewilll/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
null
null
null
lib/abridger/extraction_model/table.py
freewilll/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
null
null
null
class Table(object): def __init__(self, table, col, values): self.table = table self.col = col self.values = values
24
43
0.590278
143
0.993056
0
0
0
0
0
0
0
0
8dc3361defa92720863211b21b935ff651f2bf8d
2,185
py
Python
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
20
2021-04-13T06:23:33.000Z
2021-12-12T13:52:50.000Z
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
4
2021-04-17T23:17:36.000Z
2021-05-23T14:20:08.000Z
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
3
2021-04-23T00:01:45.000Z
2021-04-29T22:48:33.000Z
import pytest from baguette.app import Baguette from baguette.httpexceptions import MethodNotAllowed from baguette.responses import make_response from baguette.view import View @pytest.mark.asyncio async def test_view_create(): class TestView(View): async def get(self, request): return "GET" ...
25.406977
73
0.626545
655
0.299771
0
0
1,995
0.913043
1,558
0.713043
201
0.091991
8dc386d6b5d927e8b934f386d034dfa885867aad
5,167
py
Python
tests/conftest.py
adrien-berchet/luigi-tools
5de731714db38656db06e39acdb0b9e53ed612bf
[ "Apache-2.0" ]
2
2021-07-20T13:08:44.000Z
2021-07-23T13:08:05.000Z
tests/conftest.py
adrien-berchet/luigi-tools
5de731714db38656db06e39acdb0b9e53ed612bf
[ "Apache-2.0" ]
3
2021-10-04T11:48:34.000Z
2022-03-18T15:48:00.000Z
tests/conftest.py
adrien-berchet/luigi-tools
5de731714db38656db06e39acdb0b9e53ed612bf
[ "Apache-2.0" ]
1
2022-03-21T15:15:23.000Z
2022-03-21T15:15:23.000Z
# Copyright 2021 Blue Brain Project / EPFL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
31.315152
98
0.522547
3,779
0.731372
371
0.071802
4,372
0.846139
0
0
1,146
0.221792
8dc3acc4aaba2f96a5e6b63f6e6498fe13dc2b2d
2,633
py
Python
HubMovrmentChallenge.py
lhsalud/hub-movement
351fb430bb5e8540d4215415154c1d9f8d0730fe
[ "Apache-2.0" ]
null
null
null
HubMovrmentChallenge.py
lhsalud/hub-movement
351fb430bb5e8540d4215415154c1d9f8d0730fe
[ "Apache-2.0" ]
null
null
null
HubMovrmentChallenge.py
lhsalud/hub-movement
351fb430bb5e8540d4215415154c1d9f8d0730fe
[ "Apache-2.0" ]
null
null
null
# # Author: L. Salud, April 26.2018 # import pandas as pd import os import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler os.getcwd() # Get and place .py in same directory as .xls initially os.chdir('./') # Path to .xls file from pandas import read_ex...
31.722892
204
0.725788
0
0
0
0
0
0
0
0
1,359
0.516141
8dc61223149b3158489a5e9ccf76ac85256384c3
1,278
py
Python
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
import re def read_from_file(file_path): with open(file_path, 'r', encoding='utf-8') as f: content = f.read().splitlines() return content def write_to_file(corpus, dest_path): with open(dest_path, 'w', encoding='utf-8') as f: for item in corpus: f.write("%s\n" % item) def f...
29.72093
219
0.692488
0
0
0
0
0
0
0
0
582
0.388518
8dc6bc8eb5fc6294a76cfdda9f4e036dfe3da0de
3,680
py
Python
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
1
2020-08-02T19:35:06.000Z
2020-08-02T19:35:06.000Z
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
null
null
null
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
null
null
null
"""Classes to access the `cltk_data/` directory tree""" __author__ = 'Stephen Margheim <stephen.margheim@gmail.com>' __license__ = 'MIT License. See LICENSE.' import os import site from cltk.cltk import CLTK_DATA_DIR from cltk.cltk.corpus.wrappers.logger import logger class CorpusError(Exception): pass class C...
30.92437
79
0.521467
3,371
0.916033
0
0
1,252
0.340217
0
0
1,510
0.410326
8dc7d59fdd262802a1ded4d3d7416e6bb94d267d
118
py
Python
Executor/Tasks/PostRun/__init__.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
1
2020-04-16T17:07:46.000Z
2020-04-16T17:07:46.000Z
Executor/Tasks/PostRun/__init__.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
3
2020-03-06T11:22:09.000Z
2020-03-06T11:22:10.000Z
Executor/Tasks/PostRun/__init__.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
1
2022-02-01T07:56:44.000Z
2022-02-01T07:56:44.000Z
from .decommission import Decommission from .release_resources import ReleaseResources from .farewell import Farewell
29.5
47
0.872881
0
0
0
0
0
0
0
0
0
0
8dc7dd2aecae51adb10cd582c54a3498d17a6890
3,482
py
Python
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
2,159
2020-08-26T06:21:38.000Z
2022-03-31T16:13:46.000Z
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
1,482
2020-08-26T08:26:36.000Z
2022-03-31T23:11:19.000Z
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
592
2020-08-26T06:09:25.000Z
2022-03-31T00:37:41.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
46.426667
85
0.716255
1,721
0.494256
0
0
0
0
0
0
1,729
0.496554
8dc7f5a5c998df601fc1435d5e14c66275786aee
19,093
py
Python
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
import numpy as np import torch def fexp(x, p): return torch.sign(x)*(torch.abs(x)**p) def cuboid_inside_outside_function(X, shape_params, epsilon=0.25): """ Arguments: ---------- X: Tensor with size BxNxMx3, containing the 3D points, where B is the batch size and N is the number...
35.423006
79
0.59514
0
0
0
0
0
0
0
0
9,731
0.509663
8dc85eed480d432c4899171384c4da5e6df7a236
6,206
py
Python
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/study-progs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
4
2020-01-02T08:38:55.000Z
2020-11-12T19:46:22.000Z
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/StudyProgs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
null
null
null
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/StudyProgs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
null
null
null
from PyQt5.QtOpenGL import * from OpenGL.GL import * from PyQt5 import QtWidgets, QtCore class FigureWidget(QGLWidget): """ Main OpenGL widget. """ def __init__(self, parent): super(FigureWidget, self).__init__() self.setMinimumSize(1280, 720) self.__rotate_angle_y = 70 sel...
24.626984
58
0.508701
5,978
0.963261
0
0
0
0
0
0
345
0.055591
8dc89f352fa436e39e052c93cd7afb303171ceba
2,485
py
Python
src/passari/scripts/submit_sip.py
finnish-heritage-agency/passari
17af68b07435a40eaabaacf8c34e54517edc9153
[ "MIT" ]
1
2020-06-17T11:05:00.000Z
2020-06-17T11:05:00.000Z
src/passari/scripts/submit_sip.py
finnish-heritage-agency/passari
17af68b07435a40eaabaacf8c34e54517edc9153
[ "MIT" ]
2
2021-03-31T19:50:58.000Z
2021-05-17T20:52:03.000Z
src/passari/scripts/submit_sip.py
finnish-heritage-agency/passari
17af68b07435a40eaabaacf8c34e54517edc9153
[ "MIT" ]
null
null
null
""" Submit a SIP archive to the digital preservation service """ from pathlib import Path import click from passari.config import CONFIG from passari.dpres.package import MuseumObjectPackage from passari.dpres.ssh import connect_dpres_sftp from passari.utils import debugger_enabled def submit_sip(package_dir, objec...
29.583333
77
0.677666
0
0
0
0
711
0.286117
0
0
935
0.376258
8dc9eea63f0db427ca8d82b08f280d3e1c15f968
2,931
py
Python
alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.IndirectIsvTerminalInfo import IndirectIsvTerminalInfo class AlipayOfflineProviderIndirectisvActivityCreateModel(object): def __init__(self): self._ext_info = None ...
35.313253
104
0.639713
2,732
0.932105
0
0
1,277
0.435687
0
0
312
0.106448
8dca2da6c8645bf9fdd19dabbdf05a6549cdbc55
4,220
py
Python
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
import numpy class Environment: def __init__(self, params) -> None: self.domain_value_labels = params["domain_value_labels"] self.observation_dim = params["observation_dim"] self.nr_agents = params["nr_agents"] self.nr_actions = params["nr_actions"] self.time_limit = params...
38.363636
116
0.638389
4,204
0.996209
0
0
0
0
0
0
1,264
0.299526
8dca97c9199a78c34139496f0e9ce4927d4d5e8f
1,651
py
Python
boa3/model/attribute.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3/model/attribute.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3/model/attribute.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
import ast from typing import Optional, Tuple, Union from boa3.model.expression import IExpression from boa3.model.imports.package import Package from boa3.model.symbol import ISymbol from boa3.model.type.classes.classtype import ClassType from boa3.model.type.itype import IType class Attribute(IExpression): """...
35.891304
100
0.706239
1,367
0.827983
0
0
407
0.246517
0
0
242
0.146578
8dcb21a58f1185a80b68bc21fae747a3384bef5d
2,409
py
Python
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
import os import os.path as osp __all__ = [ 'pack_images', 'plot_and_pack', 'save_images' ] def pack_images(output, imgs, vmax=1024.0, archive=None, name="image_%d.png", **data): from scipy.misc import toimage try: os.makedirs(output) except: pass for i in range(imgs.shape[0]): args = dict...
26.184783
86
0.62308
0
0
0
0
0
0
0
0
312
0.129514
8dcbe319893f08c9fec316e62b3f5815719b8547
34,085
py
Python
shield.py
sidsen/VRL_CodeReview
6ee6114215ee49570c47ae41789f5d9bd11ce820
[ "MIT" ]
10
2019-10-22T16:58:43.000Z
2021-12-05T06:12:53.000Z
shield.py
sidsen/VRL_CodeReview
6ee6114215ee49570c47ae41789f5d9bd11ce820
[ "MIT" ]
1
2019-02-23T05:44:06.000Z
2019-02-23T05:44:06.000Z
shield.py
sidsen/VRL_CodeReview
6ee6114215ee49570c47ae41789f5d9bd11ce820
[ "MIT" ]
5
2019-02-23T04:10:06.000Z
2020-09-06T22:59:26.000Z
import metrics from metrics import timeit from main import * import os class Shield(object): def __init__(self, env, actor, model_path=None, force_learning=False, debug=False): """init Args: env (Environment): environment actor (ActorNetwork): actor force_learning (bool, option...
44.323797
205
0.599267
32,129
0.942614
0
0
23,931
0.702098
0
0
7,835
0.229867
8dcf634f294734dd35e17dc999018f8d298536e2
171
py
Python
palindrome_partitioning.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
palindrome_partitioning.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
palindrome_partitioning.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
class PalindromePartitioning: """ https://leetcode-cn.com/problems/palindrome-partitioning/ """ def partition(self, s: str) -> List[List[str]]:
19
61
0.619883
169
0.988304
0
0
0
0
0
0
73
0.426901
8dd01c14c4996542c62dcb370ac32dc38f1f238a
3,922
py
Python
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
35
2019-05-03T00:30:31.000Z
2022-01-20T06:57:25.000Z
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
null
null
null
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
22
2020-05-13T21:20:02.000Z
2021-12-21T08:35:59.000Z
##Write a program that reads the contents of a text file. The program should create a diction- ##ary in which the key-value pairs are described as follows: ##• Key. The keys are the individual words found in the file. ##• Values. Each value is a list that contains the line numbers in the file where the word ##(the key)...
56.028571
120
0.685365
0
0
0
0
0
0
0
0
2,817
0.716065
8dd2ec97b90cb2d15b0a054348250dd7d5121065
982
py
Python
problems4/4A.py
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
1
2021-11-11T12:08:14.000Z
2021-11-11T12:08:14.000Z
problems4/4A.py
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
null
null
null
problems4/4A.py
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
null
null
null
file_input = open('stack.in', 'r') file_output = open('stack.out', 'w')   def validate_stack(top_index):         return True if (top_index == -1) else False       class ImplementedStack(object):     def __init__(self):         self.stack = []         self.top = -1          def push_value(self, value):         self.top ...
25.842105
60
0.521385
31
0.025
0
0
0
0
0
0
42
0.033871
8dd45ea0a29eda5d4c2a5b4693e02c4c67831b90
4,151
py
Python
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import queue import threading import typing from .constants import S_END_OF_CMD import serial class AbstractSerialNex(object): INCOMING_BUFFER_SIZE = 1024 # Seems the Nextion buffer size, mentioned in official docs MIN_SIZE_READ = len(S_END_...
30.07971
119
0.63286
3,640
0.876897
0
0
141
0.033968
0
0
1,447
0.348591
8dd4c7ac514b07c8936d2d8818ce12d988742cca
1,762
py
Python
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Compute essential stats(freq/tf-idf) on a corpus Dependencies: pandas == 0.23 gensim == 3.8 """ __author__ = "Mike Shuser" import pickle import numpy as np import pandas as pd from gensim.models import TfidfModel from gensim.corpora import Dictionary DATA_SRC = "../processed_corp...
28.419355
76
0.586833
0
0
0
0
0
0
0
0
459
0.260499
8dd5699562650669f491fdd18d9c1edc25f11acb
2,937
py
Python
app/utils/images/linalg/utils.py
vinaykakkad/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
1
2021-11-13T11:08:24.000Z
2021-11-13T11:08:24.000Z
app/utils/images/linalg/utils.py
neelpopat242/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
null
null
null
app/utils/images/linalg/utils.py
neelpopat242/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
1
2021-11-13T11:07:54.000Z
2021-11-13T11:07:54.000Z
import math def print_matrix(matrix): """ Function to print a matrix """ for row in matrix: for col in row: print("%.3f" % col, end=" ") print() def rows(matrix): """ Returns the no. of rows of a matrix """ if type(matrix) != list: return 1 r...
17.908537
69
0.520259
0
0
0
0
0
0
0
0
698
0.237657
8dd581b173988521e90d63f2bb0417df587f5647
1,102
py
Python
testproject/manage.py
innovationinit/django-kazoo-locks
91ceb37ab92dad97659f24a9a7ace3bb9ae3ba10
[ "BSD-2-Clause" ]
null
null
null
testproject/manage.py
innovationinit/django-kazoo-locks
91ceb37ab92dad97659f24a9a7ace3bb9ae3ba10
[ "BSD-2-Clause" ]
null
null
null
testproject/manage.py
innovationinit/django-kazoo-locks
91ceb37ab92dad97659f24a9a7ace3bb9ae3ba10
[ "BSD-2-Clause" ]
1
2022-03-15T07:30:07.000Z
2022-03-15T07:30:07.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other ...
34.4375
110
0.650635
0
0
0
0
0
0
0
0
504
0.45735
8dd7751b946690a5f79059a3575a07f2c9cb06b8
1,443
py
Python
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
import hashlib from datetime import datetime def salsa_20_xor_bytes(): pass def n_string(string, n): hash = hashlib.sha512() hash.update(string.encode('utf-8')) return hash.digest()[:n] def encryption(iv: str, key: str, filename: str) -> bool: try: iv = n_string(iv, 8) key = n_...
26.722222
65
0.579349
0
0
0
0
0
0
0
0
37
0.025641
8dd86a18a4119d3adc2f367d73fae1d910601d27
3,747
py
Python
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
6
2019-07-22T01:56:10.000Z
2021-12-10T05:29:30.000Z
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
677
2019-04-29T10:23:49.000Z
2022-03-22T12:01:30.000Z
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
8
2019-06-13T10:32:17.000Z
2020-12-09T15:08:40.000Z
""" This file contains tests on the creation of directories """ from __future__ import absolute_import, division, print_function import time import os import shutil import unittest from fitbenchmarking.utils.create_dirs import (figures, group_results, results, support_pa...
32.868421
79
0.662397
3,365
0.898052
0
0
0
0
0
0
771
0.205765
8dd963b267b7e2d742f71f63075d5795850791fb
1,173
py
Python
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
import os from urllib.parse import urlparse from fastapi import FastAPI, Request from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import RedirectResponse, Response from fastapi.staticfiles import StaticFiles from typing import Optional import api app = FastAPI() app.mount("/files", StaticFi...
24.957447
77
0.672634
0
0
0
0
663
0.565217
625
0.532822
88
0.075021
8ddada2583d4d1572a9c3857e2ac95af6c1ca1dd
1,976
py
Python
examples/list_alert_notifications.py
kenlavoie/python-sdc-client
cafb8f2279956c572bd2c01c8645895d0895716f
[ "MIT" ]
null
null
null
examples/list_alert_notifications.py
kenlavoie/python-sdc-client
cafb8f2279956c572bd2c01c8645895d0895716f
[ "MIT" ]
null
null
null
examples/list_alert_notifications.py
kenlavoie/python-sdc-client
cafb8f2279956c572bd2c01c8645895d0895716f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Get alert notifications from Sysdig Cloud # import os import sys import time sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..')) from sdcclient import SdcClient def print_notifications(notifications): for notification in notifications: values = ...
27.444444
176
0.688765
0
0
0
0
0
0
0
0
671
0.339575
8ddb9586e5b11a1deeec483163fc0ec9a71544d9
791
py
Python
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, Integer, String from sqlalchemy import DateTime from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey class groupingDeviceMappingTable(): def __init__(self, metadata: MetaData): self.groupingDeviceMappingTable = Table('GroupingDeviceMapping', metadata, ...
56.5
111
0.548673
633
0.800253
0
0
0
0
0
0
78
0.098609
8ddb98d57d427980a09a0ebd40ba75c59e9df8f6
802
py
Python
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
25
2015-04-29T13:10:22.000Z
2019-03-18T09:45:29.000Z
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
330
2015-03-04T09:06:38.000Z
2019-06-11T10:31:54.000Z
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
16
2015-03-23T08:00:46.000Z
2019-02-21T11:14:47.000Z
import sys import numpy from distutils.version import LooseVersion assert sys.version_info >= (3, 5) assert LooseVersion(numpy.version.version) >= LooseVersion('1.16'), 'nutils requires numpy 1.16 or higher, got {}'.format(numpy.version.version) version = '8.0a0' version_name = None long_version = ('{} "{}"' if versi...
19.095238
144
0.599751
0
0
0
0
0
0
0
0
332
0.413965
8ddbd28f219a98dd5d2cc0254cc240672cc2d246
4,871
py
Python
addutils/toc.py
addfor/AddUtils
2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac
[ "MIT" ]
null
null
null
addutils/toc.py
addfor/AddUtils
2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac
[ "MIT" ]
null
null
null
addutils/toc.py
addfor/AddUtils
2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2015 addfor s.r.l. # # 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 rights # to use, copy, m...
35.043165
83
0.559228
0
0
0
0
0
0
0
0
4,550
0.9341
8ddbf31bfb108f86a7acf1ea3203d6b23129570c
720
py
Python
portfolio/blog/models.py
SkullTech/portfolio-devclub
a3db4ab72464c82e9da6ee89ad51cecc082d9ff5
[ "MIT" ]
1
2017-03-02T22:38:26.000Z
2017-03-02T22:38:26.000Z
portfolio/blog/models.py
SkullTech/portfolio-devclub
a3db4ab72464c82e9da6ee89ad51cecc082d9ff5
[ "MIT" ]
null
null
null
portfolio/blog/models.py
SkullTech/portfolio-devclub
a3db4ab72464c82e9da6ee89ad51cecc082d9ff5
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone class Tag(models.Model): name = models.CharField(max_length=50) description = models.CharField(max_length=200, null=True, blank=True, default='') def __str__(self): return self.name class Post(models.Model): author = models.Fore...
26.666667
85
0.698611
651
0.904167
0
0
0
0
0
0
13
0.018056
8ddd126c99d8feae03f19cc66e85504d9442c512
1,710
py
Python
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
# http://github.com/timestocome # data # https://www.cs.toronto.edu/~kriz/cifar.html import numpy as np import pickle import matplotlib.pyplot as plt ################################################################################### # read in data ###############################################################...
21.375
85
0.489474
0
0
0
0
0
0
0
0
552
0.322807
8ddd3e9119c32c0e18dc330a4330c6e053f331a5
427
py
Python
app/blueprints/seo_arizona/errors.py
Anioko/TestApp
95fa8d27ca8e7a074e62f92609427a378844e621
[ "MIT" ]
null
null
null
app/blueprints/seo_arizona/errors.py
Anioko/TestApp
95fa8d27ca8e7a074e62f92609427a378844e621
[ "MIT" ]
1
2021-06-02T01:53:47.000Z
2021-06-02T01:53:47.000Z
app/blueprints/seo_arizona/errors.py
Anioko/TestApp
95fa8d27ca8e7a074e62f92609427a378844e621
[ "MIT" ]
null
null
null
from flask import render_template from app.blueprints.seo_arizona.views import seo_arizona @seo_arizona.app_errorhandler(403) def forbidden(_): return render_template('errors/403.html'), 403 @seo_arizona.app_errorhandler(404) def page_not_found(_): return render_template('errors/404.html'), 404 @seo_ariz...
22.473684
56
0.789227
0
0
0
0
326
0.763466
0
0
51
0.119438
8dde19fedd80853c00291936adb295b97fcd76bc
1,315
py
Python
tests.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
tests.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
tests.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
import flames import unittest class TestFlamesMethods(unittest.TestCase): def test_flames_count(self): self.assertEqual(flames.flames_count('abhi','abhi'),0) self.assertEqual(flames.flames_count('abhi','a'),3) self.assertEqual(flames.flames_count('abhi','asd'),5) def test_flames...
35.540541
68
0.657034
1,213
0.922433
0
0
0
0
0
0
177
0.134601
8ddf6ed4392a1c97342e5972d833a191e47b53d0
826
py
Python
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
import traceback from fastapi import Request from fastapi.responses import PlainTextResponse from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR def internal_server_exception_handler( _: Request, exception: Exception ) -> PlainTextResponse: """ Return the traceback of the internal server ...
27.533333
62
0.6477
0
0
0
0
0
0
0
0
169
0.2046
8de0588b8d216183bd189807faae11d1037b92e8
11,025
py
Python
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
177
2020-04-14T01:16:26.000Z
2022-03-28T03:29:28.000Z
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
10
2020-05-06T13:42:47.000Z
2021-02-06T13:35:27.000Z
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
23
2020-04-14T05:41:25.000Z
2021-12-21T02:43:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """ helper class that supports empty tensors on some nn functions. Ideally, add support directly in PyTorch to empty tensors in those functions. This can be removed once https://github.com/pytorch/pytorch/issues/12013 is implemented """ import m...
31.590258
88
0.581043
5,861
0.53161
0
0
241
0.021859
0
0
1,299
0.117823