hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
df6d8794143baa565bed712b5539fdd5723cacc2
968
py
Python
ectrello/commands/board.py
hadi-alnehlawi/ECTRELLI-PYPI
c06c25a6b2ae823d16b426190f58005414a756fd
[ "MIT" ]
null
null
null
ectrello/commands/board.py
hadi-alnehlawi/ECTRELLI-PYPI
c06c25a6b2ae823d16b426190f58005414a756fd
[ "MIT" ]
null
null
null
ectrello/commands/board.py
hadi-alnehlawi/ECTRELLI-PYPI
c06c25a6b2ae823d16b426190f58005414a756fd
[ "MIT" ]
null
null
null
import click from trello.client import Client key = "0581b1db0a42258051a8a25fb301e247" token = "e6985b1a4afdfb4168814ca486e76ff704e171d5751ce9db8c96731f8b1cc0cb" client = Client(key, token) show_help = """ \n TEXT=all show all boards.\n TEXT=first show first board.\n TEXT=last show last board.\n """
24.820513
74
0.637397
df6daf1f508afcbdd19a3d77ece59a5c6974f4e9
1,706
py
Python
main.py
prozum/mastermixer
e858ea60e10d3e3d02c934b3b1d277856acbdb4c
[ "MIT" ]
null
null
null
main.py
prozum/mastermixer
e858ea60e10d3e3d02c934b3b1d277856acbdb4c
[ "MIT" ]
null
null
null
main.py
prozum/mastermixer
e858ea60e10d3e3d02c934b3b1d277856acbdb4c
[ "MIT" ]
null
null
null
from sqlite3 import dbapi2 as sqlite3 from libliquor import Actuator,Ranger,Mixer config = dict( DEBUG=True, DATABASE='/tmp/flaskr.db', ) # Setup objects if not config["DEBUG"]: motor = Actuator(10) piston = Actuator(11) valves = [Actuator(12), Actuator(13)] rangers = [Ranger(0), Ranger(1)...
25.088235
123
0.613716
df6ed2183ff909d2ec6fe9857be8189e0bccd3ed
572
py
Python
conftest.py
Shy/migration-env-demo
3290dbbc933c727f6c92b08cb476d34b95b16d6d
[ "MIT" ]
1
2018-05-17T17:41:02.000Z
2018-05-17T17:41:02.000Z
conftest.py
Shy/migration-env-demo
3290dbbc933c727f6c92b08cb476d34b95b16d6d
[ "MIT" ]
4
2018-05-29T04:27:11.000Z
2018-05-29T15:47:20.000Z
conftest.py
Shy/migration-env-demo
3290dbbc933c727f6c92b08cb476d34b95b16d6d
[ "MIT" ]
null
null
null
# conftest.py import pytest import os from myapp import create_app, create_contentful from dotenv import load_dotenv load_dotenv() SPACE_ID = os.getenv("SPACE_ID") DELIVERY_API_KEY = os.getenv("DELIVERY_API_KEY") TESTING_ENV = "circle_testing"
21.185185
76
0.769231
df6fa3edddb6528b81a9ef12ac57b8e80546f328
1,454
py
Python
db.py
L1mPeX/Casino-Bot
b08be7be75854cc2e386906a9ef8ee3ab768ae78
[ "MIT" ]
2
2020-11-21T17:33:32.000Z
2021-08-17T16:52:57.000Z
db.py
L1mPeX/Casino-Bot
b08be7be75854cc2e386906a9ef8ee3ab768ae78
[ "MIT" ]
null
null
null
db.py
L1mPeX/Casino-Bot
b08be7be75854cc2e386906a9ef8ee3ab768ae78
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 import sqlite3
32.311111
178
0.658184
df709514b8d346cc0a38a3bd3f1378bb77a71fa2
4,561
py
Python
tests/unit-tests/test_rst_lists.py
hazemelraffiee/confluencebuilder
c283e7fb513c156b9b6e0ba3694fc3e0468a74c9
[ "BSD-2-Clause" ]
90
2016-07-21T00:39:19.000Z
2019-03-08T08:27:17.000Z
tests/unit-tests/test_rst_lists.py
hazemelraffiee/confluencebuilder
c283e7fb513c156b9b6e0ba3694fc3e0468a74c9
[ "BSD-2-Clause" ]
124
2016-10-18T20:06:48.000Z
2019-03-08T04:41:53.000Z
tests/unit-tests/test_rst_lists.py
hazemelraffiee/confluencebuilder
c283e7fb513c156b9b6e0ba3694fc3e0468a74c9
[ "BSD-2-Clause" ]
39
2016-07-21T00:39:52.000Z
2019-03-06T14:33:31.000Z
# -*- coding: utf-8 -*- """ :copyright: Copyright 2020-2022 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from tests.lib.testcase import ConfluenceTestCase from tests.lib.testcase import setup_builder from tests.lib import parse import os
40.362832
80
0.557772
df72a98051b9545e547ff5e6b00c007b9064d190
422
py
Python
src/cira_am/config.py
quistian/dns-firewall
d99e77a763f06bb0ec81192dffa534c0c3b3e30c
[ "BSD-2-Clause" ]
1
2021-11-16T15:23:46.000Z
2021-11-16T15:23:46.000Z
src/cira_am/config.py
quistian/dns-firewall
d99e77a763f06bb0ec81192dffa534c0c3b3e30c
[ "BSD-2-Clause" ]
null
null
null
src/cira_am/config.py
quistian/dns-firewall
d99e77a763f06bb0ec81192dffa534c0c3b3e30c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' Global Variables convention: * start with UpperCase * have no _ character * may have mid UpperCase words ''' Debug = True Silent = True Verbose = False CustomerName = 'customer_name' AuthHeader = {'Content-Type': 'application/json'} BaseURL = "https://firewall-api.d-zone.ca" ...
19.181818
100
0.7109
df7519102fb79f7448397cf68ad58cb1a141e426
652
py
Python
安装三方库.py
gaoguole/ctpgao
bb5a521d4e12f0cb318999e599f2e110b03915da
[ "MIT" ]
73
2020-10-12T02:15:04.000Z
2022-03-30T10:00:25.000Z
安装三方库.py
TiantangX/ctpgao
bb5a521d4e12f0cb318999e599f2e110b03915da
[ "MIT" ]
5
2020-10-15T08:56:44.000Z
2020-11-19T04:16:30.000Z
安装三方库.py
TiantangX/ctpgao
bb5a521d4e12f0cb318999e599f2e110b03915da
[ "MIT" ]
16
2020-10-12T02:15:22.000Z
2021-12-23T00:35:22.000Z
import os os.system("pip install tqsdk -i https://pypi.tuna.tsinghua.edu.cn/simple") os.system("pip install numba -i https://pypi.tuna.tsinghua.edu.cn/simple") os.system("pip install janus -i https://pypi.tuna.tsinghua.edu.cn/simple") os.system("pip install redis -i https://pypi.tuna.tsinghua.edu.cn/simple") os...
65.2
100
0.739264
df772962564e76e30a2b4e2a05a98491303c2ed2
5,776
py
Python
smartystreets_python_sdk/client_builder.py
jasonrfarkas/smartystreets-python-sdk
bcb94efc09c795222eb1bd85544073a6cc063a46
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/client_builder.py
jasonrfarkas/smartystreets-python-sdk
bcb94efc09c795222eb1bd85544073a6cc063a46
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/client_builder.py
jasonrfarkas/smartystreets-python-sdk
bcb94efc09c795222eb1bd85544073a6cc063a46
[ "Apache-2.0" ]
null
null
null
import smartystreets_python_sdk as smarty from smartystreets_python_sdk.us_street import Client as USStreetClient from smartystreets_python_sdk.us_zipcode import Client as USZIPClient from smartystreets_python_sdk.us_extract import Client as USExtractClient from smartystreets_python_sdk.us_autocomplete import Client as...
38
113
0.691136
df77d20b06e6fc4fab68bc80bf0e87b46ceb6892
14,294
py
Python
src/util.py
uguryagmur/RealTimeObjectDetection
e54d153266c6b4f54a49266fe05ceca13ebe3cdd
[ "MIT" ]
null
null
null
src/util.py
uguryagmur/RealTimeObjectDetection
e54d153266c6b4f54a49266fe05ceca13ebe3cdd
[ "MIT" ]
null
null
null
src/util.py
uguryagmur/RealTimeObjectDetection
e54d153266c6b4f54a49266fe05ceca13ebe3cdd
[ "MIT" ]
null
null
null
"""Utility functions for Object Detection Networks""" from __future__ import division import cv2 import torch import numpy as np from PIL import Image, ImageDraw def xyxy2xywh(box: torch.Tensor) -> torch.Tensor: """ Returns the xywh format of the input bounding box tensor Arguments: ...
34.694175
81
0.591787
df7a2150324a753c57fa8af8c06a9e46c60e1d9b
5,512
py
Python
model/warp.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
11
2022-02-14T08:31:04.000Z
2022-03-29T08:20:17.000Z
model/warp.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
3
2022-02-14T11:19:15.000Z
2022-03-19T05:11:25.000Z
model/warp.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # Precomputed coordinate grids dictionary, with (tensor device, tensor size) as the keys. backwarp_tenGrid = {} # backwarp and multiwarp are doing backward warping using the forward flow. # backwarp feature maps a...
48.778761
126
0.646589
df7cecff3f2a6d3cc5c868cae77bf8a3ce21f622
1,302
py
Python
api/models.py
UAACC/pro
c5424574427ac3521cb70b0d62b841fa128f5166
[ "MIT" ]
null
null
null
api/models.py
UAACC/pro
c5424574427ac3521cb70b0d62b841fa128f5166
[ "MIT" ]
null
null
null
api/models.py
UAACC/pro
c5424574427ac3521cb70b0d62b841fa128f5166
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import AbstractUser # class FriendRequest(models.Model): # from_user = models.ForeignKey( # Author, related_name='from_user', on_delete=models.CASCADE, related_name="comments" # ) # to_user = models.Fo...
39.454545
93
0.740399
df7d22a849c97e60605eb8e66647c84ea4d9d627
3,705
py
Python
miniworld/model/network/interface/Interfaces.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/interface/Interfaces.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/interface/Interfaces.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
from collections import defaultdict from miniworld.errors import InterfaceUnknown from miniworld.model.Objects import Objects from miniworld.model.network.interface.Interface import INTERFACE_NORMAL_CLASSES_TYPES, INTERFACE_NAME_TYPE_MAPPING, AP, Mesh __author__ = 'Nils Schmidt' # TODO: DOC def filter_hub_w...
29.173228
128
0.634008
df7edd38a1a100de662fe567b387d768f816c859
1,354
py
Python
tests/test_distgit/test_convert_source_url_to_https.py
sosiouxme/doozer
9658169207773f9c228ad011f611867a4a9d5a77
[ "Apache-2.0" ]
null
null
null
tests/test_distgit/test_convert_source_url_to_https.py
sosiouxme/doozer
9658169207773f9c228ad011f611867a4a9d5a77
[ "Apache-2.0" ]
null
null
null
tests/test_distgit/test_convert_source_url_to_https.py
sosiouxme/doozer
9658169207773f9c228ad011f611867a4a9d5a77
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import unittest from doozerlib import distgit if __name__ == '__main__': unittest.main()
31.488372
72
0.728951
df808bedd7a5f0f877dd0614ac4bd0dfb3f89587
441
py
Python
KnowledgeMapping/SpiderExp/4-Function/openSSLExp/3.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
KnowledgeMapping/SpiderExp/4-Function/openSSLExp/3.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
null
null
null
KnowledgeMapping/SpiderExp/4-Function/openSSLExp/3.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
import requests import ssl from requests.adapters import HTTPAdapter, PoolManager s = requests.Session() s.mount('https://', MyAdapter()) # httpsssl.PROTOCOL_SSLV3 s.get('https://xxx.com')
29.4
110
0.75737
df81e1d9539d033063a2a56dbeb862075f49347e
798
py
Python
weighmail/observers/__init__.py
gremmie/weighmail
d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d
[ "BSD-3-Clause" ]
null
null
null
weighmail/observers/__init__.py
gremmie/weighmail
d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d
[ "BSD-3-Clause" ]
null
null
null
weighmail/observers/__init__.py
gremmie/weighmail
d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d
[ "BSD-3-Clause" ]
null
null
null
"""Base observer class for weighmail operations. """
24.181818
74
0.601504
df84089eac65b59082205d83c06cd6c272f90434
145
py
Python
banks/apps.py
lauriefacer/Facer
ff9f5ca4af302926fed49a4b9b442ff00ea212be
[ "MIT" ]
null
null
null
banks/apps.py
lauriefacer/Facer
ff9f5ca4af302926fed49a4b9b442ff00ea212be
[ "MIT" ]
null
null
null
banks/apps.py
lauriefacer/Facer
ff9f5ca4af302926fed49a4b9b442ff00ea212be
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16.111111
33
0.737931
df84e85ea375a45ff61026ef8e92ba96e7e0f291
426
py
Python
assessment/migrations/0010_assessment_open_status.py
sravanireddy1102/peerevaluationsystem
3dc46447a6b3b581e8738db58e7b861c421cdc0f
[ "MIT" ]
2
2020-06-17T15:17:19.000Z
2020-10-06T08:03:29.000Z
assessment/migrations/0010_assessment_open_status.py
sravanireddy1102/peerevaluationsystem
3dc46447a6b3b581e8738db58e7b861c421cdc0f
[ "MIT" ]
3
2021-03-30T13:33:22.000Z
2021-06-04T23:21:52.000Z
assessment/migrations/0010_assessment_open_status.py
YichengShen/EaglesPeerEvaluationSystem
853e35bf569efb87dc56064e6ec44a4e3c95c537
[ "MIT" ]
1
2022-01-02T07:01:37.000Z
2022-01-02T07:01:37.000Z
# Generated by Django 3.0.2 on 2020-04-29 20:22 from django.db import migrations, models
22.421053
80
0.622066
df8883bf266f2a644d25c10b6a4793fb6917cb40
950
py
Python
opyoid/bindings/instance_binding/instance_binding_to_provider_adapter.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
37
2020-08-25T07:22:41.000Z
2022-03-18T03:05:53.000Z
opyoid/bindings/instance_binding/instance_binding_to_provider_adapter.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
18
2020-10-04T17:33:24.000Z
2021-12-16T16:28:35.000Z
opyoid/bindings/instance_binding/instance_binding_to_provider_adapter.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
2
2021-01-26T19:58:15.000Z
2021-11-30T01:10:25.000Z
from opyoid.bindings.binding import Binding from opyoid.bindings.binding_to_provider_adapter import BindingToProviderAdapter from opyoid.bindings.registered_binding import RegisteredBinding from opyoid.injection_context import InjectionContext from opyoid.provider import Provider from opyoid.utils import InjectedT from...
45.238095
96
0.807368
df8935cb314bb24e9c12282a7a762c31e2106abf
307
py
Python
backend/src/asset_manager/data/repos/license.py
JonathanLoscalzo/asset-license-dev-demo
522c1d531e508ae7e85b212f804eee505d284b2b
[ "Xnet", "X11" ]
null
null
null
backend/src/asset_manager/data/repos/license.py
JonathanLoscalzo/asset-license-dev-demo
522c1d531e508ae7e85b212f804eee505d284b2b
[ "Xnet", "X11" ]
null
null
null
backend/src/asset_manager/data/repos/license.py
JonathanLoscalzo/asset-license-dev-demo
522c1d531e508ae7e85b212f804eee505d284b2b
[ "Xnet", "X11" ]
null
null
null
from pymongo.database import Database from asset_manager.data.repos.base import MongoRepository from asset_manager.data.schemas.license import LicenseMongo
34.111111
59
0.801303
df8a62c0847934ac75248a075f1ad448f85f7372
1,347
py
Python
build_utils/salt_utils.py
maharg101/gdl-100-provision
71651d1f6dd40de841f99cb9a6d1accb16ea39c1
[ "Apache-2.0" ]
null
null
null
build_utils/salt_utils.py
maharg101/gdl-100-provision
71651d1f6dd40de841f99cb9a6d1accb16ea39c1
[ "Apache-2.0" ]
1
2021-06-01T21:55:56.000Z
2021-06-01T21:55:56.000Z
build_utils/salt_utils.py
maharg101/gdl-100-provision
71651d1f6dd40de841f99cb9a6d1accb16ea39c1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ salt_utils.py Description: Utility methods for configuration of Salt Cloud. Written by: maharg101 on 27th March 2018 """ import io import yaml def generate_openstack_conf(params): """ Generate an openstack.conf file-like given the supplied params dict. :param params: A dicti...
34.538462
106
0.64588
df8bdf1b9de14fdae803f684cecb7551ddf157c2
6,102
py
Python
Scripts/Topology_Generator/top_gen.py
LABORA-INF-UFG/eXP-RAN
b36df30d9f8a39bc76343a1f6f206181dc424561
[ "MIT" ]
6
2021-02-26T13:50:58.000Z
2022-03-08T13:30:16.000Z
Scripts/Topology_Generator/top_gen.py
LABORA-INF-UFG/eXP-RAN
b36df30d9f8a39bc76343a1f6f206181dc424561
[ "MIT" ]
1
2021-09-19T17:45:11.000Z
2021-09-19T17:45:11.000Z
Scripts/Topology_Generator/top_gen.py
LABORA-INF-UFG/eXP-RAN
b36df30d9f8a39bc76343a1f6f206181dc424561
[ "MIT" ]
1
2020-06-20T02:11:16.000Z
2020-06-20T02:11:16.000Z
# -*- coding: utf-8 -*- import json import math import random import argparse import networkx as nx def serialize (obj): return obj.__dict__ def gen_vms_profile (): vms_profile = [] processor = [1, 2, 4, 8] memory = [1024, 2048, 4096, 8192] for vcpus in processor: for ram in memory: vms_profile.append({'...
23.743191
91
0.67568
df8d73ce0b9ecd6d1a67506333d218eaea46a306
9,698
py
Python
gather/weighted_corr.py
mrJeppard/clusterdb-ingest
f52f3ee03a1071ef15a63412e1e2085fdf74e584
[ "MIT" ]
null
null
null
gather/weighted_corr.py
mrJeppard/clusterdb-ingest
f52f3ee03a1071ef15a63412e1e2085fdf74e584
[ "MIT" ]
null
null
null
gather/weighted_corr.py
mrJeppard/clusterdb-ingest
f52f3ee03a1071ef15a63412e1e2085fdf74e584
[ "MIT" ]
null
null
null
""" Weighted correlation of NES vectors. The idea is to weight positive values on either vector. Positive values """ import pandas as pd import numpy as np from scipy.spatial.distance import pdist from scipy.spatial.distance import squareform def m(x, w): """Weighted Mean""" return np.sum(x * w) / np.sum(w) ...
24.739796
108
0.642813
df8e47912b6edd2b934d37e8bca40a26e9f732d8
1,138
py
Python
time_wizard/mixins.py
wfehr/django-time-wizard
d192f4aa9c9a15249e69fa47f3f41e9c048dc718
[ "BSD-2-Clause" ]
5
2019-10-08T08:23:25.000Z
2020-07-08T10:41:00.000Z
time_wizard/mixins.py
wfehr/django-time-wizard
d192f4aa9c9a15249e69fa47f3f41e9c048dc718
[ "BSD-2-Clause" ]
8
2019-07-06T13:14:58.000Z
2020-03-09T10:49:03.000Z
time_wizard/mixins.py
wfehr/django-time-wizard
d192f4aa9c9a15249e69fa47f3f41e9c048dc718
[ "BSD-2-Clause" ]
2
2020-01-28T14:14:09.000Z
2020-03-09T10:16:27.000Z
from django.contrib.contenttypes.fields import GenericRelation from django.db import models from django.utils.timezone import now
23.708333
79
0.633568
df8eda08eeceb3a4e4b4d62b56b2aacf6a21c336
16,807
py
Python
highearthorbit.py
orithena/highearthorbit
a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1
[ "MIT" ]
3
2017-06-17T10:13:38.000Z
2019-01-18T18:40:59.000Z
highearthorbit.py
orithena/highearthorbit
a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1
[ "MIT" ]
null
null
null
highearthorbit.py
orithena/highearthorbit
a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1
[ "MIT" ]
null
null
null
#!/usr/bin/python import twython, time, pprint, traceback, os, sys import config from twython import TwythonStreamer, TwythonError, TwythonRateLimitError import urllib, json, glob, re import thread queuelock = thread.allocate_lock() watchlock = thread.allocate_lock() import logging logging.basicConfig(filename='highea...
49.143275
208
0.606057
df8f367ee66d37324f8f4c0d32e288f6c1b4fb39
1,833
py
Python
migrations/versions/8b9f5b081137_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/8b9f5b081137_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/8b9f5b081137_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
"""Creates the bet table and associates it with users. Revision ID: 8b9f5b081137 Revises: 19cabd29fb71 Create Date: 2016-08-27 17:29:41.137566 """ # revision identifiers, used by Alembic. revision = '8b9f5b081137' down_revision = '19cabd29fb71' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects...
36.66
74
0.687398
df92c2b640273d1fde6e35ef399b77e27ac3c838
6,847
py
Python
script.py
Relex12/mywebsite_jekyll
58a4536c3049f0f575b60dbcfb33789ea1a909ea
[ "MIT" ]
null
null
null
script.py
Relex12/mywebsite_jekyll
58a4536c3049f0f575b60dbcfb33789ea1a909ea
[ "MIT" ]
null
null
null
script.py
Relex12/mywebsite_jekyll
58a4536c3049f0f575b60dbcfb33789ea1a909ea
[ "MIT" ]
null
null
null
from os import path from os import system if (not path.exists("../Relex12.github.io/")): raise FileNotFoundError("Relex12.github.io directory not found") if (not path.exists("../Markdown-Table-of-Contents/")): raise FileNotFoundError("Markdown-Table-of-Contents directory not found") ##################...
67.792079
154
0.637505
df938ddabcdb9ae4b9d826fa87e296dc1b34c69d
11,286
py
Python
scripts/clang_git_format/clang_git_format/repo.py
zarmomin/mrpt
1baff7cf8ec9fd23e1a72714553bcbd88c201966
[ "BSD-3-Clause" ]
9
2017-11-19T16:18:09.000Z
2020-07-16T02:13:43.000Z
scripts/clang_git_format/clang_git_format/repo.py
gao-ouyang/mrpt
4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7
[ "BSD-3-Clause" ]
null
null
null
scripts/clang_git_format/clang_git_format/repo.py
gao-ouyang/mrpt
4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7
[ "BSD-3-Clause" ]
4
2018-06-08T07:55:51.000Z
2022-02-22T08:56:28.000Z
from utils import callo import os import subprocess import re import logging logger = logging.getLogger("clang-format") def _callgit(self, args): """Call git for this repository without capturing output This is designed to be used when git returns non-zero exit codes. """ # These ...
32.618497
80
0.589048
df93ed3728e8d20bbc77012e16ddc613f4f0f3e2
5,909
py
Python
bot.py
jeonghunn/EverytimeBot
99b411adb11eeaec5c254805c759b63fa9934d3a
[ "MIT" ]
2
2019-07-23T03:10:58.000Z
2020-10-06T13:47:04.000Z
bot.py
jeonghunn/EverytimeBot
99b411adb11eeaec5c254805c759b63fa9934d3a
[ "MIT" ]
null
null
null
bot.py
jeonghunn/EverytimeBot
99b411adb11eeaec5c254805c759b63fa9934d3a
[ "MIT" ]
null
null
null
"""Simple Bot to reply to Telegram messages. This is built on the API wrapper, see echobot2.py to see the same example built on the telegram.ext bot framework. This program is dedicated to the public domain under the CC0 license. """ import logging import telegram import requests, json import traceback from time import...
35.596386
110
0.588255
10c083bc2b320d261a43560fa1e3b71bb609880e
3,509
py
Python
apertools/log.py
scottstanie/apertools
f959d03038e77444204c1ff224ddd8357db3fc04
[ "MIT" ]
8
2020-02-22T15:44:20.000Z
2022-02-16T02:49:57.000Z
apertools/log.py
scottstanie/apertools
f959d03038e77444204c1ff224ddd8357db3fc04
[ "MIT" ]
null
null
null
apertools/log.py
scottstanie/apertools
f959d03038e77444204c1ff224ddd8357db3fc04
[ "MIT" ]
2
2020-11-02T15:04:15.000Z
2022-01-08T20:20:58.000Z
""" This module exports a Log class that wraps the logging python package Uses the standard python logging utilities, just provides nice formatting out of the box. Usage: from apertools.log import get_log logger = get_log() logger.info("Something happened") logger.warning("Something concerning happe...
25.992593
105
0.624964
10c1051c785132345aeb5a605fae2ff4baa5c6ec
2,387
py
Python
monitoring/notifications/tests.py
okozachenko1203/monasca-ui
9014bce3de6fed79f85b79ecf30031e6af7b7356
[ "Apache-2.0" ]
17
2015-10-18T02:54:57.000Z
2018-08-05T21:58:20.000Z
monitoring/notifications/tests.py
okozachenko1203/monasca-ui
9014bce3de6fed79f85b79ecf30031e6af7b7356
[ "Apache-2.0" ]
null
null
null
monitoring/notifications/tests.py
okozachenko1203/monasca-ui
9014bce3de6fed79f85b79ecf30031e6af7b7356
[ "Apache-2.0" ]
29
2016-07-07T01:27:01.000Z
2021-12-03T07:24:17.000Z
# 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 u...
36.166667
76
0.668622
10c1fc508104087ec1126cf7552b5571efddbe5f
383
py
Python
basic/sort/03_insert.py
weihuchao/algorithm
5a44eff323e09fd57d3f2f2f38b4762de0dc8dda
[ "MIT" ]
null
null
null
basic/sort/03_insert.py
weihuchao/algorithm
5a44eff323e09fd57d3f2f2f38b4762de0dc8dda
[ "MIT" ]
null
null
null
basic/sort/03_insert.py
weihuchao/algorithm
5a44eff323e09fd57d3f2f2f38b4762de0dc8dda
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/12/4 22:00 # @Author : weihuchao def insert_sort(data): """ , , """ for idx in range(1, len(data)): tmp = data[idx] j = idx - 1 while j >= 0 and tmp < data[j]: data[j + 1] = data[j] j = j -...
22.529412
42
0.480418
10c2936ea0c2d4efb7c7cbaed1c8e284e4da6785
884
py
Python
GraphDefs/create_GraphDefs.py
AnotherGroupChat/Machine-Learning
73731fd67a90782940736e47d99165adcc1469ed
[ "MIT" ]
null
null
null
GraphDefs/create_GraphDefs.py
AnotherGroupChat/Machine-Learning
73731fd67a90782940736e47d99165adcc1469ed
[ "MIT" ]
null
null
null
GraphDefs/create_GraphDefs.py
AnotherGroupChat/Machine-Learning
73731fd67a90782940736e47d99165adcc1469ed
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import tensorflow as tf import numpy as np BASE = 'GraphDefs' writeg('empty.pb') a = tf.constant(42, name='a') writeg('a=42.pb') a = tf.constant([[-1.1, -2.1],[-1.2,-2.2]], name='a') writeg('a=2x2.pb') a = tf.constant(0x4242424242424242, name='a') writeg('a=4242424242424242.pb') a = tf.constant...
20.55814
70
0.626697
10c36b8fc1840cfb5a40958316805cad9712d3bb
8,254
py
Python
snipmyvideo.py
rascoro1/SnipMyVideo
0728684fa271ec140f90c7878e41d7e55eec1989
[ "MIT" ]
3
2016-07-22T00:34:50.000Z
2016-09-02T16:52:23.000Z
snipmyvideo.py
rascoro1/SnipMyVideo
0728684fa271ec140f90c7878e41d7e55eec1989
[ "MIT" ]
2
2016-09-06T04:11:44.000Z
2018-01-29T21:57:51.000Z
snipmyvideo.py
rascoro1/SnipMyVideo
0728684fa271ec140f90c7878e41d7e55eec1989
[ "MIT" ]
1
2016-09-02T20:39:25.000Z
2016-09-02T20:39:25.000Z
from moviepy.editor import * from moviepy import Clip import sys import os """ This is a simple script that can only snip your code and return it back in one video This script requires moviepy.py Is can be obtained through pip: pip install moviepy Output file can be '.mp4', 'ogv', 'webm' You can mod...
34.974576
146
0.63448
10c3bc22e15792439f59ee32dc4a6907024f22a7
20,551
py
Python
nutils/matrix.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/matrix.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/matrix.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Evalf # # 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, publish, distribute, s...
35.310997
236
0.660844
10c58e27a9810f57838afb1a0c1697fd854c3b9b
239
py
Python
pz/installer.py
pyramidzero/pzinstaller
43058b0a681fbea6e2173f1192aea720483d861c
[ "MIT" ]
null
null
null
pz/installer.py
pyramidzero/pzinstaller
43058b0a681fbea6e2173f1192aea720483d861c
[ "MIT" ]
null
null
null
pz/installer.py
pyramidzero/pzinstaller
43058b0a681fbea6e2173f1192aea720483d861c
[ "MIT" ]
null
null
null
from subprocess import run # configuration defaults tools update = ['brew', 'update'] install = ['brew', 'install', 'git']
18.384615
36
0.65272
10c64417440fb35fb29c424a295af5fb46bac46b
5,951
py
Python
modules/widgets.py
ldvlpr-dev/AudioVisualizer-Release
23e18b9b96a7bb54a134603b0e41f70b5d8569ad
[ "MIT" ]
2
2021-04-01T16:22:52.000Z
2021-05-21T18:01:12.000Z
modules/widgets.py
ldvlpr-dev/AudioVisualizer-Release
23e18b9b96a7bb54a134603b0e41f70b5d8569ad
[ "MIT" ]
null
null
null
modules/widgets.py
ldvlpr-dev/AudioVisualizer-Release
23e18b9b96a7bb54a134603b0e41f70b5d8569ad
[ "MIT" ]
2
2021-03-31T09:00:58.000Z
2021-04-28T18:36:31.000Z
import cv2 import numpy as np
40.209459
214
0.59469
10c68c99215b27d36f277cd7086d010222783579
2,772
py
Python
auto_LiRPA/examples/vision/simple_verification.py
KaidiXu/LiRPA_Verify
71f5327a8abf136bcfb3e1ec07604628abf8126e
[ "BSD-2-Clause" ]
14
2021-01-27T04:14:41.000Z
2022-01-20T11:54:35.000Z
auto_LiRPA/examples/vision/simple_verification.py
KaidiXu/LiRPA_Verify
71f5327a8abf136bcfb3e1ec07604628abf8126e
[ "BSD-2-Clause" ]
null
null
null
auto_LiRPA/examples/vision/simple_verification.py
KaidiXu/LiRPA_Verify
71f5327a8abf136bcfb3e1ec07604628abf8126e
[ "BSD-2-Clause" ]
2
2021-01-29T10:12:50.000Z
2021-05-24T21:55:20.000Z
import torch.nn as nn import torch.nn.functional as F import torchvision from auto_LiRPA import BoundedModule, BoundedTensor from auto_LiRPA.perturbations import * import models ## Step 1: Define computational graph by implementing forward() # This simple model comes from https://github.com/locuslab/convex_adversaria...
38.5
153
0.680375
10c7a36a4680a6d2f0e301e67846d4b75e77d776
15,796
py
Python
pysnmp/FUNI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/FUNI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/FUNI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module FUNI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FUNI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:03:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
118.766917
2,273
0.746961
10c86dfcee3c5238af99d41d7bb192132b1b5b75
10,337
py
Python
fiction/plaza.py
cloudRoutine/curveship
d46def2cbc5b1de6692c410e018d8e23cb477286
[ "0BSD" ]
1
2020-05-16T12:03:34.000Z
2020-05-16T12:03:34.000Z
fiction/plaza.py
ziz/curveship
17479312174d0ee09abce730e927a58c3967eda7
[ "0BSD" ]
null
null
null
fiction/plaza.py
ziz/curveship
17479312174d0ee09abce730e927a58c3967eda7
[ "0BSD" ]
1
2022-02-26T16:01:26.000Z
2022-02-26T16:01:26.000Z
"""Plaza Items (in particular, Things and Rooms) representing the setting of Lost One.""" __author__ = 'Nick Montfort' __copyright__ = 'Copyright 2011 Nick Montfort' __license__ = 'ISC' __version__ = '0.5.0.0' __status__ = 'Development' from item_model import Room, Thing items = [ Room('@plaza_center', ...
34.228477
80
0.528006
10c9be2f6f73cff7dec3ae3bf47fff1f91431efb
508
py
Python
tests/r/test_us_pop.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_us_pop.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_us_pop.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.us_pop import us_pop def test_us_pop(): """Test module us_pop.py by downloading us_pop.csv and testing shape of extracted data has 22 rows...
21.166667
43
0.75
10ca9cc7c816c201420d7b6610797d2bfb959cd4
2,407
py
Python
2021/python/dec04/solution.py
razzlestorm/advent-of-code
288488539ed64e078368ac012b7f794faa4776ba
[ "MIT" ]
null
null
null
2021/python/dec04/solution.py
razzlestorm/advent-of-code
288488539ed64e078368ac012b7f794faa4776ba
[ "MIT" ]
null
null
null
2021/python/dec04/solution.py
razzlestorm/advent-of-code
288488539ed64e078368ac012b7f794faa4776ba
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List FILE_DIR = Path(__file__).parent if __name__ == "__main__": DATA = (FILE_DIR / "input.txt").read_text().strip() data = [x for x in DATA.split('\n\n')] numbers = data[0].split(",") boards = data[1:] d_boards = create_boards(boards) ranks = get_...
37.030769
94
0.592023
10cb9838854d193a4ba4ad92bc63d09d7e022be4
1,804
py
Python
app.py
serbathome/words
052a50168d1ce6a5c6df3b18403f75042b0272c9
[ "Apache-2.0" ]
null
null
null
app.py
serbathome/words
052a50168d1ce6a5c6df3b18403f75042b0272c9
[ "Apache-2.0" ]
null
null
null
app.py
serbathome/words
052a50168d1ce6a5c6df3b18403f75042b0272c9
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, jsonify import random as r import csv app = Flask(__name__) # define global words dictionary words = {} words["easy"] = [] words["medium"] = [] words["hard"] = [] # load words (russian and english) with open('words.csv', newline='\n', encoding="UTF8") as csvfile: wordrea...
26.529412
65
0.553769
10cbc3f174660b6796631abe31b2d238854acb6c
1,046
py
Python
setup.py
cexiolabs/cexpay.support-telegram-bot
84a3d0a5c95f2b43dcf276593d0a5f719f78f67d
[ "Apache-2.0" ]
null
null
null
setup.py
cexiolabs/cexpay.support-telegram-bot
84a3d0a5c95f2b43dcf276593d0a5f719f78f67d
[ "Apache-2.0" ]
null
null
null
setup.py
cexiolabs/cexpay.support-telegram-bot
84a3d0a5c95f2b43dcf276593d0a5f719f78f67d
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='cexpay', version='2.0.4', description="A support bot for CEX Pay's products. See more https://developers.cexpay.io/.", long_description=long_description, long_description_co...
34.866667
96
0.647228
10cd63e9b5a20d471655425cd06fc64cdb6da4e4
2,471
py
Python
newsthreads/sentences.py
microsoft/News-Threads
77e8db64f71ad7f109f6a62898f521f346b28be2
[ "MIT" ]
5
2020-06-27T01:25:34.000Z
2021-04-16T05:08:07.000Z
newsthreads/sentences.py
microsoft/News-Threads
77e8db64f71ad7f109f6a62898f521f346b28be2
[ "MIT" ]
null
null
null
newsthreads/sentences.py
microsoft/News-Threads
77e8db64f71ad7f109f6a62898f521f346b28be2
[ "MIT" ]
5
2020-07-31T10:21:27.000Z
2021-11-10T08:32:26.000Z
# File #1: Fragment, FragmentId # File #2: fragmentid, docid, date, domain, fragmentposition import configparser from typing import Dict, List, Tuple import csv import nltk.data import string
35.811594
111
0.61554
10ceb5b8c333d0a852efe89da7acab8411d380e4
1,394
py
Python
reconcile/test/test_utils_ocm_versions.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_utils_ocm_versions.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_utils_ocm_versions.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
import pytest from reconcile.utils.ocm import OCM
26.807692
71
0.689383
10cef77bbd20a3864270cb1eae1c4d0659257eb3
97,317
py
Python
test_agent/jianyang_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
null
null
null
test_agent/jianyang_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
null
null
null
test_agent/jianyang_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
1
2021-03-17T16:26:32.000Z
2021-03-17T16:26:32.000Z
# -*- coding: utf-8 -*- import datetime import os import pickle import random from copy import deepcopy from time import sleep import numpy as np from test_agent.ai_interface import AIInterface from test_agent.utils.wait_calc import WaitCalc from test_agent.utils.win_calc import WinCalc from client.mahjong_meld impor...
44.640826
153
0.548979
10cf83b6989722a699079e2f639db75597032ff7
5,418
py
Python
jupyterlab_templates/extension.py
ElectroDevTeam/jupyterlab_templates
b09d8ac52b583bdc8fdcce11f6da14341d282b54
[ "Apache-2.0" ]
null
null
null
jupyterlab_templates/extension.py
ElectroDevTeam/jupyterlab_templates
b09d8ac52b583bdc8fdcce11f6da14341d282b54
[ "Apache-2.0" ]
null
null
null
jupyterlab_templates/extension.py
ElectroDevTeam/jupyterlab_templates
b09d8ac52b583bdc8fdcce11f6da14341d282b54
[ "Apache-2.0" ]
null
null
null
import fnmatch import json import os import os.path import jupyter_core.paths from io import open from datetime import datetime from notebook.utils import url_path_join from notebook.base.handlers import IPythonHandler DATE_FORMAT = "%Y-%m-%d" TIME_FORMAT = "%H:%M:%S" DEFAULT_USERNAME = "anonymous" USERNAME_TEMPLATE ...
39.26087
114
0.634736
10cf86523f7b53b3cbe34ca1abb35ccfd600860e
3,633
py
Python
src/automotive/application/actions/serial_actions.py
philosophy912/automotive
de918611652b789a83545f346c1569c2c2c955a6
[ "Apache-2.0" ]
null
null
null
src/automotive/application/actions/serial_actions.py
philosophy912/automotive
de918611652b789a83545f346c1569c2c2c955a6
[ "Apache-2.0" ]
null
null
null
src/automotive/application/actions/serial_actions.py
philosophy912/automotive
de918611652b789a83545f346c1569c2c2c955a6
[ "Apache-2.0" ]
1
2022-02-28T07:23:28.000Z
2022-02-28T07:23:28.000Z
# -*- coding:utf-8 -*- # -------------------------------------------------------- # Copyright (C), 2016-2020, lizhe, All rights reserved # -------------------------------------------------------- # @Name: serial_actions.py # @Author: lizhe # @Created: 2021/5/2 - 0:02 # ----------------------------------...
25.95
115
0.548582
10d058dbcac1f25191aa2aab916d1db3bd200dbf
1,446
py
Python
colours.py
F0lha/UJunior-Projects
c46be35de2266a6bf72b22db5d982ebda1334b30
[ "MIT" ]
null
null
null
colours.py
F0lha/UJunior-Projects
c46be35de2266a6bf72b22db5d982ebda1334b30
[ "MIT" ]
null
null
null
colours.py
F0lha/UJunior-Projects
c46be35de2266a6bf72b22db5d982ebda1334b30
[ "MIT" ]
null
null
null
# Permite usar o modulo do Sense HAT from sense_hat import SenseHat from mcpi.minecraft import Minecraft from time import sleep sense = SenseHat() mc = Minecraft.create() # blocos grass = 2 water = 9 sand = 12 air = 0 # cores white = (255, 255, 255) green = (0, 255, 0) blue = (0, 0, 255) yellow = (255, 255, 0) blac...
20.956522
59
0.553942
10d1e06975d52bb7b5f8e0f3c90a9460e0d76260
12,674
py
Python
year_2/os_sem2/checkLab14/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_2/os_sem2/checkLab14/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_2/os_sem2/checkLab14/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
import sys import os import re if __name__ == '__main__': main()
36.524496
110
0.566435
10d2a94ebd88d32ad26b964e29b12c2b154a5761
7,858
py
Python
HSTB/drivers/hips_log.py
noaa-ocs-hydrography/drivers
d798a851b7b06c986c811a84242529038fd0b2b3
[ "CC0-1.0" ]
2
2021-04-28T17:37:30.000Z
2022-01-28T21:56:17.000Z
HSTB/drivers/hips_log.py
noaa-ocs-hydrography/drivers
d798a851b7b06c986c811a84242529038fd0b2b3
[ "CC0-1.0" ]
1
2020-11-05T13:57:34.000Z
2020-11-05T14:00:26.000Z
HSTB/drivers/hips_log.py
noaa-ocs-hydrography/drivers
d798a851b7b06c986c811a84242529038fd0b2b3
[ "CC0-1.0" ]
1
2021-04-09T08:29:54.000Z
2021-04-09T08:29:54.000Z
import xml.etree.ElementTree as ElementTree import os
27.865248
102
0.573556
10d394809031c831a797106d7da931ca1931a5d8
89
py
Python
Contest/ABC017/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC017/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC017/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import re print(re.sub("ch|o|k|u", "", input()) and "NO" or "YES")
29.666667
56
0.606742
10d3a064f0cfe210246996fe757aa5f3e0edc11d
8,393
py
Python
plugins/salesforce_utils.py
brennoflavio/airflow-salesforce-operators
30019402b0ae4e2c8d3fde43b1273781316358a7
[ "MIT" ]
null
null
null
plugins/salesforce_utils.py
brennoflavio/airflow-salesforce-operators
30019402b0ae4e2c8d3fde43b1273781316358a7
[ "MIT" ]
null
null
null
plugins/salesforce_utils.py
brennoflavio/airflow-salesforce-operators
30019402b0ae4e2c8d3fde43b1273781316358a7
[ "MIT" ]
null
null
null
from simple_salesforce import Salesforce from airflow.hooks.base_hook import BaseHook import json from airflow.utils.log.logging_mixin import LoggingMixin from airflow.models import BaseOperator from airflow.plugins_manager import AirflowPlugin from airflow.utils.decorators import apply_defaults import csv from tempfil...
35.563559
105
0.556535
10d3ca3bf530a8c109cbd94308e316fd9795c6d0
1,928
py
Python
src/django_website/blog/views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
2
2019-09-23T18:42:32.000Z
2019-09-27T00:33:38.000Z
src/django_website/blog/views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
6
2021-03-19T03:25:33.000Z
2022-02-10T08:48:14.000Z
src/django_website/blog/views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
6
2019-09-23T18:53:41.000Z
2020-02-06T00:20:06.000Z
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404 from .models import BlogPost from .forms import BlogPostModelForm # render intial html page of list of published blogs # create new blog post # click on blog 'view' on blog list page to see details of a s...
35.703704
80
0.702801
10d567f52597f63ae873c81fa0c69444cf588834
6,863
py
Python
uiConfig.py
g-ulrich/ScreenShotToDiscord
7228d01637d426a2767a9531576880180a49c92f
[ "MIT" ]
null
null
null
uiConfig.py
g-ulrich/ScreenShotToDiscord
7228d01637d426a2767a9531576880180a49c92f
[ "MIT" ]
null
null
null
uiConfig.py
g-ulrich/ScreenShotToDiscord
7228d01637d426a2767a9531576880180a49c92f
[ "MIT" ]
null
null
null
from PyQt5.QtCore import QTimer, QTime from PyQt5 import QtGui, QtWidgets import time import random import os import datetime import requests import sqlite3 as sql import database_impl as db from date_tools import dt def datetime_diff(old_datetime, new_datetime, dates_are_strings=True): """ String dates shoul...
43.713376
181
0.616203
10d7d0aaafbffeb183977058c120740205d009d7
38,243
py
Python
src/glum/_distribution.py
Quantco/glum
880dc6ff2599864679d86c3a8b1809aa24e2a839
[ "BSD-3-Clause" ]
68
2021-10-08T09:05:29.000Z
2022-03-28T14:40:58.000Z
src/glum/_distribution.py
Quantco/glum
880dc6ff2599864679d86c3a8b1809aa24e2a839
[ "BSD-3-Clause" ]
49
2021-10-08T01:44:18.000Z
2022-03-08T08:53:00.000Z
src/glum/_distribution.py
Quantco/glum
880dc6ff2599864679d86c3a8b1809aa24e2a839
[ "BSD-3-Clause" ]
11
2021-10-14T10:34:53.000Z
2022-03-09T11:38:29.000Z
from abc import ABCMeta, abstractmethod from functools import partial from typing import Tuple, Union import numexpr import numpy as np from scipy import sparse, special from tabmat import MatrixBase, StandardizedMatrix from ._functions import ( binomial_logit_eta_mu_deviance, binomial_logit_rowwise_gradient_...
31.710614
87
0.577256
10d958d2eda3c687a5c43498b484847dfdf3bb4d
2,733
py
Python
apps/medicalcontrol/models.py
claudioDcv/Vetadmin
2b5cf78bc7ad58000cedaf2474191d921e61745c
[ "MIT" ]
1
2017-03-18T15:07:00.000Z
2017-03-18T15:07:00.000Z
apps/medicalcontrol/models.py
claudioDcv/Vetadmin
2b5cf78bc7ad58000cedaf2474191d921e61745c
[ "MIT" ]
null
null
null
apps/medicalcontrol/models.py
claudioDcv/Vetadmin
2b5cf78bc7ad58000cedaf2474191d921e61745c
[ "MIT" ]
null
null
null
from django.db import models from apps.core.models import Patient, Person from django_extensions.db.fields import AutoSlugField from apps.core.utils import STYLE_IMG_MIN from apps.pharmacy.models import SupplyAssignControl
40.191176
127
0.643249
10db0a1461dd4901dea43c8088f2d331ca5bbb5e
908
py
Python
icetray/resources/test/shoulddo.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
icetray/resources/test/shoulddo.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
icetray/resources/test/shoulddo.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/env python # # Sample i3module in python # from icecube.icetray import * from I3Tray import * tray = I3Tray() # generate empty frames tray.AddModule("BottomlessSource","bottomless") tray.AddModule(make_counter(I3Module), "modulecounter") tray.AddModule(make_counter(I3ConditionalModule), "co...
23.282051
77
0.615639
10db498d974995cdddc73b0eb663f988c2c1a75e
3,405
py
Python
Scripts/Biochemistry/Merge_Compounds.py
nkkchem/ModelSEEDDatabase
a117e433f540e931ee60a961f0d23cfc23cc387d
[ "MIT" ]
null
null
null
Scripts/Biochemistry/Merge_Compounds.py
nkkchem/ModelSEEDDatabase
a117e433f540e931ee60a961f0d23cfc23cc387d
[ "MIT" ]
null
null
null
Scripts/Biochemistry/Merge_Compounds.py
nkkchem/ModelSEEDDatabase
a117e433f540e931ee60a961f0d23cfc23cc387d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys temp=list(); header=1; sys.path.append('../../Libs/Python') from BiochemPy import Reactions, Compounds ReactionsHelper = Reactions() Reactions_Dict = ReactionsHelper.loadReactions() CompoundsHelper = Compounds() Compounds_Dict = CompoundsHelper.loadCompounds() Compound_To_Merge_...
34.744898
130
0.676065
10db75502d4a745e4f587f18e42925c85597af44
1,110
py
Python
Homework.py
Quericee/da
1207bae632fc0a1a755a5bd57d0236a43d31efbf
[ "MIT" ]
null
null
null
Homework.py
Quericee/da
1207bae632fc0a1a755a5bd57d0236a43d31efbf
[ "MIT" ]
null
null
null
Homework.py
Quericee/da
1207bae632fc0a1a755a5bd57d0236a43d31efbf
[ "MIT" ]
null
null
null
import math import pandas as pd data = pd.read_csv("works.csv").dropna() count_people = 0 for (jobTitle, qualification) in zip(data['jobTitle'], data['qualification']): if jobTitle != qualification: count_people += 1 print(f" {count_people} ") menegers = data[data['jobTitle'].str.lower()....
30.833333
110
0.640541
10dc00d7522da15de0e33f479a057809367bc817
3,439
py
Python
examtool/examtool/cli/compile_all.py
ThaumicMekanism/cs61a-apps
2dfd1402a87569020fe28b5bd1b9282703e3eebd
[ "MIT" ]
null
null
null
examtool/examtool/cli/compile_all.py
ThaumicMekanism/cs61a-apps
2dfd1402a87569020fe28b5bd1b9282703e3eebd
[ "MIT" ]
null
null
null
examtool/examtool/cli/compile_all.py
ThaumicMekanism/cs61a-apps
2dfd1402a87569020fe28b5bd1b9282703e3eebd
[ "MIT" ]
null
null
null
import json import os import pathlib from datetime import datetime from io import BytesIO from pikepdf import Pdf, Encryption import click import pytz from examtool.api.database import get_exam, get_roster from examtool.api.utils import sanitize_email from examtool.api.scramble import scramble from examtool.api.gen_l...
27.293651
103
0.610352
10dc049135b7cdd6cae504711512f545f568bc84
5,020
py
Python
main/tests/test_views.py
Lumexralph/book-store
990ad187f0babd1a08e83a90c381117ce5d4f686
[ "Apache-2.0" ]
null
null
null
main/tests/test_views.py
Lumexralph/book-store
990ad187f0babd1a08e83a90c381117ce5d4f686
[ "Apache-2.0" ]
8
2020-06-05T23:45:34.000Z
2022-01-13T01:47:23.000Z
main/tests/test_views.py
Lumexralph/book-store
990ad187f0babd1a08e83a90c381117ce5d4f686
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from unittest.mock import patch from django.test import TestCase from django.urls import reverse from django.contrib import auth from main.models import Product, User, Address from main.forms import UserCreationForm
33.026316
78
0.591434
10dc80116f563ea0a2e9886f4435631d1b02b4b4
299
py
Python
021_loguru/multifile01.py
fkubota/rkkubotay-gmail.com
03abffd520b6ba241d102184bba28507c8aa4d61
[ "MIT" ]
null
null
null
021_loguru/multifile01.py
fkubota/rkkubotay-gmail.com
03abffd520b6ba241d102184bba28507c8aa4d61
[ "MIT" ]
49
2021-01-12T07:25:17.000Z
2022-03-12T00:53:24.000Z
021_loguru/multifile01.py
fkubota/rkkubotay-gmail.com
03abffd520b6ba241d102184bba28507c8aa4d61
[ "MIT" ]
null
null
null
from loguru import logger from multifile02 import sum_ab if __name__ == "__main__": main()
14.95
35
0.625418
10dcd63f6971079940c1323786fecd18f6fad2b3
162
py
Python
pythonperlin/__init__.py
timpyrkov/pyperlin
c79080657aa79df1abc83e481d2b09cac5edbff7
[ "MIT" ]
null
null
null
pythonperlin/__init__.py
timpyrkov/pyperlin
c79080657aa79df1abc83e481d2b09cac5edbff7
[ "MIT" ]
null
null
null
pythonperlin/__init__.py
timpyrkov/pyperlin
c79080657aa79df1abc83e481d2b09cac5edbff7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pythonperlin.perlin import perlin from pkg_resources import get_distribution __version__ = get_distribution('pythonperlin').version
27
54
0.796296
10dd33d3f2c88f6ed9447b48563fc0a3cb09360a
4,903
py
Python
reservas/settings/base.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
1
2018-11-10T14:57:54.000Z
2018-11-10T14:57:54.000Z
reservas/settings/base.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
6
2020-06-05T17:11:56.000Z
2021-09-07T23:38:00.000Z
reservas/settings/base.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
1
2019-04-16T20:00:05.000Z
2019-04-16T20:00:05.000Z
# coding=utf-8 """ Django settings for reservas project. Generated by 'django-admin startproject' using Django 1.8.5. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ ...
29.011834
98
0.698756
10ddaf79aa926db060bebc8c2157d158b2eb7df1
27,684
py
Python
python/learning2.py
dblalock/sprintz
a056cdb67d049669875ab5487359aca99ae873ea
[ "Apache-2.0" ]
45
2019-02-02T15:50:25.000Z
2022-03-08T05:42:06.000Z
python/learning2.py
memetb/sprintz
a056cdb67d049669875ab5487359aca99ae873ea
[ "Apache-2.0" ]
2
2020-03-27T23:29:15.000Z
2020-11-09T01:37:08.000Z
python/learning2.py
memetb/sprintz
a056cdb67d049669875ab5487359aca99ae873ea
[ "Apache-2.0" ]
10
2019-03-08T09:04:29.000Z
2022-02-18T22:28:23.000Z
#!/usr/bin/env python import collections # import itertools import numpy as np # from sklearn import linear_model as linear # for VAR # from .utils import sliding_window as window # from .utils.distance import kmeans, dists_sq # from .utils import distance as dist # from python import compress # ===============...
40.592375
109
0.489091
10de22358037cf8ccf5fee7e45edea840e4276ac
159
py
Python
run.py
radish2012/flask-restful-example
972c720cee9819d030f9889a8535a444277b874e
[ "MIT" ]
650
2019-07-08T09:09:25.000Z
2022-03-31T08:01:43.000Z
run.py
radish2012/flask-restful-example
972c720cee9819d030f9889a8535a444277b874e
[ "MIT" ]
5
2020-01-14T05:35:37.000Z
2022-03-11T23:46:39.000Z
run.py
radish2012/flask-restful-example
972c720cee9819d030f9889a8535a444277b874e
[ "MIT" ]
222
2019-07-15T01:52:03.000Z
2022-03-28T05:32:21.000Z
from app.factory import create_app, celery_app app = create_app(config_name="DEVELOPMENT") app.app_context().push() if __name__ == "__main__": app.run()
19.875
46
0.735849
10de725aa99b82e35e8d69fc01aaec8b46a671ed
4,405
py
Python
__init__.py
KAndreyK/gachicmd
a4f55276363c49389bba95ab7d4ed28faecc5681
[ "MIT" ]
null
null
null
__init__.py
KAndreyK/gachicmd
a4f55276363c49389bba95ab7d4ed28faecc5681
[ "MIT" ]
null
null
null
__init__.py
KAndreyK/gachicmd
a4f55276363c49389bba95ab7d4ed28faecc5681
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- encoding: utf-8 -*- """Command line interpreter right version.""" import sys import cmd import random import os import pyglet.media import webbrowser import time gachidict = [] with open('gachicmd' + os.sep + 'gachidict.txt') as f: gachidict = f.read().splitlines() he...
30.171233
94
0.528944
10de9939df6d76398eb74dc52c2cb120b2d2c88f
1,571
py
Python
scripts/check_schemas.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
scripts/check_schemas.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
scripts/check_schemas.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
# pylint: disable=print-call import importlib import pkgutil import dagster import sqlalchemy as sa def check_schema_compat(schema): """We run this check to ensure that we don't have any schema columns that are incompatible with MySQL. """ for name in dir(schema): obj = getattr(schema, name) ...
33.425532
99
0.60662
10df133a433492185e9da42e3e25c81ed4744f41
2,206
py
Python
src/main/resources/alm/CreateDefect.py
xebialabs-community/xlr-hpalm-plugin
e374f9082595a34afe7bef8e644715b2b0462c33
[ "MIT" ]
null
null
null
src/main/resources/alm/CreateDefect.py
xebialabs-community/xlr-hpalm-plugin
e374f9082595a34afe7bef8e644715b2b0462c33
[ "MIT" ]
1
2019-05-13T17:36:45.000Z
2019-05-13T17:36:45.000Z
src/main/resources/alm/CreateDefect.py
xebialabs-community/xlr-hpalm-plugin
e374f9082595a34afe7bef8e644715b2b0462c33
[ "MIT" ]
3
2019-05-10T17:48:20.000Z
2020-07-08T14:22:20.000Z
# # Copyright 2021 XEBIALABS # # 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, publish, distribute, subli...
50.136364
462
0.714415
10df8daedd4922d6712d342fc7421a530de31aea
527
py
Python
extra_apps/xadmin/plugins/utils.py
Fors3cDream/DjX
cac207b84923a558da83b0cad15f736f5e6faad2
[ "Apache-2.0" ]
3
2017-05-30T14:29:21.000Z
2018-08-06T08:29:25.000Z
extra_apps/xadmin/plugins/utils.py
Fors3cDream/DjX
cac207b84923a558da83b0cad15f736f5e6faad2
[ "Apache-2.0" ]
1
2021-02-08T20:51:30.000Z
2021-02-08T20:51:30.000Z
extra_apps/xadmin/plugins/utils.py
Fors3cDream/DjX
cac207b84923a558da83b0cad15f736f5e6faad2
[ "Apache-2.0" ]
1
2017-08-23T06:49:46.000Z
2017-08-23T06:49:46.000Z
from django.template.context import RequestContext def get_context_dict(context): """ Contexts in django version 1.9+ must be dictionaries. As xadmin has a legacy with older versions of django, the function helps the transition by converting the [RequestContext] object to the dictionary when necessary. ...
31
113
0.698292
10e08d796a74b4eb31783e866cf66948364093d9
2,144
py
Python
tests/wallet_api/test_mining.py
beatsbears/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
7
2018-03-24T17:26:27.000Z
2020-06-09T10:38:44.000Z
tests/wallet_api/test_mining.py
MrPilotMan/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
2
2019-09-09T17:06:43.000Z
2021-06-01T21:20:08.000Z
tests/wallet_api/test_mining.py
MrPilotMan/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
4
2018-04-10T12:50:55.000Z
2022-03-14T20:30:01.000Z
''' pyburstlib :author: drownedcoast :date: 4-26-2018 ''' import pytest from pyburstlib.wallet_api.models.mining import * from tests.base import BaseTest from tests.config import PyBurstLibConfig
45.617021
113
0.728078
10e1be91406866f0d1fa96365de13d361b7ae9cd
291
py
Python
nltktest.py
HeikkiKeskustalo/Fuzzy-String-Matching
21215d58473f2af72c039d6d3c186e18f04dd893
[ "MIT" ]
null
null
null
nltktest.py
HeikkiKeskustalo/Fuzzy-String-Matching
21215d58473f2af72c039d6d3c186e18f04dd893
[ "MIT" ]
7
2018-06-28T03:57:04.000Z
2018-08-28T12:37:19.000Z
nltktest.py
EvoluzTampere/Fuzzy-String-Matching
9137f23f9713e2778a8894cbfd3ef1dc34913599
[ "MIT" ]
1
2018-08-07T07:41:00.000Z
2018-08-07T07:41:00.000Z
from nltk.stem.snowball import SnowballStemmer letter = [u'kissassa'] for word in letter: print word, SnowballStemmer("finnish").stem(word) # read file (get a string) # detect charset (UTF-8) # decode (get a Unicode code point presentation) # tokenize # try out the Snowball stemmer
20.785714
53
0.738832
10e2118348f1c2b14089d5cf7bc1ddd8e43cd869
5,979
py
Python
Linked-in Job scrapper.py
MMallah/Linked-in-Job-scrapper
9a537849a8f62e278f091ca71d8041bb3b4541b0
[ "MIT" ]
null
null
null
Linked-in Job scrapper.py
MMallah/Linked-in-Job-scrapper
9a537849a8f62e278f091ca71d8041bb3b4541b0
[ "MIT" ]
null
null
null
Linked-in Job scrapper.py
MMallah/Linked-in-Job-scrapper
9a537849a8f62e278f091ca71d8041bb3b4541b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Project Data Science Desired Skills # # this project will Answer the question of what are the most desired skills for Data Science in Egypt and UAE. # * Extract data from Linked in Via webscrapping or Manually. # * Perform data wrangling ( image recognition or NLP). # * Segme...
21.430108
147
0.680716
10e230dff4f183cac0ecd093228e7522ab70f334
26
py
Python
25_Assigment_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
25_Assigment_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
25_Assigment_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
x = 5 x |= 3 print(x)
3.25
8
0.384615
10e277afdb91cd3d6c4969cdf3e9d08b1012d482
3,424
py
Python
email_extractor.py
lukeeckley/outlook-email-recovery
94f6ce67d12e761eb9049d56f6a3950203d5d472
[ "MIT" ]
null
null
null
email_extractor.py
lukeeckley/outlook-email-recovery
94f6ce67d12e761eb9049d56f6a3950203d5d472
[ "MIT" ]
null
null
null
email_extractor.py
lukeeckley/outlook-email-recovery
94f6ce67d12e761eb9049d56f6a3950203d5d472
[ "MIT" ]
null
null
null
import argparse import os import re import sys try: import pypff except ImportError: print("[+] Install the libpff Python bindings to use this script") sys.exit(1) message_list = [] messages = 0 if __name__ == '__main__': # Command-line Argument Parser parser = argparse.ArgumentParser(description="Outl...
31.703704
105
0.622079
10e2b00c6ccdaad9da612055fa45d2c4930f0890
3,498
py
Python
Judge/judge_core.py
peeesspee/BitOJ
0d67a87b71d0c8c8d3df719f1b9e176ec91cfb32
[ "MIT" ]
30
2019-07-28T18:05:33.000Z
2021-12-27T10:19:31.000Z
Judge/judge_core.py
peeesspee/BitOJ
0d67a87b71d0c8c8d3df719f1b9e176ec91cfb32
[ "MIT" ]
2
2019-09-03T19:53:03.000Z
2019-10-18T11:00:44.000Z
Judge/judge_core.py
peeesspee/BitOJ
0d67a87b71d0c8c8d3df719f1b9e176ec91cfb32
[ "MIT" ]
4
2019-10-02T04:54:50.000Z
2020-08-10T13:28:58.000Z
# This process handles all the requests in the queue task_queue and updates database import json, pika, sys, time from database_management import manage_database, submission_management
28.209677
106
0.64837
10e350fdeb74a09ba92056d3e0417d107ac47a47
50
py
Python
{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py
cav71/cav71-python-package-cookiecutter
697a830560ee5e3072e28a0021e227a7d0ef5b66
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py
cav71/cav71-python-package-cookiecutter
697a830560ee5e3072e28a0021e227a7d0ef5b66
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py
cav71/cav71-python-package-cookiecutter
697a830560ee5e3072e28a0021e227a7d0ef5b66
[ "BSD-3-Clause" ]
null
null
null
__version__ = "0.0.0" __hash__ = "<invalid-hash>"
16.666667
27
0.66
10e3ae93c25d180de54302b985756fd17e3e9d4e
5,954
py
Python
generator/restaurant.py
mouse-reeve/unfamiliar-tourism
18daa6f130ceeaf75b5b74d119b77580063dc838
[ "MIT" ]
3
2019-02-27T20:35:22.000Z
2020-11-16T16:56:36.000Z
generator/restaurant.py
mouse-reeve/unfamiliar-tourism
18daa6f130ceeaf75b5b74d119b77580063dc838
[ "MIT" ]
10
2017-10-05T19:50:47.000Z
2018-10-17T15:17:52.000Z
generator/restaurant.py
mouse-reeve/unfamiliar-tourism
18daa6f130ceeaf75b5b74d119b77580063dc838
[ "MIT" ]
1
2020-11-16T16:56:39.000Z
2020-11-16T16:56:39.000Z
''' buildings and built environment ''' from datetime import datetime import random import tracery from utilities import format_text, get_latin def eatery(name, dish, category, data): ''' a charming stone hut where they serve tea ''' earliest = data['founded'] if data['founded'] > 1700 else 1700 founding =...
44.432836
80
0.533255
10e603705f200570ddc8a317e07439c1c6aa3453
1,235
py
Python
Urutu/cu/blocks.py
adityaatluri/Urutu
a01cfc5e4101e0479ae420807c8a380fcdfb96ff
[ "Apache-2.0" ]
null
null
null
Urutu/cu/blocks.py
adityaatluri/Urutu
a01cfc5e4101e0479ae420807c8a380fcdfb96ff
[ "Apache-2.0" ]
null
null
null
Urutu/cu/blocks.py
adityaatluri/Urutu
a01cfc5e4101e0479ae420807c8a380fcdfb96ff
[ "Apache-2.0" ]
null
null
null
## CUDA blocks are initialized here! ## Created by: Aditya Atluri ## Date: Mar 03 2014
27.444444
59
0.663158
10e7175402559319c02afe0d648f19ee8be6ef3c
953
py
Python
tests/test_attr.py
tatsuya4649/dcolour
fc55768ca5f9208771b034c85c72cbc72ff98adc
[ "MIT" ]
null
null
null
tests/test_attr.py
tatsuya4649/dcolour
fc55768ca5f9208771b034c85c72cbc72ff98adc
[ "MIT" ]
null
null
null
tests/test_attr.py
tatsuya4649/dcolour
fc55768ca5f9208771b034c85c72cbc72ff98adc
[ "MIT" ]
null
null
null
import pytest from dcolor.attr import *
15.883333
34
0.52361
10e78d87cc82a459f5caa7a1a6341f84faedc2e2
7,358
py
Python
tests/test_setuptools_build_subpackage.py
ashb/setuptools-build-subpackage
6169baaea0020aaecf71e0441e1c44120c88b4ff
[ "Apache-2.0" ]
2
2020-11-30T12:41:13.000Z
2021-07-14T14:43:42.000Z
tests/test_setuptools_build_subpackage.py
ashb/setuptools-build-subpackage
6169baaea0020aaecf71e0441e1c44120c88b4ff
[ "Apache-2.0" ]
null
null
null
tests/test_setuptools_build_subpackage.py
ashb/setuptools-build-subpackage
6169baaea0020aaecf71e0441e1c44120c88b4ff
[ "Apache-2.0" ]
null
null
null
import os import tarfile import textwrap from pathlib import Path import setuptools from wheel.wheelfile import WheelFile from setuptools_build_subpackage import Distribution ROOT = Path(__file__).parent.parent
41.806818
119
0.647323
10eabbde5c8c1ecebe18272de8da83e00ed981a5
2,711
py
Python
satchless/checkout/tests/__init__.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
1
2017-11-26T18:53:40.000Z
2017-11-26T18:53:40.000Z
satchless/checkout/tests/__init__.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
13
2015-01-22T23:47:52.000Z
2022-01-13T20:22:34.000Z
satchless/checkout/tests/__init__.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.conf import settings from django.http import HttpResponse from django.test import ( Client, TestCase, ) from satchless.cart.tests import TestCart from ...cart.models import CART_SESSION_KEY from ...order.app import order_app from ...pri...
34.316456
93
0.677241
10eadf799059b6e61c4efcf6b39cc22bd1709f1f
4,309
py
Python
app/source/tests_previos/test6/run.py
SMDynamicsLab/Haptic
2c109cf4098c3e9b968bfd0d6ddd48e9a80f270e
[ "MIT" ]
null
null
null
app/source/tests_previos/test6/run.py
SMDynamicsLab/Haptic
2c109cf4098c3e9b968bfd0d6ddd48e9a80f270e
[ "MIT" ]
null
null
null
app/source/tests_previos/test6/run.py
SMDynamicsLab/Haptic
2c109cf4098c3e9b968bfd0d6ddd48e9a80f270e
[ "MIT" ]
null
null
null
import os import subprocess import pathlib import time import sys from numpy.core.shape_base import block import pandas as pd import matplotlib.pyplot as plt import numpy as np from random import randint import random from datetime import datetime if __name__ == "__main__": try: run_make() data_pa...
34.472
95
0.624043
10ebbac7e6bf038ef16d63153c2620db6f0bfe22
7,167
py
Python
Libraries_Benchmark/Real_dataset_experiments/code/Plotting/plots_code_real_dataset_var.py
gonzalo-munillag/Benchmarking_Differential_Privacy_Analytics_Libraries
eb0aaa38686812112d421085b0b61fa9880c4f87
[ "MIT" ]
null
null
null
Libraries_Benchmark/Real_dataset_experiments/code/Plotting/plots_code_real_dataset_var.py
gonzalo-munillag/Benchmarking_Differential_Privacy_Analytics_Libraries
eb0aaa38686812112d421085b0b61fa9880c4f87
[ "MIT" ]
null
null
null
Libraries_Benchmark/Real_dataset_experiments/code/Plotting/plots_code_real_dataset_var.py
gonzalo-munillag/Benchmarking_Differential_Privacy_Analytics_Libraries
eb0aaa38686812112d421085b0b61fa9880c4f87
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.gridspec as gs import numpy as np import pandas as pd import csv from matplotlib.lines import Line2D epsilon = pd.read_pickle('epsilon.pkl') plots_with_sizes(result_folder="E:\\MS_Thesis\\publication_stuff\\results_Jan_2021\\real_dataset_micro\\22April2021", query="...
62.321739
298
0.654528
10eec5ef18a14eb50d0dd2a7fc5c856e9cf818ae
5,443
py
Python
tests/anim.py
jerry-belaston/gopro-lib-node.gl
623031489ddc82ed980c15bad349391c5b6bab5c
[ "Apache-2.0" ]
1
2020-09-02T01:30:21.000Z
2020-09-02T01:30:21.000Z
tests/anim.py
jerry-belaston/gopro-lib-node.gl
623031489ddc82ed980c15bad349391c5b6bab5c
[ "Apache-2.0" ]
1
2020-09-09T16:14:38.000Z
2020-09-09T16:14:38.000Z
tests/anim.py
jerry-belaston/gopro-lib-node.gl
623031489ddc82ed980c15bad349391c5b6bab5c
[ "Apache-2.0" ]
1
2020-09-09T14:51:05.000Z
2020-09-09T14:51:05.000Z
#!/usr/bin/env python # # Copyright 2020 GoPro Inc. # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache...
34.232704
96
0.60959
10eff1d39f6acd5ae6fc306444aa467930b6a9d1
1,624
py
Python
ozpcenter/models/import_task_result.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
ozpcenter/models/import_task_result.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
ozpcenter/models/import_task_result.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
from django.db import models from ozpcenter.utils import get_now_utc from .import_task import ImportTask
28.491228
105
0.690887
10f03c8b4ec1d6bf728c70944a7bf9b8db50e71f
3,422
py
Python
latmats/tasks/loader.py
ardunn/latmats
9eabbd404041cd706dac443dda18bf4809835d3b
[ "MIT" ]
null
null
null
latmats/tasks/loader.py
ardunn/latmats
9eabbd404041cd706dac443dda18bf4809835d3b
[ "MIT" ]
null
null
null
latmats/tasks/loader.py
ardunn/latmats
9eabbd404041cd706dac443dda18bf4809835d3b
[ "MIT" ]
null
null
null
""" Loading utilities for computational experiments. """ import os import pandas as pd DATA_DIR = os.path.dirname(os.path.abspath(__file__)) def load_zT(all_data=False): """ Thermoelectric figures of merit for 165 experimentally measured compounds. Obtained from the Citrination database maintained by C...
31.394495
96
0.708358
10f0b5be627adb241ec165f681ffdd4b7c724bf9
1,913
py
Python
triviaqa_cp/triviaqa_cp_loader.py
chrisc36/debias
98033fd569499879ba8d0ef917b37913660f3701
[ "Apache-2.0" ]
51
2019-09-12T03:40:08.000Z
2022-03-12T07:47:33.000Z
triviaqa_cp/triviaqa_cp_loader.py
kiminh/debias
98033fd569499879ba8d0ef917b37913660f3701
[ "Apache-2.0" ]
2
2020-05-22T14:32:50.000Z
2021-03-26T08:36:47.000Z
triviaqa_cp/triviaqa_cp_loader.py
kiminh/debias
98033fd569499879ba8d0ef917b37913660f3701
[ "Apache-2.0" ]
8
2019-10-25T06:08:29.000Z
2021-06-23T22:15:58.000Z
import json def get_qtypes(dataset_name, part): """Return list of question-types for a particular TriviaQA-CP dataset""" if dataset_name not in {"location", "person"}: raise ValueError("Unknown dataset %s" % dataset_name) if part not in {"train", "dev", "test"}: raise ValueError("Unknown part %s" % par...
32.423729
84
0.671197
10f33906f4fef402a2de99509529076ca712a7c2
25
py
Python
org/sfu/billing/controller/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
1
2020-08-15T08:34:36.000Z
2020-08-15T08:34:36.000Z
org/sfu/billing/controller/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
null
null
null
org/sfu/billing/controller/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
null
null
null
__all__= ['controller']
8.333333
23
0.68
10f540c5034ca1b5afdb44405af84acd35b8db36
385
py
Python
tests/unicode/unicode_id.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/unicode/unicode_id.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/unicode/unicode_id.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
# test unicode in identifiers # comment # # global identifiers = 1 = 2 b = 3 b = 4 print(, , b, b) # function, argument, local identifiers def (, ): = + print(, , ) (1, 2) # class, method identifiers class : def (self, ): print() zzz = () if hasattr(zzz, ""): zzz.(=123)
13.75
39
0.584416
10f5834075ee59a03333434f3790eb69637b29a2
552
py
Python
examples/hsets.py
gfmartins/cssdbpy
f2369dd46caeb6bd84f2b1deacb8fb9416b26afc
[ "BSD-2-Clause" ]
85
2016-09-05T19:41:37.000Z
2021-11-08T11:26:54.000Z
examples/hsets.py
gfmartins/cssdbpy
f2369dd46caeb6bd84f2b1deacb8fb9416b26afc
[ "BSD-2-Clause" ]
10
2016-09-22T06:42:08.000Z
2018-12-12T13:55:16.000Z
examples/hsets.py
deslum/ssdbpy
4cecc6f421bbf1782334b294569801c5808aaaa1
[ "BSD-2-Clause" ]
9
2016-09-06T08:41:32.000Z
2020-09-08T04:04:23.000Z
from cssdbpy import Connection from time import time import md5 if __name__ == '__main__': conn = Connection('127.0.0.1', 8888) for i in xrange(0, 10000): md5word = md5.new('word{}'.format(i)).hexdigest() create = conn.execute('hset','words', md5word, int(time())) value = conn.execute('hget','words', md5word)...
32.470588
61
0.677536
10f6dbf11be847714f973a856f08657cfe64dcc7
4,538
py
Python
BuildTiramisuData.py
abfarahani/Image-segmentation
d58d25a593384199f9d504eab3afbf3bdd108c17
[ "MIT" ]
null
null
null
BuildTiramisuData.py
abfarahani/Image-segmentation
d58d25a593384199f9d504eab3afbf3bdd108c17
[ "MIT" ]
null
null
null
BuildTiramisuData.py
abfarahani/Image-segmentation
d58d25a593384199f9d504eab3afbf3bdd108c17
[ "MIT" ]
null
null
null
import os import argparse from distutils.dir_util import copy_tree import random def main(args): """ Simple function that looks at the arguments passed, checks to make sure everything expected exists, and then defines a validation data set for later processing by TrainTiramisu.py and TestTiramisu.py ...
43.219048
79
0.608859
10f6f1699cc6b4bfebbd0b39b437bd160c9162ff
880
py
Python
samples/histrequester_demo.py
suuuch/tws_async
35f4ae77734d0e8dad5b1d7f9aac8102c42c4c0c
[ "Unlicense" ]
102
2017-02-15T08:13:34.000Z
2022-03-11T02:00:57.000Z
samples/histrequester_demo.py
suuuch/tws_async
35f4ae77734d0e8dad5b1d7f9aac8102c42c4c0c
[ "Unlicense" ]
8
2017-05-03T17:28:57.000Z
2018-09-10T11:42:48.000Z
samples/histrequester_demo.py
suuuch/tws_async
35f4ae77734d0e8dad5b1d7f9aac8102c42c4c0c
[ "Unlicense" ]
40
2017-02-18T08:17:21.000Z
2022-02-25T22:23:26.000Z
import datetime import pytz from tws_async import * stocks = [ Stock('TSLA'), Stock('AAPL'), Stock('GOOG'), Stock('INTC', primaryExchange='NASDAQ') ] forexs = [ Forex('EURUSD'), Forex('GBPUSD'), Forex('USDJPY') ] endDate = datetime.date.today() startDate = endDate - datetime.timedelta(day...
24.444444
76
0.685227
10f7e736dab607c21a9da9bd75162b5602eb90c7
961
py
Python
problems/test_0630_easy_to_understand.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0630_easy_to_understand.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0630_easy_to_understand.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import heapq import unittest from typing import List import utils # O(nlog(n)) time. O(n) space. Interval, sorting by end, greedy. if __name__ == '__main__': unittest.main()
24.025
68
0.557752
10f9b2fbba3d5b4a7de7179cc117d380392f5116
1,761
py
Python
Tests/ttLib/tables/C_F_F__2_test.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
2,705
2016-09-27T10:02:12.000Z
2022-03-31T09:37:46.000Z
Tests/ttLib/tables/C_F_F__2_test.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
1,599
2016-09-27T09:07:36.000Z
2022-03-31T23:04:51.000Z
Tests/ttLib/tables/C_F_F__2_test.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
352
2016-10-07T04:18:15.000Z
2022-03-30T07:35:01.000Z
"""cff2Lib_test.py -- unit test for Adobe CFF fonts.""" from fontTools.ttLib import TTFont from io import StringIO import re import os import unittest CURR_DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) DATA_DIR = os.path.join(CURR_DIR, 'data') CFF_TTX = os.path.join(DATA_DIR, "C_F_F__2.ttx") CF...
29.847458
71
0.635434
10f9d7dfc533d1074e71035424e95b25f68c15f6
340
py
Python
Module_03/mlb.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_03/mlb.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_03/mlb.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
from common.webdriver_factory import get_driver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By driver = get_driver('chrome') wait = WebDriverWait(driver, 5) driver.get('https://www.mlb.com/es/standin...
30.909091
64
0.817647
10fb0f98c0db7ba3d5ed61bdb4bc78ad51efafdc
13,380
py
Python
azext_csvmware/_help.py
ctaggart/az-csvmware-cli
6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74
[ "MIT" ]
2
2020-05-20T13:33:33.000Z
2020-09-12T03:48:15.000Z
azext_csvmware/_help.py
ctaggart/az-csvmware-cli
6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74
[ "MIT" ]
null
null
null
azext_csvmware/_help.py
ctaggart/az-csvmware-cli
6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74
[ "MIT" ]
2
2020-05-11T17:10:27.000Z
2021-01-02T16:15:35.000Z
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
41.169231
268
0.652242
10fbff50584bd8fe647d8f729ee0c1afb693afd7
15,033
py
Python
pajbot/managers/songrequest.py
sgaweda/troybot
7153c0ad387e31de57c71172893fd92c85259d1b
[ "MIT" ]
null
null
null
pajbot/managers/songrequest.py
sgaweda/troybot
7153c0ad387e31de57c71172893fd92c85259d1b
[ "MIT" ]
2
2020-02-18T03:30:30.000Z
2020-02-18T03:31:44.000Z
pajbot/managers/songrequest.py
sgaweda/troybot
7153c0ad387e31de57c71172893fd92c85259d1b
[ "MIT" ]
null
null
null
import logging import threading import time from pajbot.managers.db import DBManager from pajbot.managers.schedule import ScheduleManager from pajbot.models.songrequest import SongrequestQueue, SongrequestHistory, SongRequestSongInfo from pajbot.models.user import User log = logging.getLogger("pajbot") WIDGET_ID = ...
37.866499
115
0.600545
10fc435cfd2d251b2fecfc35f6aaa156bcaaeea6
157
py
Python
irl/common/utils/mean_or_nan.py
uidilr/deepirl_chainer
45f6134fe457bdae1484e4847ab0701f39940faa
[ "MIT" ]
16
2019-06-25T11:54:38.000Z
2022-02-13T15:14:40.000Z
irl/common/utils/mean_or_nan.py
uidilr/deepirl_chainer
45f6134fe457bdae1484e4847ab0701f39940faa
[ "MIT" ]
4
2019-07-17T15:17:25.000Z
2020-09-03T12:12:16.000Z
irl/common/utils/mean_or_nan.py
uidilr/deepirl_chainer
45f6134fe457bdae1484e4847ab0701f39940faa
[ "MIT" ]
3
2019-07-17T16:45:07.000Z
2020-12-15T16:52:26.000Z
import numpy as np def mean_or_nan(xs): """Return its mean a non-empty sequence, numpy.nan for a empty one.""" return np.mean(xs) if xs else np.nan
26.166667
74
0.687898