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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15f328ce83cf7262e3a2711b251f951f5f5aef7e | 1,542 | py | Python | src/hydratk/core/eventhandler.py | hydratk/hydratk | 54f64df2a68f49ba4ce564bf102824cc33dbe6c8 | [
"BSD-3-Clause"
] | null | null | null | src/hydratk/core/eventhandler.py | hydratk/hydratk | 54f64df2a68f49ba4ce564bf102824cc33dbe6c8 | [
"BSD-3-Clause"
] | null | null | null | src/hydratk/core/eventhandler.py | hydratk/hydratk | 54f64df2a68f49ba4ce564bf102824cc33dbe6c8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""HydraTK core event handling implementation class
.. module:: core.eventhandler
:platform: Unix
:synopsis: HydraTK core event handling implementation class
.. moduleauthor:: Petr Czaderna <pc@hydratk.org>
"""
from hydratk.core import hsignal
| 27.052632 | 66 | 0.662776 |
15f34bffaf876f6f6a2e7f2b53d0bff13ac885d0 | 13,660 | py | Python | charon/saver.py | Galithil/charon | 7b11780b8275d775c467e7ebd4a99a9d6bb77ee4 | [
"MIT"
] | 3 | 2015-11-18T06:20:56.000Z | 2017-09-20T14:44:45.000Z | charon/saver.py | Galithil/charon | 7b11780b8275d775c467e7ebd4a99a9d6bb77ee4 | [
"MIT"
] | 25 | 2015-02-20T15:13:27.000Z | 2018-11-06T14:17:17.000Z | charon/saver.py | Galithil/charon | 7b11780b8275d775c467e7ebd4a99a9d6bb77ee4 | [
"MIT"
] | 8 | 2015-05-22T14:16:05.000Z | 2022-03-22T07:55:25.000Z | " Charon: Context handler for saving an entity. "
import logging
import couchdb
from . import constants
from . import utils
| 35.572917 | 82 | 0.544583 |
15f39d0f421f2c653443422d6ac14afb93981bf5 | 5,264 | py | Python | app/projects/tests/test_portfolio_api.py | nestor-san/cooperation-fit | 1a922233345698970c7e18e6213ad0320de70cce | [
"MIT"
] | null | null | null | app/projects/tests/test_portfolio_api.py | nestor-san/cooperation-fit | 1a922233345698970c7e18e6213ad0320de70cce | [
"MIT"
] | null | null | null | app/projects/tests/test_portfolio_api.py | nestor-san/cooperation-fit | 1a922233345698970c7e18e6213ad0320de70cce | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import PortfolioItem
from projects.serializers import PortfolioItemSerializer
PORTFOLIO_URL = reverse('project... | 38.992593 | 78 | 0.644187 |
15f3b785cb9961fa87557827d4473398f7509cf4 | 3,662 | py | Python | msc_CollectData.py | waldu/AdPExT | 99238119d170ead8cfc0fe5a5ff163d1fc0e9dbb | [
"MIT"
] | null | null | null | msc_CollectData.py | waldu/AdPExT | 99238119d170ead8cfc0fe5a5ff163d1fc0e9dbb | [
"MIT"
] | null | null | null | msc_CollectData.py | waldu/AdPExT | 99238119d170ead8cfc0fe5a5ff163d1fc0e9dbb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on: Sun May 21 05:09:40 2017
Author: Waldu Woensdregt
Description: Code uses OpenWPM package to extract HTTPS responses from
selected set of URLs (defined in GetListOfSiteURLsToExtract)
and then splits the resulting data into individual ... | 43.082353 | 118 | 0.66521 |
15f3e6d11f8953cc11ced404d841621499083f56 | 2,545 | py | Python | utils/generateLocation.py | mie-lab/change-detection | 53f44d1e39405ab56be4e24da9e40cca31af8908 | [
"MIT"
] | null | null | null | utils/generateLocation.py | mie-lab/change-detection | 53f44d1e39405ab56be4e24da9e40cca31af8908 | [
"MIT"
] | null | null | null | utils/generateLocation.py | mie-lab/change-detection | 53f44d1e39405ab56be4e24da9e40cca31af8908 | [
"MIT"
] | null | null | null | import pandas as pd
import datetime
import geopandas as gpd
import os
from tqdm import tqdm
from shapely import wkt
from config import config
import trackintel as ti
def generate_Location(df, epsilon, user):
"""Cluster staypoints to locations, with different parameters and distinguish 'user' and 'dataset'"""
... | 35.84507 | 111 | 0.667191 |
15f6ebf3d219ce6b1cd4eb680d9639aa61bcb259 | 369 | py | Python | test.py | liyao001/EVBUS | 8730ce6b062bc31df27506a06723dee3b5ab511a | [
"Apache-2.0"
] | null | null | null | test.py | liyao001/EVBUS | 8730ce6b062bc31df27506a06723dee3b5ab511a | [
"Apache-2.0"
] | null | null | null | test.py | liyao001/EVBUS | 8730ce6b062bc31df27506a06723dee3b5ab511a | [
"Apache-2.0"
] | null | null | null | from EVBUS import EVBUS
from sklearn.datasets import load_boston
import sklearn.model_selection as xval
boston = load_boston()
Y = boston.data[:, 12]
X = boston.data[:, 0:12]
bos_X_train, bos_X_test, bos_y_train, bos_y_test = xval.train_test_split(X, Y, test_size=0.3)
evbus = EVBUS.varU(bos_X_train, bos_y_train, bos_... | 26.357143 | 93 | 0.772358 |
15f8928949b14c3be24585b15f6516fd3a9db474 | 7,226 | py | Python | tests/listings/test_views.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/listings/test_views.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/listings/test_views.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.utils.translation import ugettext as _
from bazaar.listings.models import Listing
from rest_framework... | 44.604938 | 119 | 0.691392 |
15f98430ae44305a9e31a13aeb782706e3a1fd29 | 2,141 | py | Python | aws/olympic-api/olympic/app.py | kevinle-1/olympic-api | c341328eb9c4ce26fcd08199abf1fb996deebbbf | [
"MIT"
] | 4 | 2021-07-29T06:29:33.000Z | 2021-08-31T22:38:21.000Z | aws/olympic-api/olympic/app.py | kevinle-1/olympic-api | c341328eb9c4ce26fcd08199abf1fb996deebbbf | [
"MIT"
] | null | null | null | aws/olympic-api/olympic/app.py | kevinle-1/olympic-api | c341328eb9c4ce26fcd08199abf1fb996deebbbf | [
"MIT"
] | 2 | 2021-07-25T08:51:52.000Z | 2021-07-25T18:06:24.000Z | import json
import requests
from bs4 import BeautifulSoup
PAGE_URL = 'https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/medal-standings.htm'
| 30.15493 | 225 | 0.601588 |
15fb00a29a6af7f533e2efe7c7832130560820ef | 5,348 | py | Python | crawlers/core/thread_types.py | nonemaw/YeTi | 92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe | [
"MIT"
] | 1 | 2017-10-04T12:21:20.000Z | 2017-10-04T12:21:20.000Z | crawlers/core/thread_types.py | nonemaw/YeTi | 92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe | [
"MIT"
] | null | null | null | crawlers/core/thread_types.py | nonemaw/YeTi | 92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe | [
"MIT"
] | null | null | null | import queue
import json
import logging
import threading
from crawlers.core.flags import FLAGS
| 35.184211 | 130 | 0.583209 |
15fb43831ed30c20a10a9d980a0fdb47897df9ba | 30 | py | Python | SampleAIs/Sample_Sophie/__init__.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 4 | 2015-11-04T21:18:40.000Z | 2020-12-26T21:15:23.000Z | SampleAIs/Sample_Sophie/__init__.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 2 | 2021-08-09T18:19:58.000Z | 2021-08-10T14:44:54.000Z | SampleAIs/Sample_Sophie/__init__.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 6 | 2015-08-01T17:54:17.000Z | 2022-02-28T00:00:21.000Z | from .sophie import SophieAI
| 10 | 28 | 0.8 |
15fb6a076074eb470434200bde6610f2e5b3ecae | 1,848 | py | Python | develop/tools/import-prep.py | Gautamverma66/pycon | 1ca95727619dbbe82483227e0964402b433131ee | [
"BSD-3-Clause"
] | null | null | null | develop/tools/import-prep.py | Gautamverma66/pycon | 1ca95727619dbbe82483227e0964402b433131ee | [
"BSD-3-Clause"
] | null | null | null | develop/tools/import-prep.py | Gautamverma66/pycon | 1ca95727619dbbe82483227e0964402b433131ee | [
"BSD-3-Clause"
] | 1 | 2020-09-30T18:09:16.000Z | 2020-09-30T18:09:16.000Z | #!/usr/bin/env python2.7
#
# Take various CSV inputs and produce a read-to-import conference schedule.
import pandas as pd
from datetime import date
if __name__ == '__main__':
main()
| 28.875 | 75 | 0.566017 |
15fc22916a07202affa161b6e886fa7702bd9a42 | 2,468 | py | Python | 2020/05/05.py | nhtsai/advent-of-code | d79ec16eb9014acc766805e9d922168aaa2809de | [
"MIT"
] | null | null | null | 2020/05/05.py | nhtsai/advent-of-code | d79ec16eb9014acc766805e9d922168aaa2809de | [
"MIT"
] | null | null | null | 2020/05/05.py | nhtsai/advent-of-code | d79ec16eb9014acc766805e9d922168aaa2809de | [
"MIT"
] | null | null | null | NUM_ROWS = 128
NUM_COLS = 8
"""
Cool solution:
https://github.com/tymofij/advent-of-code-2020/blob/master/05/seats.py
Cool solution using str.translate:
def seat_id(s, t=str.maketrans("FBLR", "0101")):
return int(s.translate(t), 2)
def max_seat_id(boarding_passes):
return max(map(seat_id,... | 25.443299 | 90 | 0.47812 |
15fdf4924a3b098bc325a7b35edf84b4ae175290 | 997 | py | Python | utilities/resize_images.py | bmhopkinson/Marsh_Ann | 7d1baaa444392622967dd1ed12f9c7a23c5fb018 | [
"MIT"
] | null | null | null | utilities/resize_images.py | bmhopkinson/Marsh_Ann | 7d1baaa444392622967dd1ed12f9c7a23c5fb018 | [
"MIT"
] | null | null | null | utilities/resize_images.py | bmhopkinson/Marsh_Ann | 7d1baaa444392622967dd1ed12f9c7a23c5fb018 | [
"MIT"
] | null | null | null | import os
import cv2
import numpy as np
import re
path_regex = re.compile('^.+?/(.*)')
imdir = '../Marsh_Images_BH/Row1_1_2748to2797'
outdir = './image_resize_BH'
for (dirpath, dirname, files) in os.walk(imdir, topdown='True'):
for name in files:
fullpath = os.path.join(dirpath,name)
print(name)
... | 27.694444 | 64 | 0.636911 |
15fe23beb9c7568305a1094a355c8b8ff59b537e | 294 | py | Python | arc/setupc.py | m-schleier/ARC-Alkali-Rydberg-Calculator | eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd | [
"BSD-3-Clause"
] | 53 | 2016-12-13T11:57:07.000Z | 2022-03-23T20:25:36.000Z | arc/setupc.py | m-schleier/ARC-Alkali-Rydberg-Calculator | eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd | [
"BSD-3-Clause"
] | 78 | 2016-12-21T11:56:03.000Z | 2022-03-15T21:01:30.000Z | arc/setupc.py | m-schleier/ARC-Alkali-Rydberg-Calculator | eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd | [
"BSD-3-Clause"
] | 39 | 2016-12-20T07:17:50.000Z | 2022-03-02T17:27:44.000Z | from distutils.core import setup, Extension
from numpy.distutils.misc_util import get_numpy_include_dirs
setup(ext_modules=[Extension("arc_c_extensions", ["arc_c_extensions.c"],
extra_compile_args = ['-Wall', '-O3'],
include_dirs=get_numpy_include_dirs())])
| 42 | 72 | 0.707483 |
15fe4d22550f5d656a8766cbb160d9cad971c027 | 5,133 | py | Python | load.py | OdysseyScorpio/FactionGist | a3af4b52557890cb9c2cad20a740545917db7ec4 | [
"MIT"
] | 3 | 2019-10-17T08:28:55.000Z | 2020-06-02T15:43:32.000Z | load.py | OdysseyScorpio/FactionGist | a3af4b52557890cb9c2cad20a740545917db7ec4 | [
"MIT"
] | 11 | 2019-10-17T08:32:09.000Z | 2019-10-21T07:14:13.000Z | load.py | OdysseyScorpio/FactionGist | a3af4b52557890cb9c2cad20a740545917db7ec4 | [
"MIT"
] | 3 | 2019-10-17T08:33:51.000Z | 2021-07-05T18:05:38.000Z | import sys
import os
import ttk
import Tkinter as tk
import tkMessageBox
from ttkHyperlinkLabel import HyperlinkLabel
from config import applongname, appversion
import myNotebook as nb
import json
import requests
import zlib
import re
import webbrowser
this = sys.modules[__name__]
this.apiURL = "http://factiongist.her... | 36.147887 | 130 | 0.653029 |
15ff229d57bd444a73d08386dd948e890ca375a0 | 12,542 | py | Python | hexa/plugins/connector_s3/models.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 4 | 2021-07-19T12:53:21.000Z | 2022-01-26T17:45:02.000Z | hexa/plugins/connector_s3/models.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 20 | 2021-05-17T12:27:06.000Z | 2022-03-30T11:35:26.000Z | hexa/plugins/connector_s3/models.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 2 | 2021-09-07T04:19:59.000Z | 2022-02-08T15:33:29.000Z | import os
from logging import getLogger
from django.core.exceptions import ValidationError
from django.db import models, transaction
from django.template.defaultfilters import filesizeformat, pluralize
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import gettext_lazy a... | 32.492228 | 112 | 0.603253 |
15ff677f5997837a0bb374dc2d35fd4c8a6040d2 | 301 | py | Python | Curso de Python Completo e Proficional/Aulas/Aula 28 - Operadores de identidade Python.py | MauriSdL/Programs-in-Python | 79e35bc9488fdd377f161b0faf573b2df765fdb3 | [
"MIT"
] | null | null | null | Curso de Python Completo e Proficional/Aulas/Aula 28 - Operadores de identidade Python.py | MauriSdL/Programs-in-Python | 79e35bc9488fdd377f161b0faf573b2df765fdb3 | [
"MIT"
] | null | null | null | Curso de Python Completo e Proficional/Aulas/Aula 28 - Operadores de identidade Python.py | MauriSdL/Programs-in-Python | 79e35bc9488fdd377f161b0faf573b2df765fdb3 | [
"MIT"
] | null | null | null |
# Operadores de identidade
# serve para compara objetos no somente se eles sao iguais , mas sim se estao no mesmo local de memoria(na mesma variavel)
x = ["apple", "banana"]
y = ["apple", "banana"]
z = x
print(x is z)
print(x is y)
print(x == y)
print(x is not z)
print(x is not y)
print(x != y) | 20.066667 | 123 | 0.667774 |
c600a7c769c43dfaa68adc940ed5418cbaa4e03b | 121 | py | Python | treasureisland/Parameters.py | idoerg/GenomicIslandPrediction | c50edd0c280efca3fac90674a9695cb763c27e31 | [
"MIT"
] | null | null | null | treasureisland/Parameters.py | idoerg/GenomicIslandPrediction | c50edd0c280efca3fac90674a9695cb763c27e31 | [
"MIT"
] | null | null | null | treasureisland/Parameters.py | idoerg/GenomicIslandPrediction | c50edd0c280efca3fac90674a9695cb763c27e31 | [
"MIT"
] | null | null | null | WINDOW_SIZE = 8000
KMER_SIZE = 6
UPPER_THRESHOLD = 0.75
LOWER_THRESHOLD = 0.5
TUNE_METRIC = 1000
MINIMUM_GI_SIZE = 10000
| 17.285714 | 23 | 0.785124 |
c6013d78d67df4cefccabade66230bcf85da9cde | 343 | py | Python | ex109/teste.py | almmessias/CursoPython | 4cec6946f32002cbd5d3b802df11ea1ba74169f5 | [
"MIT"
] | null | null | null | ex109/teste.py | almmessias/CursoPython | 4cec6946f32002cbd5d3b802df11ea1ba74169f5 | [
"MIT"
] | null | null | null | ex109/teste.py | almmessias/CursoPython | 4cec6946f32002cbd5d3b802df11ea1ba74169f5 | [
"MIT"
] | null | null | null | import moeda
n = float(input('Digite o preo: R$'))
print (f'O dobro de {moeda.moeda(n)} {moeda.dobro(n, True)}')
print (f'A metade de {moeda.moeda(n)} {moeda.metade(n, True)}')
print (f'O aumento de 10% de {moeda.moeda(n)} {moeda.aumento(n, 10, True)}')
print (f'O desconto de 13% de {moeda.moeda(n)} {moeda.descont... | 42.875 | 80 | 0.650146 |
c60143a70f259a4e959098d87fdd7674fa7e33dc | 1,618 | py | Python | vi/vi/csp/backtrack_search.py | pveierland/permve-ntnu-it3105 | 6a7e4751de47b091c1c9c59560c19a8452698d81 | [
"CC0-1.0"
] | null | null | null | vi/vi/csp/backtrack_search.py | pveierland/permve-ntnu-it3105 | 6a7e4751de47b091c1c9c59560c19a8452698d81 | [
"CC0-1.0"
] | null | null | null | vi/vi/csp/backtrack_search.py | pveierland/permve-ntnu-it3105 | 6a7e4751de47b091c1c9c59560c19a8452698d81 | [
"CC0-1.0"
] | null | null | null | import vi.csp
import collections
import operator
BacktrackStatistics = collections.namedtuple(
'BacktrackStatistics', ['calls', 'failures'])
| 32.36 | 77 | 0.644623 |
c601aedeadeb98d2c741f809b0374722d418f823 | 1,377 | py | Python | k_means.py | lgq9220/easy12306 | e31abd1c7675e2acb37f4653ab88cae49d2317cc | [
"Artistic-2.0"
] | null | null | null | k_means.py | lgq9220/easy12306 | e31abd1c7675e2acb37f4653ab88cae49d2317cc | [
"Artistic-2.0"
] | null | null | null | k_means.py | lgq9220/easy12306 | e31abd1c7675e2acb37f4653ab88cae49d2317cc | [
"Artistic-2.0"
] | null | null | null | #! env python
# coding: utf-8
# k-means
import os
import time
import sys
import cv2
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.externals import joblib
if __name__ == '__main__':
main()
| 27.54 | 71 | 0.647785 |
c60244641d848895dbb47d903f04c522a8e5355d | 14,735 | py | Python | datasets/blender_efficient_sm.py | ktiwary2/nerf_pl | 99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e | [
"MIT"
] | null | null | null | datasets/blender_efficient_sm.py | ktiwary2/nerf_pl | 99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e | [
"MIT"
] | null | null | null | datasets/blender_efficient_sm.py | ktiwary2/nerf_pl | 99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e | [
"MIT"
] | null | null | null | import torch
from torch.utils.data import Dataset
import json
import numpy as np
import os
from PIL import Image, ImageFilter
from torchvision import transforms as T
from models.camera import Camera
from tqdm import tqdm
from .ray_utils import * | 44.651515 | 120 | 0.498812 |
c604f6057b5dbbc4327c8b89a1889d99d12111c1 | 10,410 | py | Python | pysnmp/RBN-ICR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/RBN-ICR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/RBN-ICR-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 RBN-ICR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBN-ICR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:44:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 131.772152 | 1,175 | 0.747166 |
c6074a650ad47398b9b59002465392e2c249c2e3 | 14,325 | py | Python | data-preprocess/ice-vision-data-merger-pipeline.py | jingwoo4710/mmdetection-icevision | da82741b29fdd1eb77b4e7483ff2a515d43d1760 | [
"Apache-2.0"
] | 4 | 2020-03-13T00:12:44.000Z | 2021-06-25T07:54:17.000Z | data-preprocess/ice-vision-data-merger-pipeline.py | jingwoo4710/mmdetection-icevision | da82741b29fdd1eb77b4e7483ff2a515d43d1760 | [
"Apache-2.0"
] | 4 | 2020-03-13T00:24:15.000Z | 2022-03-12T00:19:03.000Z | data-preprocess/ice-vision-data-merger-pipeline.py | jingwoo4710/mmdetection-icevision | da82741b29fdd1eb77b4e7483ff2a515d43d1760 | [
"Apache-2.0"
] | 1 | 2021-03-07T06:24:08.000Z | 2021-03-07T06:24:08.000Z | #!/usr/bin/env python
# coding: utf-8
# In[93]:
import os
from shutil import copyfile
import json
print("cwd = ", os.getcwd())
current_folder = os.getcwd()
#extracted_train_data = os.path.join(current_folder, "extracted_train_data")
extracted_train_data = "/dataset/training/"
#annotations_dir = '/data/annotations'... | 35.02445 | 194 | 0.585829 |
c6093977665e22ed8590c36fa4cf3dd81037f912 | 4,721 | py | Python | second_childwin.py | liwy27/similation_experiment_qt | 20c0b7e9f2777fb828bf5b596985121ef517823a | [
"MIT"
] | null | null | null | second_childwin.py | liwy27/similation_experiment_qt | 20c0b7e9f2777fb828bf5b596985121ef517823a | [
"MIT"
] | null | null | null | second_childwin.py | liwy27/similation_experiment_qt | 20c0b7e9f2777fb828bf5b596985121ef517823a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'second_childwin.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 i... | 42.918182 | 76 | 0.644779 |
c609dcc818d4247b3e931541707e6e65fd9fc433 | 1,683 | py | Python | osu/graph_metadata.py | brandondong/osu-beatmap-generator | 7ca14793ef6a48a65cfd1a564f3b24d940a6051a | [
"MIT"
] | null | null | null | osu/graph_metadata.py | brandondong/osu-beatmap-generator | 7ca14793ef6a48a65cfd1a564f3b24d940a6051a | [
"MIT"
] | 1 | 2021-06-01T23:50:59.000Z | 2021-06-01T23:50:59.000Z | osu/graph_metadata.py | brandondong/osu-beatmap-generator | 7ca14793ef6a48a65cfd1a564f3b24d940a6051a | [
"MIT"
] | null | null | null | import os
import matplotlib.pyplot as plt
import numpy as np
from models import models_util
DIFFICULTY_LABEL = "Star Difficulty"
BPM_LABEL = "BPM"
LENGTH_LABEL = "Length"
CS_LABEL = "Circle Size"
DRAIN_LABEL = "HP Drain"
ACCURACY_LABEL = "Accuracy"
AR_LABEL = "Approach Rate"
SAVE_FOLDER = "visualization/"
# Data r... | 28.525424 | 103 | 0.734403 |
c60b950c7ec0457cb6e2c5b50e37bb91e2cf7ca7 | 2,327 | py | Python | tests/test_zad02.py | TestowanieAutomatyczneUG/laboratorium-12-SzymonWilczewski | 18f0a6c8f5f4c304ef1497907edeb53a470dcf58 | [
"MIT"
] | null | null | null | tests/test_zad02.py | TestowanieAutomatyczneUG/laboratorium-12-SzymonWilczewski | 18f0a6c8f5f4c304ef1497907edeb53a470dcf58 | [
"MIT"
] | null | null | null | tests/test_zad02.py | TestowanieAutomatyczneUG/laboratorium-12-SzymonWilczewski | 18f0a6c8f5f4c304ef1497907edeb53a470dcf58 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import *
from src.zad02.main import Subscriber
| 45.627451 | 119 | 0.72067 |
c60bdc534000a18e4fc655a5cff50a94af3d4302 | 2,077 | py | Python | ADE/train.py | BinahHu/ADE-Longtail | 4aabf1cbf50746e610b91362c40cbcb7884dd170 | [
"Apache-2.0"
] | null | null | null | ADE/train.py | BinahHu/ADE-Longtail | 4aabf1cbf50746e610b91362c40cbcb7884dd170 | [
"Apache-2.0"
] | null | null | null | ADE/train.py | BinahHu/ADE-Longtail | 4aabf1cbf50746e610b91362c40cbcb7884dd170 | [
"Apache-2.0"
] | null | null | null | # import some common libraries
# import some common detectron2 utilities
from detectron2.config import get_cfg
from detectron2.data import (
build_detection_test_loader,
build_detection_train_loader,
)
from detectron2.engine import default_argument_parser, default_setup, launch, DefaultTrainer
# import ADE ... | 26.628205 | 107 | 0.703418 |
c60d16dc84b1f51d0fe6d4f73e98b08bb5beed06 | 146 | py | Python | VacationPy/api_keys.py | jagfinancial/python-api-challenge | 3b15bdd8389dd208efc2fecce6a681ccde54ef6d | [
"ADSL"
] | null | null | null | VacationPy/api_keys.py | jagfinancial/python-api-challenge | 3b15bdd8389dd208efc2fecce6a681ccde54ef6d | [
"ADSL"
] | null | null | null | VacationPy/api_keys.py | jagfinancial/python-api-challenge | 3b15bdd8389dd208efc2fecce6a681ccde54ef6d | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
weather_api_key = "3796d9507516315ec2ebdc39473cc6ea"
# Google API Key
g_key = "AIzaSyDQ3DTH86ntlGML7QCVhKWSocZX8Cb4yBA"
| 24.333333 | 52 | 0.842466 |
c60dde17e3e2f4dd2320cb3a7f244103bed46b66 | 2,411 | py | Python | src/messages.py | Colk-tech/gcpdiscord | b2a43dca8db5a17e6e72f36c7e895db19b836067 | [
"MIT"
] | 4 | 2020-12-31T09:41:09.000Z | 2022-02-20T14:13:41.000Z | src/messages.py | Colk-tech/gcpdiscord | b2a43dca8db5a17e6e72f36c7e895db19b836067 | [
"MIT"
] | 3 | 2020-12-28T18:19:44.000Z | 2021-01-03T14:51:59.000Z | src/messages.py | Colk-tech/gcpdiscord | b2a43dca8db5a17e6e72f36c7e895db19b836067 | [
"MIT"
] | 2 | 2020-12-31T05:42:57.000Z | 2022-03-24T07:54:25.000Z | PERMISSION_DENIED_MESSAGE: str = "***PERMISSION DENIED!*** \n" \
"You are not permitted to use this command. \n" \
"Please contact to your server master. \n."
ERROR_OCCURRED_MESSAGE: str = "***ERROR OCCURRED!*** \n" \
"Error has occu... | 70.911765 | 109 | 0.517628 |
c60e59d24506527b02637849c4f5442ee5efa5c7 | 4,035 | py | Python | util/SR2SC.py | lorteddie/dcmqi | 4f668745f4f8b2a67e6dcfdee187ac7793e07116 | [
"BSD-3-Clause"
] | null | null | null | util/SR2SC.py | lorteddie/dcmqi | 4f668745f4f8b2a67e6dcfdee187ac7793e07116 | [
"BSD-3-Clause"
] | null | null | null | util/SR2SC.py | lorteddie/dcmqi | 4f668745f4f8b2a67e6dcfdee187ac7793e07116 | [
"BSD-3-Clause"
] | null | null | null | from pydicom.sr import _snomed_dict
import os
import re
import pydicom.sr._snomed_dict
folder = "E:\\work\\QIICR\\dcmqi"
Out_Folder = "E:\\work\\QIICR\\renamed_dcmqi"
dict = _snomed_dict.mapping["SCT"]
details = []
# recursive_file_find(folder, all_files, "(.*\\.cpp$)|(.*\\.h$)|(.*\\.json$)")
all_files = rec... | 32.28 | 95 | 0.603965 |
c60ef77ba35cbe6b2d5368873bee63645c0514b7 | 9,417 | py | Python | disentanglement_lib/visualize/visualize_util.py | erow/disentanglement_lib | c875207fdeadc44880277542447544941bc0bd0a | [
"Apache-2.0"
] | null | null | null | disentanglement_lib/visualize/visualize_util.py | erow/disentanglement_lib | c875207fdeadc44880277542447544941bc0bd0a | [
"Apache-2.0"
] | null | null | null | disentanglement_lib/visualize/visualize_util.py | erow/disentanglement_lib | c875207fdeadc44880277542447544941bc0bd0a | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The DisentanglementLib 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
#
# Un... | 34.119565 | 84 | 0.653818 |
c60efc48bff6adf1e39c4b9e35874cde0aa11abd | 6,515 | py | Python | Lab/Lab5/lab5_group12_server.py | Zhuoyue-Xing/IOT---INTELLIG-CONNECTED-SYS | 09111380e5ad36663e90de5bcd22691619c9a2f1 | [
"Apache-2.0"
] | 1 | 2020-03-04T21:51:42.000Z | 2020-03-04T21:51:42.000Z | Lab/Lab5/lab5_group12_server.py | Zhuoyue-Xing/IOT---INTELLIG-CONNECTED-SYS | 09111380e5ad36663e90de5bcd22691619c9a2f1 | [
"Apache-2.0"
] | null | null | null | Lab/Lab5/lab5_group12_server.py | Zhuoyue-Xing/IOT---INTELLIG-CONNECTED-SYS | 09111380e5ad36663e90de5bcd22691619c9a2f1 | [
"Apache-2.0"
] | null | null | null | # Created by Chenye Yang, Haokai Zhao, Zhuoyue Xing on 2019/10/13.
# Copyright 2019 Chenye Yang, Haokai Zhao, Zhuoyue Xing . All rights reserved.
from machine import Pin, I2C, RTC, Timer
import socket
import ssd1306
import time
import network
import urequests
import json
# ESP8266 connects to a router
# Get Current... | 35.601093 | 132 | 0.701765 |
c60efea748edd359a502e1515888c7b36fe55c0f | 1,397 | py | Python | Util/Validation.py | SkyfallenHQ/CoProvider-Daemon | 57cc2eb44f21c053db39313840c23c754a0143be | [
"MIT"
] | 1 | 2021-03-01T07:43:32.000Z | 2021-03-01T07:43:32.000Z | Util/Validation.py | SkyfallenHQ/CoProvider-Daemon | 57cc2eb44f21c053db39313840c23c754a0143be | [
"MIT"
] | null | null | null | Util/Validation.py | SkyfallenHQ/CoProvider-Daemon | 57cc2eb44f21c053db39313840c23c754a0143be | [
"MIT"
] | null | null | null | # ____ _ __ _ _ #
# / ___|| | ___ _ / _| __ _| | | ___ _ __ #
# \___ \| |/ / | | | |_ / _` | | |/ _ \ '_ \ #
# ___) | <| |_| | _| (_| | | | __/ | | |#
# |____/|_|\_\\__, |_| \__,_|_|_|\___|_| |_|#
# |___/ #########
# ____ ____ ... | 45.064516 | 76 | 0.286328 |
c60fff305331c5af7ece82691a51268226e5c661 | 453 | py | Python | cord19/scripts/metadata/prefixes.py | udel-cbcb/covid19kg_rdf | 3cd8dd6c4654333777db6127f2a3f2e01b92b0ac | [
"CC-BY-4.0"
] | null | null | null | cord19/scripts/metadata/prefixes.py | udel-cbcb/covid19kg_rdf | 3cd8dd6c4654333777db6127f2a3f2e01b92b0ac | [
"CC-BY-4.0"
] | null | null | null | cord19/scripts/metadata/prefixes.py | udel-cbcb/covid19kg_rdf | 3cd8dd6c4654333777db6127f2a3f2e01b92b0ac | [
"CC-BY-4.0"
] | null | null | null | from rdflib import Namespace, XSD
from rdflib.namespace import DC, DCTERMS
FHIRCAT_CORD = Namespace("http://fhircat.org/cord-19/")
SSO = Namespace("http://semanticscholar.org/cv-research/")
DOI = Namespace("https://doi.org/")
PUBMED = Namespace("https://www.ncbi.nlm.nih.gov/pubmed/")
PMC = Namespace("https://www.ncbi.... | 45.3 | 64 | 0.735099 |
c6111b7e68c98d9dc89d8452745da9d3fb412b2a | 6,568 | py | Python | pbutils/argparsers.py | phonybone/phonybone_utils | d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9 | [
"MIT"
] | null | null | null | pbutils/argparsers.py | phonybone/phonybone_utils | d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9 | [
"MIT"
] | null | null | null | pbutils/argparsers.py | phonybone/phonybone_utils | d95f226ddfc62a1d69b5ff6f53de86188fe0c8f9 | [
"MIT"
] | null | null | null | import sys
import os
import argparse
from types import MethodType
from importlib import import_module
from argparse import RawTextHelpFormatter # Note: this applies to all options, might not always be what we want...
from pbutils.configs import get_config, get_config_from_data, to_dict, inject_opts, CP
from .strings ... | 34.568421 | 115 | 0.622259 |
c612683f9e5f1b8a554762571a5c3752edd3f4c6 | 513 | py | Python | api/management/commands/user_stats.py | kopf/zzzz | eeaebc24c7c2c290e167dcf1a74c18586a3a75a7 | [
"BSD-3-Clause"
] | 10 | 2019-04-16T18:08:55.000Z | 2022-03-17T21:30:47.000Z | api/management/commands/user_stats.py | kopf/zzzz | eeaebc24c7c2c290e167dcf1a74c18586a3a75a7 | [
"BSD-3-Clause"
] | 3 | 2019-04-16T18:26:41.000Z | 2021-06-10T21:22:13.000Z | api/management/commands/user_stats.py | kopf/zzzz | eeaebc24c7c2c290e167dcf1a74c18586a3a75a7 | [
"BSD-3-Clause"
] | 1 | 2021-05-23T07:10:04.000Z | 2021-05-23T07:10:04.000Z | #!/usr/bin/env python3
import json
from django.core.management.base import BaseCommand
from api.models import User
| 27 | 86 | 0.639376 |
c614a1664f6bdf152a7894bbff6e36ef78258fe0 | 1,234 | py | Python | tests/test_asdf_schema.py | WilliamJamieson/asdf-standard | d0934b2abd95507e5d5f79ed69782d5b6b24eadd | [
"BSD-3-Clause"
] | 47 | 2015-04-21T10:03:44.000Z | 2020-06-16T12:02:35.000Z | tests/test_asdf_schema.py | WilliamJamieson/asdf-standard | d0934b2abd95507e5d5f79ed69782d5b6b24eadd | [
"BSD-3-Clause"
] | 120 | 2015-01-12T23:45:17.000Z | 2020-06-06T17:20:28.000Z | tests/test_asdf_schema.py | WilliamJamieson/asdf-standard | d0934b2abd95507e5d5f79ed69782d5b6b24eadd | [
"BSD-3-Clause"
] | 22 | 2015-04-21T10:14:44.000Z | 2020-06-16T08:55:17.000Z | import pytest
from common import SCHEMAS_PATH, assert_yaml_header_and_footer, load_yaml
from jsonschema import ValidationError
| 33.351351 | 108 | 0.67342 |
c61593afa95fc30a19ca5363d13b5db09015e8fd | 5,552 | py | Python | retinanet/dataloader/label_encoder.py | lchen-wyze/retinanet-tensorflow2.x | 86404a2da6ec636d4b1aef768ac52f018c127798 | [
"Apache-2.0"
] | 36 | 2020-09-23T13:32:47.000Z | 2022-03-29T18:53:58.000Z | retinanet/dataloader/label_encoder.py | lchen-wyze/retinanet-tensorflow2.x | 86404a2da6ec636d4b1aef768ac52f018c127798 | [
"Apache-2.0"
] | 12 | 2020-10-25T09:07:58.000Z | 2021-11-17T12:53:50.000Z | retinanet/dataloader/label_encoder.py | lchen-wyze/retinanet-tensorflow2.x | 86404a2da6ec636d4b1aef768ac52f018c127798 | [
"Apache-2.0"
] | 9 | 2020-11-12T20:03:06.000Z | 2022-01-03T12:40:48.000Z | import tensorflow as tf
from retinanet.dataloader.anchor_generator import AnchorBoxGenerator
from retinanet.dataloader.preprocessing_pipeline import PreprocessingPipeline
from retinanet.dataloader.utils import compute_iou
| 44.063492 | 79 | 0.608249 |
c61623b37bddc297ff4efcaa0c5fed293a59e6f0 | 12,000 | py | Python | model/tests.py | nosnhojn/poser | 9585459377392b2662dcc63174d465ba5a7581f4 | [
"BSD-3-Clause"
] | 1 | 2016-05-11T18:37:56.000Z | 2016-05-11T18:37:56.000Z | model/tests.py | nosnhojn/poser | 9585459377392b2662dcc63174d465ba5a7581f4 | [
"BSD-3-Clause"
] | null | null | null | model/tests.py | nosnhojn/poser | 9585459377392b2662dcc63174d465ba5a7581f4 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from model import Cell, Module, OutputType, CellType, Mux
import random
if __name__ == "__main__":
unittest.main()
| 28.985507 | 91 | 0.694833 |
c6170afc30e453f2a312a63f60a55b9794498ce1 | 4,197 | py | Python | tests/components/smarttub/test_config_flow.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/smarttub/test_config_flow.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | tests/components/smarttub/test_config_flow.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Test the smarttub config flow."""
from unittest.mock import patch
from smarttub import LoginFailed
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.smarttub.const import DOMAIN
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
from tests.common import MockConfigEntry... | 33.309524 | 111 | 0.672147 |
c617ffba3ed7d86f83e8204d0efd8b5ec19f40d4 | 476 | py | Python | ex4.py | JasperStfun/OOP | fb6c084979c2550a01b8dd07a24c244d31f943a0 | [
"Apache-2.0"
] | null | null | null | ex4.py | JasperStfun/OOP | fb6c084979c2550a01b8dd07a24c244d31f943a0 | [
"Apache-2.0"
] | null | null | null | ex4.py | JasperStfun/OOP | fb6c084979c2550a01b8dd07a24c244d31f943a0 | [
"Apache-2.0"
] | null | null | null |
v1 = [1, 2, 3]
v2 = [1, 2]
try:
with DefenerVector(v1) as dv:
for i in range(len(dv)):
dv[i] += v2[i]
except Exception as e:
print(e)
print(v1) | 21.636364 | 50 | 0.544118 |
c61aff15e6261423fb5fd8677c7a2c1c475568d6 | 785 | py | Python | src/features/migrations/0025_enable_all_remote_config_feature_states.py | augustuswm/flagsmith-api | 6f37947fe3791726a92b4df2cdbded11e77387d3 | [
"BSD-3-Clause"
] | 1,259 | 2021-06-10T11:24:09.000Z | 2022-03-31T10:30:44.000Z | src/features/migrations/0025_enable_all_remote_config_feature_states.py | augustuswm/flagsmith-api | 6f37947fe3791726a92b4df2cdbded11e77387d3 | [
"BSD-3-Clause"
] | 392 | 2021-06-10T11:12:29.000Z | 2022-03-31T10:13:53.000Z | src/features/migrations/0025_enable_all_remote_config_feature_states.py | augustuswm/flagsmith-api | 6f37947fe3791726a92b4df2cdbded11e77387d3 | [
"BSD-3-Clause"
] | 58 | 2021-06-11T03:18:07.000Z | 2022-03-31T14:39:10.000Z | # Generated by Django 2.2.17 on 2021-01-10 12:35
from django.db import migrations
| 26.166667 | 76 | 0.723567 |
c61b4b710f700b7e7d84698ef9c73f9fe55fc76c | 1,488 | py | Python | tamcolors/tests/utils_tests/identifier_tests.py | cmcmarrow/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 29 | 2020-07-17T23:46:17.000Z | 2022-02-06T05:36:44.000Z | tamcolors/tests/utils_tests/identifier_tests.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 42 | 2020-07-25T19:39:52.000Z | 2021-02-24T01:19:58.000Z | tamcolors/tests/utils_tests/identifier_tests.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 8 | 2020-07-18T23:02:48.000Z | 2020-12-30T04:07:35.000Z | # built in libraries
import unittest.mock
from tempfile import TemporaryDirectory
from os.path import join
# tamcolors libraries
from tamcolors.utils import identifier
| 41.333333 | 114 | 0.716398 |
c61b82fdb5df4f14bd3407dbc13cb9a344c9c650 | 2,847 | py | Python | source.py | FahimFBA/Invisible-Cloak-Using-Python | 4ed662f8ec6ab7bd90c5cf337d10ff8d2496843b | [
"MIT"
] | 2 | 2021-03-29T07:29:39.000Z | 2021-12-11T18:05:45.000Z | source.py | FahimFBA/Invisible-Cloak-Using-Python | 4ed662f8ec6ab7bd90c5cf337d10ff8d2496843b | [
"MIT"
] | 1 | 2021-12-12T06:37:32.000Z | 2021-12-12T16:36:19.000Z | source.py | FahimFBA/Invisible-Cloak-Using-Python | 4ed662f8ec6ab7bd90c5cf337d10ff8d2496843b | [
"MIT"
] | 2 | 2021-02-14T15:11:52.000Z | 2021-07-08T20:22:58.000Z | # start importing some modules
# importing OpenCV
import cv2
# using this module , we can process images and videos to identify objects, faces, or even handwriting of a human.
# importing NumPy
import numpy as np
# NumPy is usually imported under the np alias. NumPy is a Python library used for working with arrays. I... | 38.472973 | 250 | 0.724974 |
c61d0aed14163a5df84fbf6f3f9906dee796c9d6 | 207 | py | Python | keyvalues/__init__.py | JulioC/keyvalues-python | 45bd5aa8fff36372099d8fe855406a649294736f | [
"MIT"
] | 6 | 2016-04-19T22:54:20.000Z | 2021-01-12T04:49:30.000Z | keyvalues/__init__.py | JulioC/keyvalues-python | 45bd5aa8fff36372099d8fe855406a649294736f | [
"MIT"
] | 1 | 2017-06-23T03:47:02.000Z | 2017-09-27T01:25:43.000Z | keyvalues/__init__.py | JulioC/keyvalues-python | 45bd5aa8fff36372099d8fe855406a649294736f | [
"MIT"
] | 2 | 2016-02-01T00:16:39.000Z | 2017-06-23T02:35:09.000Z | __version_info__ = ('0', '1', '1')
__version__ = '.'.join(__version_info__)
from keyvalues.keyvalues import KeyValues
| 20.7 | 41 | 0.700483 |
c61dc702b237c15662d2418ed34215b2b2a25a9f | 1,999 | py | Python | rolling/apply.py | andrewcfreeman/rolling | 7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17 | [
"MIT"
] | 189 | 2018-03-12T00:31:19.000Z | 2022-03-26T00:17:38.000Z | rolling/apply.py | andrewcfreeman/rolling | 7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17 | [
"MIT"
] | 23 | 2017-12-31T17:50:48.000Z | 2021-11-27T15:31:54.000Z | rolling/apply.py | andrewcfreeman/rolling | 7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17 | [
"MIT"
] | 7 | 2019-01-28T02:53:49.000Z | 2021-11-11T18:34:45.000Z | from collections import deque
from itertools import islice
from .base import RollingObject
| 24.084337 | 82 | 0.62031 |
c61de299d4e4c292c61a91562c711d62f7565f8f | 7,333 | py | Python | src/user/role_service.py | fugwenna/bunkbot | f438c6a7d1f2c1797755eb8287bc1499c0cf2a88 | [
"MIT"
] | 2 | 2017-05-10T03:41:12.000Z | 2017-08-12T12:51:44.000Z | src/user/role_service.py | fugwenna/bunkbot | f438c6a7d1f2c1797755eb8287bc1499c0cf2a88 | [
"MIT"
] | 13 | 2017-08-09T00:41:17.000Z | 2021-09-04T17:47:11.000Z | src/user/role_service.py | fugwenna/bunkbot | f438c6a7d1f2c1797755eb8287bc1499c0cf2a88 | [
"MIT"
] | 4 | 2017-05-10T01:15:03.000Z | 2021-03-02T03:49:45.000Z | from typing import List
from discord import Role, Color, role
from ..bunkbot import BunkBot
from ..channel.channel_service import ChannelService
from ..core.bunk_user import BunkUser
from ..core.service import Service
from ..db.database_service import DatabaseService
| 32.591111 | 138 | 0.569617 |
c61e07f6e1d7dbddc3e330dbcdac65bf1c316ee7 | 2,166 | py | Python | src/dfd/models/interface.py | cicheck/dfd | b02752f958cfea2f85222e2b4b3ba7e265a6152d | [
"MIT"
] | null | null | null | src/dfd/models/interface.py | cicheck/dfd | b02752f958cfea2f85222e2b4b3ba7e265a6152d | [
"MIT"
] | 2 | 2021-12-31T17:44:20.000Z | 2021-12-31T19:51:11.000Z | src/dfd/models/interface.py | cicheck/dfd | b02752f958cfea2f85222e2b4b3ba7e265a6152d | [
"MIT"
] | null | null | null | from __future__ import annotations
import abc
import enum
import pathlib
import typing as t
| 27.769231 | 91 | 0.66205 |
c61e8d5ec314a4c9be9e075977a63d201f07a9d2 | 502 | py | Python | chapter2/code/concurrency/threadPoolConcurrency.py | abbbhucho/Mastering-Python-for-Networking-and-Security | f4fb1131253e9daad8da501c297758fdcedfbac3 | [
"MIT"
] | 98 | 2018-05-13T20:41:43.000Z | 2022-03-31T00:24:01.000Z | chapter2/code/concurrency/threadPoolConcurrency.py | Cyb3rid10ts/Mastering-Python-for-Networking-and-Security | 4cf04d1758f17ae378b5e3422404e5b7a174a243 | [
"MIT"
] | null | null | null | chapter2/code/concurrency/threadPoolConcurrency.py | Cyb3rid10ts/Mastering-Python-for-Networking-and-Security | 4cf04d1758f17ae378b5e3422404e5b7a174a243 | [
"MIT"
] | 62 | 2018-06-19T13:46:34.000Z | 2022-02-11T05:47:24.000Z | #python 3
from concurrent.futures import ThreadPoolExecutor
import threading
import random
if __name__ == '__main__':
main() | 27.888889 | 66 | 0.731076 |
c6221c4f4c97c1af9d1e5e7738396af3bac3c4e6 | 1,591 | py | Python | doc/buildbot/sample_slave.py | elhigu/pocl | 726569646d3e95ef7625991aef11a2e84216076a | [
"MIT"
] | 1 | 2020-08-13T06:59:37.000Z | 2020-08-13T06:59:37.000Z | doc/buildbot/sample_slave.py | elhigu/pocl | 726569646d3e95ef7625991aef11a2e84216076a | [
"MIT"
] | null | null | null | doc/buildbot/sample_slave.py | elhigu/pocl | 726569646d3e95ef7625991aef11a2e84216076a | [
"MIT"
] | 1 | 2020-08-13T06:59:39.000Z | 2020-08-13T06:59:39.000Z | from buildbot.buildslave import BuildSlave
from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.changes import filter
from buildbot.config import BuilderConfig
from buildbot.schedulers.forcesched import *
from poclfactory import createPoclFactory
# overrride the 'sample_slave' with a descriptive ... | 37 | 105 | 0.752986 |
c6224896f978093621d6275c6b492b553a5f89f0 | 2,575 | py | Python | pqr/__init__.py | pittquantum/PittQuantumRepository | 5100ff264e76cb97e5eba2929558a08d0ed158f8 | [
"MIT"
] | 13 | 2015-10-11T00:52:52.000Z | 2022-03-04T16:26:40.000Z | pqr/__init__.py | pittquantum/backend | 5100ff264e76cb97e5eba2929558a08d0ed158f8 | [
"MIT"
] | 54 | 2015-05-06T07:33:06.000Z | 2015-07-07T05:09:08.000Z | pqr/__init__.py | pittquantum/backend | 5100ff264e76cb97e5eba2929558a08d0ed158f8 | [
"MIT"
] | 4 | 2017-03-03T03:58:50.000Z | 2020-01-23T03:55:30.000Z | from flask import Flask, url_for, request, session, abort
import os
import re
import base64
pqr = Flask(__name__)
# Determines the destination of the build. Only usefull if you're using
# Frozen-Flask
pqr.config['FREEZER_DESTINATION'] = os.path.dirname(os.path.abspath(__file__)) + '/../build'
# Function to easily f... | 33.441558 | 129 | 0.616311 |
c625108183edb6d267c158ee6b26a88a85fb2494 | 255 | py | Python | application/core/common_utils.py | solomonxie/lambda-application-demo | 35ac5e17985cdd5694eb154b527d3942ad52cad6 | [
"MIT"
] | null | null | null | application/core/common_utils.py | solomonxie/lambda-application-demo | 35ac5e17985cdd5694eb154b527d3942ad52cad6 | [
"MIT"
] | null | null | null | application/core/common_utils.py | solomonxie/lambda-application-demo | 35ac5e17985cdd5694eb154b527d3942ad52cad6 | [
"MIT"
] | null | null | null | import json
from urllib import request
| 18.214286 | 57 | 0.580392 |
c625be4168c09da47fadb564f1e3637c6cb209e3 | 2,205 | py | Python | src/boxes/datatypes/calc.py | Peilonrayz/alphabet_learner | 13229e53215e3c050f106e00e34f90ca2d6fa256 | [
"MIT"
] | null | null | null | src/boxes/datatypes/calc.py | Peilonrayz/alphabet_learner | 13229e53215e3c050f106e00e34f90ca2d6fa256 | [
"MIT"
] | null | null | null | src/boxes/datatypes/calc.py | Peilonrayz/alphabet_learner | 13229e53215e3c050f106e00e34f90ca2d6fa256 | [
"MIT"
] | null | null | null | import collections.abc
from typing import Union, Sequence, Optional
from .primitives import Number
from .units import Unit, UnitTypes
_Value = Union[Unit, Number, float, int]
| 27.911392 | 84 | 0.576417 |
c626517f412e73181fae98762e0e92e932f1d7ee | 676 | py | Python | dfrus/machine_code_match.py | dfint/dfrus | 84eb206d01e57ba2571b19c2bbbe7765c660fb55 | [
"MIT"
] | 1 | 2021-09-11T12:46:01.000Z | 2021-09-11T12:46:01.000Z | dfrus/machine_code_match.py | dfint/dfrus | 84eb206d01e57ba2571b19c2bbbe7765c660fb55 | [
"MIT"
] | 8 | 2021-10-29T18:54:54.000Z | 2021-11-29T08:18:05.000Z | dfrus/machine_code_match.py | dfint/dfrus | 84eb206d01e57ba2571b19c2bbbe7765c660fb55 | [
"MIT"
] | null | null | null | from .binio import from_dword
from .opcodes import Reg, mov_reg_imm, mov_acc_mem, mov_rm_reg, x0f_movups, Prefix
| 26 | 82 | 0.573964 |
c6271a004e236807dbe7bcbd4263febf9681f51b | 964 | py | Python | tests/database/testmodel.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | tests/database/testmodel.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | tests/database/testmodel.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
from tests.testcase import TestCase
from edmunds.database.db import db, mapper, relationship, backref
from sqlalchemy.orm import mapper as sqlalchemy_mapper, relationship as sqlalchemy_relationship, backref as sqlalchemy_backref
from edmunds.database.databasemanager import DatabaseManager
from werkzeug.local import Lo... | 32.133333 | 126 | 0.745851 |
c6285b947189b318c16d99d170a80d0888fc3b1c | 6,485 | py | Python | pvlib/test/test_tracking.py | dacoex/pvlib-python | 38c0082f264a468015464aff1026a9ac864b4ed5 | [
"BSD-3-Clause"
] | null | null | null | pvlib/test/test_tracking.py | dacoex/pvlib-python | 38c0082f264a468015464aff1026a9ac864b4ed5 | [
"BSD-3-Clause"
] | null | null | null | pvlib/test/test_tracking.py | dacoex/pvlib-python | 38c0082f264a468015464aff1026a9ac864b4ed5 | [
"BSD-3-Clause"
] | 2 | 2017-03-08T18:38:05.000Z | 2018-06-08T07:29:03.000Z | import logging
pvl_logger = logging.getLogger('pvlib')
import datetime
import numpy as np
import pandas as pd
from nose.tools import raises, assert_almost_equals
from nose.plugins.skip import SkipTest
from pandas.util.testing import assert_frame_equal
from pvlib.location import Location
from pvlib import solarposit... | 39.30303 | 81 | 0.517039 |
c62888b176d698967ac4dee70756482d46d7f23e | 1,396 | py | Python | src/topgearAPI/carro.py | danilo94/ArduinoDashboard | f5dcbd8995c0f135ca0bd899aa9eefd9393eb46a | [
"MIT"
] | 2 | 2019-05-25T21:21:31.000Z | 2019-12-15T15:33:56.000Z | src/topgearAPI/carro.py | domsamuka/ArduinoDashboard | f5dcbd8995c0f135ca0bd899aa9eefd9393eb46a | [
"MIT"
] | null | null | null | src/topgearAPI/carro.py | domsamuka/ArduinoDashboard | f5dcbd8995c0f135ca0bd899aa9eefd9393eb46a | [
"MIT"
] | 2 | 2019-12-15T15:33:33.000Z | 2019-12-17T01:50:26.000Z | from MemoryHandler import *
from addresses import *
from struct import *
| 27.372549 | 149 | 0.588109 |
c628a854cb921505c3553f10d9c7e5209dafaeeb | 10,483 | py | Python | tests/test_base_api.py | yhegen/cumulocity-python-api | 729d29a518426fe118ed315df84020578a6961fb | [
"Apache-2.0"
] | 9 | 2021-02-16T08:53:08.000Z | 2022-02-15T11:58:19.000Z | tests/test_base_api.py | yhegen/cumulocity-python-api | 729d29a518426fe118ed315df84020578a6961fb | [
"Apache-2.0"
] | 4 | 2021-04-20T12:26:41.000Z | 2022-02-09T09:52:11.000Z | tests/test_base_api.py | yhegen/cumulocity-python-api | 729d29a518426fe118ed315df84020578a6961fb | [
"Apache-2.0"
] | 3 | 2021-04-26T23:05:32.000Z | 2021-12-09T14:13:58.000Z | # Copyright (c) 2020 Software AG,
# Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA,
# and/or its subsidiaries and/or its affiliates and/or their licensors.
# Use, reproduction, transfer, publication or disclosure is prohibited except
# as specifically provided for in your License Agreement with Softwar... | 35.900685 | 110 | 0.659258 |
c62b0f6c1dafe4863a081c29e104df05db4c301e | 866 | py | Python | src/xsdtools/jsonschema_generator.py | pietrodelugas/xsdtools | b30e5f6b41c079cca01b3fb8c36feee484df8e34 | [
"BSD-3-Clause"
] | 1 | 2020-12-17T04:50:47.000Z | 2020-12-17T04:50:47.000Z | src/xsdtools/jsonschema_generator.py | pietrodelugas/xsdtools | b30e5f6b41c079cca01b3fb8c36feee484df8e34 | [
"BSD-3-Clause"
] | null | null | null | src/xsdtools/jsonschema_generator.py | pietrodelugas/xsdtools | b30e5f6b41c079cca01b3fb8c36feee484df8e34 | [
"BSD-3-Clause"
] | 2 | 2021-07-21T10:38:08.000Z | 2021-09-16T17:50:25.000Z | #
# Copyright (c) 2020, Quantum Espresso Foundation and SISSA.
# Internazionale Superiore di Studi Avanzati). All rights reserved.
# This file is distributed under the terms of the BSD 3-Clause license.
# See the file 'LICENSE' in the root directory of the present distribution,
# or https://opensource.org/licenses/BSD-... | 29.862069 | 75 | 0.668591 |
c62d9b91a6c0cb24173d60044e7948da3e09c288 | 4,135 | py | Python | bright/tests/test_bright.py | bright-dev/bright | af3ff83d37880787443b1a8e785f375142d42882 | [
"WTFPL"
] | 3 | 2016-05-08T06:13:10.000Z | 2019-02-14T10:01:22.000Z | bright/tests/test_bright.py | bright-dev/bright | af3ff83d37880787443b1a8e785f375142d42882 | [
"WTFPL"
] | null | null | null | bright/tests/test_bright.py | bright-dev/bright | af3ff83d37880787443b1a8e785f375142d42882 | [
"WTFPL"
] | null | null | null | """Bright general tests"""
from unittest import TestCase
import nose
from nose.tools import assert_equal, assert_not_equal, assert_raises, raises, \
assert_almost_equal, assert_true, assert_false, with_setup
import os
import warnings
import tables as tb
import numpy as np
from pyne import nucname
import bright... | 28.517241 | 81 | 0.728174 |
c62dbdcf249b0771af08bd01ce1cb984ad5302f1 | 81 | py | Python | Dog_model/Dog/apps.py | cs-fullstack-2019-fall/django-models-cw-Deltonjr2 | 3fc667bed19201b75016798bd367d0bde9cb6c00 | [
"Apache-2.0"
] | null | null | null | Dog_model/Dog/apps.py | cs-fullstack-2019-fall/django-models-cw-Deltonjr2 | 3fc667bed19201b75016798bd367d0bde9cb6c00 | [
"Apache-2.0"
] | null | null | null | Dog_model/Dog/apps.py | cs-fullstack-2019-fall/django-models-cw-Deltonjr2 | 3fc667bed19201b75016798bd367d0bde9cb6c00 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
| 13.5 | 33 | 0.728395 |
c62e4d453948d4cfc525683440c2c6e5323bf2c9 | 2,568 | py | Python | tests/unittest_db.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 6 | 2019-08-15T20:19:38.000Z | 2021-02-28T21:33:19.000Z | tests/unittest_db.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 31 | 2019-08-14T08:42:08.000Z | 2020-05-07T13:43:43.000Z | tests/unittest_db.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 5 | 2019-08-17T13:39:53.000Z | 2020-04-01T07:25:51.000Z | import unittest
from pathlib import Path
import os
import shutil
import time
from src.bt_utils.handle_sqlite import DatabaseHandler
from src.bt_utils.get_content import content_dir
from sqlite3 import IntegrityError
if __name__ == '__main__':
unittest.main()
| 33.789474 | 84 | 0.628505 |
c62ff5ebe57088aca1b17d3ec477eb124d6fc9bd | 1,777 | py | Python | mxnet_load_model.py | whn09/mxnet-ssd | ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159 | [
"MIT"
] | 1 | 2019-09-11T02:07:50.000Z | 2019-09-11T02:07:50.000Z | mxnet_load_model.py | whn09/mxnet-ssd | ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159 | [
"MIT"
] | null | null | null | mxnet_load_model.py | whn09/mxnet-ssd | ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159 | [
"MIT"
] | null | null | null | # load model and predicate
import mxnet as mx
import numpy as np
# define test data
batch_size = 1
num_batch = 1
filepath = 'frame-1.jpg'
DEFAULT_INPUT_SHAPE = 300
# load model
sym, arg_params, aux_params = mx.model.load_checkpoint("model/deploy_model_algo_1", 0) # load with net name and epoch num
mod = mx.mod.Modul... | 34.843137 | 121 | 0.747327 |
c63176fa74c364cbbea0d4a75b777050b148c47b | 2,778 | py | Python | tests/integrate_test/samples/sample_internal_call_scores/sample_link_score/sample_link_score.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 52 | 2018-08-24T02:28:43.000Z | 2021-07-06T04:44:22.000Z | tests/integrate_test/samples/sample_internal_call_scores/sample_link_score/sample_link_score.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 62 | 2018-09-17T06:59:16.000Z | 2021-12-15T06:02:51.000Z | tests/integrate_test/samples/sample_internal_call_scores/sample_link_score/sample_link_score.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 35 | 2018-09-14T02:42:10.000Z | 2022-02-05T10:34:46.000Z | from iconservice import *
| 31.213483 | 94 | 0.688985 |
c631f8352fb062e1fdfef1179ba0676d0f9d2d26 | 489 | py | Python | setup.py | ulicar/sentry-cli | c95a77f8b74ced7c41dc8ab61fd31fdf64c08880 | [
"MIT"
] | null | null | null | setup.py | ulicar/sentry-cli | c95a77f8b74ced7c41dc8ab61fd31fdf64c08880 | [
"MIT"
] | null | null | null | setup.py | ulicar/sentry-cli | c95a77f8b74ced7c41dc8ab61fd31fdf64c08880 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from setuptools import setup
setup(
name = "python-sentry",
version = "1.0",
author = "Josip Domsic",
author_email = "josip.domsic+github@gmail.com",
description = ("Pure Python CLI for sentry, as well as client library"),
license = "MIT",
keywords = "python Sentry CLI",
... | 23.285714 | 76 | 0.580777 |
c6323bdd3e94514d523e80b9e992ba25f2230d0f | 790 | py | Python | crawler/src/config/config.py | HVHO/holiday-pharmacy | e641dca93ed0cc0e3ffa28f54a1da6a86c1cfe22 | [
"MIT"
] | null | null | null | crawler/src/config/config.py | HVHO/holiday-pharmacy | e641dca93ed0cc0e3ffa28f54a1da6a86c1cfe22 | [
"MIT"
] | null | null | null | crawler/src/config/config.py | HVHO/holiday-pharmacy | e641dca93ed0cc0e3ffa28f54a1da6a86c1cfe22 | [
"MIT"
] | null | null | null | import json
import os
| 34.347826 | 96 | 0.594937 |
c633041a2c7d19a40de6c87bb53ba1dfc7b15b1a | 672 | py | Python | alexandriadocs/core/tests/test_models.py | srtab/alexandria-docs | 94b221a4140db23ad6d97a98c7cf521fbdefbc0a | [
"Apache-2.0"
] | 2 | 2017-03-26T22:38:49.000Z | 2017-04-22T11:28:07.000Z | alexandriadocs/core/tests/test_models.py | srtab/alexandriadocs | 94b221a4140db23ad6d97a98c7cf521fbdefbc0a | [
"Apache-2.0"
] | 22 | 2017-06-10T17:15:59.000Z | 2018-08-06T14:57:44.000Z | alexandriadocs/core/tests/test_models.py | srtab/alexandriadocs | 94b221a4140db23ad6d97a98c7cf521fbdefbc0a | [
"Apache-2.0"
] | 1 | 2018-08-04T08:12:47.000Z | 2018-08-04T08:12:47.000Z | # -*- coding: utf-8 -*-
from django.test import SimpleTestCase
from core.models import VisibilityMixin
| 30.545455 | 58 | 0.714286 |
c6337ba6bb736b172e7ae3a784113684d1641780 | 5,320 | py | Python | STResNet/plots/error_plots.py | vtsuperdarn/deep_leaning_on_GSP_TEC | f5989d1742be9c02edbcab37433f468cb2c5f771 | [
"MIT"
] | 9 | 2018-09-17T02:11:26.000Z | 2020-12-16T12:28:35.000Z | STResNet/plots/error_plots.py | vtsuperdarn/deep_leaning_on_GSP_TEC | f5989d1742be9c02edbcab37433f468cb2c5f771 | [
"MIT"
] | null | null | null | STResNet/plots/error_plots.py | vtsuperdarn/deep_leaning_on_GSP_TEC | f5989d1742be9c02edbcab37433f468cb2c5f771 | [
"MIT"
] | 6 | 2018-07-23T13:37:10.000Z | 2022-01-19T17:51:19.000Z | import datetime
import pandas
import seaborn as sns
import matplotlib.pyplot as plt
import os
import re
import glob
amean_err = []
astddev_err = []
amin_err = []
amax_err = []
rmean_err = []
rstddev_err = []
rmin_err = []
rmax_err = []
#loading the true and predicted tec maps for calculating the min/max error, mea... | 31.111111 | 140 | 0.71015 |
c63435b48134fbdbc1eba24cadcae4cf22b07d3a | 1,969 | py | Python | online_judges/sub_two/sub_two_challenge.py | stephank007/python_challenges | dfd8d18c03a06735f6e4e02b0660007fe2d02f07 | [
"Apache-2.0"
] | null | null | null | online_judges/sub_two/sub_two_challenge.py | stephank007/python_challenges | dfd8d18c03a06735f6e4e02b0660007fe2d02f07 | [
"Apache-2.0"
] | null | null | null | online_judges/sub_two/sub_two_challenge.py | stephank007/python_challenges | dfd8d18c03a06735f6e4e02b0660007fe2d02f07 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges).
# # Challenge Notebook
# ## Problem: Sum of Two Integers (Subtraction Variant).
#
# See the [Lee... | 22.123596 | 181 | 0.643982 |
c6382fdd07fdfdca681e712305a912e00b66a929 | 1,262 | py | Python | src/ipdasite.services/ipdasite/services/interfaces/curator.py | NASA-PDS/planetarydata.org | 16731a251c22408b433117f7f01e29d004f11467 | [
"Apache-2.0"
] | null | null | null | src/ipdasite.services/ipdasite/services/interfaces/curator.py | NASA-PDS/planetarydata.org | 16731a251c22408b433117f7f01e29d004f11467 | [
"Apache-2.0"
] | 5 | 2021-03-19T21:41:19.000Z | 2022-02-11T14:55:14.000Z | src/ipdasite.services/ipdasite/services/interfaces/curator.py | NASA-PDS/planetarydata.org | 16731a251c22408b433117f7f01e29d004f11467 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# Copyright 2011 California Institute of Technology. ALL RIGHTS
# RESERVED. U.S. Government Sponsorship acknowledged.
'''Curator: interface'''
from zope.interface import Interface
from zope import schema
from ipdasite.services import ProjectMessageFactory as _
| 33.210526 | 108 | 0.669572 |
c638b2c5e25cf3da6255a0d76be797621245e3cf | 23 | py | Python | deepnade/buml/Results/__init__.py | marinakiseleva/NADE | 69ea890fad1e775dfff2db6dad4dd9d11b6a343e | [
"BSD-3-Clause"
] | null | null | null | deepnade/buml/Results/__init__.py | marinakiseleva/NADE | 69ea890fad1e775dfff2db6dad4dd9d11b6a343e | [
"BSD-3-Clause"
] | null | null | null | deepnade/buml/Results/__init__.py | marinakiseleva/NADE | 69ea890fad1e775dfff2db6dad4dd9d11b6a343e | [
"BSD-3-Clause"
] | 1 | 2021-10-08T19:54:34.000Z | 2021-10-08T19:54:34.000Z | from .Results import *
| 11.5 | 22 | 0.73913 |
c6392cb56f54b8d5c8c4d8010af78d820fc779d5 | 472 | py | Python | main/migrations/0006_auto_20200120_1628.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 5 | 2021-08-16T16:32:41.000Z | 2022-02-22T03:47:49.000Z | main/migrations/0006_auto_20200120_1628.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 7 | 2021-04-12T14:48:48.000Z | 2022-02-14T08:30:57.000Z | main/migrations/0006_auto_20200120_1628.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2021-04-28T14:28:34.000Z | 2021-04-28T14:28:34.000Z | # Generated by Django 3.0.2 on 2020-01-20 10:43
from django.db import migrations, models
import main.models
| 23.6 | 123 | 0.637712 |
c63aa739c17a4e754a25a2ea9c3f099089da52a6 | 350 | py | Python | __init__.py | LLNL/ferdinand | af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70 | [
"Apache-2.0"
] | null | null | null | __init__.py | LLNL/ferdinand | af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70 | [
"Apache-2.0"
] | null | null | null | __init__.py | LLNL/ferdinand | af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70 | [
"Apache-2.0"
] | null | null | null | ##############################################
# #
# Ferdinand 0.40, Ian Thompson, LLNL #
# #
# gnd,endf,fresco,azure,hyrma #
# #
######################################... | 38.888889 | 46 | 0.18 |
c63aa7bd0e0701b71a3831892875ee207bc50f62 | 2,707 | py | Python | tests/test_chol.py | luk036/ellalgo | 8e83587b271f35c906c0d0aa4175dac153e5e29b | [
"MIT"
] | null | null | null | tests/test_chol.py | luk036/ellalgo | 8e83587b271f35c906c0d0aa4175dac153e5e29b | [
"MIT"
] | null | null | null | tests/test_chol.py | luk036/ellalgo | 8e83587b271f35c906c0d0aa4175dac153e5e29b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import numpy as np
from ellalgo.oracles.chol_ext import chol_ext
def test_chol1():
"""[summary]"""
l1 = [[25.0, 15.0, -5.0], [15.0, 18.0, 0.0], [-5.0, 0.0, 11.0]]
m1 = np.array(l1)
Q1 = chol_ext(len(m1))
assert Q1.factori... | 23.136752 | 68 | 0.472109 |
c63e00866b579ae084343dd771e2b18a8af736d6 | 867 | py | Python | TelloStuff/Tests/Tello.py | svg94/Drone_Prototype-dirty-implementation- | 53ea429714beff6966c2b9c82e0c96d53baca66c | [
"MIT"
] | null | null | null | TelloStuff/Tests/Tello.py | svg94/Drone_Prototype-dirty-implementation- | 53ea429714beff6966c2b9c82e0c96d53baca66c | [
"MIT"
] | null | null | null | TelloStuff/Tests/Tello.py | svg94/Drone_Prototype-dirty-implementation- | 53ea429714beff6966c2b9c82e0c96d53baca66c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from TelloSDKPy.djitellopy.tello import Tello
import cv2
import pygame
import numpy as np
import time
if __name__== "__main__":
main()
| 24.083333 | 53 | 0.49827 |
c63ed36ee241e548d81bdd20f997dcd995f3ec78 | 11,761 | py | Python | models/SPR.py | fresh-professor/DiverseCont | 4be198f5531a7efe2cb91b17066322a38d219127 | [
"MIT"
] | 21 | 2021-09-08T14:37:06.000Z | 2022-02-28T02:58:35.000Z | models/SPR.py | fresh-professor/DiverseCont | 4be198f5531a7efe2cb91b17066322a38d219127 | [
"MIT"
] | 1 | 2021-12-28T09:17:38.000Z | 2021-12-28T11:49:30.000Z | models/SPR.py | fresh-professor/DiverseCont | 4be198f5531a7efe2cb91b17066322a38d219127 | [
"MIT"
] | null | null | null | import os
from copy import deepcopy
import tqdm
import torch
import torch.nn.functional as F
import colorful
import numpy as np
import networkx as nx
from tensorboardX import SummaryWriter
from .reservoir import reservoir
from components import Net
from utils import BetaMixture1D
| 43.884328 | 127 | 0.585239 |
c640ef3189a49dcfa1947c8d0c9f7d5961226015 | 6,602 | py | Python | tests/pyunity/testScene/testScene.py | rayzchen/PyUnity | 8ed436eca7a84f05190c1fa275c58da5c6059926 | [
"MIT"
] | null | null | null | tests/pyunity/testScene/testScene.py | rayzchen/PyUnity | 8ed436eca7a84f05190c1fa275c58da5c6059926 | [
"MIT"
] | null | null | null | tests/pyunity/testScene/testScene.py | rayzchen/PyUnity | 8ed436eca7a84f05190c1fa275c58da5c6059926 | [
"MIT"
] | null | null | null | # Copyright (c) 2020-2022 The PyUnity Team
# This file is licensed under the MIT License.
# See https://docs.pyunity.x10.bz/en/latest/license.html
from pyunity import (
SceneManager, Component, Camera, AudioListener, Light,
GameObject, Tag, Transform, GameObjectException,
ComponentException, Canvas, PyUnit... | 36.882682 | 85 | 0.628294 |
c64201468eb9a627a5893c74a3ccfcc9bf284d58 | 1,806 | py | Python | alembic_migration/alembic_handler.py | NASA-IMPACT/hls-sentinel2-downloader-serverless | e3e4f542fc805c6259f20a6dd932c98cccd4144c | [
"Apache-2.0"
] | null | null | null | alembic_migration/alembic_handler.py | NASA-IMPACT/hls-sentinel2-downloader-serverless | e3e4f542fc805c6259f20a6dd932c98cccd4144c | [
"Apache-2.0"
] | 2 | 2021-07-23T00:49:42.000Z | 2021-07-23T00:51:25.000Z | alembic_migration/alembic_handler.py | NASA-IMPACT/hls-sentinel2-downloader-serverless | e3e4f542fc805c6259f20a6dd932c98cccd4144c | [
"Apache-2.0"
] | null | null | null | import logging
import os
import alembic.command
import alembic.config
import cfnresponse
from db.session import get_session, get_session_maker
from retry import retry
from sqlalchemy.exc import OperationalError
def log(log_statement: str):
"""
Gets a Logger for the Lambda function with level logging.INFO and... | 30.1 | 87 | 0.668328 |
c642cc7668f9eaa2a24f87fd2cd2fe18ccbe3844 | 8,988 | py | Python | booksoai/oaipmh.py | scieloorg/books-oai | b0114f452c2bddb00ce6414a6926c57b548fb46a | [
"BSD-2-Clause"
] | 1 | 2019-03-16T04:44:08.000Z | 2019-03-16T04:44:08.000Z | booksoai/oaipmh.py | DalavanCloud/books-oai | b0114f452c2bddb00ce6414a6926c57b548fb46a | [
"BSD-2-Clause"
] | 2 | 2016-06-06T18:04:31.000Z | 2018-02-02T15:26:54.000Z | booksoai/oaipmh.py | DalavanCloud/books-oai | b0114f452c2bddb00ce6414a6926c57b548fb46a | [
"BSD-2-Clause"
] | 2 | 2016-06-06T18:03:54.000Z | 2019-03-16T04:43:56.000Z | from __future__ import unicode_literals
import plumber
from lxml import etree
from datetime import datetime
import pipeline
| 24.897507 | 100 | 0.576435 |
c642eb175ecb18dbaa59adf93fe2e5472ccf50d1 | 1,229 | py | Python | ch2/q25solution.py | kylepw/ctci | 7e2fcc6775db3789d0e425f4fb969acf6c44aad5 | [
"MIT"
] | null | null | null | ch2/q25solution.py | kylepw/ctci | 7e2fcc6775db3789d0e425f4fb969acf6c44aad5 | [
"MIT"
] | null | null | null | ch2/q25solution.py | kylepw/ctci | 7e2fcc6775db3789d0e425f4fb969acf6c44aad5 | [
"MIT"
] | null | null | null | from LinkedList import LinkedList
ll_a = LinkedList()
ll_a.generate(4, 0, 9)
ll_b = LinkedList()
ll_b.generate(3, 0, 9)
print(ll_a)
print(ll_b)
#print(sum_lists(ll_a, ll_b))
print(sum_lists_recursive(ll_a, ll_b))
#print(sum_lists_followup(ll_a, ll_b)) | 21.561404 | 52 | 0.570382 |
c646039bec76cea06e642add68741d31531aa8e2 | 5,147 | py | Python | cmdb-compliance/libs/server/server_common.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | cmdb-compliance/libs/server/server_common.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | 1 | 2022-01-04T13:53:16.000Z | 2022-01-04T13:53:16.000Z | cmdb-optimization/libs/server/server_common.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/5/15 14:44
# @Author : Fred Yangxiaofei
# @File : server_common.py
# @Role : server,
from models.server import Server, AssetErrorLog, ServerDetail
from libs.db_context import DBContext
from libs.web_logs import ins_log
from libs.server.sync_public_... | 41.508065 | 120 | 0.541092 |
c6463fc79c5c1fa3ed6d7d6dc133cda7182d1756 | 1,607 | py | Python | src/test/serialization/codec/object/test_string_codec.py | typingtanuki/pyserialization | f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151 | [
"Apache-2.0"
] | null | null | null | src/test/serialization/codec/object/test_string_codec.py | typingtanuki/pyserialization | f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151 | [
"Apache-2.0"
] | null | null | null | src/test/serialization/codec/object/test_string_codec.py | typingtanuki/pyserialization | f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151 | [
"Apache-2.0"
] | null | null | null | import unittest
from src.main.serialization.codec.codec import Codec
from src.main.serialization.codec.object.stringCodec import StringCodec
from src.main.serialization.codec.primitive.shortCodec import ShortCodec
from src.main.serialization.codec.utils.byteIo import ByteIo
from src.main.serialization.codec.utils.byte... | 40.175 | 116 | 0.654636 |
c647d169764fd3968e368f07e9481ecd112d4727 | 539 | py | Python | dataviz/ex1.py | jonaslindemann/compute-course-public | b8f55595ebbd790d79b525efdff17b8517154796 | [
"MIT"
] | 4 | 2021-09-12T12:07:01.000Z | 2021-09-29T17:38:34.000Z | dataviz/ex1.py | jonaslindemann/compute-course-public | b8f55595ebbd790d79b525efdff17b8517154796 | [
"MIT"
] | null | null | null | dataviz/ex1.py | jonaslindemann/compute-course-public | b8f55595ebbd790d79b525efdff17b8517154796 | [
"MIT"
] | 5 | 2020-10-24T16:02:31.000Z | 2021-09-28T20:57:46.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 7 14:58:44 2017
@author: Jonas Lindemann
"""
import numpy as np
import pyvtk as vtk
print("Reading from uvw.dat...")
xyzuvw = np.loadtxt('uvw.dat', skiprows=2)
print("Converting to points and vectors")
points = xyzuvw[:, 0:3].tolist()
vectors = xyzuvw[:... | 24.5 | 96 | 0.654917 |
c6487ab8b368f34287f785fc89a730b8d8fe1f9f | 2,237 | py | Python | nginc/__init__.py | FlorianLudwig/nginc | 489546d1b0190047150bf3134071aa88c64f8c3d | [
"Apache-2.0"
] | 1 | 2015-11-01T12:16:17.000Z | 2015-11-01T12:16:17.000Z | nginc/__init__.py | FlorianLudwig/nginc | 489546d1b0190047150bf3134071aa88c64f8c3d | [
"Apache-2.0"
] | null | null | null | nginc/__init__.py | FlorianLudwig/nginc | 489546d1b0190047150bf3134071aa88c64f8c3d | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Florian Ludwig
#
# 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 writin... | 30.22973 | 89 | 0.646848 |
c649c2159d59b04bdc795f0bcf96424017779542 | 1,417 | py | Python | Part 2 - Regression/Section 4 - Simple Linear Regression/practice_linear_regression.py | aditya30394/Machine-Learning-A-Z | 8caaf1f94f800fcc7bd594569593c4d713c32d9e | [
"MIT"
] | null | null | null | Part 2 - Regression/Section 4 - Simple Linear Regression/practice_linear_regression.py | aditya30394/Machine-Learning-A-Z | 8caaf1f94f800fcc7bd594569593c4d713c32d9e | [
"MIT"
] | null | null | null | Part 2 - Regression/Section 4 - Simple Linear Regression/practice_linear_regression.py | aditya30394/Machine-Learning-A-Z | 8caaf1f94f800fcc7bd594569593c4d713c32d9e | [
"MIT"
] | null | null | null | # Import important libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Read the data set
dataset = pd.read_csv('Salary_Data.csv')
X = dataset.iloc[:,:-1].values
y = dataset.iloc[:, 1].values
# Splitting the dataset into the Training set and Test set
from sklearn.model_selection import t... | 32.953488 | 94 | 0.762879 |
c64c0a450e0399b2acbc4deba8555735fd48b6da | 1,853 | py | Python | source/source_test.py | mengwangk/myinvestor-toolkit | 3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81 | [
"MIT"
] | 7 | 2019-10-13T18:58:33.000Z | 2021-08-07T12:46:22.000Z | source/source_test.py | mengwangk/myinvestor-toolkit | 3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81 | [
"MIT"
] | 7 | 2019-12-16T21:25:34.000Z | 2022-02-10T00:11:22.000Z | source/source_test.py | mengwangk/myinvestor-toolkit | 3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81 | [
"MIT"
] | 4 | 2020-02-01T11:23:51.000Z | 2021-12-13T12:27:18.000Z | # -*- coding: utf-8 -*-
"""Test for various sources
Supported sources
- Yahoo Finance
- I3Investor - KLSe
"""
import datetime as dt
import string
import unittest
from source import YahooFinanceSource, GoogleFinanceSource
| 30.377049 | 114 | 0.679439 |
c64e4b280de8cd0b21024951fd1499e577dd81d6 | 2,197 | py | Python | solver.py | n8henrie/knapsack | c52179e43a833d57f0df185d5d225444d1725204 | [
"MIT"
] | null | null | null | solver.py | n8henrie/knapsack | c52179e43a833d57f0df185d5d225444d1725204 | [
"MIT"
] | null | null | null | solver.py | n8henrie/knapsack | c52179e43a833d57f0df185d5d225444d1725204 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from collections import namedtuple
from itertools import combinations
import knapsack
Item = namedtuple("Item", ["index", "value", "weight"])
if __name__ == "__main__":
import sys
if len(sys.argv) > 1:
file_location = sys.argv[1].strip()
with open(file_location, ... | 26.46988 | 129 | 0.61766 |
c65170e65e760d40c99c948a36c0e972a977e113 | 3,765 | py | Python | api/mon/utils.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | api/mon/utils.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | api/mon/utils.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | from django.conf import settings
from api.task.internal import InternalTask
from api.task.response import mgmt_task_response
from vms.utils import AttrDict
from vms.models import Vm
from que import TG_DC_UNBOUND, TG_DC_BOUND
# noinspection PyAbstractClass
def get_mon_vms(sr=('dc',), order_by=('hostname',), **filt... | 37.277228 | 106 | 0.619124 |
c653a244302b5a5341cd24081ae62a5772fcf996 | 3,291 | py | Python | src/mud/database/__init__.py | Martakan/YUMS | 57c8c02eac70a62233f9a48d78becb1a25bed64e | [
"MIT"
] | null | null | null | src/mud/database/__init__.py | Martakan/YUMS | 57c8c02eac70a62233f9a48d78becb1a25bed64e | [
"MIT"
] | null | null | null | src/mud/database/__init__.py | Martakan/YUMS | 57c8c02eac70a62233f9a48d78becb1a25bed64e | [
"MIT"
] | null | null | null | """
A modular, runtime re-loadable database package!
A thin wrapper around the Mongo DB library 'motor' with helper functions to abstract away
some more complex database operations.
"""
import sys as __sys
import importlib as __importlib
import motor.motor_asyncio
import asyncio
# names of the python modules/packag... | 43.88 | 112 | 0.679125 |
c6555d7ff4abb61b8057f24c0663ec8a607ba4a5 | 714 | py | Python | Pillow-4.3.0/Tests/test_image_toqpixmap.py | leorzz/simplemooc | 8b1c5e939d534b1fd729596df4c59fc69708b896 | [
"MIT"
] | null | null | null | Pillow-4.3.0/Tests/test_image_toqpixmap.py | leorzz/simplemooc | 8b1c5e939d534b1fd729596df4c59fc69708b896 | [
"MIT"
] | null | null | null | Pillow-4.3.0/Tests/test_image_toqpixmap.py | leorzz/simplemooc | 8b1c5e939d534b1fd729596df4c59fc69708b896 | [
"MIT"
] | null | null | null | from helper import unittest, PillowTestCase, hopper
from test_imageqt import PillowQtTestCase, PillowQPixmapTestCase
from PIL import ImageQt
if ImageQt.qt_is_installed:
from PIL.ImageQt import QPixmap
if __name__ == '__main__':
unittest.main()
| 25.5 | 64 | 0.666667 |
c6568e3f6207ae8a99ee488f843417b0e24ee7fa | 255 | py | Python | auth/serializers.py | sling254/the-hood | ce169abbdc368e1a7e92896abdf8237136456290 | [
"MIT"
] | null | null | null | auth/serializers.py | sling254/the-hood | ce169abbdc368e1a7e92896abdf8237136456290 | [
"MIT"
] | null | null | null | auth/serializers.py | sling254/the-hood | ce169abbdc368e1a7e92896abdf8237136456290 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from hood.models import UserProfile | 36.428571 | 68 | 0.752941 |
c657d8bfb322dd5002f78a47fc6ad0b585ab1382 | 403 | py | Python | packages/markblocks/markblocks/lex/listlexer.py | stattikcms/stattik | 5c96d600d105461edb95a11d8050dee3c32edd1e | [
"MIT"
] | 1 | 2021-11-05T06:24:28.000Z | 2021-11-05T06:24:28.000Z | packages/markblocks/markblocks/lex/listlexer.py | stattikcms/stattik | 5c96d600d105461edb95a11d8050dee3c32edd1e | [
"MIT"
] | null | null | null | packages/markblocks/markblocks/lex/listlexer.py | stattikcms/stattik | 5c96d600d105461edb95a11d8050dee3c32edd1e | [
"MIT"
] | null | null | null | from .lexer import Lexer | 18.318182 | 38 | 0.419355 |
c658055ce83117b157d548c23979f1dfab0a6ef7 | 879 | py | Python | bdn/job/migrations/0002_auto_20180820_1444.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | 1 | 2019-01-18T19:57:25.000Z | 2019-01-18T19:57:25.000Z | bdn/job/migrations/0002_auto_20180820_1444.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | 3 | 2019-06-23T17:26:24.000Z | 2022-02-11T03:40:54.000Z | bdn/job/migrations/0002_auto_20180820_1444.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-08-20 14:44
import django.contrib.postgres.fields
from django.db import migrations, models
| 29.3 | 150 | 0.609784 |
c6584a2c0e693053cb75307e5e476e2c82f9ab5b | 900 | py | Python | tripmining/model/coordinate.py | LinusDietz/tripmining | 0bb57268d623ce7bc6d36f10db529f0bf9645bd6 | [
"MIT"
] | 3 | 2020-03-20T10:26:18.000Z | 2021-03-12T11:25:31.000Z | tripmining/model/coordinate.py | LinusDietz/tripmining | 0bb57268d623ce7bc6d36f10db529f0bf9645bd6 | [
"MIT"
] | 3 | 2020-03-19T15:01:44.000Z | 2020-04-07T12:17:11.000Z | tripmining/model/coordinate.py | LinusDietz/tripmining | 0bb57268d623ce7bc6d36f10db529f0bf9645bd6 | [
"MIT"
] | 1 | 2020-01-27T13:11:09.000Z | 2020-01-27T13:11:09.000Z | import functools
import math
import operator
| 29.032258 | 101 | 0.6 |
c659e8a42adf9d9a4fef0726f9fe5a262dddce52 | 315 | py | Python | odin-libraries/python/pyodin/odin_logger.py | elijah/odin | d181cd86b9909904ba97d8090098a4913c93a894 | [
"MIT"
] | null | null | null | odin-libraries/python/pyodin/odin_logger.py | elijah/odin | d181cd86b9909904ba97d8090098a4913c93a894 | [
"MIT"
] | null | null | null | odin-libraries/python/pyodin/odin_logger.py | elijah/odin | d181cd86b9909904ba97d8090098a4913c93a894 | [
"MIT"
] | null | null | null | from os import environ
from requests import post
| 35 | 141 | 0.631746 |
d65cc2e3aa44a8e72e75284f2813f4355fc088be | 14,673 | py | Python | g2p_aligner.py | ys10/Grapheme-PhonemeAlignment | b7108822bea6da6f1b14e9692affb05d24ae55cb | [
"MIT"
] | 4 | 2018-05-31T02:52:47.000Z | 2021-03-12T09:09:57.000Z | g2p_aligner.py | ys10/Grapheme-PhonemeAlignment | b7108822bea6da6f1b14e9692affb05d24ae55cb | [
"MIT"
] | 1 | 2018-03-05T02:30:39.000Z | 2018-03-05T02:30:39.000Z | g2p_aligner.py | ys10/Grapheme-PhonemeAlignment | b7108822bea6da6f1b14e9692affb05d24ae55cb | [
"MIT"
] | 1 | 2020-04-22T07:06:33.000Z | 2020-04-22T07:06:33.000Z | # coding=utf-8
import numpy as np
from itertools import combinations_with_replacement
from my_log import logging
def load_transcription(transcription_file_name):
"""
:return: a list of tuple:
[
(word: string, phones: list),
(word: string, phones: list),
...,
... | 37.146835 | 163 | 0.559395 |
d65ef125e43cf3342be46e1656a8eaaba3ec76c9 | 6,483 | py | Python | hw-10/rainwater-hw-10.py | rainwaterone/stat656 | c582fc8c6a55c377e2b57d1f7b10471d625d79db | [
"MIT"
] | null | null | null | hw-10/rainwater-hw-10.py | rainwaterone/stat656 | c582fc8c6a55c377e2b57d1f7b10471d625d79db | [
"MIT"
] | null | null | null | hw-10/rainwater-hw-10.py | rainwaterone/stat656 | c582fc8c6a55c377e2b57d1f7b10471d625d79db | [
"MIT"
] | null | null | null | """
STAT 656 HW-10
@author:Lee Rainwater
@heavy_lifting_by: Dr. Edward Jones
@date: 2020-07-29
"""
import pandas as pd
# Classes provided from AdvancedAnalytics ver 1.25
from AdvancedAnalytics.Text import text_analysis
from AdvancedAnalytics.Text import sentiment_analysis
from sklearn.feature_extrac... | 37.912281 | 100 | 0.653555 |
d6608bea94750fd60f161e8edb1c0de3cbc454f4 | 2,113 | py | Python | main.py | nizamphoenix/EDD2020 | e8d05c38019b98cc8c5e34fd4bc50baceb8d608a | [
"MIT"
] | 4 | 2020-06-08T03:19:57.000Z | 2021-10-13T09:40:23.000Z | main.py | nizamphoenix/EDD2020 | e8d05c38019b98cc8c5e34fd4bc50baceb8d608a | [
"MIT"
] | null | null | null | main.py | nizamphoenix/EDD2020 | e8d05c38019b98cc8c5e34fd4bc50baceb8d608a | [
"MIT"
] | null | null | null | from torch.utils.data import DataLoader
from torch.utils.data.sampler import SubsetRandomSampler
from meditorch.nn.models import UNetResNet
from torchsummary import summary
import torch.optim as optim
from torch.optim import lr_scheduler
from meditorch.nn import Trainer
from meditorch.utils.plot import plot_image_truem... | 35.216667 | 119 | 0.75769 |
d661b7759b3dc688b6b6db70c85b0949bed0d166 | 10,520 | py | Python | dist/geoapi/data/queries.py | tinyperegrine/geoapi | 63d50427adef7b8db727f2942b39791bdae32a4c | [
"MIT"
] | 2 | 2021-05-24T22:00:30.000Z | 2021-07-26T07:39:23.000Z | src/geoapi/data/queries.py | tinyperegrine/geoapi | 63d50427adef7b8db727f2942b39791bdae32a4c | [
"MIT"
] | 5 | 2021-03-19T03:42:09.000Z | 2022-03-11T23:59:20.000Z | src/geoapi/data/queries.py | tinyperegrine/geoapi | 63d50427adef7b8db727f2942b39791bdae32a4c | [
"MIT"
] | null | null | null | """Query Object for all read-only queries to the Real Property table
"""
import os
import logging
from time import time
from typing import List
import asyncio
import aiohttp
import aiofiles
import databases
from PIL import Image
import sqlalchemy
from sqlalchemy.sql import select, func
import geoapi.common.spatial_uti... | 39.400749 | 120 | 0.616825 |