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
019d351fc421d8f08a12ae1b751f1ae926d015ca
1,797
py
Python
tokenizing-string.py
eltechno/python_course
f74abac7df3f9f41864afd06479389260c29ea3a
[ "MIT" ]
4
2019-05-04T00:33:25.000Z
2021-05-29T20:37:59.000Z
tokenizing-string.py
eltechno/python_course
f74abac7df3f9f41864afd06479389260c29ea3a
[ "MIT" ]
null
null
null
tokenizing-string.py
eltechno/python_course
f74abac7df3f9f41864afd06479389260c29ea3a
[ "MIT" ]
3
2020-05-05T13:14:28.000Z
2022-02-03T16:18:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Created by techno at 25/04/19 #Feature: #Enter feature name here # Enter feature description here #Scenario: # Enter scenario name here # Enter steps here """ tokenizing a string and counting unique words""" text = ('this is sample text with several words different...
37.4375
78
0.730662
019f4f96de4b2c86a926ff6c4501ee68c9ee1382
331
py
Python
src/NotYetSelfAware/layers/activations/tanh.py
ezalos/NotYetSelfAware
aa8374d24259be9c93b9b5fc00c07f03538a79df
[ "MIT" ]
1
2021-10-02T09:17:46.000Z
2021-10-02T09:17:46.000Z
src/NotYetSelfAware/layers/activations/tanh.py
ezalos/NotYetSelfAware
aa8374d24259be9c93b9b5fc00c07f03538a79df
[ "MIT" ]
null
null
null
src/NotYetSelfAware/layers/activations/tanh.py
ezalos/NotYetSelfAware
aa8374d24259be9c93b9b5fc00c07f03538a79df
[ "MIT" ]
null
null
null
import numpy as np from .base import BaseActivation
16.55
32
0.607251
01a15adb6de2235de93cc1a6485fa772aaf3141a
1,255
py
Python
make_graph_kernel_list.py
OminiaVincit/scale-variant-topo
6945bc42aacd0d71a6fb472c87e09da223821e1e
[ "MIT" ]
8
2018-11-09T21:59:59.000Z
2020-07-22T19:02:10.000Z
make_graph_kernel_list.py
OminiaVincit/scale-variant-topo
6945bc42aacd0d71a6fb472c87e09da223821e1e
[ "MIT" ]
null
null
null
make_graph_kernel_list.py
OminiaVincit/scale-variant-topo
6945bc42aacd0d71a6fb472c87e09da223821e1e
[ "MIT" ]
null
null
null
import numpy as np import glob import os import argparse import re from collections import defaultdict if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--exppath', '-e', type=str, required=True) parser.add_argument('--infolder', '-i', type=str, default='grakel') args =...
33.026316
110
0.591235
01a1a6efd79bdf6f4de80c871eda5432de5ae15e
9,963
py
Python
Layout.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
Layout.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
Layout.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
import construct import datetime from decimal import Decimal from solana.publickey import PublicKey from Constants import NUM_MARKETS, NUM_TOKENS SERUM_ACCOUNT_FLAGS = construct.BitsSwapped( construct.BitStruct( "initialized" / construct.Flag, "market" / construct.Flag, "open_orders" / ...
35.329787
1,008
0.720466
01a1ac5ac3bd47e52a44470e7355edf48df94258
2,741
py
Python
tests/test_status.py
ekeyme/bio-pm
31fe50cd4d90a05cb709c1c75a663b03d0cde6fe
[ "MIT" ]
null
null
null
tests/test_status.py
ekeyme/bio-pm
31fe50cd4d90a05cb709c1c75a663b03d0cde6fe
[ "MIT" ]
null
null
null
tests/test_status.py
ekeyme/bio-pm
31fe50cd4d90a05cb709c1c75a663b03d0cde6fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Unit test for status""" import sys import unittest from os.path import dirname, realpath from pm.status import Y, Conserved, PM, NA if __name__ == '__main__': unittest.main()
33.024096
105
0.588471
01a1bfe7caf3a4ffe6aa79b34030ab82eba05cb5
3,676
py
Python
tools/gen-precalc-tables.py
andrejo/zxmaze3d
06cf179d15de3631fc458329034ea2df9b58e8b1
[ "BSD-3-Clause" ]
4
2019-05-21T10:34:11.000Z
2021-11-16T22:12:58.000Z
tools/gen-precalc-tables.py
andrejo/zxmaze3d
06cf179d15de3631fc458329034ea2df9b58e8b1
[ "BSD-3-Clause" ]
null
null
null
tools/gen-precalc-tables.py
andrejo/zxmaze3d
06cf179d15de3631fc458329034ea2df9b58e8b1
[ "BSD-3-Clause" ]
2
2019-11-17T11:51:46.000Z
2021-01-26T14:05:24.000Z
#! /usr/bin/env python3 import math import decimal N_DIRECTIONS = 256 # If rounded up to 384 and last element has max value, it has the bit # pattern, that prevents bisection from searching past the last element. N_PRECALC_DRAW_DIST = 384 # Python round() uses "banker's rounding", i.e. "round half even" ...
30.890756
189
0.673558
01a4ae03e9f71f7486126eef2952bc2456ade1c3
3,967
py
Python
chunair/kicad-footprint-generator-master/KicadModTree/nodes/specialized/RectLine.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
2
2022-03-18T23:42:51.000Z
2022-03-19T15:31:34.000Z
chunair/kicad-footprint-generator-master/KicadModTree/nodes/specialized/RectLine.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
chunair/kicad-footprint-generator-master/KicadModTree/nodes/specialized/RectLine.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
# KicadModTree is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # KicadModTree is distributed in the hope that it will be useful, # bu...
42.202128
109
0.559365
01a55fb85dfc60b3924c1660ae239c9fc00d92de
483
py
Python
microimprocessing/migrations/0006_auto_20200530_2236.py
mjirik/scaffanweb
63abebdcb544d1e8649d05a50ce35493ad707b52
[ "MIT" ]
null
null
null
microimprocessing/migrations/0006_auto_20200530_2236.py
mjirik/scaffanweb
63abebdcb544d1e8649d05a50ce35493ad707b52
[ "MIT" ]
null
null
null
microimprocessing/migrations/0006_auto_20200530_2236.py
mjirik/scaffanweb
63abebdcb544d1e8649d05a50ce35493ad707b52
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-05-30 20:36 from django.db import migrations, models
25.421053
122
0.637681
01a5621abb57dbf05e05c73846f8f2e1ae69f726
3,701
py
Python
samples/web/content/apprtc/decline_page_test.py
jsmithersunique/thegetvip_RTCsamples
6773f09e4623c96ad015fb33f352e970ca32c010
[ "BSD-3-Clause" ]
null
null
null
samples/web/content/apprtc/decline_page_test.py
jsmithersunique/thegetvip_RTCsamples
6773f09e4623c96ad015fb33f352e970ca32c010
[ "BSD-3-Clause" ]
null
null
null
samples/web/content/apprtc/decline_page_test.py
jsmithersunique/thegetvip_RTCsamples
6773f09e4623c96ad015fb33f352e970ca32c010
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. import json import unittest import webtest from google.appengine.datastore import datastore_stub_util from google.appengine.ext import ndb from google.appengine.ext import testbed import apprtc import constants import gcm_register import gcmrecord import room import ...
33.645455
84
0.738179
01a6f50951b55923d27ca9c4f9331e048bc8c5eb
13,571
py
Python
code/data.py
CCChenhao997/EMCGCN-ASTE
b00221d717e6aef27270bb80824502915e19301e
[ "Apache-2.0" ]
null
null
null
code/data.py
CCChenhao997/EMCGCN-ASTE
b00221d717e6aef27270bb80824502915e19301e
[ "Apache-2.0" ]
null
null
null
code/data.py
CCChenhao997/EMCGCN-ASTE
b00221d717e6aef27270bb80824502915e19301e
[ "Apache-2.0" ]
null
null
null
import math import torch import numpy as np from collections import OrderedDict, defaultdict from transformers import BertTokenizer sentiment2id = {'negative': 3, 'neutral': 4, 'positive': 5} label = ['N', 'B-A', 'I-A', 'A', 'B-O', 'I-O', 'O', 'negative', 'neutral', 'positive'] # label2id = {'N': 0, 'B-A': 1, 'I-A':...
42.676101
131
0.529954
01a98f3b8b7942ea3ad05fc9be8cd022720786e3
3,657
py
Python
unit_test/options_test.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
371
2021-05-19T18:48:06.000Z
2022-03-31T11:31:41.000Z
unit_test/options_test.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
234
2021-05-19T19:25:42.000Z
2022-03-29T19:03:00.000Z
unit_test/options_test.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
56
2021-05-25T19:59:54.000Z
2022-03-26T13:49:14.000Z
import platform as platform_module import pytest from cibuildwheel.__main__ import get_build_identifiers from cibuildwheel.environment import parse_environment from cibuildwheel.options import Options, _get_pinned_docker_images from .utils import get_default_command_line_arguments PYPROJECT_1 = """ [tool.cibuildwhe...
31.25641
94
0.73831
01ac7d8f081e9a5d26928d46d03c73aa9a9b575d
2,698
py
Python
tests/sentry/coreapi/test_auth_from_request.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
tests/sentry/coreapi/test_auth_from_request.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
tests/sentry/coreapi/test_auth_from_request.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
1
2020-08-10T07:55:40.000Z
2020-08-10T07:55:40.000Z
from __future__ import absolute_import import mock import pytest from django.core.exceptions import SuspiciousOperation from sentry.coreapi import ClientAuthHelper, APIUnauthorized
29.977778
77
0.702372
01ad28c5f9860e754e7ef1bd51c1217ab17e12ba
10,939
py
Python
tests/connect_tests.py
adyekjaer/VersionOne.SDK.Python
e83764be029019c2ee3229157ae873f22c17476f
[ "BSD-3-Clause" ]
2
2018-08-05T18:44:42.000Z
2018-12-12T00:54:58.000Z
tests/connect_tests.py
adyekjaer/VersionOne.SDK.Python
e83764be029019c2ee3229157ae873f22c17476f
[ "BSD-3-Clause" ]
25
2018-06-13T01:03:30.000Z
2019-12-22T01:49:01.000Z
tests/connect_tests.py
adyekjaer/VersionOne.SDK.Python
e83764be029019c2ee3229157ae873f22c17476f
[ "BSD-3-Clause" ]
5
2018-08-23T08:43:43.000Z
2021-03-22T07:25:14.000Z
from testtools import TestCase from testtools.assertions import assert_that from testtools.matchers import Equals from testtools.content import text_content import sys if sys.version_info >= (3,0): from urllib.error import HTTPError else: from urllib2 import HTTPError # try the old version, then fallback to th...
43.756
128
0.642472
01b01b95ce539c3308ec213f49758ffd5e266cb1
1,005
py
Python
src/test_monitoriza_url.py
atareao/monitoriza-url
f2c168ad0933fe548208cb7b50720c7f7304de76
[ "MIT" ]
5
2020-08-29T11:51:36.000Z
2020-08-31T01:54:09.000Z
src/test_monitoriza_url.py
atareao/monitoriza-url
f2c168ad0933fe548208cb7b50720c7f7304de76
[ "MIT" ]
null
null
null
src/test_monitoriza_url.py
atareao/monitoriza-url
f2c168ad0933fe548208cb7b50720c7f7304de76
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest import os import json from checkurl import CheckUrl from telegramapi import Chat if __name__ == '__main__': unittest.main()
25.769231
65
0.61791
01b19af7f69720320c7534779e1a4bf9b83504c5
3,650
py
Python
Bot/cogs/Auto Moderation/Emojis.py
No1IrishStig/Watchdog_Public
3eed73642e7ee86b898aa4f01630197e7ffefd8b
[ "MIT" ]
8
2020-08-02T17:14:21.000Z
2022-02-22T20:21:47.000Z
Bot/cogs/Auto Moderation/Emojis.py
No1IrishStig/Watchdog_Public
3eed73642e7ee86b898aa4f01630197e7ffefd8b
[ "MIT" ]
null
null
null
Bot/cogs/Auto Moderation/Emojis.py
No1IrishStig/Watchdog_Public
3eed73642e7ee86b898aa4f01630197e7ffefd8b
[ "MIT" ]
3
2020-10-04T09:34:24.000Z
2022-03-23T01:27:13.000Z
import re from discord.ext import commands from utils import sql from utils.functions import func from cogs.Core.Rules import Rules from cogs.Core.Language import Language
42.941176
282
0.616438
01b1fb7fed838fdf7a7026298f0d7c45a668d3cc
21,118
py
Python
twitter-analytics/code/3-model_evaluation/precision/results.py
worldbank/SDG-big-data
7349cffde3c32bb5a7abc99d910a40e1ba611916
[ "MIT" ]
2
2022-02-03T16:50:00.000Z
2022-02-03T16:50:20.000Z
twitter-analytics/code/3-model_evaluation/precision/results.py
worldbank/SDG-big-data
7349cffde3c32bb5a7abc99d910a40e1ba611916
[ "MIT" ]
null
null
null
twitter-analytics/code/3-model_evaluation/precision/results.py
worldbank/SDG-big-data
7349cffde3c32bb5a7abc99d910a40e1ba611916
[ "MIT" ]
null
null
null
our_method_top50_dict = { 2: { 'is_hired_1mo': 0.98, 'is_unemployed': 0.98, 'lost_job_1mo': 0.74, 'job_search': 0.12, 'job_offer': 1.0}, 0: { 'is_hired_1mo': 0.92, 'is_unemployed': 0.06, 'lost_job_1mo': 0.3, 'job_search': 1.0, 'job_...
29.371349
45
0.501468
01b2686f3033ccd51eff6f344cce645f1a3589f1
1,480
py
Python
site/trips/models.py
CKPBot/site
af8d4f7ebc370accefb61f1977782f127141ca68
[ "MIT" ]
null
null
null
site/trips/models.py
CKPBot/site
af8d4f7ebc370accefb61f1977782f127141ca68
[ "MIT" ]
null
null
null
site/trips/models.py
CKPBot/site
af8d4f7ebc370accefb61f1977782f127141ca68
[ "MIT" ]
null
null
null
from django.db import models
30.204082
79
0.766892
01b5255dcff9f9ffa6c0e6b7569a7f5fc0c03d5f
5,874
py
Python
Changelogs/changelog.py
SamuelNovak/GJAR_IoT
2557eaadb39d286bd5036a96012166098490f614
[ "MIT" ]
null
null
null
Changelogs/changelog.py
SamuelNovak/GJAR_IoT
2557eaadb39d286bd5036a96012166098490f614
[ "MIT" ]
null
null
null
Changelogs/changelog.py
SamuelNovak/GJAR_IoT
2557eaadb39d286bd5036a96012166098490f614
[ "MIT" ]
null
null
null
import os, sys import time import argparse import yaml from collections import namedtuple from yattag import Doc, indent parser = argparse.ArgumentParser(description="A tool for consolidating YAML changelogs.") parser.add_argument("-l", "--location", action="store", help="Only specify if changelog location differs fro...
34.964286
134
0.545965
01b558ab4133478ccddc69bfe8b40cd7a7d6dd5f
33
py
Python
Algorithm-Selection/gripsPredictorPkg/__init__.py
GregorCH/algoselection
4919d6bede01298f269985fdce94d8176d2ad62b
[ "MIT" ]
2
2018-02-23T08:53:22.000Z
2021-05-12T11:17:46.000Z
Algorithm-Selection/gripsPredictorPkg/__init__.py
GregorCH/algoselection
4919d6bede01298f269985fdce94d8176d2ad62b
[ "MIT" ]
null
null
null
Algorithm-Selection/gripsPredictorPkg/__init__.py
GregorCH/algoselection
4919d6bede01298f269985fdce94d8176d2ad62b
[ "MIT" ]
1
2018-04-09T20:28:36.000Z
2018-04-09T20:28:36.000Z
__all__ = ['predictor', 'tests']
16.5
32
0.636364
01b5f7952de578fc3d83a0bfbbf650bd840627a1
4,925
py
Python
dataactcore/migrations/versions/9960bbbe4d92_indexing_domain_models.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactcore/migrations/versions/9960bbbe4d92_indexing_domain_models.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
3
2021-08-22T11:47:45.000Z
2022-03-29T22:06:49.000Z
dataactcore/migrations/versions/9960bbbe4d92_indexing_domain_models.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
"""Indexing domain models Revision ID: 9960bbbe4d92 Revises: d35ecdfc1da7 Create Date: 2017-09-06 13:09:21.210982 """ # revision identifiers, used by Alembic. revision = '9960bbbe4d92' down_revision = 'd35ecdfc1da7' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa
57.941176
131
0.749848
01b72b0593884ff384b5d1980a8c8e4c10c0d986
3,271
py
Python
tests/starkex/test_helpers.py
clifton/dydx-v3-python
974ffc8f3512aa48171ef8dc2e623d6df3536812
[ "Apache-2.0" ]
109
2021-01-07T02:19:24.000Z
2022-03-27T21:56:36.000Z
tests/starkex/test_helpers.py
clifton/dydx-v3-python
974ffc8f3512aa48171ef8dc2e623d6df3536812
[ "Apache-2.0" ]
73
2021-01-14T23:29:58.000Z
2022-03-30T09:27:54.000Z
tests/starkex/test_helpers.py
clifton/dydx-v3-python
974ffc8f3512aa48171ef8dc2e623d6df3536812
[ "Apache-2.0" ]
60
2021-01-13T04:34:12.000Z
2022-03-26T10:14:35.000Z
from dydx3.starkex.helpers import fact_to_condition from dydx3.starkex.helpers import generate_private_key_hex_unsafe from dydx3.starkex.helpers import get_transfer_erc20_fact from dydx3.starkex.helpers import nonce_from_client_id from dydx3.starkex.helpers import private_key_from_bytes from dydx3.starkex.helpers impor...
38.034884
79
0.687252
01b892a8588dbd2f949791ad23cacf3fd19c1c5b
3,312
py
Python
tslearn/docs/examples/plot_barycenters.py
johannfaouzi/tslearn
27af8be46f7a54bc4dba01e9ad08b82f14e20e6c
[ "BSD-2-Clause" ]
1
2020-07-14T19:15:56.000Z
2020-07-14T19:15:56.000Z
tslearn/docs/examples/plot_barycenters.py
johannfaouzi/tslearn
27af8be46f7a54bc4dba01e9ad08b82f14e20e6c
[ "BSD-2-Clause" ]
null
null
null
tslearn/docs/examples/plot_barycenters.py
johannfaouzi/tslearn
27af8be46f7a54bc4dba01e9ad08b82f14e20e6c
[ "BSD-2-Clause" ]
1
2021-10-31T17:35:48.000Z
2021-10-31T17:35:48.000Z
# -*- coding: utf-8 -*- """ Barycenters =========== This example shows three methods to compute barycenters of time series. For an overview over the available methods see the :mod:`tslearn.barycenters` module. *tslearn* provides three methods for calculating barycenters for a given set of time series: * *Euclidean b...
35.234043
79
0.75
01b8f9d8ab2d1e037940650820729d907f524ea5
4,949
py
Python
ENIIGMA/Stats/barplot_GA.py
willastro/ENIIGMA-fitting-tool
4b6d62943be86d86936de2213414abf4657daff5
[ "0BSD" ]
null
null
null
ENIIGMA/Stats/barplot_GA.py
willastro/ENIIGMA-fitting-tool
4b6d62943be86d86936de2213414abf4657daff5
[ "0BSD" ]
2
2021-01-15T21:18:13.000Z
2021-01-16T20:52:24.000Z
ENIIGMA/Stats/barplot_GA.py
willastro/ENIIGMA-fitting-tool
4b6d62943be86d86936de2213414abf4657daff5
[ "0BSD" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import MultipleLocator, FormatStrFormatter, ScalarFormatter, LogLocator, AutoMinorLocator import pandas as pd def barp(file, fmin, fmax): """ Create barplots of column densities. Parameters ------------- file : 'str' Path to the colu...
29.111765
124
0.636896
01b9cd289c138d5ece8259dd3950b13c5183b30e
5,845
py
Python
venv/Lib/site-packages/plotnine/stats/stat_boxplot.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
venv/Lib/site-packages/plotnine/stats/stat_boxplot.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
venv/Lib/site-packages/plotnine/stats/stat_boxplot.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import pandas.api.types as pdtypes from ..utils import resolution from ..doctools import document from .stat import stat def weighted_percentile(a, q, weights=None): """ Compute the weighted q-th percentile of data Parameters ---------- a : array_like ...
28.512195
77
0.55586
01b9fb0dcb34ad54ce72e603cada3bbd96533d47
886
py
Python
docs/src/tutorial/doctest_setup.py
franzinc/agraph-python
9186f19094af0be1daec273270888eadf9a68300
[ "MIT" ]
25
2015-11-05T03:43:30.000Z
2022-03-09T07:19:09.000Z
docs/src/tutorial/doctest_setup.py
franzinc/agraph-python
9186f19094af0be1daec273270888eadf9a68300
[ "MIT" ]
14
2017-07-18T20:41:26.000Z
2021-10-13T04:57:36.000Z
docs/src/tutorial/doctest_setup.py
franzinc/agraph-python
9186f19094af0be1daec273270888eadf9a68300
[ "MIT" ]
8
2016-12-09T02:38:45.000Z
2020-10-12T07:59:17.000Z
# This document contains definitions of functions and variables used # in multiple tutorial examples. Each code fragment is actually passed to Sphinx # twice: # - This whole file is imported in a hidden, global setup block # - The example in which the function is defined included its code from this # file. # ...
40.272727
81
0.76298
01b9ff47cf9cd904ad06892d3ffb384e6160c811
9,210
py
Python
visdialch/encoders/rva.py
yuleiniu/rva
7b35689464822e0c25b273d96caedd0e65b26288
[ "BSD-3-Clause" ]
68
2019-06-04T13:53:49.000Z
2022-01-14T11:17:05.000Z
visdialch/encoders/rva.py
yuleiniu/rva
7b35689464822e0c25b273d96caedd0e65b26288
[ "BSD-3-Clause" ]
17
2019-06-18T15:31:30.000Z
2022-03-11T23:48:39.000Z
visdialch/encoders/rva.py
yuleiniu/rva
7b35689464822e0c25b273d96caedd0e65b26288
[ "BSD-3-Clause" ]
11
2019-08-01T07:24:18.000Z
2021-09-18T13:13:12.000Z
import torch from torch import nn from torch.nn import functional as F from visdialch.utils import DynamicRNN from visdialch.utils import Q_ATT, H_ATT, V_Filter from .modules import RvA_MODULE
53.859649
175
0.665581
01bbb14fc2c60f1cd91ba8f5d708cba6d4c3aa60
884
py
Python
apps/startsmart/annotator/tools/MemoryMonitor.py
david00medina/startsmart
f8bb0090f7cd9e223ec054e5f45598bad86a2214
[ "MIT" ]
null
null
null
apps/startsmart/annotator/tools/MemoryMonitor.py
david00medina/startsmart
f8bb0090f7cd9e223ec054e5f45598bad86a2214
[ "MIT" ]
null
null
null
apps/startsmart/annotator/tools/MemoryMonitor.py
david00medina/startsmart
f8bb0090f7cd9e223ec054e5f45598bad86a2214
[ "MIT" ]
null
null
null
from threading import Thread from statistics import mean import nvidia_smi import time
27.625
67
0.651584
01bc0b74d3094703ba9a512bc7428cb14b928953
713
py
Python
jp.atcoder/arc139/arc139_b/31252158.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/arc139/arc139_b/31252158.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/arc139/arc139_b/31252158.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
23
58
0.382889
01bc408bbf11fba843d24a7f20cf34f3043f24bb
172
py
Python
profile_support.py
matikasiyanda/21cmNEST
949fb798efb5e419804cb692f876a9402e8e8dec
[ "Unlicense" ]
1
2019-08-27T10:11:37.000Z
2019-08-27T10:11:37.000Z
profile_support.py
matikasiyanda/21cmNEST
949fb798efb5e419804cb692f876a9402e8e8dec
[ "Unlicense" ]
null
null
null
profile_support.py
matikasiyanda/21cmNEST
949fb798efb5e419804cb692f876a9402e8e8dec
[ "Unlicense" ]
1
2020-03-02T04:33:45.000Z
2020-03-02T04:33:45.000Z
import __builtin__ try: profile = __builtin__.profile except AttributeError: # No line profiler, provide a pass-through version
21.5
54
0.75
01bd4e0d574c0b384a13f40bede838f15bc2d4ad
21,459
py
Python
dfelf/cvsfileelf.py
KrixTam/dfelf
022c34a848fede9ac94094ff0ce928fc1dacfaf4
[ "MIT" ]
null
null
null
dfelf/cvsfileelf.py
KrixTam/dfelf
022c34a848fede9ac94094ff0ce928fc1dacfaf4
[ "MIT" ]
null
null
null
dfelf/cvsfileelf.py
KrixTam/dfelf
022c34a848fede9ac94094ff0ce928fc1dacfaf4
[ "MIT" ]
null
null
null
import pandas as pd from moment import moment from ni.config import Config from dfelf import DataFileElf from dfelf.commons import logger
43.090361
96
0.350622
01be8ef272799ee6de78d5675e189e9f4481a184
358
py
Python
pytransfer/progressbar.py
PapiCZ/pyshare
81a59107a70d1d58fb75d01c0a173e50569579f8
[ "MIT" ]
null
null
null
pytransfer/progressbar.py
PapiCZ/pyshare
81a59107a70d1d58fb75d01c0a173e50569579f8
[ "MIT" ]
null
null
null
pytransfer/progressbar.py
PapiCZ/pyshare
81a59107a70d1d58fb75d01c0a173e50569579f8
[ "MIT" ]
1
2018-04-10T12:24:30.000Z
2018-04-10T12:24:30.000Z
from tqdm import tqdm
25.571429
73
0.600559
01bea166979c8bed6f43df2ea84b48c707a40bb8
9,772
py
Python
service/run_topic_modeling.py
atypon/OCTIS
ff49bb3785197ca929c5626a3f04fbb917de2376
[ "MIT" ]
null
null
null
service/run_topic_modeling.py
atypon/OCTIS
ff49bb3785197ca929c5626a3f04fbb917de2376
[ "MIT" ]
null
null
null
service/run_topic_modeling.py
atypon/OCTIS
ff49bb3785197ca929c5626a3f04fbb917de2376
[ "MIT" ]
null
null
null
import argparse import os import string import time from collections import defaultdict from datetime import datetime import psutil as psutil from octis.models.CTM import CTM from octis.models.ProdLDA import ProdLDA from octis.models.Scholar import scholar from octis.preprocessing.preprocessing import Preprocessing f...
58.166667
122
0.636308
01bfd3f04e465716e0afc781f771fb0e268ce935
32,960
py
Python
objects/ArticleExtractor.py
jclukas/MedicalResearchTool
48cb6b071bbcaee6cbb04b9dbee8ce3dd0556ad8
[ "Apache-2.0" ]
null
null
null
objects/ArticleExtractor.py
jclukas/MedicalResearchTool
48cb6b071bbcaee6cbb04b9dbee8ce3dd0556ad8
[ "Apache-2.0" ]
null
null
null
objects/ArticleExtractor.py
jclukas/MedicalResearchTool
48cb6b071bbcaee6cbb04b9dbee8ce3dd0556ad8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys, re sys.path.append("{0}/Desktop/cbmi/reproduce/python/MedicalResearchTool/objects".format(os.environ['HOME'])) #TODO sys.path.append("{0}/Desktop/cbmi/reproduce/python/MedicalResearchTool".format(os.environ['HOME'])) import nltk import requests from pprin...
43.368421
350
0.71253
01c2e39457a6bad31f5e2683b21402d0827d9e13
2,589
py
Python
Python/ElectrodePotential/propagate.py
mrchipzhou/tutorial-notes
5d526c3322bdd07c17e31c841096bfbfd5999e61
[ "MIT" ]
null
null
null
Python/ElectrodePotential/propagate.py
mrchipzhou/tutorial-notes
5d526c3322bdd07c17e31c841096bfbfd5999e61
[ "MIT" ]
null
null
null
Python/ElectrodePotential/propagate.py
mrchipzhou/tutorial-notes
5d526c3322bdd07c17e31c841096bfbfd5999e61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math import numpy as np import matplotlib.pyplot as plt #Constants GNa = 120 #Maximal conductance(Na+) ms/cm2 Gk = 36 #Maximal condectance(K+) ms/cm2 Gleak = 0.3 #Maximal conductance(leak) ms/cm2 cm = 1 #Cell capacitance uF/cm2 delta = 0.01 #Axon condectivity ms2 ENa = 50 #Nernst poten...
23.972222
69
0.535342
01c33535179f3b485849c4ab97ce88fcc949ba35
2,276
py
Python
cryptofield/algorithms/berlekamp.py
SergeyBel/cryptofield
4e76ff9637e5590dc2bca458023548e58370b9f5
[ "MIT" ]
null
null
null
cryptofield/algorithms/berlekamp.py
SergeyBel/cryptofield
4e76ff9637e5590dc2bca458023548e58370b9f5
[ "MIT" ]
9
2020-09-07T19:05:19.000Z
2020-11-03T19:25:06.000Z
cryptofield/algorithms/berlekamp.py
SergeyBel/cryptofield
4e76ff9637e5590dc2bca458023548e58370b9f5
[ "MIT" ]
null
null
null
from cryptofield.fieldpolynom import * from cryptofield.algorithms.field_algorithms import * # Expend row 0's for length n # Get set of GCD(f, h-c) where c in Field
21.074074
57
0.525483
01c3793e466ddd6736d52ae28d3d0bd9543a54de
305
py
Python
db_api/extensions.py
chengjf/db-api
bf0afee82e49f2a62ec40b7cc467af61cdf547f3
[ "MIT" ]
null
null
null
db_api/extensions.py
chengjf/db-api
bf0afee82e49f2a62ec40b7cc467af61cdf547f3
[ "MIT" ]
null
null
null
db_api/extensions.py
chengjf/db-api
bf0afee82e49f2a62ec40b7cc467af61cdf547f3
[ "MIT" ]
null
null
null
# from flask_login import LoginManager from flask_restless import APIManager from flask_sqlalchemy import SQLAlchemy from flask import logging __author__ = 'sharp' db = SQLAlchemy() restless = APIManager(app=None, flask_sqlalchemy_db=db) logger = logging.getLogger() # login_manager = LoginManager()
20.333333
55
0.803279
01c505d3cae8d51474445b8e18b08db6a7cc9659
112
py
Python
api/src/application/wsgi.py
iliaskaras/VCFHandler
5372659e4472207be964e0d233994a0ffff536fe
[ "MIT" ]
null
null
null
api/src/application/wsgi.py
iliaskaras/VCFHandler
5372659e4472207be964e0d233994a0ffff536fe
[ "MIT" ]
null
null
null
api/src/application/wsgi.py
iliaskaras/VCFHandler
5372659e4472207be964e0d233994a0ffff536fe
[ "MIT" ]
null
null
null
from application.factories import vcf_handler_api application = vcf_handler_api( name="VCF Handler API", )
18.666667
49
0.785714
01c70470c2bde0a72b51d1aa9c3ee7cf24b64fc9
571
py
Python
app/__init__.py
oOo0oOo/FoodWorld
b11e8806d0f56a842d664c7973b24c82b833f03b
[ "MIT" ]
null
null
null
app/__init__.py
oOo0oOo/FoodWorld
b11e8806d0f56a842d664c7973b24c82b833f03b
[ "MIT" ]
null
null
null
app/__init__.py
oOo0oOo/FoodWorld
b11e8806d0f56a842d664c7973b24c82b833f03b
[ "MIT" ]
null
null
null
from flask import Flask, Blueprint from flask_ask import Ask from flask_sqlalchemy import SQLAlchemy from config import config # Extensions db = SQLAlchemy() alexa = Ask(route = '/') # Main blueprint main = Blueprint('main', __name__) from . import models, views
21.148148
47
0.739054
01c79e6540291974f79f7e4eec9d6433928b9934
526
py
Python
molo/core/management/commands/remove_all_featured_articles.py
Ishma59/molo
4fd31df9266bc251e09e9339a132d3ccd4143c69
[ "BSD-2-Clause" ]
25
2015-09-26T13:45:30.000Z
2018-09-13T14:12:20.000Z
molo/core/management/commands/remove_all_featured_articles.py
Ishma59/molo
4fd31df9266bc251e09e9339a132d3ccd4143c69
[ "BSD-2-Clause" ]
510
2015-05-29T09:30:44.000Z
2018-12-11T09:08:11.000Z
molo/core/management/commands/remove_all_featured_articles.py
Ishma59/molo
4fd31df9266bc251e09e9339a132d3ccd4143c69
[ "BSD-2-Clause" ]
5
2020-03-26T19:30:13.000Z
2020-09-04T16:35:59.000Z
from __future__ import absolute_import, unicode_literals from django.core.management.base import BaseCommand from molo.core.models import ArticlePage
32.875
56
0.724335
01c88a1ea5873edfa3742e531149a6ed99bc450a
8,598
py
Python
StravaAPI/swagger_client/models/vpn_configuration.py
jonberthet/EuroTrip_2018
e9b057c6264df76d2b34ad711ff1f6343be5ca5e
[ "MIT" ]
null
null
null
StravaAPI/swagger_client/models/vpn_configuration.py
jonberthet/EuroTrip_2018
e9b057c6264df76d2b34ad711ff1f6343be5ca5e
[ "MIT" ]
null
null
null
StravaAPI/swagger_client/models/vpn_configuration.py
jonberthet/EuroTrip_2018
e9b057c6264df76d2b34ad711ff1f6343be5ca5e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Platform API The REST API for Platform.sh. Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re def to_str(self): """ Returns the string representation of the model ...
26.374233
158
0.558851
01ce565d6cd9a41a3837274a9e1c33ec3d6a5025
102
py
Python
example/example_tr.py
tolgahanuzun/markovch
dea979e89715f0b882c4abecadfdfedffa04f24b
[ "MIT" ]
5
2018-01-12T09:14:15.000Z
2019-04-16T12:16:14.000Z
example/example_tr.py
tolgahanuzun/markovch
dea979e89715f0b882c4abecadfdfedffa04f24b
[ "MIT" ]
null
null
null
example/example_tr.py
tolgahanuzun/markovch
dea979e89715f0b882c4abecadfdfedffa04f24b
[ "MIT" ]
null
null
null
from markovch import markov diagram = markov.Markov('./data_tr.txt') print(diagram.result_list(50))
17
40
0.764706
01cf0cf013ad1e38898303cfa29c46f532ab41aa
322
py
Python
exercinpt2.py
fabianocardosodev/exercicios-Python-cursoIntens
aae9f334007afe5e5210c19f092bb35659db1332
[ "MIT" ]
null
null
null
exercinpt2.py
fabianocardosodev/exercicios-Python-cursoIntens
aae9f334007afe5e5210c19f092bb35659db1332
[ "MIT" ]
null
null
null
exercinpt2.py
fabianocardosodev/exercicios-Python-cursoIntens
aae9f334007afe5e5210c19f092bb35659db1332
[ "MIT" ]
null
null
null
pessoas_jantar = input("Boa noite,quantas pessoas esto para jantar?:") pessoas_jantar = int(pessoas_jantar) if pessoas_jantar >= 8: print("Desculpe como vocs esto em " + str(pessoas_jantar) + " pessoas,precisaro aguardar termos mesas disponiveis.") else: print("Ok! Por favor me acompanhe at sua mesa!")
35.777778
71
0.736025
01d24b11b31763ab12299e8c09f525d58d74a0e1
3,911
py
Python
src/cli.py
nikshinde1996/xkcd-cli
7fdd8e3f1059cbb440313f2da9daf3f2cc754473
[ "MIT" ]
2
2020-03-04T10:20:13.000Z
2020-11-15T16:10:10.000Z
src/cli.py
nikshinde1996/xkcd-cli
7fdd8e3f1059cbb440313f2da9daf3f2cc754473
[ "MIT" ]
1
2022-02-17T14:55:06.000Z
2022-02-21T12:09:35.000Z
src/cli.py
nikshinde1996/xkcd-cli
7fdd8e3f1059cbb440313f2da9daf3f2cc754473
[ "MIT" ]
null
null
null
import click import json import requests import logging import webbrowser from PIL import Image from io import BytesIO from random import randint try: from src import logger except ImportError as error: import logger logger = logger.setup() def get_latest_feed_index(): r = requests.get('https://xkcd...
32.865546
95
0.656354
01d2cd65bbb82a5344d956283b312359c82440e2
1,044
py
Python
src/test/test_plot.py
sdat2/seager19
9c3acbc5332da787de1eda2600a82490ff20fa11
[ "MIT" ]
5
2021-04-08T19:03:52.000Z
2021-12-17T14:22:49.000Z
src/test/test_plot.py
sdat2/seager19
9c3acbc5332da787de1eda2600a82490ff20fa11
[ "MIT" ]
25
2021-04-08T13:53:11.000Z
2022-03-17T19:45:15.000Z
src/test/test_plot.py
sdat2/seager19
9c3acbc5332da787de1eda2600a82490ff20fa11
[ "MIT" ]
null
null
null
"""Test the plot settings in `src.plot_settings`.""" import os import numpy as np import matplotlib.pyplot as plt from src.plot_utils import ( ps_defaults, label_subplots, set_dim, STD_CLR_LIST, BRICK_RED, OX_BLUE, ) from src.constants import PROJECT_PATH def test_plot() -> None: """Functi...
26.1
84
0.613985
01d2cd9268ce30dc27e2254547374724c8e953ed
1,487
py
Python
tests/test_either.py
hellerve/hawkweed
0cdb378f7dac5ab76ad53d6c1917f0ac5687793c
[ "MIT" ]
20
2016-06-13T19:24:20.000Z
2022-01-26T14:08:11.000Z
tests/test_either.py
hellerve/hawkweed
0cdb378f7dac5ab76ad53d6c1917f0ac5687793c
[ "MIT" ]
null
null
null
tests/test_either.py
hellerve/hawkweed
0cdb378f7dac5ab76ad53d6c1917f0ac5687793c
[ "MIT" ]
null
null
null
from itertools import chain from nose.tools import * from hawkweed.monads.either import Either, Left, Right, is_right,\ is_left, is_either, either, lefts, rights, partition_eithers from hawkweed.functional.primitives import identity
29.156863
68
0.66039
01d30f06a09a7849ac4dc4ac2f2145c41b9f4145
8,219
py
Python
Computer_Science/6_Machine_Learning/Classification/p2_knn_from_scratch_bike_data.py
Soumya14022002/Algos-for-all-Amigos
89ba4a29560ff9db8f49e14d42e07699c56373e7
[ "MIT" ]
10
2021-06-15T09:30:48.000Z
2021-08-21T02:32:55.000Z
Computer_Science/6_Machine_Learning/Classification/p2_knn_from_scratch_bike_data.py
Soumya14022002/Algos-for-all-Amigos
89ba4a29560ff9db8f49e14d42e07699c56373e7
[ "MIT" ]
19
2021-10-01T15:55:12.000Z
2021-10-30T12:58:48.000Z
Computer_Science/6_Machine_Learning/Classification/p2_knn_from_scratch_bike_data.py
Soumya14022002/Algos-for-all-Amigos
89ba4a29560ff9db8f49e14d42e07699c56373e7
[ "MIT" ]
11
2021-10-01T18:11:44.000Z
2021-10-18T10:59:47.000Z
""" Machine Learning Task - Binary Classification of Bike Sharing Service Data, after appropriate Data Processing Using KNN With no libraries to solve the Problem """ import time # To calculate run time import csv # To import the dataset import random # To shuffle the dataset start_time = time.time() de...
29.14539
109
0.641441
01d36655ec9b2f6c839999f79f8bd1b9bf89684f
657
py
Python
run.py
kele/WhatchaDoin
7cd7756908f83911cbf9bfd8ac3e4c0bfc52eec9
[ "MIT" ]
null
null
null
run.py
kele/WhatchaDoin
7cd7756908f83911cbf9bfd8ac3e4c0bfc52eec9
[ "MIT" ]
null
null
null
run.py
kele/WhatchaDoin
7cd7756908f83911cbf9bfd8ac3e4c0bfc52eec9
[ "MIT" ]
null
null
null
__author__ = 'kele' import click import threading from app.core.WhatchaDoin import WhatchaDoin from app.networking.udp import UdpNetworking from app.core.AddressBook import AddressBook from app.ui.pyside.pyside import PySideUI if __name__ == "__main__": main()
21.193548
69
0.736682
01d37eb8da0751f006f9f9b80be60edfa06f7188
3,700
py
Python
perspective/table.py
texodus/perspective-python
5f51ade90c2933c75cd0710e65fc8c7a5ed95cfa
[ "Apache-2.0" ]
1
2019-01-23T21:01:44.000Z
2019-01-23T21:01:44.000Z
perspective/table.py
texodus/perspective-python
5f51ade90c2933c75cd0710e65fc8c7a5ed95cfa
[ "Apache-2.0" ]
null
null
null
perspective/table.py
texodus/perspective-python
5f51ade90c2933c75cd0710e65fc8c7a5ed95cfa
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from .libbinding import t_schema, t_dtype, t_table
30.833333
99
0.550811
01d38ff57509a295667c3e8d6da376bdaf58020c
497
py
Python
plugins/custom_resolver/run_test/custom_resolver.py
jingtaoh/USD-Cookbook
544a149407146f9a3e13c53348818579c679168b
[ "MIT" ]
332
2019-06-11T01:26:05.000Z
2022-03-29T10:09:46.000Z
plugins/custom_resolver/run_test/custom_resolver.py
jingtaoh/USD-Cookbook
544a149407146f9a3e13c53348818579c679168b
[ "MIT" ]
5
2019-07-30T15:10:51.000Z
2021-03-14T18:55:18.000Z
plugins/custom_resolver/run_test/custom_resolver.py
jingtaoh/USD-Cookbook
544a149407146f9a3e13c53348818579c679168b
[ "MIT" ]
63
2019-06-24T16:31:19.000Z
2022-02-13T01:09:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """This module tests if the custom resolver works.""" # IMPORT FUTURE LIBRARIES from __future__ import print_function # IMPORT THIRD-PARTY LIBRARIES from pxr import Ar def main(): """Run the main execution of the current script.""" print("This should still prin...
23.666667
99
0.696177
01d3e22b31121bdc102a650605c542b764eb46b6
4,737
py
Python
FEV_KEGG/Experiments/22.py
ryhaberecht/FEV-KEGG
f55f294aae07b76954ed823f0c2e6d189fb2b1bb
[ "MIT" ]
null
null
null
FEV_KEGG/Experiments/22.py
ryhaberecht/FEV-KEGG
f55f294aae07b76954ed823f0c2e6d189fb2b1bb
[ "MIT" ]
2
2019-05-30T06:42:08.000Z
2021-05-06T10:37:40.000Z
FEV_KEGG/Experiments/22.py
ryhaberecht/FEV-KEGG
f55f294aae07b76954ed823f0c2e6d189fb2b1bb
[ "MIT" ]
null
null
null
""" Context ------- :mod:`19` found many EC numbers new to an example group of Enterobacteriales vs. the super group of Gammaproteobacteria. "108/190 -> 56.8% of EC numbers in Enterobacteriales are new, compared to Gammaproteobacteria consensus" Question -------- Could this be due to incomplete data in KEGG? Because s...
49.34375
189
0.755541
01d4ada008323fc7ff0ce3c082a81308a12d0824
20,533
py
Python
src/run_classifier.py
petrapoklukar/versa
11b7aa8424db1859a27e03ccdbce7d91c3462e3f
[ "MIT" ]
1
2021-11-28T09:07:51.000Z
2021-11-28T09:07:51.000Z
src/run_classifier.py
petrapoklukar/versa
11b7aa8424db1859a27e03ccdbce7d91c3462e3f
[ "MIT" ]
null
null
null
src/run_classifier.py
petrapoklukar/versa
11b7aa8424db1859a27e03ccdbce7d91c3462e3f
[ "MIT" ]
null
null
null
""" Script to reproduce the few-shot classification results in: "Meta-Learning Probabilistic Inference For Prediction" https://arxiv.org/pdf/1805.09921.pdf The following command lines will reproduce the published results within error-bars: Omniglot 5-way, 5-shot ---------------------- python run_classifier.py Omnigl...
51.590452
143
0.583451
01d4f1e373f210e6107ee81c43c2aae2a3759151
4,840
py
Python
genre/util/util_cam_para.py
wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release
f55c6b0fac44d9d749e7804d99169a39d30c2111
[ "MIT" ]
null
null
null
genre/util/util_cam_para.py
wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release
f55c6b0fac44d9d749e7804d99169a39d30c2111
[ "MIT" ]
null
null
null
genre/util/util_cam_para.py
wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release
f55c6b0fac44d9d749e7804d99169a39d30c2111
[ "MIT" ]
null
null
null
import numpy as np if __name__ == '__main__': num_azimuth = 24 num_elevation = 12 for i in range(num_azimuth): rst = np.zeros(num_azimuth) rst[i] = 1 print(onehot_to_azimuth(rst, num_azimuth)) ''' for i in range(100): angle = (np.random.rand() - 0.5) * np...
32.266667
114
0.604339
01d50fcde109015374b42c1b5781753d24dbf44d
857
py
Python
tests/test_views.py
WilliamOtieno/django-serverless-cron
38e19f16cf85da699ba299a6e41bee1ac55ad2c6
[ "MIT" ]
32
2022-01-29T05:11:53.000Z
2022-02-25T00:44:01.000Z
tests/test_views.py
WilliamOtieno/django-serverless-cron
38e19f16cf85da699ba299a6e41bee1ac55ad2c6
[ "MIT" ]
2
2022-02-04T09:31:02.000Z
2022-02-06T13:45:14.000Z
tests/test_views.py
WilliamOtieno/django-serverless-cron
38e19f16cf85da699ba299a6e41bee1ac55ad2c6
[ "MIT" ]
5
2022-02-03T06:23:20.000Z
2022-03-12T22:59:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django_serverless_cron ------------ Tests for `django_serverless_cron` views module. """ from django.test import TestCase from django.test.utils import override_settings from django.urls import reverse from django_serverless_cron.models import JobRun
27.645161
79
0.703617
01d61b9775800e6fb6efa5373083c3233bc64162
471
py
Python
app/app/tests/utils/utils.py
cs-nerds/lishebora-shipping-service
ef98f13b4e560edc71a987b4ccf46c9144c6ad0f
[ "MIT" ]
null
null
null
app/app/tests/utils/utils.py
cs-nerds/lishebora-shipping-service
ef98f13b4e560edc71a987b4ccf46c9144c6ad0f
[ "MIT" ]
null
null
null
app/app/tests/utils/utils.py
cs-nerds/lishebora-shipping-service
ef98f13b4e560edc71a987b4ccf46c9144c6ad0f
[ "MIT" ]
null
null
null
import random import string
20.478261
64
0.687898
01d6ac60d35cd7649d465361c4179765c47e1aee
3,864
py
Python
src/djanban/apps/api/views/boards.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/api/views/boards.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/api/views/boards.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import import json from django.db import transaction from django.http import Http404, HttpResponseBadRequest from django.http import JsonResponse from djanban.apps.api.http import JsonResponseMethodNotAllowed, JsonResponseNotFound from djanba...
33.025641
106
0.715062
01d7082fd7f836454b618da99522a7ac4d194f3d
239
py
Python
Semana03Atividade1/Questao04_S3.py
Marvingms7/IFPI
0f6d50e4a7e1016e58cd227b477b3ce08e19c61a
[ "MIT" ]
null
null
null
Semana03Atividade1/Questao04_S3.py
Marvingms7/IFPI
0f6d50e4a7e1016e58cd227b477b3ce08e19c61a
[ "MIT" ]
null
null
null
Semana03Atividade1/Questao04_S3.py
Marvingms7/IFPI
0f6d50e4a7e1016e58cd227b477b3ce08e19c61a
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
19.916667
79
0.594142
01d8a46a3c621d2bbdfbbbe2fc33445113289ba4
7,959
py
Python
app.py
saharshleo/pid-tuning-gui
1605174b4590891b29d82a5002e05dc2636dd0a1
[ "MIT" ]
null
null
null
app.py
saharshleo/pid-tuning-gui
1605174b4590891b29d82a5002e05dc2636dd0a1
[ "MIT" ]
null
null
null
app.py
saharshleo/pid-tuning-gui
1605174b4590891b29d82a5002e05dc2636dd0a1
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QApplication import sys from UI import layout import serial.tools.list_ports import pyqtgraph import time import math import pyqtgraph as pg import json from server.tcp import tcp_server from server.udp import udp_server from server.tcp import tcp_c...
36.177273
105
0.672949
01d9a0ec5616527348750e6a78fbe495136f90f5
2,207
py
Python
tridentstream/dbs/shelve/tests.py
tridentstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
6
2020-01-03T14:50:09.000Z
2021-09-13T01:44:31.000Z
tridentstream/dbs/shelve/tests.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
tridentstream/dbs/shelve/tests.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
import os import shutil import tempfile import unittest from django.test import TestCase from ...plugins import DatabaseCacheLayer from .handler import ShelfDatabasePlugin
26.590361
86
0.603081
01da48feabb6cd1c261c77ff4df3b7d0cfe57e45
2,570
py
Python
venv/Lib/site-packages/keystoneauth1/extras/_saml2/_loading.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
48
2015-05-02T16:19:10.000Z
2021-12-17T19:01:17.000Z
venv/Lib/site-packages/keystoneauth1/extras/_saml2/_loading.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
1
2019-12-04T13:48:10.000Z
2019-12-04T13:48:10.000Z
venv/Lib/site-packages/keystoneauth1/extras/_saml2/_loading.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
46
2015-05-23T14:04:35.000Z
2022-02-17T12:33:50.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 under t...
33.376623
75
0.587549
01db687268b6e6e6127d0b47f7752b7a7e7db18e
2,699
py
Python
tests/common/test_op/relu6_grad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/common/test_op/relu6_grad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_op/relu6_grad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
36.972603
128
0.606521
01dc7a4c5c662335b2cc4743e4bcb5f0a8bdd2d9
3,220
py
Python
draft/rpi_main.py
industrial-robotics-lab/omni-platform-python
6391bd5fba98d5423693f8e188a5833c43a8c5ae
[ "MIT" ]
null
null
null
draft/rpi_main.py
industrial-robotics-lab/omni-platform-python
6391bd5fba98d5423693f8e188a5833c43a8c5ae
[ "MIT" ]
null
null
null
draft/rpi_main.py
industrial-robotics-lab/omni-platform-python
6391bd5fba98d5423693f8e188a5833c43a8c5ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Receive car control + Transmit video import cv2, imutils, socket, base64 from threading import Thread from communication import SerialTransceiver from utils import rescale import time tcp_server_address = ("192.168.0.119", 10001) udp_server_address = ("192.168.0.119", 10002) # tcp_server_addre...
37.44186
135
0.674534
01dfe32a6e1c5f990ded4e542284915c45cf45a8
2,800
py
Python
Game6/Game6_kor.py
Chomin21/Games
52b1bf9fbb6c70b41ea3b6e99f76642b48cc1142
[ "MIT" ]
null
null
null
Game6/Game6_kor.py
Chomin21/Games
52b1bf9fbb6c70b41ea3b6e99f76642b48cc1142
[ "MIT" ]
null
null
null
Game6/Game6_kor.py
Chomin21/Games
52b1bf9fbb6c70b41ea3b6e99f76642b48cc1142
[ "MIT" ]
3
2019-05-22T10:22:00.000Z
2019-05-22T10:27:17.000Z
# : Charles # ; Charles # python - FlappyBird import Bird import Pipe import pygame from pygame.locals import * # WIDTH, HEIGHT = 640, 480 # if __name__ == "__main__": main()
13.658537
85
0.643214
01e227511721f19f811479b9da480b7c1ce97fb3
16,276
py
Python
experiments/visualization/constraint_visualization_gm.py
hsivan/automon
222b17651533bdb2abce7de36a80156ab7b9cc21
[ "BSD-3-Clause" ]
1
2022-02-25T17:50:32.000Z
2022-02-25T17:50:32.000Z
experiments/visualization/constraint_visualization_gm.py
hsivan/automon
222b17651533bdb2abce7de36a80156ab7b9cc21
[ "BSD-3-Clause" ]
null
null
null
experiments/visualization/constraint_visualization_gm.py
hsivan/automon
222b17651533bdb2abce7de36a80156ab7b9cc21
[ "BSD-3-Clause" ]
1
2022-03-12T08:12:37.000Z
2022-03-12T08:12:37.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.lines import Line2D from test_utils.functions_to_monitor import func_entropy, func_variance from automon import GmEntropyNode, GmVarianceNode from test_utils.node_stream import NodeStreamFrequency, NodeStreamFirstAndSecondMomentum if __name__ == "...
44.837466
131
0.645429
01e40dccf5c0c613db9ef2a6fde602464bbf31cf
1,647
py
Python
experiments/make_index.py
ericmjl/protein-systematic-characterization
3ac44d672380490d8e602aa024e40009fdf306b0
[ "MIT" ]
null
null
null
experiments/make_index.py
ericmjl/protein-systematic-characterization
3ac44d672380490d8e602aa024e40009fdf306b0
[ "MIT" ]
44
2016-08-31T14:58:13.000Z
2017-04-07T19:01:56.000Z
experiments/make_index.py
ericmjl/protein-systematic-characterization
3ac44d672380490d8e602aa024e40009fdf306b0
[ "MIT" ]
1
2016-08-31T14:33:35.000Z
2016-08-31T14:33:35.000Z
import os from pypandoc import convert_file def get_md_files(directory): """ Iterates over all files in a directory and returns a list of markdown files that are present in that directory. """ md_files = [] for f in os.listdir(directory): if f.endswith(('.md', '.MD', '.markdown', '.mdo...
28.894737
79
0.621129
01e4d8cad531270d0858cb5534a73935f7804e5e
103
py
Python
kjn_biedronka_demo/kjn_pricetag/apps.py
kornellewy/kjn_biedronka_demo
a1b0d3baaaee5bca4977b76fa0b3934a533a2f59
[ "MIT" ]
1
2020-10-20T10:33:58.000Z
2020-10-20T10:33:58.000Z
kjn_biedronka_demo/kjn_pricetag/apps.py
kornellewy/kjn_biedronka_demo
a1b0d3baaaee5bca4977b76fa0b3934a533a2f59
[ "MIT" ]
null
null
null
kjn_biedronka_demo/kjn_pricetag/apps.py
kornellewy/kjn_biedronka_demo
a1b0d3baaaee5bca4977b76fa0b3934a533a2f59
[ "MIT" ]
null
null
null
from django.apps import AppConfig
17.166667
36
0.737864
01e4e4ca83425947650a1db8f306c78997b52f74
5,378
py
Python
mingle/utilities/scatter_corner.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2018-09-04T19:06:44.000Z
2018-09-04T19:06:44.000Z
mingle/utilities/scatter_corner.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
85
2017-03-25T22:37:02.000Z
2022-03-01T16:49:14.000Z
mingle/utilities/scatter_corner.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2017-08-18T10:56:39.000Z
2017-08-18T10:56:39.000Z
import numpy as np from pandas.compat import lrange, zip from pandas.core.dtypes.missing import notnull as notna from pandas.plotting._tools import _set_ticks_props, _subplots # Adapted slightly from pandas scatter matrix. pass plotting if in the corner you dont want to show. def scatter_corner(frame, alpha=0.5, fig...
31.822485
107
0.580141
01e5a8795251a0eb60eabe91f9224d3e79a6d265
542
py
Python
Competitive_Coding/Ways_to_Climbing_Up_Stairs.py
Arko98/Alogirthms
ce56faaaf847dbf077de935a98814c37275f8a5f
[ "MIT" ]
5
2020-08-02T16:31:09.000Z
2022-02-21T22:58:59.000Z
Competitive_Coding/Ways_to_Climbing_Up_Stairs.py
Arko98/Alogirthms
ce56faaaf847dbf077de935a98814c37275f8a5f
[ "MIT" ]
null
null
null
Competitive_Coding/Ways_to_Climbing_Up_Stairs.py
Arko98/Alogirthms
ce56faaaf847dbf077de935a98814c37275f8a5f
[ "MIT" ]
3
2020-09-27T11:23:58.000Z
2020-10-01T05:47:39.000Z
# Problem Statement: https://leetcode.com/problems/climbing-stairs/
28.526316
68
0.51476
01e66b7b3c3c61b3dabff3f1863e7297eb52592a
11,169
py
Python
REESSimulation/solver.py
erleben/pyREES
ead5a4ecf8ceb55c9b161f744c7252cdc0ae0ba2
[ "MIT" ]
3
2017-05-23T07:37:01.000Z
2020-05-03T15:34:29.000Z
REESSimulation/solver.py
erleben/pyREES
ead5a4ecf8ceb55c9b161f744c7252cdc0ae0ba2
[ "MIT" ]
null
null
null
REESSimulation/solver.py
erleben/pyREES
ead5a4ecf8ceb55c9b161f744c7252cdc0ae0ba2
[ "MIT" ]
1
2020-08-07T20:39:27.000Z
2020-08-07T20:39:27.000Z
import sys sys.path.append('/usr/local/lib/python/') import openmesh as OM import numpy as np import scipy.sparse as sparse import REESMath.vector3 as V3 import REESMath.quaternion as Q import REESMath.matrix3 as M3 import REESMass.mass as MASS import REESMesh.mesh as MESH import REESMesh.factory as MESH_FACTORY imp...
28.565217
115
0.611962
01e84e2e09174fa101f24b03bfca3b0cb2f23013
204
py
Python
orders/constants.py
pmaigutyak/mp-shop-orders
1ef2e9ad4763a5b36f011ebb7823f8acc52d814a
[ "0BSD" ]
null
null
null
orders/constants.py
pmaigutyak/mp-shop-orders
1ef2e9ad4763a5b36f011ebb7823f8acc52d814a
[ "0BSD" ]
null
null
null
orders/constants.py
pmaigutyak/mp-shop-orders
1ef2e9ad4763a5b36f011ebb7823f8acc52d814a
[ "0BSD" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ DAYS_OF_WEEK = [ _('Monday'), _('Tuesday'), _('Wednesday'), _('Thursday'), _('Friday'), _('Saturday'), _('Sunday') ]
14.571429
55
0.573529
01e87ba7228389deb68a6a39ded327ce55306fe4
1,650
py
Python
test-scheduler/server/src/step/step_manager.py
opnfv/bottlenecks
b6c7bba0c071b42172283e4d97a3641f6464857a
[ "Apache-2.0" ]
1
2019-04-20T08:42:49.000Z
2019-04-20T08:42:49.000Z
test-scheduler/server/src/step/step_manager.py
opnfv/bottlenecks
b6c7bba0c071b42172283e4d97a3641f6464857a
[ "Apache-2.0" ]
2
2020-04-30T00:07:15.000Z
2021-06-02T00:33:47.000Z
test-scheduler/server/src/step/step_manager.py
opnfv/bottlenecks
b6c7bba0c071b42172283e4d97a3641f6464857a
[ "Apache-2.0" ]
3
2016-12-09T10:20:55.000Z
2019-04-22T12:45:00.000Z
############################################################################## # Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, ...
39.285714
79
0.593939
01e9f4be4d320ba23c0c303bca3640fbb9868169
912
py
Python
models.py
Fernan1122/BusinessWork_Back
41dd2351fce84a8f27a3309919fa9a3782a36581
[ "CC0-1.0" ]
null
null
null
models.py
Fernan1122/BusinessWork_Back
41dd2351fce84a8f27a3309919fa9a3782a36581
[ "CC0-1.0" ]
null
null
null
models.py
Fernan1122/BusinessWork_Back
41dd2351fce84a8f27a3309919fa9a3782a36581
[ "CC0-1.0" ]
null
null
null
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DATE from sqlalchemy.orm import relationship from database import Base
30.4
73
0.717105
01ea260cc6080fb4fe58dfcaefdbf5d08e74b7a8
1,879
py
Python
src/drivers/misc/status.py
isys-vision/rosweld_drivers
aaab5026be950f6dada30fdaccb9ad7f0a841038
[ "Apache-2.0" ]
2
2019-12-24T13:28:25.000Z
2022-03-03T17:06:04.000Z
src/drivers/misc/status.py
isys-vision/rosweld_drivers
aaab5026be950f6dada30fdaccb9ad7f0a841038
[ "Apache-2.0" ]
null
null
null
src/drivers/misc/status.py
isys-vision/rosweld_drivers
aaab5026be950f6dada30fdaccb9ad7f0a841038
[ "Apache-2.0" ]
3
2021-02-08T17:42:27.000Z
2021-08-03T14:39:46.000Z
#pylint: skip-file """ ROSWELD Version 0.0.1, March 2019 http://rosin-project.eu/ftp/rosweld Copyright (c) 2019 PPM Robotics AS This library is part of ROSWELD project, the Focused Technical Project ROSWELD - ROS based framework for planning, monitoring and control of multi-pass robot welding is co-financed by the EU...
26.842857
76
0.681746
01eaa863b016d99fb7436867fb08fed76b5f191d
2,109
py
Python
openpathsampling/high_level/part_in_b_tps.py
bolhuis/openpathsampling
4a12af0ee1143cdbc272b10a8c7cbea735566ce1
[ "MIT" ]
64
2016-07-06T13:38:51.000Z
2022-03-30T15:58:01.000Z
openpathsampling/high_level/part_in_b_tps.py
bolhuis/openpathsampling
4a12af0ee1143cdbc272b10a8c7cbea735566ce1
[ "MIT" ]
601
2016-06-13T10:22:01.000Z
2022-03-25T00:10:40.000Z
openpathsampling/high_level/part_in_b_tps.py
hejung/openpathsampling
e8b091c92916561954542d40d17d7241b203d1ad
[ "MIT" ]
45
2016-11-10T11:17:53.000Z
2022-02-13T11:50:26.000Z
from openpathsampling.high_level.network import FixedLengthTPSNetwork from openpathsampling.high_level.transition import FixedLengthTPSTransition import openpathsampling as paths
37
75
0.685159
01eb2e2d6bcc6af7583296354ebcf98ae67118f5
1,917
py
Python
misc/rename_testset.py
dekape/rsna-xray
10326f09a9859d513d9e0f69a8601a9451c08822
[ "MIT" ]
null
null
null
misc/rename_testset.py
dekape/rsna-xray
10326f09a9859d513d9e0f69a8601a9451c08822
[ "MIT" ]
null
null
null
misc/rename_testset.py
dekape/rsna-xray
10326f09a9859d513d9e0f69a8601a9451c08822
[ "MIT" ]
null
null
null
import os import random import pandas as pd EXTENSIONS = ["PNG", "png"] if __name__ == "__main__": random.seed(33) test_path = "C:\\Users\\debor\\Google Drive\\IC_PHD\\GTA\ACSE20-21\\ACSE4\\xray-data\\test" key_file = os.path.join("./", "test_key.csv") key_annotated_file = os.path.join("./"...
30.428571
95
0.575378
01ed4d27492826991aaf5773395a462b2614c1b7
158
py
Python
players/admin.py
rymcimcim/django-foosball
6df4d05a81d13827d9734519fdf6a203e5c9a78e
[ "MIT" ]
1
2016-10-20T12:29:03.000Z
2016-10-20T12:29:03.000Z
players/admin.py
rymcimcim/django-foosball
6df4d05a81d13827d9734519fdf6a203e5c9a78e
[ "MIT" ]
null
null
null
players/admin.py
rymcimcim/django-foosball
6df4d05a81d13827d9734519fdf6a203e5c9a78e
[ "MIT" ]
null
null
null
from django.contrib import admin from players.models import Player admin.site.register(Player, PlayerAdmin)
15.8
40
0.797468
01ede7a899656197200d96cf0e51ba5cf653c724
12,403
py
Python
sistemaDeGestaoDeServicosPublicos/Orgao/views.py
deyviddalbem/TrabalhoDeConclusaoDeCurso
4375843b6cbaccbc5822c20711b4ee3ecd6112d4
[ "MIT" ]
null
null
null
sistemaDeGestaoDeServicosPublicos/Orgao/views.py
deyviddalbem/TrabalhoDeConclusaoDeCurso
4375843b6cbaccbc5822c20711b4ee3ecd6112d4
[ "MIT" ]
7
2020-02-12T02:27:44.000Z
2022-02-10T14:04:54.000Z
sistemaDeGestaoDeServicosPublicos/Orgao/views.py
deyviddalbem/TrabalhoDeConclusaoDeCurso
4375843b6cbaccbc5822c20711b4ee3ecd6112d4
[ "MIT" ]
null
null
null
import json from social_django.models import UserSocialAuth from django.views.generic import ListView, CreateView, UpdateView, DeleteView, DetailView from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse_lazy, reverse ...
42.331058
204
0.646215
01efe54050ee0c2c2bf9b142ac4a0909469e27bf
1,291
py
Python
payments/utils.py
Ashwin-Dev-P/Thumki-Final-Hosting
fcfe40000b688d419513831ece5400cb32caaa69
[ "MIT" ]
1
2022-01-09T10:23:22.000Z
2022-01-09T10:23:22.000Z
payments/utils.py
Ashwin-Dev-P/dev-stores
fcfe40000b688d419513831ece5400cb32caaa69
[ "MIT" ]
null
null
null
payments/utils.py
Ashwin-Dev-P/dev-stores
fcfe40000b688d419513831ece5400cb32caaa69
[ "MIT" ]
2
2020-12-24T13:22:32.000Z
2021-02-05T06:13:06.000Z
from . import Checksum from django.conf import settings import requests import json
37.970588
108
0.584818
01f03e4c4b71da6314c6ff96bd1460f3d2444275
1,252
py
Python
main/Scraper.py
tanishkaa31/Air-Quality-Index-Prediction
59b53e239765dd1b7ab2b3dbf91e289b190306c9
[ "MIT" ]
1
2022-02-08T05:16:30.000Z
2022-02-08T05:16:30.000Z
main/Scraper.py
tanishkaa31/Air-Quality-Index-Prediction
59b53e239765dd1b7ab2b3dbf91e289b190306c9
[ "MIT" ]
null
null
null
main/Scraper.py
tanishkaa31/Air-Quality-Index-Prediction
59b53e239765dd1b7ab2b3dbf91e289b190306c9
[ "MIT" ]
1
2021-06-17T19:58:36.000Z
2021-06-17T19:58:36.000Z
import requests from datetime import datetime import pandas as pd from .models import Data,Data_Predicted data = Data() data1 = Data_Predicted() # scrap()
25.04
80
0.594249
01f0612a28845af33cf6f66db33f77494cd79876
7,264
py
Python
metaflow/tests/flows/joins.py
celsiustx/metaflow
53b72aac978c429ced680ebbd222c1056425ad9c
[ "Apache-2.0" ]
1
2022-01-07T22:32:27.000Z
2022-01-07T22:32:27.000Z
metaflow/tests/flows/joins.py
celsiustx/metaflow
53b72aac978c429ced680ebbd222c1056425ad9c
[ "Apache-2.0" ]
null
null
null
metaflow/tests/flows/joins.py
celsiustx/metaflow
53b72aac978c429ced680ebbd222c1056425ad9c
[ "Apache-2.0" ]
null
null
null
from metaflow import FlowSpec from metaflow import api as ma from metaflow.api import foreach, step, join
24.791809
89
0.488161
01f0876a848f98566b418a12850c93ba07f05bf7
1,178
py
Python
src/model/base_net.py
timctho/random-wired-nn-tensorflow
92c1b945437a8ab09321618eb6ad876bfa26eb0c
[ "Apache-2.0" ]
8
2019-04-12T05:35:04.000Z
2020-12-28T01:42:31.000Z
src/model/base_net.py
timctho/random-wired-nn-tensorflow
92c1b945437a8ab09321618eb6ad876bfa26eb0c
[ "Apache-2.0" ]
1
2019-04-11T11:29:14.000Z
2019-04-11T12:45:25.000Z
src/model/base_net.py
timctho/random-wired-nn-tensorflow
92c1b945437a8ab09321618eb6ad876bfa26eb0c
[ "Apache-2.0" ]
4
2019-04-16T04:29:01.000Z
2020-03-05T16:40:52.000Z
import os import tensorflow as tf
38
90
0.531409
01f5a775dbc6abdbe5563b7eeab2a3022faec46d
1,025
py
Python
client/client.py
paoli7612/Elements
50357a6b0ad3883ac309c66a3cf18c64e32565ca
[ "MIT" ]
4
2018-12-10T07:57:19.000Z
2020-11-03T09:13:42.000Z
client/client.py
paoli7612/Elements
50357a6b0ad3883ac309c66a3cf18c64e32565ca
[ "MIT" ]
null
null
null
client/client.py
paoli7612/Elements
50357a6b0ad3883ac309c66a3cf18c64e32565ca
[ "MIT" ]
null
null
null
import socket, time, threading if __name__ == "__main__": c = Client() c.recv_all()
27.702703
78
0.510244
01f61fb7b4346e460c181a08503ec3a29838d517
2,739
py
Python
Server/Python/utils/dbs3_logfile_parser.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/utils/dbs3_logfile_parser.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/utils/dbs3_logfile_parser.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
#!/usr/bin/env python from __future__ import print_function from optparse import OptionParser import json, os, re, sys log_parts = [r'^INFO:cherrypy.access:\[(?P<time>\S+)\]', # time r'(?P<host>\S+)', #...
40.279412
119
0.520263
01f83e180784b64e9f21dd4c6bd0f8d69d6fa2eb
4,428
py
Python
cyberdynedyndnscli/__init__.py
droberin/cyberdyne-dyndns
7d495390413cff2829f6b00a482f7b9dff3dcb5a
[ "MIT" ]
null
null
null
cyberdynedyndnscli/__init__.py
droberin/cyberdyne-dyndns
7d495390413cff2829f6b00a482f7b9dff3dcb5a
[ "MIT" ]
null
null
null
cyberdynedyndnscli/__init__.py
droberin/cyberdyne-dyndns
7d495390413cff2829f6b00a482f7b9dff3dcb5a
[ "MIT" ]
null
null
null
import time import datetime import requests
38.504348
102
0.586269
01f868d8afa278063eab09662b9fbbb9b6844c41
1,809
py
Python
caffe2/python/operator_test/jsd_ops_test.py
chocjy/caffe2
1a6cef392495d969d135945d6749e6b99b37d4d9
[ "Apache-2.0" ]
585
2015-08-10T02:48:52.000Z
2021-12-01T08:46:59.000Z
caffe2/python/operator_test/jsd_ops_test.py
PDFxy/caffe2
28523ff1ff33f18eaf8b04cc4e0f308826e1861a
[ "Apache-2.0" ]
23
2015-08-30T11:54:51.000Z
2017-03-06T03:01:07.000Z
caffe2/python/operator_test/jsd_ops_test.py
PDFxy/caffe2
28523ff1ff33f18eaf8b04cc4e0f308826e1861a
[ "Apache-2.0" ]
183
2015-08-10T02:49:04.000Z
2021-12-01T08:47:13.000Z
# Copyright (c) 2016-present, Facebook, Inc. # # 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...
32.303571
78
0.634605
01fa57c4f07526760c2b32ca534e4e38ef97efd6
475
py
Python
PROJECTS/concatination.py
varunverma760/fpga-from-coursera
47815e1280f36032bb9d42636154cd6c055340f3
[ "MIT" ]
1
2020-10-22T12:08:48.000Z
2020-10-22T12:08:48.000Z
PROJECTS/concatination.py
varunverma760/fpga-from-coursera
47815e1280f36032bb9d42636154cd6c055340f3
[ "MIT" ]
null
null
null
PROJECTS/concatination.py
varunverma760/fpga-from-coursera
47815e1280f36032bb9d42636154cd6c055340f3
[ "MIT" ]
null
null
null
#concatenation # youtuber = " varun verma" #some string concatenation # print("subscribe to "+ youtuber) # print("subscribe to {}" .format(youtuber)) # print(f"subscriber to {youtuber}") adj= input("Adjective: ") verb1 = input("Verb: ") verb2 = input("Verb: ") famous_person = input("Famous Person: ") madlib = f"Comput...
33.928571
78
0.698947
01fab852984eb78e7fae412a10d607703e6f887b
3,157
py
Python
trilearn/graph/subtree_sampler.py
melmasri/trilearn
cbda999140881a5f0e01d75a54d5ff55201a33e7
[ "Apache-2.0" ]
10
2018-02-24T16:54:05.000Z
2022-01-20T03:19:14.000Z
trilearn/graph/subtree_sampler.py
melmasri/trilearn
cbda999140881a5f0e01d75a54d5ff55201a33e7
[ "Apache-2.0" ]
null
null
null
trilearn/graph/subtree_sampler.py
melmasri/trilearn
cbda999140881a5f0e01d75a54d5ff55201a33e7
[ "Apache-2.0" ]
4
2020-05-10T17:00:49.000Z
2021-11-03T10:14:28.000Z
from collections import deque import networkx as nx import numpy as np def random_subtree(T, alpha, beta, subtree_mark): """ Random subtree of T according to Algorithm X in [1]. Args: alpha (float): probability of continuing to a neighbor beta (float): probability of non empty subtree ...
31.57
122
0.577764
01fad7958ff16481c7b33257cc9fcc2c76d5c8f2
2,487
py
Python
train.py
FlashTek/attention-is-all-you-need-keras
cd97437a236812395c76c2f21e71a4821e5c862d
[ "MIT" ]
25
2018-07-11T08:22:15.000Z
2019-10-10T02:54:12.000Z
train.py
FlashTek/attention-is-all-you-need-keras
cd97437a236812395c76c2f21e71a4821e5c862d
[ "MIT" ]
2
2018-08-29T12:58:33.000Z
2018-09-14T12:42:45.000Z
train.py
FlashTek/attention-is-all-you-need-keras
cd97437a236812395c76c2f21e71a4821e5c862d
[ "MIT" ]
11
2018-09-16T06:51:13.000Z
2019-09-16T19:34:17.000Z
from model import create_model from utility.utility import load_training_data, load_validation_data from utility.language_encoder import LanguageEncoder import numpy as np import keras.backend as K from keras.models import load_model import pathlib from matplotlib import pyplot as plt from keras.optimizers import Adam ...
41.45
144
0.744672
01faf77146f541dc19d3931be9cad9f324b62043
77,678
py
Python
apero/core/constants/param_functions.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
1
2021-03-09T17:49:31.000Z
2021-03-09T17:49:31.000Z
apero/core/constants/param_functions.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
43
2020-10-06T18:42:24.000Z
2022-03-28T21:23:10.000Z
apero/core/constants/param_functions.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Constants parameter functions DRS Import Rules: - only from apero.lang and apero.core.constants Created on 2019-01-17 at 15:24 @author: cook """ from collections import OrderedDict import copy import numpy as np import os import pkg_resources import shutil import sy...
36.485674
80
0.57553
01fb8b53d22fdf00f38594de4a2d3cc035949ebb
47,890
py
Python
test/integration/ggrc/converters/test_import_issuetracked_objects.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
test/integration/ggrc/converters/test_import_issuetracked_objects.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/converters/test_import_issuetracked_objects.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Integration tests for IssueTracker updates via import cases.""" # pylint: disable=invalid-name,too-many-public-methods,too-many-lines import collections import ddt import mock from ggrc import db from...
36.390578
79
0.605742
01fcb851495352b86f6bfa6adea5c5f9d73b1d70
139
py
Python
clubadm/apps.py
clubadm/clubadm
1e460253cdd30271aa359b53bdb600d2c6ca91b0
[ "MIT" ]
25
2015-12-21T04:33:11.000Z
2021-12-13T17:55:00.000Z
clubadm/apps.py
clubadm/clubadm
1e460253cdd30271aa359b53bdb600d2c6ca91b0
[ "MIT" ]
16
2015-12-22T08:23:09.000Z
2020-12-23T20:00:10.000Z
clubadm/apps.py
clubadm/clubadm
1e460253cdd30271aa359b53bdb600d2c6ca91b0
[ "MIT" ]
6
2015-12-21T18:37:57.000Z
2016-02-22T23:45:46.000Z
from django.apps import AppConfig
19.857143
49
0.748201
01fcbe5645d4e047eb0d123addf6848dbe9bc0ec
424
py
Python
algs/0053_Maximum_Subarray.py
torpedoallen/leetcodes
1c5042aa82c4d959383562bd77fd8829c002375d
[ "MIT" ]
null
null
null
algs/0053_Maximum_Subarray.py
torpedoallen/leetcodes
1c5042aa82c4d959383562bd77fd8829c002375d
[ "MIT" ]
null
null
null
algs/0053_Maximum_Subarray.py
torpedoallen/leetcodes
1c5042aa82c4d959383562bd77fd8829c002375d
[ "MIT" ]
null
null
null
import sys
19.272727
38
0.429245
01ffe5e4c401e9b495b21878c167730a76f3361b
489
py
Python
Semana 2/7.Imagenes digitales/midiendo el tiempo.py
NSnietol/IntroduccionVisionComputadorOpenCVedX
93f6f3989d9320fb6be9b28c687ea3ae337ba8c5
[ "MIT" ]
null
null
null
Semana 2/7.Imagenes digitales/midiendo el tiempo.py
NSnietol/IntroduccionVisionComputadorOpenCVedX
93f6f3989d9320fb6be9b28c687ea3ae337ba8c5
[ "MIT" ]
null
null
null
Semana 2/7.Imagenes digitales/midiendo el tiempo.py
NSnietol/IntroduccionVisionComputadorOpenCVedX
93f6f3989d9320fb6be9b28c687ea3ae337ba8c5
[ "MIT" ]
null
null
null
from math import sin #para usar la funcin seno from time import time #importamos la funcin time para capturar tiempos x = list(range(0,100)) #vector de valores desde 0 a 99 y = [0.0 for i in range(len(x))] #inicializamos el vector de resultados con 100 valores 0.0 tiempo_inicial = time() for i in range(100): ...
27.166667
91
0.719836
01fff73693db6901bfb8ca0731e042151e039ff9
9,319
py
Python
apps/nagios/views.py
crazy-canux/zmonitoring
23142203955fe4b599db80dcbfa9e9301073b448
[ "Apache-2.0" ]
null
null
null
apps/nagios/views.py
crazy-canux/zmonitoring
23142203955fe4b599db80dcbfa9e9301073b448
[ "Apache-2.0" ]
null
null
null
apps/nagios/views.py
crazy-canux/zmonitoring
23142203955fe4b599db80dcbfa9e9301073b448
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) Canux CHENG <canuxcheng@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to ...
37.882114
142
0.630111
bf034a77884ae65b18e8cbf60f4289ff6cfff760
695
py
Python
app/main/forms.py
Tee-Mureithi/pitches-app
502ef1f8630d758abd4755c7496ed8c27d2f2019
[ "MIT" ]
null
null
null
app/main/forms.py
Tee-Mureithi/pitches-app
502ef1f8630d758abd4755c7496ed8c27d2f2019
[ "MIT" ]
null
null
null
app/main/forms.py
Tee-Mureithi/pitches-app
502ef1f8630d758abd4755c7496ed8c27d2f2019
[ "MIT" ]
null
null
null
from flask_wtf import Form from flask_wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField,SelectField #from flask_wtf import import Required #from wtforms.validators import Required
31.590909
136
0.743885
bf038f8d7db75219ea84e942b6e4d240c040293e
3,961
py
Python
loader/loader.py
jsoldani/ship-to
92ff47d4c44278778e9e75892ba90eb8e34f0181
[ "Apache-2.0" ]
null
null
null
loader/loader.py
jsoldani/ship-to
92ff47d4c44278778e9e75892ba90eb8e34f0181
[ "Apache-2.0" ]
null
null
null
loader/loader.py
jsoldani/ship-to
92ff47d4c44278778e9e75892ba90eb8e34f0181
[ "Apache-2.0" ]
null
null
null
import json import os import sys import yaml main(sys.argv[1:])
30.469231
81
0.644787
bf03e22d9baa755c16b1895a04300e427382905a
6,002
py
Python
test/test_parser.py
1621740748/stock-pandas
fe8b741e19311235efe901c63c1a8ee81d112680
[ "MIT" ]
1
2020-04-03T09:30:10.000Z
2020-04-03T09:30:10.000Z
test/test_parser.py
1621740748/stock-pandas
fe8b741e19311235efe901c63c1a8ee81d112680
[ "MIT" ]
null
null
null
test/test_parser.py
1621740748/stock-pandas
fe8b741e19311235efe901c63c1a8ee81d112680
[ "MIT" ]
null
null
null
import pytest from stock_pandas.directive import Parser from stock_pandas.common import ( TYPE_DIRECTIVE, TYPE_COMMAND, TYPE_OPERATOR, TYPE_ARGUMENT, TYPE_SCALAR ) from stock_pandas.exceptions import DirectiveSyntaxError
27.787037
66
0.22026
bf05064003b740babdf099e8e9c226ae9114bc8c
1,788
py
Python
examples/run_inods.py
greenkidneybean/INoDS-model
8a327f122e180e6bd9583b8bbbf88345c260ee4d
[ "MIT" ]
1
2021-05-24T23:36:18.000Z
2021-05-24T23:36:18.000Z
examples/run_inods.py
greenkidneybean/INoDS-model
8a327f122e180e6bd9583b8bbbf88345c260ee4d
[ "MIT" ]
null
null
null
examples/run_inods.py
greenkidneybean/INoDS-model
8a327f122e180e6bd9583b8bbbf88345c260ee4d
[ "MIT" ]
null
null
null
import sys import os sys.path = [os.path.abspath(os.path.join(__file__, '..', '..')), ] + sys.path import INoDS_model as inods import numpy as np import time ################################################## ## NOTE: INoDS requires the network and health data to be formatted in ## a specific manner. Check example file...
37.25
277
0.615772
bf0a907edc542809c941b164eb3ae4aaf056bb27
1,846
py
Python
tasks/task3_4.py
shmalex/galvanize
9f3e0b1a66eed23ace5839f2c29d3627bbc2120e
[ "MIT" ]
1
2020-12-16T09:36:23.000Z
2020-12-16T09:36:23.000Z
tasks/task3_4.py
shmalex/galvanize
9f3e0b1a66eed23ace5839f2c29d3627bbc2120e
[ "MIT" ]
null
null
null
tasks/task3_4.py
shmalex/galvanize
9f3e0b1a66eed23ace5839f2c29d3627bbc2120e
[ "MIT" ]
null
null
null
import os import random as rn lines = [x.replace('\n', '') for x in tuple(open('words.txt', 'r'))] clear() words = lines char_set = set() word = '' word_set = set(word) word_len = len(word) trie = 6 score = [0, 0] reset() print('wellcome to hang man') print_word() while True: c = ask_for_letter() ...
18.646465
80
0.505417
bf0d7187bc4f16d06a9c513d20c23cdd98c3614d
3,416
py
Python
src/import_functions/auxiliary_function_for_geo_files.py
dataforgoodfr/batch9_geowatchlabs-3-markets
a9849bd9069ec570f9945313cd5138685e428897
[ "MIT" ]
1
2021-04-22T09:04:26.000Z
2021-04-22T09:04:26.000Z
src/import_functions/auxiliary_function_for_geo_files.py
dataforgoodfr/batch9_geowatchlabs-3-markets
a9849bd9069ec570f9945313cd5138685e428897
[ "MIT" ]
1
2021-05-13T16:21:21.000Z
2021-05-14T21:21:25.000Z
src/import_functions/auxiliary_function_for_geo_files.py
dataforgoodfr/batch9_geowatchlabs-3-markets
a9849bd9069ec570f9945313cd5138685e428897
[ "MIT" ]
null
null
null
import os import re from pathlib import Path import zipfile import pandas as pd from osgeo import osr from auxiliary_function_for_importing_data import ( extract_pattern_from_string as matching, ) from osgeo import gdal import matplotlib.pyplot as plt def list_geo_file(folder=""): """Lists all the files in th...
28.949153
82
0.668911
bf0e66a445373f2adf94f414be7ffb5262153960
347
py
Python
src/dp/rest_api/v1/handlers/user/__init__.py
Michalesko/DP_API
73e27bf0bb06330d7903977d8cd4d1fdb57afaec
[ "MIT" ]
null
null
null
src/dp/rest_api/v1/handlers/user/__init__.py
Michalesko/DP_API
73e27bf0bb06330d7903977d8cd4d1fdb57afaec
[ "MIT" ]
null
null
null
src/dp/rest_api/v1/handlers/user/__init__.py
Michalesko/DP_API
73e27bf0bb06330d7903977d8cd4d1fdb57afaec
[ "MIT" ]
null
null
null
# coding: utf-8 __author__ = 'Miso' from users import UsersHandlerOne from users import UsersHandler from userGoal import UserHandlerGoal from userEvalInit import UserHandlerInitialEval from userEvalPage import UserHandlerRuntimeEval from usersPages import UserPages from userPageRating import UserPageRating from userT...
28.916667
47
0.870317