blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e0f20a3411dc570ed92600197a47eda29d7e3fc | b5ffa0109ee980406550b7f9a4f5c7587f10a759 | /sklearn库.py | c597a056daae863e773ae3d33e4f1db9b08556b2 | [] | no_license | SuneastChen/np_pd_sklearn | 07fd99f383cfaf117e6dff7beb12b240957cbbe0 | 2ff777772c5a0db1e21635796351919c049dc680 | refs/heads/master | 2020-03-07T22:38:27.311708 | 2018-04-02T13:24:03 | 2018-04-02T13:24:03 | 127,759,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,832 | py | # _*_ coding:utf-8 _*_
# !/usr/bin/python
import numpy as np
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
iris = datasets.load_iris() # 加载指定数据库,是一个字典,data与target是key
iris_X = iris.data # 特征数据表,是二维数组
iris_y = iris.target # 结果标签... | [
"1050521852@qq.com"
] | 1050521852@qq.com |
18436012318d91b86faa7a1b49103c1a1b6c4fa6 | 70a6142a7369b082aa5131aed13c074532bfca1f | /RLWorkflow/common/mpi_moment.py | 8f4b09b4dda29ba115e764ed899c8b8253884dc0 | [] | no_license | nivekhah/RLTaskOffloading | 2ea5f56add6a5ca548e7c0096ca890c5220e3530 | d07d7a6334ae2c9aa93f8c0e70ff46393c189ee4 | refs/heads/master | 2022-04-08T06:17:03.242553 | 2020-03-14T12:12:38 | 2020-03-14T12:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | from mpi4py import MPI
import numpy as np
from RLWorkflow.common.misc_util import zipsame
def mpi_mean(x, axis=0, comm=None, keepdims=False):
x = np.asarray(x)
assert x.ndim > 0
if comm is None: comm = MPI.COMM_WORLD
xsum = x.sum(axis=axis, keepdims=keepdims)
n = xsum.size
localsum = np.zeros(n... | [
"jw855@exeter.ac.uk"
] | jw855@exeter.ac.uk |
b7d65448e1c658d3cc0b42437060aee5c8c46e72 | ca002961fa07883ff79ea67713bbc79e0ac79d28 | /plugins/brains/BBWander.py | 5c642987580df24602062aadb1efb8cb65ea2809 | [] | no_license | mindgitrwx/pyrobot3 | e51f8f1bac01a2509f2d89668102770053c16f56 | 45216c0c11f5efaaa4042916b2fe8eaac00fc4a7 | refs/heads/master | 2020-03-23T19:28:44.395949 | 2018-10-03T22:06:42 | 2018-10-03T22:06:42 | 141,980,775 | 0 | 3 | null | 2018-09-14T11:20:00 | 2018-07-23T07:53:27 | Python | UTF-8 | Python | false | false | 2,185 | py | # A Behavior-based control system
from pyrobot.brain.fuzzy import *
from pyrobot.brain.behaviors import *
import math, time
class Avoid (Behavior):
"""Avoid Class"""
def setup(self): # called when created
"""setup method"""
self.lasttime = time.time()
self.count = 0
def direction(... | [
"hybridkernal@gmail.com"
] | hybridkernal@gmail.com |
13f93076286f644bf0ff84425653e325e5ec4bbf | b12847bc4b3a15b0f771840d6c3c01123e44f0f5 | /a1_api/run.py | c161a3fd8217e80772d30c1a258a895627eebbde | [] | no_license | yue12317xiang/python_api | e231dbccb18cc450b04c9e168cfdbeb7c9027c8a | 28d0d74347f8fbd8186b067a19b2dfc58a46828e | refs/heads/master | 2021-03-21T09:55:42.915372 | 2020-07-02T11:13:50 | 2020-07-02T11:13:50 | 247,283,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from httprquest import HttpRequest
from do_excel import Do_Excel
COOKIES = None
def runn(test_data,sheet_name):
global COOKIES
for item in test_data:
res = HttpRequest().httrequest(item["url"],eval(item["data"]),item["method"],cookies=COOKIES)
if res.cookies:
COOKIES = res.cookies
... | [
"15119724465@qq.com"
] | 15119724465@qq.com |
b0eba99c0ca25ed04ea431a7bee9a18f308d4931 | 646cadb1c72ef4a060343baf2fcbe271958b6878 | /tigerjython/TJExamples/10-Ef/Eff4d.py | a11bfecbf166ccc406e98f9264dc1a5edaf3fec4 | [] | no_license | tigerjython/tjinstall | bd75cf8e4ae27b639a13865ef1ec5710391a2938 | aab61519b5299c2ab4f423c6fc5d8ea7c7860a99 | refs/heads/master | 2021-01-17T08:53:50.386905 | 2018-01-12T06:56:28 | 2018-01-12T06:56:28 | 40,659,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,151 | py | from gamegrid import *
locations = {
'Althaus':Location(2, 0),
'Bellevue':Location(0, 1),
'City':Location(1, 3),
'Dom':Location(4, 2),
'Enge':Location(5, 0),
'Friedhof':Location(3, 4)}
neighbours = {
'Althaus':['Bellevue', 'Dom', 'Enge'],
'Bellevue':['Althaus', 'City', 'Dom'],
'City':['Bellevue', 'Dom... | [
"support@tigerjython.com"
] | support@tigerjython.com |
773fa456f16adc76fdbca0568bf8feb723dfad1b | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Request/TaohuaChildcatesGetRequest.py | a624463f6f4d5bb1765b77cb318501d6f0daeeac | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 通过类目ID获取它的类目列表
# @author wuliang@maimiaotech.com
# @date 2012-07-03 10:25:14
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.pa... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
b8c0e25b21b256f84885af19f89d37a2572cf605 | 2fae2bd977cdfe0eac5cdffddd669db84d18e1ef | /dbg_merge_rasters.py | 63bab60c3f3f2c533ce65b6513765bea16d3cd80 | [] | no_license | nuhnuh/raster_server | b84c3fcf3b804c6937d39353c61378cd035b1e03 | c14d6d602c71b986ec995dc1c89e49051e39bcb9 | refs/heads/master | 2020-03-29T22:00:41.816830 | 2018-10-25T12:37:13 | 2018-10-25T12:37:13 | 150,398,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,802 | py | #!/usr/bin/env python3
"""
TODO: merge subimgs of the tifs intersections
"""
import glob
from osgeo import gdal
from osgeo import ogr
import numpy as np
import os
import matplotlib.pyplot as plt
import cv2
dst_dir = '/tmp'
dst_dir = os.path.expanduser( dst_dir )
def get_tif_filenames() :
src_dir = 'dat... | [
"unamirp@gmail.com"
] | unamirp@gmail.com |
21bd5066ba2a212591f1557923296b35eda07ae0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_072/ch25_2019_08_21_19_49_43_725038.py | 4ad02d8f6560a27c1b43320c99a7c2c44a6ef538 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | a=float(input('Qual será a distância percorrida ? '))
def preco_passagem(a):
if a<=200:
return a*0.5
else:
return 100+(a-100)*0.45
print('{0:.2f}'.format(preco_passagem(a))) | [
"you@example.com"
] | you@example.com |
b436a2f50887357258378c167beccd815a60f265 | 6eba4a5787d6c0edfa1ec6f94f33f67b721a6522 | /desafioEntreNotas.py | a90e6e4e3e38802b6755542c87e24f1168a2c4af | [] | no_license | HenriqueSantos114/desafios-em-python | 5dd41fa98e5182d8c46f9e2d7bc6e331de303ecf | 55c8d31784505e24e6f3bf823a4c660252482c7c | refs/heads/main | 2023-07-29T04:36:41.496965 | 2021-09-08T02:15:24 | 2021-09-08T02:15:24 | 402,064,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Faça um programa que peça uma nota, entre zero e dez.
# Mostre uma mensagem caso o valor seja inválido e
# continue pedindo até que o usuário informe um valor válido.
nota = int(input('Nota entre 0 e 10: '))
if nota > 0 and nota < 10:
print('Sua nota é ' + str(nota))
while nota > 10 or nota < 0:
print('... | [
"73488726+HenriqueSantos114@users.noreply.github.com"
] | 73488726+HenriqueSantos114@users.noreply.github.com |
44745815bf70dfefbc566356404d6d02776e8a77 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03254/s956844324.py | 07d913466375174a9e3f7d1410eaa5709318f863 | [] | 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 | 171 | py | N,x = map(int, input().split())
A = sorted(map(int, input().split()))
s = 0
for i in range(N):
x -= A[i]
if x<0:
break
else:
s += 1
print(s if x<=0 else s-1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bb48eb15a96fd7e452ae09f500b5f99a37446043 | a3aa5c6696f2cb4b5b6aa313ed7d55d5f9ee65e1 | /examples/ssv_NoSRD/108cells/_NT5terms/setrun.py | f93781733947f01ad7b3a433e0456431b5e7ab47 | [
"BSD-3-Clause"
] | permissive | mjberger/ho_amrclaw_amrcart | 65d237449d1163b2f8cd2b40ced850bc9d7f9c26 | 0e0d37dda52b8c813f7fc4bd7e61c5fdb33b0ada | refs/heads/master | 2023-01-12T18:36:08.808795 | 2020-11-18T20:23:30 | 2020-11-18T20:23:30 | 298,061,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,911 | py | """
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
from __future__ import absolute_import
import os
import numpy as np
#------------------------------
def setrun(claw_pkg='amrclaw'):
#---------... | [
"berger@cims.nyu.edu"
] | berger@cims.nyu.edu |
9697e404936e536a1b2a743fe4b9751ef40c69fc | a7ba274ad375edc99b8525434b491e5365d19847 | /dataManage/serverHandler/arcpyControl/publishMapServer.py | c1fba66e23ee3722039ffc1d1484bad1a04bb92d | [] | no_license | gery1990/CMB-Py | 4d5172a5d4ac241bd0bae4c519ad40c1150f00e7 | 2cd2087fe7bad9304eda255ef77210abdb6f1c58 | refs/heads/master | 2021-05-16T08:23:16.989450 | 2017-09-29T02:09:19 | 2017-09-29T02:09:19 | 104,054,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,227 | py | # coding:utf-8
import arcpy, traceback, os
import xml.dom.minidom as DOM
class PublishServer():
def __init__(self, mxdTempPath, agspath, type, logger):
'''
:param mxdTempPath: 模板路径
:param agspath: GIS服务连接文件
'''
self.mxdTempPath = mxdTempPath
self.agspath = agspath
... | [
"492542279@qq.com"
] | 492542279@qq.com |
70571dd78c2c6cb07035f45c95d36358920d2e18 | a153581be385c3f0671de8ebe41292a08b466835 | /src/Database/Enums.py | 94c07882e0a13d47fb4a3541bd2f65b4b395ffd3 | [] | no_license | PaperBag-Tech/Alpha-api | dd5b253eb8ab6928b3a4144c8331f9b3748c7548 | e1cc98c2b72f78200d425bd2e5648e1abd8dc0e5 | refs/heads/Dev | 2023-08-30T10:13:33.184384 | 2021-09-19T12:25:17 | 2021-09-19T12:25:17 | 389,418,179 | 0 | 0 | null | 2021-09-19T12:25:17 | 2021-07-25T18:43:50 | Python | UTF-8 | Python | false | false | 361 | py | from enum import Enum
class UserRole(str, Enum):
Admin = "Admin"
Editor = "Editor"
Agent = "Agent"
Others = "Others"
class LeadStauts(str, Enum):
open = "Open"
scheduled = "Scheduled"
rescheduled = "Rescheduled"
pendingCustomerConfirmation = "Pending Customer Confirmation"
pendingAgentConfirmation = "Pending... | [
"deepakpatelg16@gmail.com"
] | deepakpatelg16@gmail.com |
9f5a8273537b84262585ae90eb297d25d5a299e3 | 4271a6f470beb1b519963b0d318fe45af9e1de49 | /src/task/task_utils.py | aa03cb79ffd3d694d04e04904f7dc85638f6dfbc | [] | no_license | kfox1111/apbs-rest | d129b91a282e30521ffd5d7332738b58b3df39d6 | ada11d0c207b246761d768e3a3a1372a3f32cd25 | refs/heads/master | 2020-06-20T07:48:32.659798 | 2019-07-13T00:52:59 | 2019-07-13T00:52:59 | 197,048,933 | 0 | 0 | null | 2019-07-15T18:08:14 | 2019-07-15T18:08:13 | null | UTF-8 | Python | false | false | 3,399 | py | import os, time, sys
import requests
try:
from simplejson import loads
except:
from json import loads
STORAGE_HOST = os.environ.get('STORAGE_HOST', 'http://localhost:5001')
STORAGE_URL = os.environ.get('STORAGE_URL' , 'http://localhost:5001/storage')
END_STATES = ['complete', 'error']
def get_starttime(jobi... | [
"elvis.offor@pnnl.gov"
] | elvis.offor@pnnl.gov |
0ce9a04eb907b5fa9abb3ae64148d10cf425c13a | 7e78ae372335fd8e8f0f251d037984629919dff8 | /print_recent_activities.py | 64c5f22a0df8bcd747525bff1386ddc8ce4d5603 | [
"MIT"
] | permissive | ElvinOuyang/todoist-history-analytics | cc7e047dbc83934367d25c92d053805f7552b13f | f3eb9629c84e3878af39524e8e5694bd3c743973 | refs/heads/master | 2021-07-19T04:53:56.429227 | 2017-10-25T20:18:05 | 2017-10-25T20:18:05 | 106,601,656 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import todoist_functions as todofun
import sys
if __name__ == '__main__':
try:
script, activity_count = sys.argv
except ValueError:
sys.stderr.write(
"Please input desired rows of records after the script...\n")
sys.exit(1)
if int(activity_count) > 100:
print(">>... | [
"elvin.ouyang@gmail.com"
] | elvin.ouyang@gmail.com |
c5cf3f5dddb8cb510c9b6acf954b3ddde35e9e2e | 8506f0a22ef4edf03627951ced530b921ff4d383 | /tools/sumolib/output/convert/gpx.py | 0ec2127c1bf7a9f35b0a8fba39d2c071c8999ca0 | [] | no_license | deepak728/Traffic-Optimization- | fb0ac074fa601e524eb0d79defc7e8b84ab03138 | 85bc54de2e318f36bdcc5bb6f05badde0fb35ffe | refs/heads/master | 2020-03-29T23:29:36.740048 | 2018-11-12T09:19:17 | 2018-11-12T09:19:17 | 150,475,374 | 1 | 1 | null | 2018-11-12T09:19:19 | 2018-09-26T18:57:35 | Java | UTF-8 | Python | false | false | 1,366 | py | """
@file gpx.py
@author Jakob Erdmann
@author Laura Bieker
@date 2014-02-13
@version $Id: gpx.py 18096 2015-03-17 09:50:59Z behrisch $
This module includes functions for converting SUMO's fcd-output into
GPX format (http://en.wikipedia.org/wiki/GPS_eXchange_Format)
SUMO, Simulation of Urban MObility; see htt... | [
"deepak711998@gmail.com"
] | deepak711998@gmail.com |
43c46f3842293ca95fcc91f1dcb7bdd6100621cd | f0937d9fb9108cdd69c5c477a782965bb1f25da5 | /first/settings.py | 5922c4ca8b47a4245264bfa0f0f1e6fe1814266e | [] | no_license | SimeonYS/first | 64218a5c2113cebfc1e1aec3f2808dcefcc30342 | 986e7bbbe5635685ce6795ee9f1459ce5d5a8ef5 | refs/heads/main | 2023-03-29T17:29:57.300975 | 2021-03-29T07:58:32 | 2021-03-29T07:58:32 | 352,561,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | BOT_NAME = 'first'
SPIDER_MODULES = ['first.spiders']
NEWSPIDER_MODULE = 'first.spiders'
FEED_EXPORT_ENCODING = 'utf-8'
LOG_LEVEL = 'ERROR'
DOWNLOAD_DELAY = 0
USER_AGENT="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
ROBOTSTXT_OBEY = True
ITEM_PIP... | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
0fc9cec53ec101f6da272d7dd7ceda6c6293a687 | cfc82c85d5476dcb4a945f5fd1b0a08a1be8bef5 | /python/jira-python/jira-close.py | ae4ea08a9558cf702b0a1517efccf237e836350c | [] | no_license | anto-daniel/command-examples | 42d428e4ac96947d116fcd1ae308f979dc67ad35 | 5ac2d6f7e5b03f5fd0d1a545b8ad83df4b1a459a | refs/heads/master | 2023-08-05T12:06:28.987027 | 2023-07-26T07:29:34 | 2023-07-26T07:29:34 | 16,992,583 | 0 | 2 | null | 2016-01-13T16:02:24 | 2014-02-19T17:33:16 | HTML | UTF-8 | Python | false | false | 632 | py | import sys, getopt
from jira.client import JIRA
options = {'server':'https://jira.corp.domain.com','verify':False}
jira = JIRA(options, basic_auth=('anto.daniel','xxxxxxxxx'))
ticketid = sys.argv[1]
#addcomment = sys.argv[2]
issue = jira.issue(ticketid)
transitions = jira.transitions(issue)
[(t['id'], t['na... | [
"root@Anto-E7480.actiance.local"
] | root@Anto-E7480.actiance.local |
4aba499e6a04a5bfbbcc88a16ab099f4dadfba4b | 379211f2a6175049ebb711554b24ccd33737aba5 | /poto/script/create_lambda_function.py | bf4c5e6802c9b2d861938379cf2f06091a099ce7 | [] | no_license | POZAlabs/poto | 5df8451025d7a541e47537b6f6e45521ded1d664 | bb26845bc03a120ccd496f06def01162697c7335 | refs/heads/master | 2021-06-05T09:56:07.198235 | 2020-01-23T06:05:23 | 2020-01-23T06:05:23 | 147,601,905 | 0 | 1 | null | 2020-01-23T06:05:25 | 2018-09-06T01:44:30 | Python | UTF-8 | Python | false | false | 3,219 | py | import os
import argparse
import json
import re
import sys
import base64
import shutil
import boto3
from poto.access import get_client
from poto.lambda_func import create_lambda_layer, create_lambda_function_zip
from poto.utils import set_home
def get_parser():
parser = argparse.ArgumentParser('lambda')
pars... | [
"gpalektzja@gmail.com"
] | gpalektzja@gmail.com |
93e16e11d8d12ec6fd85f2c0f773cb3b1e3e8637 | 063f2c70005e0e3abc0adcc96732a7990e979bb2 | /booker/apps/libraryapp/migrations/0005_auto_20201129_1848.py | 3ebb0ef70ac9d7f731ad3fa8beb8cf120f41ca45 | [] | no_license | ppolle/book-rental | c0c8effe74def517b8130e6a21e3522dfcd1b8e5 | a50e0a30878b3e1fc487f2bc852cdee3a85b3a00 | refs/heads/master | 2023-01-30T17:45:51.002965 | 2020-12-12T12:54:02 | 2020-12-12T12:54:02 | 316,337,267 | 0 | 0 | null | 2020-12-12T12:54:03 | 2020-11-26T21:09:43 | HTML | UTF-8 | Python | false | false | 593 | py | # Generated by Django 2.2.17 on 2020-11-29 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('libraryapp', '0004_auto_20201129_0232'),
]
operations = [
migrations.AddField(
model_name='booktype',
name='early_r... | [
"peter.m.polle@gmail.com"
] | peter.m.polle@gmail.com |
6407830cac6dd52f49534aef0001c3f5ad710b1c | 3df4178ab9078babca7ce3a971f6e250b52bc637 | /code_cobrapy_parFBA.py | b4f940699e80ec3408cebcd9e82ed54b131064e5 | [
"MIT"
] | permissive | dasalazarb/NALFD-related_HCC_Recon_2.2 | 0e9104f12e8348fe0613917f312c749e6cbae116 | cc07ea4140ff1bfb6701bf2fe972868342274d1e | refs/heads/main | 2023-04-16T11:19:22.260509 | 2022-05-29T22:10:32 | 2022-05-29T22:10:32 | 497,475,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 31 15:08:53 2021
@author: da.salazarb
"""
# %% Libraries and data
import cobra
import pandas as pd
import numpy as np
GSE14520_MoA = pd.read_table("D:/SB-HCC/00_MoA/GSE14520_MoA.txt")
GSE10142_MoA = pd.read_table("D:/SB-HCC/00_MoA/GSE10142_MoA.txt")
neg_AEBP1 = list(GSE... | [
"dsalazarb@javeriana.edu.co"
] | dsalazarb@javeriana.edu.co |
7138dd90e13a84f8d729f1f5bbdd4b8a44e3ac41 | dd19bbe893c7b978bd0c5028670286093f61da7b | /examples/UNet/generators.py | b9bfc040edeff4afbf89d41522980888b13d73a5 | [
"MIT"
] | permissive | herandy/Recipes | a8d120d753c684924ec42a6cd6d65f6997d55a11 | 48fe66f407f916b09d89fd2603e1137cc500c556 | refs/heads/master | 2022-11-08T06:55:59.895070 | 2017-05-01T23:48:28 | 2017-05-01T23:48:28 | 88,197,292 | 0 | 1 | MIT | 2022-10-08T17:45:39 | 2017-04-13T19:01:26 | Python | UTF-8 | Python | false | false | 3,381 | py | __author__ = 'Fabian Isensee'
import numpy as np
import lasagne
def batch_generator(data, target, BATCH_SIZE, shuffle=False):
if shuffle:
while True:
ids = np.random.choice(len(data), BATCH_SIZE)
yield data[ids], target[ids]
else:
for idx in range(0, len(data), BATCH_SIZ... | [
"amirhosein.herandy@gmail.com"
] | amirhosein.herandy@gmail.com |
65bc21b97b512b395718665657f444720a1f37f8 | d6c0361cec81b712fe0184670d6d3256ef1af062 | /malteheckelen_de/wsgi.py | 4d13503f5c62fb30425893cc6c5378240e03c828 | [] | no_license | malteheckelen/malteheckelen_site | e59e64c12eff4a56abaa4bd476239346990259bd | 6463072561a75ad3429ba31517c9ecfc6355c6fa | refs/heads/master | 2023-02-26T13:11:09.172873 | 2021-02-02T10:00:37 | 2021-02-02T10:00:37 | 190,808,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for malteheckelen_de project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"malteheckelen@googlemail.com"
] | malteheckelen@googlemail.com |
e1e08627cb4eb317236b0b5da9b3b4f6f5e0d446 | d6c990a9abdb4c8dad0c9785b96a0edf9a33b7fd | /magic_formula_revised.py | f6c6dd7bbc791c64d67a4cc4fcd2ccb4256e4570 | [] | no_license | shashghosh/AlgoTrading | 417e6e193aeaa66605f1fc22418d8b1ec4b318f3 | 7d877c3eef2e51549ac226ffe29b8a3af94ef8df | refs/heads/main | 2023-04-05T07:28:10.655278 | 2021-04-21T18:10:13 | 2021-04-21T18:10:13 | 360,260,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,493 | py | # ============================================================================
# Greenblatt's Magic Formula Implementation
# Author - Mayank Rasu
# Please report bugs/issues in the Q&A section
# =============================================================================
import requests
from bs4 import Bea... | [
"noreply@github.com"
] | noreply@github.com |
7430d072306d532ae77c0231f07d45427d020cbf | c01d3f51c1e7dfe18d019d7c68cac52899aba7c9 | /main-1.py | fb2a77feea96e18a25af1513fbf96661772f6ebc | [] | no_license | FLOWR1/2018hackathon | bc364c870b66bef3012d577a718150c88ca0376d | 455863a73499ebf9c991c3fb5e2fa8d305eea6fc | refs/heads/master | 2020-05-22T11:48:51.935985 | 2019-05-13T02:20:55 | 2019-05-13T02:20:55 | 186,330,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,246 | py | import cv2
import numpy as np
import threading
import sys
import os
import dlib
import models
import NonLinearLeastSquares
import ImageProcessing
from drawing import *
import FaceRendering
import utils
import timeit
INTRO_VID_PATH = '../ROEM 2014 Spring SUZY 1080p.mp4'
BACKGROUND_VID_PATH = '../ROEM 2014 Spring SUZY ... | [
"bamy@skku.edu"
] | bamy@skku.edu |
8898c800273d477134f4b1d5a9d195979c06ad78 | 4cdb8580f1662336583b844f9f39ec334f4b2bdd | /sim_builder.py | e4e46e1fc19db432d088ab404df83dee1b0aa9df | [
"CC0-1.0"
] | permissive | latimerb/BLA_invivo | 36ee2e3241b530b73ee7174848878df1fa2ee8fd | 715eba51e9d1f1f4d1da44c5627725b166aadf63 | refs/heads/master | 2020-04-30T09:55:45.431196 | 2019-05-06T15:34:58 | 2019-05-06T15:34:58 | 176,762,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,288 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 24 23:26:54 2018
@author: Tyler Banks
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
import os
import subprocess
import re
im... | [
"latimerb@comet-ln3.sdsc.edu"
] | latimerb@comet-ln3.sdsc.edu |
54f0f5ed57993b798a9f8ad302c3afbaed89a667 | 8670b5e4195bb16d386584e20dc511565c577c5f | /Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py | 552f4342427725b2c860a94ce651da89c2b42047 | [] | no_license | CvanderStoep/AlgorithmicToolbox | 558ac7bdd7590b1328b53fa2d31d5bfbb03b1fce | 5d3b6ea96d70e3eee110b0933b0585b49a6f10a5 | refs/heads/master | 2022-12-24T12:46:22.764695 | 2020-10-06T15:07:26 | 2020-10-06T15:07:26 | 292,310,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | # python3
from itertools import permutations
def max_dot_product_naive(first_sequence, second_sequence):
assert len(first_sequence) == len(second_sequence)
assert len(first_sequence) <= 10 ** 3
assert all(0 <= f <= 10 ** 5 for f in first_sequence)
assert all(0 <= s <= 10 ** 5 for s in second_sequence... | [
"carlo.vanderstoep@gmail.com"
] | carlo.vanderstoep@gmail.com |
a129bbc914a2740992f20ee1dc830ea5aaece802 | a8d9e696c73639bd6f3a8f2e64a207e218078027 | /api/migrations/0011_auto_20190316_1456.py | df1e30c151826993f3e08b5e6d09caab147d0410 | [] | no_license | rachanaaithal/ACMS-Hotel-And-Flight-Booking | 3ad2359843af24ab5ba2f09fc76f7c03092b7dfc | eae1253d514921d8648beef71d48bd77fd312014 | refs/heads/master | 2022-12-04T16:18:29.466221 | 2019-08-12T10:13:00 | 2019-08-12T10:13:00 | 173,610,945 | 0 | 13 | null | 2022-11-22T01:06:45 | 2019-03-03T18:04:56 | JavaScript | UTF-8 | Python | false | false | 514 | py | # Generated by Django 2.1.5 on 2019-03-16 14:56
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('api', '0010_auto_20190316_1420'),
]
operations = [
migrations.AlterField(
model_name='roomavailability... | [
"noreply@github.com"
] | noreply@github.com |
dcaa6538533e7aea6475ca43d0007542414c737a | 884e6e0dbef09e17cb76ff3536422ca342a58fbd | /Dokuz_Tas_Tahta.py | c69e36be9c0bd4d6bb1c62d3caed566e4d2ad233 | [] | no_license | omerfaruktuna/DokuzTas | f41936f786f987afd2a822bd7a0e79918ecaa25d | 2f3e09fd04e45874176117170037eda0ece76bbe | refs/heads/master | 2020-05-23T01:18:10.006508 | 2019-05-14T09:21:05 | 2019-05-14T09:21:05 | 186,587,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | import random
class Dokuz_Tas_Tahta():
def __init__(self):
self.current_board = ["", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"]
def print_tahta(self):
print("Current Picture of the Board:\n")
print(self.current_board[1]+"---... | [
"noreply@github.com"
] | noreply@github.com |
fa4e4448ac09a8ca4502f4e8591d83ef40112882 | fc2447b91cbee82e74e939092ec1903678f3217a | /PythonPractice/算法图解/Dijkstra's algorithm.py | 0cd528a8c91f11657af1906538a31b531f16e4a9 | [] | no_license | yglj/learngit | 0eac654e7c49f2ede064b720e6ee621a702193b4 | 74fb4b93d5726c735b64829cafc99878d8082121 | refs/heads/master | 2022-12-24T10:01:56.705046 | 2019-05-27T21:04:08 | 2019-05-27T21:04:08 | 146,157,116 | 0 | 1 | null | 2022-12-12T07:01:25 | 2018-08-26T06:28:20 | HTML | UTF-8 | Python | false | false | 1,771 | py | """
狄克斯特拉算法
每条边上的关联数字称为权重
带权重的图叫加权图
寻找加权图的最短路径
只是用于有向无环图
"""
graph = {} # 加权图
costs = {} # 开销
parents = {} # 父节点
# 图的各顶点的邻居及边的权重
graph['start'] = {}
graph['start']['a'] = 6
graph['start']['b'] = 2
# print(graph['start'].keys())
graph['a'] = {}
graph['a']['fin'] = 1
graph['b'] = {}
graph['b']['a'] = 3
graph['b']['f... | [
"2365952530@qq.com"
] | 2365952530@qq.com |
727b5f688d0d70414334ccda20dfd1f147a25259 | b604d6e2b1f206e6df660da2be2add78ec22941a | /resources/ros_kinetic/src/ros/rosbuild/bin/rosgcov_summarize | 9c19df610036bbb08442ed9a949fe1a44b505a54 | [] | no_license | fqez/common | 7b521773d81e2e687f6ae482f595ca3d19515e39 | f423fec07f39da9cb38f91dc4f3f1cd51c1a3130 | refs/heads/master | 2020-05-21T23:59:17.035384 | 2017-03-14T11:46:57 | 2017-03-14T11:46:57 | 62,873,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | #!/usr/bin/env python3
import sys
import fileinput
import re
import os.path
USAGE = "USAGE: rosgcov_summarize <package_dir> <rosgcov_file>"
if len(sys.argv) != 3:
print(USAGE)
sys.exit(-1)
pkg = sys.argv[1]
fname = sys.argv[2]
if not os.path.exists(fname):
print('[rosgcov] %s : %.2f%% (no coverage results)' ... | [
"f.perez475@gmail.com"
] | f.perez475@gmail.com | |
832c54e69da7d3a98af00fecad751a69ad911ebb | 175bec7f39f7acc9e574e76383969755b8c3874d | /blogApp/blog/urls.py | ef67242776567a4890cbabbbb6c24da12fec3648 | [] | no_license | agdelvalle/djangoBlog | 4af2338232384680bab29ddbb2854fdc284a2b10 | 377e3d37cea8f9e7b6d92370c7ab97c75983388e | refs/heads/master | 2023-08-25T12:47:47.875618 | 2021-10-30T17:41:20 | 2021-10-30T17:41:20 | 422,945,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.conf.urls import url
from .views import index, new_entry, view_entry, delete_entry, delete_comment, update_entry, login
urlpatterns = [
url(r'^$', index, name='index'),
url(r'^new_entry$', new_entry, name='new-entry'),
url(r'view_entry/(?P<blog_id>\d+)$', view_entry, name='view-entry'),
url... | [
"aly.delvalle.9@gmail.com"
] | aly.delvalle.9@gmail.com |
d0f5c9bc02f4fce66adc44578dcf744646f61523 | 0f121afc3b5a59d44bb237e37feedbc63a1c824e | /q2/q2.py | b9ae33d6f5e776f30ad76665006c66bdff2edcba | [] | no_license | BonJovi1/Camera-Modelling-and-Transformations | c712567e13686859af527b0dd32962d9fc09f123 | 1300a8c0f98ccd4b4e975ce981a7c5d94d1338fc | refs/heads/master | 2020-07-09T20:04:00.797176 | 2019-10-10T18:01:13 | 2019-10-10T18:01:13 | 204,070,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | #importing libraries
import numpy as np
import matplotlib.pyplot as plt
import cv2
#camera calibration matrix as given
cal_mat = np.array( [ [7.2153e+02, 0, 6.0955e+02],
[0, 7.2153e+02, 1.7285e+02],
[0, 0, 1] ] )
cam_inverse = np.linalg.inv(cal_mat)
#found using imtool in matlab
pixels = np.array(... | [
"abhinav.g@students.iiit.ac.in"
] | abhinav.g@students.iiit.ac.in |
b24dca7b4cab815df2d6088302dd4b54e9fd78d0 | 615bf8c6b986f5985e5f6592f6b502f50cc0e984 | /baby.py | f45952b3437c53804f01c140c8deadb590a61228 | [] | no_license | Ch0498/Python-Bible | 3e30dbc452ef5b3a9c2fa83b476ff485209a48fc | 75b22ff2854b78e52eef5f5de7d907c1feaf19e4 | refs/heads/master | 2022-11-07T01:28:27.993759 | 2020-06-28T11:29:51 | 2020-06-28T11:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from random import choice
questions = ["Why is the sky blue?: ", "Why is there a face on the moon?: ",
"Where are all the dinosaurs: "]
question = choice(questions)
answer = input(question).strip().lower()
while answer != "just because":
answer = input("why?: ").strip().lower()
p... | [
"noreply@github.com"
] | noreply@github.com |
4b3ea08a26e0a92132a0a700b7e8ff04bd9e13fb | 0420b28aa59330fb0d9548f636b1460668163887 | /accounts/migrations/0005_alter_userprofile_profile_picture.py | 591939011f4877d881bd9c3396ddd91668e6bf0a | [] | no_license | akhmadakhmedov/modamag | 30cc3ea335b7fe8fbc234149b11d2df11b627281 | 0459f27230027fab51cbaae2a594ffde52a64d04 | refs/heads/main | 2023-08-11T01:48:58.979894 | 2021-10-12T11:18:08 | 2021-10-12T11:18:08 | 391,133,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.2.5 on 2021-08-16 09:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_userprofile'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='profile_pict... | [
"ahmedov.thy@gmail.com"
] | ahmedov.thy@gmail.com |
ca46ce4a951be66fcf2ef5ba9a70ce827fc1944d | fa2d32a77ebd558ffe54eea67504308fa1ac2d2c | /learn.fabric/a/bin/python-config | 4336941e993282c564dab78f716b56d48c7c63fa | [] | no_license | prpllrhd/morePYTHON | 329362c18a447f913fa1f73c06fd0451b1a79009 | 739f64eb5462de532a8f1788ebe7631cb155f565 | refs/heads/master | 2021-06-05T19:59:43.276455 | 2019-01-20T19:53:34 | 2019-01-20T19:53:34 | 14,663,754 | 0 | 1 | null | 2015-07-08T06:12:08 | 2013-11-24T15:38:51 | Python | UTF-8 | Python | false | false | 2,355 | #!/Users/samy/git/python/learn.fabric/a/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.vers... | [
"samy@rakhees-Air.fios-router.home"
] | samy@rakhees-Air.fios-router.home | |
68026a166c2d56d84db2d415b5ebe71328e54e9b | f79306de1af4c5ef42bc457944b415471805e90c | /ps/baekjoon/1620.py | b51adf77490af00d03d82f0e3c1ce2633a51d6cf | [] | no_license | FutureSeller/TIL | 9d514e19fd10b237b48eaac9f319f9a68bd47edc | 6fee95619ea96893daf66632a582cdd95a18d8e0 | refs/heads/main | 2023-08-06T18:05:14.551684 | 2023-08-04T07:17:34 | 2023-08-04T07:17:34 | 194,835,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | from collections import OrderedDict
import sys
N, M = map(int, sys.stdin.readline().split())
pokemon = OrderedDict()
names = []
for idx in range(0, N):
name = sys.stdin.readline().rstrip()
names.append(name)
pokemon[name] = idx
for _ in range(M):
name = sys.stdin.readline().rstrip()
if name not in pokemon... | [
"f.s3ll3r@gmail.com"
] | f.s3ll3r@gmail.com |
8cfda59f774349e3e71b33a2df89c221077a735d | c34949b4773302fd7051d524855268ff47cd94a0 | /github/git.py | 64bad17b60b9de8db07b33a879f263328c6969a3 | [] | no_license | fsxchen/netx | 79d7b393777791ede2d3d173cc9944a8a6adda9c | 3efa26ae9b315fd4f9a464204468293a0c5b1349 | refs/heads/master | 2021-01-18T17:40:00.342621 | 2016-11-23T09:42:39 | 2016-11-23T09:42:39 | 71,990,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
File Name: git.py
Description:
Created_Time: 2016-11-08 11:35:47
Last modified: 2016-11-23 11时54分03秒
'''
_author = 'arron'
_email = 'fsxchen@gmail.com'
import os
import json
from operator import itemgetter
from github import Github
import networkx as nx
from network... | [
"fsxchen@gmail.com"
] | fsxchen@gmail.com |
3d09ba2c50e27b812f44551b76e959f8ed91b1c4 | 5e9e683894db55e6918f7c3f23859fcf905f856f | /src/infra/db/db_connector.py | cae1725ba554b582d0b29694eb1ab88e0a8915df | [] | no_license | vigenere23/cooky-api | 3cfe612b5144dec5daf082f34b65f1d4955de815 | cfe6542ba98579282e818e4f13374fc032e97aaa | refs/heads/master | 2023-07-18T02:44:25.171587 | 2021-08-26T16:15:38 | 2021-08-26T16:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | from src.infra.db.db_connection import DBConnection
class DBConnector:
def __init__(self, connection: DBConnection):
self.__connection = connection
def delete(self, query, data):
try:
self.__connection.execute(query, data)
self.__connection.commit()
except Exc... | [
"lolgab1@hotmail.com"
] | lolgab1@hotmail.com |
4aa3c05bab82dea4ae678dfc7c1ea442168008e2 | 414a58c691ff7b434034086433644870f8ac5c99 | /tests/test_geom.py | b1de7a128110d8a3d34fee1bc3c1dbf3d7148c62 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | WZBSocialScienceCenter/pdftabextract | 08328197681ca03b764ea2df410851c06e0a92b7 | 7b86a9098b5d397f984b1cbc6716d55860e34ef8 | refs/heads/master | 2022-08-02T16:43:42.187628 | 2022-06-24T09:51:22 | 2022-06-24T09:51:22 | 62,884,666 | 2,239 | 401 | Apache-2.0 | 2022-06-24T09:51:23 | 2016-07-08T11:44:46 | Python | UTF-8 | Python | false | false | 7,946 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 13 09:50:51 2017
@author: mkonrad
"""
import math
import pytest
from hypothesis import given
import hypothesis.strategies as st
import numpy as np
from pdftabextract.geom import (pt, ptdist, vecangle, vecrotate, overlap, lineintersect,
... | [
"markus.konrad@wzb.eu"
] | markus.konrad@wzb.eu |
2206b4bfd3f1f3c2510c27d0f3cce62a12de5313 | 3a6b2c80f948a7918d54b71866d94476d17f19ef | /docs/_build/html/_downloads/06b1aa4ac217e5bc4f81274b1df76753/demo3.py | f37533217c6ef48d7c40a3069c064bf780f9459f | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | beckermr/GalSim | c306c3e5c00a78c15a9d9f20d2bfa489239fb946 | 96c80bde3184f84e450c2dc441ee8fe03b5197f2 | refs/heads/releases/2.3 | 2022-12-04T20:45:35.964787 | 2022-07-01T06:23:22 | 2022-07-01T06:24:49 | 288,194,984 | 0 | 0 | NOASSERTION | 2020-08-17T13:59:25 | 2020-08-17T13:59:25 | null | UTF-8 | Python | false | false | 15,150 | py | # Copyright (c) 2012-2021 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | [
"michael@jarvis.net"
] | michael@jarvis.net |
8c0fd05fd868dd2f69902f3cd5972467419c43ff | 6bde52f4bc294810f5a347ccc7e40c9a7f34274b | /Secondary/utils/canmatrix/library/exportxls.py | 5f653ce518bef338e14058b71dd872eae4a494df | [
"BSD-3-Clause",
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | OSADP/CARMA | 3b7add9aeec3deb83756529f34b3dc1ee2414785 | b5a832bc9d127b8cbda3e7c45f29344125e7b690 | refs/heads/master | 2021-03-22T03:30:19.463424 | 2016-02-03T21:02:39 | 2016-02-03T21:02:39 | 48,701,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,953 | py | #!/usr/bin/env python
#Copyright (c) 2013, Eduard Broecker
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that
# the following conditions are met:
#
# Redistributions of source code must retain the aframeve copyright notice, this list... | [
"starkj@leidos.com"
] | starkj@leidos.com |
d7260d07b1153616bbc341e18e6edb40759ede60 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02631/s086085697.py | fe20e86568153f3f73efd0b1df7a952b71276135 | [] | 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 | 122 | py | n=int(input())
a=list(map(int,input().split()))
c=a[0]
for i in range(1,n):
c=c^a[i]
for i in range(n):
print(c^a[i]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
38b56793cdc3a225af1527dc3fac40396408906b | 11de80f6ab9a9d89c3ab41cfbbe60c3c595a351d | /objectorienteddesign/cards/propertycards/pistachioblackwildcard.py | fcdbe12b4b9184086edd80f166bf2e2c28002a38 | [] | no_license | karlmartitoots/monopoly-deal-machine-learning | 0e5bd799eea4cb06d5cb6b7a818bdb5d816237d7 | 51c5f9fc31e53cfbffea89f6cdc4ef3a27adf3dd | refs/heads/master | 2020-03-23T06:13:09.894190 | 2018-07-24T19:29:34 | 2018-07-24T19:29:34 | 141,196,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | class PistachioBlackWildCard: | [
"karlmarti65@gmail.com"
] | karlmarti65@gmail.com |
33a18687d659b7660ac884d23083f6b5f93f45ad | 141279d57293ea855be1b662202199eeb95f1ed8 | /manage.py | 31892c1f95191006b410e442302ccd21ff9e9e0e | [] | no_license | ErickEMAS/economiza | af19f1fad19dfad191373f55603cbe83f35846be | 6db225e95dafe5f5fc5499b1060e5583d9e73770 | refs/heads/master | 2022-11-24T18:16:55.371632 | 2019-12-12T02:42:37 | 2019-12-12T02:42:37 | 225,087,406 | 0 | 0 | null | 2022-11-22T04:52:02 | 2019-12-01T00:30:33 | CSS | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config_economiza.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"erick8alexandre@gmail.com"
] | erick8alexandre@gmail.com |
ca15dbe70032e4a4eefd4396a04a3822f0e73020 | 1470faaf09bd4c9a6e4c11c3420ab9189f76daa1 | /app.py | 76ad2db69fef69f6c0d42f74e387217cdc1cae0a | [] | no_license | PandeCode/flask-react-ts-template | 47f794b0cbd8e4027beaf63a8380fef846d4d8ce | b39e6ff5bef67fdc5c9d8a397be07461cd60bcc1 | refs/heads/main | 2023-06-02T03:58:44.255036 | 2021-06-17T13:46:29 | 2021-06-17T13:46:29 | 366,999,393 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/bin/env python3
from server.main import app
from flask_session import Session
import os
if __name__ == "__main__":
app.config["SESSION_TYPE"] = "filesystem"
app.config["SESSION_FILE_DIR"] = "./.flask_session/"
Session(app)
caches_folder = "./.server_cache/"
if not os.path.exists(caches_folder):
os.makedi... | [
"pandeshawnbenjamin@gmail.com"
] | pandeshawnbenjamin@gmail.com |
4ceb80084efd14f79aa57cbafc8d5f673076d470 | e9f0bb945f34408f510d696ae38421ee4248b584 | /chaoxi/day-091-matplotlib/matplotlib-exam1.py | 7c1fbe6dbdf95e36d50b5d808f12ce8bfeaa2153 | [] | no_license | cxhuan/python-examples | 3d7582a36300d225f903665da8c3b555149a36ec | 5a1b4019cc68ce457c9880120b7a88167b05c14c | refs/heads/master | 2022-04-10T23:58:37.789041 | 2020-04-07T04:09:20 | 2020-04-07T04:09:20 | 250,184,331 | 0 | 0 | null | 2020-03-26T07:00:36 | 2020-03-26T07:00:35 | null | UTF-8 | Python | false | false | 465 | py | import matplotlib.pyplot as plt
# 示例1 简单绘图示例
plt.plot([1, 2], [1, 2], 'r--+')
plt.show()
# 示例2
# 指定一个画板
fig = plt.figure()
# 指定画板后指定轴
# ax = fig.add_subplot(111)
ax1 = fig.add_subplot(221)
ax2 = fig.add_subplot(222)
ax3 = fig.add_subplot(224)
ax4 = fig.add_subplot(223)
# 设置轴的位置
# ax.set(xlim=[0.5, 4.5], ylim=[-2, 8],... | [
"283807775@qq.com"
] | 283807775@qq.com |
908780fe69c1ca758295ca0f25b531c70571438f | 67d8173a716da10a7350213d98938aae9f2115ce | /ProgrammingCourses/CS61A/lab/lab09/tests/substitute.py | c599160851d680f435682a58dd191c6b5377599d | [] | no_license | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 1,174 | py | test = {
"name": "substitute",
"points": 1,
"suites": [
{
"cases": [
{
"code": r"""
scm> (substitute "(c a b) "b 'l)
(c a l)
scm> (substitute "(f e a r s) "f 'b)
(b e a r s)
scm> (substitute "(g (o) o (o)) "o 'r)
(g (r) r (r))... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
1c41b31c2095067d219200c34429fe81d65f2c1a | 96c1f13473cf224113185902edd4c9c01091e106 | /tests/torchlie_tests/functional/test_se3.py | c3af91c3b45ba611167ac0d61031d6cf9bfbf0f1 | [
"MIT"
] | permissive | facebookresearch/theseus | f1e488eb5a25f5ba74a6995911bee958b5da4cf3 | 240e1206329d42fedd40399684d6e17e455c6645 | refs/heads/main | 2023-08-11T07:33:12.328520 | 2023-08-02T12:58:01 | 2023-08-02T12:58:01 | 429,570,359 | 1,410 | 105 | MIT | 2023-08-01T14:30:01 | 2021-11-18T20:28:27 | Python | UTF-8 | Python | false | false | 3,067 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Sequence, Union
import pytest
import torch
import torchlie.functional.se3_impl as se3_impl
from torchlie.functional impo... | [
"noreply@github.com"
] | noreply@github.com |
400c7d1dfbd9b32067d5a361e8a800aaea5f8be9 | 771c1e2011a85a287c766b1a3d299ced2e6f799f | /src/electionguard/ballot_compact.py | 96e4d2be29a39ca2eb31f736305027dd3da57e10 | [
"MIT"
] | permissive | microsoft/electionguard-python | f50f64a473a8d77984a2faf4aa8db40cebb5c201 | b3ddc2a732f6c5f078a3afbe05b00d632a2ff5e0 | refs/heads/main | 2023-08-03T12:44:35.322716 | 2022-10-28T12:47:18 | 2022-10-28T12:47:18 | 246,392,956 | 143 | 117 | MIT | 2023-08-02T00:24:32 | 2020-03-10T19:46:06 | Python | UTF-8 | Python | false | false | 5,601 | py | from dataclasses import dataclass
from typing import Dict, List
from .ballot import (
CiphertextBallot,
SubmittedBallot,
PlaintextBallot,
PlaintextBallotContest,
PlaintextBallotSelection,
make_ciphertext_submitted_ballot,
)
from .ballot_box import BallotBoxState
from .election import Ciphertex... | [
"noreply@github.com"
] | noreply@github.com |
59f9254a26faab54b7b698e6c4336b6ab640fcad | 2cf71738c6425c618fc2ad44c958a1688830f2cb | /base/base_train.py | ede030944667719ab1d1034500d2700475247be4 | [
"Apache-2.0"
] | permissive | fgabel/novelty_detection | 87b69b83e0f30b9ac5ccdcea9e283bfd5db76d4e | fa27ad2f1fcc361461ab27aa8a240513a5e85f5a | refs/heads/master | 2020-05-29T17:24:48.933688 | 2019-12-12T09:14:20 | 2019-12-12T09:14:20 | 189,273,812 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import tensorflow as tf
class BaseTrain:
def __init__(self, sess, model, data, config, logger):
self.model = model
self.logger = logger
self.config = config
self.sess = sess
self.data = data
self.init = tf.group(tf.global_variables_initializer(), tf.local_... | [
"felix@bnbit.de"
] | felix@bnbit.de |
47bf41018d10009f670e94680474ce6e67622dc7 | 7a34d52b758512d01ed657db6e936fc769117d4c | /crypto/random/primes.py | ffedcc42b85f2e44e321b5fca15d753053738e5d | [] | no_license | Notgnoshi/cryptography | 8ff4cd93d6a0ff0e761c271b167fd8e364cef8d6 | 50abb1fad13c0a1cd5083069990f68873ea31c1d | refs/heads/master | 2019-07-02T01:11:14.833503 | 2018-01-10T14:40:41 | 2018-01-10T14:40:41 | 102,778,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import random
import gmpy2
# TODO: There's got to be a better implementation than this...
def random_prime(bits):
"""
Generates a random prime number with `bits` bits
Example:
>>> p = random_prime(256)
>>> p.bit_length()
256
"""
# Generate a random number with n bi... | [
"notgnoshi@gmail.com"
] | notgnoshi@gmail.com |
d3ba496d61ec0b8196d374ecc5a41a78d33281b9 | 955281861be4fc4bbff48f0cfead3900cc8b9a90 | /Python/displayContents.py | 4d3a78e556ee862f8a80f06987293cebe0def722 | [] | no_license | NolanRudolph/FlowSynth | 1020b87553685918d76a5886a4566e543bda0c4b | 0603bd0a71d6841f96f9fd026ee5673d3cc916a2 | refs/heads/master | 2022-03-29T01:59:03.551450 | 2020-01-14T21:31:46 | 2020-01-14T21:31:46 | 184,869,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | import sys
def main():
try:
f_in = open(sys.argv[1], "r")
except IndexError:
print("Please use as $ python " + sys.argv[0] + " [FILE]")
return None
lines_since_title = 0
for line in f_in:
entry = line.split(",")
entry[2] = entry[2][:18]
entry[3] = entry[3][:18]
"""
Number of spaces per column
... | [
"nolan@localhost.localdomain"
] | nolan@localhost.localdomain |
3dc2bb12966bffd471380690c04c8efd0a9a13b7 | caedff6019e47035eadaaad5a588022e05d92104 | /Christmas2016/question/migrations/0001_initial.py | 763d1090fa8d71921230ce550cd9738236392d82 | [] | no_license | JMorris1575/christmas16 | ff767add9321bfe82ee70477f75a957504dc5288 | 1b06bf8febb94a699226b0b9d951cb14bbe59d50 | refs/heads/master | 2021-01-13T09:33:57.721350 | 2016-12-28T13:12:44 | 2016-12-28T13:12:44 | 72,059,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-09 02:39
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import model_mixins
class Migration(migrations.Migration):
initial = True
dependencies ... | [
"FrJamesMorris@gmail.com"
] | FrJamesMorris@gmail.com |
628d46dc69e58fab2b00e0b3f44ef0d2fcd88ea1 | 5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4 | /interview_bits/level_1/01_mathematics/05_number_encoding/01_rearrange-array.py | f60f9290190be8d9160ecf9353f276b41e9c32b3 | [] | no_license | salvador-dali/algorithms_general | 04950bd823fc354adc58a4f23b7d2f3d39664798 | aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d | refs/heads/master | 2020-12-14T06:24:10.466601 | 2016-07-17T06:00:17 | 2016-07-17T06:00:17 | 47,397,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # https://www.interviewbit.com/problems/rearrange-array/
def rearrange(arr):
n = len(arr)
for i in xrange(n):
arr[i] += n * (arr[arr[i]] % n)
for i in xrange(n):
arr[i] /= n
return arr
| [
"dmytro@knowlabs.com"
] | dmytro@knowlabs.com |
acb5c106275a1bfa7b8ae22ee597d799b0cb87f1 | bffde27fec141b8ea73f2c44e9316870e30b9a6a | /T_Computacional/p28.py | 59a3d876e2a3022bbe4b6aea75a27b4df7394d88 | [] | no_license | Edrasen/Teoria_Computacional | 5ffa3ee90f40ab0cdb0d7b59183d832d2b137bb9 | 43e6312f22b19a0951875598d172ead8288fa9b7 | refs/heads/master | 2020-07-11T18:29:37.218095 | 2019-09-30T02:37:53 | 2019-09-30T02:37:53 | 204,615,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | numero = int(input("Introduzca un numero entre 0 y 100: "))
porcent = '%'
if(numero >0 and numero < 100):
print("{}{}".format(numero, porcent))
else:
print("El numero introducido no es valido")
| [
"noreply@github.com"
] | noreply@github.com |
6e124878e7a265bcc923d0028a77f10964e8177f | a09c056ff972165d3b42a4ac25083a4dfbc0024e | /examples/run_trainer.py | 54388af8db5884e3ff9bdf62163fc80fe7b5a7b5 | [
"MIT"
] | permissive | Ankur-Deka/malib | fee2957a819053238a4975f7e56697fe4155bf12 | 6be1b8a4a71ae469db3621449f77a88967165016 | refs/heads/master | 2021-01-07T14:46:21.917108 | 2020-02-25T20:03:40 | 2020-02-25T20:03:40 | 241,731,111 | 0 | 0 | MIT | 2020-02-19T21:33:44 | 2020-02-19T21:33:43 | null | UTF-8 | Python | false | false | 1,035 | py | # Created by yingwen at 2019-03-16
from malib.agents.agent_factory import *
from malib.samplers.sampler import MASampler
from malib.environments import DifferentialGame
from malib.logger.utils import set_logger
from malib.utils.random import set_seed
from malib.trainers import MATrainer
set_seed(0)
agent_setting = '... | [
"noreply@github.com"
] | noreply@github.com |
f26bc83e65aa4622ba13805edca1cbbd55ea8d29 | f1c93e8553d7b7ce1218c3779d793d0d7d5dca8c | /geomloss/examples/performances/plot_benchmarks_samplesloss_3D.py | 9330a2bf32a5430f3f7ef8cb1fe386da192ea869 | [
"MIT"
] | permissive | jeanfeydy/geomloss | e38a848816b6e2b0b2f11aa7a0c3141039fae8bd | 5804ca57f84bd95226efd1d44929022deb9cd23a | refs/heads/main | 2023-05-10T18:55:44.179300 | 2023-03-23T18:50:05 | 2023-03-23T18:50:05 | 173,165,841 | 510 | 53 | MIT | 2023-03-21T10:41:14 | 2019-02-28T18:28:14 | Python | UTF-8 | Python | false | false | 5,907 | py | """
Benchmark SamplesLoss in 3D
=====================================
Let's compare the performances of our losses and backends
as the number of samples grows from 100 to 1,000,000.
"""
##############################################
# Setup
# ---------------------
import numpy as np
import time
from matplotlib impo... | [
"jean.feydy@gmail.com"
] | jean.feydy@gmail.com |
2bf18684316bad00ea55faedb105e1f676e45fa2 | c4752add6e2d7551423e84ee495369353875d45e | /chiminey/sshconnection/manage.py | 23616bff1a9f276c2768ce76c99fae04e8a6969f | [
"BSD-3-Clause",
"MIT"
] | permissive | chiminey/chiminey | a7363b9ced4ea9615dba7bdaec03665f352767ff | f7bb69b1514a218cce8a4c293dec1205c951dfb7 | refs/heads/master | 2021-01-24T09:48:41.209691 | 2018-10-08T06:50:00 | 2018-10-08T06:50:00 | 17,128,477 | 4 | 7 | null | 2018-08-27T00:45:42 | 2014-02-24T07:24:19 | Python | UTF-8 | Python | false | false | 1,257 | py | # Copyright (C) 2014, RMIT University
# 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 to use, copy, modify, merge, publish, dis... | [
"iimanyusuf@gmail.com"
] | iimanyusuf@gmail.com |
1458e39151a1c8eb383271d24df1a34d293c78dc | d5dbae52bbfded54436a665f614a2793029371ea | /features/audio_features/helpers/pyAudioLex/adjective_freq.py | 5869adb9bbd22aadb13228a7d732ccf70fcdc1de | [
"Apache-2.0"
] | permissive | bmarggraff/allie | 88b97acffebe2c1876b379d478b293bfb9edfefb | 2e2f8780f0a42229b582703455e9ce1d42cf9f96 | refs/heads/master | 2022-11-28T02:27:55.100030 | 2020-08-07T19:55:46 | 2020-08-07T19:55:46 | 285,911,411 | 1 | 0 | null | 2020-08-07T20:03:08 | 2020-08-07T20:03:07 | null | UTF-8 | Python | false | false | 682 | py | '''
@package: pyAudioLex
@author: Drew Morris
@module: adjective_freq
Frequency of a POS tag is computed by dividing the total number of words
with that tag by the total number of words spoken by the subject in the
recording.
'''
from nltk.tokenize import word_tokenize
from nltk.tag import pos_tag, map_tag
def adj... | [
"jim.schwoebel@gmail.com"
] | jim.schwoebel@gmail.com |
2d74dc299c2700be8c0f0cc55ae6c2e53b4e6b39 | 56ffbb38c4a9447ddfc0b3baeae65ea91ebca619 | /pics/tests.py | 51a8eebb5fc85d3019a3db8e296e1c6f017213ad | [
"MIT"
] | permissive | Isaac-waithaka/Personal-Gallery | 7ecc222fbcb8dec5d99dee60eabf553dfc115a5c | 8ddf236fb1517dd83cae675fa40010f4df02fbc9 | refs/heads/master | 2023-02-19T06:29:07.483347 | 2021-01-21T05:47:15 | 2021-01-21T05:47:15 | 328,609,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from django.test import TestCase
from .models import *
# Create your tests here.
class ImageTest(TestCase):
# creating a setup for the test
def setUp(self):
self.new_town = Places.objects.create(location = 'kisumo')
self.new_category = Category.objects.create(category = 'sports')
self.n... | [
"waithakaisaac2016@gmail.com"
] | waithakaisaac2016@gmail.com |
461caf1d51436f245f84a2eb6e7dd79ba383faea | 8d3aa3d1da0b6da734568f08d9689ea1011d8549 | /app/models/users.py | a65dbf05b20fbe82a37427f60d32a2ce17656d66 | [] | no_license | housong12590/luolin | 79c88546b27e881a426841bb38c00bacce39975b | 1264f38a84293da6b3077e5da465af0ad64b9ebc | refs/heads/master | 2020-03-16T22:04:46.055419 | 2018-05-15T18:25:56 | 2018-05-15T18:25:56 | 133,025,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from app import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), unique=True)
| [
"304536797@qq.com"
] | 304536797@qq.com |
bdb840818727a44142386b7bfca07f85bb42c4c5 | 2eae990930f7823ab45b5e9b279841bd20127945 | /passwordgenerator/urls.py | ec7e44bfe5db483d06cc2d939dab5e37f7ef7bf3 | [] | no_license | Shantanumali/Password_generator | e5b3fa21e35cc2592e4416c2d3620f4eb786bc01 | 9b8fac6cc44fabd585013ab93b012f78547b1bfc | refs/heads/master | 2022-12-29T06:47:21.467523 | 2020-09-30T13:32:30 | 2020-09-30T13:32:30 | 299,912,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """passwordgenerator URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
C... | [
"shantumali95@gmail.com"
] | shantumali95@gmail.com |
f5ff2edc3d00e7ae5094e3a26df7cacec24db0cd | 966b16ebb1b012cc1cedbd320a5a3d25302afa8f | /first-light-sources/light-sources-detection.py | 4026ba98b5cff5a73dd2bba6da2789fc7fafc674 | [] | no_license | lexiddie/light-sources-and-shadow | 6f8123a3df7f652e6ca0d07dc735e2e917716127 | d33d7bd5f7840afadba49b003eece31db4732554 | refs/heads/main | 2023-08-05T03:59:31.243298 | 2021-09-29T10:38:21 | 2021-09-29T10:38:21 | 411,610,831 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import cv2
import numpy as np
import colorsys
import random as rd
img1 = './img1.jpg'
img2 = './img2.jpg'
img3 = './img3.jpg'
img4 = './img4.jpg'
img5 = './img5.jpg'
img6 = './img6.jpg'
img7 = './img7.jpg'
img8 = './img8.png'
read_img = cv2.imread(img5)
img_result = cv2.cvtColor(read_img, cv2.COLOR_HSV2BGR)
img_data... | [
"37273428+lexiddie@users.noreply.github.com"
] | 37273428+lexiddie@users.noreply.github.com |
9b87c9c6ae3f0501855c5d7c3d286406dc1a1eb4 | aa6b1d8ff03abb3ca65298cfd645ad91e0f57b19 | /migrations/creationdb.py | 92d9ecebd38784ae44e846ddadbba24b55d18cae | [
"MIT"
] | permissive | MMB019/detection_hepathie_C | 2156374bb5a93f58a9d8aa006450b0ead3b20c70 | b48fa6a930b332dfd2c532e7d33fa9c3000b6257 | refs/heads/main | 2023-07-27T17:42:12.942115 | 2021-09-14T11:59:08 | 2021-09-14T11:59:08 | 405,172,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import sqlite3
#creation of the database
def creation_tableau(database="database.db"):
conn=sqlite3.connect(database)
conn.execute("CREATE TABLE prediction (id integer auto_increment primary key, firstName TEXT,lastName TEXT, sex varchar, age varchar,alb varchar,alp varchar,alt varchar, ast varchar, bil varc... | [
"mdoumbang224@gmail.com"
] | mdoumbang224@gmail.com |
50f8e6b88bff07c4af0e52bfa551b372a8c93bc8 | a35b2842ff707c9adf70e178ba8cb7a128e6f0fa | /brl_gym/scripts/crosswalk_vel/generate_initial_conditions.py | a9c7a1bb7d4cb52e8276db48814c90777f6661e9 | [
"BSD-3-Clause"
] | permissive | gilwoolee/brl_gym | 7717366a09c7ff96a8fbc02688febe6d559e333a | 9c0784e9928f12d2ee0528c79a533202d3afb640 | refs/heads/master | 2022-11-26T15:08:56.730225 | 2020-08-02T05:08:28 | 2020-08-02T05:08:28 | 198,884,614 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | from brl_gym.envs.crosswalk_vel import CrossWalkVelEnv
import numpy as np
env = CrossWalkVelEnv()
env.reset()
goals = env.goals
peds = env.pedestrians
pose = env.pose
ped_speeds = env.pedestrian_speeds
print("Car 37, 38, 35")
print("Peds :\n", np.around(peds,1))
print("Ped speeds:\n", np.around(ped_speeds,2))
pr... | [
"gilwoo301@gmail.com"
] | gilwoo301@gmail.com |
eebe2c77eec69a0b694b9ead01bc15169876b071 | 17e944986da2284fe070b3564426e1debbe7bb89 | /modules/neutronclient/tests/unit/test_cli20_network.py | e0681d250e7faa952281b7b123624f94c33ace83 | [] | no_license | sonal-swarnima/baadal | bc793a84e4c45bedc6e7faa290a211993dfa3905 | f2f47cb697ee2bb8ef71b7e821ba3ecb3a3bdb7c | refs/heads/master | 2021-01-15T21:07:02.034366 | 2016-01-22T17:41:14 | 2016-01-22T17:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,658 | py | # 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 agreed to in ... | [
"msasad.visitor@iitd.ac.in"
] | msasad.visitor@iitd.ac.in |
077e06806c57829b1f5cc54d139833314ac0bffe | 308953409e1a3b828ac49b7301c1e751cbf762cf | /suite_EETc 12/tst_Open_Change_Values_Import_No/test.py | fec88bb5a37e70b505750a61bac908c5b0993dd9 | [] | no_license | asthagaur1/danfoss-automation | 4dcc7d8f000917b67e4d6f46ff862a525ddcbc5e | 213a99d3375889cd0e0c801421a50e9fe6085879 | refs/heads/main | 2023-03-31T23:26:56.956107 | 2021-04-01T08:52:37 | 2021-04-01T08:52:37 | 353,627,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | def main():
excel = r"C:\gitworkspace\KoolProg-TestAutomation\Master_Functions\Test_Automation\SourceCode\suite_EETc 12\shared\testdata\Open_Change_Values_Import_No.xls";
#Mapping with Global scripts for Function library and key action.
source(findFile("scripts", "Functions.py"))
source(findFile("script... | [
"asthagaur@danfoss.com"
] | asthagaur@danfoss.com |
35eb2ce1fad7f733c2a194f4f9d8665ea178a9f2 | 7ed2994d49ee68b1cfc6d9b905ccb38dba9d2495 | /api/lib/python3.7/__future__.py | 261e4dc37103123e7b2bb3c5c995763e292899c4 | [] | no_license | zarrinan/NLP_Support_Groups_Flask_API | 9aed1741d23d7cf12fecebdfe23fd8a941ab69f1 | d1aa78c0fe2690bed4c77c540b79cc948d1a9bff | refs/heads/master | 2020-05-17T05:07:31.286994 | 2019-06-26T19:49:07 | 2019-06-26T19:49:07 | 183,524,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/zarrina/anaconda3/lib/python3.7/__future__.py | [
"zarrina_@hotmail.com"
] | zarrina_@hotmail.com |
d145b16c5c3741f878f24d13a9c8083f39ac11ac | 196dc6e64e556e6375fbea9ca4b170167ab75302 | /FinalExam/mainLinkedList.py | 5c2b644e83be86691842bfcf5514672cdd18418a | [] | no_license | sccaster/pythonProgams | ed1867976d5209efd74d0534cb038b7fa276824c | 99cb40f7804c5a0228c4bfb9bc75c0d9fd15b276 | refs/heads/master | 2020-12-09T12:42:37.676162 | 2020-01-11T22:39:40 | 2020-01-11T22:39:40 | 233,306,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from bst import BST
def main():
nums = ["5", "3", "1", "6", "2", "8", "0", "9", "7", "4"]
newBST = BST(list_of_objects = nums)
newBST.inorder()
main()
| [
"noreply@github.com"
] | noreply@github.com |
8d96b4fde7dc180a58208bbd4c48817b88ff107a | 6cc8773a178d4ab3d0c720296232f1d25451c9fd | /proba.py | 4a215e867cd17725d8a5128869124728a3ab5349 | [] | no_license | miks4/python | f5dad80552b768466d4f4e6af96bca6ecfcf3bfa | 60c7e127072cfee3f4c6af6d767ec66ddf89f167 | refs/heads/master | 2022-06-22T04:02:52.151869 | 2020-05-09T18:19:29 | 2020-05-09T18:19:29 | 259,106,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | class Employee:
name = "Ben"
designation = "Sales executive"
saleMadeThisWeek = 6
numberOfworkingHours = 40
def hasAchivedTarget(self):
if self.saleMadeThisWeek >= 5:
print("target has been achived")
else:
print("target has not been achived")
def employeeD... | [
"62470347+miks4@users.noreply.github.com"
] | 62470347+miks4@users.noreply.github.com |
9db26fb7dad810ee471a57378bf7b950550c9a78 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain3/rl/environments/ode/instances/ccrl.py | f868c93f0e79f79e82bdefa752c7d5da13efb64f | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 6,146 | py | __author__ = 'Frank Sehnke, sehnke@in.tum.de'
from pybrain3.rl.environments.ode import ODEEnvironment, sensors, actuators
import imp
import xode #@UnresolvedImport
import ode #@UnresolvedImport
import sys
from scipy import array, asarray
class CCRLEnvironment(ODEEnvironment):
def __init__(self, xodeFile="ccrlGlas... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
4a1c19886f6f6b27415fe252cd755cf72bc62216 | 1ac5d22179a64a384f7215cd341e37fed3fb7aee | /zmsavings/core.py | 96f9ebeb4491e9b03b984e6b78da2dc4d901fdf3 | [
"Apache-2.0"
] | permissive | vleseg/zmsavings | 0a3dae3da6da6b542b432d1fda18446b2e65c872 | eb41f516fae2a7d97e107de682dbe15fa6a85719 | refs/heads/master | 2021-07-10T00:40:01.202071 | 2017-12-19T15:09:19 | 2017-12-19T15:09:19 | 96,619,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from data.model import Account, Goal, ProgressiveTotal, Transaction
def _select_transactions_for_goal(goal):
account = Account.select(lambda a: a.name == goal.account.name)[0]
return Transaction.select(
lambda t:
(t.income_account == account or t.outcome_account == account) and
... | [
"vlesiil@yandex.ru"
] | vlesiil@yandex.ru |
55af1807d0651e3ce77d75f84c95801118d2aacc | d8c2cf1249c58b5f843031450db2f0f8733f85e8 | /todo/urls.py | 1a013e167082d76a6e64cdea74f08df97dddf656 | [
"MIT"
] | permissive | guluzadef/Instaexample | 80849e8a98f6e75b256e8e1d409793a490ea1a53 | 9c74a3e3ac8b523bbccd0e2e6c769c40bf6b3406 | refs/heads/master | 2020-07-01T20:12:30.928779 | 2019-09-11T16:59:45 | 2019-09-11T16:59:45 | 201,284,824 | 2 | 0 | MIT | 2019-09-11T16:54:56 | 2019-08-08T15:21:17 | Python | UTF-8 | Python | false | false | 972 | py | """todo 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')
Class-based vi... | [
"you@example.com"
] | you@example.com |
1f5f060e91a1d774b0d7b3660bffef7a99aac54f | 863e4c77d31fd25fca98a04ca2db4f0b4adc6108 | /configs/src/main.py | 5e99b2da9e4339e6b8dadd4e0670e537bdfb2826 | [] | no_license | ValentinMouret/playground | 075edb9969583065eddf8c441aa225bc5248ea51 | 25666840369de85c6323382da75d905010dbae0b | refs/heads/master | 2020-07-07T15:18:50.888493 | 2019-08-20T13:55:20 | 2019-08-20T13:55:20 | 203,386,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import dataclasses
import pyhocon
class Config:
@classmethod
def from_config_tree(cls, conf: pyhocon.ConfigTree):
return cls(**conf.as_plain_ordered_dict())
@dataclasses.dataclass
class ImportantConfig(Config):
name: str
destination: dict
def main():
conf = {"name": "foo", "destinatio... | [
"valentin.mou@gmail.com"
] | valentin.mou@gmail.com |
bf799d87050ee17a2efe9205421a451ddbc5bbb3 | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /components/google-cloud/google_cloud_pipeline_components/container/v1/bigquery/ml_reconstruction_loss/launcher.py | b0671efb65d1838f7599a10b484a9e7483666bb0 | [
"Apache-2.0"
] | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 3,115 | py | # Copyright 2022 The Kubeflow 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 applicabl... | [
"nobody@google.com"
] | nobody@google.com |
9bee571ee4fb8a3ccac50e1f34524492497a2d8f | 7d9145ad090071f3c9326a9ad7464d33f1c95ecc | /lookup.py | 5bfdf7007b9598155c4d6b844cfbf1688d1ec370 | [] | no_license | kamidzi/bcpc-build | a250b9bd0a2a25fbe6af3970cfd2c1e45b63aa37 | 81b2ba7856c52c6beea36b69eedb038c948cd0c8 | refs/heads/master | 2020-06-10T03:25:08.890345 | 2019-06-24T17:10:26 | 2019-06-24T19:11:42 | 193,567,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from bcpc_build.db import utils
from bcpc_build.build_unit import BuildUnit
id = 'i'
session = utils.Session()
x = session.query(BuildUnit).get(id)
print(x)
| [
"kmidzi@bloomberg.net"
] | kmidzi@bloomberg.net |
9e78bb7a62c7ff5743be037816b12a9c2316c086 | 82fdb2f3baeb4f08799d93c4be8d8c829f092415 | /tests/test_policies.py | 52b3f8e8e75389b6127427521a6f3c7145b58814 | [
"Apache-2.0"
] | permissive | velamurip/rasa_core | 915f815772e2b596f837f0e1af511e829cc28e3e | f3dbb70d0bb748628ab238eded17a8f5e09279e2 | refs/heads/master | 2021-05-16T04:22:04.310610 | 2017-10-05T09:53:22 | 2017-10-05T09:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,838 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import pytest
from rasa_core.channels import UserMessage
from rasa_core.domain import TemplateDomain
from rasa_core.featurizers import BinaryFeaturize... | [
"tom.bocklisch@scalableminds.com"
] | tom.bocklisch@scalableminds.com |
224d192a356f25f72640dd130596fa1cc7f853c8 | fb1fd30098fd4dd7f11e614fbcd19bda5e0414bd | /randNum.py | 32dc0504c2cbabfba7c0c7b3ba6838a1d01a160a | [] | no_license | kali-lg/python | 6ceb452ae7fd611bb6b6b99a4be4404f3fd6b2de | 0363dba3e224ee2044dbe3216289c0245df9c5c0 | refs/heads/master | 2021-01-10T09:37:58.103674 | 2016-03-07T13:09:57 | 2016-03-07T13:09:57 | 53,310,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!/usr/bin/python
import random
num = random.randint(0, 100)
while True:
try:
guess = int(raw_input("Please Enter number 1~100:\n"))
except ValueError, e:
print "Please Enter correct number, your number is wrong type."
continue
if guess > num:
print "Guess Bigger:", guess
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
579d13c29895c97ff77f3425bac31cb6d6070857 | 1e6e3bb707920fdb01ebca23eaf81097c558d918 | /tests/system/action/test_internal_actions.py | cc7ffd01313c71744500855191c73bb153e2160b | [
"MIT"
] | permissive | OpenSlides/openslides-backend | cbd24589f82a6f29bde02611610511870bb6abbf | d8511f5138db4cc5fe4fa35e2a0200f766bd49c5 | refs/heads/main | 2023-08-23T11:54:25.064070 | 2023-08-22T11:15:45 | 2023-08-22T11:15:45 | 231,757,840 | 6 | 22 | MIT | 2023-09-14T16:23:41 | 2020-01-04T12:17:38 | Python | UTF-8 | Python | false | false | 7,783 | py | from tempfile import NamedTemporaryFile
from typing import Any, Dict, Optional
from openslides_backend.http.views.action_view import (
INTERNAL_AUTHORIZATION_HEADER,
ActionView,
)
from openslides_backend.http.views.base_view import RouteFunction
from openslides_backend.shared.env import DEV_PASSWORD
from opens... | [
"noreply@github.com"
] | noreply@github.com |
7ba263dff9828d8b26aa3059286fa58d42176805 | 7e659ac00ac1557962409272d51e1ae588dab258 | /configs/official/point_sup_r50_fpn.py | e4dd48a5feb7a268f5383e955bf38097f0d673d5 | [] | no_license | easilylazy/point-sup | 4766f6c809ee36aea66daccbd4666e47cdce31d7 | 49d2e69eaac9f49d9d5df9e9612c733c96a374ad | refs/heads/main | 2023-08-25T04:43:21.170024 | 2021-10-29T07:07:44 | 2021-10-29T07:07:44 | 421,438,404 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | # model settings
model = dict(
type="PointSup",
backbone=dict(
type="ResNet",
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type="BN", requires_grad=True),
norm_eval=True,
style="pytorch",
init_cfg=dict(ty... | [
"easilylazy@qq.com"
] | easilylazy@qq.com |
25ec5c3a23fdcbb3fe68b62fb26e6466e9c81f4a | 94c7440e7f1d2fdbe4a1e26b9c75a94e49c14eb4 | /leetcode/371.py | 9db89c099bace2c01ca91a5174d2047ab78a610c | [
"Apache-2.0"
] | permissive | windniw/just-for-fun | 7ddea4f75cf3466a400b46efe36e57f6f7847c48 | 44e1ff60f8cfaf47e4d88988ee67808f0ecfe828 | refs/heads/master | 2022-08-18T09:29:57.944846 | 2022-07-25T16:04:47 | 2022-07-25T16:04:47 | 204,949,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | """
link: https://leetcode.com/problems/sum-of-two-integers
problem: 不用 + / - 号,求 integer 类型的 a + b
solution: 由于python没有左移整形溢出这道题难度直线上升。
a + b
== 不进位 (a + b) + 进位 (a + b) << 1
== a ^ b + (a & b) << 1
持续迭代到 (a & b) << 1 为0,即不进位时, 结果为当时的 a ^ b
"""
class Solution:
def get... | [
"windniw36@gmail.com"
] | windniw36@gmail.com |
f2261d9458aaf8e65918344267e1d394e3eb7d8a | f23e2dedbdf49ef093dba351fc0c368f5446000f | /crud/firstcrud/migrations/0001_initial.py | 3fe4cc5740604e8bb3ebe1b799270242d84af55e | [] | no_license | Hrach99-dev/django_crud | c4754ebfa87813f47c64eb6c9ca79e3ee39b2082 | cbc56d112f3316e5acc25c477235f89114818ea1 | refs/heads/main | 2023-06-03T17:34:21.582803 | 2021-06-29T16:19:30 | 2021-06-29T16:19:30 | 381,418,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # Generated by Django 3.2.4 on 2021-06-29 15:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(... | [
"hrach.ghazaryan.web@gmail.com"
] | hrach.ghazaryan.web@gmail.com |
65891c8750b9d10b031594b8b35080a55aaa6663 | 36409b78394002e5d6e9228ca256fd4654b38f80 | /random walk/src/BD_LERW.py | 225bf177733ba635a79943248f53c2381ba65975 | [] | no_license | xiaogang00/Mining-in-Social-Networks | fa383494fd56124096c60317af2b30373c0d4aac | 87ab6f29ae148170d03470987299c7ea812d1dab | refs/heads/master | 2020-12-02T16:22:59.938930 | 2017-08-30T01:58:33 | 2017-08-30T01:58:33 | 96,543,382 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | #!/usr/bin/python
#
# An implementation of a Bidirectional Loop Erased Random Walk (LERW)
# from a cylinder with reflecting boundaries on the left
# and open boundaries on the right.
# PNG output of a single trajectory.
# Habib Rehmann and Gunnar Pruessner
#
import random
import numpy as np
import matplotlib.pyplot as... | [
"872310734@qq.com"
] | 872310734@qq.com |
bb66110d1d24a5a636d80d3a562ef96f129247ea | 3e01b2478760ec1c936418c1c7752a61327c90fe | /experiment_scripts/train_style_xfer_encoder.py | 39584163e9126cc42428b99871b23897b0d9c463 | [
"Apache-2.0"
] | permissive | cwindolf/ffn | 467d83c1f2328f00372ac0070f4f94c35221e958 | 2ab3ba0fb3574718d83523283ba6b71e047e5a12 | refs/heads/master | 2021-07-06T20:05:34.559288 | 2020-08-26T01:45:41 | 2020-08-26T01:45:41 | 167,216,515 | 2 | 1 | Apache-2.0 | 2019-12-27T20:05:46 | 2019-01-23T16:37:55 | Python | UTF-8 | Python | false | false | 5,846 | py | import os.path
import numpy as np
import tensorflow as tf
from absl import app
from absl import flags
from secgan.training import inputs
from secgan import models
# ------------------------------- flags -------------------------------
# Model parameters
flags.DEFINE_integer('layer', None, 'Depth of the *coders.')
fla... | [
"cwindolf95@gmail.com"
] | cwindolf95@gmail.com |
ab885e0e900522ccf71cc304f9d9773e78853ded | 64c8ae3675739067e75769be672d10591d60c3f0 | /Quotes_crawler.py | 0c857f977dca98279f18c47449b7f0662de593ed | [] | no_license | akshatjain02/Python-scripts | 7cde46129075984afb555facbb49aa47a5eb9382 | d193935c8514575d26b001f2f09e511d8f47fc8a | refs/heads/master | 2021-09-03T22:39:47.703984 | 2018-01-12T15:00:45 | 2018-01-12T15:00:45 | 97,263,035 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import requests
from bs4 import BeautifulSoup
import csv
url = "http://www.values.com/inspirational-quotes"
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html5lib')
quotes = [] #list of dictionaries representing quotes
table = soup.find('div', attrs = {'id':'portfolio'})
for row in table.findAll('div', a... | [
"noreply@github.com"
] | noreply@github.com |
b763e7d5f064ecf08cc3ec96e65e8f15f11530d8 | 0735037ad5b2a1b4405825d2f9b0b6b8a01a27c0 | /test3.py | 55b60377942d20dd53f44f21851d4c0c5a87c67a | [] | no_license | koibiki/ai-factory | c576ea8d4142c7f9f72a98d037c5fe3309bc6967 | fbc926d3513fea814a7a818e38daa0b1fa00ceb3 | refs/heads/master | 2021-09-06T20:58:42.585095 | 2018-02-11T09:23:52 | 2018-02-11T09:23:52 | 116,560,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from feature_engineering.feature_selector import *
from feature_engineering.create_sample import *
from feature_engineering.separate_str_num import *
from feature_engineering.fill_nan import *
from model_selection.regressor_model_factory import RegressorModelFactory
from model_selection.cv import k_fold_regressor
from ... | [
"lcheng.ext@orange.com"
] | lcheng.ext@orange.com |
6f89e64639bf0ddfbd6b89056520b9013d8be41e | 042aca4089ca33da41a3bd67898fc4f7f534cd13 | /ServingRobot/mqtt/mqtt01.py | ad3396872a07a744f701fa7a2c6c20db45b32abd | [] | no_license | jacksimuse/Project_EATS | bdcd04fcc0623ec5b8a6bb7df876ba1894fce805 | 4247fd6dcf4b05a5db5155d0f01e4adaf1bdf513 | refs/heads/main | 2023-07-20T05:33:42.633632 | 2021-08-27T13:58:58 | 2021-08-27T13:58:58 | 364,155,556 | 7 | 3 | null | 2021-08-20T06:21:47 | 2021-05-04T06:02:56 | C# | UTF-8 | Python | false | false | 2,819 | py | import RPi.GPIO as GPIO
import paho.mqtt.client as mqtt
import sys
import threading
import signal
import os
import time
pin = 4 # 라인 근접 센서
mpin1 = 20 # 앞 왼 바퀴1
mpin2 = 21 # 앞 왼 바퀴2
mpin3 = 6 # 앞 오 바퀴1
mpin4 = 12 # 앞 오 바퀴2
ena = 17 # 앞 왼 바퀴 enable 입력
enb = 18 # 앞 오 바퀴 enable 입력... | [
"nhsk0767@gmail.com"
] | nhsk0767@gmail.com |
9a70d8612161960f7cc8dddb13768a792c11ce1d | 47f9b58b51264d8e2e23acdfe6281aec24bc1678 | /wxServer/Handerls/toupiaoHanderl.py | 1c5ccc54c083f45384368bdd4289aa48f23e1800 | [] | no_license | andwang130/DOme | 93ed0188fe7add6ad76f65bd679e76457f3ac743 | 79e0a445ad81956d751439f829088ae1ed7f0bc2 | refs/heads/master | 2020-04-04T19:51:39.426476 | 2019-05-08T09:31:38 | 2019-05-08T09:31:38 | 155,844,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,385 | py | # -*- coding: UTF-8 -*-
import Basehanderl
import redis
import json
import time
import tornado
import pojcetm
import uuid
class toupiaoHanderl(Basehanderl.Basehandelr):
@tornado.gen.coroutine
def get(self):
self.db_linck()
userid=self.get_argument("userid")
uuid_=self.get_argument("uuid"... | [
"627656470@qq.com"
] | 627656470@qq.com |
751375bebcc798846b4078bfe24e0b11e4455851 | 6f3433ee263e9a7e6d6915ca0fb9ae5c5850a303 | /students/K33402/Dubina Sergey/practical_works/prac_3/warriors_project/warriors_app/migrations/0001_initial.py | 4b1c6fa8bb8a61bfb54a0301c0a42c29c07dfa0d | [
"MIT"
] | permissive | dEbAR38/ITMO_ICT_WebDevelopment_2020-2021 | 8a2a1abe6cd7f3bb0c0b1774cad1765d377f52c7 | 208cbc6d2b6d40c3043d35ce773a3433b377f671 | refs/heads/master | 2023-04-03T10:09:38.427787 | 2021-04-09T10:42:27 | 2021-04-09T10:42:27 | 296,327,161 | 0 | 0 | MIT | 2020-09-17T12:59:46 | 2020-09-17T12:59:45 | null | UTF-8 | Python | false | false | 2,648 | py | # Generated by Django 3.1.1 on 2020-11-23 21:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Profession',
... | [
"noreply@github.com"
] | noreply@github.com |
95706a934158c11e5565759ef753f1ffb292c167 | ebbe7de4dab925cce8ce726b3f78ad9af61ef6cb | /pygmt/src/x2sys_cross.py | 26987452bf9872f39b8524e8e174a39422ffe7c8 | [
"BSD-3-Clause"
] | permissive | chinaperrin/pygmt | bcc6702de93d473af1cbb8730e8db5b9164fd790 | 21e3e75b7c84d84d7c76ddac0dedb9718871580f | refs/heads/master | 2023-03-05T12:43:11.019682 | 2022-10-10T01:03:17 | 2022-10-10T01:03:17 | 215,927,273 | 0 | 0 | BSD-3-Clause | 2023-02-28T13:57:39 | 2019-10-18T02:42:29 | Python | UTF-8 | Python | false | false | 9,595 | py | """
x2sys_cross - Calculate crossovers between track data files.
"""
import contextlib
import os
from pathlib import Path
import pandas as pd
from pygmt.clib import Session
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import (
GMTTempFile,
build_arg_string,
data_kind,
dummy_context,
... | [
"noreply@github.com"
] | noreply@github.com |
0eee37fc40fe0c80380a966a17972e803704d7d3 | 2a03d611f83932f1e400fe8828af6546b945447d | /ts_api/urls.py | a6df40b2f3e1721a416304fef95832861b507d4e | [] | no_license | ggabunia/ThoughtShare-Django | b354d1724472b9bb43df9a324d9856f1285cb340 | a9fee6a1bba430ffe49bc2e1c2fd74db10bc2a19 | refs/heads/master | 2022-11-26T05:28:51.544298 | 2018-12-03T16:54:49 | 2018-12-03T16:54:49 | 158,215,699 | 0 | 0 | null | 2022-11-22T03:07:04 | 2018-11-19T12:05:10 | Python | UTF-8 | Python | false | false | 2,147 | py | from django.contrib import admin
from django.urls import path
from django.conf.urls import include
from ts_api import views
from rest_framework import routers
app_name = 'ts_api'
urlpatterns = [
path('', views.api_root),
path('rest-auth/', include('rest_auth.urls'), name='rest_auth'),
path('login/',views.C... | [
"ggabunia91@outlook.com"
] | ggabunia91@outlook.com |
d0a92881174f016830e5b146ca97ba5a68b65627 | 2aa4c7c94866e7a958e4787dd4487aa7c1eb8d61 | /applications/MappingApplication/tests/test_mapper_mpi_tests.py | 17fa528cbfa65adc8d0f6521adde262131b8852b | [
"BSD-3-Clause"
] | permissive | PFEM/Kratos | b48df91e6ef5a00edf125e6f5aa398505c9c2b96 | 796c8572e9fe3875562d77370fc60beeacca0eeb | refs/heads/master | 2021-10-16T04:33:47.591467 | 2019-02-04T14:22:06 | 2019-02-04T14:22:06 | 106,919,267 | 1 | 0 | null | 2017-10-14T10:34:43 | 2017-10-14T10:34:43 | null | UTF-8 | Python | false | false | 2,141 | py | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
import KratosMultiphysics
from KratosMultiphysics.mpi import mpi
import KratosMultiphysics.MetisApplication
import KratosMultiphysics.TrilinosApplication
import KratosMultiphysics.Ma... | [
"philipp.bucher@tum.de"
] | philipp.bucher@tum.de |
e1dd33e069a4688d18b42d008053e2b14b83c6e8 | 805db1dc2e179902bf319f2eec21554986a772db | /SmartBody-additional/data/examples/OgreDemo.py | 3522e594980be7db9a51c68b49b22f262fd95839 | [] | no_license | michaelnixon/avatar | 0193eed78bb47863c46aa6f6e7260deae604819c | 0349a7f3a5cbf55811f11795c10f0e406a543cff | refs/heads/master | 2020-05-28T07:15:53.200531 | 2016-02-11T01:19:56 | 2016-02-11T01:19:56 | 19,548,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | import math
import random
print "|--------------------------------------------|"
print "| Starting Ogre Demo |"
print "|--------------------------------------------|"
scene.setScale(0.1)
# Add asset paths
scene.addAssetPath('mesh', 'mesh')
scene.addAssetPath('motion', 'Sinbad')
scene.addA... | [
"mnixon@gmail.com"
] | mnixon@gmail.com |
18fe1e8f4236f5abbedb33cde35e8ac736d663ac | 850804fd11f40c5ba5461b6a074df5b89415260b | /files/usr/lib/python2.7/site-packages/sockjs/tornado/websocket.py | 3738debf150e86d34954f8ec86044e658a309c44 | [] | no_license | adidoes/get_started_with_respeaker | f5264b3402c9fccd467728643d0143f28e6ab05d | 35e1fe18f5906c9f28029f28c624df02d0695cf3 | refs/heads/master | 2021-05-08T07:29:08.514378 | 2017-10-12T11:40:33 | 2017-10-12T11:40:33 | 106,880,778 | 2 | 0 | null | 2017-10-13T22:59:49 | 2017-10-13T22:59:49 | null | UTF-8 | Python | false | false | 1,574 | py | from tornado import websocket, escape
class SockJSWebSocketHandler(websocket.WebSocketHandler):
def _execute(self, transforms, *args, **kwargs):
# Websocket only supports GET method
if self.request.method != "GET":
self.stream.write(escape.utf8(
"HTTP/1.1 405 Method Not... | [
"Yihui Xiong"
] | Yihui Xiong |
1c588bf8b790df7ffc1493b1dd25bffff36de0e4 | 07addf6da975492b53df3be57559ebbbd83ad1c1 | /src/unittest/python/aws_tests/__init__.py | 44ce9074f97ac6ce31c2d9f4bf08ae34e1f89462 | [
"Apache-2.0"
] | permissive | cfn-sphere/cfn-sphere | 9f5545d36f8571522840952a34a4f12edf71a80a | 6e2f93f36075a738f7d9e1b484bd655b5bf942fb | refs/heads/master | 2023-02-19T12:23:42.862572 | 2023-02-09T11:48:25 | 2023-02-09T11:48:25 | 40,249,032 | 86 | 34 | Apache-2.0 | 2023-02-09T11:48:27 | 2015-08-05T14:13:44 | Python | UTF-8 | Python | false | false | 22 | py | __author__ = 'mhoyer'
| [
"marco.hoyer@immobilienscout24.de"
] | marco.hoyer@immobilienscout24.de |
a0e00cdb2a95e46d3b90bcbea838cc21df733ab7 | 08c251243a166da41cf91f198bc744ee25f96352 | /kaggle/avito/Predict.py | 72ce4c6aac22cc083c604b15a3bd85c182804888 | [] | no_license | tanay0nSpark/evolveML | afe22e09ecf2668a42c68e3947c72c81f48a30eb | d7b7f0e13f4d1ba95148af94461cb180d8a10043 | refs/heads/master | 2021-06-01T14:39:16.116459 | 2016-06-19T18:16:14 | 2016-06-19T18:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | __author__ = 'abc'
from pyspark.mllib.tree import DecisionTree, DecisionTreeModel
def predict_proba(rf_model, data):
'''
This wrapper overcomes the "binary" nature of predictions in the native
RandomForestModel.
''' # Collect the individual decision tree models by calling the underlying
# Java mo... | [
"abhishek.create@gmail.com"
] | abhishek.create@gmail.com |
805e4b0e4a22e909185e96d5788bd12061f9e16a | 4df948c31bde1b49c110820ecf8a38f949a78f62 | /vta/tests/python/integration/test_benchmark_gemm.py | da867c9b827007e5e3c94b18238fb448793bd154 | [
"Apache-2.0"
] | permissive | jroesch/tvm | 40b4b8707177e3354c264ce31092721930ced376 | c2b36154778503a509a70a3b5309b201969eccab | refs/heads/master | 2021-12-19T03:38:13.732405 | 2018-10-22T16:31:59 | 2018-10-22T16:31:59 | 135,759,537 | 4 | 7 | Apache-2.0 | 2021-06-17T07:22:42 | 2018-06-01T20:15:33 | C++ | UTF-8 | Python | false | false | 11,731 | py | import tvm
import numpy as np
from tvm.contrib import util
import vta.testing
def test_gemm():
def run_gemm_packed(env, remote, batch_size, channel, block):
data_shape = (batch_size // env.BATCH,
channel // env.BLOCK_IN,
env.BATCH,
env.BLOC... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
21bb49e6c9f2b5c2de5627e34b82279287fe53c6 | ba0faaf6cf21e7946f3d2059d492d45fd3b0b43a | /tests/test_ul.py | f90239536d70e982da1e427b0de21426f1a1c0ce | [] | no_license | pmiddend/sjmanager | 2a632bd148e6f9d849e70036de3db2bebdcfead6 | a81ec7b2ef80a1f94e10e3889b3e51784dff558b | refs/heads/master | 2020-12-24T17:53:52.227304 | 2013-05-27T10:25:14 | 2013-05-27T10:25:14 | 2,422,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | import sjmanager.config_directory
import sjmanager.downloader.factory
import sjmanager.downloader.meter
import sjmanager.fsutil
import sjmanager.ul
import warnings
import hashlib
import configparser
import unittest
test_link_valid_short = 'http://ul.to/h61x7cor'
test_link_valid = 'http://uploaded.net/file/h61x7cor'
te... | [
"pmidden@gmx.net"
] | pmidden@gmx.net |
3ec2e2dd3b709a107fda00833615406e4642a963 | 1bb42bac177fb4e979faa441363c27cb636a43aa | /dual_encoder/model_utils.py | 691253213276f6be9ac1bd05a51079a61df3c007 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | google-research/federated | a6040e80fa0fbf533e0d665c66a9bc549d208b3d | 329e60fa56b87f691303638ceb9dfa1fc5083953 | refs/heads/master | 2023-08-28T13:10:10.885505 | 2023-08-22T23:06:08 | 2023-08-22T23:06:40 | 295,559,343 | 595 | 187 | Apache-2.0 | 2022-05-12T08:42:53 | 2020-09-14T23:09:07 | Python | UTF-8 | Python | false | false | 5,775 | py | # Copyright 2021, 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 agreed to in writing... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.