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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b5048a8c70006e924308165169ee5c4fabe48fa | 934 | py | Python | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2021-01-07T07:46:50.000Z | 2021-11-17T10:48:39.000Z | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2018-02-19T20:30:30.000Z | 2018-04-20T23:25:29.000Z | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover95/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 1 | 2021-01-07T07:46:52.000Z | 2021-01-07T07:46:52.000Z | import numpy as np
from math import sqrt
| 44.47619 | 115 | 0.723769 |
0b519f8596f5bf7ee53103adc8d550ce1fb62540 | 68,172 | py | Python | tests/test_generate_unique_id_function.py | ssensalo/fastapi | 146f57b8f70c5757dc20edc716dba1b96936a8d6 | [
"MIT"
] | 1 | 2022-01-08T16:39:28.000Z | 2022-01-08T16:39:28.000Z | tests/test_generate_unique_id_function.py | ssensalo/fastapi | 146f57b8f70c5757dc20edc716dba1b96936a8d6 | [
"MIT"
] | 1 | 2022-01-07T21:04:04.000Z | 2022-01-07T21:04:04.000Z | tests/test_generate_unique_id_function.py | ssensalo/fastapi | 146f57b8f70c5757dc20edc716dba1b96936a8d6 | [
"MIT"
] | null | null | null | import warnings
from typing import List
from fastapi import APIRouter, FastAPI
from fastapi.routing import APIRoute
from fastapi.testclient import TestClient
from pydantic import BaseModel
def test_top_level_generate_unique_id():
app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
route... | 41.772059 | 106 | 0.285161 |
0b5218f0be7a06f3e5bb1ddae6a9fce7c35741e8 | 11,880 | py | Python | hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/app.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | 89 | 2015-04-10T14:34:05.000Z | 2021-11-08T09:17:09.000Z | hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/app.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | 13 | 2015-03-17T15:44:41.000Z | 2020-11-19T03:07:13.000Z | hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/app.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | 19 | 2015-05-13T09:18:12.000Z | 2021-04-28T10:35:39.000Z | #!/usr/bin/env python
# encoding: utf-8
#------------------------------------------------------------------------------
# Naked | A Python command line application framework
# Copyright 2014 Christopher Simpkins
# MIT License
#------------------------------------------------------------------------------
#-----------... | 51.652174 | 135 | 0.448485 |
0b57844b6fc847c94e6d69c32ba1624b13f6dfa7 | 366 | py | Python | codes/day7_task1.py | tayyrov/AdventOfCode | 69003407fd345ea76f8125b4b132e5b5d5ea33ab | [
"MIT"
] | 1 | 2021-12-07T10:54:48.000Z | 2021-12-07T10:54:48.000Z | codes/day7_task1.py | tayyrov/AdventOfCode | 69003407fd345ea76f8125b4b132e5b5d5ea33ab | [
"MIT"
] | null | null | null | codes/day7_task1.py | tayyrov/AdventOfCode | 69003407fd345ea76f8125b4b132e5b5d5ea33ab | [
"MIT"
] | null | null | null | """
Advent Of Code 2021
Day 7
Date: 07-12-2021
Site: https://adventofcode.com/2021/day/7
Author: Tayyrov
"""
import sys
file1 = open('../input_files/day7_input', 'r')
numbers = list(map(int, file1.readlines()[0].split(",")))
numbers.sort()
middle = numbers[len(numbers)//2]
ans = 0
for n in numb... | 15.25 | 58 | 0.620219 |
0b57f9e75344dd34d7fe38dc10faa58dd476ec48 | 4,270 | py | Python | events/utils.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | null | null | null | events/utils.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | null | null | null | events/utils.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | null | null | null | import datetime
import re
import pytz
from django.utils.timezone import make_aware, is_aware
def timedelta_nice_repr(timedelta, display='long', sep=', '):
"""
Turns a datetime.timedelta object into a nice string repr.
'display' can be 'minimal', 'short' or 'long' (default).
Taken from bitbuck... | 34.16 | 102 | 0.545902 |
0b59207603dace13de5bad24d570481b2383557b | 4,282 | py | Python | frontend/main.py | loukwn/klougle | 45432841c594ced36437566f416e9c71017f83a5 | [
"MIT"
] | 2 | 2018-10-26T11:06:51.000Z | 2020-04-29T13:38:13.000Z | frontend/main.py | loukwn/klougle | 45432841c594ced36437566f416e9c71017f83a5 | [
"MIT"
] | null | null | null | frontend/main.py | loukwn/klougle | 45432841c594ced36437566f416e9c71017f83a5 | [
"MIT"
] | null | null | null | import json
import operator
import os
import webbrowser
from timeit import default_timer as timer
from kivy.app import App
from kivy.config import Config
from kivy.properties import ObjectProperty
from kivy.uix.stacklayout import StackLayout
from nltk.stem.wordnet import WordNetLemmatizer
Config.set('input', 'mouse',... | 34.532258 | 115 | 0.609295 |
0b5a05b2b3ff689eda558db7efd7ba2b693f4a50 | 1,244 | py | Python | test.py | richisusiljacob/VideoTo360VR | 14c176cfbe90fd7cf113cbdd2d4edf447c001894 | [
"MIT"
] | 5 | 2021-08-06T11:26:56.000Z | 2022-03-17T09:06:07.000Z | test.py | richisusiljacob/VideoTo360VR | 14c176cfbe90fd7cf113cbdd2d4edf447c001894 | [
"MIT"
] | 8 | 2021-07-03T08:08:00.000Z | 2021-07-09T06:59:34.000Z | test.py | richisusiljacob/VideoTo360VR | 14c176cfbe90fd7cf113cbdd2d4edf447c001894 | [
"MIT"
] | 2 | 2021-07-02T09:19:09.000Z | 2021-07-04T13:34:30.000Z | from tkinter import *
import tkinter.ttk as ttk
from PIL import ImageTk,Image
""" root = Tk()
canvas = Canvas(root, width = 300, height = 300)
canvas.pack()
img = ImageTk.PhotoImage(Image.open("output/collage1/FinalCollage.jpg"))
canvas.create_image(0,0,anchor=NW, image=img)
root.mainloop() """
root = Tk(... | 31.1 | 74 | 0.553859 |
0b5a82c329031fc6f172ed423012d36ab20bca44 | 10,817 | py | Python | testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 49.168182 | 194 | 0.665249 |
0b5a9a6d564a0a48f6482c88a286d5b324351dbc | 3,283 | py | Python | xappt_qt/plugins/tools/examples/auto_advance.py | cmontesano/xappt_qt | 74f8c62e0104a67b4b4eb65382df851221bf0bab | [
"MIT"
] | null | null | null | xappt_qt/plugins/tools/examples/auto_advance.py | cmontesano/xappt_qt | 74f8c62e0104a67b4b4eb65382df851221bf0bab | [
"MIT"
] | 12 | 2020-10-11T22:42:12.000Z | 2021-10-04T19:38:51.000Z | xappt_qt/plugins/tools/examples/auto_advance.py | cmontesano/xappt_qt | 74f8c62e0104a67b4b4eb65382df851221bf0bab | [
"MIT"
] | 1 | 2021-09-29T23:53:34.000Z | 2021-09-29T23:53:34.000Z | import time
import xappt
| 43.773333 | 110 | 0.616205 |
0b5adb9041b96e89affef15661e25d3114bd15aa | 962 | py | Python | play-1.2.4/python/Lib/site-packages/Rpyc/Utils/Discovery.py | AppSecAI-TEST/restcommander | a2523f31356938f5c7fc6d379b7678da0b1e077a | [
"Apache-2.0"
] | 550 | 2015-01-05T16:59:00.000Z | 2022-03-20T16:55:25.000Z | framework/python/Lib/site-packages/Rpyc/Utils/Discovery.py | lafayette/JBTT | 94bde9d90abbb274d29ecd82e632d43a4320876e | [
"MIT"
] | 15 | 2015-02-05T06:00:47.000Z | 2018-07-07T14:34:04.000Z | framework/python/Lib/site-packages/Rpyc/Utils/Discovery.py | lafayette/JBTT | 94bde9d90abbb274d29ecd82e632d43a4320876e | [
"MIT"
] | 119 | 2015-01-08T00:48:24.000Z | 2022-01-27T14:13:15.000Z | """
Discovery: broadcasts a query, attempting to discover all running RPyC servers
over the local network/specific subnet.
"""
import socket
import select
import struct
__all__ = ["discover_servers"]
UDP_DISCOVERY_PORT = 18813
QUERY_MAGIC = "RPYC_QUERY"
MAX_DGRAM_SIZE = 100
def discover_servers(subnet = "255.255.25... | 24.666667 | 82 | 0.672557 |
0b5cea9d906ea2c35bda5ccee23fdca482e7e9b4 | 335 | py | Python | atest/testresources/testlibs/objecttoreturn.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 7 | 2015-02-25T10:55:02.000Z | 2015-11-04T03:20:05.000Z | atest/testresources/testlibs/objecttoreturn.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 12 | 2015-02-24T17:00:06.000Z | 2015-07-31T08:32:07.000Z | atest/testresources/testlibs/objecttoreturn.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 2 | 2015-12-15T11:00:35.000Z | 2018-02-24T18:11:24.000Z | try:
import exceptions
except ImportError: # Python 3
import builtins as exceptions
| 19.705882 | 45 | 0.647761 |
0b5db17336f788ad1d51e0ebfedab480c4c72a7e | 2,068 | py | Python | quiz/models.py | jzi040941/django_quiz | 465d29c74e3ff6814f686296d225f18a50c99b9a | [
"MIT"
] | 1 | 2018-03-14T16:43:00.000Z | 2018-03-14T16:43:00.000Z | quiz/models.py | jzi040941/django_quiz | 465d29c74e3ff6814f686296d225f18a50c99b9a | [
"MIT"
] | null | null | null | quiz/models.py | jzi040941/django_quiz | 465d29c74e3ff6814f686296d225f18a50c99b9a | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
'''
class quiz_one(models.Model):
AssignNum = models.ForeignKey('teacher.Assignment', on_delete=models.CASCADE)
Question = models.TextField()
Answer = models.TextField()
Wrong_1 = models.TextField()
Wrong_2 = models.TextField()
Wrong_3 = ... | 35.655172 | 113 | 0.696325 |
0b5e2ce14cd1b7d0c4bdab1dbcbd6268fb51f4f1 | 165 | py | Python | benchmark/VAR/GG/common.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | 2 | 2019-03-20T09:05:02.000Z | 2019-03-20T15:23:44.000Z | benchmark/VAR/GG/common.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | benchmark/VAR/GG/common.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
| 27.5 | 39 | 0.866667 |
0b610800704e8c840fbc0a2a516adbeed8570f93 | 3,479 | py | Python | problems/problem3.py | JakobHavtorn/euler | b5ca0b4393dc9a6d6e0623e0df5b96f803e116ab | [
"MIT"
] | null | null | null | problems/problem3.py | JakobHavtorn/euler | b5ca0b4393dc9a6d6e0623e0df5b96f803e116ab | [
"MIT"
] | null | null | null | problems/problem3.py | JakobHavtorn/euler | b5ca0b4393dc9a6d6e0623e0df5b96f803e116ab | [
"MIT"
] | null | null | null | """Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143?
"""
import math
import numpy as np
def largest_prime_factor_naive(number):
"""
Let the given number be n and let k = 2, 3, 4, 5, ... .
For each k, if it is a factor of n ... | 28.516393 | 122 | 0.603334 |
0b61d6924578e04d8bbfa01176c73eece0bd32ef | 2,484 | py | Python | nova/tests/test_hooks.py | bopopescu/zknova | 8dd09199f5678697be228ffceeaf2c16f6d7319d | [
"Apache-2.0"
] | null | null | null | nova/tests/test_hooks.py | bopopescu/zknova | 8dd09199f5678697be228ffceeaf2c16f6d7319d | [
"Apache-2.0"
] | null | null | null | nova/tests/test_hooks.py | bopopescu/zknova | 8dd09199f5678697be228ffceeaf2c16f6d7319d | [
"Apache-2.0"
] | 1 | 2020-07-24T08:25:25.000Z | 2020-07-24T08:25:25.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack, LLC.
# 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... | 28.227273 | 78 | 0.654187 |
0b6439e111fde6d2d72ca7b4f1a3a62557d36d00 | 8,850 | py | Python | code/reasoningtool/kg-construction/QueryUniprot.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 31 | 2018-03-05T20:01:10.000Z | 2022-02-01T03:31:22.000Z | code/reasoningtool/kg-construction/QueryUniprot.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 1,774 | 2018-03-06T01:55:03.000Z | 2022-03-31T03:09:04.000Z | code/reasoningtool/kg-construction/QueryUniprot.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 19 | 2018-05-10T00:43:19.000Z | 2022-03-08T19:26:16.000Z | """ This module defines the class QueryUniprot which connects to APIs at
http://www.uniprot.org/uploadlists/, querying reactome pathways from uniprot id.
* map_enzyme_commission_id_to_uniprot_ids(ec_id)
Description:
map enzyme commission id to UniProt ids
Args:
ec_id (str): enzyme commissio... | 40.410959 | 116 | 0.63209 |
0b649e46fb5914bfe7b320bbcd19fe8e80f42ef7 | 1,624 | py | Python | code_trunk/emb.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | code_trunk/emb.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | code_trunk/emb.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | import torch
from network.siamese import SiameseNet
from network.resnet import ResidualEmbNetwork
import os
import numpy as np
from utils.datasets import DeepFashionDataset
from torchvision.transforms import Compose
from torchvision.transforms import Resize
from torchvision.transforms import ToTensor
from torchvision.t... | 28.491228 | 72 | 0.76601 |
0b67517486e91d69f9ba0a1be6a90a8c7366f494 | 507 | py | Python | src/stations/datastructures.py | cwerner/st-folium-demo | 31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6 | [
"Apache-2.0"
] | 1 | 2021-03-19T11:10:04.000Z | 2021-03-19T11:10:04.000Z | src/stations/datastructures.py | cwerner/st-folium-demo | 31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6 | [
"Apache-2.0"
] | null | null | null | src/stations/datastructures.py | cwerner/st-folium-demo | 31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
# ifu
ifu = {"name": "IFU", "geo_lat": 47.476180, "geo_lon": 11.063350}
# tereno stations
tereno_stations = [
{"name": "Fendth", "geo_lat": 47.83243, "geo_lon": 11.06111},
{"name": "Grasswang", "geo_lat": 47.57026, "geo_lon": 11.03189},
{"name": "Rottenbuch", "geo_lat": 47.73032, "ge... | 23.045455 | 69 | 0.601578 |
0b6861770f6d11f0e6e5144b7f72620064b17922 | 2,217 | py | Python | Tools/Scripts/Python/module_Basemap_RegCM_domain.py | taobrienlbl/RegCM | bda1c78790f0a1501916d0979b843216a08b2cef | [
"AFL-1.1"
] | 27 | 2019-04-23T08:36:25.000Z | 2021-11-15T08:55:01.000Z | Tools/Scripts/Python/module_Basemap_RegCM_domain.py | taobrienlbl/RegCM | bda1c78790f0a1501916d0979b843216a08b2cef | [
"AFL-1.1"
] | 9 | 2020-02-20T06:43:03.000Z | 2021-09-24T11:26:46.000Z | Tools/Scripts/Python/module_Basemap_RegCM_domain.py | taobrienlbl/RegCM | bda1c78790f0a1501916d0979b843216a08b2cef | [
"AFL-1.1"
] | 17 | 2019-06-10T12:49:05.000Z | 2021-11-14T06:55:20.000Z | #!/usr/bin/python2.6
""" Here a comment starts, with 3 quotation marks. In the same way, the comment ends ...
Purpose: Draw a base map of the CORDEX domain
Selected projection: Lambert Conformal Projection
Date: Sept. 26, 2018
Author: S. STRADA
REFERENCES:
Basemap Tool
http://basemaptutorial.re... | 41.830189 | 145 | 0.656292 |
0b691cc681e4265eeba5b9e50b719f23cdd77315 | 24,369 | py | Python | old_game/combat.py | jwvhewitt/dmeternal | bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb | [
"Apache-2.0"
] | 53 | 2015-07-03T21:25:36.000Z | 2022-02-18T23:08:38.000Z | old_game/combat.py | jwvhewitt/dmeternal | bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb | [
"Apache-2.0"
] | 5 | 2015-07-03T21:27:12.000Z | 2016-12-08T14:40:38.000Z | old_game/combat.py | jwvhewitt/dmeternal | bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb | [
"Apache-2.0"
] | 14 | 2016-02-02T06:49:51.000Z | 2022-02-24T13:24:35.000Z | from . import characters
from . import teams
from . import hotmaps
from . import pygwrap
import pygame
from . import maps
import collections
from . import image
from . import pfov
import random
from . import stats
from . import rpgmenu
from . import animobs
from . import effects
from . import enchantments
from . import... | 43.207447 | 232 | 0.57249 |
0b6a970c6ea0942a3a8927c5faff7c9dff07c309 | 4,096 | py | Python | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 2 | 2020-10-30T03:01:55.000Z | 2021-03-25T03:18:12.000Z | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 7 | 2018-06-26T02:48:09.000Z | 2021-01-21T03:12:19.000Z | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 9 | 2018-09-28T23:48:48.000Z | 2021-10-03T20:29:48.000Z | import unittest
import redis
from jobQueue import JobQueue
from tangoObjects import TangoIntValue, TangoJob
from config import Config
if __name__ == '__main__':
unittest.main()
| 29.681159 | 63 | 0.619141 |
0b6b9493f9b4caffc3dc8d7eb74ffd39200333e1 | 6,891 | py | Python | hybmc/products/Swap.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-08-18T18:34:41.000Z | 2021-12-24T07:05:19.000Z | hybmc/products/Swap.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | null | null | null | hybmc/products/Swap.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-01-31T11:41:19.000Z | 2022-03-25T19:51:20.000Z | #!/usr/bin/python
import sys
sys.path.append('./')
import QuantLib as ql
from hybmc.simulations.Payoffs import Payoff, Fixed, ZeroBond, LiborRate, Cache, Asset
from hybmc.simulations.AmcPayoffs import AmcSum
from hybmc.products.Product import Product
| 43.06875 | 110 | 0.628646 |
0b6dc7197643d4c8de27269ff87d6ea19785b867 | 1,571 | py | Python | src/streamlink/plugins/tamago.py | hymer-up/streamlink | f09bf6e04cddc78eceb9ded655f716ef3ee4b84f | [
"BSD-2-Clause"
] | 5 | 2019-07-26T17:03:26.000Z | 2020-10-17T23:23:43.000Z | src/streamlink/plugins/tamago.py | hymer-up/streamlink | f09bf6e04cddc78eceb9ded655f716ef3ee4b84f | [
"BSD-2-Clause"
] | 9 | 2018-01-14T15:20:23.000Z | 2021-03-08T20:29:51.000Z | src/streamlink/plugins/tamago.py | bumplzz69/streamlink | 34abc43875d7663ebafa241573dece272e93d88b | [
"BSD-2-Clause"
] | 4 | 2018-01-14T13:27:25.000Z | 2021-11-15T22:28:30.000Z | import re
from streamlink.plugin import Plugin
from streamlink.plugin.api import validate
from streamlink.stream import HTTPStream
from streamlink import NoStreamsError
__plugin__ = Tamago
| 29.641509 | 112 | 0.623806 |
0b6e713eceaaae29df8407fca294483723c28e41 | 17,811 | py | Python | models/misc/modules.py | zgjslc/Film-Recovery-master1 | 4497a9930398c9e826ac364056a79e5bcbf6c953 | [
"Apache-2.0"
] | null | null | null | models/misc/modules.py | zgjslc/Film-Recovery-master1 | 4497a9930398c9e826ac364056a79e5bcbf6c953 | [
"Apache-2.0"
] | null | null | null | models/misc/modules.py | zgjslc/Film-Recovery-master1 | 4497a9930398c9e826ac364056a79e5bcbf6c953 | [
"Apache-2.0"
] | null | null | null | """
Name: modules.py
Desc: This script defines some base module for building networks.
"""
from typing import Any
import torch
import torch.nn as nn
import torch.nn.functional as F
'''
class UNetDepth(nn.Module):
def __init__(self):
super(UNetDepth, self).__init__()
self.down_block1 = UNet_down_... | 41.133949 | 117 | 0.60311 |
0b6eaa68175183e78cc2a72bb734ce612395335a | 341 | py | Python | flask_webpack_bundle/config.py | briancappello/flask-webpack-bundle | 67896e6ade345e34721a8f9da156b65fc0646984 | [
"MIT"
] | null | null | null | flask_webpack_bundle/config.py | briancappello/flask-webpack-bundle | 67896e6ade345e34721a8f9da156b65fc0646984 | [
"MIT"
] | null | null | null | flask_webpack_bundle/config.py | briancappello/flask-webpack-bundle | 67896e6ade345e34721a8f9da156b65fc0646984 | [
"MIT"
] | null | null | null | import os
from flask_unchained import AppConfig
| 18.944444 | 69 | 0.730205 |
0b6fda84960a8cf5a23f750128dc700eaee71d2f | 2,458 | py | Python | touchdown/aws/elasticache/replication_group.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 14 | 2015-01-05T18:18:04.000Z | 2022-02-07T19:35:12.000Z | touchdown/aws/elasticache/replication_group.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 106 | 2015-01-06T00:17:13.000Z | 2019-09-07T00:35:32.000Z | touchdown/aws/elasticache/replication_group.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 5 | 2015-01-30T10:18:24.000Z | 2022-02-07T19:35:13.000Z | # Copyright 2014 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 32.773333 | 83 | 0.746542 |
0b6ffbf766a563164a019a52f34be9e1263ae173 | 4,197 | py | Python | core/env.py | ayyuriss/EigenFunctions | 8cb6c22871fcddb633392c0a12691e960dad5143 | [
"MIT"
] | null | null | null | core/env.py | ayyuriss/EigenFunctions | 8cb6c22871fcddb633392c0a12691e960dad5143 | [
"MIT"
] | null | null | null | core/env.py | ayyuriss/EigenFunctions | 8cb6c22871fcddb633392c0a12691e960dad5143 | [
"MIT"
] | null | null | null | import xxhash
import numpy as np
from base.grid import SimpleGRID
import scipy.sparse as SP
h = xxhash.xxh64()
s_to_i = lambda x,size : size*x[0]+x[1]
i_to_s = lambda x,size : (x%size,x//size)
def get_graph(size):
env = SimpleGRID(grid_size=size,max_time=5000)
input_shape = env.observation_space.shape
... | 26.732484 | 109 | 0.510841 |
0b710ba6108771869cc4dcfa0e46001cedd35936 | 14,324 | py | Python | tests/test_properties.py | jmborr/ipdflex | 9537247c78373f740873703448d948e7a7ada9fb | [
"MIT"
] | 3 | 2020-01-15T08:23:48.000Z | 2022-03-28T22:14:05.000Z | tests/test_properties.py | jmborr/idpflex | 9537247c78373f740873703448d948e7a7ada9fb | [
"MIT"
] | 46 | 2018-01-10T22:51:46.000Z | 2021-11-15T17:47:32.000Z | tests/test_properties.py | jmborr/ipdflex | 9537247c78373f740873703448d948e7a7ada9fb | [
"MIT"
] | 5 | 2018-01-27T15:27:45.000Z | 2020-01-15T08:23:50.000Z | import random
import numpy as np
import pytest
import tempfile
import shutil
from idpflex import properties as ps
from idpflex.properties import SecondaryStructureProperty as SSP
if __name__ == '__main__':
pytest.main()
| 39.569061 | 79 | 0.645909 |
0b71623dce279f8394f45396a0c88a69e51e39e7 | 272 | py | Python | 3d_cnn/src/constants/particles.py | mrmattuschka/DeePiCt | ef3e81ea25705076f340175d97ccff98f8d11799 | [
"Apache-2.0"
] | null | null | null | 3d_cnn/src/constants/particles.py | mrmattuschka/DeePiCt | ef3e81ea25705076f340175d97ccff98f8d11799 | [
"Apache-2.0"
] | 2 | 2022-03-08T09:22:23.000Z | 2022-03-20T21:13:07.000Z | 3d_cnn/src/constants/particles.py | ZauggGroup/DeePiCt | 0bdf1cd845cc306e66e30face1010c12ca3a38d0 | [
"Apache-2.0"
] | null | null | null | from os.path import join
| 34 | 74 | 0.636029 |
0b72374ff1f0c05184c363dcfc881dd0ee234e7e | 13,807 | py | Python | unn/models/heads/utils/loss.py | zongdaoming/TinyTransformer | 8e64f8816117048c388b4b20e3a56760ce149fe3 | [
"Apache-2.0"
] | 2 | 2021-08-08T11:23:14.000Z | 2021-09-16T04:05:23.000Z | unn/models/heads/utils/loss.py | zongdaoming/TinyTransformer | 8e64f8816117048c388b4b20e3a56760ce149fe3 | [
"Apache-2.0"
] | 1 | 2021-08-08T11:25:47.000Z | 2021-08-08T11:26:15.000Z | unn/models/heads/utils/loss.py | zongdaoming/TinyTransformer | 8e64f8816117048c388b4b20e3a56760ce149fe3 | [
"Apache-2.0"
] | null | null | null | import logging
import torch
import torch.nn as nn
import torch.nn.functional as F
from .... import extensions as E
from . import accuracy as A
logger = logging.getLogger('global')
def ohem_loss(batch_size, cls_pred, cls_target, loc_pred, loc_target, cls_type='softmax', smooth_l1_sigma=1.0):
"""
Argument... | 35.043147 | 127 | 0.599768 |
0b729c6af7d440093ab2706bff962e7602e418a9 | 1,327 | py | Python | integration/phore/tests/shardsynctest.py | phoreproject/synapse | 77d10ca2eb7828ca9f7c8e29b72a73cf2c07f954 | [
"MIT"
] | 9 | 2018-09-30T18:56:26.000Z | 2019-10-30T23:09:07.000Z | integration/phore/tests/shardsynctest.py | phoreproject/synapse | 77d10ca2eb7828ca9f7c8e29b72a73cf2c07f954 | [
"MIT"
] | 102 | 2018-11-09T16:17:59.000Z | 2020-11-04T19:06:01.000Z | integration/phore/tests/shardsynctest.py | phoreproject/graphene | 77d10ca2eb7828ca9f7c8e29b72a73cf2c07f954 | [
"MIT"
] | 5 | 2018-11-05T14:29:24.000Z | 2020-06-08T19:26:05.000Z | import logging
from phore.framework import tester, validatornode, shardnode
from phore.pb import common_pb2
ex = ShardSyncTest()
ex.run()
| 26.54 | 105 | 0.667671 |
0b72b6b59c7098297806590340d0f99c8c866547 | 426 | py | Python | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# vim: ts=2 sw=2 et
#
import sys
#from wx.py.crust import Display
inchpm=39.3700
dpi=100
if len(sys.argv) >1:
dpi=int(sys.argv[1])
displaympp=1/(float(dpi)*inchpm)
print "display mpp=%f"%(displaympp)
mpp= 20037508.342789244 * 2 / 256
print "Level : mpp \t\t: scale"
for i in ra... | 16.384615 | 54 | 0.638498 |
0b7345be2719bd8b7fdccdbf2d4ec3d3cec346b7 | 314 | py | Python | Lower_Upper_Counter/Lower_Upper_Counter.py | GracjanBuczek/Python | 655801ae58ed7ef21f7da2f69f649c556b20aaee | [
"MIT"
] | null | null | null | Lower_Upper_Counter/Lower_Upper_Counter.py | GracjanBuczek/Python | 655801ae58ed7ef21f7da2f69f649c556b20aaee | [
"MIT"
] | null | null | null | Lower_Upper_Counter/Lower_Upper_Counter.py | GracjanBuczek/Python | 655801ae58ed7ef21f7da2f69f649c556b20aaee | [
"MIT"
] | null | null | null | x = input("Enter sentence: ")
count={"Uppercase":0, "Lowercase":0}
for i in x:
if i.isupper():
count["Uppercase"]+=1
elif i.islower():
count["Lowercase"]+=1
else:
pass
print ("There is:", count["Uppercase"], "uppercases.")
print ("There is:", count["Lowercase"], "lowercases.")
| 26.166667 | 54 | 0.582803 |
0b740ea892a08bb96379c733e82f7e4324d439a4 | 684 | py | Python | examples/driving_in_traffic/scenarios/loop/scenario.py | zbzhu99/SMARTS | 652aa23e71bd4e2732e2742140cfcd0ec082a7da | [
"MIT"
] | 2 | 2021-12-13T12:41:54.000Z | 2021-12-16T03:10:24.000Z | examples/driving_in_traffic/scenarios/loop/scenario.py | zbzhu99/SMARTS | 652aa23e71bd4e2732e2742140cfcd0ec082a7da | [
"MIT"
] | null | null | null | examples/driving_in_traffic/scenarios/loop/scenario.py | zbzhu99/SMARTS | 652aa23e71bd4e2732e2742140cfcd0ec082a7da | [
"MIT"
] | null | null | null | from pathlib import Path
from smarts.sstudio import gen_scenario
from smarts.sstudio import types as t
traffic = t.Traffic(
flows=[
t.Flow(
route=t.RandomRoute(),
rate=60 * 60,
actors={t.TrafficActor(name="car", vehicle_type=vehicle_type): 1},
)
for vehi... | 20.117647 | 78 | 0.483918 |
0b74a2d6dbfc76ec355ef8ff8e62599cfa40e389 | 13,196 | py | Python | asyncorm/models/models.py | kejkz/asyncorm | 6342e2d5fbaa22fb368aead772ac4f255df7562a | [
"Apache-2.0"
] | 1 | 2017-02-27T05:37:39.000Z | 2017-02-27T05:37:39.000Z | asyncorm/models/models.py | kejkz/asyncorm | 6342e2d5fbaa22fb368aead772ac4f255df7562a | [
"Apache-2.0"
] | null | null | null | asyncorm/models/models.py | kejkz/asyncorm | 6342e2d5fbaa22fb368aead772ac4f255df7562a | [
"Apache-2.0"
] | null | null | null | import inspect
import os
from collections import Callable
from asyncorm.application.configure import get_model
from asyncorm.exceptions import AsyncOrmFieldError, AsyncOrmModelDoesNotExist, AsyncOrmModelError
from asyncorm.manager import ModelManager
from asyncorm.models.fields import AutoField, Field, ForeignKey, Man... | 35.761518 | 118 | 0.572674 |
0b7531882bc3693d78e18104d816fb7003ff5f35 | 74,222 | py | Python | pyseq/main.py | nygctech/PySeq2500 | 6969f178a5f5837ce2f41887d59624bf4cc39433 | [
"MIT"
] | 9 | 2019-09-25T16:41:42.000Z | 2021-11-15T08:49:48.000Z | pyseq/main.py | nygctech/PySeq2500 | 6969f178a5f5837ce2f41887d59624bf4cc39433 | [
"MIT"
] | 8 | 2020-07-18T09:50:33.000Z | 2022-03-12T01:01:21.000Z | pyseq/main.py | nygctech/PySeq2500 | 6969f178a5f5837ce2f41887d59624bf4cc39433 | [
"MIT"
] | 5 | 2020-08-02T09:51:12.000Z | 2022-01-04T15:54:32.000Z | """
TODO:
"""
import time
import logging
import os
from os.path import join
import sys
import configparser
import threading
import argparse
from . import methods
from . import args
from . import focus
# Global int to track # of errors d... | 38.437079 | 159 | 0.52832 |
0b77f76b149075d4d3817aa9211f7115e499a12a | 273 | py | Python | tests/parser/rewriting.projection.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/rewriting.projection.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/rewriting.projection.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
f(X,1) :- a(X,Y),
g(A,X),g(B,X),
not f(1,X).
a(X,Y) :- g(X,0),g(Y,0).
g(x1,0).
g(x2,0).
"""
output = """
f(X,1) :- a(X,Y),
g(A,X),g(B,X),
not f(1,X).
a(X,Y) :- g(X,0),g(Y,0).
g(x1,0).
g(x2,0).
"""
| 11.869565 | 25 | 0.296703 |
0b78677adaa1ddcbacf884f29508f3b4ea829e33 | 5,100 | py | Python | focus/receiver.py | frederikhermans/focus | 6228ba5fc8b41c74f2e22d5c2de20040b206d70a | [
"BSD-3-Clause"
] | 6 | 2016-04-18T09:40:16.000Z | 2021-01-05T22:03:54.000Z | focus/receiver.py | horizon00/focus | 6228ba5fc8b41c74f2e22d5c2de20040b206d70a | [
"BSD-3-Clause"
] | 1 | 2017-12-10T14:13:50.000Z | 2017-12-10T14:13:50.000Z | focus/receiver.py | horizon00/focus | 6228ba5fc8b41c74f2e22d5c2de20040b206d70a | [
"BSD-3-Clause"
] | 5 | 2018-01-04T14:59:50.000Z | 2018-10-20T14:40:21.000Z | # Copyright (c) 2016, Frederik Hermans, Liam McNamara
#
# This file is part of FOCUS and is licensed under the 3-clause BSD license.
# The full license can be found in the file COPYING.
import cPickle as pickle
import sys
import click
import imageframer
import numpy as np
import rscode
import focus
if __name__... | 36.428571 | 81 | 0.610196 |
0b7aa19dc4e53889b36908ba53b351bf9cbef5d2 | 6,444 | py | Python | calc/bond.py | RaphaelOneRepublic/financial-calculator | 2451b35a4cb52a6c254ae9fdae462dfebdc51e65 | [
"MIT"
] | 2 | 2020-12-10T13:00:43.000Z | 2020-12-19T16:59:48.000Z | calc/bond.py | RaphaelOneRepublic/financial-calculator | 2451b35a4cb52a6c254ae9fdae462dfebdc51e65 | [
"MIT"
] | null | null | null | calc/bond.py | RaphaelOneRepublic/financial-calculator | 2451b35a4cb52a6c254ae9fdae462dfebdc51e65 | [
"MIT"
] | null | null | null | import logging
from typing import Sequence
import numpy as np
from calc.optimize import root
def bootstrap(bonds: Sequence[Bond], overnight: float, epsilon: float = 10e-10):
"""
Bootstrap a zero rate curve from the given bonds and bond values.
Note that the bonds must have equal coupon payment periods... | 24.689655 | 113 | 0.542675 |
0b7ab6dccc22b64a51e866ea9c844d792babb7c7 | 9,074 | py | Python | jasy/build/Script.py | sebastian-software/jasy | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | [
"MIT"
] | 2 | 2015-05-27T19:30:49.000Z | 2015-12-10T16:55:14.000Z | jasy/build/Script.py | sebastian-software/jasy | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | [
"MIT"
] | 2 | 2015-03-16T09:15:58.000Z | 2015-04-07T19:05:47.000Z | jasy/build/Script.py | sebastian-software/jasy | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | [
"MIT"
] | 2 | 2017-07-18T20:08:05.000Z | 2021-01-04T10:46:14.000Z | #
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
# Copyright 2013-2014 Sebastian Werner
#
import os
import jasy
import jasy.core.Console as Console
from jasy.item.Script import ScriptError
from jasy.item.Script import ScriptItem
import jasy.script.Resolver as ScriptResolver
from jasy.script.Resolve... | 33.116788 | 168 | 0.601278 |
0b7b1e425f8017f791073b532d42d48a2786d924 | 171 | py | Python | 13.py | kwoshvick/project-euler | d27370b0f22b51ad9ccb15afa912983d8fd8be5c | [
"MIT"
] | null | null | null | 13.py | kwoshvick/project-euler | d27370b0f22b51ad9ccb15afa912983d8fd8be5c | [
"MIT"
] | null | null | null | 13.py | kwoshvick/project-euler | d27370b0f22b51ad9ccb15afa912983d8fd8be5c | [
"MIT"
] | null | null | null | file = open("13")
sum = 0
for numbers in file:
#print(numbers.rstrip())
numbers = int(numbers)
sum += numbers;
print(sum)
sum = str(sum)
print(sum[:10])
| 10.6875 | 28 | 0.596491 |
0b7d1c464ba5f7b2f25f469546bc0725ef4ae2f0 | 25,033 | py | Python | snlds/model_cavi_snlds.py | egonrian/google-research | 8177adbe9ca0d7e5a9463b54581fe6dd27be0974 | [
"Apache-2.0"
] | 3 | 2021-01-18T04:46:49.000Z | 2021-03-05T09:21:40.000Z | snlds/model_cavi_snlds.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 25 | 2020-07-25T08:53:09.000Z | 2022-03-12T00:43:02.000Z | snlds/model_cavi_snlds.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2021-02-08T10:25:45.000Z | 2021-04-17T14:46:26.000Z | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | 40.770358 | 80 | 0.667878 |
0b7d1f1e2fd547f10391c4be9766498485799dc7 | 1,581 | py | Python | grid_search/mlp_gridsearch.py | RiboswitchClassifier/RiboswitchClassification | 4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7 | [
"MIT"
] | 2 | 2019-12-16T13:08:28.000Z | 2021-02-23T03:03:18.000Z | grid_search/mlp_gridsearch.py | RiboswitchClassifier/RiboswitchClassification | 4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7 | [
"MIT"
] | null | null | null | grid_search/mlp_gridsearch.py | RiboswitchClassifier/RiboswitchClassification | 4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7 | [
"MIT"
] | 3 | 2019-01-01T06:00:20.000Z | 2020-01-28T13:57:49.000Z |
from sklearn.model_selection import cross_val_score, GridSearchCV, cross_validate, train_test_split
from sklearn.metrics import accuracy_score, classification_report
from sklearn.neural_network import MLPClassifier
import pandas as pd
import csv
from sklearn.preprocessing import label_binarize
from sklearn.preprocessi... | 27.258621 | 116 | 0.759646 |
0b7e90a5769d5e45dae418f0e034fd90269bdc99 | 711 | py | Python | bermuda/demos/shape_options.py | glue-viz/bermuda | 0bc26bac376d4f08a4964481d1f737f6deb86270 | [
"BSD-3-Clause"
] | 1 | 2018-07-20T21:09:46.000Z | 2018-07-20T21:09:46.000Z | bermuda/demos/shape_options.py | glue-viz/bermuda | 0bc26bac376d4f08a4964481d1f737f6deb86270 | [
"BSD-3-Clause"
] | null | null | null | bermuda/demos/shape_options.py | glue-viz/bermuda | 0bc26bac376d4f08a4964481d1f737f6deb86270 | [
"BSD-3-Clause"
] | 1 | 2018-07-20T21:15:41.000Z | 2018-07-20T21:15:41.000Z | import matplotlib.pyplt as plt
from bermuda import ellipse, polygon, rectangle
plt.plot([1,2,3], [2,3,4])
ax = plg.gca()
# default choices for everything
e = ellipse(ax)
# custom position, genric interface for all shapes
e = ellipse(ax, bbox = (x, y, w, h, theta))
e = ellipse(ax, cen=(x, y), width=w, height=h, the... | 24.517241 | 59 | 0.707454 |
0b7fbd1451d21df02b8ac7806cf7eef5c4dcbb14 | 5,605 | py | Python | porthole/contact_management.py | speedyturkey/porthole | 5d47bb00d33d5aa93c3d2e84af993b5387b66be6 | [
"MIT"
] | 3 | 2017-06-22T01:52:10.000Z | 2019-09-25T22:52:56.000Z | porthole/contact_management.py | speedyturkey/porthole | 5d47bb00d33d5aa93c3d2e84af993b5387b66be6 | [
"MIT"
] | 48 | 2017-06-22T23:36:03.000Z | 2019-11-26T02:51:54.000Z | porthole/contact_management.py | speedyturkey/porthole | 5d47bb00d33d5aa93c3d2e84af993b5387b66be6 | [
"MIT"
] | 1 | 2019-02-27T13:59:07.000Z | 2019-02-27T13:59:07.000Z | from sqlalchemy.orm.exc import NoResultFound
from porthole.app import Session
from .logger import PortholeLogger
from porthole.models import AutomatedReport, AutomatedReportContact, AutomatedReportRecipient
| 49.60177 | 118 | 0.702587 |
0b8210f4f1d6486c1ca027ea81ba3795882b8a8f | 3,433 | py | Python | tests/python/benchmarks/two_neighborhood_bench.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 163 | 2015-01-02T03:51:38.000Z | 2022-03-21T23:06:39.000Z | tests/python/benchmarks/two_neighborhood_bench.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 1 | 2015-04-08T23:17:06.000Z | 2015-04-24T15:25:26.000Z | tests/python/benchmarks/two_neighborhood_bench.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 20 | 2015-02-17T19:24:05.000Z | 2020-10-29T01:59:18.000Z | #! /usr/bin/env python
#
# ===============================================================
# Description: Two neighborhood benchmark
#
# Created: 2014-03-21 13:39:06
#
# Author: Ayush Dubey, dubey@cs.cornell.edu
#
# Copyright (C) 2013-2014, Cornell University, see the LICENSE
# ... | 26.206107 | 106 | 0.633265 |
0b829ab3570dda786322f71fd0c867093ba7b3dc | 1,705 | py | Python | composer/datasets/brats_hparams.py | growlix/composer | 27418a3c65dca26d90ac09c6ae67cbd5d0202ccf | [
"Apache-2.0"
] | null | null | null | composer/datasets/brats_hparams.py | growlix/composer | 27418a3c65dca26d90ac09c6ae67cbd5d0202ccf | [
"Apache-2.0"
] | null | null | null | composer/datasets/brats_hparams.py | growlix/composer | 27418a3c65dca26d90ac09c6ae67cbd5d0202ccf | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
"""BraTS (Brain Tumor Segmentation) dataset hyperparameters."""
from dataclasses import dataclass
import torch
import yahp as hp
from composer.datasets.brats import PytTrain, PytVal, get_data_split
from composer.datasets.dataset_hparam... | 32.788462 | 101 | 0.71261 |
0b83bfc7e85aab893f830a54d4b1eb6b31224483 | 43 | py | Python | examples/getchar.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | 3 | 2022-03-13T13:22:35.000Z | 2022-03-18T08:22:51.000Z | examples/getchar.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | 1 | 2022-03-21T16:29:54.000Z | 2022-03-21T16:29:54.000Z | examples/getchar.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | null | null | null | from quo.getchar import getchar
getchar()
| 10.75 | 31 | 0.790698 |
0b83f0ab273b13a1a169d3aa5355aab90ac31ca1 | 313 | py | Python | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | 5 | 2018-04-11T15:19:53.000Z | 2020-10-27T15:23:18.000Z | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='syntaxerrors',
version='0.0.1',
description='Report better SyntaxErrors',
author='Carl Friedrich Bolz-Tereick',
author_email='cfbolz@gmx.de',
packages=['syntaxerrors'],
package_dir={'': 'src'},
include_package_data=True,
)
| 24.076923 | 45 | 0.686901 |
0b843ec57c40e34a7b0ee2c71349c26723ef8771 | 1,492 | py | Python | unit/either_spec.py | tek/amino | 51b314933e047a45587a24ecff02c836706d27ff | [
"MIT"
] | 33 | 2016-12-21T07:05:46.000Z | 2020-04-29T04:26:46.000Z | unit/either_spec.py | tek/amino | 51b314933e047a45587a24ecff02c836706d27ff | [
"MIT"
] | 1 | 2019-04-19T17:15:52.000Z | 2019-04-20T18:28:23.000Z | unit/either_spec.py | tek/amino | 51b314933e047a45587a24ecff02c836706d27ff | [
"MIT"
] | 4 | 2017-09-04T18:46:23.000Z | 2021-11-02T04:18:13.000Z | import operator
from amino.either import Left, Right
from amino import Empty, Just, Maybe, List, Either, _
from amino.test.spec_spec import Spec
from amino.list import Lists
__all__ = ('EitherSpec',)
| 31.744681 | 73 | 0.586461 |
0b84b4636dfd6d734d772cca8a444833fce6d004 | 221 | py | Python | Modulo_1/semana2/variables_contantes/sentencia-global.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_1/semana2/variables_contantes/sentencia-global.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_1/semana2/variables_contantes/sentencia-global.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z | variable1 = "variable original"
print(variable1)
#variable original
variable_global()
print(variable1)
#variable global modificada
| 20.090909 | 44 | 0.78733 |
0b84d29786d1202df0158d5a5b88910f8c8196a5 | 1,314 | py | Python | weather_alarm/main.py | Cs4r/weather_alarm | b78b6f11f91e3b81aa43a1bfaa55074a0626a036 | [
"MIT"
] | null | null | null | weather_alarm/main.py | Cs4r/weather_alarm | b78b6f11f91e3b81aa43a1bfaa55074a0626a036 | [
"MIT"
] | null | null | null | weather_alarm/main.py | Cs4r/weather_alarm | b78b6f11f91e3b81aa43a1bfaa55074a0626a036 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import datetime
import os
from apscheduler.schedulers.blocking import BlockingScheduler
from weather_alarm.constants import *
from weather_alarm.forecaster import Forecaster
from weather_alarm.sender import NotificationSender
sender = NotificationSender(BOT_TOKEN, TELEG... | 32.04878 | 120 | 0.780822 |
0b88cc0b918db3b0b9bc55668bf46c025033b785 | 2,237 | py | Python | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
authlib.oauth2.rfc6749
~~~~~~~~~~~~~~~~~~~~~~
This module represents a direct implementation of
The OAuth 2.0 Authorization Framework.
https://tools.ietf.org/html/rfc6749
"""
from .wrappers import OAuth2Request, OAuth2Token, HttpRequest
from .errors import (
OAuth2... | 27.617284 | 67 | 0.743406 |
0b88fa702aed7c893ac61d3d5a2bd66384c1a59d | 1,613 | py | Python | scripts/serial_command.py | philip-long/singletact-python-wrapper | 659796f614116db77f31d6b0cc1e0c963104948e | [
"MIT"
] | null | null | null | scripts/serial_command.py | philip-long/singletact-python-wrapper | 659796f614116db77f31d6b0cc1e0c963104948e | [
"MIT"
] | null | null | null | scripts/serial_command.py | philip-long/singletact-python-wrapper | 659796f614116db77f31d6b0cc1e0c963104948e | [
"MIT"
] | null | null | null | TIMEOUT=100
| 23.042857 | 66 | 0.49349 |
0b89d5110511e9a326a0adf1605527ae76c9199c | 1,220 | py | Python | 1SiteRanking/create_kernel_density_map_arcpy.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | 3 | 2021-07-15T15:58:52.000Z | 2021-07-16T13:22:47.000Z | 1SiteRanking/create_kernel_density_map_arcpy.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | null | null | null | 1SiteRanking/create_kernel_density_map_arcpy.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | 4 | 2017-08-04T12:41:06.000Z | 2019-01-31T14:55:10.000Z | # coding:utf-8
# version:python2.7.3
# author:kyh
# import x,y data from txt and create kernel density map
import arcpy
from arcpy.sa import *
from arcpy import env
if __name__ == '__main__':
arcpy.CheckOutExtension('Spatial')
env.workspace=("D:\Users\KYH\Documents\ArcGIS\FlickrPhoto")
for i in range(0,2... | 33.888889 | 127 | 0.645902 |
0b8ab81b9a756ab917e11852711a0c75ca7514c2 | 6,676 | py | Python | src/explore.py | dngo13/enpm808x_inspection_robot | 41f598d97d6526d4e85d1b738cd0bf1bce781b08 | [
"MIT"
] | null | null | null | src/explore.py | dngo13/enpm808x_inspection_robot | 41f598d97d6526d4e85d1b738cd0bf1bce781b08 | [
"MIT"
] | null | null | null | src/explore.py | dngo13/enpm808x_inspection_robot | 41f598d97d6526d4e85d1b738cd0bf1bce781b08 | [
"MIT"
] | 2 | 2021-12-05T23:39:56.000Z | 2021-12-06T17:54:54.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""*******************************************************************************
* MIT License
* Copyright (c) Charu Sharma 2021
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 34.061224 | 100 | 0.673457 |
0b8b1ecbeb3c81d6b86bae93b7d7c89aca388a29 | 893 | py | Python | mapclientplugins/loadcsvstep/utils/processCSV.py | mahyar-osn/mapclientplugins.loadcsvstep | 2d483d4054f4c30247303e8d4eba706b70364158 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/loadcsvstep/utils/processCSV.py | mahyar-osn/mapclientplugins.loadcsvstep | 2d483d4054f4c30247303e8d4eba706b70364158 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/loadcsvstep/utils/processCSV.py | mahyar-osn/mapclientplugins.loadcsvstep | 2d483d4054f4c30247303e8d4eba706b70364158 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
| 28.806452 | 106 | 0.631579 |
0b8bbb57f61438a9cdd497a599dabe456d4ca928 | 2,521 | py | Python | src/api/handlers/projects/tokens.py | sap-steffen/InfraBox | 36c8b626b517415e4363c99037c5d2c118966e56 | [
"Apache-2.0"
] | 50 | 2017-09-03T15:54:08.000Z | 2019-03-13T16:53:15.000Z | src/api/handlers/projects/tokens.py | sap-steffen/InfraBox | 36c8b626b517415e4363c99037c5d2c118966e56 | [
"Apache-2.0"
] | 241 | 2017-09-03T14:40:08.000Z | 2022-03-02T02:32:26.000Z | src/api/handlers/projects/tokens.py | sap-steffen/InfraBox | 36c8b626b517415e4363c99037c5d2c118966e56 | [
"Apache-2.0"
] | 17 | 2017-09-03T11:28:01.000Z | 2018-04-30T15:58:18.000Z | from flask import request, g, abort
from flask_restplus import Resource, fields
from pyinfrabox.utils import validate_uuid4
from pyinfraboxutils.ibflask import auth_required, OK
from pyinfraboxutils.ibrestplus import api
from pyinfraboxutils.token import encode_project_token
from api.namespaces import project as ns
p... | 31.911392 | 84 | 0.624752 |
0b8c281f2be1b5f006c8dd22b32012df4fb6d732 | 2,716 | py | Python | tigergraph/benchmark.py | yczhang1017/ldbc_snb_bi | 5b97da8b2596e88bc460d5568fc7b31587695b62 | [
"Apache-2.0"
] | null | null | null | tigergraph/benchmark.py | yczhang1017/ldbc_snb_bi | 5b97da8b2596e88bc460d5568fc7b31587695b62 | [
"Apache-2.0"
] | null | null | null | tigergraph/benchmark.py | yczhang1017/ldbc_snb_bi | 5b97da8b2596e88bc460d5568fc7b31587695b62 | [
"Apache-2.0"
] | null | null | null | import argparse
from pathlib import Path
from datetime import datetime, date, timedelta
from queries import run_queries, precompute, cleanup
from batches import run_batch_update
import os
import time
import re
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='LDBC TigerGraph BI workload Benc... | 48.5 | 186 | 0.654639 |
0b8cb9211db86e8a3c8e8b138c17ac41f7b2fae4 | 3,001 | py | Python | wgan/updater.py | Aixile/chainer-gan-experiments | 4371e8369d2805e8ace6d7aacc397aa6e62680a6 | [
"MIT"
] | 70 | 2017-06-24T10:55:57.000Z | 2021-11-23T22:52:37.000Z | wgan/updater.py | Aixile/chainer-gan-experiments | 4371e8369d2805e8ace6d7aacc397aa6e62680a6 | [
"MIT"
] | 1 | 2017-08-21T06:19:31.000Z | 2017-08-21T07:54:28.000Z | wgan/updater.py | Aixile/chainer-gan-experiments | 4371e8369d2805e8ace6d7aacc397aa6e62680a6 | [
"MIT"
] | 16 | 2017-08-22T07:00:16.000Z | 2018-11-18T16:15:21.000Z | import numpy as np
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import cuda, optimizers, serializers, Variable
import sys
sys.path.insert(0, '../')
from common.loss_functions import *
| 31.589474 | 104 | 0.587471 |
0b8d785a697c0b3da778b64fbf2cc6f8d4ea2d37 | 19,032 | py | Python | tools/ig/definitions.py | grahamegrieve/vocab-poc | 9f8b6c29b32f15c9513f16f148fdf2a441ba3897 | [
"BSD-3-Clause"
] | 2 | 2017-06-25T22:15:18.000Z | 2017-09-15T05:12:50.000Z | tools/ig/definitions.py | grahamegrieve/vocab-poc | 9f8b6c29b32f15c9513f16f148fdf2a441ba3897 | [
"BSD-3-Clause"
] | null | null | null | tools/ig/definitions.py | grahamegrieve/vocab-poc | 9f8b6c29b32f15c9513f16f148fdf2a441ba3897 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python3.
# create ig definition file with all value sets in the /resources directory
import json, os, sys, logging, re, csv
from lxml import etree
#logging.disable(logging.CRITICAL)
logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s- %(message)s')
logging.info('Start of progr... | 49.5625 | 457 | 0.620954 |
0b8f097eaf823137c79c39a4fcd3c6e49316ae19 | 8,456 | py | Python | src/sadie/renumbering/clients/g3.py | jwillis0720/pybody | 2d7c68650ac1ef5f3003ccb67171898eac1f63eb | [
"MIT"
] | null | null | null | src/sadie/renumbering/clients/g3.py | jwillis0720/pybody | 2d7c68650ac1ef5f3003ccb67171898eac1f63eb | [
"MIT"
] | null | null | null | src/sadie/renumbering/clients/g3.py | jwillis0720/pybody | 2d7c68650ac1ef5f3003ccb67171898eac1f63eb | [
"MIT"
] | null | null | null | from functools import lru_cache
from itertools import product
from pathlib import Path
from typing import Optional, List, Tuple
from pydantic import validate_arguments
import pyhmmer
import requests as r
from yarl import URL
from sadie.typing import Species, Chain, Source
# def get_msa(
# self,
# ... | 33.555556 | 119 | 0.561968 |
0b904a57fdd0e7c89f250e4ba02b11a25b8c89d4 | 1,683 | py | Python | projects/shadow/kmap-builder-jython27/MapReduce/mappers/__init__.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | projects/shadow/kmap-builder-jython27/MapReduce/mappers/__init__.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | 11 | 2015-01-25T14:22:52.000Z | 2015-09-08T09:59:38.000Z | projects/shadow/kmap-builder-jython27/MapReduce/mappers/__init__.py | zaqwes8811/vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from nlp_components.content_items_processors import process_list_content_sentences
from nlp_components.content_items_processors import process_list_content_sentences_real
import dals.os_io.io_wrapper as dal
import json
# NO DRY!!
def mapper(job):
""" [node_name, index_word, [count_sent, summ_sen... | 24.75 | 87 | 0.673203 |
0b9068ae3299f03b04a8be28a4b732a299e46459 | 1,132 | py | Python | config.py | xXAligatorXx/repostAlert | 74f450b577fa0971632a57c7d1f599eea4808427 | [
"MIT"
] | 25 | 2018-10-18T15:16:39.000Z | 2019-06-06T04:33:20.000Z | config.py | xXAligatorXx/repostAlert | 74f450b577fa0971632a57c7d1f599eea4808427 | [
"MIT"
] | 6 | 2018-10-17T01:34:13.000Z | 2019-06-08T18:31:41.000Z | config.py | xXAligatorXx/repostAlert | 74f450b577fa0971632a57c7d1f599eea4808427 | [
"MIT"
] | 2 | 2018-10-25T19:42:45.000Z | 2018-12-05T23:09:06.000Z | import os
client_id = os.environ['BOT_CLIENT_ID']
client_secret = os.environ['BOT_CLIENT_SECRET']
user_agent = os.environ['BOT_USER_AGENT']
username = os.environ['BOT_USERNAME']
password = os.environ['BOT_PASSWORD']
num_subs = int(os.environ['BOT_SUB_COUNT'])
sub_settings = [[
os.environ['BOT_SUBREDDIT' + i],
... | 56.6 | 102 | 0.682862 |
0b906bf27fc67aeba61a035efc941b80ca56e405 | 4,305 | py | Python | lib/aquilon/worker/formats/list.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | lib/aquilon/worker/formats/list.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | lib/aquilon/worker/formats/list.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2017 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ma... | 38.783784 | 83 | 0.673635 |
0b9113a200832679e9fc55536bc662bb2d860b4c | 228 | py | Python | satyrus/sat/types/string.py | lucasvg/Satyrus3-FinalProject-EspTopsOTM | 024785752abdc46e3463d8c94df7c3da873c354d | [
"MIT"
] | null | null | null | satyrus/sat/types/string.py | lucasvg/Satyrus3-FinalProject-EspTopsOTM | 024785752abdc46e3463d8c94df7c3da873c354d | [
"MIT"
] | null | null | null | satyrus/sat/types/string.py | lucasvg/Satyrus3-FinalProject-EspTopsOTM | 024785752abdc46e3463d8c94df7c3da873c354d | [
"MIT"
] | null | null | null | from .main import SatType
| 25.333333 | 49 | 0.605263 |
0b944182e57c98d2c412133b9ff0a2ad81333fdb | 737 | py | Python | setup.py | ZeroCater/zerocaterpy | 824af8613db0c5f203c0b2f7cebd830ee80eea5d | [
"MIT"
] | null | null | null | setup.py | ZeroCater/zerocaterpy | 824af8613db0c5f203c0b2f7cebd830ee80eea5d | [
"MIT"
] | null | null | null | setup.py | ZeroCater/zerocaterpy | 824af8613db0c5f203c0b2f7cebd830ee80eea5d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='zerocater',
version='0.0.1',
description="Python interface to ZeroCater",
long_description='',
keywords='zerocater food delivery meal planning catering lunch',
author='ZeroCater',
author_email='tech@zerocater.com',
url='https://github.c... | 35.095238 | 76 | 0.63365 |
0b95ab4e62401288fe9f479867e2cab6f6c5d09c | 373 | py | Python | tests/conftest.py | scottmanderson/minerva | fe6a6857d892d9c7d881701c91990d9697bde00e | [
"MIT"
] | null | null | null | tests/conftest.py | scottmanderson/minerva | fe6a6857d892d9c7d881701c91990d9697bde00e | [
"MIT"
] | null | null | null | tests/conftest.py | scottmanderson/minerva | fe6a6857d892d9c7d881701c91990d9697bde00e | [
"MIT"
] | null | null | null | import pytest
from app import create_app, db
from config import TestConfig
| 18.65 | 51 | 0.72118 |
0b96aaa21f422ac0c7d22576279c69b61dd42c95 | 154 | py | Python | Test/two/payments/momo/urls.py | titan256/Python-Django-Assignment | 9f56f69ea7182456729116e27435231925d24d11 | [
"MIT"
] | null | null | null | Test/two/payments/momo/urls.py | titan256/Python-Django-Assignment | 9f56f69ea7182456729116e27435231925d24d11 | [
"MIT"
] | 9 | 2020-06-05T23:53:04.000Z | 2022-02-10T08:33:32.000Z | Test/two/payments/momo/urls.py | titan256/Python-Django-Assignment | 9f56f69ea7182456729116e27435231925d24d11 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path , include
from . import views
urlpatterns = [
path('',views.index,name='index')
] | 19.25 | 38 | 0.701299 |
0b975c6ddf1a134fa942ba06d2fe6a39b749365f | 6,435 | py | Python | pdsensorvis/sensors/models.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | 2 | 2019-10-05T20:59:41.000Z | 2019-11-01T20:25:39.000Z | pdsensorvis/sensors/models.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | 6 | 2019-10-24T12:28:02.000Z | 2021-08-09T09:56:26.000Z | pdsensorvis/sensors/models.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
from django.utils import timezone
import uuid
ANNOTATION = (
('asm', 'Asymmetry'),
('dst', 'Dystonia'),
('dsk', 'Dyskensia'),
('ebt', 'En Bloc Turning'),
('str', 'Short Stride Length'),
('mo... | 37.631579 | 116 | 0.685004 |
0b9809b2c18e28f3af61ecc6021ff494abd1e0f4 | 533 | py | Python | setup.py | soumyarani/mopac | 72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8 | [
"MIT"
] | 20 | 2021-03-16T08:18:01.000Z | 2022-03-12T13:46:43.000Z | setup.py | soumyarani/mopac | 72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8 | [
"MIT"
] | 1 | 2021-05-13T14:49:25.000Z | 2021-05-13T19:45:26.000Z | setup.py | soumyarani/mopac | 72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8 | [
"MIT"
] | 5 | 2020-11-01T15:46:39.000Z | 2021-07-30T13:12:06.000Z | from distutils.core import setup
from setuptools import find_packages
setup(
name='mopac',
packages=find_packages(),
version='0.1',
description='Model-based policy optimization',
long_description=open('./README.md').read(),
author='',
author_email='',
url='',
entry_points={
... | 23.173913 | 62 | 0.626642 |
0b9851847b18a4b7b38e82d6bd87af07dc1c57a9 | 1,531 | py | Python | examples/imu.py | dan-stone/canal | 8a6b03a46102f7e5ca457538eb03ab9526eec095 | [
"MIT"
] | 2 | 2017-02-08T20:27:39.000Z | 2019-07-15T00:34:05.000Z | examples/imu.py | dan-stone/canal | 8a6b03a46102f7e5ca457538eb03ab9526eec095 | [
"MIT"
] | null | null | null | examples/imu.py | dan-stone/canal | 8a6b03a46102f7e5ca457538eb03ab9526eec095 | [
"MIT"
] | 1 | 2018-05-31T14:09:19.000Z | 2018-05-31T14:09:19.000Z | import datetime
import canal
from influxdb import InfluxDBClient
if __name__ == "__main__":
start_date = datetime.datetime.now(datetime.timezone.utc)
duration = datetime.timedelta(seconds=60)
user_id = 12345678
client = InfluxDBClient(
host="localhost",
port=8086,
database="... | 27.836364 | 65 | 0.640758 |
0b98688189c3ac958636f3a3393afa2872fb1f5c | 2,820 | py | Python | lib/ravstack/runtime.py | geertj/raviron | 7920c6b71757eddcca16b60051c1cf08706ae11b | [
"MIT"
] | 1 | 2015-05-11T21:39:35.000Z | 2015-05-11T21:39:35.000Z | lib/ravstack/runtime.py | geertj/raviron | 7920c6b71757eddcca16b60051c1cf08706ae11b | [
"MIT"
] | null | null | null | lib/ravstack/runtime.py | geertj/raviron | 7920c6b71757eddcca16b60051c1cf08706ae11b | [
"MIT"
] | null | null | null | #
# This file is part of ravstack. Ravstack is free software available under
# the terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
#
# Copyright (c) 2015 the ravstack authors. See the file "AUTHORS" for a
# complete list.
from __future__ impo... | 30.989011 | 89 | 0.693617 |
0b9897a43237e684b6c66f4d6a3b18dc5aaad9da | 1,217 | py | Python | onetouch.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | 1 | 2020-11-28T13:23:58.000Z | 2020-11-28T13:23:58.000Z | onetouch.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | null | null | null | onetouch.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import user
import serial
from pprint import pprint, pformat
import insulaudit
from insulaudit.data import glucose
from insulaudit.log import io
from insulaudit.devices import onetouch2
import sys
PORT = '/dev/ttyUSB0'
if __name__ == '__main__':
port = init()
io.info( port )
| 22.537037 | 89 | 0.67461 |
0b9a8528a7dd0b2f831662e5079ebdffe6991f3a | 3,743 | py | Python | src/graphdb_builder/databases/parsers/smpdbParser.py | hhefzi/CKG | e117502a05f870174372da275e22ac3f8735d65a | [
"MIT"
] | null | null | null | src/graphdb_builder/databases/parsers/smpdbParser.py | hhefzi/CKG | e117502a05f870174372da275e22ac3f8735d65a | [
"MIT"
] | 1 | 2020-06-11T11:59:42.000Z | 2020-07-01T11:13:51.000Z | src/graphdb_builder/databases/parsers/smpdbParser.py | vemonet/CKG | c9e15c4c8ec8d81ca05c67e9a6f346ca385d8fbe | [
"MIT"
] | 1 | 2022-02-02T10:56:32.000Z | 2022-02-02T10:56:32.000Z | import os.path
import zipfile
import pandas as pd
from collections import defaultdict
from graphdb_builder import builder_utils
#########################
# SMPDB database #
#########################
| 39.819149 | 165 | 0.608068 |
0b9b80c225b518a078b36396f1fbccc56916e124 | 738 | py | Python | server/waitFramerate.py | mboerwinkle/RingGame | 5a9b6a6ea394c1e88689fa062d4d348383ab406a | [
"MIT"
] | null | null | null | server/waitFramerate.py | mboerwinkle/RingGame | 5a9b6a6ea394c1e88689fa062d4d348383ab406a | [
"MIT"
] | null | null | null | server/waitFramerate.py | mboerwinkle/RingGame | 5a9b6a6ea394c1e88689fa062d4d348383ab406a | [
"MIT"
] | null | null | null | import time
#Timing stuff
lastTime = None
prevFrameTime = 0;
| 32.086957 | 114 | 0.720867 |
0b9de1232f56d34e55746d5d53165b3e1ae67c6c | 9,988 | py | Python | shellbot/spaces/local.py | bernard357/shellbot | daf64fbab4085d1591bf9a1aecd06b4fc615d132 | [
"Apache-2.0"
] | 11 | 2017-04-30T18:10:27.000Z | 2021-11-07T16:59:29.000Z | shellbot/spaces/local.py | DataCraft-AI/shellbot | daf64fbab4085d1591bf9a1aecd06b4fc615d132 | [
"Apache-2.0"
] | 38 | 2017-04-20T17:33:05.000Z | 2017-11-10T20:19:07.000Z | shellbot/spaces/local.py | DataCraft-AI/shellbot | daf64fbab4085d1591bf9a1aecd06b4fc615d132 | [
"Apache-2.0"
] | 3 | 2017-04-21T21:14:53.000Z | 2021-07-27T22:01:21.000Z | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Li... | 26.634667 | 80 | 0.580396 |
0b9e17c3c6711c5899263cca3e86df88aba125ad | 13,497 | py | Python | src/warp/yul/AstTools.py | sambarnes/warp | f841afa22e665d5554587eaa866c4790698bfc22 | [
"Apache-2.0"
] | 414 | 2021-07-17T13:06:55.000Z | 2022-03-31T14:57:10.000Z | src/warp/yul/AstTools.py | sambarnes/warp | f841afa22e665d5554587eaa866c4790698bfc22 | [
"Apache-2.0"
] | 78 | 2021-07-19T12:33:56.000Z | 2022-03-29T17:16:27.000Z | src/warp/yul/AstTools.py | sambarnes/warp | f841afa22e665d5554587eaa866c4790698bfc22 | [
"Apache-2.0"
] | 19 | 2021-08-18T03:55:54.000Z | 2022-03-29T15:29:48.000Z | from __future__ import annotations
import re
from typing import Union
import warp.yul.ast as ast
from warp.yul.AstVisitor import AstVisitor
from warp.yul.WarpException import WarpException
| 32.601449 | 88 | 0.572127 |
0b9fa6b8eac70139650145aa00e7cb7eb8455c1b | 5,911 | py | Python | srfnef/tools/doc_gen/doc_generator.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/tools/doc_gen/doc_generator.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/tools/doc_gen/doc_generator.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
'''
@author: Minghao Guo
@contact: mh.guo0111@gmail.com
@software: basenef
@file: doc_generator.py
@date: 4/13/2019
@desc:
'''
import os
import sys
import time
from getpass import getuser
import matplotlib
import numpy as np
import json
from srfnef import Image, MlemFull
matplotlib.use('Agg')
autho... | 31.110526 | 99 | 0.607511 |
0b9ff21662fde4d991d952e6a81287147181af9f | 760 | py | Python | prep_scripts/0_join_data.py | linas-p/EVDPEP | 2062e20ef784a76eebaf71ebbe4f9006cde5bbd5 | [
"CC0-1.0"
] | 5 | 2021-10-05T14:02:52.000Z | 2021-11-23T07:59:06.000Z | prep_scripts/0_join_data.py | patrickiswwgp/EVDPEP | 2062e20ef784a76eebaf71ebbe4f9006cde5bbd5 | [
"CC0-1.0"
] | 1 | 2021-10-31T14:41:48.000Z | 2021-10-31T16:23:45.000Z | prep_scripts/0_join_data.py | patrickiswwgp/EVDPEP | 2062e20ef784a76eebaf71ebbe4f9006cde5bbd5 | [
"CC0-1.0"
] | 3 | 2021-11-23T07:59:17.000Z | 2022-03-31T09:09:03.000Z | import pandas as pd
import numpy as np
DATA_PATH = "./data/EVconsumption/"
weather = pd.read_csv(DATA_PATH + "dimweathermeasure.csv", sep = "|")
osm = pd.read_csv(DATA_PATH + "osm_dk_20140101.csv", sep = "|")
data0 = pd.read_csv(DATA_PATH + "2020_11_25_aal_viterbi.csv", sep = ",")
data1 = pd.read_csv(DATA_PATH + "202... | 38 | 81 | 0.711842 |
0ba17e31d084e4b9249ccb1a58a413d758400527 | 964 | py | Python | csuibot/utils/kbbi.py | chadmadna/CSUIBot | a6f54639c256a3c86a9aa7c3fc094e69ce96a1b8 | [
"Apache-2.0"
] | null | null | null | csuibot/utils/kbbi.py | chadmadna/CSUIBot | a6f54639c256a3c86a9aa7c3fc094e69ce96a1b8 | [
"Apache-2.0"
] | null | null | null | csuibot/utils/kbbi.py | chadmadna/CSUIBot | a6f54639c256a3c86a9aa7c3fc094e69ce96a1b8 | [
"Apache-2.0"
] | null | null | null | import requests
import json
| 28.352941 | 89 | 0.580913 |
0ba1dc47fec515daa7ce78ab6cbd344fd812af6f | 113,179 | py | Python | networking_vsphere/tests/unit/agent/test_ovsvapp_agent.py | Mirantis/vmware-dvs | 37b874f9bf40b47d0de231c640367275fb3afb9b | [
"Apache-2.0"
] | 8 | 2015-04-23T15:36:56.000Z | 2019-03-06T13:23:28.000Z | networking_vsphere/tests/unit/agent/test_ovsvapp_agent.py | Mirantis/vmware-dvs | 37b874f9bf40b47d0de231c640367275fb3afb9b | [
"Apache-2.0"
] | 1 | 2016-10-04T13:24:50.000Z | 2016-10-04T13:24:50.000Z | networking_vsphere/tests/unit/agent/test_ovsvapp_agent.py | Mirantis/vmware-dvs | 37b874f9bf40b47d0de231c640367275fb3afb9b | [
"Apache-2.0"
] | 19 | 2015-09-15T13:25:01.000Z | 2019-09-03T08:23:21.000Z | # Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# 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/LIC... | 52.54364 | 96 | 0.594227 |
0ba2dfd95ee79027d8c63a0c75d4bd279b8d3f02 | 30 | py | Python | yolov3/utils/__init__.py | hysts/pytorch_yolov3 | 6d4c7a1e42d366894effac8ca52f7116f891b5ab | [
"MIT"
] | 13 | 2019-03-22T15:22:22.000Z | 2021-09-30T21:15:37.000Z | yolov3/utils/__init__.py | hysts/pytorch_yolov3 | 6d4c7a1e42d366894effac8ca52f7116f891b5ab | [
"MIT"
] | null | null | null | yolov3/utils/__init__.py | hysts/pytorch_yolov3 | 6d4c7a1e42d366894effac8ca52f7116f891b5ab | [
"MIT"
] | null | null | null | from yolov3.utils import data
| 15 | 29 | 0.833333 |
0ba3c4d7d4d48cd32673696a0d4ce0dedcefcaca | 21,354 | py | Python | pootlestuff/watchables.py | pootle/pootles_utils | bb47103e71ccc4fa01269259b73ca1932184af84 | [
"UPL-1.0"
] | null | null | null | pootlestuff/watchables.py | pootle/pootles_utils | bb47103e71ccc4fa01269259b73ca1932184af84 | [
"UPL-1.0"
] | null | null | null | pootlestuff/watchables.py | pootle/pootles_utils | bb47103e71ccc4fa01269259b73ca1932184af84 | [
"UPL-1.0"
] | null | null | null | """
This module provides classes that support observers, smart value handling and debug functions
All changes to values nominate an agent, and observers nominate the agent making changes they
are interested in.
It supercedes the pvars module
"""
import logging, sys, threading, pathlib, math, json
from enum import Enu... | 38.475676 | 177 | 0.594924 |
0ba40eb83c69821a416e50be4bddb8886aa2cb30 | 578 | py | Python | tests/test_codecs.py | reece/et | 41977444a95ac8b8af7a73706f1e18634914d37f | [
"MIT"
] | null | null | null | tests/test_codecs.py | reece/et | 41977444a95ac8b8af7a73706f1e18634914d37f | [
"MIT"
] | null | null | null | tests/test_codecs.py | reece/et | 41977444a95ac8b8af7a73706f1e18634914d37f | [
"MIT"
] | null | null | null | import et.codecs
tests = [
{
"data": 0,
"e_data": {
1: b'\x00\x010',
2: b'\x00\x02x\x9c3\x00\x00\x001\x001'
}
},
{
"data": {},
"e_data": {
1: b'\x00\x01{}',
2: b'\x00\x02x\x9c\xab\xae\x05\x00\x01u\x00\xf9'
}
... | 19.931034 | 79 | 0.448097 |
0ba563c5f1a8e8092fcd4bece03a89610c759cd4 | 2,801 | py | Python | tests/test_sa.py | mariushelf/sa2django | 936b0a70b0ccc8faf3ca26ff241b0b6dac13f204 | [
"MIT"
] | null | null | null | tests/test_sa.py | mariushelf/sa2django | 936b0a70b0ccc8faf3ca26ff241b0b6dac13f204 | [
"MIT"
] | null | null | null | tests/test_sa.py | mariushelf/sa2django | 936b0a70b0ccc8faf3ca26ff241b0b6dac13f204 | [
"MIT"
] | null | null | null | import sqlite3
import pytest
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import tests.testsite.testapp.models as dm
from tests.sa_models import Base, Car, Child, Dog, Parent
def test_data(mock_data_session):
assert len(mock_data_session.query(Parent).all()) == 2
assert le... | 27.194175 | 71 | 0.687612 |
0ba58112cd9b83adb66bbb157c35557326dccf99 | 10,409 | py | Python | src/github4/session.py | staticdev/github3.py | b9af598dcf1771c083dcc512a2aa8e5008bf4ea8 | [
"MIT"
] | null | null | null | src/github4/session.py | staticdev/github3.py | b9af598dcf1771c083dcc512a2aa8e5008bf4ea8 | [
"MIT"
] | 32 | 2021-02-17T19:46:21.000Z | 2021-05-12T05:56:03.000Z | src/github4/session.py | staticdev/github3.py | b9af598dcf1771c083dcc512a2aa8e5008bf4ea8 | [
"MIT"
] | null | null | null | """Module containing session and auth logic."""
import collections.abc as abc_collections
import datetime
from contextlib import contextmanager
from logging import getLogger
import dateutil.parser
import requests
from . import __version__
from . import exceptions as exc
__url_cache__ = {}
__logs__ = getLogger(__pac... | 33.149682 | 87 | 0.639639 |
0ba6ccc9869c36c54441983043be28e4255463c3 | 3,046 | py | Python | models/ffn_ace.py | MilesQLi/Theano-Lights | 59864f4a1b089c04ff0403a6036ee052078fcd7d | [
"MIT"
] | 313 | 2015-03-23T15:19:58.000Z | 2021-05-17T15:40:09.000Z | models/ffn_ace.py | MilesQLi/Theano-Lights | 59864f4a1b089c04ff0403a6036ee052078fcd7d | [
"MIT"
] | 2 | 2015-08-31T06:35:31.000Z | 2016-04-04T11:55:43.000Z | models/ffn_ace.py | Ivaylo-Popov/Theano-Lights | 3c9de807e42e3875b1e3f4c1e8d02ad1242ddc94 | [
"MIT"
] | 68 | 2015-05-16T03:26:17.000Z | 2018-08-19T08:40:18.000Z | import theano
import theano.tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams
from theano.tensor.nnet.conv import conv2d
from theano.tensor.signal.downsample import max_pool_2d
from theano.tensor.shared_randomstreams import RandomStreams
import numpy as np
from toolbox import *
from modelbase import *
... | 34.613636 | 97 | 0.591924 |
0ba8551d5076fefbf31d48a58d0338bdc2763c0b | 181 | py | Python | src/misc/helpers.py | dnmarkon/kaggle_elo_merchant | 92ac552d72234455455c95f53e6091017f048504 | [
"MIT"
] | null | null | null | src/misc/helpers.py | dnmarkon/kaggle_elo_merchant | 92ac552d72234455455c95f53e6091017f048504 | [
"MIT"
] | null | null | null | src/misc/helpers.py | dnmarkon/kaggle_elo_merchant | 92ac552d72234455455c95f53e6091017f048504 | [
"MIT"
] | null | null | null | import pandas as pd
| 22.625 | 75 | 0.662983 |
0ba8bac551a05bebe5ab8cdbe7162fe74234100b | 1,019 | py | Python | 1306_Jump_Game_III.py | imguozr/LC-Solutions | 5e5e7098d2310c972314c9c9895aafd048047fe6 | [
"WTFPL"
] | null | null | null | 1306_Jump_Game_III.py | imguozr/LC-Solutions | 5e5e7098d2310c972314c9c9895aafd048047fe6 | [
"WTFPL"
] | null | null | null | 1306_Jump_Game_III.py | imguozr/LC-Solutions | 5e5e7098d2310c972314c9c9895aafd048047fe6 | [
"WTFPL"
] | null | null | null | from typing import List
| 24.261905 | 67 | 0.459274 |
0baa80eb9ba40c6d66b4f05785427f91545460d9 | 81 | py | Python | Extensions/BabaGUI/config.py | siva-msft/baba-is-auto | 3237b5b70167130558827979bde7dcee14ef39f3 | [
"MIT"
] | 108 | 2019-09-11T06:31:35.000Z | 2022-03-28T13:02:56.000Z | Extensions/BabaGUI/config.py | siva-msft/baba-is-auto | 3237b5b70167130558827979bde7dcee14ef39f3 | [
"MIT"
] | 29 | 2019-09-12T00:28:04.000Z | 2022-02-20T14:56:27.000Z | Extensions/BabaGUI/config.py | utilForever/baba-is-auto | 11937742e25b37b1e27de87fe74d10f09062d6ce | [
"MIT"
] | 14 | 2020-02-24T05:41:43.000Z | 2022-03-28T12:43:34.000Z | import pygame
FPS = 60
BLOCK_SIZE = 48
COLOR_BACKGROUND = pygame.Color(0, 0, 0)
| 13.5 | 40 | 0.728395 |
0bae78fa6080de85a0feb221980172f577f30cf7 | 42,674 | py | Python | packstack/plugins/neutron_350.py | melroyr/havana-packstack | 72cdb0e5e29df4cccb81844ec8b365dfededf4f7 | [
"Apache-2.0"
] | null | null | null | packstack/plugins/neutron_350.py | melroyr/havana-packstack | 72cdb0e5e29df4cccb81844ec8b365dfededf4f7 | [
"Apache-2.0"
] | null | null | null | packstack/plugins/neutron_350.py | melroyr/havana-packstack | 72cdb0e5e29df4cccb81844ec8b365dfededf4f7 | [
"Apache-2.0"
] | null | null | null | """
Installs and configures neutron
"""
import logging
import os
import re
import uuid
from packstack.installer import utils
from packstack.installer import validators
from packstack.installer.utils import split_hosts
from packstack.modules.ospluginutils import getManifestTemplate, appendManifestFile
# Controller o... | 49.334104 | 200 | 0.552819 |
0baeb09b96866048e3277bdd11b177c6f437a60e | 1,217 | py | Python | 01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 4084962508f1597c0498d8b329e0f45e2ac55302 | [
"MIT"
] | null | null | null | 01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 4084962508f1597c0498d8b329e0f45e2ac55302 | [
"MIT"
] | null | null | null | 01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 4084962508f1597c0498d8b329e0f45e2ac55302 | [
"MIT"
] | null | null | null | #--- Exerccio 2 - Variveis
#--- Crie um menu para um sistema de cadastro de funcionrios
#--- O menu deve ser impresso com a funo format()
#--- As opes devem ser variveis do tipo inteiro
#--- As descries das opes sero:
#--- Cadastrar funcionrio
#--- Listar funcionrios
#--- Editar funcionrio
#--- Deletar fun... | 32.891892 | 92 | 0.676253 |
0baf09cfe2bff0d7d8fbadcb0dcd9e76b3f75e76 | 284 | py | Python | venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | 1 | 2021-05-16T03:20:23.000Z | 2021-05-16T03:20:23.000Z | venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | 4 | 2021-03-30T14:06:09.000Z | 2021-09-22T19:26:31.000Z | venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | null | null | null | BB BBBBBBBBBBBBBBBBBB
BB BBBBBBBBBBBBBBBB
BBBBBBB BBBBBBBBBBBBBBBBBBBBBB
BBBBB
BB BBBBBBBBBB BB BB BB BBBBBBBBBB
XXXXXXXXX XXXXXXXXX
XXXXXXXXXXXXXXXXX
BBBBB
BBB BBBBB BB BBBB
BBBBBBB BBBBBBBBBBBBBB
BBBBBB
BB BBBBBBBBBB BB BB BB BBBBBBBBBB
XXXXXXXXXXX
BBBBB
| 15.777778 | 34 | 0.792254 |
0bb224e01ebd658b05fd1ae3164a24c7e6a95713 | 1,137 | py | Python | baybars/timber.py | dkanarek12/baybars | 72f4cff706c11d25ce537cf0fed61bc3ef89da30 | [
"Apache-2.0"
] | 9 | 2018-10-16T19:20:35.000Z | 2020-06-02T13:27:29.000Z | baybars/timber.py | dkanarek12/baybars | 72f4cff706c11d25ce537cf0fed61bc3ef89da30 | [
"Apache-2.0"
] | 10 | 2018-07-29T08:56:18.000Z | 2019-03-21T18:31:15.000Z | baybars/timber.py | dkanarek12/baybars | 72f4cff706c11d25ce537cf0fed61bc3ef89da30 | [
"Apache-2.0"
] | 9 | 2018-07-29T08:59:53.000Z | 2019-12-31T07:50:57.000Z | # Copyright 2018 Jet.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 33.441176 | 94 | 0.769569 |
0bb4673a2136b7bf006e51e515e0e3d35ea020dd | 417 | py | Python | nlu_hyperopt/space.py | JulianGerhard21/nlu-hyperopt | 3d16fda97fa7cf1337b19395a57780e6e2dc9bd3 | [
"Apache-2.0"
] | null | null | null | nlu_hyperopt/space.py | JulianGerhard21/nlu-hyperopt | 3d16fda97fa7cf1337b19395a57780e6e2dc9bd3 | [
"Apache-2.0"
] | null | null | null | nlu_hyperopt/space.py | JulianGerhard21/nlu-hyperopt | 3d16fda97fa7cf1337b19395a57780e6e2dc9bd3 | [
"Apache-2.0"
] | 1 | 2021-07-08T11:40:27.000Z | 2021-07-08T11:40:27.000Z | from hyperopt import hp
# Define the search space here, e.g.
# from hyperopt.pyll.base import scope
# search_space = {
# 'epochs': hp.qloguniform('epochs', 0, 4, 2),
# 'max_df': hp.uniform('max_df', 1, 2),
# 'max_ngrams': scope.int(hp.quniform('max_ngram', 3, 9, 1))
# }
# Default search space: Try di... | 29.785714 | 65 | 0.654676 |
0bb51dc78ddd2967ca706bd880e3869f1feac056 | 4,633 | py | Python | lib/taurus/qt/qtgui/panel/report/basicreport.py | MikeFalowski/taurus | ef041bf35dd847caf08a7efbe072f4020d35522e | [
"CC-BY-3.0"
] | 1 | 2016-10-19T13:54:08.000Z | 2016-10-19T13:54:08.000Z | lib/taurus/qt/qtgui/panel/report/basicreport.py | MikeFalowski/taurus | ef041bf35dd847caf08a7efbe072f4020d35522e | [
"CC-BY-3.0"
] | 27 | 2016-05-25T08:56:58.000Z | 2019-01-21T09:18:08.000Z | lib/taurus/qt/qtgui/panel/report/basicreport.py | MikeFalowski/taurus | ef041bf35dd847caf08a7efbe072f4020d35522e | [
"CC-BY-3.0"
] | 8 | 2015-07-24T09:16:50.000Z | 2018-06-12T12:33:59.000Z | #!/usr/bin/env python
#############################################################################
##
# This file is part of Taurus
##
# http://taurus-scada.org
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Taurus is free software: you can redistribute it and/or modify
# it under the terms of t... | 29.890323 | 77 | 0.618821 |
0bb56b74527c4ab3380dff7d3851c648cd78de0c | 347 | py | Python | src/workflows/__init__.py | stufisher/python-workflows | f1f67bb56a0f8a6820762f68e2e59ade2da60a95 | [
"BSD-3-Clause"
] | null | null | null | src/workflows/__init__.py | stufisher/python-workflows | f1f67bb56a0f8a6820762f68e2e59ade2da60a95 | [
"BSD-3-Clause"
] | null | null | null | src/workflows/__init__.py | stufisher/python-workflows | f1f67bb56a0f8a6820762f68e2e59ade2da60a95 | [
"BSD-3-Clause"
] | null | null | null | __version__ = "2.18"
def version():
"""Returns the version number of the installed workflows package."""
return __version__
| 23.133333 | 79 | 0.723343 |
0bb5af4cb0e1469e03fc6ee0d14c4d8bfb035eff | 18,592 | py | Python | autoarray/structures/grids/grid_decorators.py | jonathanfrawley/PyAutoArray_copy | c21e8859bdb20737352147b9904797ac99985b73 | [
"MIT"
] | null | null | null | autoarray/structures/grids/grid_decorators.py | jonathanfrawley/PyAutoArray_copy | c21e8859bdb20737352147b9904797ac99985b73 | [
"MIT"
] | null | null | null | autoarray/structures/grids/grid_decorators.py | jonathanfrawley/PyAutoArray_copy | c21e8859bdb20737352147b9904797ac99985b73 | [
"MIT"
] | null | null | null | import numpy as np
from functools import wraps
from autoconf import conf
from autoarray.structures.grids.one_d import abstract_grid_1d
from autoarray.structures.grids.two_d import grid_2d
from autoarray.structures.grids.two_d import grid_2d_interpolate
from autoarray.structures.grids.two_d import grid_2d_iterat... | 42.254545 | 122 | 0.64119 |
0bb89e9bc4b11618566c516b525db418c9d0a1b7 | 742 | py | Python | 079_039_189/ngram_2/get_10_summary.py | Aditya-AS/Question-Answering-System | 22c3fe549c03a3b5ba1f86befef3c9f91278d3fc | [
"MIT"
] | null | null | null | 079_039_189/ngram_2/get_10_summary.py | Aditya-AS/Question-Answering-System | 22c3fe549c03a3b5ba1f86befef3c9f91278d3fc | [
"MIT"
] | null | null | null | 079_039_189/ngram_2/get_10_summary.py | Aditya-AS/Question-Answering-System | 22c3fe549c03a3b5ba1f86befef3c9f91278d3fc | [
"MIT"
] | null | null | null | """
Sanjay Reddy S-2013A7PS189P
Aditya Sarma -2013A7PS079P
Vamsi T -2013A7PS039P
Artificial Intelligence Term Project
"""
import pickle
import BeautifulSoup
import re
import boto
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from google import search
def get_10_summary(query, sourc... | 25.586207 | 144 | 0.669811 |