blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
494ab83141545c0a5d3051e10fe35e0c87efb1f1 | 261234c12bf71bbf86eba31ca263369bfdebbf30 | /tests/test_stringio.py | 71b8ea3d19dd2efdcfe270ce4240e21ea8460f42 | [
"BSD-3-Clause"
] | permissive | mobanbot/pyexcel-xlsxr | d9a5159c1b87a41ac04d80e0363dd0b8cdedaf5e | d9e53b6d773b6e35ee48c9d460cb8baf36eef797 | refs/heads/master | 2020-09-09T10:11:41.849989 | 2019-11-15T19:11:20 | 2019-11-15T19:11:20 | 221,419,912 | 0 | 0 | NOASSERTION | 2019-11-13T09:20:39 | 2019-11-13T09:20:38 | null | UTF-8 | Python | false | false | 1,029 | py | import os
import pyexcel
from nose.tools import eq_
from base import create_sample_file1
class TestStringIO:
def test_xlsx_stringio(self):
testfile = "cute.xlsx"
create_sample_file1(testfile)
with open(testfile, "rb") as f:
content = f.read()
r = pyexcel.get_sheet(
... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
e65e04050a9ffbf4e416d3cb7e53441ca84c5b9f | 022228249a7892e1efeaa11f0d445ba7cb115891 | /authentication/serializers.py | 011a96af3114e12acdffea258ab42a7f81522af8 | [] | no_license | angaradev/django-vue-interface | bacef985b9f9cbd4379992133168c9278b4f707b | 2e55d217b12bcda3c54acbb90cd3466bca955c5a | refs/heads/master | 2022-12-01T09:24:29.788368 | 2022-11-22T07:09:44 | 2022-11-22T07:09:44 | 241,351,571 | 0 | 2 | null | 2022-11-22T07:09:45 | 2020-02-18T12:08:14 | JavaScript | UTF-8 | Python | false | false | 3,917 | py | from rest_framework import serializers
from users.models import CustomUser
from users.models import CustomUser as User
from django.contrib import auth
from rest_framework.exceptions import AuthenticationFailed
from django.utils.encoding import (
smart_str,
force_str,
smart_bytes,
DjangoUnicodeDecodeErro... | [
"angara99@gmail.com"
] | angara99@gmail.com |
3b05b105b8f442f3e07ed76b144ee24fb0d6ce5a | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/django-debug-panel-0.8.3/debug_panel/middleware.py | 14c5b48d5964640b4dbf154c81f4905b5e9c3775 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 2,457 | py | """
Debug Panel middleware
"""
import threading
import time
from django.core.urlresolvers import reverse, resolve, Resolver404
from django.conf import settings
from debug_panel.cache import cache
import debug_toolbar.middleware
# the urls patterns that concern only the debug_panel application
import debug_panel.urls
... | [
"yingchen@cloudera.com"
] | yingchen@cloudera.com |
140193e8b223ec353654ac28391e418b308092b8 | 54bb9ba6d507cd25b2c2ac553665bc5fc95280d1 | /tests/onegov/core/test_security.py | d6cb3a8018e3f17681deab1fcf90d636a5b8f972 | [
"MIT"
] | permissive | href/onegov-cloud | 9ff736d968979380edba266b6eba0e9096438397 | bb292e8e0fb60fd1cd4e11b0196fbeff1a66e079 | refs/heads/master | 2020-12-22T07:59:13.691431 | 2020-01-28T08:51:54 | 2020-01-28T08:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,798 | py | import morepath
import onegov.core.security
from onegov.core.framework import Framework
from onegov.core.security import Public, Personal, Private, Secret
from onegov.core.security import forget, remembered
from webtest import TestApp as Client
def spawn_basic_permissions_app(redis_url):
class App(Framework):
... | [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
71bc3b046d96579648ee64146b4b6a2e910feb89 | c577f5380b4799b4db54722749cc33f9346eacc1 | /BugSwarm/scikit-learn-scikit-learn-85777543/buggy_files/sklearn/cluster/tests/test_affinity_propagation.py | be76d597eef444ecd2cf368fad0a1259f2460d6a | [] | no_license | tdurieux/BugSwarm-dissection | 55db683fd95f071ff818f9ca5c7e79013744b27b | ee6b57cfef2119523a083e82d902a6024e0d995a | refs/heads/master | 2020-04-30T17:11:52.050337 | 2019-05-09T13:42:03 | 2019-05-09T13:42:03 | 176,972,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | """
Testing for Clustering methods
"""
import numpy as np
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_raises, assert_warns
from sklearn.utils import ConvergenceWarning
from sklearn.cluster.affinity_propagation_ import A... | [
"durieuxthomas@hotmail.com"
] | durieuxthomas@hotmail.com |
ad761f121773b96b4f78a9b9f7ea2450e0c4c3d5 | 6fa13067f1f5f50a48f7a535184c8abfb0334012 | /old/fall2019/oop_examples.py | b751853def3aa03845d734e625193736c2968cd0 | [] | no_license | mkzia/eas503 | 89193b889c39fc5dbc81217e1c6c3d2581b6929d | 4d7b548cc7fa8e938842d390f3df710c23d5f8fb | refs/heads/master | 2023-09-04T06:56:49.796298 | 2023-09-01T02:05:16 | 2023-09-01T02:05:16 | 205,002,120 | 70 | 123 | null | null | null | null | UTF-8 | Python | false | false | 5,884 | py | # class Person:
# def __init__(self, first_name, last_name, email):
# self.first_name = first_name
# self.last_name = last_name
# self.email = email
# class Person:
# def __init__(self, first_name, last_name, email):
# self.first_name = first_name
# self.last_name = las... | [
"mkhawarzia@gmail.com"
] | mkhawarzia@gmail.com |
4507f3ce698ea8e4d76202ff17dedccceba597b6 | ed7e3f32a3895eb7505dc6211cd1bbc2745fbc54 | /cloudhoststatus/hostinformation/utils.py | 3be14b6009e10fb82d16184e0d6cd4c932aa7f85 | [] | no_license | heyuantao/thinking | 6544e630c32c0b17f92e9aedf4b6ee1288c843e6 | 784b7d07130a165648ef7bee5d8164ccd7c9210b | refs/heads/master | 2021-01-21T21:33:22.238673 | 2016-05-09T14:36:02 | 2016-05-09T14:36:02 | 36,917,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from hostinformation.models import KeyValueStorage
class SystemSettings(object):
hostIdKeyName="hostId"
hostSecretKeyName="hostSecret"
@classmethod
def getHostId(cls):
obj,created=KeyValueStorage.objects.get_or_create(key=cls.hostIdKeyName)
if created is True:
return ""
... | [
"he_yuan_tao@163.com"
] | he_yuan_tao@163.com |
d70400b9b4cb8edb95fcca1b4e23c5b768538339 | 08bfacc0b63c129d852e5eedead8f3b21b098343 | /analysis/urls.py | 6ead5e7da4e51ecc3fb4fae5060030887d1b38d1 | [] | no_license | good5229/happyride | 8d1df12396496bfefd5b932ac7c0f1fd8929ab83 | 955466a91929c7d15dd33c82a7c49743fc55c59f | refs/heads/master | 2022-05-02T06:04:52.259988 | 2019-08-27T11:31:27 | 2019-08-27T11:31:27 | 202,042,046 | 1 | 0 | null | 2022-04-22T22:10:39 | 2019-08-13T01:54:21 | HTML | UTF-8 | Python | false | false | 695 | py | from django.urls import path
from analysis.views import Select_Location, Introduce, Predict_Economic, Predict_User, Result_User, \
Result_Economic, Drive_AreaView
app_name = 'analysis'
urlpatterns = [
path('introduce/', Introduce.as_view(), name='intro'),
path('select_location/', Select_Location.as_view(... | [
"kjb45841497@gmail.com"
] | kjb45841497@gmail.com |
c6047ccc958185a7aaa2ec34eb117a488afa6cf1 | a74b980fd95d5d810315f181449fc9d1710e6923 | /savecode/threeyears/idownserver/config_db.py | 54d30fd111cbcff5712a182ba8015f97fe6876ab | [
"Apache-2.0"
] | permissive | cbbbbbbbb/sspywork | b70f5539203b47b21eec2f0514ddca155affc2b8 | 8f05a6b91fc205960edd57f9076facec04f49a1a | refs/heads/master | 2023-03-22T19:45:13.024076 | 2021-03-08T01:24:21 | 2021-03-08T01:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | """配置数据库"""
# -*- coding:utf-8 -*-
from .dbmanager.dbsqlite.sqlite_config import SqliteConfig
sqlitecfg = SqliteConfig(
dbdir='./_serverdb',
# dbname='./data.db',
maxdbfisize=500 * 1024 * 1024,
maxconnperdb=30,
errordbdelete=False,
connecttimeoutsec=60,
delete_on_error=True,
)
| [
"shiyuegege@qq.com"
] | shiyuegege@qq.com |
51feb1559d6269a8bfbe08d97f9059b84886f477 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /boj/2580_스도쿠.py | 498972a522ce313c9187777f9cde167e32d68636 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import sys
b=[list(map(int,sys.stdin.readline().split()))for _ in range(9)]
row=[[0]*10 for _ in range(9)]
col=[[0]*10 for _ in range(9)]
square=[[0]*10 for _ in range(9)]
get=[[i//3*3+j//3 for j in range(9)]for i in range(9)]
z=[]
for i in range(9):
for j in range(9):
if b[i][j]==0:
z.append((i... | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
b9eac1b34516eab3db0ae5f654b67b82ec25891c | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/IAD/fairseq/examples/simultaneous_translation/utils/functions.py | f795b5f31cee6d9f8387d6402994b9cbb4c98190 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 3,954 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
def exclusive_cumprod(tensor, dim: int, eps: float = 1e-10):
"""
Implementing exclusive cumprod.
There is cumprod i... | [
"tage@microsoft.com"
] | tage@microsoft.com |
bc33ec4c1cac4aed716365eb8ae537c42c02fa03 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02688/s707932277.py | 9bb9f9ebd664c458e43faf1f9d9f2c836d2529c5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | n,k=map(int,input().split())
myset = set()
for i in range(k):
d=input()
l=list(map(int,input().split()))
myset |= set(l)
print(n-len(myset)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d2f9e6d958f03a5c89889d6a704b8d701c4173f0 | eb1a5854a8c3bbd857b0c3b108b264832677f12e | /prysm/objects.py | 5167fce0490b23600276629fda08e8d49ecb3190 | [
"MIT"
] | permissive | mjhoptics/prysm | 7cd585b29e173b53b57f09346609d3127b69ff59 | 5dea335e068d04d1006741d8eb02278181751f73 | refs/heads/master | 2023-07-19T14:52:13.316350 | 2021-08-15T16:10:18 | 2021-08-15T16:10:18 | 396,978,540 | 1 | 0 | MIT | 2021-08-16T21:26:44 | 2021-08-16T21:26:43 | null | UTF-8 | Python | false | false | 6,324 | py | """Objects for image simulation with."""
from .conf import config
from .mathops import np, jinc
from .coordinates import optimize_xy_separable
def slit(x, y, width_x, width_y=None):
"""Rasterize a slit or pair of crossed slits.
Parameters
----------
x : `numpy.ndarray`
x coordinates, 1D or 2... | [
"brandondube@gmail.com"
] | brandondube@gmail.com |
7cbb5eb8707a5c3a2451ed01940cacc34a7c9c80 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /testing/testing_submissions/testing_assignment_003/venv/bin/mypyc | 9843b76647f25e34ab701200dba447c6a53a5d7b | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 1,445 | #!/home/ec2-user/environment/venv/bin/python3
"""Mypyc command-line tool.
Usage:
$ mypyc foo.py [...]
$ python3 -c 'import foo' # Uses compiled 'foo'
This is just a thin wrapper that generates a setup.py file that uses
mypycify, suitable for prototyping and testing.
"""
import os
import os.path
import sub... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in | |
9cea8323471d1cb4bf4034ee3bce45e3042d155d | 7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4 | /algorithm/codexpert/d2Snake.py | 5388465d3ada1254b3ef75afeedbfc82e10e804a | [] | no_license | seunghoon2334/TIL | c84f9f9e68c8ccc7a1625222fe61f40739774730 | 51cfbad2d9b80a37b359716fca561c2a5c5b48b3 | refs/heads/master | 2022-12-18T18:20:19.210587 | 2019-11-26T03:14:23 | 2019-11-26T03:14:23 | 162,101,369 | 0 | 0 | null | 2022-11-22T03:59:16 | 2018-12-17T08:51:53 | C | UTF-8 | Python | false | false | 1,278 | py | import sys #586
sys.stdin = open("d2snake.txt")
n = int(input())#정사각형크기
arr = [[0 for _ in range(n+1)] for _ in range(n+1)]
k = int(input())#과일개수
for kc in range(k):
r, c = map(int, input().split()) #가로세로
arr[r][c] = 1
L = int(input())#뱀이동경로
xLD = []
for Lc in range(L):
x, LD = input().split()
xLD.app... | [
"gogo12394@naver.com"
] | gogo12394@naver.com |
34c72a2618fca99d55dd02269e2e53b0aa13b9a9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Tesseract/code.py | 38d2b389a4b19db0738f940c16a2d08159008335 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 5,590 | py | from __future__ import division
from pylab import *
import time, os
from copy import deepcopy
from pprint import pprint, pformat
'''
input:
path: path to input file
parser: function:
input:
list of the rows of the input file
returns:
one parsed case
NOTE: only us... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b56bf90f4601ec982c31f9e318ef5fd791d66707 | 1726e893c9c66b915fff639de6ca43d87c06e690 | /exponent/application.py | bbe6f208bfee6fb5460d543bb7e041889c79fd87 | [
"ISC"
] | permissive | lvh/exponent | 348b637dda7bb1f3d81e0bd00ac99417e7530d9f | 0a42866ef13dcc923a37c216725e4e37d63ca604 | refs/heads/master | 2021-01-13T02:27:11.726551 | 2013-12-05T10:28:13 | 2013-12-05T10:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | """
Tools for running exponent applications.
"""
from axiom import store
from twisted import plugin
from twisted.application import service
from twisted.python import usage
from zope import interface
class Options(usage.Options):
"""
The options for starting a service.
"""
optParameters = [
["... | [
"_@lvh.cc"
] | _@lvh.cc |
6b2fa7ea502e2b423745919bd9b2ab6e4fe75afa | 478a6213b06ce085d478c7c825e44cbfd141d06f | /10. Creating Fractals Using Recursion/sierpinski/sierpinski.pyde | 91fb98718b3171077fca1f55df9bd882a22a1363 | [] | no_license | Mart1nDimtrov/Math-Adventures-with-Python | 3306c7452d82cc152a29a113ccde782c06b659fa | 7b5446a9d718e21d65b9c2ddecb2b64905896b55 | refs/heads/master | 2021-02-07T02:54:19.025286 | 2020-05-17T12:55:01 | 2020-05-17T12:55:01 | 243,974,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | pyde | def setup():
size(600,600)
color(HSB)
def draw():
background(255)
translate(100,450)
sierpinski(400,5)
def sierpinski(sz, level):
if level == 0: #draw a black triangle
fill(random(0,255),random(0,255),random(0,255))
triangle(0,0,sz,0,sz/2.0,-sz*sqrt(3)/2.0)
else: ... | [
"giggly@abv.bg"
] | giggly@abv.bg |
6beb4e426945a0d8897516fd52971bea4abcb94d | a1d30d667cbf814db1809c31cf68ba75c01f819c | /tags/Tree/Flatten BT to Linkedlist.py | 7c15062de52a5910799bf9ea71a9ffa2486c5c9c | [] | no_license | yemao616/summer18 | adb5f0e04e6f1e1da6894b0b99a61da3c5cba8ee | 8bb17099be02d997d554519be360ef4aa1c028e3 | refs/heads/master | 2021-06-02T04:32:07.703198 | 2020-01-09T17:45:29 | 2020-01-09T17:45:29 | 110,744,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | # Given a binary tree, flatten it to a linked list in-place.
# Example :
# Given
# 1
# / \
# 2 5
# / \ \
# 3 4 6
# The flattened tree should look like:
# 1
# \
# 2
# \
# 3
# \
# 4
# \
# 5
# \
# ... | [
"ymao4@ncsu.edu"
] | ymao4@ncsu.edu |
dc4825ef18bb6cae5a0307d81db2ea09d982a13e | 5152267a5c7a0a935a4f6cc8972779014805f04c | /20120507b.py | cc58713d453c68af8a0c41029313afe2032f2851 | [] | no_license | argriffing/xgcode | d099af1a3ac36c88383f3312f1cb9aaf661fd7db | 91c6f8331f18c914eb3dfc51bc166915998c5081 | refs/heads/master | 2020-05-17T09:00:00.431019 | 2014-08-08T23:52:21 | 2014-08-08T23:52:21 | 471,437 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | """
Look at properties of an effective parent independent process.
Sample a GTR rate matrix.
Then construct a constrained parent independent process rate matrix
defined by properties of the GTR rate matrix.
Check that the mutual information of the parent independent process
at time t is a lower bound of the mutual inf... | [
"argriffi@brcdesk18.statgen.ncsu.edu"
] | argriffi@brcdesk18.statgen.ncsu.edu |
a628d7ceda2a8eb1d874e7f40c0878fe22ba8ab9 | 5215ee22217a0bddc6a6eae3b0e49c1216a77bbc | /mungo/alchemy/meta.py | 578584a783b50d8f8dab26e7ccb608dc0adbae4a | [
"Artistic-2.0"
] | permissive | PapenfussLab/Mungo | 5cda4d19a5ef4cb51da495f7abf259b4cd4d1697 | 02c5b0e48ecd28596cb9481b282753859f47fed6 | refs/heads/master | 2021-01-17T07:40:08.832760 | 2015-08-20T01:21:19 | 2015-08-20T01:21:19 | 41,067,597 | 1 | 3 | null | 2016-06-12T23:31:20 | 2015-08-20T01:02:28 | Python | UTF-8 | Python | false | false | 425 | py | """SQLAlchemy Metadata and Session object"""
from sqlalchemy import MetaData
__all__ = ['engine', 'metadata', 'Session']
# SQLAlchemy database engine. Updated by model.init_model().
engine = None
# SQLAlchemy session manager. Updated by model.init_model().
Session = None
# Global metadata. If you have multiple da... | [
"papenfuss@mac2576.wehi.edu.au"
] | papenfuss@mac2576.wehi.edu.au |
b652ec9ffc3e21b67be950335b2126e63695117d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_dram.py | 5d379abfd3955de914db69c5d314d31ec973e5e1 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py |
#calss header
class _DRAM():
def __init__(self,):
self.name = "DRAM"
self.definitions = [u'a small amount of a strong alcoholic drink, especially whisky: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
re... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e5357773c6c2f0da6e0d850004f753a2b41dc227 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/test/my_site/app01/models.py | 7871cff22f15df0622ed8b705c1345bdfafe1aaf | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 933 | py | from django.db import models
# Create your models here.
class Account(models.Model):
'''账户表'''
username = models.CharField(max_length=32,unique=True)
email = models.EmailField(unique=True)
password = models.CharField(max_length=255)
register_date = models.DateTimeField(auto_now_add=True)
singa... | [
"13269469526@163.com"
] | 13269469526@163.com |
5ad63d10193172a8a19de2697991f0b59cb19909 | 3437f523434b86af02476fc0056030a67feaa9a5 | /test/test_baseOT.py | dcf1bdbdf8040f9a4b89c6fd25bf29ff8ddbe0a5 | [
"MIT"
] | permissive | facebookresearch/CrypTen | 481d0bfc94582eedef8b3510d91fd6b3ce253097 | 99c3a046b705c9d69d7a10fcab59a444ffbee39a | refs/heads/main | 2023-09-04T21:10:29.331999 | 2023-08-25T22:11:00 | 2023-08-25T22:11:00 | 202,443,088 | 1,388 | 323 | MIT | 2023-09-01T16:34:22 | 2019-08-15T00:00:31 | Python | UTF-8 | Python | false | false | 1,241 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import crypten.mpc.primitives.ot.baseOT as baseOT
from test.multiprocess_test_case import MultiProces... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
56a0222574e3e2c191117f58d59dcac0387ae020 | bf54d746e4ab50ca4253dd6f8b3378bd079eb882 | /scripts/grafana-export | 8181d3d40bcbe90228c0d94f931367961fbca0eb | [
"BSD-3-Clause"
] | permissive | betatim/mybinder.org-deploy | 25da8cd55f23bb021c2c2d381716aef9c9c5b233 | 3804b1046b6524e3ec70e6fcd6f6857405ee92ef | refs/heads/master | 2023-03-15T22:52:13.313870 | 2021-09-22T06:55:27 | 2021-09-22T06:55:27 | 109,370,219 | 1 | 1 | BSD-3-Clause | 2023-03-13T04:57:51 | 2017-11-03T08:18:25 | Jupyter Notebook | UTF-8 | Python | false | false | 5,004 | #!/usr/bin/env python3
"""
Export grafana data to a folder
Also import data from that folder
"""
import json
import logging
import os
import pathlib
import requests
log = logging.getLogger("grafana-export")
grafana_user = os.environ.get("GRAFANA_USER", "admin")
grafana_password = os.environ.get("GRAFANA_PASSWORD"... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com | |
dddc48388ea72fb3b6981c7258f091e6bf14da72 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/df6fc083175443ed83b2505e8da593f1.py | 809a1b41f43d4c03fafb0ee4ce94047827381828 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 270 | py | def to_rna(dna_strand):
# RNA Transcription
DNA_TO_RNA_MAP = {
'G' : 'C',
'C' : 'G',
'T' : 'A',
'A' : 'U'
}
rna_complement = [DNA_TO_RNA_MAP.get(dna) for dna in dna_strand]
return ''.join(rna_complement)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
758d372eb62c65cba99f2571370ce15e747387b4 | 5c4515960dcbfd3861d06d90b8c9bde0bdf3ecf5 | /Iserlab/migrations/0035_auto_20170302_0810.py | 7d6a5db6322c4680a611d4fe8212055b041520af | [] | no_license | Mathilda1992/mcysite | 66bb2f51de622b7f7c450664c798eb11ce195cae | def82e43474ecc734c6cbb26842bd87f698b2b88 | refs/heads/master | 2021-01-11T19:58:23.611196 | 2017-06-26T08:58:11 | 2017-06-26T08:58:11 | 79,434,975 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-03-02 08:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Iserlab', '0034_auto_20170302_0809'),
]
operations = [
migrations.AlterField... | [
"machenyi2011@163.com"
] | machenyi2011@163.com |
13f5f8f2931af507819c44b93233efd3687d4d95 | 3e23aaf1d482843e3640dc2721ab887082063b51 | /num201_300/num201_210/num206.py | 570ac7b26a91b8149be9e80d2a651cebfe26a96f | [] | no_license | guozhaoxin/leetcode | b19be28c0dc82fa7a5126edafa7c77ae2c77f22e | 807ba32ed7802b756e93dfe44264dac5bb9317a0 | refs/heads/master | 2020-04-01T10:29:49.375239 | 2019-02-24T03:27:18 | 2019-02-24T03:27:18 | 153,120,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | #encoding:utf8
__author__ = 'gold'
'''
Reverse Linked List
Reverse a singly linked list.
Example:
Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL
Follow up:
A linked list can be reversed either iteratively or recursively. Could you implement both?
'''
# Definition for singly-linked list.
class ListNode(ob... | [
"1345616978@qq.com"
] | 1345616978@qq.com |
9f4e2449261c50ef4c16361f47be1a70b8464e4e | 8ead8ff4182a67659a2b80213faecee95c012f84 | /module.py | 0f4d8ad42540dd23909bb6f48b9f1035fff033a4 | [] | no_license | dhruvramani/CycleGAN-Embedding-2 | fb2e54080cc929415436a983ec653587c86a1ad5 | 609783969ac73ca7fb93a1e95bc8043608370e22 | refs/heads/master | 2023-05-11T15:44:04.846618 | 2017-08-01T16:54:49 | 2017-08-01T16:54:49 | 98,720,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,544 | py | from __future__ import division
import tensorflow as tf
from ops import *
from utils import *
def discriminator(image, options, reuse=False, name="discriminator"):
with tf.variable_scope(name):
# image is 256 x 256 x input_c_dim
if reuse:
tf.get_variable_scope().reuse_variables()
... | [
"dhruvramani98@gmail.com"
] | dhruvramani98@gmail.com |
c8bf2b352b2f32605bcdaa0a330b9a4963a8c53f | 8076124f4087781e0513dbe09c0f43dc6a861ab0 | /src/sentry/lang/native/error.py | dbcdea855bb36c1196064d3beabc057a61a887e6 | [
"BSD-2-Clause"
] | permissive | sharmapacific/sentry | 75e3356f87cb5a1e812e0974b081fd47852dfe33 | fceabe7cb84de587fe05b2c36edc013058e7e55a | refs/heads/master | 2020-08-19T00:13:48.748983 | 2019-10-17T17:09:06 | 2019-10-17T17:09:06 | 215,851,537 | 1 | 0 | BSD-3-Clause | 2019-10-17T17:43:49 | 2019-10-17T17:43:49 | null | UTF-8 | Python | false | false | 3,965 | py | from __future__ import absolute_import
import logging
import six
from sentry.utils.compat import implements_to_string
from sentry.lang.native.minidump import is_minidump_event
from sentry.lang.native.utils import image_name
from sentry.models import EventError
from sentry.reprocessing import report_processing_issue
... | [
"noreply@github.com"
] | sharmapacific.noreply@github.com |
0f8eacb7fa7c26cbfee9f58864a68aa27edfd36f | bee9a140f51f85c612f4e869747aae3d155188c5 | /src/main/python/systemds/operator/algorithm/builtin/univar.py | 3a9f8f2fb8724ad740047651788559ccded88ea1 | [
"Apache-2.0"
] | permissive | clarapueyoballarin/systemds | cb64a494afd14da142269c788c76edb236d8b755 | a68a71ddb089ebdd52e8f316a03bda281f4532ba | refs/heads/master | 2023-05-22T16:39:04.409220 | 2021-06-17T16:14:15 | 2021-06-17T16:14:15 | 341,305,828 | 0 | 1 | Apache-2.0 | 2021-02-24T22:51:31 | 2021-02-22T18:59:49 | Java | UTF-8 | Python | false | false | 1,470 | py | # -------------------------------------------------------------
#
# 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 unde... | [
"baunsgaard@tugraz.at"
] | baunsgaard@tugraz.at |
8e9fc42629e39bc2ffd45d63954bfd41a1512755 | 4df32cdc140f3a15c9a540787241c513ff4652a4 | /exercicios_resolvidos3/exercicios3/capitulo 07/exercicio-07-10.py | 1acad2d8dbbe4a151372084e4817d059782bfcff | [
"MIT"
] | permissive | tiagosm1/Python_Nilo_Ney | 04039c4a9294d480b0493d71e46cc850168c5365 | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | refs/heads/main | 2023-02-18T22:07:46.696674 | 2020-12-23T11:27:30 | 2020-12-23T11:27:30 | 317,965,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"72826762+tiagosm1@users.noreply.github.com"
] | 72826762+tiagosm1@users.noreply.github.com |
b7026f8f896204dd924e2e5ba270ab2ffc80a5b3 | a320a013ffbba858d633b2db9485bca99c578543 | /core/pyutil.py | 48b90b98aa102bd4b85fe2a7895a64310aea367c | [
"Apache-2.0"
] | permissive | ariabuckles/oil | eb189dec4f9381a5ae53a9cb1efca0eb7c610392 | 8a9e6bb7a8ba172ee06d8acca88e8032a1c1a765 | refs/heads/master | 2020-05-16T22:20:44.545047 | 2019-04-25T01:42:33 | 2019-04-25T01:42:33 | 183,333,858 | 0 | 0 | Apache-2.0 | 2019-04-25T01:36:58 | 2019-04-25T01:36:58 | null | UTF-8 | Python | false | false | 3,640 | py | #!/usr/bin/python
"""
pyutil.py: Code that's only needed in Python. C++ will use other mechanisms.
"""
from __future__ import print_function
import cStringIO
import posix
import sys
import zipimport # NOT the zipfile module.
from pylib import os_path
from typing import IO
class _ResourceLoader(object):
def op... | [
"andy@oilshell.org"
] | andy@oilshell.org |
e72d964ae8200895ca017de29b21cc31fba2f368 | 5b3710ce68bf4062a5bff47241c3d5e86f1c7bbd | /Miragefile@next.py | 5589bec70ed8cdefcd1d6565e2fc4ae02048841b | [
"Apache-2.0"
] | permissive | sfc-rg/nx-portal | 38f208ebbcbe458043eeebade39477e2f5b76faa | b40b1e72a077c140f02e969ffa21de45863dc2b3 | refs/heads/master | 2021-07-15T07:09:52.589726 | 2020-09-24T02:52:23 | 2020-09-24T02:52:23 | 212,581,107 | 5 | 2 | Apache-2.0 | 2020-09-24T02:19:41 | 2019-10-03T13:00:23 | JavaScript | UTF-8 | Python | false | false | 1,678 | py | #
# Mirage Configuration Scripts Version 2018/03/23
# Copyright (c) 2017-2018 Shota Shimazu
# This software is licensed under the Apache v2, see LICENSE for detail.
#
from mirage import system as mys
from mirage.core import Void
from mirage.miragefile.conf import Category, Detail, Config
from mirage.confscript import ... | [
"hornet.live.mf@gmail.com"
] | hornet.live.mf@gmail.com |
14e6504ab66255db1dcbd2f27766e505422d2356 | 775822912186176ced195cc224659f2b4f5994d3 | /whoville/cloudbreak/models/platform_networks_response.py | 7bfb3ec63034e6d63f90bda2923711b76a865968 | [
"Apache-2.0"
] | permissive | Chaffelson/whoville | 7885d7d0994659dd1d1c02b4bcd87d48b161c5d0 | f71fda629c9fd50d0a482120165ea5abcc754522 | refs/heads/master | 2021-06-04T06:17:29.603774 | 2021-02-11T13:35:28 | 2021-02-11T13:35:28 | 93,987,343 | 31 | 32 | Apache-2.0 | 2019-10-01T04:59:13 | 2017-06-11T06:57:39 | Python | UTF-8 | Python | false | false | 4,066 | py | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | [
"chaffelson@gmail.com"
] | chaffelson@gmail.com |
c28062be66ca452e15c5d29cb8644bc6afc3cbcd | af101b467134e10270bb72d02f41f07daa7f57d8 | /mmagic/models/editors/stylegan2/ada/misc.py | 6a7b95597da36e57e9184ffffffe53251039c41b | [
"Apache-2.0"
] | permissive | open-mmlab/mmagic | 4d864853417db300de4dfe7e83ce380fd1557a23 | a382f143c0fd20d227e1e5524831ba26a568190d | refs/heads/main | 2023-08-31T14:40:24.936423 | 2023-08-30T05:05:56 | 2023-08-30T05:05:56 | 203,999,962 | 1,370 | 192 | Apache-2.0 | 2023-09-14T11:39:18 | 2019-08-23T13:04:29 | Jupyter Notebook | UTF-8 | Python | false | false | 1,058 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import torch
# Cached construction of constant tensors. Avoids CPU=>GPU copy when the
# same constant is used multiple times.
_constant_cache = dict()
def constant(value, shape=None, dtype=None, device=None, memory_format=None):
value = np.asarr... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
e5085ca73abd5e382f58f099897f517d0c5548d5 | f6521bc6591f5b2d7a4e7f0410d7ff45b67f621a | /darktv_anime_25919/urls.py | 2839e80f856f382cd5ebd7937267158c8162c655 | [] | no_license | crowdbotics-apps/darktv-anime-25919 | 5a8d5589e92afa6b001a00699f69e94ef2497136 | f19f15cf4834f5ef5851abaac69b834728205529 | refs/heads/master | 2023-04-05T22:18:46.906512 | 2021-04-24T20:32:49 | 2021-04-24T20:32:49 | 361,260,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | """darktv_anime_25919 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c621c612ed26f0e6aec012964021132aae4b1c15 | 84d891b6cb6e1e0d8c5f3e285933bf390e808946 | /Demo/web_html/demo_元素定位/stury_元素定位.py | ff85e801408224f08618330260dca240da896f03 | [] | no_license | zzlzy1989/web_auto_test | 4df71a274eb781e609de1067664264402c49737e | 3e20a55836144e806496e99870f5e8e13a85bb93 | refs/heads/master | 2020-05-24T10:37:29.709375 | 2019-10-28T06:14:31 | 2019-10-28T06:14:31 | 187,230,775 | 2 | 0 | null | 2019-06-20T11:06:32 | 2019-05-17T14:29:11 | null | UTF-8 | Python | false | false | 3,219 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name: ele_locator
# Author: 简
# Time: 2019/5/25
from selenium import webdriver
# 元素的特征 属性
# 8种 定位方式
# 6种 通过一个属性来定位的
# 2种 组合各种属性来定位 + 结合各种关系来定位
# //*[@id="kw"]
# /html/body/div[2]/div/form/div[1]/input
# 开启跟google的一个会话
driver = webdriver.Chrome()
# 访问一个网址
driver.ge... | [
"394845369@qq.com"
] | 394845369@qq.com |
634a7356994a5bb39a096662bae94a63424633e4 | 62ff0d3e132b5ab34a8ce309bc7b601e5240196f | /md_importer/tests/test_website_import.py | 628fcab0a542a92949a9bbea414185cef60c2077 | [] | no_license | canonical-web-and-design/developer.ubuntu.com-legacy | 2ea766d9a4f42e2ab86fb1950506c0aeb6b5b700 | 55769d377dca312451a627e825a813b589b4d1b9 | refs/heads/master | 2021-06-16T20:38:10.091057 | 2017-05-19T14:02:56 | 2017-05-19T14:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | from md_importer.importer.repo import Repo
from .utils import (
db_add_empty_page,
PublishedPages,
TestLocalBranchImport,
)
from cms.api import publish_pages
class TestSnappyWebsiteRead(TestLocalBranchImport):
def runTest(self):
self.create_repo('data/website-test')
self.assertTrue(is... | [
"robin@robinwinslow.co.uk"
] | robin@robinwinslow.co.uk |
b97a749a0c6ba8a9b56e59ffb9624a491d06e28e | 852c1fe472c04437e74965006b083ab19073a052 | /employee.py | f31a65af7f858c39d52da366da3a5200d8e00120 | [
"MIT"
] | permissive | zhumakova/ClassProject | 718e241c4bd2f0f172197780f65038899284bf75 | b869258706dae7c8e8ab723c61a45fd78e26494f | refs/heads/main | 2023-05-04T09:04:10.023058 | 2021-05-14T10:17:43 | 2021-05-14T10:17:43 | 364,881,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | class Employee(object):
id = 0
def __init__(self,first,last,age):
self.first = first
self.last = last
self.email = f'{self.first}-{self.last}@saturnsoft.sat'
self.age = age
Employee.id += 1
self.emp_id = Employee.id
def desc(self):
print('emp desc')... | [
"bzhumakova@gmail.com"
] | bzhumakova@gmail.com |
1d66bdd63d7e32e0fbdecc2f20c29c71bf5cfc54 | 135d2c02b3ad706573bdfafa75ebc14bd170ef97 | /firedex-static/firedex-coordinator-service/algorithms/network_flows/network_flow_random.py | 02f849f6a16a5f2d5fe3ecfbc3f870b898f5a2b7 | [] | no_license | boulouk/firedex | 4afc6467bd83e096051d941699e59f1be806a46c | 187012986f4adf85d017e84a64db7c9bb1f447b0 | refs/heads/master | 2022-06-06T01:56:38.464322 | 2019-11-24T09:44:03 | 2019-11-24T09:44:03 | 138,659,150 | 2 | 1 | null | 2022-05-20T20:55:18 | 2018-06-25T23:09:54 | Python | UTF-8 | Python | false | false | 3,351 | py |
import random
class NetworkFlowRandom:
def __init__(self):
pass
def apply(self, network_configuration, firedex_configuration, experiment_configuration):
network_flows = range(10001, 10001 + firedex_configuration["network_flows"])
result = []
experiment_subscribers = experim... | [
"lucascalz8@gmail.com"
] | lucascalz8@gmail.com |
bffa7b150c64f14e1eb4565a6c1f0519ecaa03c7 | 41499f73e807ac9fee5e2ff96a8894d08d967293 | /FORKS/Python/emr-bootstrap-actions/tree/spark/archive_support_elasticmapreduce/1.1.1/install-spark-1.1.1.c.py | 997dd05010d9cca3fa031f931aaefc524e76269d | [
"WTFPL",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | lordnynex/CLEANUP | c9f3058ec96674696339e7e936170a8645ddc09b | 77e8e3cad25ce740fefb42859d9945cc482e009a | refs/heads/master | 2021-01-10T07:35:08.071207 | 2016-04-10T22:02:57 | 2016-04-10T22:02:57 | 55,870,021 | 5 | 1 | WTFPL | 2023-03-20T11:55:51 | 2016-04-09T22:36:23 | C++ | UTF-8 | Python | false | false | 6,320 | py | #!/usr/bin/python
# Small script to install Spark on Emr 3.x Ami
import os
import subprocess
import glob
import sys
# components versions
scala_version = "2.10.3"
spark_version = "1.1.1"
hadoop_version = "2.4.0"
# base path
s3_base = "s3://support.elasticmapreduce/spark/"
# build some variables
spark_archive = "spa... | [
"lordnynex@gmail.com"
] | lordnynex@gmail.com |
55e572c24e27559f0f394dfcaddad70ea27ca407 | dd6b0635021185bf29f20b5b49ab03f93ff841e3 | /BH_Color_Distribution_Plot.py | 58419b08c70140f3029a5a291084ba15ae1f9499 | [] | no_license | sbustamante/Spinstractor | 27754ee5506b929fb51d6af35852c4780873e960 | d546010735fb698963b48b19a2e017060d13ef10 | refs/heads/master | 2021-01-22T02:05:00.969180 | 2018-10-30T09:13:39 | 2018-10-30T09:13:39 | 92,332,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,702 | py | #========================================================================================
# LIBRARIES
#========================================================================================
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
import BH_Physics as BHP
import arep... | [
"macsebas33@gmail.com"
] | macsebas33@gmail.com |
dfb8809a94c1376044ed88ed0811274efb8222a0 | 0e480eac66d1fee97e457133794ea6ba32d50456 | /train-art.py | a09857927c1cf53e82398d0b55574ca3038c58f7 | [] | no_license | AI-Guru/dqn_playground | ddbec5b52670884b11e4e3ddfe2fe29a5108d0e3 | 82ab647bab8a82697a3e01bf02663e8837bfff5b | refs/heads/master | 2020-04-05T22:29:38.395615 | 2019-05-27T05:48:08 | 2019-05-27T05:48:08 | 157,257,990 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | import warnings
warnings.filterwarnings("ignore")
import matplotlib
matplotlib.use("agg")
import random
import numpy as np
from nes_py.wrappers import BinarySpaceToDiscreteSpaceEnv
import gym
import gym_art
import artutils as utils
import sys
import matplotlib.pyplot as plt
from agent import *
from keras import models,... | [
"tristan@ai-guru.de"
] | tristan@ai-guru.de |
02798109e6578ba52dc5d570b065544bb90e95b2 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/dipy/segment/tests/test_refine_rb.py | c268e156190241cbaec3d35351a69b835be8d6c6 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 7,927 | py | import numpy as np
import nibabel as nib
from numpy.testing import (assert_equal,
assert_almost_equal,
run_module_suite)
from dipy.data import get_fnames
from dipy.segment.bundles import RecoBundles
from dipy.tracking.distances import bundles_distances_mam
from dipy... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
d76de6f1729cd68c87459533420f386e37c26b77 | 32632f0b0d00c54366aa12742a6dcf10d5a0c993 | /lifeline-backend-master/apps/patients/migrations/0021_auto_20190329_1234.py | 4f9881edf46a91b1100183e22dba3ebc72e1b788 | [] | no_license | NightHunter97/Django | c64f20ecb5e2ef6bfa9b7fca5dacc64a0a38599b | 060283c2ab210a7d4222c790d201b70363eca848 | refs/heads/master | 2022-12-11T04:01:34.011192 | 2020-02-09T05:32:26 | 2020-02-09T05:32:26 | 239,252,129 | 0 | 0 | null | 2022-12-08T01:51:10 | 2020-02-09T05:28:18 | Python | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-03-29 12:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patients', '0020_nationalregister'),
]
operations = [
migrations.AlterFiel... | [
"56120789+NightHunter97@users.noreply.github.com"
] | 56120789+NightHunter97@users.noreply.github.com |
737c3a0c18eecf9dd5af78c6ee2af945f8d9b712 | 4fa57f50470b1e83b3c833f5e7e4644faecf589e | /analytics/non_energy_minerals.py | e3c0a62033d85964232b2b3377f2282a6dc92d1a | [] | no_license | tilakchandlo/Top-Stocks-To-Buy-And-Watch | d87c4d9bd944cc4ad4e3f173def49204ae459106 | 611de2f789199a1230fc91c2147e4a7cfade91ae | refs/heads/master | 2022-09-13T18:22:27.797441 | 2020-06-03T07:20:02 | 2020-06-03T07:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from analytics import sectors
from analytics.utils import upload
def non_energy_minerals_1():
upload(sectors.non_energy_minerals_1, "non_energy_minerals")
print("non_energy_minerals_1")
def non_energy_minerals_2():
upload(sectors.non_energy_minerals_2, "non_energy_minerals")
print("non_energy_minera... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
4d99769afdbb9b1f3b348594b562f45b0a54ab52 | 41f99117a29379502671eafc0b65b8249e8809b0 | /FINAL PROGRA 1/Finales/Regular Agus/Agustin_Final.py | fe3e87a59322936b9820f5610975a04335b246f2 | [] | no_license | maximilianogomez/Progra1 | 4525ac47d309bf9569e62ea369454037777803df | 2b15c276fc70de413619291f4bd85e34a4ed46fb | refs/heads/master | 2020-09-08T07:06:42.484239 | 2020-07-18T01:57:59 | 2020-07-18T01:57:59 | 221,055,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | def leerArchivo(letra):
try:
origen = open("subtes.txt")
except IOError:
print("Hubo un error de carga")
else:
dic = {}
linea = origen.readline()
# Compruebo que la linea sea la que ingrese
while linea:
linea = linea.replace('\n','')
... | [
"noreply@github.com"
] | maximilianogomez.noreply@github.com |
a2a1ecc38b23a29854331d3081a00e88e149cdda | 5fe256f7c301c823e3be70d897fc7e84567de461 | /StockAnalyze.py | e91208e1c55d0e05b5c620e640ae5ec4e78c44cb | [] | no_license | snakedragon/stock | 70aa645cae02f59764dce5975fd3c0f75b405401 | 9fb74cc8072b11597ce0b4e6c5a5166c5206c61f | refs/heads/master | 2021-07-09T20:33:40.047635 | 2020-11-03T02:39:13 | 2020-11-03T02:39:13 | 213,774,506 | 1 | 0 | null | 2020-11-03T02:39:14 | 2019-10-08T23:16:54 | null | UTF-8 | Python | false | false | 7,351 | py | '''
@author:rocky
@email:weigesysu@qq.com
@feature: 收盘事后分析
'''
from settings import get_engine
import pandas as pd
from scipy import stats
import tushare as ts
import datetime
import os
# import matplotlib.pyplot as plt
import numpy as np
pd.set_option('display.max_rows', None)
def volume_calculation(code, start, e... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
ffd8189efccaf668f1223d29f7b787af70a003f6 | 3e89188ae718ec4cff058a33745eb60d35833600 | /dataset_processing/test/cv_test1.py | 1eb879bf15e3eb00b8709809cdd82a8cdedaa6d2 | [] | no_license | Nishida-Lab/human_recognition | dd2d1bf53b1bdbfad26c5e12d4218748c3b45f40 | 0bdc3e4a37459b60ac7e4caa1d6cbff7deb13b2b | refs/heads/master | 2021-01-22T21:18:00.465442 | 2018-04-01T22:18:25 | 2018-04-01T22:18:25 | 100,671,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import numpy as np
import cv2
drawing = False
mode = True
ix,iy = -1,-1
def draw_circle(event,x,y,flags,param):
global ix,iy,drawing,mode
if event == cv2.EVENT_LBUTTONDOWN:
print 'Push'
drawing = True
ix,iy = x,y
elif event == cv2.EVENT_MOUSEMOVE:
if drawing == True:
... | [
"p104314t@mail.kyutech.jp"
] | p104314t@mail.kyutech.jp |
4b20ced07657f8667d9f813eff53fbd1311735e8 | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_views.py | 48e91664413efed0e3eef853406fab0b250ef3f3 | [
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-copyleft",
"MIT"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 4,004 | py | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
e55b8c37883a3269f8c432b6f6c176575bea2904 | c2b3b2fe011cacba280137713d559a813be52d6c | /Week_06/解码方法.py | e18e514c893be60864fc936800741bf7924a3d19 | [] | no_license | xsan777/algorithm009-class01 | be23f021809fb7a5ff220c14dca27957f3346f5a | 79d60b3ce467a1368ad8906c1191653778991067 | refs/heads/master | 2022-11-20T05:43:57.438823 | 2020-07-26T14:22:14 | 2020-07-26T14:22:14 | 266,499,856 | 0 | 0 | null | 2020-05-24T08:27:46 | 2020-05-24T08:27:45 | null | UTF-8 | Python | false | false | 609 | py | class Solution:
def numDecodings(self, s):
n = len(s)
if not s or s[0] == '0':
return 0
pre = 1
cur = 1
for i in range(1, n):
if s[i] == '0':
if s[i -1] == '1' or s[i - 2] == '2':
cur = pre
else:
... | [
"1315969544@qq.com"
] | 1315969544@qq.com |
b118df4421057e319b8724506ec519d59db5ba87 | 000f60cb58d475b53d17a302aa32d61f177430e1 | /scenarios/activity-update-and-delete/bots/__init__.py | e6c728a1239d1d515aa34e6b879db4fd861d8e6e | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Bpowers4/botbuilder-python | 72c45df9a2115e1c40ed0a356671ad83ab2ed586 | 7e2fbadc920a2edb0b91fef2be5ac54da7702fb7 | refs/heads/master | 2021-03-16T00:46:47.205449 | 2020-03-12T16:43:11 | 2020-03-12T16:43:11 | 246,891,240 | 1 | 0 | MIT | 2020-03-12T17:18:19 | 2020-03-12T17:17:35 | null | UTF-8 | Python | false | false | 210 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .activity_update_and_delete_bot import ActivitiyUpdateAndDeleteBot
__all__ = ["ActivitiyUpdateAndDeleteBot"]
| [
"johtaylo@microsoft.com"
] | johtaylo@microsoft.com |
31addbbe053c154c6a33e6a62f3499fb9d111c81 | d82ad43212dbb60b81c8f09728e5c53626071ad7 | /docs/conf.py | d479c794c25a9665cbc1733934552ff81d2442ea | [
"MIT"
] | permissive | kirill-shtrykov/rocket-python | 6521fbe1fdf2a534c9bb12100f7c25418f2f6668 | 0310940a36d6f586aaa4ca59ad1f6bb96f2c1d8d | refs/heads/master | 2020-03-21T00:16:03.376083 | 2018-06-19T17:28:55 | 2018-06-19T17:28:55 | 137,885,526 | 0 | 0 | null | 2018-06-19T11:59:44 | 2018-06-19T11:59:44 | null | UTF-8 | Python | false | false | 5,057 | py | # -*- coding: utf-8 -*-
#
# Rocket Python documentation build configuration file, created by
# sphinx-quickstart on Thu Jan 19 18:32:35 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.... | [
"dstegelman@gmail.com"
] | dstegelman@gmail.com |
02650b9a8a03ca2dba0adc75c569eea376c523b0 | 62922a76e40003f3d3a7d02282853f9a2b76c6fc | /keras/test6.py | f9c7a4686724c9e7a2d9f67cb8c464bf9e3a4eb8 | [] | no_license | cchangcs/ai_learning_record | a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2 | 235a90ff5fe0205334376a927d462b8ae64e4e70 | refs/heads/master | 2020-04-01T16:59:31.203223 | 2018-11-21T11:12:34 | 2018-11-21T11:12:34 | 153,408,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | import numpy as np
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, TimeDistributed, LSTM
from keras.optimizers import Adam
import matplotlib.pyplot as plt
# 使多次生成的随机数相同
np.random.seed(1337)
# 超参数
BATCH_START = 0
TIME_STEPS = 20
BATC... | [
"752340690@qq.com"
] | 752340690@qq.com |
6a7dec5f1a1fca09ae2eae3783081194cd4c85ed | 3599c08e9f5d9ff72dd2225b54e3dffb28aa73de | /tests/fr.py | 398649f603db196ada541722c2d2478ac78c131e | [
"MIT"
] | permissive | thibaudcolas/l18n | b9a1d087d3416930ea190ab84461679cb7d980bc | 986c5ace9f5d6f02269940123e97de5f29e8e655 | refs/heads/master | 2023-01-06T09:57:13.207394 | 2020-10-31T04:02:00 | 2020-10-31T04:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
import l18n
import six
from ._base import TestCase
class FrTests(TestCase):
language = 'fr'
def test_tz_city_translated(self):
self.assertEqual(
six.text_type(l18n.tz_cities['America/North_Dakota/New_Salem']),
u'New Salem (Dakota du No... | [
"thomas@ksytek.com"
] | thomas@ksytek.com |
e83ad649cc705cb824a317a9ca216719b1317d61 | c1e0874f55d05ee990ed2d637c2910701b32d246 | /soft_uni_OOP/Inheritance/exercise/need_for_speed_4/main.py | c5bc04b9d69e23be042feedff741454dbac42b81 | [] | no_license | borislavstoychev/Soft_Uni | 5d047bef402c50215e0abc825476326889ffd0be | ccc0b2fb18f8ad6809b475eb20e82a9e4eb4b0b0 | refs/heads/master | 2023-05-11T12:27:08.672058 | 2021-05-28T18:00:10 | 2021-05-28T18:00:10 | 277,556,731 | 3 | 2 | null | 2021-02-11T19:57:37 | 2020-07-06T13:58:23 | Python | UTF-8 | Python | false | false | 515 | py | from project.vehicle import Vehicle
from project.family_car import FamilyCar
if __name__ == "__main__":
vehicle = Vehicle(50, 150)
print(Vehicle.DEFAULT_FUEL_CONSUMPTION)
print(vehicle.fuel)
print(vehicle.horse_power)
print(vehicle.fuel_consumption)
vehicle.drive(100)
print(vehicle.fuel)... | [
"stoy4ew@gmail.com"
] | stoy4ew@gmail.com |
d1bcfd103880ba576f0e7e36599feac36f54da08 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /RejeSPe68ajYzzgXM_7.py | 47f528272e0894098cc28a41fb021b9c08add9a0 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py |
def combine(lst):
d = {}
state_lst = []
res = []
for i in range(len(lst)):
state_lst.append(lst[i][0])
state_lst = sorted(set(state_lst))
for state in state_lst:
for i in range(len(lst)):
if lst[i][0] == state:
res.append(lst[i][-1])
d... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
62245fa0ddbe93c7edd71d71e8a6e5c46a6d777b | 10ad2932faa9ddeeafeb5b6b455966e5044ece19 | /surveys/default_config.py | 0b125062dfcf95e1003a7b5bd76731f1af5f8167 | [] | no_license | JoaoFelipe/prov-survey | 9a4ab596a2e4e8cfc49038e7aac7bd9fdfb6718a | 0a766fb60a0e846b0ea2ec380b804b29b4f0ee0a | refs/heads/master | 2021-01-10T11:39:03.983529 | 2017-07-12T15:23:36 | 2017-07-12T15:23:36 | 80,329,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | # -*- coding: utf-8 -*-
# The default_config module automatically gets imported by Appconfig, if it
# exists. See https://pypi.python.org/pypi/flask-appconfig for details.
# Note: Don't *ever* do this in a real app. A secret key should not have a
# default, rather the app should fail if it is missing. For the sa... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
085b9d5922f1f894d9178cc1b929a8d753e745b9 | 7a31597f1359be11d2cc05d8107963f3dbe9e204 | /image_handle/test.py | cb4222b7a9122c54491a1b50ecec0f2c6b6bc33c | [] | no_license | LIMr1209/machine-learn | 9aac2b51a928a864ac3cf82368b3fe9694644cb2 | 56453dce6ae8ba5e7298dab99d5e6a6d114e4860 | refs/heads/master | 2022-07-12T14:17:07.536535 | 2021-12-20T06:57:54 | 2021-12-20T06:57:54 | 163,064,915 | 5 | 2 | null | 2020-08-31T03:09:10 | 2018-12-25T08:48:00 | Python | UTF-8 | Python | false | false | 1,443 | py | import os
from PIL import Image
# 转换格式
IMG_EXP = ".png"
CURRENT_PATH = 'C:\\Users\\aaa10\\Desktop\\webp'
# 获取最高所有文件
cur_all_files = os.listdir(CURRENT_PATH)
# 转换列表
imgList = []
# 遍历文件夹,储存webp格式的路径到列表内
def findFileForImage(filePath):
child_all_files = os.listdir(filePath)
for child_file_name in child_all_file... | [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
4e6e9cad7afb7fa14f305568ab772aab74f533a9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-354.py | 3d256f2286e8a964e1ad5e0e04983d9474060490 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f379bd909c731d26615706a93c7932df522949ae | 2ec14fd1724fc8959e1d3a1b4d3f61d5c0cf6f48 | /test/functional/wallet_createwallet.py | 2a5bf1ff0a5729494e3337f934d910bdd559290e | [
"MIT"
] | permissive | vitae-labs/Vitae | 7ddf8142d1e663f406399ec17de1c7bbba5e32fd | fa301e714cb26e742cfe29164a25961f1ff6d52c | refs/heads/main | 2022-07-28T15:48:24.765770 | 2022-01-29T06:13:19 | 2022-01-29T06:13:19 | 451,559,855 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,103 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The Bitcoin Core developers
# Copyright (c) 2020-2021 The Vitae Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test createwallet arguments.
"""
from test_framew... | [
"hemant.singh.leu@gmail.com"
] | hemant.singh.leu@gmail.com |
cd1942abf9abc840e3e976984e21f3107da71cbc | 39d26bedd4049d58265fcd6c480cc7a5b73c7ece | /Tutorial_SimpleTeacherAPI/python-sample-code/tests/test_traversal.py | ca31ba75db4fd7e84da6b803ef3560976889b6fb | [] | no_license | sramirezh/Developing | 7adc6dbb5c8436db6a3ab125018186ea7bdd1b40 | a07ed07899911b9860830f9498c08144c4eca3d4 | refs/heads/master | 2022-11-08T01:43:05.755215 | 2021-08-23T03:57:39 | 2021-08-23T03:57:39 | 249,786,342 | 0 | 1 | null | 2022-10-24T21:02:22 | 2020-03-24T18:26:46 | Python | UTF-8 | Python | false | false | 1,336 | py | """Unit tests for the traversal module."""
from binary_trees import binary_search_tree
from binary_trees import traversal
def test_binary_search_tree_traversal(basic_tree):
"""Test binary search tree traversal."""
tree = binary_search_tree.BinarySearchTree()
for key, data in basic_tree:
tree.ins... | [
"sramirez.hinestrosa@gmail.com"
] | sramirez.hinestrosa@gmail.com |
09c2adda29e4b03a779382e1cf5a89a03f5d0b30 | 40370aaec6e4bd028f64e49b7374548e2eb2086a | /rocketgram/api/delete_sticker_from_set.py | 517cb14077c3026da707de1643fe8443adde84ab | [
"MIT"
] | permissive | TonyZhang03/rocketgram | 8d176253bc6bbd2bd9cd8bc353fe30987ac9dd59 | edfa0b1e48e5c8d8c9bc8ec871e75eaeb59b9ddd | refs/heads/master | 2023-03-24T13:41:14.469894 | 2021-03-20T19:30:26 | 2021-03-20T19:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # Copyright (C) 2015-2021 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from .request import Request
from .utils import BoolResultMixin
@dataclass(frozen=True)
class DeleteStickerFromSet(B... | [
"vd@"
] | vd@ |
3e479e22d052cb884a0abaac481d35d160d54a29 | 21cd8decb5b2304b175c018a9bd516cd6a66b042 | /torch_utils/training.py | e1717a21a44d878a84fcedfd9e9fc2f3c1534814 | [
"MIT"
] | permissive | jjakimoto/torch_utils | 93c26b2561dfc7110356167b4fc4a10b72170753 | 2007924a2de7f27057536b90d324661747b45241 | refs/heads/master | 2020-03-27T03:57:55.513028 | 2018-09-27T06:20:19 | 2018-09-27T06:20:19 | 145,901,982 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | import torch
def train_step(model, train_loader, optimizer,
loss_func, score_func=None,
epoch=None, device='cpu', log_interval=100,
silent=False, **kwargs):
'''Train step for one epoch
Parameters
----------
model: nn.Module subclass
train_loader: Defin... | [
"f.j.akimoto@gmail.com"
] | f.j.akimoto@gmail.com |
934eb78a8f13e6b9f48c23147f92fade27a231ad | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/nkwyon001/question4.py | efd2bbeadaa00621b02aa42b899e3bc07c786100 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """list of marks
yondela nkwali
24 April 2014"""
#ask for list of marks
Lmarks=input("Enter a space-separated list of marks:\n")
marks=Lmarks.split(" ")
noMarks1=0
noMarks2=0
noMarks3=0
noMarks4=0
noMarks5=0
#put them in categories according to their marks
for i in marks:
j=eval(i)
if j>= 75:
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
9bc9689c9cabe1bc506d9f1761059e484a172772 | b122b723c2fbadef6f19e8c9ec4e485d48c03dec | /Python/Pascal's Triangle II.py | d232d9de588e7ee41fb72da35b382cd33bd3652f | [] | no_license | zhanglintc/leetcode | 5ba3977172679fde8cdcd3f4940057d55d8112eb | 8edbd2fbad8b10a497c7a10e8cd09cc91eeba079 | refs/heads/master | 2020-12-13T08:49:57.244106 | 2018-09-06T13:52:43 | 2018-09-06T13:52:43 | 18,562,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Pascal's Triangle II
# for leetcode problems
# 2014.09.13 by zhanglin
# Problem Link:
# https://leetcode.com/problems/pascals-triangle-ii/
# Problem:
# Given an index k, return the k[th] row of the Pascal's triangle.
# For example, given k = 3,
# Return [1,3,3,1].
# Note:
# Could you optimize your algorithm to us... | [
"zhanglintc623@gmail.com"
] | zhanglintc623@gmail.com |
4fa544588fcc6ef1227393515926f17dc0363c28 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /zinstance/products/auslfe.formonline.content-0.8.1/auslfe/formonline/content/config.py | eade46d7239c83eb399299d3c5e28b450283cbf8 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | """Common configuration constants
"""
PROJECTNAME = 'auslfe.formonline.content'
ADD_PERMISSIONS = {
# -*- extra stuff goes here -*-
'FormOnline': 'auslfe.formonline.content: Add FormOnline',
}
| [
"renansfs@gmail.com"
] | renansfs@gmail.com |
d6dde85475f035a3bb1a5a8fc4b4e22c8f88f7bf | 6d8a7664b25fbe9c24ca972d310c5934d0d991e8 | /Sorteio do aluno.py | 3701026abe7067fc156e8d9c81049810dae4a717 | [] | no_license | LeoGraciano/python | c6d24f438c3735fd97d1e71ea7bfd53d16fc2205 | bf447bb42a5fab399a8cae5a5d2f5785f9ed0ebf | refs/heads/master | 2022-12-22T11:48:11.757387 | 2020-09-29T03:24:11 | 2020-09-29T03:24:11 | 287,509,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import random
a1 = (input('Nome primeiro Aluno: '))
a2 = (input('Nome segundo Aluno: '))
a3 = (input('Nome terceiro Aluno: '))
a4 = (input('Nome do quarto Aluno: '))
l = [a1,a2,a3,a4]
luck = random.choice(l)
print ('O aluno escolhido foi: {}'.format(luck)) | [
"leonardof.graciano@gmail.com"
] | leonardof.graciano@gmail.com |
fa76cfe0e3478d98cd958dad95d49b1c93eb270c | d3c5bc56115f2ffa43a72885814868766a5f6932 | /mbasic_crawl.py | 9daa299a83cdcd9b6960242a2a028d164d3c8842 | [] | no_license | chunin1103/num2face | 93e95e4a2bfc9c021c9c70a5d22f8828aa5898f4 | 838e18df1496a9689789237dfe2ba693f4e8ed7a | refs/heads/main | 2023-02-13T15:44:23.660594 | 2021-01-11T19:18:11 | 2021-01-11T19:18:11 | 328,761,793 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
import urllib.request
# 1. Khai bao bien browser
browser = webdriver.Chrome(executable_path=r'C:\Python38\Scripts\chromedriver.exe')
# 2. Mo thu mot trang web
browser.get("http://mbasic.facebook.com")
# 2a. Login
t... | [
"you@example.com"
] | you@example.com |
077a968a3623f2392dd82f76b907c4c5a9d20a2e | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/setuptools/package_index.py | 9593d56994b5600c17617501ab7a8bb54efa9431 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c9e89f650849551c0f49a42646b54fc5b5d1cbed6517929d4c557c3406f761c1
size 40342
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
069550cc3af24be180730803b35cf12504c73285 | 8a269d6e597ce214dc6540230c997c801b5addd0 | /11/volume.py | 34903e15846d3c82dfc71eeed543d8467500ccd8 | [] | no_license | oreqizer/pv248 | f9f126d40b4e331989b3b39a8367c826bc77fcd6 | 9550e91c5e3473f39488605298dee52e4240342b | refs/heads/master | 2023-03-01T21:40:02.354436 | 2021-02-08T17:31:15 | 2021-02-08T17:31:15 | 302,929,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Compute the volume of an n-dimensional simplex, given as a list of
# n + 1 points. A 2D simplex is a triangle, given by 3 points, a 3D
# simplex is a 3-sided pyramid given by 4 points and so on.
# Go on to ‹histogram.py›.
def volume( pts ):
pass
from math import isclose
def test_main():
assert isclose( vo... | [
"oreqizer@gmail.com"
] | oreqizer@gmail.com |
06edf79a1f8c72f05e911be11e524a5cb5c52084 | a7cf2d5a062ccb93285f034baa472703599336fb | /lec09-function2/binormial.py | 907c1bdc8a8b8ef5a593e542e8dcd79993028208 | [] | no_license | webturing/PythonProgramming_20DS123 | 5538535e039a87e20752549bb0fa75d32b022cf9 | d971277b0401e342adad637ebfac5f88f321abe6 | refs/heads/master | 2023-02-16T17:02:07.385325 | 2021-01-20T09:53:28 | 2021-01-20T09:53:28 | 297,176,647 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | def factorial(n): # n!
'''
n!=2*3*4....*n
n!=n*(n-1)!
'''
s = 1
for i in range(2, n + 1): # [a,b+1) == [a,b]
s *= i
return s
def binormial(n, r):
return int(factorial(n) / factorial(r) / factorial(n - r))
for i in range(5): # C(4,i)
print(binormial(4, i))
| [
"zj@webturing.com"
] | zj@webturing.com |
3caf9a5c25a429d2da3a289c3dd2dbf851367556 | 4c20c78cf383cd40db8e3d3eee88e5f96884a1af | /221.maximal_square/maximalSquare.py | 23a3669e5c434841eae923933416746965b89017 | [] | no_license | HanchengZhao/Leetcode-exercise | de6c17a2c965fe0c3afc0a4c39fc0a5f8bbe8d47 | 6c780a97c956856ac94a5d0bb4c9b631e7a0677a | refs/heads/master | 2021-05-04T10:09:29.308858 | 2019-10-17T05:31:20 | 2019-10-17T05:31:20 | 50,731,817 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | class Solution(object):
def maximalSquare(self, matrix):
"""
:type matrix: List[List[str]]
:rtype: int
"""
n = len(matrix)
if n == 0:
return 0
m = len(matrix[0])
if m == 0:
return 0
s = [[0] * (m+1) for i in range(2)]
... | [
"chancidy@gmail.com"
] | chancidy@gmail.com |
5d091321e40482d4ea827336b6ccd2954d8efe38 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2249/60620/264910.py | d0d240f23afd7e022f23561a75d70583a5982045 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | n=int(input())
r=[]
result=0
for i in range(n):
a=list(map(int,input().split(',')))
r.extend([a])
for i in range(len(r)):
row=0
col=0
for j in range(len(r)):
if(r[i][j]):
result+=1
row=max(row,r[i][j])
col=max(col,r[j][i])
result+=row+col
print(result)... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
20d37755cf254f29c25a7aac195af82ad4a5fff6 | e12385c85e41d98bc3104f3e4dde22025a0b6365 | /m5stack-u097/examples/test_async.py | 3f649224ab2f19cbfb930bd59ee33772c3015ba9 | [] | no_license | mchobby/esp8266-upy | 6ee046856ec03c900ebde594967dd50c5f0a8e21 | 75184da49e8578315a26bc42d9c3816ae5d5afe8 | refs/heads/master | 2023-08-04T15:11:03.031121 | 2023-07-27T15:43:08 | 2023-07-27T15:43:08 | 72,998,023 | 47 | 30 | null | 2021-06-20T16:12:59 | 2016-11-06T15:00:57 | Python | UTF-8 | Python | false | false | 999 | py | """
Test ASYNC mode the MicroPython driver for M5Stack U097, 4 relays I2C grove unit.
In ASYNC mode, the LED can be controled independantly from the relays
* Author(s):
28 may 2021: Meurisse D. (shop.mchobby.be) - port to MicroPython
https://github.com/m5stack/M5Stack/blob/master/examples/Unit/4-RELAY/4-RELAY.... | [
"info@mchobby.be"
] | info@mchobby.be |
8f244a5289e801c24ea0f09ff216ca916e8bb96d | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/ReverseIndividualWords.py | 62d7bbbad800fa48e9950b166389a96e56d850c9 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Reverse individual words
# Given a string str, we need to print reverse of individual words.
def ReverseIndividualWords(str1):
lst=str1.split()
fnl_lst=[]
for l in lst:
tmp=list(l)
tmp.reverse()
fnl_lst.append(''.join(tmp))
return ' '.join(fnl_lst)
def main():
str1='He... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
975a56e8e3d36b6db823b76518bd858e61cf3b83 | 693d8da2a6925a211600816b420863591dba409f | /interview_questions/cross_entropy.py | 61e5040af399dff395b38a58b98788427ecb3243 | [
"Apache-2.0"
] | permissive | gridl/insight-data-challenges | 3501094338db661679cd380d8f96840596b16c53 | a5ab4d00085d820b97fb3438bb113fc49f8c2acb | refs/heads/master | 2020-03-23T02:21:55.954026 | 2017-07-18T15:54:45 | 2017-07-18T15:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | """
Define cross-entropy loss. What kinds of problems is it used in?
Write a Python function that takes in two numpy matrices, one a black-and-white
image, and the other an identically shaped set of probability values, and
returns the cross entropy loss score.
"""
import numpy as np
def cross_entropy_loss(img, prob... | [
"ericmajinglong@gmail.com"
] | ericmajinglong@gmail.com |
9ede031be2abc9b10cd704e0d35e292af1e5125f | a47e1f4a771d078104a877e461b5bce0130a9043 | /python/demo-ellipses.py | 3d8f4402b5fe99bda9209a3f427fac368a3b9fdd | [] | no_license | changcunyuan/gl-agg | adb582b8bb00f31b33e9799dedc08423c3deb605 | 559b6eecbdd034fd1cc0253782556853ac8c4921 | refs/heads/master | 2020-04-27T04:43:30.623563 | 2013-03-06T08:26:25 | 2013-03-06T08:26:25 | 33,650,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,701 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# OpenGL Anti-Grain Geometry (GL-AGG) - Version 0.1
# A high quality OpenGL rendering engine
# Copyright (C) 2012 Nicolas P. Rougier. All rights reserved.
# Contact: Nicolas.Rougier@gmail.com
# ... | [
"Nicolas.Rougier@inria.fr"
] | Nicolas.Rougier@inria.fr |
c7bf0786041cc088dc1bc4c1ddf716a072bd14cf | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/scikit-learn_test_results/files/65_pipeline_remote.py | 7712b5cf58871eb413d4e9ae5625cb7ce06bf7eb | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,288 | py | """
Pipeline: chain transforms and estimators to build a composite estimator.
"""
# Author: Edouard Duchesnay
# Gael Varoquaux
# Virgile Fritsch
# Alexandre Gramfort
# Licence: BSD
from .base import BaseEstimator
class Pipeline(BaseEstimator):
""" Pipeline of transforms with a final estim... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
023240d485b6296ae2dc0822afe926d3b877537e | d7016f69993570a1c55974582cda899ff70907ec | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/aio/_compute_management_client.py | 312c91cd0a1b268d4269ae280bece29cd3f5278a | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 6,174 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
9eb61728d8cedd5c55d29c70b8ff9ee9cb5c9aef | 644bcdabf35261e07c2abed75986d70f736cb414 | /python-project/Defis/Euler_68_Test.py | 0fd131d8c66ddb7f109c7c7bdbc08afceaae7232 | [] | no_license | matcianfa/playground-X1rXTswJ | f967ab2c2cf3905becafb6d77e89a31414d014de | 67859b496e407200afb2b1d2b32bba5ed0fcc3f0 | refs/heads/master | 2023-04-03T11:56:15.878757 | 2023-03-24T15:52:37 | 2023-03-24T15:52:37 | 122,226,979 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #Ne pas oublier de changer le module à importer
module="Defis/Euler_68"
import sys
import io
#On récupère les données de l'utilisateur
sauvegarde_stdout=sys.stdout
sys.stdout=io.StringIO()
from Euler_68 import *
count1 = sys.stdout.getvalue()[:-1]
sys.stdout=sauvegarde_stdout
from ma_bao import *
#La réponse
reponse... | [
"noreply@github.com"
] | matcianfa.noreply@github.com |
a02dc254eefd1012a4ba4e72055b5e7218e2a509 | 6a43aefed27596fcbcf861e2b5199e7cd5fa7580 | /main.py | bc36e105006daae3dd23661f5b31a19b3850fcc2 | [] | no_license | r07921059/Depth-Map-Generation-on-More-Realistic-Scenes | d63532eaa5d5150302b86cbed51a5b0fed6103b0 | 38451482537daf291fdb8bd4e07b4dedcddbc7f5 | refs/heads/master | 2022-11-25T10:05:11.405399 | 2020-01-20T08:01:47 | 2020-01-20T08:01:47 | 235,044,887 | 0 | 0 | null | 2022-11-22T05:15:28 | 2020-01-20T07:40:52 | Python | UTF-8 | Python | false | false | 6,076 | py | import os
import numpy as np
import argparse
import cv2
import time
from util import writePFM
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
from torch.autograd import Variable
import torch.nn.functional as F
import sk... | [
"a"
] | a |
8972ebc21260b3eda4a95d97be58d22fbf2ebfd7 | 4719e598dd6bbb1e0b1f8ecf4d4997e963dbd8bc | /ctat-genome_guided_reco.py | f5062f15883f2dd3c932a5f549807ae9f8a2cbbf | [] | no_license | NCIP/ctat-genome_guided_reconstruction | 6d2690353dc96f44a18e796bf09b8c626b0aac7c | 82d2cbde9d459ee4bb7096ad34795dc3e7a8afb5 | refs/heads/master | 2020-04-27T14:21:58.436333 | 2019-03-08T22:00:39 | 2019-03-08T22:00:39 | 174,407,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,466 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import sys, os, re
import argparse
import subprocess
sys.path.insert(0, os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), "PyLib"]))
from Pipeliner import ... | [
"brianjohnhaas@gmail.com"
] | brianjohnhaas@gmail.com |
5074af6ec7a83e61a07e86806e70b5769e883615 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /bonus_based_exploration/noisy_networks/noisy_dqn_agent.py | d41d8b723c2738aeec35708b0795aac0c552c94b | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 8,066 | py | # coding=utf-8
# Copyright 2023 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4ed046fa4835f75d776e6d9027a078c382381d0c | ca58f8e1696e6275116dfb3eea68ff17eec3bbe1 | /PyQt5开发与实战(网易云课堂)/src/dialogs/QColorDialog.py | e0e116ab3debb6297e639bc8a42793ff7066b7d9 | [] | no_license | piperpi/python_book_code | 9b8f99d08ed9840d34389aa008fd9ff5fd15e1ae | 19d35e33624923a764711469bed9006549a59d52 | refs/heads/master | 2022-07-15T05:34:53.226952 | 2020-06-30T10:20:40 | 2020-06-30T10:20:40 | 217,888,567 | 3 | 2 | null | 2022-07-06T20:42:49 | 2019-10-27T17:10:00 | Python | UTF-8 | Python | false | false | 1,394 | py | '''
颜色对话框:QColorDialog
'''
'''
字体对话框:QFontDialog
'''
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
class QColorDialogDemo(QWidget):
def __init__(self):
super(QColorDialogDemo,self).__init__()
self.initUI()
def initUI(self):
self.se... | [
"775996445@qq.com"
] | 775996445@qq.com |
211986362d3998df23e24eb0eca4d374f245e52e | 1d0895269d1d93bab6a0b595c806418b1eeda735 | /test/ibmq/test_jupyter.py | 96618b55d08fdd152c150b2ae62fe245199257c7 | [
"Apache-2.0"
] | permissive | Qiskit/qiskit-ibmq-provider | 3921bf5f77a9621013ada7ea5e18fa199470650c | 590f68d9ddb42a45c4ac8a8626ea60da85575b21 | refs/heads/master | 2023-06-08T03:17:52.745052 | 2023-06-05T14:20:16 | 2023-06-05T14:20:16 | 163,192,893 | 240 | 182 | Apache-2.0 | 2023-06-05T14:20:18 | 2018-12-26T15:22:11 | Python | UTF-8 | Python | false | false | 5,164 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | Qiskit.noreply@github.com |
515b846b7ca6a15fa455ead8bc0fef8574262e38 | b441503bcdb484d098885b19a989932b8d053a71 | /test/encoders/test_conformer_encoder.py | 497e8c1a41583701a0a25e7388b71197dbddb953 | [
"Apache-2.0"
] | permissive | entn-at/neural_sp | a266594b357b175b0fea18253433e32adc62810c | 9dbbb4ab3985b825f8e9120a603a6caa141c8bdd | refs/heads/master | 2020-08-28T05:48:28.928667 | 2020-06-22T19:17:53 | 2020-06-22T19:17:53 | 217,611,439 | 0 | 0 | null | 2019-10-25T20:40:18 | 2019-10-25T20:40:18 | null | UTF-8 | Python | false | false | 3,604 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""Test for Conformer encoders."""
import importlib
import numpy as np
import pytest
import torch
from neural_sp.models.torch_utils import np2tensor
from neural_sp.models.torch_utils import pad_list
def make_args(**kwargs):
args = dict(
input_dim=80,
... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
79a42b8bb00afc72b17682c95fe3653f96c82f01 | 7758c05e03e5a0e80dfe36c7faad3a075c2ad4b4 | /py/for_f90/val_nshel.py | 552c6e9231aecdb401069ba1e028450e4f96a36a | [] | no_license | ReiMatsuzaki/enint | cfedf2a010c11aa16416d57e62a2f0f3f8976e1f | 2f884e7d5708ffdfee8319cf3ea7644cfe6a99fc | refs/heads/master | 2021-09-07T21:04:03.611111 | 2018-03-01T04:28:27 | 2018-03-01T04:28:27 | 108,660,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from enint.nsh import *
print "mole_gammainc"
for (m,z) in [(0,1.0), (1,1.1), (2,3.3), (3,0.0)]:
print m, z, mole_gammainc(m,z)
print ""
print "coef_R"
print coef_R_list(1.1, [0.0,0.1,0.2], [0.2,0.3,0.4], 1, 0)
| [
"matsuzaki.rei@gmail.com"
] | matsuzaki.rei@gmail.com |
8f8ce4cbb4905ddb999c4b4f5260abd9d9456e76 | 8acdae9ee934186aa2c3197f261d20e6005d8c32 | /not_eav/contrib/basefields/models.py | c0f8a69736287d325597e8ec031b4588115d13d0 | [] | no_license | jpic/django-not-eav | 6e53fd264955185846d17701041224e8f30780f0 | c68d2213b5cb80725292ffa7c19516a130474ce5 | refs/heads/master | 2021-01-23T21:38:28.124624 | 2012-09-13T12:05:06 | 2012-09-13T12:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from not_eav.models import BaseFieldModel
class BooleanFieldModel(BaseFieldModel):
module_class = 'django.db.models.fields.BooleanField'
class Meta:
verbose_name = _(u'Yes/No field')
class CharFieldModel(BaseField... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
dd8cab2e924990b054d4519929062eed175a250a | af8a0d5366eaf969c4d77b49015a76c8ece972b4 | /profiles_api/serializers.py | 816a68834eec88062303b2848bef1a0d3e00e0a8 | [] | no_license | santeive/DJANGO_REST_API | e075ee5d85208e3a35acb7b060e2e086a4af2d89 | f14bdc8971ed4ba71b1b873e7b8eccae3933906b | refs/heads/main | 2023-07-18T17:09:01.870068 | 2021-09-13T23:10:41 | 2021-09-13T23:10:41 | 404,865,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from rest_framework import serializers
from profiles_api import models
class HelloSerializer(serializers.Serializer):
""" Serializa un campo para probar nuestro API View"""
name = serializers.CharField(max_length=10)
class UserProfileSerializer(serializers.ModelSerializer):
""" Serializa objeto de perfi... | [
"packo.ive@gmail.com"
] | packo.ive@gmail.com |
28d109849300b7e58abce05516b4646b3bb6050c | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/services/services/click_view_service/transports/base.py | 3e417e47793c32b62586a04e690e884335d2f29b | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c481a0de6cefdd79cf619dd38e1af7ace0bdf8c3 | a2566bc495d098da78cd2441dd1a0f08642e2d83 | /11cp.py | ee7c207ccff862cae37da90e98ccb093df4e6259 | [] | no_license | krzivn/CryptoPals | 4ee52c43e1ce448106fb545448a02beb2ed57e8d | 586c8371c877d4c5c97201ecd8f1d94d873f64f8 | refs/heads/master | 2020-04-01T05:39:18.558134 | 2018-10-13T21:33:43 | 2018-10-13T21:33:43 | 152,913,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | #! /usr/bin/python
"""
Chall 11
An ECB/CBC detection oracle
Now that you have ECB and CBC working:
Write a function to generate a random AES key; that's just 16 random bytes.
Write a function that encrypts data under an unknown key --- that is, a function that generates a random key and encrypts under it.
The funct... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b02ea75f20d1fbaa5fef4649d93c1b1e288a3c40 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/88/usersdata/216/60027/submittedfiles/listas.py | 06fa06ad9d7e979f7698bb894a4c3efd93cce195 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
def diferenca(a):
l=[]
for i in range(0,len(a)-1,1):
menos=a[i]-a[i+1]
if menos<0:
menos=menos*(-1)
l.append(menos)
else:
l.append(menos)
return(l)
def maior(b):
for i in range(0,len(b),1):
c=b[0]
ma=0
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0547cd73c90a64d5a821e4ed7be323b64e4406f9 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ipv4-bgp-cfg/cd-encode-xr-ipv4-bgp-cfg-43-ydk.py | e9b6885da60507ae5df6e672b4d52558454a582d | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 4,128 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, 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 applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
2e369fd96ec44a156782635e79b4a3cf97e4ffd5 | 05cdf6f093124aff17c9378dcc63602f3d973ae5 | /tccli/services/cim/__init__.py | dbfb627f2f7b89e4eddb6f40d976ae05743ec841 | [
"Apache-2.0"
] | permissive | zyh911/tencentcloud-cli | e717d78c2429da8f2e26c9e3c19ecabfcc116f45 | dfc5dbd660d4c60d265921c4edc630091478fc41 | refs/heads/master | 2021-06-02T07:00:48.445549 | 2020-04-17T04:08:26 | 2020-04-17T04:08:26 | 254,317,574 | 0 | 0 | Apache-2.0 | 2020-04-17T04:08:27 | 2020-04-09T08:43:15 | null | UTF-8 | Python | false | false | 203 | py | # -*- coding: utf-8 -*-
from tccli.services.cim.cim_client import register_arg
from tccli.services.cim.cim_client import get_actions_info
from tccli.services.cim.cim_client import AVAILABLE_VERSION_LIST
| [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
6d7f704467684dc5eff5b4f0f39472afdf40a950 | 448c533feb888fd2b64d0d4f130ca4bc1c82e6c2 | /juparc/cli/markdown_features_cmd.py | 395a02af9d95f429f820d346a1b9a2ae90fbb808 | [] | no_license | gems-uff/jupyter-archaeology | e2433f745c70cbcc502cfc762127e75e3762ecb4 | 3bf3d6fdf672d2123c599fefa65292de3c3dc1c9 | refs/heads/main | 2023-03-24T21:23:06.999836 | 2021-03-12T00:40:50 | 2021-03-12T00:40:50 | 304,041,226 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | """Markdown Features command: extract features from markdown"""
import json
import sys
from ..extract import load
from ..markdown import generate_markdown_cells, split_markdown, extract_features
def extract_features_from_args(markdown, args):
"""extract markdown features according to args"""
if args.notebooks:... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
52437b5983217e43309fae17c83dde8d22a63d2a | 5864e86954a221d52d4fa83a607c71bacf201c5a | /achievements/common/util.py | c7ed1e28c13782e842108ce87b37aab93307a3ee | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\achievements\common\util.py
from collections import defaultdict
from achievements.common.opportunityTaskMap import BuildIndex
import gametime
def UpdateAndGetNewAchievements(existingAchivements, completedDict, statsTrakcer):
... | [
"le02005@163.com"
] | le02005@163.com |
9b3ba59f368d26abd7246af51312a0f4c8470cff | 78dbae82469a0a3a0b8be66da2d6c4b8c9ab894a | /core_oaipmh_harvester_app/migrations/0002_psql_full_text.py | 61927c5a0a1d9d657f1db7dd1c9a8e7bd7255a74 | [
"NIST-Software",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | usnistgov/core_oaipmh_harvester_app | 07a9c4d5c6b7078c10aab8e675318f71703353fd | bc5e31a9d7e5f66e34340230ae17a3cc2d08e7e7 | refs/heads/master | 2023-09-01T08:48:47.677916 | 2023-07-14T00:41:54 | 2023-07-14T00:46:46 | 97,263,716 | 1 | 2 | NOASSERTION | 2021-07-06T18:36:16 | 2017-07-14T18:48:57 | Python | UTF-8 | Python | false | false | 1,636 | py | """ Migrations
"""
# Generated by Django 3.2.10 on 2021-12-17 21:34
import django.contrib.postgres.indexes
import django.contrib.postgres.search
from django.db import migrations
from core_main_app.settings import MONGODB_INDEXING
from core_main_app.utils.databases.backend import uses_postgresql_backend
class Migra... | [
"guillaume.sousa@nist.gov"
] | guillaume.sousa@nist.gov |
f2fe3debc4af23b3a7d1720f3c1d982b7c606ab7 | 73ffc43cb973c0b150de7205c175db5891f9d7f7 | /landing_page/mainpage/migrations/0040_delete_feedback_delete_graduateprojectsvideos_and_more.py | a90895a8b2290c2c9d08ae925b7a6359bf3ed852 | [] | no_license | moscowpython/learnpython | 5b08ee26fc942b46eb7c68e046a4901d2d95b54d | 2eb40bbb247704eed4895b4083543f1ef93d9a86 | refs/heads/master | 2023-09-05T23:38:52.409105 | 2023-09-01T08:30:51 | 2023-09-01T08:30:51 | 134,971,360 | 3 | 3 | null | 2023-09-13T12:59:04 | 2018-05-26T15:08:08 | HTML | UTF-8 | Python | false | false | 1,719 | py | # Generated by Django 4.2.4 on 2023-08-24 14:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainpage', '0039_alter_graduatestories_story_section'),
]
operations = [
migrations.DeleteModel(
name='Feedback',
),
... | [
"melevir@gmail.com"
] | melevir@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.