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
008ab41919f6cf9ccb909a5c6b4b001e22271e63
3,041
py
Python
examples/getting_started/example_simulation.py
lvayssac/bioptim
526abff72a8a1b2cb84ccc40c6067b7a18f537e3
[ "MIT" ]
null
null
null
examples/getting_started/example_simulation.py
lvayssac/bioptim
526abff72a8a1b2cb84ccc40c6067b7a18f537e3
[ "MIT" ]
null
null
null
examples/getting_started/example_simulation.py
lvayssac/bioptim
526abff72a8a1b2cb84ccc40c6067b7a18f537e3
[ "MIT" ]
null
null
null
""" The first part of this example of a single shooting simulation from initial guesses. It is NOT an optimal control program. It is merely the simulation of values, that is applying the dynamics. The main goal of this kind of simulation is to get a sens of the initial guesses passed to the solver The second part of t...
45.38806
119
0.736271
008b5762f587edc099e733bc4b9ba64520be97f9
2,917
py
Python
website/addons/dropbox/views.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
null
null
null
website/addons/dropbox/views.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
website/addons/dropbox/views.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
null
null
null
"""Views fo the node settings page.""" # -*- coding: utf-8 -*- import logging import httplib as http from dropbox.rest import ErrorResponse from dropbox.client import DropboxClient from urllib3.exceptions import MaxRetryError from framework.exceptions import HTTPError from website.addons.dropbox.serializer import Dro...
26.761468
96
0.613301
008b87796c61d9c7cad8a8c451eb6e712bd0b528
242
py
Python
django_twilio/settings.py
km-pg/django-twilio
d50ead89ca0996f6fe7e1b9359d877637627594e
[ "Unlicense" ]
null
null
null
django_twilio/settings.py
km-pg/django-twilio
d50ead89ca0996f6fe7e1b9359d877637627594e
[ "Unlicense" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
django_twilio/settings.py
km-pg/django-twilio
d50ead89ca0996f6fe7e1b9359d877637627594e
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import """ django_twilio specific settings. """ from .utils import discover_twilio_credentials TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN = discover_twilio_credentials()
22
69
0.801653
008cde908d293c007a270cb3365f701251d7f2a1
1,313
py
Python
2013/QualificationRound/problem1.py
radeinla/fbhackercup
11c30a77cac8c4fc542eba23d0b080cbb0f4ece9
[ "MIT" ]
null
null
null
2013/QualificationRound/problem1.py
radeinla/fbhackercup
11c30a77cac8c4fc542eba23d0b080cbb0f4ece9
[ "MIT" ]
null
null
null
2013/QualificationRound/problem1.py
radeinla/fbhackercup
11c30a77cac8c4fc542eba23d0b080cbb0f4ece9
[ "MIT" ]
null
null
null
with open("input1.txt") as f: T = int(f.readline()) for t in xrange(0, T): N = int(f.readline()) c = [] for i in xrange(0, N): c.append(f.readline().rstrip('\n')) print "Case #%d: %s" % (t+1, "YES" if is_square(c, N) else "NO")
28.543478
72
0.374714
008cf50d2ccba6df8a22e84feee3a611d6f5c89c
5,508
py
Python
lib/framework/CAISO/tool_utils.py
joollnl/ISO-DART
3c6ea8af02c9b26dd638752040e8f627226ba889
[ "MIT" ]
13
2020-11-18T19:02:15.000Z
2022-02-08T01:25:36.000Z
lib/framework/CAISO/tool_utils.py
joollnl/ISO-DART
3c6ea8af02c9b26dd638752040e8f627226ba889
[ "MIT" ]
2
2020-12-22T21:49:42.000Z
2021-09-10T18:31:01.000Z
lib/framework/CAISO/tool_utils.py
joollnl/ISO-DART
3c6ea8af02c9b26dd638752040e8f627226ba889
[ "MIT" ]
5
2020-11-18T01:50:17.000Z
2021-12-01T21:15:46.000Z
import requests import xml.etree.ElementTree as ET import csv import zipfile import pdb import io import os import datetime import time import pandas as pd import sys URL = 'http://oasis.caiso.com/oasisapi/SingleZip' QUERY_DATE_FORMAT = '%Y%m%dT%H:%M-0000' DATA_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S-00:00' DATA_DIR = os.pa...
32.023256
110
0.623094
008dea6297a00a2a7baea385c4d7777b91f522e7
3,385
py
Python
container-applications/classified/app.py
emerginganalytics/ualr-cyber-gym
1156bc2c85c17af02da048f40b2be875f89db0ce
[ "MIT" ]
3
2020-09-02T19:18:03.000Z
2021-04-29T20:23:01.000Z
container-applications/classified/app.py
emerginganalytics/ualr-cyber-gym
1156bc2c85c17af02da048f40b2be875f89db0ce
[ "MIT" ]
26
2021-12-23T19:37:27.000Z
2022-03-28T04:03:41.000Z
container-applications/classified/app.py
emerginganalytics/cyberarena
311d179a30017285571f65752eaa91b78c7097aa
[ "MIT" ]
4
2020-11-20T20:38:49.000Z
2021-04-29T20:23:12.000Z
import base64 import onetimepass import os from flask import abort, Flask, redirect from flask_bootstrap import Bootstrap from flask_login import LoginManager, UserMixin from flask_sqlalchemy import SQLAlchemy from globals import ds_client from werkzeug.security import check_password_hash, generate_password_hash # App...
31.055046
113
0.718168
0091802426c2077628c7833c451ff0614032fab3
1,278
py
Python
blog/migrations/0001_initial.py
alireza-fm/MySite
7c73500d893a563c6dde6b9e8286123cb676f608
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
alireza-fm/MySite
7c73500d893a563c6dde6b9e8286123cb676f608
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
alireza-fm/MySite
7c73500d893a563c6dde6b9e8286123cb676f608
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-04-12 09:40 from django.db import migrations, models import django.db.models.deletion
34.540541
121
0.567293
00918278e02f5507db625fbc380469e95440c2aa
2,445
py
Python
nevergrad/functions/photonics/test_core.py
xavierzw/nevergrad
97fd5ce56e6c86692e206073516cbd41dd0ce629
[ "MIT" ]
null
null
null
nevergrad/functions/photonics/test_core.py
xavierzw/nevergrad
97fd5ce56e6c86692e206073516cbd41dd0ce629
[ "MIT" ]
null
null
null
nevergrad/functions/photonics/test_core.py
xavierzw/nevergrad
97fd5ce56e6c86692e206073516cbd41dd0ce629
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List from unittest.mock import patch import numpy as np from ...common import testing from . import co...
44.454545
121
0.678937
0091e52954d749aff2ac12ab64db5a16de17bdb9
3,534
py
Python
pointnet/dataset.py
Taeuk-Jang/pointcompletion
afd77411d9bd1e04df2bcd852e409d502a15f79e
[ "MIT" ]
null
null
null
pointnet/dataset.py
Taeuk-Jang/pointcompletion
afd77411d9bd1e04df2bcd852e409d502a15f79e
[ "MIT" ]
null
null
null
pointnet/dataset.py
Taeuk-Jang/pointcompletion
afd77411d9bd1e04df2bcd852e409d502a15f79e
[ "MIT" ]
null
null
null
import torch.utils.data as data import os import os.path #from plyfile import PlyData, PlyElement from plyfile import PlyData import numpy as np
29.45
123
0.540181
0092c0e12494d2715c22cd983c975a53d5f385eb
38,609
py
Python
e3nn/o3/tensor_product.py
SuperXiang/e3nn
b97b2b9e83f896c6b8b21b2fe20dc356a2c18e0c
[ "MIT" ]
1
2021-02-09T10:34:09.000Z
2021-02-09T10:34:09.000Z
e3nn/o3/tensor_product.py
SuperXiang/e3nn
b97b2b9e83f896c6b8b21b2fe20dc356a2c18e0c
[ "MIT" ]
null
null
null
e3nn/o3/tensor_product.py
SuperXiang/e3nn
b97b2b9e83f896c6b8b21b2fe20dc356a2c18e0c
[ "MIT" ]
null
null
null
from math import sqrt from collections import namedtuple import torch from e3nn import o3 from e3nn.util import eval_code
38.803015
163
0.529307
0094eca935a80d7d3acb6c3620f39dca33a3c8c6
2,442
py
Python
hundo/unite_classifier.py
colinbrislawn/hundo
38f5da8e63fdbd314e99f4eff3668c8adb5a0a5f
[ "MIT" ]
null
null
null
hundo/unite_classifier.py
colinbrislawn/hundo
38f5da8e63fdbd314e99f4eff3668c8adb5a0a5f
[ "MIT" ]
null
null
null
hundo/unite_classifier.py
colinbrislawn/hundo
38f5da8e63fdbd314e99f4eff3668c8adb5a0a5f
[ "MIT" ]
null
null
null
import functools from itertools import zip_longest from Bio import Phylo def lca(self, tx, percent_id): if isinstance(tx, str): tx = [tx] c = set([self.get_clade(i, percent_id) for i in tx]) c = self.tree.common_ancestor(c) if c == self.tree.root: return s...
26.835165
74
0.533579
0094f3b130364ae0c13120be09b4683745e6005c
69,805
py
Python
pysnmp-with-texts/CISCO-STACKWISE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-STACKWISE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-STACKWISE-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 CISCO-STACKWISE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STACKWISE-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:13:00 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
182.735602
5,651
0.798195
00979ec7ca21b0742189445de764ffceb76ee1e5
14,676
py
Python
src-simulator/simulation.py
cake-lab/CremeBrulee
a404f894ec9088106e613b76d6524fc2a7969396
[ "MIT" ]
2
2021-10-04T12:50:35.000Z
2022-02-05T05:27:13.000Z
src-simulator/simulation.py
cake-lab/CremeBrulee
a404f894ec9088106e613b76d6524fc2a7969396
[ "MIT" ]
null
null
null
src-simulator/simulation.py
cake-lab/CremeBrulee
a404f894ec9088106e613b76d6524fc2a7969396
[ "MIT" ]
null
null
null
#!env python import collections import queue import logging import enum import functools import json import time import os import gzip import shutil import random # ONLY USED FOR RANDOM DELAY AT BEGINNING. import numpy as np import argparse import sys sys.path.append("../src-testbed") import events import common imp...
37.248731
177
0.705642
009a2dbbe0214ec71747eacabcb24281564b1346
3,429
py
Python
scripts/script_utils/github.py
uktrade/data-hub-api-actions-test
a72439dfeb34e4179491db42fea290b9c2afadb1
[ "MIT" ]
null
null
null
scripts/script_utils/github.py
uktrade/data-hub-api-actions-test
a72439dfeb34e4179491db42fea290b9c2afadb1
[ "MIT" ]
16
2020-04-01T15:25:35.000Z
2020-04-14T14:07:30.000Z
scripts/script_utils/github.py
uktrade/data-hub-api-actions-test
a72439dfeb34e4179491db42fea290b9c2afadb1
[ "MIT" ]
null
null
null
from gql import gql, Client from gql.transport.requests import RequestsHTTPTransport
27
71
0.539224
009ab7ef9e163b1812e8dc1afeeb044f72fb0def
2,599
py
Python
linux_plex_updater/api/PlexClient.py
amickael/Linux-Plex-Updater
a74dc480d374daf52ee4cc09b40ea34b9e6ffcd4
[ "MIT" ]
null
null
null
linux_plex_updater/api/PlexClient.py
amickael/Linux-Plex-Updater
a74dc480d374daf52ee4cc09b40ea34b9e6ffcd4
[ "MIT" ]
null
null
null
linux_plex_updater/api/PlexClient.py
amickael/Linux-Plex-Updater
a74dc480d374daf52ee4cc09b40ea34b9e6ffcd4
[ "MIT" ]
null
null
null
import os import uuid import logging import requests import linux_plex_updater
31.695122
84
0.543286
009bac159bc1f3df812657b87e17ca1b95154961
1,198
py
Python
2020/02/day02.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
2
2020-12-12T03:18:45.000Z
2021-12-17T00:35:33.000Z
2020/02/day02.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
2020/02/day02.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
from typing import Tuple if __name__ == '__main__': with open('input.txt') as in_file: example = """1-3 a: abcde 1-3 b: cdefg 2-9 c: ccccccccc""" assert verify_passwords_part1(example) == 2 assert verify_passwords_part2(example) == 1 original = in_file.read() part1 = ve...
29.219512
70
0.621035
009cac49c3100954f2aaf474378f8629bcbf4a43
958
py
Python
gdal/perftests/overview.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
3,100
2015-01-02T10:33:40.000Z
2022-03-31T02:06:51.000Z
gdal/perftests/overview.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
3,496
2015-01-06T16:53:30.000Z
2022-03-31T20:18:51.000Z
gdal/perftests/overview.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
2,036
2015-01-08T20:22:12.000Z
2022-03-31T10:24:08.000Z
# SPDX-License-Identifier: MIT # Copyright 2020 Even Rouault from osgeo import gdal import time doit('NONE', 0) doit('NONE', 2) doit('NONE', 4) doit('NONE', 8) doit('ZSTD', 0) doit('ZSTD', 2) doit('ZSTD', 4) doit('ZSTD', 8)
25.891892
81
0.586639
009cef3f12f9811e078621665f13e8a77ed93b2d
1,573
py
Python
py/send_w_receive.py
bdambrosio/rfm69
fd67061310dfe4811be66e94c4e0b7100d15533a
[ "MIT" ]
null
null
null
py/send_w_receive.py
bdambrosio/rfm69
fd67061310dfe4811be66e94c4e0b7100d15533a
[ "MIT" ]
null
null
null
py/send_w_receive.py
bdambrosio/rfm69
fd67061310dfe4811be66e94c4e0b7100d15533a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from RFM69 import Radio, FREQ_915MHZ import datetime import time import RPi.GPIO as GPIO from icecream import ic import logging network_id = 61 node_id = 1 is_rfm_69HW = True try: logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) handler = logging.Stream...
30.843137
111
0.582327
00a076a2c7d2b2d9df48362878968ae26db786c7
515
py
Python
ps4rp/dirs.py
kingcreek/ps4-remote-play
b7dec18ef4ad3252816ba45084cc393cc655509b
[ "Apache-2.0" ]
10
2019-07-01T07:52:02.000Z
2021-12-09T10:00:40.000Z
ps4rp/dirs.py
industriousonesoft/ps4-remote-play
08670e786ef3071849e9413eea3d7924835ea3c7
[ "Apache-2.0" ]
null
null
null
ps4rp/dirs.py
industriousonesoft/ps4-remote-play
08670e786ef3071849e9413eea3d7924835ea3c7
[ "Apache-2.0" ]
4
2019-07-04T05:57:03.000Z
2021-06-22T05:05:17.000Z
# Copyright (c) 2018, Pierre Bourdon <delroth@gmail.com> # SPDX-License-Identifier: Apache-2.0 """ Utility module to locate filesystem directories relevant to ps4rp. Conforms to the XDG spec on Linux. MacOS and Windows support are TODO. """ import functools from xdg import BaseDirectory _XDG_RESOURCE = 'ps4-remote-p...
22.391304
78
0.774757
00a26e4c44c9d4feea59bb1152094ac9fa380a8b
3,053
py
Python
MovieRecommendation.py
Sk70249/Movie-Recommender-pro
522f294dbc74f159bc4d7b0e12b45a8e7ebaf49c
[ "MIT" ]
5
2019-10-04T08:26:09.000Z
2022-01-11T02:39:20.000Z
MovieRecommendation.py
Sk70249/Movie-Recommender-pro
522f294dbc74f159bc4d7b0e12b45a8e7ebaf49c
[ "MIT" ]
2
2019-10-04T08:23:58.000Z
2021-04-08T11:10:12.000Z
MovieRecommendation.py
Sk70249/Movie-Recommender-pro
522f294dbc74f159bc4d7b0e12b45a8e7ebaf49c
[ "MIT" ]
2
2020-10-15T16:59:40.000Z
2021-05-01T05:20:19.000Z
# Python3 code for Movie Recommender pro # Recommendation based on emotion. # Import library for web scrapping. from bs4 import BeautifulSoup as SOUP import re import requests as HTTP # Main Function for scraping # Driver Function if __name__ == '__main__': emotion = input("Enter the emotion: ").title() a ...
29.931373
120
0.615133
00a29b6240cf24c82442f883dedd1272257afe95
203
py
Python
src/core/repository/file/__init__.py
lucassaporetti/car-rental
6e37032df3a399b78ed3d7998a2cb31a2a84d033
[ "MIT" ]
1
2021-02-11T18:45:12.000Z
2021-02-11T18:45:12.000Z
src/core/repository/file/__init__.py
lucassaporetti/car-rental
6e37032df3a399b78ed3d7998a2cb31a2a84d033
[ "MIT" ]
null
null
null
src/core/repository/file/__init__.py
lucassaporetti/car-rental
6e37032df3a399b78ed3d7998a2cb31a2a84d033
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ # # Package: src.core.repository.file __all__ = [ "car_repository", "customer_repository", "employee_repository", "file_db", "file_repository", "rental_repository" ]
15.615385
35
0.689655
00a4a64635433c1cf08ad0404b8152fdfe3d99b0
1,135
py
Python
solutions/014_longest_common_prefix.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/014_longest_common_prefix.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/014_longest_common_prefix.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
# Write a function to find the longest common prefix string amongst an array of strings.
24.673913
89
0.370925
00a4d8f0286421d9f4cf38faa6eb4989443c341b
25
py
Python
web/web/domain/models/__init__.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
web/web/domain/models/__init__.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
web/web/domain/models/__init__.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
# web/models/__init__.py
12.5
24
0.76
00a9b7b80e70b2ade8a74bf8036397114cf2dc47
217
py
Python
app/launcher.py
bcheng004/reddit-recommender
3446ca25b9320a2ca94e4ab1a08056e81edd6d45
[ "MIT" ]
1
2022-01-06T02:21:31.000Z
2022-01-06T02:21:31.000Z
app/launcher.py
bcheng004/reddit-recommender
3446ca25b9320a2ca94e4ab1a08056e81edd6d45
[ "MIT" ]
null
null
null
app/launcher.py
bcheng004/reddit-recommender
3446ca25b9320a2ca94e4ab1a08056e81edd6d45
[ "MIT" ]
null
null
null
import os, confuse config = confuse.Configuration('RecLauncher') config.set_file('config-st.yaml') server_port = config['streamlit']['server_port'].get() os.system(f"streamlit run app.py --server.port {server_port}")
36.166667
62
0.760369
00aa36f60d93942a8663ae4ccba3c3f8760fe3b0
3,142
py
Python
meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
prakhya/luv_sai
91d7d83a3e71b63164f683274dcf2392d64892e7
[ "MIT" ]
16
2017-01-17T15:20:43.000Z
2021-03-19T05:45:14.000Z
meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
prakhya/luv_sai
91d7d83a3e71b63164f683274dcf2392d64892e7
[ "MIT" ]
415
2016-12-20T17:20:45.000Z
2018-09-23T07:59:23.000Z
meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
prakhya/luv_sai
91d7d83a3e71b63164f683274dcf2392d64892e7
[ "MIT" ]
10
2016-12-20T13:24:50.000Z
2021-03-19T05:46:43.000Z
from oeqa.selftest.base import oeSelfTest from oeqa.utils.commands import runCmd, bitbake, get_bb_var, runqemu from oeqa.utils.decorators import testcase import re import os import sys import logging
37.404762
121
0.649905
00aaebf9115bded7e3cd1bd905ff9564040236b8
857
py
Python
tgchatbot/launch.py
osmr/tgchatbot
dfe0768737aa002011c5cd3212a8d203ce230599
[ "MIT" ]
1
2021-09-30T08:46:46.000Z
2021-09-30T08:46:46.000Z
tgchatbot/launch.py
osmr/tgchatbot
dfe0768737aa002011c5cd3212a8d203ce230599
[ "MIT" ]
null
null
null
tgchatbot/launch.py
osmr/tgchatbot
dfe0768737aa002011c5cd3212a8d203ce230599
[ "MIT" ]
null
null
null
""" Telegram AI chatbot launcher. """ __all__ = ['launch_chatbot'] import argparse import logging from aiogram import executor from .telegram_ai_chatbot import TelegramAiChatbot def launch_chatbot(): """ Telegram AI chatbot launch script. """ parser = argparse.ArgumentParser( description...
27.645161
90
0.733956
00aba24aee4c502be06d405dcba8e80da329d725
689
py
Python
apps/website/models/comments.py
shubham-thakare/tech-blog
d83cc9ad685f038e249d8ba6e54b6a2c07159e8b
[ "Apache-2.0" ]
null
null
null
apps/website/models/comments.py
shubham-thakare/tech-blog
d83cc9ad685f038e249d8ba6e54b6a2c07159e8b
[ "Apache-2.0" ]
8
2020-12-30T09:23:00.000Z
2022-03-12T00:53:09.000Z
apps/website/models/comments.py
shubham-thakare/tech-blog
d83cc9ad685f038e249d8ba6e54b6a2c07159e8b
[ "Apache-2.0" ]
null
null
null
from django.db import models from apps.website.models.article import Article STATUS_CHOICES = ( ("SH", "Show"), ("HD", "Hide"), )
27.56
67
0.677794
00ac738a55a3b0ee66e828a8a9c6f48f04fdb967
1,405
py
Python
scrollExample.py
pavitsu/pavit-bank-reconciliation
332426f697302308c2f2a5d8278448b545ce513c
[ "MIT" ]
7
2019-06-06T05:58:20.000Z
2022-02-12T22:12:29.000Z
scrollExample.py
ELOHIMSUPREMES/pavit-bank-reconciliation
332426f697302308c2f2a5d8278448b545ce513c
[ "MIT" ]
1
2019-06-10T04:15:00.000Z
2019-06-10T04:15:00.000Z
scrollExample.py
ELOHIMSUPREMES/pavit-bank-reconciliation
332426f697302308c2f2a5d8278448b545ce513c
[ "MIT" ]
6
2019-06-06T05:57:31.000Z
2021-09-01T21:38:35.000Z
import Tkinter as tk from Tkinter import * master = Tk() scrollbar = Scrollbar(master) scrollbar.pack(side=RIGHT, fill=Y) listbox = Listbox(master, yscrollcommand=scrollbar.set) for i in range(1000): listbox.insert(END, str(i)) listbox.pack(side=LEFT, fill=BOTH) scrollbar.config(command=listbox.yview) mainl...
29.270833
70
0.635587
00ac790a39740dda05fb9e9672e958e8f5b11ee5
2,932
py
Python
projection_layer_CSPN.py
briqr/CSPN
d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346
[ "MIT" ]
17
2018-07-25T05:50:29.000Z
2020-12-06T23:28:25.000Z
projection_layer_CSPN.py
briqr/CSPN
d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346
[ "MIT" ]
1
2019-11-20T16:22:30.000Z
2020-01-31T08:57:25.000Z
projection_layer_CSPN.py
briqr/CSPN
d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346
[ "MIT" ]
5
2018-07-26T03:48:41.000Z
2020-02-25T14:35:22.000Z
# the simplex projection algorithm implemented as a layer, while using the saliency maps to obtain object size estimates import sys sys.path.insert(0,'/home/briq/libs/caffe/python') import caffe import random import numpy as np import scipy.misc import imageio import cv2 import scipy.ndimage as nd import os.path import...
31.869565
142
0.532742
00ad6aed3fc010d49fef7343e6bcdac55f07882a
5,980
py
Python
finpack/fx_lstm.py
esvhd/pytorch_play
61ec38077a363d0ae1ff34c06bbedad0fe687dfd
[ "MIT" ]
null
null
null
finpack/fx_lstm.py
esvhd/pytorch_play
61ec38077a363d0ae1ff34c06bbedad0fe687dfd
[ "MIT" ]
null
null
null
finpack/fx_lstm.py
esvhd/pytorch_play
61ec38077a363d0ae1ff34c06bbedad0fe687dfd
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable import sklearn.preprocessing as skp import data_util as du import training def reshape_rnn(array, inplace=True): # pytorch RNN models uses by default (seq_len, batch, input_dim) array = array.swapaxes(0, 2) array = array.swapaxes(1...
29.9
77
0.580268
00ae1a830abf4f6ac7948a7eb6f5de1ff4cadf89
11,907
py
Python
tests/test_base.py
asteven/python-consul
b51a869fe379f33023eea3cfead55673631aa8f9
[ "MIT" ]
null
null
null
tests/test_base.py
asteven/python-consul
b51a869fe379f33023eea3cfead55673631aa8f9
[ "MIT" ]
null
null
null
tests/test_base.py
asteven/python-consul
b51a869fe379f33023eea3cfead55673631aa8f9
[ "MIT" ]
null
null
null
import collections from contextlib import contextmanager import json import os import pytest import consul.base CB = consul.base.CB Response = consul.base.Response Request = collections.namedtuple( 'Request', ['method', 'path', 'params', 'data']) def _should_support(c): return ( # kv l...
34.02
78
0.549761
00af2de10a0f6f1bbba11dae398ff9abe1b61526
18
py
Python
SearchForDividingCircle/__init__.py
Alladin9393/Search-For-Dividing-Circle
4579be4dadc32cc9d66cca5e303bdde8a24cf99c
[ "MIT" ]
null
null
null
SearchForDividingCircle/__init__.py
Alladin9393/Search-For-Dividing-Circle
4579be4dadc32cc9d66cca5e303bdde8a24cf99c
[ "MIT" ]
null
null
null
SearchForDividingCircle/__init__.py
Alladin9393/Search-For-Dividing-Circle
4579be4dadc32cc9d66cca5e303bdde8a24cf99c
[ "MIT" ]
null
null
null
"""Perceptron."""
9
17
0.555556
00b06443ce4f30563dab2c820a73ba95e0735e30
1,494
py
Python
src/model/JPPNet.py
quangostudio/fastapi
62eec06a2dd7a5a137373fc0d08017cf240f51a7
[ "MIT" ]
null
null
null
src/model/JPPNet.py
quangostudio/fastapi
62eec06a2dd7a5a137373fc0d08017cf240f51a7
[ "MIT" ]
null
null
null
src/model/JPPNet.py
quangostudio/fastapi
62eec06a2dd7a5a137373fc0d08017cf240f51a7
[ "MIT" ]
1
2021-12-09T11:15:41.000Z
2021-12-09T11:15:41.000Z
''' This file implements JPP-Net for human parsing and pose detection. ''' import tensorflow as tf import os from tensorflow.python.framework import graph_util import numpy as np from PIL import Image import matplotlib.pyplot as plt from tensorflow.python.platform import gfile import time
36.439024
113
0.672691
00b33c28d839c301b44414184fae3443558bacd8
1,844
py
Python
src/cogs/core/core.py
vcokltfre/Zeek
551ee948a83ebd85ae4d5211040d8ab24b72ee8a
[ "MIT" ]
null
null
null
src/cogs/core/core.py
vcokltfre/Zeek
551ee948a83ebd85ae4d5211040d8ab24b72ee8a
[ "MIT" ]
null
null
null
src/cogs/core/core.py
vcokltfre/Zeek
551ee948a83ebd85ae4d5211040d8ab24b72ee8a
[ "MIT" ]
null
null
null
from datetime import datetime from os import getenv from discord import Message, RawMessageDeleteEvent from discord.ext import commands from src.internal.bot import Bot
27.939394
82
0.618764
00b3d5c06ee29243ca4a9fe0bb8aa8249de8d46b
1,917
py
Python
nodeconductor/core/routers.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/core/routers.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/core/routers.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
from operator import itemgetter from django.core.urlresolvers import NoReverseMatch from django.utils.datastructures import SortedDict from rest_framework import views from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework.routers import DefaultRouter
34.232143
89
0.594158
00b3f1c60b60bc0a47851e95d914e3160847273f
4,103
py
Python
tests/test_current_environment.py
encukou/arca
edc3e81d27a5c194da10d54402923c27085e0e96
[ "MIT" ]
6
2017-09-25T00:43:01.000Z
2018-09-05T07:59:08.000Z
tests/test_current_environment.py
encukou/arca
edc3e81d27a5c194da10d54402923c27085e0e96
[ "MIT" ]
41
2017-10-05T21:10:11.000Z
2019-09-10T16:48:22.000Z
tests/test_current_environment.py
encukou/arca
edc3e81d27a5c194da10d54402923c27085e0e96
[ "MIT" ]
2
2018-06-08T12:02:04.000Z
2018-10-12T07:13:30.000Z
import itertools import subprocess import sys import pytest from arca import Arca, Task, CurrentEnvironmentBackend from arca.utils import logger from arca.exceptions import BuildError from common import BASE_DIR, RETURN_COLORAMA_VERSION_FUNCTION, SECOND_RETURN_STR_FUNCTION, TEST_UNICODE
34.191667
103
0.724592
00b4e2282b0a936b6e3b29516d90ae7bb4609ae2
4,529
py
Python
tests/perf_test/mind_expression_perf/generate_report.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/perf_test/mind_expression_perf/generate_report.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/perf_test/mind_expression_perf/generate_report.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2021 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...
31.451389
78
0.621329
00b576f4bc9ac7848df5c272c6d7d4dc76746aa2
775
py
Python
Python3/32.longest-valid-parentheses.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/32.longest-valid-parentheses.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/32.longest-valid-parentheses.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=32 lang=python3 # # [32] Longest Valid Parentheses # # @lc code=start # @lc code=end
21.527778
47
0.370323
00b666825d67c1fec0f8663070ddd6e82208c3a0
667
py
Python
webserver/server.py
stklik/PlantMultiController
3b48d2babd49b5e71fdad18084c88c3c5d99e79a
[ "MIT" ]
null
null
null
webserver/server.py
stklik/PlantMultiController
3b48d2babd49b5e71fdad18084c88c3c5d99e79a
[ "MIT" ]
null
null
null
webserver/server.py
stklik/PlantMultiController
3b48d2babd49b5e71fdad18084c88c3c5d99e79a
[ "MIT" ]
null
null
null
from webserver.devices import devices_blueprint from webserver.scheduler import scheduler_blueprint from flask import Flask from jinja2 import Environment, PackageLoader, select_autoescape app = Flask(__name__) app.register_blueprint(devices_blueprint, url_prefix='/devices') app.register_blueprint(scheduler_blueprint,...
30.318182
89
0.770615
00b6cda207b6b419d6e64315af17b58474dfc10a
319
py
Python
isyntax2raw/cli/__init__.py
kkoz/isyntax2raw
84510eced69b44f4180c43d6a7c210de5b0a563d
[ "BSD-3-Clause" ]
6
2020-03-04T11:34:56.000Z
2022-02-03T18:27:18.000Z
isyntax2raw/cli/__init__.py
kkoz/isyntax2raw
84510eced69b44f4180c43d6a7c210de5b0a563d
[ "BSD-3-Clause" ]
18
2020-03-26T21:01:41.000Z
2022-03-04T18:40:20.000Z
isyntax2raw/cli/__init__.py
kkoz/isyntax2raw
84510eced69b44f4180c43d6a7c210de5b0a563d
[ "BSD-3-Clause" ]
12
2019-12-06T02:52:56.000Z
2022-01-05T05:32:33.000Z
# encoding: utf-8 # # Copyright (c) 2017 Glencoe Software, Inc. All rights reserved. # # This software is distributed under the terms described by the LICENCE file # you can find at the root of the distribution bundle. # If the file is missing please request a copy by contacting # support@glencoesoftware.com.
35.444444
77
0.749216
00becf113808671e8badc1c132f6d7eefa376835
13,650
py
Python
geomproc/impsurf.py
WorleyD/Manifold-Model-Mesh-Shape
6bd16fc4d8d29a4066917d5405fb26e28ac823fd
[ "MIT" ]
null
null
null
geomproc/impsurf.py
WorleyD/Manifold-Model-Mesh-Shape
6bd16fc4d8d29a4066917d5405fb26e28ac823fd
[ "MIT" ]
null
null
null
geomproc/impsurf.py
WorleyD/Manifold-Model-Mesh-Shape
6bd16fc4d8d29a4066917d5405fb26e28ac823fd
[ "MIT" ]
null
null
null
# # GeomProc: geometry processing library in python + numpy # # Copyright (c) 2008-2021 Oliver van Kaick <ovankaic@gmail.com> # under the MIT License. # # See file LICENSE.txt for details on the copyright license. # """This module contains the implicit function class of the GeomProc geometry processing library used for...
33.703704
115
0.592894
00bee35043d27f867fc1ff36f793e239ff29b536
5,550
py
Python
cluster_qc/data.py
romeroqe/cluster_qc
109091fc8ce2b3927a9890861175476705984fd3
[ "CC-BY-4.0" ]
3
2020-08-10T16:48:45.000Z
2021-09-17T22:56:43.000Z
cluster_qc/data.py
romeroqe/cluster_qc
109091fc8ce2b3927a9890861175476705984fd3
[ "CC-BY-4.0" ]
null
null
null
cluster_qc/data.py
romeroqe/cluster_qc
109091fc8ce2b3927a9890861175476705984fd3
[ "CC-BY-4.0" ]
null
null
null
import os import csv import subprocess import matplotlib.pyplot as plt from math import ceil from tqdm import tqdm from pandas import read_csv from netCDF4 import Dataset, num2date from multiprocessing import cpu_count, Process from .plot import plot_filtered_profiles_data
44.4
214
0.671171
00bfc4b5c3d5225f29b3444a9081819c3c897810
300
py
Python
tests/test_engines.py
whitegreyblack/Spaceship
84bb4e64753b7957639d100d157adcaadcf0269a
[ "MIT" ]
1
2018-03-29T14:32:14.000Z
2018-03-29T14:32:14.000Z
tests/test_engines.py
whitegreyblack/Spaceship
84bb4e64753b7957639d100d157adcaadcf0269a
[ "MIT" ]
null
null
null
tests/test_engines.py
whitegreyblack/Spaceship
84bb4e64753b7957639d100d157adcaadcf0269a
[ "MIT" ]
null
null
null
from bearlibterminal import terminal as term from spaceship.engine import Engine from spaceship.menus.main import Main if __name__ == "__main__": test_engine_run()
21.428571
44
0.72
00bff7fe5160a73a6f66ed15b5bf44572080d140
550
py
Python
src/models/__init__.py
andrew-chang-dewitt/hoops-api
3530c5127c35742aad84df8d6a5286b9f5ad3608
[ "MIT" ]
null
null
null
src/models/__init__.py
andrew-chang-dewitt/hoops-api
3530c5127c35742aad84df8d6a5286b9f5ad3608
[ "MIT" ]
10
2021-11-02T23:31:56.000Z
2021-12-07T03:41:12.000Z
src/models/__init__.py
andrew-chang-dewitt/hoops
3530c5127c35742aad84df8d6a5286b9f5ad3608
[ "MIT" ]
null
null
null
"""Data model objects.""" from .account import ( AccountChanges, AccountIn, AccountModel, AccountNew, AccountOut, ) from .balance import ( Balance, BalanceModel ) from .envelope import ( EnvelopeChanges, EnvelopeIn, EnvelopeModel, EnvelopeNew, EnvelopeOut, ) from .transa...
14.864865
26
0.654545
00c02dd3ad3122db5ff1b9eccce810f9d95a8cd5
13,414
py
Python
letterparser/generate.py
elifesciences/decision-letter-parser
afe2b72a7d8697e5e8cfec96c531d7bef843908d
[ "MIT" ]
null
null
null
letterparser/generate.py
elifesciences/decision-letter-parser
afe2b72a7d8697e5e8cfec96c531d7bef843908d
[ "MIT" ]
52
2018-11-29T01:45:48.000Z
2022-02-22T18:05:22.000Z
letterparser/generate.py
elifesciences/decision-letter-parser
afe2b72a7d8697e5e8cfec96c531d7bef843908d
[ "MIT" ]
null
null
null
# coding=utf-8 import os import re from collections import OrderedDict from xml.dom import minidom from xml.etree import ElementTree from xml.etree.ElementTree import Element, SubElement from letterparser import build, parse, utils, zip_lib # max level of recursion adding content blocks supported MAX_LEVEL = 5 def...
38.107955
95
0.645967
00c1b07c733730848e466e75f75243d53eb2c0e3
188
py
Python
src/template_specialize/__main__.py
joshuahlang/template-specialize
79ae388363a1dbb623bd8e455f6ac4a392e9857d
[ "MIT" ]
null
null
null
src/template_specialize/__main__.py
joshuahlang/template-specialize
79ae388363a1dbb623bd8e455f6ac4a392e9857d
[ "MIT" ]
null
null
null
src/template_specialize/__main__.py
joshuahlang/template-specialize
79ae388363a1dbb623bd8e455f6ac4a392e9857d
[ "MIT" ]
null
null
null
# Licensed under the MIT License # https://github.com/craigahobbs/template-specialize/blob/master/LICENSE from .main import main if __name__ == '__main__': main() # pragma: no cover
23.5
72
0.739362
00c1ecc4db17f3c2abd98947419b87718a9baa79
2,279
py
Python
autoremovetorrents/torrent.py
Nuevo009/autoremove-torrents
e476bb6c4796dc4c314f7ca04aca33a6946c7846
[ "MIT" ]
null
null
null
autoremovetorrents/torrent.py
Nuevo009/autoremove-torrents
e476bb6c4796dc4c314f7ca04aca33a6946c7846
[ "MIT" ]
null
null
null
autoremovetorrents/torrent.py
Nuevo009/autoremove-torrents
e476bb6c4796dc4c314f7ca04aca33a6946c7846
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- from .compatibility.urlparse_ import urlparse_ from .util.convertbytes import convert_bytes from .util.convertseconds import convert_seconds from .util.convertspeed import convert_speed from .util.converttimestamp import convert_timestamp
39.982456
102
0.528741
00c4256e4d4b9583cbfff878b9b1a2091fbf0f52
2,517
py
Python
scripts/tf1_export_segmetnation.py
LaudateCorpus1/edgeai-modelzoo
1bc9e1ae1cb4822c41cd82dda19bb5d6efcae7a8
[ "Apache-2.0" ]
5
2021-07-31T16:42:35.000Z
2022-01-24T09:52:12.000Z
scripts/tf1_export_segmetnation.py
LaudateCorpus1/edgeai-modelzoo
1bc9e1ae1cb4822c41cd82dda19bb5d6efcae7a8
[ "Apache-2.0" ]
3
2021-11-16T08:22:55.000Z
2022-01-06T05:07:35.000Z
scripts/tf1_export_segmetnation.py
LaudateCorpus1/edgeai-modelzoo
1bc9e1ae1cb4822c41cd82dda19bb5d6efcae7a8
[ "Apache-2.0" ]
3
2021-11-18T01:42:10.000Z
2022-01-20T05:19:29.000Z
# Copyright (c) 2018-2021, Texas Instruments # All Rights Reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions...
53.553191
139
0.775129
00c5bc3f11e8ea32ada8aa82d5ffc7623d138763
608
py
Python
Model_Free_L2O/L2O-Swarm/src/loss.py
JohnZ03/Open-L2O
06d3860aa9446be2b61368c6ef357a462982db91
[ "MIT" ]
112
2021-03-06T18:30:29.000Z
2022-03-17T12:39:27.000Z
Model_Free_L2O/L2O-Swarm/src/loss.py
kalman36912/Open-L2O
06d3860aa9446be2b61368c6ef357a462982db91
[ "MIT" ]
1
2021-08-10T02:11:53.000Z
2021-08-10T02:11:53.000Z
Model_Free_L2O/L2O-Swarm/src/loss.py
kalman36912/Open-L2O
06d3860aa9446be2b61368c6ef357a462982db91
[ "MIT" ]
24
2021-03-26T14:46:47.000Z
2022-02-18T14:15:06.000Z
import pickle import numpy as np import matplotlib.pyplot as plt with open('./quadratic/eval_record.pickle','rb') as loss: data = pickle.load(loss) print('Mat_record',len(data['Mat_record'])) #print('bias',data['inter_gradient_record']) #print('constant',data['intra_record']) with open('./quadratic/evaluate_reco...
30.4
62
0.712171
00c68792af1f7f0cc1561cea82f23fa55522c3c8
4,915
py
Python
workspace/tools/data_maker_multi_plane.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
workspace/tools/data_maker_multi_plane.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
workspace/tools/data_maker_multi_plane.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
from autolens.data import ccd from autolens.data.array import grids from autolens.lens import ray_tracing from autolens.model.galaxy import galaxy as g from autolens.model.profiles import light_profiles as lp from autolens.model.profiles import mass_profiles as mp from autolens.lens.plotters import ray_tracing_plotters...
59.216867
119
0.698271
00c7a204bdfb47a3865e131d3affcf1f44535d58
1,049
py
Python
tools/similarity.py
bruinxiong/gnerf
5a6f1141a5b87dac66a755c7238263da85934d72
[ "MIT" ]
137
2021-07-25T03:48:07.000Z
2022-03-31T17:52:28.000Z
tools/similarity.py
bruinxiong/gnerf
5a6f1141a5b87dac66a755c7238263da85934d72
[ "MIT" ]
4
2021-09-08T03:21:19.000Z
2022-03-30T07:53:31.000Z
tools/similarity.py
bruinxiong/gnerf
5a6f1141a5b87dac66a755c7238263da85934d72
[ "MIT" ]
10
2021-11-16T11:31:55.000Z
2022-03-23T00:59:35.000Z
import torch from kornia.losses import ssim as dssim from lpips_pytorch import LPIPS lpips_fn = LPIPS(net_type='alex', version='0.1') lpips_fn.eval()
28.351351
81
0.672069
00c82fd941990333d113aec7a4ff69f850dccbbb
8,422
py
Python
cfc_app/bill_detail.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
44
2020-10-19T13:06:10.000Z
2022-01-23T10:56:31.000Z
cfc_app/bill_detail.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
111
2020-10-20T22:12:58.000Z
2022-03-28T00:25:13.000Z
cfc_app/bill_detail.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
31
2021-02-08T22:32:37.000Z
2022-03-11T10:57:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Bill details for extract_files Written by Tony Pearson, IBM, 2020 Licensed under Apache 2.0, see LICENSE for details """ # System imports import datetime as DT import logging import re import sys from urllib.parse import urlparse # Django and other third-party impor...
36.617391
79
0.599145
00c9aa9dfbb43b837e29a51f07d81915a2932e4c
1,169
py
Python
crawler_exercises/login_and_post_douban.py
Andrewpqc/Python_Ex
6f1770f2c209d4510696bcbca92ee9f31b9d169b
[ "MIT" ]
null
null
null
crawler_exercises/login_and_post_douban.py
Andrewpqc/Python_Ex
6f1770f2c209d4510696bcbca92ee9f31b9d169b
[ "MIT" ]
null
null
null
crawler_exercises/login_and_post_douban.py
Andrewpqc/Python_Ex
6f1770f2c209d4510696bcbca92ee9f31b9d169b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from time import sleep driver=webdriver.PhantomJS(executable_path="/usr/loc...
34.382353
70
0.747648
00ca24947cee8a1a2439a79d5466fe74729b844c
10,276
py
Python
Backend/Common/GenPCCToBase.py
Errare-humanum-est/HeteroGen
600a7bde441cc1365a465746e15564bd8de8fc37
[ "MIT" ]
1
2022-01-12T15:52:07.000Z
2022-01-12T15:52:07.000Z
Backend/Common/GenPCCToBase.py
Errare-humanum-est/HeteroGen
600a7bde441cc1365a465746e15564bd8de8fc37
[ "MIT" ]
null
null
null
Backend/Common/GenPCCToBase.py
Errare-humanum-est/HeteroGen
600a7bde441cc1365a465746e15564bd8de8fc37
[ "MIT" ]
1
2021-12-14T18:03:37.000Z
2021-12-14T18:03:37.000Z
# Copyright (c) 2021. Nicolai Oswald # Copyright (c) 2021. University of Edinburgh # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above co...
35.680556
104
0.681004
00caee32f6fdb9305d9e25ebb1e626c7dfcd69d9
78
py
Python
angel/__init__.py
GiulioRossetti/ANGEL
63d29e90756f7c656c56170ca247a65c9667d416
[ "BSD-2-Clause" ]
3
2020-06-16T07:43:24.000Z
2021-12-28T19:02:56.000Z
angel/__init__.py
GiulioRossetti/ANGEL
63d29e90756f7c656c56170ca247a65c9667d416
[ "BSD-2-Clause" ]
null
null
null
angel/__init__.py
GiulioRossetti/ANGEL
63d29e90756f7c656c56170ca247a65c9667d416
[ "BSD-2-Clause" ]
null
null
null
from angel.alg.iAngel import Angel from angel.alg.iArchAngel import ArchAngel
26
42
0.846154
00ccbb7313e05ec04674c15184318d056bc5b17c
406
py
Python
setup.py
DSAutomations/py-parsehub
571a024a5bfff4521bd3076c27bbb29f54b10cfb
[ "BSD-2-Clause" ]
40
2015-04-19T16:00:29.000Z
2022-02-08T12:16:01.000Z
setup.py
DSAutomations/py-parsehub
571a024a5bfff4521bd3076c27bbb29f54b10cfb
[ "BSD-2-Clause" ]
4
2015-04-15T12:02:19.000Z
2021-09-14T10:52:59.000Z
setup.py
DSAutomations/py-parsehub
571a024a5bfff4521bd3076c27bbb29f54b10cfb
[ "BSD-2-Clause" ]
27
2016-01-06T15:40:52.000Z
2022-02-25T22:57:51.000Z
from setuptools import find_packages, setup setup(name="py-parsehub", version="0.1", description="Python3 module for interaction with Parsehub API", author="Viktor Hronec", author_email='zamr666@gmail.com', platforms=["linux"], license="BSD", url="https://github.com/hronecvikt...
31.230769
69
0.667488
00cd526f4a00619cb396b7855857ea58ac675dea
15,522
py
Python
test/ServerTest.py
wmde/catgraph-client-python
69f87d86f809bb57b9d31e857e47f10bd370d703
[ "Unlicense" ]
1
2016-07-01T20:58:48.000Z
2016-07-01T20:58:48.000Z
test/ServerTest.py
wmde/catgraph-client-python
69f87d86f809bb57b9d31e857e47f10bd370d703
[ "Unlicense" ]
null
null
null
test/ServerTest.py
wmde/catgraph-client-python
69f87d86f809bb57b9d31e857e47f10bd370d703
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 import unittest import os import tempfile from TestBase import * from gp.client import * TestGraphName = 'test' + str(os.getpid()) TestFilePrefix = '/tmp/gptest-' + str(os.getpid()) #TODO: (optionally) start server instance here! let it die when the test script dies. #TODO...
32.136646
113
0.587811
00ce2640675b7e886161417a720ebfe10b48cecc
1,540
py
Python
unittest_reinvent/diversity_filter_tests/test_no_filter_output_scores.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
null
null
null
unittest_reinvent/diversity_filter_tests/test_no_filter_output_scores.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-01T23:19:42.000Z
2021-11-22T23:41:39.000Z
unittest_reinvent/diversity_filter_tests/test_no_filter_output_scores.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-18T13:14:22.000Z
2022-03-16T07:52:57.000Z
from reinvent_scoring.scoring.diversity_filters.curriculum_learning import DiversityFilterParameters from reinvent_scoring.scoring.diversity_filters.curriculum_learning.diversity_filter import DiversityFilter from reinvent_scoring.scoring.diversity_filters.curriculum_learning.update_diversity_filter_dto import \ Up...
53.103448
113
0.755195
00ceda65bf01a3848697fea8991c58a290309714
6,235
py
Python
test.py
bentotten/irc
53741ba6579e4d5427fd8a7ffbe960743465184c
[ "MIT" ]
null
null
null
test.py
bentotten/irc
53741ba6579e4d5427fd8a7ffbe960743465184c
[ "MIT" ]
null
null
null
test.py
bentotten/irc
53741ba6579e4d5427fd8a7ffbe960743465184c
[ "MIT" ]
null
null
null
import copy # Saves room and client list initialMsg = ':JACK! {0.0.0.0, 5000} PRIVMSG #: /JOIN #\n' # {IP,port} msg = "PRIVMSG #cats: Hello World! I'm back!\n" qmsg = "PRIVMSG #cats: /part #cats" client = "('127.0.0.1', 41704)" message = {'nick': '', 'client': '', 'chan': '', 'cmd': '', 'msg': ''} test = ":BEN! {('127...
34.832402
79
0.520609
00cf583ca774d931883134fc21319d8e56471dc5
1,121
py
Python
01/128.py
c344081/learning_algorithm
cb929040390015a8309588b2e9fc0cf5d9b86726
[ "MIT" ]
null
null
null
01/128.py
c344081/learning_algorithm
cb929040390015a8309588b2e9fc0cf5d9b86726
[ "MIT" ]
null
null
null
01/128.py
c344081/learning_algorithm
cb929040390015a8309588b2e9fc0cf5d9b86726
[ "MIT" ]
null
null
null
''' Longest Consecutive Sequence Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4. Your algorithm should run in O(n) complexity. ''' nums = [10...
26.069767
98
0.53256
00d16a3acb91e37537d431d492d21db547575a94
3,062
py
Python
scripts/download_external_data.py
TomAugspurger/modis
eb8db853ce25cb7bb3bc03d3c6f1bcd181e083a0
[ "Apache-2.0" ]
null
null
null
scripts/download_external_data.py
TomAugspurger/modis
eb8db853ce25cb7bb3bc03d3c6f1bcd181e083a0
[ "Apache-2.0" ]
null
null
null
scripts/download_external_data.py
TomAugspurger/modis
eb8db853ce25cb7bb3bc03d3c6f1bcd181e083a0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys from azure.storage.blob import BlobServiceClient EXTERNAL_DATA_FILE_NAMES = [ "MCD15A2H.A2022025.h01v11.061.2022035062702.hdf", "MCD15A3H.A2022033.h12v10.061.2022039062215.hdf", "MCD43A4.A2022032.h14v10.061.2022041051831.hdf", "MCD64A1.A2021335.h10v06.061.20...
39.766234
79
0.725996
00d1f91492275ed8dc0b61d1536d8209b92874ca
130
py
Python
define.py
qinflying/kivy_2048
f3688b95382806928ea28acc8491202454cf209d
[ "MIT" ]
1
2021-05-06T08:55:57.000Z
2021-05-06T08:55:57.000Z
define.py
qinflying/kivy_2048
f3688b95382806928ea28acc8491202454cf209d
[ "MIT" ]
null
null
null
define.py
qinflying/kivy_2048
f3688b95382806928ea28acc8491202454cf209d
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- # # FONT_COMMON = "Roboto" FONT_HEI = "FontHei" # START_MENU = "startmenu" PLAY_MENU = "playmenu"
10.833333
24
0.653846
00d225d138192a706fd78ddd95c9d1d31baca184
22,419
py
Python
vmware_nsx/tests/unit/services/lbaas/test_octavia_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/services/lbaas/test_octavia_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/services/lbaas/test_octavia_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
45.940574
78
0.602837
00d2c3ac6a10efe25f9aa0a51d574d4fae13f7b0
28,055
py
Python
src/gen2/node_provider.py
project-codeflare/gen2-connector
fc7e0766f75a88adb9c6b3c1c28dd42b8a68c466
[ "Apache-2.0" ]
2
2021-07-08T11:20:54.000Z
2021-11-25T19:44:48.000Z
src/gen2/node_provider.py
project-codeflare/gen2-connector
fc7e0766f75a88adb9c6b3c1c28dd42b8a68c466
[ "Apache-2.0" ]
null
null
null
src/gen2/node_provider.py
project-codeflare/gen2-connector
fc7e0766f75a88adb9c6b3c1c28dd42b8a68c466
[ "Apache-2.0" ]
null
null
null
# # (C) Copyright IBM Corp. 2021 # # 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 writi...
36.529948
124
0.562431
00d429eeb206e1ec171b7d2d336c0e24af713f91
416
py
Python
alarme/extras/sensor/web/views/home.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
null
null
null
alarme/extras/sensor/web/views/home.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
1
2017-02-04T13:03:05.000Z
2017-02-04T13:03:05.000Z
alarme/extras/sensor/web/views/home.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
null
null
null
from aiohttp.web import HTTPFound from .core import CoreView from ..util import login_required, handle_exception
20.8
70
0.692308
00d4b01d2f66206d2c3fb95ea307d72cf49bb8d1
8,723
py
Python
Cut-Paste/test_recognition.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
13
2021-04-07T15:39:24.000Z
2022-03-08T19:01:20.000Z
Cut-Paste/test_recognition.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
1
2021-11-13T17:18:03.000Z
2021-12-03T02:05:33.000Z
Cut-Paste/test_recognition.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
1
2021-04-18T18:14:51.000Z
2021-04-18T18:14:51.000Z
import os import pathlib import argparse import glob import json import torch, torchvision import numpy as np import detectron2 from detectron2.data import build_detection_test_loader from detectron2.data.datasets import register_coco_instances from detectron2.data.dataset_mapper import DatasetMapper from detectron2.c...
57.388158
213
0.741144
00d5c06169e029f19ff54dc53dda05af8a89e021
917
py
Python
formly/forms/widgets.py
coloradocarlos/formly
88ee816835687c7ab8c80fe78f3e32c9e1761a33
[ "BSD-3-Clause" ]
34
2015-02-08T15:07:44.000Z
2021-07-04T05:05:37.000Z
formly/forms/widgets.py
coloradocarlos/formly
88ee816835687c7ab8c80fe78f3e32c9e1761a33
[ "BSD-3-Clause" ]
30
2015-01-21T15:39:00.000Z
2021-07-04T05:12:03.000Z
formly/forms/widgets.py
coloradocarlos/formly
88ee816835687c7ab8c80fe78f3e32c9e1761a33
[ "BSD-3-Clause" ]
10
2015-04-22T13:13:27.000Z
2021-06-08T19:53:36.000Z
from django.forms import TextInput from django.forms.widgets import MultiWidget, RadioSelect from django.template.loader import render_to_string
26.970588
62
0.676118
00d65dd21a980b6f0ff407c6a07204a07dbf4c01
3,218
py
Python
extras/eddn_log.py
starcraftman/cogBot
1f3f5f03c95fe135cce68458c39c50b7fe3471ed
[ "BSD-3-Clause" ]
null
null
null
extras/eddn_log.py
starcraftman/cogBot
1f3f5f03c95fe135cce68458c39c50b7fe3471ed
[ "BSD-3-Clause" ]
21
2021-05-05T00:02:06.000Z
2021-05-05T00:15:22.000Z
extras/eddn_log.py
starcraftman/cogBot
1f3f5f03c95fe135cce68458c39c50b7fe3471ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A simple logger to look at eddn messages passing. Terminate with a simple Ctlr+C """ import os import sys import time import zlib import argparse import zmq try: import rapidjson as json except ImportError: import json EDDN_ADDR = "tcp://eddn.edcd.io:9500" T...
28.990991
89
0.60348
00d67cde2942d6c78100b5599569ddd868d1f127
401
py
Python
icenumerics/__init__.py
aortiza/icenumerics
983bfff616f5bedee0ccefd0f9fad10e50e23e83
[ "MIT" ]
null
null
null
icenumerics/__init__.py
aortiza/icenumerics
983bfff616f5bedee0ccefd0f9fad10e50e23e83
[ "MIT" ]
8
2019-10-04T09:04:23.000Z
2021-09-29T18:01:21.000Z
icenumerics/__init__.py
aortiza/icenumerics
983bfff616f5bedee0ccefd0f9fad10e50e23e83
[ "MIT" ]
1
2019-10-10T10:25:43.000Z
2019-10-10T10:25:43.000Z
from pint import UnitRegistry import sys try: from .magcolloids import magcolloids as mc except ImportError as e: try: import magcolloids as mc except ImportError as e: raise ImportError ureg = mc.ureg from icenumerics.spins import * from icenumerics.colloidalice import * from icenumer...
20.05
46
0.740648
00dc801c3e992608515714962e0e20d6d05ab2d5
726
py
Python
django/BankAccount/base/migrations/0003_auto_20220309_2048.py
akrysmalski/BankAccount
b1cf04cdadeea8de1e5291bac5c5103f9d64e4c2
[ "MIT" ]
null
null
null
django/BankAccount/base/migrations/0003_auto_20220309_2048.py
akrysmalski/BankAccount
b1cf04cdadeea8de1e5291bac5c5103f9d64e4c2
[ "MIT" ]
null
null
null
django/BankAccount/base/migrations/0003_auto_20220309_2048.py
akrysmalski/BankAccount
b1cf04cdadeea8de1e5291bac5c5103f9d64e4c2
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2022-03-09 19:48 from django.db import migrations, models
25.928571
93
0.585399
00de9e44892a2b37974fe82a134ffd9b85896e27
385
py
Python
pdfpng.py
FearlessDoggo21/scripts
a4109e2a6d2749ef9c69017dfb1afcd0096d75a3
[ "MIT" ]
null
null
null
pdfpng.py
FearlessDoggo21/scripts
a4109e2a6d2749ef9c69017dfb1afcd0096d75a3
[ "MIT" ]
null
null
null
pdfpng.py
FearlessDoggo21/scripts
a4109e2a6d2749ef9c69017dfb1afcd0096d75a3
[ "MIT" ]
null
null
null
#!/bin/python3 # pdfpng - convert pdf to png # Copyright (C) 2022 ArcNyxx # see LICENCE file for licensing information import sys import fitz as pdf if len(sys.argv) != 2: print("usage: pdfpng [file]") sys.exit() doc = pdf.open(sys.argv[1]) for num, page in enumerate(doc): pixmap = page.get_pixmap() ...
21.388889
56
0.65974
00df37b22395a33b6c6f567c076203eca3ac4108
287
py
Python
tests/utils.py
sjamgade/python-socks
e9c7718b104c382ff381f059705d1e929ec63f22
[ "Apache-2.0" ]
158
2018-07-09T07:54:41.000Z
2022-03-06T17:34:08.000Z
tests/utils.py
sjamgade/python-socks
e9c7718b104c382ff381f059705d1e929ec63f22
[ "Apache-2.0" ]
25
2018-07-18T04:19:15.000Z
2022-02-21T15:26:48.000Z
tests/utils.py
sjamgade/python-socks
e9c7718b104c382ff381f059705d1e929ec63f22
[ "Apache-2.0" ]
19
2018-07-25T18:39:22.000Z
2022-03-15T03:43:47.000Z
import socket
19.133333
57
0.543554
00e0eb2ec1ac8e748bc7e992807736ed2ed3c6df
3,387
py
Python
main.py
bladesz/Hill
04443ff122490544043418a94acb1f0c5f54cfe8
[ "BSD-3-Clause" ]
null
null
null
main.py
bladesz/Hill
04443ff122490544043418a94acb1f0c5f54cfe8
[ "BSD-3-Clause" ]
null
null
null
main.py
bladesz/Hill
04443ff122490544043418a94acb1f0c5f54cfe8
[ "BSD-3-Clause" ]
null
null
null
import gym ''' env = gym.make('CartPole-v0') values = env.reset() print(values) for _ in range(1000): env.render() observation, reward, done, info = env.step(env.action_space.sample()) # take a random action env.close() ''' import multiprocessing import os import pickle import gym import n...
31.073394
98
0.607913
00e1a3dc3b3a1c20f6037788df47098e679b8083
447
py
Python
models/blog.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
2
2020-01-15T07:18:11.000Z
2020-01-29T16:36:20.000Z
models/blog.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
2
2019-11-19T08:50:11.000Z
2019-12-29T07:15:59.000Z
models/blog.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
null
null
null
from extensions import db from sqlalchemy.dialects.postgresql import TSVECTOR
27.9375
79
0.689038
00e28d09cb56d38b9bc6d2b6233d2f273f6e07b6
10,630
py
Python
src/singlePendulumCart/identification_clean.py
BystrickyK/SINDy
f5b887d230079ffd60eacfe0221b47d1c288342e
[ "MIT" ]
1
2021-04-12T18:22:54.000Z
2021-04-12T18:22:54.000Z
src/singlePendulumCart/identification_clean.py
BystrickyK/SINDy
f5b887d230079ffd60eacfe0221b47d1c288342e
[ "MIT" ]
9
2021-03-03T14:34:41.000Z
2021-05-13T14:03:08.000Z
src/singlePendulumCart/identification_clean.py
BystrickyK/SINDy
f5b887d230079ffd60eacfe0221b47d1c288342e
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from src.utils.function_libraries import * from src.utils.data_utils import * from src.utils.identification.PI_Identifier import PI_Identifier from src.utils.solution_processing import * from differentiation.spectral_derivative import compute_spectral_derivative from ...
37.964286
109
0.689087
00e59398a209f7aa44233f0700c18b55447d1e99
1,978
py
Python
fedlearner/scheduler/scheduler_service.py
codemonkey-ll/fedlearner
26f48fd64e7114dd84baaaf9aa5cc6ff18073de7
[ "Apache-2.0" ]
2
2020-01-31T13:08:15.000Z
2020-03-03T06:52:04.000Z
fedlearner/scheduler/scheduler_service.py
codemonkey-ll/fedlearner
26f48fd64e7114dd84baaaf9aa5cc6ff18073de7
[ "Apache-2.0" ]
null
null
null
fedlearner/scheduler/scheduler_service.py
codemonkey-ll/fedlearner
26f48fd64e7114dd84baaaf9aa5cc6ff18073de7
[ "Apache-2.0" ]
1
2020-04-09T07:50:55.000Z
2020-04-09T07:50:55.000Z
# Copyright 2020 The FedLearner Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.320755
77
0.712336
00e5b4dea6dbf4c8dc2360827ea892454cd7efc3
485
py
Python
src/test/test_FPGAVisual.py
ComputerArchitectureGroupPWr/Simulio
652a56138388d436ef1cd3f36eb2e288cedfbaac
[ "MIT" ]
null
null
null
src/test/test_FPGAVisual.py
ComputerArchitectureGroupPWr/Simulio
652a56138388d436ef1cd3f36eb2e288cedfbaac
[ "MIT" ]
null
null
null
src/test/test_FPGAVisual.py
ComputerArchitectureGroupPWr/Simulio
652a56138388d436ef1cd3f36eb2e288cedfbaac
[ "MIT" ]
null
null
null
from unittest import TestCase from src.main.fpgavisio import FPGAVisual __author__ = 'pawel'
34.642857
86
0.738144
00e6703921ba353cbbd96467c0dd186d2b4f30b5
1,181
py
Python
dbms/util.py
CanburakTumer/youtube_examples
ef41c88a8d8997628d54c4f7ef75c40e0794e544
[ "Unlicense" ]
null
null
null
dbms/util.py
CanburakTumer/youtube_examples
ef41c88a8d8997628d54c4f7ef75c40e0794e544
[ "Unlicense" ]
null
null
null
dbms/util.py
CanburakTumer/youtube_examples
ef41c88a8d8997628d54c4f7ef75c40e0794e544
[ "Unlicense" ]
null
null
null
import logging import os import json from errors import throw_input_data_is_corrupted, throw_table_does_not_exist DATA_FILE_SUFFIX = '.db'
28.804878
76
0.731583
00e67f3fabec25820cbc1be39ac53101bcfc4516
18,289
py
Python
pythonql/Executor.py
hi117/pythonql
c2385d62d9e3dc3dc2f4b71ea1a57bc75ccb1510
[ "MIT" ]
null
null
null
pythonql/Executor.py
hi117/pythonql
c2385d62d9e3dc3dc2f4b71ea1a57bc75ccb1510
[ "MIT" ]
null
null
null
pythonql/Executor.py
hi117/pythonql
c2385d62d9e3dc3dc2f4b71ea1a57bc75ccb1510
[ "MIT" ]
null
null
null
from pythonql.algebra.operator import plan_from_list from pythonql.algebra.operators import * from pythonql.PQTuple import PQTuple from pythonql.helpers import flatten from pythonql.Rewriter import rewrite from pythonql.debug import Debug import json import types # isList predicate for path expressions # isMap predic...
29.593851
85
0.623107
00e761f9b3cd6f756208f3466b6eb1160c399573
1,326
py
Python
test/test_make_df.py
ryw89/pg2pd
4a4a472c59f4526d8480442b472c4b28fb8fac65
[ "MIT" ]
2
2022-01-09T04:27:46.000Z
2022-01-09T04:27:51.000Z
test/test_make_df.py
ryw89/pg2pd
4a4a472c59f4526d8480442b472c4b28fb8fac65
[ "MIT" ]
null
null
null
test/test_make_df.py
ryw89/pg2pd
4a4a472c59f4526d8480442b472c4b28fb8fac65
[ "MIT" ]
null
null
null
import tempfile import pandas as pd from pg2pd import Pg2Pd def test_make_df_1(pg_conn): """Test of main Postgres binary data to Pandas dataframe pipeline. This tests an integer and varchar. """ cursor = pg_conn.cursor() # Copy binary data to a tempfile path = tempfile.mkstemp()[1] que...
26
79
0.612368
00e89bcc415a273471b412bfd295e91b2fca62f4
444
py
Python
NewsClassificator/reader.py
levkovalenko/pm_task_2018
8bffa5327dc59b1640d922c4faa7381eb4255ead
[ "Apache-2.0" ]
null
null
null
NewsClassificator/reader.py
levkovalenko/pm_task_2018
8bffa5327dc59b1640d922c4faa7381eb4255ead
[ "Apache-2.0" ]
null
null
null
NewsClassificator/reader.py
levkovalenko/pm_task_2018
8bffa5327dc59b1640d922c4faa7381eb4255ead
[ "Apache-2.0" ]
null
null
null
import asyncio from NewsClassificator.news import News
23.368421
58
0.653153
00ea0046e55ca33ff7a9bae1c1fae1d608a0a97c
7,096
py
Python
recsys/models.py
JustinL42/django-polls
51a916281372d21541aa53d03c1ddbe1aab4c0e6
[ "FSFAP" ]
null
null
null
recsys/models.py
JustinL42/django-polls
51a916281372d21541aa53d03c1ddbe1aab4c0e6
[ "FSFAP" ]
null
null
null
recsys/models.py
JustinL42/django-polls
51a916281372d21541aa53d03c1ddbe1aab4c0e6
[ "FSFAP" ]
null
null
null
from django.db import models from django.conf import settings from django.contrib.postgres.search import SearchVectorField from django.contrib.auth.models import AbstractUser from django.utils import timezone # BOOK-RELATED MODELS # USER-RELATED MODELS
30.454936
98
0.63867
00ec1d5e92117f061ed7a275ce446c9e2aacdcf9
2,086
py
Python
leetcode/Tree & Recursion/114. Flatten Binary Tree to Linked List.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
23
2019-08-02T12:02:47.000Z
2022-03-09T15:24:16.000Z
leetcode/Tree & Recursion/114. Flatten Binary Tree to Linked List.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
null
null
null
leetcode/Tree & Recursion/114. Flatten Binary Tree to Linked List.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
21
2019-12-22T04:47:32.000Z
2021-09-12T14:29:35.000Z
""" Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 \ 5 \ 6 Solution: 1. Recursion (in place) Flatten the left subtree ...
23.177778
122
0.522531
00ec71aabeae4d83f57e325e1a2579699f7f78fa
7,090
py
Python
tests/unit/testTokenClientCredentialsGrant.py
Abestanis/TwistedOAuth2
fc1d9401009610084189afe48bd8df4db933c825
[ "MIT" ]
3
2017-12-07T18:06:42.000Z
2018-11-09T10:31:45.000Z
tests/unit/testTokenClientCredentialsGrant.py
Abestanis/TwistedOAuth2
fc1d9401009610084189afe48bd8df4db933c825
[ "MIT" ]
1
2018-10-15T23:55:15.000Z
2018-10-16T03:37:10.000Z
tests/unit/testTokenClientCredentialsGrant.py
Abestanis/TwistedOAuth2
fc1d9401009610084189afe48bd8df4db933c825
[ "MIT" ]
1
2017-12-11T16:20:39.000Z
2017-12-11T16:20:39.000Z
""" Tests for the client credentials grant flow. """ from txoauth2.clients import PublicClient from txoauth2.token import TokenResource from txoauth2.errors import UnauthorizedClientError, MissingParameterError, \ MultipleParameterError, InvalidScopeError from tests import getTestPasswordClient from tests.unit.te...
50.642857
100
0.675599
00ed0e41f58d272b4f5fbde370d7cd8820dcbbe0
1,267
py
Python
lambda/service_call.py
binxio/blog-lambda-python-37-runtime
bd4c228f0aee64a0ae5d5a6287c530be834fe930
[ "Apache-2.0" ]
null
null
null
lambda/service_call.py
binxio/blog-lambda-python-37-runtime
bd4c228f0aee64a0ae5d5a6287c530be834fe930
[ "Apache-2.0" ]
null
null
null
lambda/service_call.py
binxio/blog-lambda-python-37-runtime
bd4c228f0aee64a0ae5d5a6287c530be834fe930
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import requests from requests.auth import HTTPBasicAuth from dataclasses import dataclass, asdict from mashumaro import DataClassJSONMixin def say_hello(msg: Message) -> dict: resp = requests.post( 'https://httpbin.org/post', json=msg.to_dict(), auth=HT...
25.857143
83
0.652723
00ed870b59b7390a8f6e71f46576a9bd3120a811
16,269
py
Python
nexussdk/storages.py
hygt/nexus-python-sdk
3a625bdd218e164fbc6ad8d936357cd6ede19a98
[ "Apache-2.0" ]
null
null
null
nexussdk/storages.py
hygt/nexus-python-sdk
3a625bdd218e164fbc6ad8d936357cd6ede19a98
[ "Apache-2.0" ]
null
null
null
nexussdk/storages.py
hygt/nexus-python-sdk
3a625bdd218e164fbc6ad8d936357cd6ede19a98
[ "Apache-2.0" ]
null
null
null
""" This module provides a Python interface for operations on Storages. It is part of the Knowledge Graph API of Blue Brain Nexus v1. https://bluebrainnexus.io/docs/api/1.1/kg/kg-storages-api.html """ from typing import Dict, Optional from urllib.parse import quote_plus as url_encode from nexussdk.utils.http import h...
43.268617
117
0.683631
00eefaf9c82caf736aaf1e0c4ffdc3e845e4fffb
2,375
py
Python
scTenifold/__main__.py
qwerty239qwe/scTenifoldpy
655787d20c6b9d7176c33752c06d778a62487f54
[ "MIT" ]
3
2021-11-18T05:49:13.000Z
2022-02-12T11:21:52.000Z
scTenifold/__main__.py
qwerty239qwe/scTenifoldpy
655787d20c6b9d7176c33752c06d778a62487f54
[ "MIT" ]
4
2021-11-16T16:28:59.000Z
2022-01-28T16:30:56.000Z
scTenifold/__main__.py
qwerty239qwe/scTenifoldpy
655787d20c6b9d7176c33752c06d778a62487f54
[ "MIT" ]
2
2021-12-11T07:09:38.000Z
2022-02-12T11:21:53.000Z
import typer from pathlib import Path import yaml from scTenifold import scTenifoldNet, scTenifoldKnk app = typer.Typer() if __name__ == '__main__': app()
40.254237
104
0.442105
00efea5862fe978d343d39220b750e7528a3d743
760
py
Python
django_mri/analysis/interfaces/matlab/spm/cat12/segmentation/messages.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
4
2020-07-27T20:33:54.000Z
2022-01-11T20:24:03.000Z
django_mri/analysis/interfaces/matlab/spm/cat12/segmentation/messages.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
107
2019-09-04T11:38:46.000Z
2022-03-04T13:59:51.000Z
django_mri/analysis/interfaces/matlab/spm/cat12/segmentation/messages.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
2
2020-05-24T06:35:33.000Z
2020-06-14T13:15:32.000Z
""" A module storing strings used to display messages. """ INVALID_INTERNAL_RESAMPLING_OPTIMAL = "Invalid CAT12 configuration! Resampling type 'optimal' can only be set with an internal resampling value of 1. Valid configuration coerced." INVALID_INTERNAL_RESAMPLING_FIXED = "Invalid CAT12 configuration! Resampling typ...
84.444444
185
0.803947
00f5160d30c4f3b0da6d3f746cf783b4e5b156af
449
py
Python
feature_extraction/tests/tss_tool_test.py
ramseylab/cerenkov
19570ad2a47416a70ae7bb066cc67842b3cdee1b
[ "Apache-2.0" ]
1
2020-06-25T08:10:10.000Z
2020-06-25T08:10:10.000Z
feature_extraction/tests/tss_tool_test.py
ramseylab/cerenkov
19570ad2a47416a70ae7bb066cc67842b3cdee1b
[ "Apache-2.0" ]
2
2017-08-23T21:09:10.000Z
2018-03-28T23:42:24.000Z
feature_extraction/tests/tss_tool_test.py
ramseylab/cerenkov
19570ad2a47416a70ae7bb066cc67842b3cdee1b
[ "Apache-2.0" ]
null
null
null
import unittest from tss_tool import min_tss_dist if __name__ == '__main__': unittest.main()
26.411765
56
0.643653
00f56aad2a02b30366109ac80fcd916778923a4b
894
py
Python
singlecellmultiomics/modularDemultiplexer/demultiplexModules/chromium_10x.py
zztin/SingleCellMultiOmics
d3035c33eb1375f0703cc49537417b755ad8a693
[ "MIT" ]
17
2019-05-21T09:12:16.000Z
2022-02-14T19:26:58.000Z
singlecellmultiomics/modularDemultiplexer/demultiplexModules/chromium_10x.py
zztin/SingleCellMultiOmics
d3035c33eb1375f0703cc49537417b755ad8a693
[ "MIT" ]
70
2019-05-20T08:08:45.000Z
2021-06-22T15:58:01.000Z
singlecellmultiomics/modularDemultiplexer/demultiplexModules/chromium_10x.py
zztin/SingleCellMultiOmics
d3035c33eb1375f0703cc49537417b755ad8a693
[ "MIT" ]
7
2020-04-09T15:11:12.000Z
2022-02-14T15:23:31.000Z
from singlecellmultiomics.modularDemultiplexer.baseDemultiplexMethods import UmiBarcodeDemuxMethod
38.869565
98
0.647651
00f57288e29ea17928a550ee43b5a6268c6f7853
961
py
Python
L8-pandas-autocorr.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
10
2018-12-23T02:59:06.000Z
2021-12-07T11:55:21.000Z
L8-pandas-autocorr.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
null
null
null
L8-pandas-autocorr.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
7
2018-12-21T02:06:51.000Z
2021-12-11T02:36:47.000Z
import numpy as np import matplotlib.pyplot as plt import pandas as pd # read CSV data into a "dataframe" - pandas can parse dates # this will be familiar to R users (not so much matlab users) df = pd.read_csv('data/SHA.csv', index_col=0, parse_dates=True) Q = df.SHA_INFLOW_CFS # a pandas series (daily) # Q = Q.resa...
27.457143
73
0.723205
da95892f2a3ee597a5be8bdf010bff1eb4edbcea
2,000
py
Python
tests/test_polish_radio.py
jcwojdel/my_pi_skill
d4f15d16ed72a114f475bf2630e012f557c1e1c8
[ "MIT" ]
null
null
null
tests/test_polish_radio.py
jcwojdel/my_pi_skill
d4f15d16ed72a114f475bf2630e012f557c1e1c8
[ "MIT" ]
null
null
null
tests/test_polish_radio.py
jcwojdel/my_pi_skill
d4f15d16ed72a114f475bf2630e012f557c1e1c8
[ "MIT" ]
null
null
null
import json import os import unittest from functools import wraps import mock from lambdas import my_pi_lambda EVENTS = json.load(open(os.path.join(os.path.dirname(__file__), 'sample_events.json'))) if __name__ == "__main__": unittest.main()
27.777778
107
0.6505
da95a5c44d903877be2335e53332b31344d2ad2f
8,110
py
Python
GetData.py
FoxBearBear/aluguel-florianopolis
b6484e7e6c9489705a4254691254e796820c5b59
[ "MIT" ]
null
null
null
GetData.py
FoxBearBear/aluguel-florianopolis
b6484e7e6c9489705a4254691254e796820c5b59
[ "MIT" ]
null
null
null
GetData.py
FoxBearBear/aluguel-florianopolis
b6484e7e6c9489705a4254691254e796820c5b59
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from bs4 import BeautifulSoup import time from webdriver_manager.chrome import ChromeDriverManager import re from itertools import groupby import pandas as pd import googlemaps browser = webdriver.Chrome(ChromeDriverManager().inst...
34.806867
227
0.552404
da95be5babfdde657883095792e6a4be8756acdb
1,756
py
Python
core/classes/session_user.py
taimaskhanov11/AsyncVkAccount
58c48886545aa581eb28a1071d52e0a60aa1b8ea
[ "MIT" ]
1
2021-12-26T20:40:39.000Z
2021-12-26T20:40:39.000Z
core/classes/session_user.py
taimaskhanov11/AsyncVkAccount
58c48886545aa581eb28a1071d52e0a60aa1b8ea
[ "MIT" ]
1
2021-12-03T18:38:38.000Z
2021-12-03T18:39:08.000Z
core/classes/session_user.py
taimaskhanov11/AsyncVkAccount
58c48886545aa581eb28a1071d52e0a60aa1b8ea
[ "MIT" ]
null
null
null
import asyncio from pydantic import BaseModel # from base_user import BaseUser # class SessionUser(BaseModel): # user_id: int # text: str = Field() # overlord: New # # def __init__(self, **data): # print(data) # super().__init__(**data) # # self.name = self.overlord.name ...
21.414634
105
0.56549
da962d195151e9813a5b2724ae23f29b5eb9ce73
1,793
py
Python
bin/ss_test.py
PySilentSubstitution/silent-sub
ca1ec4c9f6dcd444a87149bbe6dfe00140f4c375
[ "MIT" ]
1
2022-01-20T11:20:25.000Z
2022-01-20T11:20:25.000Z
bin/ss_test.py
PySilentSubstitution/pysilsub
ca1ec4c9f6dcd444a87149bbe6dfe00140f4c375
[ "MIT" ]
null
null
null
bin/ss_test.py
PySilentSubstitution/pysilsub
ca1ec4c9f6dcd444a87149bbe6dfe00140f4c375
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 25 12:41:40 2021 @author: jtm545 """ #%% import sys sys.path.insert(0, '../') import random from colour.plotting import plot_chromaticity_diagram_CIE1931 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.optimize...
21.865854
88
0.684328
da968cf831a5029d3779d0ebce17917bafc31d32
2,129
py
Python
msl/qt/exceptions.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
msl/qt/exceptions.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
msl/qt/exceptions.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
""" Exception handling used by **MSL-Qt**. """ import logging import traceback from . import QtWidgets, Qt, application logger = logging.getLogger(__name__) def excepthook(exc_type, exc_obj, exc_traceback): """Displays unhandled exceptions in a :class:`QtWidgets.QMessageBox`. See :func:`sys.excepthook` for...
29.164384
90
0.689995
da979bee04c0f7f2ed748cd5e6ef72456594ed93
197
py
Python
Chapter04/exercise1/test_calculator.py
sportstube28/Continuous-Delivery-with-Docker-and-Jenkins-Second-Edition
0a9472a499b0ce0f181f95e2de6b1bee7f51ef59
[ "MIT" ]
51
2019-07-03T18:19:51.000Z
2022-02-02T04:04:32.000Z
Chapter04/exercise1/test_calculator.py
sportstube28/Continuous-Delivery-with-Docker-and-Jenkins-Second-Edition
0a9472a499b0ce0f181f95e2de6b1bee7f51ef59
[ "MIT" ]
1
2022-03-21T21:42:36.000Z
2022-03-21T21:42:36.000Z
Chapter04/exercise1/test_calculator.py
sportstube28/Continuous-Delivery-with-Docker-and-Jenkins-Second-Edition
0a9472a499b0ce0f181f95e2de6b1bee7f51ef59
[ "MIT" ]
69
2019-05-29T19:15:01.000Z
2022-03-28T05:19:30.000Z
import unittest from calculator import multiply if __name__ == '__main__': unittest.main()
19.7
39
0.771574
da9a059c634fcea4a96216e4d1ee920ceb4dd1fd
1,581
py
Python
INBa/2015/SOSNOVY_M_S/task_9_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SOSNOVY_M_S/task_9_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SOSNOVY_M_S/task_9_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# 9. 26 # , - , . , , , - , "" "". . # Sosnovy M.S. # 01.02.2016 import random slova = ("", "", "", "") slovo = str(random.choice(slova)) bykv = len(slovo) print(" ", str(bykv), " . 5 - .") print(" ?") bykva = str(input()) if bykva in slovo: print (" ") else: pr...
32.265306
310
0.726755
da9a71a5474b91b2b3a44d2706ab6ef85c4936e0
118
py
Python
UTMDriver/__init__.py
maxpoint2point/UTMDriver
75f5687fc0191eb2bf3005774cbde6e4935a6d04
[ "Apache-2.0" ]
1
2020-10-02T18:19:10.000Z
2020-10-02T18:19:10.000Z
UTMDriver/__init__.py
maxpoint2point/UTMDriver
75f5687fc0191eb2bf3005774cbde6e4935a6d04
[ "Apache-2.0" ]
null
null
null
UTMDriver/__init__.py
maxpoint2point/UTMDriver
75f5687fc0191eb2bf3005774cbde6e4935a6d04
[ "Apache-2.0" ]
null
null
null
# Copyright (c) maxpoint2point@gmail.com 2020. __version__ = '0.5.3-alpha' from UTMDriver.connector import Connector
29.5
47
0.779661
da9b97d4381c8937cdffb7ba12c0f5a0019ed71c
605
py
Python
FirstStepsInPython/Fundamentals/Exercice/Basic Syntax Conditional Statements and Loops/More Exercises/05. How Much Coffee Do You Need?.py
Pittor052/SoftUni-Studies
1ee6341082f6ccfa45b3e82824c37722bcf2fb31
[ "MIT" ]
null
null
null
FirstStepsInPython/Fundamentals/Exercice/Basic Syntax Conditional Statements and Loops/More Exercises/05. How Much Coffee Do You Need?.py
Pittor052/SoftUni-Studies
1ee6341082f6ccfa45b3e82824c37722bcf2fb31
[ "MIT" ]
null
null
null
FirstStepsInPython/Fundamentals/Exercice/Basic Syntax Conditional Statements and Loops/More Exercises/05. How Much Coffee Do You Need?.py
Pittor052/SoftUni-Studies
1ee6341082f6ccfa45b3e82824c37722bcf2fb31
[ "MIT" ]
1
2021-10-07T18:30:42.000Z
2021-10-07T18:30:42.000Z
command = input() compare_string_lower = {"coding", "dog", "cat", "movie"} compare_string_upper = {"CODING", "DOG", "CAT", "MOVIE"} coffee = 0 get_sleep = False while not command == "END": if command.isupper() and command in compare_string_upper: coffee += 2 if command.islower() and command in compare_s...
19.516129
61
0.614876