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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ab4aa21cfd4871d1766355bdd0923074d0f5c05 | 32,515 | py | Python | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2020-07-08T13:20:27.000Z | 2020-07-08T13:20:27.000Z | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2020-06-24T18:56:06.000Z | 2022-02-26T08:53:11.000Z | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
import sys
import os
import string
import time
import socket
import fileinput
import platform
import re
try:
import subprocess32 as subprocess
except:
import subprocess
import pg
"""
Global Values
"""
MYD = os.path.abspath(os.path.dirname(__file__))
mkpath = lambda *x: os... | 42.172503 | 421 | 0.611041 |
0ab4e78536a96c9504186fa7b02c118e2936a403 | 1,406 | py | Python | code_week19_831_96/biao_shi_shu_zi.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | code_week19_831_96/biao_shi_shu_zi.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | code_week19_831_96/biao_shi_shu_zi.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | '''
"+100""5e2""-123""3.1416""-1E-16""0123""12e""1a3.14""1.2.3""+-5""12e+5.4"
LeetCode
https://leetcode-cn.com/problems/biao-shi-shu-zhi-de-zi-fu-chuan-lcof
'''
| 45.354839 | 129 | 0.345661 |
0ab611b64794b954266ea15a077d39ba3447ef27 | 13,211 | py | Python | teeth_overlord/tests/unit/networks/neutron.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/tests/unit/networks/neutron.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/tests/unit/networks/neutron.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Rackspace, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 32.221951 | 78 | 0.626448 |
0ab7ab472dc6bde156894c22490a3de97781b2d7 | 4,508 | py | Python | typeidea/blog/views.py | Phoenix-sy/typeidea | e913218872c7f4e9afc290eb42b4ca8c8e4523be | [
"MIT"
] | null | null | null | typeidea/blog/views.py | Phoenix-sy/typeidea | e913218872c7f4e9afc290eb42b4ca8c8e4523be | [
"MIT"
] | 4 | 2020-06-06T01:37:34.000Z | 2021-09-08T01:49:56.000Z | typeidea/blog/views.py | Phoenix-sy/typeidea | e913218872c7f4e9afc290eb42b4ca8c8e4523be | [
"MIT"
] | null | null | null | from datetime import date
from django.core.cache import cache
from django.db.models import Q, F
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.views.generic import ListView, DetailView
#from silk.profiling.profiler import silk_profile
from config.models import SideBar
f... | 24.367568 | 72 | 0.717613 |
0ab8196f812a9bd1c5cff6d84c43cd3a82467a55 | 618 | py | Python | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | 1 | 2017-04-25T10:56:01.000Z | 2017-04-25T10:56:01.000Z | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | null | null | null | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 7 11:38:18 2016
@author: thomasbarillot
VMI control
"""
from ctypes import cdll
#slib="VMIcrtl_ext.dll"
#hlib=cdll('VMIcrtl.dll')
import VMIcrtl_ext
test=VMIcrtl_ext.VMIcrtl()
#%%
print test.GetFilename()
#%%
test.setFilename('20161115_1841.dat')
print test.GetFilen... | 12.875 | 37 | 0.699029 |
0ab878278314d67f6d0be9f6568f133ce9e1ee76 | 8,119 | py | Python | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-11T09:16:43.000Z | 2021-01-12T20:07:23.000Z | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-06T18:58:26.000Z | 2021-01-06T18:58:26.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import llnl.util.tty as tty
from spack import *
import spack.architecture
import os
| 51.713376 | 96 | 0.711787 |
0ab9be78769ca53a9456cd93a3fd3ab2a85a0c35 | 4,799 | py | Python | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# Adapted from PyQtGraph
import sys
from . import ptime
from .. import config
| 34.52518 | 79 | 0.583663 |
0aba3f90d5e6185589e45a9a8d8d372bccb752c2 | 764 | py | Python | tests/test_processor.py | vijithv/djangosaml2idp | 8a238063da55bf4823bdc2192168171767c4e056 | [
"Apache-2.0"
] | 1 | 2021-11-03T17:53:29.000Z | 2021-11-03T17:53:29.000Z | tests/test_processor.py | vijithv/djangosaml2idp | 8a238063da55bf4823bdc2192168171767c4e056 | [
"Apache-2.0"
] | null | null | null | tests/test_processor.py | vijithv/djangosaml2idp | 8a238063da55bf4823bdc2192168171767c4e056 | [
"Apache-2.0"
] | 1 | 2020-04-23T03:52:10.000Z | 2020-04-23T03:52:10.000Z | from django.contrib.auth import get_user_model
from djangosaml2idp.processors import BaseProcessor
User = get_user_model()
| 29.384615 | 97 | 0.722513 |
0abaca3d1ed91ca49de4c9b160592c473142f544 | 1,840 | py | Python | com/ds/SingleLinkedList.py | sasikrishna/python-programs | 937002f37c86efc5c876b37c7b42634ca629fffc | [
"MIT"
] | null | null | null | com/ds/SingleLinkedList.py | sasikrishna/python-programs | 937002f37c86efc5c876b37c7b42634ca629fffc | [
"MIT"
] | null | null | null | com/ds/SingleLinkedList.py | sasikrishna/python-programs | 937002f37c86efc5c876b37c7b42634ca629fffc | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
list = SingleLinkedList();
list.add(5)
list.add(4)
list.add(12)
list.add(13)
list.add(19)
list.print_list();
print("List contains element 4", list.contains(4))
print("List contains element 6", list.contains(6))
print("Removing element 13", list.remov... | 23.896104 | 56 | 0.563043 |
0abb04a5bd64547bc5fd647c86d2afb7977fd604 | 55 | py | Python | src/data_setup/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | null | null | null | src/data_setup/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | 1 | 2021-08-07T07:39:17.000Z | 2021-08-07T07:39:17.000Z | src/data_setup/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | 1 | 2021-08-06T16:27:00.000Z | 2021-08-06T16:27:00.000Z | __all__ = ["data_setup", "chart_params", "base_params"] | 55 | 55 | 0.727273 |
0abb3c732259b19c9e708a20325a84c61a393244 | 1,851 | py | Python | src/aiocomcrawl/models.py | rudaporto/aiocomcrawl | 9f76097d9f82c5790f968d26a6f1c3908084569b | [
"Apache-2.0"
] | null | null | null | src/aiocomcrawl/models.py | rudaporto/aiocomcrawl | 9f76097d9f82c5790f968d26a6f1c3908084569b | [
"Apache-2.0"
] | null | null | null | src/aiocomcrawl/models.py | rudaporto/aiocomcrawl | 9f76097d9f82c5790f968d26a6f1c3908084569b | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from typing import Any, List, Optional, Union
from pydantic import BaseModel, Field, HttpUrl, validator
from pydantic.dataclasses import dataclass
class Result(BaseModel):
url_key: str = Field(alias="urlkey")
timestamp: datetime
url: str
mime: str
mime_detected: s... | 23.730769 | 81 | 0.678012 |
0abb4de3626dcbaf10f7a01c7d732b38a10d112a | 3,453 | py | Python | fs/error_tools.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/error_tools.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/error_tools.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | """Tools for managing OS errors.
"""
from __future__ import print_function
from __future__ import unicode_literals
import errno
from contextlib import contextmanager
import sys
import platform
from . import errors
from six import reraise
_WINDOWS_PLATFORM = platform.system() == 'Windows'
# Stops linter complain... | 31.390909 | 78 | 0.650449 |
0abbc3e1d5afde9470d734d62bcb0511ac93cadd | 5,390 | py | Python | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | 1 | 2017-08-22T14:17:10.000Z | 2017-08-22T14:17:10.000Z | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T00:47:22.000Z | 2021-03-26T00:47:22.000Z | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright n... | 34.113924 | 78 | 0.62115 |
0abcb370c0d40bd870443ed0b022026c144555c8 | 3,829 | py | Python | python/index.py | stijnvanhulle/EscapeGame | ae3e35334d64394a0f696149bfd56c1fd7a97681 | [
"MIT"
] | 1 | 2020-08-16T02:52:06.000Z | 2020-08-16T02:52:06.000Z | python/index.py | stijnvanhulle/EscapeGame | ae3e35334d64394a0f696149bfd56c1fd7a97681 | [
"MIT"
] | 1 | 2021-10-18T18:39:08.000Z | 2021-10-18T18:39:08.000Z | python/index.py | stijnvanhulle/EscapeGame | ae3e35334d64394a0f696149bfd56c1fd7a97681 | [
"MIT"
] | null | null | null | # @Author: Stijn Van Hulle <stijnvanhulle>
# @Date: 2016-11-28T13:51:38+01:00
# @Email: me@stijnvanhulle.be
# @Last modified by: stijnvanhulle
# @Last modified time: 2016-12-20T12:51:07+01:00
# @License: stijnvanhulle.be
#!/usr/bin/env python
import time
import datetime
import math
import sys
import json
impor... | 25.357616 | 105 | 0.71298 |
0abd370b6b3c7d06f851a685777b6e689527ccf7 | 8,184 | py | Python | peps/converters.py | idjaw/pythondotorg | 8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649 | [
"Apache-2.0"
] | null | null | null | peps/converters.py | idjaw/pythondotorg | 8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649 | [
"Apache-2.0"
] | 2 | 2022-01-13T03:57:42.000Z | 2022-03-12T01:01:40.000Z | peps/converters.py | idjaw/pythondotorg | 8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649 | [
"Apache-2.0"
] | null | null | null | import re
import os
from bs4 import BeautifulSoup
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.files import File
from pages.models import Page, Image
PEP_TEMPLATE = 'pages/pep-page.html'
pep_url = lambda num: 'dev/peps/pep-{}/'.format(num)
def check_pat... | 29.228571 | 85 | 0.615225 |
0abda1cb427ed8f070a7f02e638f35191861013c | 68 | py | Python | venv/Lib/site-packages/toolz/sandbox/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 3,749 | 2015-01-01T06:53:12.000Z | 2022-03-31T13:36:10.000Z | venv/Lib/site-packages/toolz/sandbox/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 276 | 2015-01-01T15:34:41.000Z | 2022-03-17T02:16:35.000Z | venv/Lib/site-packages/toolz/sandbox/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 256 | 2015-01-18T04:29:48.000Z | 2022-03-31T00:10:13.000Z | from .core import EqualityHashKey, unzip
from .parallel import fold
| 22.666667 | 40 | 0.823529 |
0abdfc5e117d17fbbf96aa6e5e9c1b706bacee2c | 95 | py | Python | interface/app/__init__.py | caglorithm/accel | 7fe5c13ea9559565c599633bdb3318c8fbc57088 | [
"MIT"
] | 31 | 2019-12-07T01:27:19.000Z | 2021-12-19T08:12:18.000Z | interface/app/__init__.py | caglorithm/accel | 7fe5c13ea9559565c599633bdb3318c8fbc57088 | [
"MIT"
] | null | null | null | interface/app/__init__.py | caglorithm/accel | 7fe5c13ea9559565c599633bdb3318c8fbc57088 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__, static_folder='static')
from app import routes
| 15.833333 | 45 | 0.778947 |
0abe087af168de7f10f0e7fc51d33adc2b129507 | 2,421 | py | Python | implementations/python3/tests/CAPDU.py | sebastien-riou/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 4 | 2020-05-13T10:13:55.000Z | 2021-10-20T04:43:07.000Z | implementations/python3/tests/CAPDU.py | TiempoSecure/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 4 | 2020-07-22T16:06:31.000Z | 2021-07-25T19:51:41.000Z | implementations/python3/tests/CAPDU.py | TiempoSecure/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 2 | 2019-05-12T21:15:00.000Z | 2020-09-23T09:05:24.000Z | import os
import pysatl
from pysatl import CAPDU
if __name__ == "__main__":
#check __repr__
expected = "pysatl.CAPDU.from_hexstr('00112233015502')"
capdu=None
exec("capdu="+expected)
assert(expected==repr(capdu))
#check well formed inputs
check("00112233", CAPDU(CLA=0x00, INS=0x11, P1=... | 32.28 | 114 | 0.53449 |
0abf250849dcb075b82b1ca50e27cc3adefcc742 | 3,993 | py | Python | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from math import sin, cos, tan, atan, pi, acos, sqrt, exp, log10
import sys, os
import copy
import random
import numpy as np
import multiprocessing as mp
import ConfigParser
sys.path.append('./bin')
import mGLS, mMGLS
sys.path.append('./src')
from EnvGlobals import Globals
import mgls_io
import mgls_m... | 31.690476 | 91 | 0.672176 |
0abf69ab54ec15326e13cf19d070cb3b005d83d2 | 495 | py | Python | mgmt/src/constants.py | pcaruana/sombrio | 3b669fc83e0227a69b673b5555d88e15b55c397c | [
"MIT"
] | null | null | null | mgmt/src/constants.py | pcaruana/sombrio | 3b669fc83e0227a69b673b5555d88e15b55c397c | [
"MIT"
] | null | null | null | mgmt/src/constants.py | pcaruana/sombrio | 3b669fc83e0227a69b673b5555d88e15b55c397c | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""
constants.py - Contains all constants used by the device manager
Author:
- Pablo Caruana (pablo dot caruana at gmail dot com)
Date: 12/3/2016
"""
number_of_rows = 3 # total number rows of Index Servers
number_of_links = 5 # number of links to be ... | 38.076923 | 79 | 0.656566 |
0abfe16c350b956230d3407edf8eac65ac07365b | 1,015 | py | Python | XDoG/XDoG.py | STomoya/sketchify | 93c068042f02172505457cc15cb0bef673666be3 | [
"MIT"
] | null | null | null | XDoG/XDoG.py | STomoya/sketchify | 93c068042f02172505457cc15cb0bef673666be3 | [
"MIT"
] | null | null | null | XDoG/XDoG.py | STomoya/sketchify | 93c068042f02172505457cc15cb0bef673666be3 | [
"MIT"
] | null | null | null |
import cv2
import numpy as np
# This config is found by the author
# modify if not the desired output
XDoG_config = dict(
size=0,
sigma=0.6,
eps=-15,
phi=10e8,
k=2.5,
gamma=0.97
)
if __name__ == "__main__":
gen_xdog_image('sample.jpg', 'dog.jpg') | 26.025641 | 60 | 0.613793 |
0ac1668c9f200fa1e8cd7c054395a35fadf64190 | 8,070 | py | Python | lm/validate.py | ericlin8545/grover | 3ac6e506f2e1a859d98cc2c3fb57ba251be31484 | [
"Apache-2.0"
] | 864 | 2019-06-18T18:53:58.000Z | 2022-03-04T22:36:52.000Z | lm/validate.py | ericlin8545/grover | 3ac6e506f2e1a859d98cc2c3fb57ba251be31484 | [
"Apache-2.0"
] | 62 | 2019-06-20T19:37:39.000Z | 2022-02-10T00:14:49.000Z | lm/validate.py | ericlin8545/grover | 3ac6e506f2e1a859d98cc2c3fb57ba251be31484 | [
"Apache-2.0"
] | 224 | 2019-06-18T18:45:56.000Z | 2022-03-29T17:46:30.000Z | # Original work Copyright 2018 The Google AI Language Team Authors.
# Modified work Copyright 2019 Rowan Zellers
#
# 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/... | 37.534884 | 108 | 0.688352 |
0ac16994f053988d4add08873e022a2c2ce12964 | 5,055 | py | Python | robo/fmin/entropy_search.py | fuhuifang/RoBo | 036bbaa0e59032577e2611d8ba304384b397c7f6 | [
"BSD-3-Clause"
] | null | null | null | robo/fmin/entropy_search.py | fuhuifang/RoBo | 036bbaa0e59032577e2611d8ba304384b397c7f6 | [
"BSD-3-Clause"
] | null | null | null | robo/fmin/entropy_search.py | fuhuifang/RoBo | 036bbaa0e59032577e2611d8ba304384b397c7f6 | [
"BSD-3-Clause"
] | null | null | null | import logging
import george
import numpy as np
from robo.priors.default_priors import DefaultPrior
from robo.models.gaussian_process import GaussianProcess
from robo.models.gaussian_process_mcmc import GaussianProcessMCMC
from robo.maximizers.random_sampling import RandomSampling
from robo.maximizers.scipy_optimizer ... | 39.492188 | 112 | 0.656775 |
0ac18453ebf1417fb6591ada4674116fa981b20f | 402 | py | Python | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-10-29 11:07
from django.db import migrations, models
| 21.157895 | 61 | 0.606965 |
0ac20eefa93e74fa6f679df0410321e3088f3827 | 664 | py | Python | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | bcgov/mds | 6c427a66a5edb4196222607291adef8fd6677038 | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | from app.api.utils.models_mixins import Base
from app.extensions import db
| 36.888889 | 97 | 0.724398 |
0ac2127dd527328224d7a0dde62602b62da1bdb4 | 678 | py | Python | lgtv_rs232/commands/remote_control/remote_control_lock.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | lgtv_rs232/commands/remote_control/remote_control_lock.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | lgtv_rs232/commands/remote_control/remote_control_lock.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | from enum import Enum
| 22.6 | 81 | 0.70649 |
0ac365363d4be305aa9c1fbf0e6475792a5ae142 | 253 | py | Python | com/bridgelabz/programs/powerof2.py | aashishogale/FunctionalPrograms-Python- | d297bdb78112ef03274a10a58efc90da27f51b14 | [
"MIT"
] | null | null | null | com/bridgelabz/programs/powerof2.py | aashishogale/FunctionalPrograms-Python- | d297bdb78112ef03274a10a58efc90da27f51b14 | [
"MIT"
] | null | null | null | com/bridgelabz/programs/powerof2.py | aashishogale/FunctionalPrograms-Python- | d297bdb78112ef03274a10a58efc90da27f51b14 | [
"MIT"
] | null | null | null | import sys
from com.bridgelabz.utility.Utility import Utility
PowerOf2().start() | 23 | 50 | 0.624506 |
0ac3dcb6f4a277998e57f0001095aaf45bef6fae | 2,256 | py | Python | app/main.py | MichaelLeeman/Job_Web_Scraper | 29205d84f1190830a77174ce8272f4f79bb3468b | [
"MIT"
] | null | null | null | app/main.py | MichaelLeeman/Job_Web_Scraper | 29205d84f1190830a77174ce8272f4f79bb3468b | [
"MIT"
] | 4 | 2020-05-25T19:54:58.000Z | 2020-05-25T19:55:03.000Z | app/main.py | MichaelLeeman/Job_Web_Scraper | 29205d84f1190830a77174ce8272f4f79bb3468b | [
"MIT"
] | 1 | 2020-07-02T13:06:52.000Z | 2020-07-02T13:06:52.000Z | # This program scraps data from job postings on the website workinstartups.com and appends it to an excel worksheet.
import os
from datetime import datetime, timedelta
from selenium import webdriver
from app import web_scraper
from app import excel
job_list, last_date = [], None
file_path = os.path.abspath("main.py")... | 47 | 116 | 0.735816 |
0ac3e100821a287c22e2857e9d532f5d8e059c8b | 2,723 | py | Python | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | 1 | 2021-12-23T00:36:43.000Z | 2021-12-23T00:36:43.000Z | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | null | null | null | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2
#
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
"""
Some common boilerplates and helper functions for source code generation
in files dgen_test_output.py and dgen_decode_out... | 31.298851 | 76 | 0.693353 |
0ac3e6f75c6ad2e83d2f026142ba224b4bab8c20 | 2,507 | py | Python | src/data_loader/input_data_loader.py | ChristopherBrix/Debona | f000f3d483b2cc592233d0ba2a1a0327210562c8 | [
"BSD-2-Clause"
] | 2 | 2020-07-26T09:48:22.000Z | 2021-09-30T01:51:13.000Z | src/data_loader/input_data_loader.py | ChristopherBrix/Debona | f000f3d483b2cc592233d0ba2a1a0327210562c8 | [
"BSD-2-Clause"
] | 2 | 2022-01-13T03:56:13.000Z | 2022-03-12T01:03:29.000Z | src/data_loader/input_data_loader.py | ChristopherBrix/Debona | f000f3d483b2cc592233d0ba2a1a0327210562c8 | [
"BSD-2-Clause"
] | null | null | null |
"""
Functions for loading input data.
Author: Patrick Henriksen <patrick@henriksen.as>
"""
import os
import numpy as np
def load_img(path: str, img_nums: list, shape: tuple) -> np.array:
"""
Loads a image in the human-readable format.
Args:
path:
The path to the to the folder with... | 25.845361 | 101 | 0.603111 |
0ac42e49c824529d0aa71dbe888c2a691322545e | 2,527 | py | Python | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'splash_screen.ui'
##
## Created by: Qt User Interface Compiler version 5.15.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 37.716418 | 140 | 0.646617 |
0ac44ba5690cb44ecf9e208ad61f69b8762610fd | 634 | py | Python | tools/leetcode.112.Path Sum/leetcode.112.Path Sum.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.112.Path Sum/leetcode.112.Path Sum.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.112.Path Sum/leetcode.112.Path Sum.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @param {integer} sum
# @return {boolean}
def hasPathSum(self, root, sum):
if not root: ret... | 634 | 634 | 0.545741 |
0ac4b5f3fcc2b83c0b6c655a23b542fa299d00d2 | 41,041 | py | Python | pandas/io/sql.py | danbirken/pandas | fa8a5ca1dd27c4169727070ddbdcb248002fddb4 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | pandas/io/sql.py | danbirken/pandas | fa8a5ca1dd27c4169727070ddbdcb248002fddb4 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | pandas/io/sql.py | danbirken/pandas | fa8a5ca1dd27c4169727070ddbdcb248002fddb4 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | """
Collection of query wrappers / abstractions to both facilitate data
retrieval and to reduce dependency on DB-specific API.
"""
from __future__ import print_function, division
from datetime import datetime, date, timedelta
import warnings
import traceback
import itertools
import re
import numpy as np
import pandas... | 33.806425 | 103 | 0.608002 |
0ac61484010824f5bc86d5e3f43da1576d3d9bbb | 4,411 | py | Python | Systerm/meta.py | ZytroCode/Systerm | 688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7 | [
"MIT"
] | 1 | 2022-03-01T02:36:29.000Z | 2022-03-01T02:36:29.000Z | Systerm/meta.py | ZytroCode/Systerm | 688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7 | [
"MIT"
] | 1 | 2022-03-04T03:20:50.000Z | 2022-03-04T03:20:50.000Z | Systerm/meta.py | ZytroCode/Systerm | 688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7 | [
"MIT"
] | null | null | null | """Meta is a module contains objects that will customize the behavior of python."""
from abc import ABC
from abc import ABCMeta
from abc import abstractmethod
from typing import Any
from typing import Callable
import Systerm
# Metaclass
# Object class
# List class
# Dictionary class
# Recreating ABC
ABC = Metacla... | 30.42069 | 102 | 0.608025 |
0ac6cf77a3b421f63bd83476f536c84c12d3066c | 11,859 | py | Python | samples/apps/txregulator/tests/txregulatorclient.py | iqsarv/CCF | 5cc33a1f0e06eb2a25dc1ebd0e2153881962b889 | [
"Apache-2.0"
] | 1 | 2020-02-03T21:57:22.000Z | 2020-02-03T21:57:22.000Z | samples/apps/txregulator/tests/txregulatorclient.py | kuychaco/CCF | e11acde3be6a7d2213fe5b406b959bb5bb64361d | [
"Apache-2.0"
] | null | null | null | samples/apps/txregulator/tests/txregulatorclient.py | kuychaco/CCF | e11acde3be6a7d2213fe5b406b959bb5bb64361d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
import infra.e2e_args
import infra.ccf
import infra.jsonrpc
import logging
from time import gmtime, strftime
import csv
import random
from loguru import logger as LOG
if __name__ == "__main__":
args = infra.e... | 39.795302 | 117 | 0.474239 |
0ac72633419a62f181f2995c29a463e6cede8eca | 4,925 | py | Python | src/finmag/sim/hysteresis.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | src/finmag/sim/hysteresis.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | src/finmag/sim/hysteresis.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | import os
import re
import glob
import logging
import textwrap
import fileinput
import numpy as np
from finmag.energies import Zeeman
from finmag.util.helpers import norm
log = logging.getLogger(name="finmag")
def hysteresis(sim, H_ext_list, fun=None, **kwargs):
"""
Set the applied field to the first value i... | 34.929078 | 79 | 0.650355 |
0ac87693a78b8ba6514e5ac5aa8d9530546bb44b | 39,691 | py | Python | uiSetup.py | smokedpirate/Encryption-hash-generator | 47bf3f1f6b6b24ca3e9078fefe46b1e6409d59e5 | [
"Apache-2.0"
] | 4 | 2020-09-24T16:34:03.000Z | 2020-10-23T09:52:59.000Z | uiSetup.py | Atharv-Khatri/Password-Encryption-Generator-Timathon-Submission- | 3a3db2fa9dc27c8f604d0eb0917e8ffa717f4786 | [
"Apache-2.0"
] | 1 | 2020-08-02T08:46:06.000Z | 2020-08-02T08:46:06.000Z | uiSetup.py | Atharv-Khatri/Password-Encryption-Generator-Timathon-Submission- | 3a3db2fa9dc27c8f604d0eb0917e8ffa717f4786 | [
"Apache-2.0"
] | 1 | 2020-08-02T08:33:46.000Z | 2020-08-02T08:33:46.000Z |
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5 import QtGui, QtCore
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
| 54.222678 | 105 | 0.659192 |
0ac88c66372990e2da39877dd262a4baa72b4bfd | 791 | py | Python | yxtx/myApp/migrations/0017_chat.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0017_chat.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0017_chat.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-17 08:44
from django.db import migrations, models
| 30.423077 | 91 | 0.556258 |
0ac8bc92bddd721b23be9da9373cb90b73f83f01 | 1,200 | py | Python | core/controllers/services.py | willingc/oh-missions-oppia-beta | 3d97903a5155ec67f135b1aa2c02f3bb39eb02e7 | [
"Apache-2.0"
] | null | null | null | core/controllers/services.py | willingc/oh-missions-oppia-beta | 3d97903a5155ec67f135b1aa2c02f3bb39eb02e7 | [
"Apache-2.0"
] | 2 | 2021-06-10T23:58:39.000Z | 2021-12-13T20:51:34.000Z | core/controllers/services.py | willingc/oh-missions-oppia-beta | 3d97903a5155ec67f135b1aa2c02f3bb39eb02e7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 31.578947 | 77 | 0.726667 |
0ac98e5cdb6676a542021f48c116aa5fa733e705 | 16,208 | py | Python | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation
#
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights... | 35.311547 | 79 | 0.653258 |
0ac9b8651f0cd02d3cb27eefe5c6577d55fc334a | 4,080 | py | Python | libs/configs/COCO/cfgs_res50_1x_coco_v3.py | lj-ecjtu/Cascade_FPN_Tensorflow-master | 40fcd2c10f057b3f015ca1380d7db102e967391f | [
"MIT"
] | 43 | 2019-04-25T08:07:49.000Z | 2021-08-24T08:33:37.000Z | libs/configs/COCO/cfgs_res50_1x_coco_v3.py | lj-ecjtu/Cascade_FPN_Tensorflow-master | 40fcd2c10f057b3f015ca1380d7db102e967391f | [
"MIT"
] | 16 | 2019-05-11T03:51:19.000Z | 2021-10-09T08:26:18.000Z | libs/configs/COCO/cfgs_res50_1x_coco_v3.py | lj-ecjtu/Cascade_FPN_Tensorflow-master | 40fcd2c10f057b3f015ca1380d7db102e967391f | [
"MIT"
] | 15 | 2019-04-29T03:26:35.000Z | 2020-05-26T05:35:39.000Z | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import os
import tensorflow as tf
'''
gluoncv backbone + multi_gpu
'''
# ------------------------------------------------
VERSION = 'Cascade_FPN_Res50_COCO_1x_20190421_v3'
NET_NAME = 'resnet50_v1d'
ADD_BOX_IN_TENSORBOARD = True
... | 31.384615 | 100 | 0.684069 |
0acab913205c6b28e2e38031c30bbb139185f389 | 3,055 | py | Python | python/delta/tests/test_exceptions.py | vibhaska/delta | 0e16356ff46520404e2376d048f002ca74f6dc0c | [
"Apache-2.0"
] | 1 | 2022-01-18T10:52:49.000Z | 2022-01-18T10:52:49.000Z | python/delta/tests/test_exceptions.py | vibhaska/delta | 0e16356ff46520404e2376d048f002ca74f6dc0c | [
"Apache-2.0"
] | null | null | null | python/delta/tests/test_exceptions.py | vibhaska/delta | 0e16356ff46520404e2376d048f002ca74f6dc0c | [
"Apache-2.0"
] | 1 | 2022-03-06T09:29:55.000Z | 2022-03-06T09:29:55.000Z | #
# Copyright (2020) The Delta Lake Project 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 applicable law or ag... | 41.849315 | 87 | 0.734206 |
0acabac25e7f182a0cc9d197e74fb9a54f708fdd | 629 | py | Python | day10/samematrix.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day10/samematrix.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day10/samematrix.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null |
print("Enter the 1st matrix")
first_matrix = matrix_form()
print(first_matrix)
print("Enter the 2nd matrix")
sec_matrix = matrix_form()
print(sec_matrix)
check_matrix(first_matrix,sec_matrix) | 22.464286 | 45 | 0.63434 |
0acb3e8369864a2998734321cae251dc26fd05fa | 2,884 | py | Python | extractFeatures.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-04-27T19:55:29.000Z | 2020-04-27T19:55:29.000Z | extractFeatures.py | PatrickJReed/Longboard2 | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-02-26T18:06:09.000Z | 2020-02-26T18:06:09.000Z | extractFeatures.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | null | null | null | #!/home/ubuntu/miniconda2/bin/python
from __future__ import division
import sys
import glob, os, gc
import uuid
import os.path
import csv
import numpy as np
from time import time
from subprocess import (call, Popen, PIPE)
from itertools import product
import shutil
import re
import pickle
from boto3.session import Ses... | 31.692308 | 138 | 0.662968 |
0accac5244ae00b90c3dcaa313e0ad6674cf5f7f | 5,284 | py | Python | kepler.py | mdbernard/astrodynamics | cf98df6cd17086e3675c1f7c2fce342d5322ee51 | [
"MIT"
] | null | null | null | kepler.py | mdbernard/astrodynamics | cf98df6cd17086e3675c1f7c2fce342d5322ee51 | [
"MIT"
] | 14 | 2020-11-10T02:37:15.000Z | 2022-02-07T01:11:29.000Z | kepler.py | mdbernard/astrodynamics | cf98df6cd17086e3675c1f7c2fce342d5322ee51 | [
"MIT"
] | null | null | null | import numpy as np
from stumpff import C, S
from CelestialBody import BODIES
from numerical import newton, laguerre
from lagrange import calc_f, calc_fd, calc_g, calc_gd
def kepler_chi(chi, alpha, r0, vr0, mu, dt):
''' Kepler's Equation of the universal anomaly, modified
for use in numerical solvers. '''
... | 39.140741 | 115 | 0.645912 |
0acd26a6aeb9fbb21484a68cd667f26b74d856f7 | 952 | py | Python | nicos_demo/vpgaa/setups/pgai.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_demo/vpgaa/setups/pgai.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_demo/vpgaa/setups/pgai.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'PGAA setup with XYZOmega sample table'
group = 'basic'
sysconfig = dict(
datasinks = ['mcasink', 'chnsink', 'csvsink', 'livesink']
)
includes = [
'system',
'reactor',
'nl4b',
'pressure',
'sampletable',
'pilz',
'detector',
'collimation',
]
devices = dict(
mcasin... | 23.219512 | 73 | 0.522059 |
0acd83639363e1e8109b480a9d0f9a0898831b8f | 54,720 | py | Python | tests/python/relay/test_op_level2.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 3 | 2021-02-23T22:06:01.000Z | 2021-09-30T09:59:17.000Z | tests/python/relay/test_op_level2.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 4 | 2021-03-30T11:59:59.000Z | 2022-03-12T00:40:23.000Z | tests/python/relay/test_op_level2.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 3 | 2021-07-20T07:40:15.000Z | 2021-08-03T08:39:17.000Z | # 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
# "License"); you may not u... | 43.052714 | 101 | 0.564126 |
0ace54f568ea92472966bb73d6fa4f6d624bebbf | 6,859 | py | Python | official/nlp/transformer/utils/tokenizer_test.py | hjkim-haga/TF-OD-API | 22ac477ff4dfb93fe7a32c94b5f0b1e74330902b | [
"Apache-2.0"
] | 1 | 2021-05-22T12:50:50.000Z | 2021-05-22T12:50:50.000Z | official/nlp/transformer/utils/tokenizer_test.py | DemonDamon/mask-detection-based-on-tf2odapi | 192ae544169c1230c21141c033800aa1bd94e9b6 | [
"MIT"
] | null | null | null | official/nlp/transformer/utils/tokenizer_test.py | DemonDamon/mask-detection-based-on-tf2odapi | 192ae544169c1230c21141c033800aa1bd94e9b6 | [
"MIT"
] | null | null | null | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 33.458537 | 81 | 0.626185 |
0ace832c1c225820e768849e83537e4e6af2dc78 | 76 | py | Python | api/api/form7_searching_utils/__init__.py | bcgov/court-of-appeal | ef773b1baa80d3aff1ac807ed01f59266d885955 | [
"Apache-2.0"
] | null | null | null | api/api/form7_searching_utils/__init__.py | bcgov/court-of-appeal | ef773b1baa80d3aff1ac807ed01f59266d885955 | [
"Apache-2.0"
] | 35 | 2021-02-02T19:30:11.000Z | 2022-03-29T12:40:42.000Z | api/api/form7_searching_utils/__init__.py | marzmehr/court-of-appeal | ef773b1baa80d3aff1ac807ed01f59266d885955 | [
"Apache-2.0"
] | 2 | 2021-02-03T17:26:23.000Z | 2021-02-05T13:35:26.000Z | from .form7_search import Form7Search
from .parse_form7 import Form7Parsing
| 25.333333 | 37 | 0.868421 |
0acf1290742f590cb6015abc57d74458d907cabb | 1,164 | py | Python | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | 1 | 2020-08-06T11:58:35.000Z | 2020-08-06T11:58:35.000Z | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | 4 | 2019-12-13T11:27:28.000Z | 2022-02-27T11:58:38.000Z | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | null | null | null | # Copyright 2020 Soil, Inc.
from soil.openstack.base import DataBase
from soil.openstack.base import SourceBase
| 25.304348 | 63 | 0.636598 |
0acf3366802d8714bb15485c54ab7f3de9aac778 | 2,776 | py | Python | Z - Tool Box/LaZagne/Windows/lazagne/softwares/windows/ppypykatz.py | dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1 | 1dcf54522e9d20711ff1114550dc2893ed3e9ed0 | [
"MIT"
] | 1,290 | 2020-05-28T21:24:43.000Z | 2022-03-31T16:38:43.000Z | Z - Tool Box/LaZagne/Windows/lazagne/softwares/windows/ppypykatz.py | dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1 | 1dcf54522e9d20711ff1114550dc2893ed3e9ed0 | [
"MIT"
] | 1 | 2020-07-03T21:14:52.000Z | 2020-07-03T21:14:52.000Z | Z - Tool Box/LaZagne/Windows/lazagne/softwares/windows/ppypykatz.py | dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1 | 1dcf54522e9d20711ff1114550dc2893ed3e9ed0 | [
"MIT"
] | 280 | 2020-05-29T17:28:38.000Z | 2022-03-31T13:54:15.000Z | # -*- coding: utf-8 -*-
# Thanks to @skelsec for his awesome tool Pypykatz
# Checks his project here: https://github.com/skelsec/pypykatz
import codecs
import traceback
from lazagne.config.module_info import ModuleInfo
from lazagne.config.constant import constant
from pypykatz.pypykatz import pypykatz
| 36.526316 | 106 | 0.501801 |
0acf54e8a20fd816eda3589c3b616626bb4f33fb | 14,981 | py | Python | test/test_discogs.py | mglukhovsky/beets | 889e30c056a609cf71c8c8200259520230545222 | [
"MIT"
] | null | null | null | test/test_discogs.py | mglukhovsky/beets | 889e30c056a609cf71c8c8200259520230545222 | [
"MIT"
] | null | null | null | test/test_discogs.py | mglukhovsky/beets | 889e30c056a609cf71c8c8200259520230545222 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of beets.
# Copyright 2016, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation t... | 41.269972 | 79 | 0.59235 |
0acf5c8efa495629dab15411d7c1138e6f73ca8f | 1,417 | py | Python | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 18 | 2020-02-09T13:00:11.000Z | 2021-03-11T08:47:36.000Z | """Queue represented by a pseudo stack (represented by a list with pop and append)"""
| 24.431034 | 85 | 0.562456 |
0ad02fbe661ef723ec6b1d7108a2d41a85831a5b | 17,018 | py | Python | darknet2ncnn.py | nihui/gen-ncnn-models | 18523f1920d9afc44ce3058087c07e09f28aa151 | [
"BSD-2-Clause"
] | 4 | 2019-12-24T15:16:18.000Z | 2021-05-14T08:12:17.000Z | darknet2ncnn.py | nihui/gen-ncnn-models | 18523f1920d9afc44ce3058087c07e09f28aa151 | [
"BSD-2-Clause"
] | null | null | null | darknet2ncnn.py | nihui/gen-ncnn-models | 18523f1920d9afc44ce3058087c07e09f28aa151 | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
# coding: utf-8
import configparser
import numpy as np
import re,sys,os
from graph import MyGraph
from collections import OrderedDict
def unique_config_sections(config_file):
"""Convert all config sections to have unique names.
Adds unique suffixes to config sections for compability wi... | 36.915401 | 117 | 0.534317 |
0ad05115e0ac22a4083ac999a331c7da804f1e24 | 1,058 | py | Python | music/models.py | anirudha-bs/Django_music_app | 1b80bd4299a35fb707c32307dd115074a8ecba9f | [
"Apache-2.0"
] | null | null | null | music/models.py | anirudha-bs/Django_music_app | 1b80bd4299a35fb707c32307dd115074a8ecba9f | [
"Apache-2.0"
] | null | null | null | music/models.py | anirudha-bs/Django_music_app | 1b80bd4299a35fb707c32307dd115074a8ecba9f | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import Permission, User
from django.db import models
| 37.785714 | 74 | 0.73535 |
0ad16ca68b13c3255bfd62c00d84e6b8aa940002 | 3,021 | py | Python | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | import datetime
import calendar
import requests
import pandas as pd
import json
import os.path
import time
import MySQLdb as M
from gdax_history import timestamp_to_utcstr
if __name__ == "__main__":
main()
| 30.21 | 207 | 0.581595 |
0ad19b186920402498e9734534abe48d50e505b7 | 2,154 | py | Python | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | """Configures a Kafka Connector for Postgres Station data"""
import json
import logging
import requests
from settings import Settings
logger = logging.getLogger(__name__)
KAFKA_CONNECT_URL = f"{Settings.URLs.KAFKA_CONNECT_URL}/connectors"
CONNECTOR_NAME = "stations"
def configure_connector():
"""Starts and co... | 35.311475 | 98 | 0.679201 |
0ad20a796d3e2e784e9676daf81a22cf86a1d3cb | 8,474 | py | Python | liuetal2019/utils.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 24 | 2020-12-07T10:22:40.000Z | 2022-03-31T09:24:13.000Z | liuetal2019/utils.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 15 | 2021-03-22T04:52:57.000Z | 2022-01-01T18:32:31.000Z | liuetal2019/utils.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 8 | 2021-03-04T05:09:42.000Z | 2022-01-25T12:59:19.000Z | import io
import logging
import json
import numpy
import torch
import numpy as np
from tqdm import tqdm
from clie.inputters import constant
from clie.objects import Sentence
from torch.utils.data import Dataset
from torch.utils.data.sampler import Sampler
logger = logging.getLogger(__name__)
# ---------------------... | 34.587755 | 85 | 0.576941 |
0ad2503d07ac5b15fee30f7480f83b4ea51f1515 | 914 | py | Python | build.py | dnanexus/IndexTools | 0392b3be92ff50b401290b59e9ca6c7767fa5a96 | [
"MIT"
] | 15 | 2019-07-17T11:41:36.000Z | 2021-03-02T09:36:34.000Z | build.py | dnanexus/IndexTools | 0392b3be92ff50b401290b59e9ca6c7767fa5a96 | [
"MIT"
] | 22 | 2019-05-15T20:08:12.000Z | 2019-10-11T13:33:42.000Z | build.py | dnanexus/IndexTools | 0392b3be92ff50b401290b59e9ca6c7767fa5a96 | [
"MIT"
] | 3 | 2019-06-01T15:58:06.000Z | 2022-01-21T21:10:01.000Z | from distutils.extension import Extension
cmdclass = {}
try:
# with Cython
from Cython.Build import build_ext
cmdclass["build_ext"] = build_ext
module_src = "cgranges/python/cgranges.pyx"
except ImportError: # without Cython
module_src = "cgranges/python/cgranges.c"
def build(setup_kwargs):
... | 25.388889 | 64 | 0.504376 |
0ad2792c4efbba79b47edb4a13bc47fda219fd40 | 48 | py | Python | icarus/models/service/__init__.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 5 | 2021-03-20T09:22:55.000Z | 2021-12-20T17:01:33.000Z | icarus/models/service/__init__.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-12-13T07:40:46.000Z | 2021-12-20T16:59:08.000Z | icarus/models/service/__init__.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-11-25T05:42:20.000Z | 2021-11-25T05:42:20.000Z | # -*- coding: utf-8 -*-
from .compSpot import *
| 16 | 23 | 0.583333 |
0ad2916f049d06f5df6ddbf5e08b57510f7c1b78 | 17,212 | py | Python | gluoncv/data/kinetics400/classification.py | YvetteGuo/gluon-cv | 123af8cf9f15a879c16a5c7d12f01ce1471d85b6 | [
"Apache-2.0"
] | 1 | 2019-04-02T02:08:04.000Z | 2019-04-02T02:08:04.000Z | gluoncv/data/kinetics400/classification.py | YvetteGuo/gluon-cv | 123af8cf9f15a879c16a5c7d12f01ce1471d85b6 | [
"Apache-2.0"
] | 1 | 2019-06-06T08:39:12.000Z | 2019-06-06T08:39:12.000Z | gluoncv/data/kinetics400/classification.py | YvetteGuo/gluon-cv | 123af8cf9f15a879c16a5c7d12f01ce1471d85b6 | [
"Apache-2.0"
] | 1 | 2019-08-26T09:26:42.000Z | 2019-08-26T09:26:42.000Z | # pylint: disable=line-too-long,too-many-lines,missing-docstring
"""Kinetics400 action classification dataset."""
import os
import random
import numpy as np
from mxnet import nd
from mxnet.gluon.data import dataset
__all__ = ['Kinetics400']
| 65.444867 | 152 | 0.625552 |
0ad33111935325f80d27dfada02fe97074254f24 | 2,206 | py | Python | qf_lib/containers/futures/future_contract.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 198 | 2019-08-16T15:09:23.000Z | 2022-03-30T12:44:00.000Z | qf_lib/containers/futures/future_contract.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 13 | 2021-01-07T10:15:19.000Z | 2022-03-29T13:01:47.000Z | qf_lib/containers/futures/future_contract.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 29 | 2019-08-16T15:21:28.000Z | 2022-02-23T09:53:49.000Z | # Copyright 2016-present CERN European Organization for Nuclear Research
#
# 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.... | 38.701754 | 118 | 0.704442 |
0ad331ec8ece0975704ec9214918b2580008a6a0 | 23,842 | py | Python | watcher/api/controllers/v1/action_plan.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 64 | 2015-10-18T02:57:24.000Z | 2022-01-13T11:27:51.000Z | watcher/api/controllers/v1/action_plan.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | null | null | null | watcher/api/controllers/v1/action_plan.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 35 | 2015-12-25T13:53:21.000Z | 2021-07-19T15:50:16.000Z | # -*- encoding: utf-8 -*-
# Copyright 2013 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 39.149425 | 79 | 0.637279 |
0ad4a301cbaa49708e90318cda5d0db992bcc1f1 | 354 | py | Python | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | from flask import *
albums = Blueprint('albums', __name__, template_folder='templates')
| 19.666667 | 67 | 0.700565 |
0ad4ca562029351bba499bd795e4d3faca8ffc96 | 3,113 | py | Python | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import DetailView, ListView
from django.views.generic.edit import CreateView, UpdateView
from dfirtrack_main.forms import ... | 40.428571 | 85 | 0.697719 |
0ad57f93e09c3cfa475ee8a3a4f941a9c684524d | 1,613 | py | Python | run.py | shark803/Torch_serve_example_NLP | 7f7984a1668f21aced3a7a1e8ddac3c8e0ff0105 | [
"MIT"
] | 1 | 2021-11-19T07:59:58.000Z | 2021-11-19T07:59:58.000Z | run.py | shark803/Torch_serve_example_NLP | 7f7984a1668f21aced3a7a1e8ddac3c8e0ff0105 | [
"MIT"
] | null | null | null | run.py | shark803/Torch_serve_example_NLP | 7f7984a1668f21aced3a7a1e8ddac3c8e0ff0105 | [
"MIT"
] | null | null | null | # coding: UTF-8
import time
import torch
import numpy as np
from train_eval import train, init_network
from importlib import import_module
import argparse
parser = argparse.ArgumentParser(description='Chinese Text Classification')
parser.add_argument('--model', type=str, required=True, help='choose a model: TextCNN')
... | 32.918367 | 97 | 0.726596 |
0ad5ae1fbe9b6f2bb0a59a7bd762d3ef2ea1b7ed | 22,315 | py | Python | src/tests/cfp/views/test_cfp_user.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | src/tests/cfp/views/test_cfp_user.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | src/tests/cfp/views/test_cfp_user.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | import pytest
from django.conf import settings
from django.core import mail as djmail
from django.core.files.uploadedfile import SimpleUploadedFile
from django.urls import reverse
from django_scopes import scope
from rest_framework.authtoken.models import Token
from pretalx.submission.models import SubmissionStates
... | 36.945364 | 92 | 0.6946 |
0ad630d29820371f228b1287947197de5ede3fb0 | 5,954 | py | Python | tests/mb_util.py | vasilydenisenko/modbus_rtu_slave | 8a531b776ab82c60b5d335f0565468f19a7801f5 | [
"MIT"
] | null | null | null | tests/mb_util.py | vasilydenisenko/modbus_rtu_slave | 8a531b776ab82c60b5d335f0565468f19a7801f5 | [
"MIT"
] | null | null | null | tests/mb_util.py | vasilydenisenko/modbus_rtu_slave | 8a531b776ab82c60b5d335f0565468f19a7801f5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2021 Vasily Denisenko, Sergey Kuznetsov
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | 25.553648 | 81 | 0.673161 |
0ad6db55250893c680ef209759e33e069cabdd9a | 4,292 | py | Python | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 1 | 2017-04-26T18:51:43.000Z | 2017-04-26T18:51:43.000Z | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | import fix_path
import json
import datetime
from google.appengine.ext import ndb
# Taken from http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript
dthandler = lambda obj: (
obj.isoformat()
if isinstance(obj, datetime.datetime)
or isinstance(obj, datetime.date)
else Non... | 40.490566 | 98 | 0.682199 |
0ad7c645c6d3067f3c0c435d4f3782feef6cf400 | 218 | py | Python | src/main/java/com/bailei/study/beautyOfCoding/cpu50.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/bailei/study/beautyOfCoding/cpu50.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/bailei/study/beautyOfCoding/cpu50.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
import time
busyTime = 10
idleTime = busyTime
while True:
start = time.clock()
while time.clock() - start < busyTime:
pass
time.sleep(busyTime / 1000)
| 14.533333 | 42 | 0.614679 |
0ad85408ba998c356a370a0f1582159d01f77a69 | 8,390 | py | Python | carto/maps.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 85 | 2016-08-07T16:46:58.000Z | 2022-03-23T01:44:02.000Z | carto/maps.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 109 | 2016-08-02T18:40:04.000Z | 2021-08-23T08:08:02.000Z | carto/maps.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 29 | 2016-11-29T03:42:47.000Z | 2022-01-23T17:37:11.000Z | """
Module for working with named and anonymous maps
.. module:: carto.maps
:platform: Unix, Windows
:synopsis: Module for working with named and anonymous maps
.. moduleauthor:: Daniel Carrion <daniel@carto.com>
.. moduleauthor:: Alberto Romeu <alrocar@carto.com>
"""
try:
from urllib.parse import urljoi... | 33.293651 | 86 | 0.555662 |
0ad87d7268affd7dfe13527d4d842a2d43c681ac | 157 | py | Python | client_driver.py | tlagore/kv_store | e3f139eabaa14d0e001193e21baf7e5c96e0358d | [
"MIT"
] | null | null | null | client_driver.py | tlagore/kv_store | e3f139eabaa14d0e001193e21baf7e5c96e0358d | [
"MIT"
] | null | null | null | client_driver.py | tlagore/kv_store | e3f139eabaa14d0e001193e21baf7e5c96e0358d | [
"MIT"
] | null | null | null | from kv_client.kv_client import KVClient
if __name__ == "__main__":
main() | 19.625 | 44 | 0.656051 |
0ad8ce46348b78515a8db8b2c9bc54898f1ab6f9 | 1,208 | py | Python | pytorch-frontend/benchmarks/operator_benchmark/pt/embeddingbag_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 206 | 2020-11-28T22:56:38.000Z | 2022-03-27T02:33:04.000Z | pytorch-frontend/benchmarks/operator_benchmark/pt/embeddingbag_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 19 | 2020-12-09T23:13:14.000Z | 2022-01-24T23:24:08.000Z | pytorch-frontend/benchmarks/operator_benchmark/pt/embeddingbag_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 28 | 2020-11-29T15:25:12.000Z | 2022-01-20T02:16:27.000Z | import operator_benchmark as op_bench
import torch
import numpy
from . import configs
"""EmbeddingBag Operator Benchmark"""
op_bench.generate_pt_test(configs.embeddingbag_short_configs, EmbeddingBagBenchmark)
op_bench.generate_pt_gradient_test(configs.embeddingbag_short_configs, EmbeddingBagBenchmark)
if __name__ =... | 38.967742 | 107 | 0.724338 |
0ad9fee81c50ef01672c1f7b553d66bc07bc9155 | 3,972 | py | Python | python/dgl/geometry/capi.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 9,516 | 2018-12-08T22:11:31.000Z | 2022-03-31T13:04:33.000Z | python/dgl/geometry/capi.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 2,494 | 2018-12-08T22:43:00.000Z | 2022-03-31T21:16:27.000Z | python/dgl/geometry/capi.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 2,529 | 2018-12-08T22:56:14.000Z | 2022-03-31T13:07:41.000Z | """Python interfaces to DGL farthest point sampler."""
from dgl._ffi.base import DGLError
import numpy as np
from .._ffi.function import _init_api
from .. import backend as F
from .. import ndarray as nd
def _farthest_point_sampler(data, batch_size, sample_points, dist, start_idx, result):
r"""Farthest Point Samp... | 38.563107 | 95 | 0.680514 |
0adab04d82e555974b5ee3aecff08feca7c75415 | 6,478 | py | Python | scidb/core/data.py | oxdc/sci.db | 0a751a0e05e7ad4c83c350e32e32ea9ce5831cbb | [
"MIT"
] | null | null | null | scidb/core/data.py | oxdc/sci.db | 0a751a0e05e7ad4c83c350e32e32ea9ce5831cbb | [
"MIT"
] | null | null | null | scidb/core/data.py | oxdc/sci.db | 0a751a0e05e7ad4c83c350e32e32ea9ce5831cbb | [
"MIT"
] | null | null | null | import shutil
import hashlib
from pathlib import Path
from typing import TextIO, BinaryIO, IO, Union
from datetime import datetime
from os.path import getmtime
from .low import ObservableDict
def rename(self, new_name: str):
shutil.move(str(self.path), str(self.__parent__.path / new_name))
self.__... | 35.988889 | 102 | 0.599105 |
0adacd25859bed18399a4d523ba68cd8adb2bc90 | 39,932 | py | Python | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 9 | 2019-12-29T01:47:37.000Z | 2021-12-21T13:47:41.000Z | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 1 | 2020-05-28T11:22:49.000Z | 2020-05-28T11:22:49.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 38.806608 | 101 | 0.698162 |
0adb9e87674ba38043bf368fb738d4c5e8ba7c5c | 362 | py | Python | escola/teste_get.py | danielrosendos/djangoRestFramework | 946bb95b8dd9976d1920302ce724572ffd9f98cf | [
"MIT"
] | 2 | 2020-07-26T15:17:23.000Z | 2020-07-26T16:50:18.000Z | escola/teste_get.py | sport129/djangoRestFramework | 946bb95b8dd9976d1920302ce724572ffd9f98cf | [
"MIT"
] | 3 | 2021-03-30T14:12:18.000Z | 2021-06-04T23:44:47.000Z | escola/teste_get.py | sport129/djangoRestFramework | 946bb95b8dd9976d1920302ce724572ffd9f98cf | [
"MIT"
] | null | null | null | import requests
headers = {
'content-type': 'application/json',
'Authorization': 'Token 80ca9f249b80e7226cdc7fcaada8d7297352f0f9'
}
url_base_cursos = 'http://127.0.0.1:8000/api/v2/cursos'
url_base_avaliacoes = 'http://127.0.0.1:8000/api/v2/avaliacoes'
resultado = requests.get(url=url_base_cursos, headers=hea... | 27.846154 | 69 | 0.756906 |
0adc55ed2f06787ab63a1224266a2dd707ce1b10 | 6,455 | py | Python | python/avi/sdk/utils/waf_policy/vdi_waf_policy.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | null | null | null | python/avi/sdk/utils/waf_policy/vdi_waf_policy.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | null | null | null | python/avi/sdk/utils/waf_policy/vdi_waf_policy.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 VMware, Inc.
import argparse
import json
import re
import logging
import os
import sys
from avi.sdk.avi_api import ApiSession
API_VERSION = "18.2.13"
SYSTEM_WAF_POLICY_VDI='System-WAF-Policy-VDI'
logger = logging.getLogger(__name__)
if __name__ == '__main__':
parser = argparse.ArgumentParser(... | 38.652695 | 219 | 0.632223 |
0adcde8b96a5cb82b17bdf29ba072f1b54339883 | 4,101 | py | Python | src/api/bkuser_core/tests/bkiam/test_constants.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/api/bkuser_core/tests/bkiam/test_constants.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/api/bkuser_core/tests/bkiam/test_constants.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | 1 | 2021-12-31T06:48:41.000Z | 2021-12-31T06:48:41.000Z | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making -(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Yo... | 39.432692 | 115 | 0.613997 |
0add3254851b32ab4bc7e1c39aca7cbe53d6398b | 190 | py | Python | votesim/benchmarks/__init__.py | johnh865/election_sim | b73b7e65f1bb22abb82cbe8442fcf02b0c20894e | [
"MIT"
] | 8 | 2019-10-21T23:24:51.000Z | 2021-09-14T03:04:59.000Z | votesim/benchmarks/__init__.py | johnh865/election_sim | b73b7e65f1bb22abb82cbe8442fcf02b0c20894e | [
"MIT"
] | 2 | 2021-02-09T23:52:47.000Z | 2021-02-10T04:08:35.000Z | votesim/benchmarks/__init__.py | johnh865/election_sim | b73b7e65f1bb22abb82cbe8442fcf02b0c20894e | [
"MIT"
] | 1 | 2019-10-21T23:32:18.000Z | 2019-10-21T23:32:18.000Z | # from votesim.benchmarks.benchrunner import (
# run_benchmark,
# get_benchmarks,
# post_benchmark,
# plot_benchmark,
# )
from votesim.benchmarks import runtools, simple | 23.75 | 47 | 0.705263 |
0add5b092c6c665d2b618a20a05d4cd299d00402 | 1,948 | py | Python | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | import boto3
import src.app as app
import csv
import psycopg2 as ps
import os
from dotenv import load_dotenv
load_dotenv()
dbname = os.environ["db"]
host = os.environ["host"]
port = os.environ["port"]
user = os.environ["user"]
password = os.environ["pass"]
connection = ps.connect(dbname=dbname,
... | 31.419355 | 185 | 0.587269 |
0adf4b5bea842a306db59cff9711a1e6a19b7ae0 | 3,753 | py | Python | improver_tests/precipitation_type/test_utilities.py | cpelley/improver | ebf77fe2adc85ed7aec74c26671872a2e4388ded | [
"BSD-3-Clause"
] | 77 | 2017-04-26T07:47:40.000Z | 2022-03-31T09:40:49.000Z | improver_tests/precipitation_type/test_utilities.py | cpelley/improver | ebf77fe2adc85ed7aec74c26671872a2e4388ded | [
"BSD-3-Clause"
] | 1,440 | 2017-03-29T10:04:15.000Z | 2022-03-28T10:11:29.000Z | improver_tests/precipitation_type/test_utilities.py | MoseleyS/improver | ca028e3a1c842e3ff00b188c8ea6eaedd0a07149 | [
"BSD-3-Clause"
] | 72 | 2017-03-17T16:53:45.000Z | 2022-02-16T09:41:37.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2021 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions a... | 39.925532 | 79 | 0.742073 |
0ae04a483b4283bc6fdc84bd651d77ab70b6120c | 5,149 | py | Python | app/api/v1/models/items.py | bryan-munene/Store-Manager-DB | 40b24039189aea6854d7fcf33ccb648bb6642231 | [
"MIT"
] | null | null | null | app/api/v1/models/items.py | bryan-munene/Store-Manager-DB | 40b24039189aea6854d7fcf33ccb648bb6642231 | [
"MIT"
] | 4 | 2018-10-25T00:57:18.000Z | 2018-10-25T21:29:09.000Z | app/api/v1/models/items.py | bryan-munene/Store-Manager-DB | 40b24039189aea6854d7fcf33ccb648bb6642231 | [
"MIT"
] | null | null | null | from .db_conn import ModelSetup
| 31.206061 | 112 | 0.543212 |
0ae122f08d00736fbd1d09356f366ff9dcd6baf8 | 4,215 | py | Python | site/src/sphinx/_extensions/api.py | linxGnu/armeria | 7f4b10e66acc377dd16929157aeb417b729ce55a | [
"Apache-2.0"
] | null | null | null | site/src/sphinx/_extensions/api.py | linxGnu/armeria | 7f4b10e66acc377dd16929157aeb417b729ce55a | [
"Apache-2.0"
] | null | null | null | site/src/sphinx/_extensions/api.py | linxGnu/armeria | 7f4b10e66acc377dd16929157aeb417b729ce55a | [
"Apache-2.0"
] | null | null | null | from docutils.parsers.rst.roles import register_canonical_role, set_classes
from docutils.parsers.rst import directives
from docutils import nodes
from sphinx.writers.html import HTMLTranslator
from sphinx.errors import ExtensionError
import os
import re
| 37.633929 | 103 | 0.629656 |
0ae19706ac78f27bbbf84e3668bc38423a4a2fcd | 739 | py | Python | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 3 | 2015-05-04T03:20:09.000Z | 2016-02-19T10:35:35.000Z | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 3 | 2015-01-02T13:18:56.000Z | 2021-02-08T20:17:14.000Z | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T13:11:45.000Z | 2016-08-26T06:14:35.000Z | # Copyright 2014 varnishapi authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import time
from feaas import storage
| 24.633333 | 57 | 0.649526 |
0ae22c03054218a911ddc84125341497677c75ac | 2,045 | py | Python | ros_buildfarm/debian_repo.py | j-rivero/ros_buildfarm | 840d2dc1dd5db00d5407da4644cd2bcbc5e0ac88 | [
"Apache-2.0"
] | null | null | null | ros_buildfarm/debian_repo.py | j-rivero/ros_buildfarm | 840d2dc1dd5db00d5407da4644cd2bcbc5e0ac88 | [
"Apache-2.0"
] | 1 | 2019-12-12T21:08:01.000Z | 2019-12-12T21:08:01.000Z | ros_buildfarm/debian_repo.py | j-rivero/ros_buildfarm | 840d2dc1dd5db00d5407da4644cd2bcbc5e0ac88 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 36.517857 | 91 | 0.695355 |
0ae277577c0d9cf0180a37747d11d8dcd292baa5 | 57 | py | Python | player.py | Drayux/Battlematus | 1709a15b58d9274b99ec36eff1a181014d155037 | [
"MIT"
] | null | null | null | player.py | Drayux/Battlematus | 1709a15b58d9274b99ec36eff1a181014d155037 | [
"MIT"
] | null | null | null | player.py | Drayux/Battlematus | 1709a15b58d9274b99ec36eff1a181014d155037 | [
"MIT"
] | null | null | null | # PLAYER
| 9.5 | 23 | 0.561404 |
0ae2b8b9a2e89b056cf58f74862944546c4ef4a9 | 48,440 | py | Python | Framwork-Backpropagation/utils/utils_v2.py | ConvolutedDog/Implicit-Im2col-for-Backpropagation | 529a62f52903326b9289091b7d0abb45e6c7bb31 | [
"Apache-2.0"
] | null | null | null | Framwork-Backpropagation/utils/utils_v2.py | ConvolutedDog/Implicit-Im2col-for-Backpropagation | 529a62f52903326b9289091b7d0abb45e6c7bb31 | [
"Apache-2.0"
] | null | null | null | Framwork-Backpropagation/utils/utils_v2.py | ConvolutedDog/Implicit-Im2col-for-Backpropagation | 529a62f52903326b9289091b7d0abb45e6c7bb31 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 ConvolutedDog (https://github.com/ConvolutedDog/)
#
# 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 ... | 34.624732 | 172 | 0.63429 |
0ae2d03accd91cc3db5f01917f5d31fdecbb74e5 | 4,372 | py | Python | ark_nlp/factory/utils/attack.py | yubuyuabc/ark-nlp | 165d35cfacd7476791c0aeba19bf43f4f8079553 | [
"Apache-2.0"
] | 1 | 2022-03-23T05:10:55.000Z | 2022-03-23T05:10:55.000Z | ark_nlp/factory/utils/attack.py | yubuyuabc/ark-nlp | 165d35cfacd7476791c0aeba19bf43f4f8079553 | [
"Apache-2.0"
] | null | null | null | ark_nlp/factory/utils/attack.py | yubuyuabc/ark-nlp | 165d35cfacd7476791c0aeba19bf43f4f8079553 | [
"Apache-2.0"
] | null | null | null | import torch
| 31.681159 | 101 | 0.52699 |
0ae341f931ab8799a80b73c9036820e58b4d7de6 | 5,790 | py | Python | core.py | sreejithr/deepfake | c7115ce90ea281e2eb95d75f436efa102c8f2e3c | [
"MIT"
] | null | null | null | core.py | sreejithr/deepfake | c7115ce90ea281e2eb95d75f436efa102c8f2e3c | [
"MIT"
] | 3 | 2021-09-08T02:24:48.000Z | 2022-03-12T00:44:53.000Z | core.py | sreejithr/deepfake | c7115ce90ea281e2eb95d75f436efa102c8f2e3c | [
"MIT"
] | null | null | null | import cv2
import torch
import yaml
import imageio
import throttle
import numpy as np
import matplotlib.pyplot as plt
from argparse import ArgumentParser
from skimage.transform import resize
from scipy.spatial import ConvexHull
from modules.generator import OcclusionAwareGenerator
from modules.keypoint_detector import... | 34.260355 | 142 | 0.68342 |
0ae3d125da916faaaf9490284cbbfda3ebc0f150 | 1,735 | py | Python | soupy/approximations/taylor/backup/__init__.py | cpempire/soupy | 9f65e3329fa126619c893daa4cd80478d83f840c | [
"MIT"
] | 1 | 2021-12-07T15:22:23.000Z | 2021-12-07T15:22:23.000Z | soupy/approximations/taylor/backup/__init__.py | cpempire/soupy | 9f65e3329fa126619c893daa4cd80478d83f840c | [
"MIT"
] | null | null | null | soupy/approximations/taylor/backup/__init__.py | cpempire/soupy | 9f65e3329fa126619c893daa4cd80478d83f840c | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
from .controlPDEProblem import ControlPDEProblem
from .controlPDEProblemMultiPDE import ControlPDEProblemMultiPDE
from .costFunctionalConstant import CostFunctionalConstant
from .costFunctionalConstantMultiPDE import CostFunctionalConstantMultiPDE
from .... | 42.317073 | 93 | 0.821326 |
0ae6683abfd956b5c3952439b03a59e007c9300a | 2,402 | py | Python | models/1-Tom/train/kaggle-hubmap-main/src/02_train/transforms.py | navekshasood/HuBMAP---Hacking-the-Kidney | 018100fe4bfa5e8764b9df5a9d188e2c670ac061 | [
"MIT"
] | null | null | null | models/1-Tom/train/kaggle-hubmap-main/src/02_train/transforms.py | navekshasood/HuBMAP---Hacking-the-Kidney | 018100fe4bfa5e8764b9df5a9d188e2c670ac061 | [
"MIT"
] | null | null | null | models/1-Tom/train/kaggle-hubmap-main/src/02_train/transforms.py | navekshasood/HuBMAP---Hacking-the-Kidney | 018100fe4bfa5e8764b9df5a9d188e2c670ac061 | [
"MIT"
] | null | null | null | import numpy as np
from albumentations import (Compose, HorizontalFlip, VerticalFlip, Rotate, RandomRotate90,
ShiftScaleRotate, ElasticTransform,
GridDistortion, RandomSizedCrop, RandomCrop, CenterCrop,
RandomBrightnessContrast, HueSatu... | 40.711864 | 113 | 0.572856 |
0ae709052ebf9505470ee0404f1013ba86cb8e0e | 13,017 | py | Python | cubspack/geometry.py | Majikat/cubspack | 16aa6df0603d48d757d74837d3457a1934601d89 | [
"Apache-2.0"
] | 11 | 2018-06-18T12:05:34.000Z | 2021-02-24T19:00:24.000Z | cubspack/geometry.py | Majikat/cubspack | 16aa6df0603d48d757d74837d3457a1934601d89 | [
"Apache-2.0"
] | null | null | null | cubspack/geometry.py | Majikat/cubspack | 16aa6df0603d48d757d74837d3457a1934601d89 | [
"Apache-2.0"
] | 2 | 2018-04-08T17:30:00.000Z | 2018-09-27T08:38:42.000Z | # -*- coding: utf-8 -*-
from math import sqrt
def __eq__(self, other):
"""Equal cuboids have same properties."""
if not isinstance(other, self.__class__):
return False
return (self.width == other.width and
self.height == other.height and
s... | 29.517007 | 85 | 0.556657 |
0ae84e0cfa142229ba7d5efbff2238d28b93f418 | 16,661 | py | Python | app/recipe/tests/test_recipe_api.py | tahmadvand/recipe_app_api | 40b4cc6960d7dc4858373b5f6ccca980ed0eeac8 | [
"MIT"
] | null | null | null | app/recipe/tests/test_recipe_api.py | tahmadvand/recipe_app_api | 40b4cc6960d7dc4858373b5f6ccca980ed0eeac8 | [
"MIT"
] | null | null | null | app/recipe/tests/test_recipe_api.py | tahmadvand/recipe_app_api | 40b4cc6960d7dc4858373b5f6ccca980ed0eeac8 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
# use that for making our API requests
from core.models import Recipe, Tag, Ingredient
from ..serializers import RecipeSerializer... | 40.43932 | 78 | 0.667547 |
0ae880533e14de2255d5554b8a0bb6b7cbc5e1bb | 1,089 | py | Python | Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | c5767361f60f1ec405ab235af85035e2bb9a71e3 | [
"Apache-2.0"
] | null | null | null | Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | c5767361f60f1ec405ab235af85035e2bb9a71e3 | [
"Apache-2.0"
] | null | null | null | Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | c5767361f60f1ec405ab235af85035e2bb9a71e3 | [
"Apache-2.0"
] | null | null | null | # Assignment 1 Day 8
# write a decorator function for taking input for you
# any kind of function you want to build
addition()
subtraction()
multiplication()
division()
# Assignment 2 day 8
# you need to develop a python program to open a file in read only mode and
# try writing something to it an... | 22.22449 | 85 | 0.651974 |
0ae8c65cafc822a3267fba35c6ed220e7f320711 | 11,646 | py | Python | gwcs/coordinate_frames.py | migueldvb/gwcs | 4eb2abdb1d9d49ee10c1edbcae0d1cec4c758c39 | [
"BSD-3-Clause"
] | null | null | null | gwcs/coordinate_frames.py | migueldvb/gwcs | 4eb2abdb1d9d49ee10c1edbcae0d1cec4c758c39 | [
"BSD-3-Clause"
] | null | null | null | gwcs/coordinate_frames.py | migueldvb/gwcs | 4eb2abdb1d9d49ee10c1edbcae0d1cec4c758c39 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Defines coordinate frames and ties them to data axes.
"""
from __future__ import absolute_import, division, unicode_literals, print_function
import numpy as np
from astropy import units as u
from astropy import utils as astutil
from astropy import coo... | 32.713483 | 99 | 0.574618 |
0aea8c17200ee38f7b989cd3fe4ee1c7be72a125 | 4,286 | py | Python | modox/chan_modifier.py | lukpazera/modox | 4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01 | [
"MIT"
] | 11 | 2021-02-19T17:11:04.000Z | 2021-12-03T17:14:58.000Z | modox/chan_modifier.py | lukpazera/modox | 4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01 | [
"MIT"
] | null | null | null | modox/chan_modifier.py | lukpazera/modox | 4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01 | [
"MIT"
] | null | null | null |
import lx
import modo
import select
import item
from run import run
| 28.573333 | 110 | 0.614326 |
0aeade2b44478bdc750fc6e4297d377345ef5136 | 500 | py | Python | brownie_fund_me/scripts/fund_and_withdraw.py | WangCHEN9/solidity_demos | cf28111a1e972ab9dde70f6d3fac22c897d8b660 | [
"MIT"
] | null | null | null | brownie_fund_me/scripts/fund_and_withdraw.py | WangCHEN9/solidity_demos | cf28111a1e972ab9dde70f6d3fac22c897d8b660 | [
"MIT"
] | null | null | null | brownie_fund_me/scripts/fund_and_withdraw.py | WangCHEN9/solidity_demos | cf28111a1e972ab9dde70f6d3fac22c897d8b660 | [
"MIT"
] | null | null | null | from brownie import FundMe
from scripts.helpful_scripts import get_account
if __name__ == "__main__":
main()
| 18.518519 | 58 | 0.654 |
0aeb5c0e9a64382d41d3447557ec9fb64a32a973 | 409 | py | Python | ex019.py | jefernathan/Python | 2f840a625e8d46d41ab36df07ef50ae15a03c5ab | [
"MIT"
] | null | null | null | ex019.py | jefernathan/Python | 2f840a625e8d46d41ab36df07ef50ae15a03c5ab | [
"MIT"
] | null | null | null | ex019.py | jefernathan/Python | 2f840a625e8d46d41ab36df07ef50ae15a03c5ab | [
"MIT"
] | null | null | null | # Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faa um programa que ajude ele, lendo o nome dos alunos e escrevendo na tela o nome do escolhido.
from random import choice
nome1 = input('Digite um nome: ')
nome2 = input('Digite outro nome: ')
nome3 = input('Digite mais um nome: ')
nome4 = i... | 34.083333 | 173 | 0.728606 |
0aeb7979679122962a3fff866f48391b6b9c9278 | 489 | py | Python | contacts/admin.py | liviamendes/agenda-django-project | d602bb5e762ea477c3c97b5a475ad79036c0c93d | [
"MIT"
] | null | null | null | contacts/admin.py | liviamendes/agenda-django-project | d602bb5e762ea477c3c97b5a475ad79036c0c93d | [
"MIT"
] | null | null | null | contacts/admin.py | liviamendes/agenda-django-project | d602bb5e762ea477c3c97b5a475ad79036c0c93d | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Categoria, Contact
admin.site.register(Categoria)
admin.site.register(Contact, ContactAdmin)
| 30.5625 | 102 | 0.691207 |