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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d30d5c62676e592a5f71a0be2cfb4c773f8613f1 | b0d451376c1fa503db52bcc51f36d41d5d87edb9 | /information.py | 3067af8917863a10e1a1afe7c875348a56c7b090 | [] | no_license | roamerboss/first-personal-work | b404def42c5334c077c8a07758c3233ea2a46fd5 | fa578c9d4a9901c975576f6b00c298bfc2a01e05 | refs/heads/main | 2023-03-08T21:46:37.359540 | 2021-02-26T10:10:13 | 2021-02-26T10:10:13 | 341,454,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | import requests
import re
import json
headers = {
"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15"
}
list1 = []
list2 = []
list3 = []
list4 = []
list_all = []
i = 1614066736711
j = 0
url = "https://video.coral.qq.com/varticle/596312... | [
"1273915146@qq.com"
] | 1273915146@qq.com |
7d6c50e0939edae8e06e84d3f0739b57bfd24119 | 641563f61bb4061a3488d047f5744d332b33ea05 | /TesterRunner/runner/testcases/chaoyue_master_zzmj_2019_09_30_03_01.py | ad031de804568dc6fca60e88dac256d9bd2c8cf5 | [] | no_license | Zhaohb2017/test_platform_back | 4c1de839c2939b44146e3ad399bdd99ddbd276db | 4209bbf26204ea39c21bcf9d0a31ef3347bf07e0 | refs/heads/master | 2021-06-20T19:50:06.026273 | 2020-05-17T05:14:20 | 2020-05-17T05:14:20 | 199,758,231 | 0 | 1 | null | 2021-06-10T21:47:34 | 2019-07-31T01:56:14 | Python | UTF-8 | Python | false | false | 1,867 | py | import sys
import os
cur_path = os.path.abspath(os.path.dirname(__file__))
last_path = os.path.split(cur_path)[0]
last_path_len = last_path.split("/")[-1]
root_path = last_path[:len(last_path) - len(last_path_len)]
sys.path.append(root_path)
import time
import unittest
from chaoyue.master.phz.api import *
class PHZTest... | [
"540383428@qq.com"
] | 540383428@qq.com |
932c60b434fa614cfd705c8dff56b1d9747a712c | d8270002e8b5c2850d8bf16d70728d24eff6a897 | /speech/speechAudio.py | 824ac17e31db076489daacee6a792c170777b648 | [] | no_license | imratnesh/audioanalysis | 05ac1b535dd99e2ad91bed993e3339e33b5da06c | 7783f2c6eea19333ebf577eea6caae3117b7abfc | refs/heads/master | 2020-07-17T09:54:05.133336 | 2019-09-03T06:50:53 | 2019-09-03T06:50:53 | 205,997,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | from ibm_watson import SpeechToTextV1
from os.path import join, dirname
import json
from ibm_watson.websocket import RecognizeCallback, AudioSource
speech_to_text = SpeechToTextV1(
iam_apikey='GFT9-N0g7zSU9FIM1YLNL7ZyzLdIJ1s_EkluUjYK8B1s',
url='https://gateway-lon.watsonplatform.net/speech-to-text/api'
)
#wit... | [
"ratnesh.kushwaha@icorprated.com"
] | ratnesh.kushwaha@icorprated.com |
198e1bc91c2353ff7b712aad20d49e61c56292dd | 33b1d5eedcf7e75a83483d9e9cb95288ab35cf88 | /专题研究/专题三:12.获取城市坐标.py | bffc2f8b45b49d4471bf514f3f9536d973f5fca0 | [
"MIT"
] | permissive | Ringo-li/urban_data_analysis | 66baa5ca57f514db9c72b351f5c207e7b6382d12 | c03c92f838849a4cfd34814ef8ddf956e4a9f375 | refs/heads/master | 2021-03-14T23:17:58.022980 | 2020-06-17T15:11:14 | 2020-06-17T15:11:14 | 246,802,436 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | # -*- coding: utf-8 -*-
import arcpy
import pandas as pd
#中国城市地图位置
fc = r'D:\rui\code_analysis\file\subject\chapter3\市界_region.shp'
#设置空间参照坐标系,在arcgis中设置好中国城市地图坐标系,右击图层layer——属性——坐标系——另存坐标系文件
sr = arcpy.SpatialReference(r'D:\rui\code_analysis\file\subject\chapter3\Xian 1980 3 Degree GK CM 108E.prj')
#创建游标,遍历表格,获取城... | [
"ry.li@qq.com"
] | ry.li@qq.com |
55db676d6f2b08faed2614d8fe254670b6fed986 | 34ceb80ae1bdd52de915b12747aec0eb395dbbfe | /blog/migrations/0009_blog_programmingskills.py | 19dad1ce12b2cd2aa9bccdb8ce53bce5ecedc674 | [] | no_license | dhirajkumar2020/resume | e5b300b7bf02f305d89e7ace9207e24bd9d070ba | aeb80eb8bfda2e864c16c50e410f944baecfc1eb | refs/heads/master | 2020-09-14T09:56:56.450620 | 2019-11-22T10:17:03 | 2019-11-22T10:17:03 | 223,096,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.2.7 on 2019-11-22 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0008_blog_softwareskills'),
]
operations = [
migrations.AddField(
model_name='blog',
name='programmingskills... | [
"dhiraj.kumar@nescode.com"
] | dhiraj.kumar@nescode.com |
0fa2efac723fc725c9158f538efed0a34196dc90 | bd8a0b708629ccf66758f5b66e340ae2b3665b72 | /praktika/maksimaalne_rida.py | f4b27fbc95e7a6d753723de8b320391397749544 | [] | no_license | akaimar/python | d6f0ef16cce980f20fa896a65ce561349052b75b | 6030faf8cc6fcb5719c21c230a2a8f7a55735273 | refs/heads/main | 2023-01-10T07:13:26.148593 | 2020-10-27T21:15:12 | 2020-10-27T21:15:12 | 302,347,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | """
+ Küsib kasutajalt failinime (maksimaalne_rida_fail.txt)
+ Pärib failist read
# Summerib read kokku
# Leiab suurima summaga rea numbri failis (algab 1st)
# Väljastab rea järjekorranumbri ekraanile
# Näide väljundist: Suurim summa on failis 2. real ja see on 99
"""
# KASUTAJA PÄRINGUD
failinimi = input('Sisestage ... | [
"noreply@github.com"
] | noreply@github.com |
8cc15d1e5237607661d9a462a86e9f2eb81593f5 | 58d9ed3ea04d22449f03fafdb7cdc0aad8ff87f1 | /pyCardiac/signal/analysis/phase_singularity.py | 28c30c964cf036f2b12f678c3cbb16faf46560d2 | [
"MIT"
] | permissive | Lokynik/pyCardiac | 2401c25cabff4fb0018e7d4ed365e251b87de8da | f0ad0868af233830eb2c4c6cba6136e4c80265c1 | refs/heads/master | 2020-09-05T06:23:10.072867 | 2019-05-24T18:32:23 | 2019-05-24T18:32:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | import numpy as np
from ...routines import phase_difference
def phase_singularity_detection_lasso(phase_array: np.ndarray, result: list,
i_range: tuple = None, j_range: tuple = None):
"""Detects phase singularity points (PS) in ``phase_array`` with lasso method.
Para... | [
"pikunov@phystech.edu"
] | pikunov@phystech.edu |
1220ea2bbb065d2ac6dacade7ee3ed01983d7ba7 | 1e8feb9c9f0028a264a2f882f4911b4349dc5348 | /bingraphvis/angr/annotator.py | b7786294843ca13de7b86d7305fd85b12d9bfba4 | [
"BSD-2-Clause"
] | permissive | AmesianX/bingraphvis | b90b99454291ff104d3d0a9d245376a6c655ee25 | ebdd0b7d8f5d9cec81a7b1edb9dc78b7b0157117 | refs/heads/master | 2021-01-13T13:04:18.620480 | 2016-11-02T23:59:12 | 2016-11-02T23:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,663 | py |
from ..base import *
import capstone
import pyvex
class AngrColorSimprocedures(NodeAnnotator):
def __init__(self):
super(AngrColorSimprocedures, self).__init__()
def annotate_node(self, node):
if node.obj.is_simprocedure:
if node.obj.simprocedure_name in ['PathTerminator','Re... | [
"axt@load.hu"
] | axt@load.hu |
59d53bbb855c0d3cd5405009b5d4442fc843e8fb | 4eb779ea222c91c3a0c33421a75560bed5e9d2f2 | /Practice/code2.py | fd3bac578802934803de4f02e7f135697ca6a1b7 | [] | no_license | sunamya/Python | b632bd2349f4a0b70635a90b8ef18a8728317518 | 6911906d0c98885bcf84657e6f2240a622e9d150 | refs/heads/main | 2023-04-05T07:27:44.601337 | 2021-04-18T12:36:14 | 2021-04-18T12:36:14 | 359,138,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from __future__ import print_function
n=int(input("Enter Number Of Test Cases : "))
no=int(input("Enter Number OF Houses : "))
for i in range(1,no):
road=input().split(" ") #Fetching data in single line
road=[int(x) for x in road] #Converting into integer
print(road)
| [
"sunamyagupta@gmail.com"
] | sunamyagupta@gmail.com |
beac6bfdd31b5bcf3da0c1b5ef8b6693220e0f26 | 4c43932dbfef8603c4414d88ab98dda1b9e163b8 | /mix_id_increment.py | 9c01c2ac8b59995266508b1b6262300c28c6f4a1 | [] | no_license | edison12347/usefull_code | 7ffe030422edf72fd668b3d3adcecaa57a8a3490 | 4d41e397e21620ec20a1c8da936771f62f46ea39 | refs/heads/master | 2021-10-12T03:18:49.593399 | 2019-02-01T08:17:16 | 2019-02-01T08:17:16 | 103,551,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | stmt = text("SELECT ListID FROM {} ORDER BY ListID DESC LIMIT 1".format(table))
select_last_list_id = connect.execute(stmt)
last_list_id = select_last_list_id.fetchone()[0]
prefix, _ = last_list_id.split('-')
incremented_prefix = copy.copy(prefix)
incrementation_list = '01234567... | [
"noreply@github.com"
] | noreply@github.com |
9829e741774cc716fa4e10fe0dbf778cbe079821 | 041122bdc412b8c311eeb68c9aa3a4bac5249145 | /crawlers/socials/pikabu.ru.py | e379ddf762d7da5e13301e9290f60243cab37d14 | [
"Apache-2.0"
] | permissive | fostroll/ru_corner | 5df269ab88bddf9d02f8c6967a063cb9b0b56515 | defb681aa9311c2dd6ed98d1b934453c29e9a750 | refs/heads/master | 2023-06-23T18:38:34.218504 | 2021-07-27T12:16:51 | 2021-07-27T12:16:51 | 314,045,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,196 | py | #!/usr/bin/python -u
#-*- encoding: utf-8 -*-
from collections import OrderedDict
import json
import os
import random
import re
import time
###
import sys
sys.path.append('../')
###
import utils
import _utils
SEED = 42
ROOT_URL = 'https://pikabu.ru'
INIT_URL = ROOT_URL + '/new?twitmode=1&of=v2&page={}&_={}'
HEADERS... | [
"fostroll@gmail.com"
] | fostroll@gmail.com |
1e173b0d0f6cebec0e25b023d5dc35c3ce20abf4 | 04d0cb0e687c4cd7e433393c8ae35cd9725bb9f1 | /plugins/operators/stage_s3.py | 4c7648190f49a8e45cc022dfd08c97bbda6d34d3 | [] | no_license | mrthlinh/Covid_GoogleTrend | 98ec973e3f60484be858457727c1ca0d11202ea9 | 6f9b09213ff0d580577bc8f37b2e0c31126d8357 | refs/heads/master | 2022-11-15T03:11:07.261896 | 2020-07-13T14:46:51 | 2020-07-13T14:46:51 | 278,245,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | from airflow.models import BaseOperator
from airflow.contrib.hooks.aws_hook import AwsHook
from airflow.hooks.S3_hook import S3Hook
from airflow.utils.decorators import apply_defaults
import requests
import json
class StateToS3Operator(BaseOperator):
state_code = ['AL','AK','AZ','AR','CA','CO','CT','DE','FL','GA'... | [
"linhtruong@linhs-mbp.lan"
] | linhtruong@linhs-mbp.lan |
e810dad75980e35a6c7789a53d2a848683a6677c | e0a83b46e5fbd2e80ccafb7b1d4f792d31d516b8 | /pascal/alerts/serializer.py | ac5866f1ce7e250f818022e15cec1dc9efa30c99 | [] | no_license | helloworld76757/pascal | f74ad1a5b13f01fa1613d2786b9f4c0f763eb034 | 37b5b12cba862336742e609475e874c4b0f3efbf | refs/heads/master | 2020-06-13T05:15:55.037124 | 2016-12-03T00:59:08 | 2016-12-03T00:59:08 | 75,442,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from rest_framework import serializers
from .models import Alert, AlertResponse
class AlertSerializer(serializers.ModelSerializer):
class Meta:
model = Alert
fields = ('timestamp', 'name', 'value')
| [
"helloworld76757@mailinator.com"
] | helloworld76757@mailinator.com |
8ce92bccb334b194201db3ad0db027122a10c3f5 | a01aa15daf3f625420a0ab1bee18674361dee717 | /code/processAcData.py | c900423cb8e1a90fc357bf0a1d0397b9788979a7 | [] | no_license | sirinda-p/sna_utcc | f6ddf92a2ce81ec7a9f69f8da0deafdf2dcc1fc2 | 39276ebd838a9d2d6ee209a4a50fe25e721473a3 | refs/heads/master | 2020-04-03T15:29:38.820434 | 2016-03-25T09:40:09 | 2016-03-25T09:40:09 | 39,806,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import os
from igraph import *
# Remove nodes and corresponding edges that are not in the colledted class section
def removeNodeAndEdge():
# keep nodes from 5702100227 to 5702100312
path = "/home/amm/Desktop/sna-project/sna-git/data/gml/"
flist = ["Ac57-all_bf.gml","Ac57-all_friend.gml","Ac57-all_study.gml" ]
... | [
"sirinda111@gmail.com"
] | sirinda111@gmail.com |
1078c72e567126b5c3bae58f97f4f36b32696eaf | 240c4398e2886256099cb18b7c4cbcfbc08a3ff8 | /efb-v2/res/bak_config/modules/filter.py | 341bfb67fdbada89fc84eecae9159095447fbe20 | [] | no_license | bmwcto/docker | f1d0674dda1c1bce0735b60acff0f0516bbc49fe | 504949a8dfa233f50e599cbebd929dcdb7a3b8b9 | refs/heads/main | 2023-04-01T12:15:42.560212 | 2021-04-12T16:02:51 | 2021-04-12T16:02:51 | 355,555,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,308 | py | import pathlib
import shelve
import atexit
import uuid
from collections.abc import Mapping
from threading import Timer
from typing import Optional, Union, Dict
from typing_extensions import overload, Literal
from ruamel.yaml import YAML
from ehforwarderbot import Middleware, Message, Status, coordinator, utils
from e... | [
"wowjoint@gmail.com"
] | wowjoint@gmail.com |
07051b2b2d87f429737993fa6057c7d0ccc452f6 | ef914133e0ade675ae201f7895c50d819180951b | /attacks_SF.py | 42181fb80340a753a0c25e769c15a8c2ee56057c | [] | no_license | vpahari/biconn | b094d6e7e6270f7601fde7de2f4d4528cd80aa20 | fd2259dfeb73a39bbdd4e616700f912cec8f17cf | refs/heads/master | 2021-06-01T18:54:09.477458 | 2020-09-22T14:49:48 | 2020-09-22T14:49:48 | 136,077,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,686 | py | import networkx as nx
import networkit as nk
import random
import sys
import math
from functools import reduce
import csv
from operator import itemgetter
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import pickle
import igraph as ig
import numpy as np
import os
import itertools
def get_name_WS(initial_n... | [
"vpahari@wesleyan.edu"
] | vpahari@wesleyan.edu |
d6655f4db0445ea8000cfd7c7f697c12e129b47d | b99b57dad607408d4e39423a60654bd9927fbbfe | /2017/15.py | b6021cfa5914f0d3971a60a65b23b82385a8630e | [] | no_license | fbrizu/AdventOfCode | 1ef00bae110e1dc0add4477ba0ecabfcb1cb1dfb | 6978b8bab6ee77260f208008c43565a780375af2 | refs/heads/master | 2020-11-29T16:20:28.866599 | 2019-12-31T04:16:06 | 2019-12-31T04:16:06 | 230,165,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | def p1():
f1 = 16807
f2 = 48271
g1 = 703
g2 = 516
count = 0
for _ in range(40000000):
g1 = g1 * f1 % 2147483647
g2 = g2 * f2 % 2147483647
if g1%65536 == g2%65536:
count += 1
print(count)
def p2():
f1 = 16807
f2 = 48271
g1 = 703
g2 = 516
... | [
"frank.brizuela@mail.mcgill.ca"
] | frank.brizuela@mail.mcgill.ca |
a08ba34f8acffacbc09afb49fda4f3c7c36d7a31 | 0448321097219bd8991809ced2816c743677656a | /graph_classes/graphclass_cycle.py | 6c135edc42518906830b1f7b4990de890ba50f2f | [] | no_license | WonkySpecs/mutant-network-sim | 508bc976997fbd9ed92f286c1064773fb85860bb | 29ca68da5ce0956d18a9c5cd9a3278f3fad6b17c | refs/heads/master | 2021-01-11T02:04:05.589870 | 2017-05-07T23:50:24 | 2017-05-07T23:50:24 | 70,815,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import networkx as nx
import graph_classes.graphclass as gc
class GraphClass_Cycle(gc.GraphClass):
def buildGraph(self, parameters):
convertedParams = self.checkParamsValid(parameters)
#Check if error (Will return an error message)
if type(convertedParams) == str:
return convertedParams
nodes = converted... | [
"w1ll100@hotmail.co.uk"
] | w1ll100@hotmail.co.uk |
aae4fe954783bb2351c32680008744a147445fac | 2aa45e68f6ad580e3e19139b5df88ca53f7f275a | /CreateLabelPermutation.py | 2c414faf42b6bf41b2502065a4f607dd3815455e | [
"MIT"
] | permissive | GISU2KM/GraphLearning | a97d80474137f8bac68e3005132ae0265a51600b | c7cdb71982463297f26635e92b6b27cefdc0b47f | refs/heads/master | 2022-12-23T06:14:17.137655 | 2020-10-09T03:06:51 | 2020-10-09T03:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | import graphlearning as gl
import numpy as np
import sys, getopt
import os.path as path
def print_help():
print('=======================================================')
print('GraphLearning: Python package for graph-based learning.')
print('=======================================================')
... | [
"noreply@github.com"
] | noreply@github.com |
852ecca1e2ce71ff84694ec84775776ecab7d1c6 | 3521f78c180ed2b403c5f9d66dcd1ea7240c0eff | /2015/table.py | 83c075c6a1e3a408ebb0cd8ce8539099b3e525d6 | [
"BSD-3-Clause"
] | permissive | timm/sbse14 | f5b683a4cebbf8655f50b10215ac328a61c54185 | 006df700af17566ee2b66cd53de9587004558772 | refs/heads/master | 2016-09-06T09:36:06.618949 | 2014-09-17T03:24:21 | 2014-09-17T03:24:21 | 23,025,059 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | from __future__ import division
import sys,random,math,re
sys.dont_write_bytecode = True
class o():
"Anonymous container"
def __init__(i,**fields): i.has().update(fields)
def has(i) : return i.__dict__
#def __getattr__(i,k) : return i.__dict__[k]
#def __setattr__(i,k,v) : i.__dict__[k] = v; ... | [
"tim@menzies.us"
] | tim@menzies.us |
450b8912a42d43ebcefc08d7362f8d72543645b0 | d51a07fe227a1cdb3c5bded913a4ac22895afbd1 | /app/controllers/test_auth_controller.py | 9cfe8288db2591430ed613b30509d7909d8a4ad7 | [] | no_license | serlesen/PyDB | 08c1abb9bdba9e1fd3025271810ba98a95d85f69 | 4e6762f180bfe61c5c86610cb53b3b19692b3736 | refs/heads/master | 2023-02-22T14:10:47.559916 | 2021-11-02T08:39:12 | 2021-11-02T08:39:12 | 219,302,097 | 0 | 1 | null | 2023-02-15T22:57:59 | 2019-11-03T13:04:45 | Python | UTF-8 | Python | false | false | 3,015 | py | import json
import unittest
from app.controllers import app
from app.test.collections_simulator import CollectionsSimulator
from app.tools.database_context import DatabaseContext
from app.threads.threads_manager import ThreadsManager
class AuthControllerTest(unittest.TestCase):
@classmethod
def setUpClass(cl... | [
"sergio.lema@ekino.fr"
] | sergio.lema@ekino.fr |
653b22d6a16be1a36b54ae84a8fc932711d61ef1 | c239be070a4cf3dfdfdaad0b5cfd18224ed0a7ae | /main.py | 11de4360c99b210bd6b10bb1ce0bfa414b4c236a | [] | no_license | zubayerkader/Human-Activity-Classifier | e0f943f215076168690da3a493bf53e5666d41f3 | be613be606eba45ee2836eadc9e7118f1f779a7a | refs/heads/main | 2023-04-26T02:52:20.299839 | 2021-05-24T08:03:56 | 2021-05-24T08:03:56 | 370,272,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import filter_data
import ml_input
import analysis
import left_right_foot_classification
if __name__ == '__main__':
filter_data.main()
ml_input.createMlData()
analysis.main()
left_right_foot_classification.main()
| [
"zubayerkader@gmail.com"
] | zubayerkader@gmail.com |
02ee7135b39cd74dfd1c357da4f0953d13ca1358 | 3965f8e3b1efcf1586859a079ca8b799e04f4109 | /sorting_algorithms.py | 6462a9ab6008ddf16d4a911a047c3483d7d2bac3 | [
"MIT"
] | permissive | linvieson/sorting-algorithms | 67c435138b3d47568cf6200efd9a3e1ce25d9096 | 22fcc3b1860b3181a30eb4256aec5374b49678f1 | refs/heads/main | 2023-08-28T10:01:15.415044 | 2021-10-06T13:41:13 | 2021-10-06T13:41:13 | 414,223,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | def selection_sort(arr: list) -> list:
'''
Perform selection sort, return sorted array and number of comparisons.
'''
comparisons = 0
length = len(arr)
if length <= 1:
return arr, comparisons
for index in range(length):
current_min = index
for index_in_unsorted in ... | [
"alina.voronina@ucu.edu.ua"
] | alina.voronina@ucu.edu.ua |
c45f75d35e6c01f5b2a81a8d4f19fa45c755bca5 | 38acc071960622ab7923435fa085f2efaebe2144 | /pyemm/annular_sdd.py | a2f594249fef7befda94c050059d6d753ccd29b0 | [
"Apache-2.0"
] | permissive | drix00/pyelectronmicroscopymodeling | 72db4b7589d5cb9da0412e7bf7b847705412dc42 | 6a6d3bd174a8d6092332b59cae55c6b71dbba6d9 | refs/heads/master | 2022-11-02T15:59:34.744539 | 2020-06-18T00:12:59 | 2020-06-18T00:12:59 | 105,061,500 | 0 | 0 | Apache-2.0 | 2020-06-18T00:00:44 | 2017-09-27T19:40:10 | Python | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python
"""
.. py:currentmodule:: annular_sdd
.. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca>
Modeling of the McGill annular SDD.
"""
# Script information for the file.
__author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)"
__version__ = "0.1"
__date__ = "Apr 14, 2015"... | [
"12611589+drix00@users.noreply.github.com"
] | 12611589+drix00@users.noreply.github.com |
ac8073d5c442216c2a5bad5feb1918bfd8d7af96 | d8f146faafd1d9c0da015c401a49e48d84e10db3 | /app.py | 1e46b529917f631e2da4bf036b839bc8202e4745 | [] | no_license | vincentiuskedang/pdacapstone | 86ab0e53d2e7221789fb88779f38d0c9efdb5e48 | 2b0a8c708f85a6f87804556d6fc752bbfe584872 | refs/heads/main | 2023-08-27T20:46:10.344855 | 2021-10-25T20:21:54 | 2021-10-25T20:21:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | from flask import Flask, render_template
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
from io import BytesIO
import base64
from bs4 import BeautifulSoup
import requests
#don't change this
matplotlib.use('Agg')
app = Flask(__name__) #do not change this
#insert the scrapping here
url_get = req... | [
"noreply@github.com"
] | noreply@github.com |
81a24d352f994fb5d8d4865d93e5c1cbd9dcc4cd | 498b0f8a8f5ff26835efe855adc2fea8ed9c213f | /blockchain_drf/users/urls.py | 84207894598d20db554b7ee121caec04ef480ffb | [] | no_license | cryptobuks/blockchain-drf-app | cb87deca729d555f0f44db9e35ab192b578e20e5 | 97efa62c34e90ac62ce32b4d758f9daf5b31c5d4 | refs/heads/master | 2020-05-28T08:15:41.304110 | 2019-01-26T23:11:01 | 2019-01-26T23:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from django.urls import path
from users.views.users import (
CreateUserView, CreateTokenView,
ManageUserView
)
app_name = 'users'
urlpatterns = [
path('create/', CreateUserView.as_view(), name='create'),
path('token/', CreateTokenView.as_view(), name='token'),
path('me/', ManageUserView.as_view(),... | [
"agcastro.py@yahoo.com"
] | agcastro.py@yahoo.com |
e74ac4d8165a99e360c067617af481624a327184 | 82435e420ff48fac5464ac0880b258de48eee63f | /mechMechanics.py | 53d7b0a3fd1ad3e5582d4eaabb7420c788cb1ce9 | [] | no_license | NiharikaRay/HearthstoneAnalysis | 6910aa5dccacc1e8a3dd5a0a0c269bf70832fe10 | 72165c37cda98efad284eceeb57402b27edf0e10 | refs/heads/master | 2021-01-18T13:00:18.844903 | 2015-02-04T01:32:06 | 2015-02-04T01:32:06 | 29,810,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | import json
import numpy as np
import csv
from pprint import pprint
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
def _decode_list(data):
rv = []
for item in data:
if isinstance(item, unicode):
item = item.encode('utf-8')
elif isinstance(item, list):
... | [
"YOUR-EMAIL@DOMAIN.COM"
] | YOUR-EMAIL@DOMAIN.COM |
e168407eb15bcececca9947e72682be0c3429267 | 47596e586b3e21b31cf360be7cd1c7d3a5dc6163 | /Google/trafficSnapshot.py | 2dd2859f31fd1a85b4610e8d672e415ce5a7e784 | [] | no_license | jasonlingo/RoadSafety | bfef06abe0668a9cb8ead5b183008a53eabdefa2 | b20af54b915daf7635204e3b942b3ae4624887d7 | refs/heads/master | 2021-03-19T13:51:13.736277 | 2015-09-17T03:49:43 | 2015-09-17T03:49:43 | 36,019,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from GPS.GPSPoint import GPSPoint
from File.Directory import createDirectory
import webbrowser
from Google.findTimeZone import findTimeZone
from time import sleep
from PIL import Image
import datetime, pytz
from config import TRAFFIC_I... | [
"jasonlingo@gmail.com"
] | jasonlingo@gmail.com |
08875ef94e180b533919903f03a36659ac43e79f | fee1678e11e413049604eb1c4f087e1dff6b16b5 | /read_and_write_to_file_functions.py | c33664c199340a0817e61c83387643355fc05d76 | [] | no_license | scttohara/python_card_game | 037c5bd58c1dfff34ef027287865500421c8b4e8 | bfb577ad14c3627dd38b8a4f3d66e09877bdb079 | refs/heads/master | 2020-12-10T22:29:50.395039 | 2020-09-27T04:56:05 | 2020-09-27T04:56:05 | 233,729,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,772 | py | import csv
import animals_list
def get_animal_names():
"""
@return: animals_list
@rtype: list of lists
"""
# try catch for opening and reader from animal name file
animals_list_of_lists = []
try:
with open('animal_names.txt', newline='\n') as csv_file:
csv_reader = cs... | [
"noreply@github.com"
] | noreply@github.com |
a3a3312b93fd1130507887a28abc6e2859e972c6 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/Guanghan_ROLO/ROLO-master/update/utils/utils_draw_coord.py | cb75d7c64e6e32251001750fef1e6f67b093e62e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,002 | py | from utils_convert_coord import coord_regular_to_decimal, coord_decimal_to_regular
import cv2
def debug_decimal_coord(img, coord_decimal, prob = None, class_id = None):
img_cp = img.copy()
img_ht, img_wid, nchannels = img.shape
coord_regular = coord_decimal_to_regular(coord_decimal, img_wid, img_ht)
... | [
"659338505@qq.com"
] | 659338505@qq.com |
793efb87761ef8c69620a2da9deafd73d517872d | d2a030f7a050a641fddd657e895651ee0310ae41 | /givers/forms.py | 9b644910b52b4a7d64e77046e0ac842fe866489a | [] | no_license | Shawen17/Giveawaynow | f052a1055a96f2d0a392aaf748adcafbec2a5135 | 92f3bc0b359a712776661348e239b492894b81a1 | refs/heads/master | 2023-09-05T00:28:59.237486 | 2021-10-24T21:12:37 | 2021-10-24T21:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | from django.db import models
from django.forms.models import ALL_FIELDS
from .models import Give,Profile,ContactUs,states,Vendor
from django.forms import ModelForm, fields
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import vali... | [
"shawen022@yahoo.com"
] | shawen022@yahoo.com |
85ae65707ad634936086129bb17d2ebc16ab0115 | eef39fd96ef4ed289c1567f56fde936d5bc42ea4 | /BaekJoon/Bronze2/2744.py | 15ea7e4ea8c55e3f6546f94a24d170bd01b27fa9 | [] | no_license | dudwns9331/PythonStudy | 3e17da9417507da6a17744c72835c7c2febd4d2e | b99b9ef2453af405daadc6fbf585bb880d7652e1 | refs/heads/master | 2023-06-15T12:19:56.019844 | 2021-07-15T08:46:10 | 2021-07-15T08:46:10 | 324,196,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # 대소문자 바꾸기
"""
2021-01-20 오후 4:09
안영준
문제
영어 소문자와 대문자로 이루어진 단어를 입력받은 뒤, 대문자는 소문자로, 소문자는 대문자로 바꾸어 출력하는 프로그램을 작성하시오.
입력
첫째 줄에 영어 소문자와 대문자로만 이루어진 단어가 주어진다. 단어의 길이는 최대 100이다.
출력
첫째 줄에 입력으로 주어진 단어에서 대문자는 소문자로, 소문자는 대문자로 바꾼 단어를 출력한다.
"""
String = input()
result = list()
for i in range(len(String)):
if String[i].is... | [
"dudwns1045@naver.com"
] | dudwns1045@naver.com |
769fe78fbed72ed38ddaaf8886043f57213b6e36 | a687ba436b2b4926cde9fa327e3c932c3442ae1f | /models/official/transformer/transformer_main.py | b9543ee9c49f6fe691eb9364cf9d8901059f6fad | [
"Apache-2.0"
] | permissive | youlingwangzi/TensorFlow | 1bf4e5a9ac5c9eeaa4510c3dad71ac18dc473ecf | b7dd462d553d868dfe446b3d6d467935333647d3 | refs/heads/master | 2022-12-22T09:43:44.069358 | 2018-07-18T16:41:41 | 2018-07-18T16:41:41 | 136,822,259 | 5 | 1 | Apache-2.0 | 2022-12-17T14:25:20 | 2018-06-10T15:46:30 | Python | UTF-8 | Python | false | false | 23,341 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"yuanxiaokun@bbktel.com"
] | yuanxiaokun@bbktel.com |
6f08e80ed6c86615f0e0953c321c153964153361 | f450ed5c70c0e6a9df0b78ed92b7823ec61256e7 | /src/init.py | 840958dce68aaf75f6f86a57ae3a60aa99c50c06 | [
"MIT"
] | permissive | thakreyn/drive-sink | 5508d371fc68ae9faa500cdc3cd481ccdee3ed90 | 0b2674f23e4ece7273c32112478ec0a24befd287 | refs/heads/main | 2023-07-18T09:24:13.777790 | 2021-09-08T20:15:10 | 2021-09-08T20:15:10 | 400,298,504 | 19 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | """
init.py:
Responsible for setting up the directory for synchronisation and setting up
the user profile.
- Checks the directory if already initialised.
- Setups up directory structure
- Asks user data
- Sets up user Files and preferences
- Confirms creation and prints help mess... | [
"yash.nthakre@gmail.com"
] | yash.nthakre@gmail.com |
0ea743b25376fd94f0a2b9297d804aee3562820d | b44adadcc087f86d523042084b5d10f612a11365 | /src/combat.py | 4cf27440b47b62817cb31df96fa5dc3259ad0865 | [] | no_license | e-stan/covid_19_analysis | f1cd3e50d14cf0880d7266e768586cac428e31de | 55ca37c2bff68b170d97f8aa2dd588f41af44987 | refs/heads/master | 2023-06-09T18:49:47.830901 | 2021-06-29T17:28:05 | 2021-06-29T17:28:05 | 297,370,604 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,919 | py | import pandas as pd
import patsy
import sys
import numpy.linalg as la
import numpy as np
def adjust_nums(numerical_covariates, drop_idxs):
# if we dropped some values, have to adjust those with a larger index.
if numerical_covariates is None: return drop_idxs
return [nc - sum(nc < di for di in drop_idxs) ... | [
"estancl1234@gmail.com"
] | estancl1234@gmail.com |
e085ceeb417ebc929fd54fd1c1667da85a497a9a | a25c8c2789750a0b95c2af9b27dde72a8c49b395 | /test/functional/xaya_trading.py | 78a629c3e5ee1521232038231d9d54e9c0aa53fb | [
"MIT"
] | permissive | gripen89/xaya | 65d38dd1cad6a7c21addea51cb4b697fa424fb46 | db0cb3601d9eff01e35ebd4a764aa7ff859e61be | refs/heads/master | 2022-11-21T22:47:45.072342 | 2019-10-21T23:26:24 | 2019-10-21T23:26:24 | 216,678,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,237 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Xaya developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Tests trading with atomic name updates."""
from test_framework.test_framework import BitcoinTestFramework
from test... | [
"d@domob.eu"
] | d@domob.eu |
f0d7d985d89cc20f937eb52a76241d951d86e384 | b8a18888062bf7253a1c32761e210bbc4875b62d | /U009_Organized_Window.py | 8111ec4c4aea1891a18a70b924ccee3a209af203 | [] | no_license | yudhastyawan/Tutorial-Python-PyQt5-Basic | 1c993847e2f7ee0e45ce3e33f561370fe778a2af | b1e412e493cc41f04cbcf3f18965f50c3d7f152a | refs/heads/master | 2020-03-18T13:42:50.692765 | 2018-11-03T13:26:37 | 2018-11-03T13:26:37 | 134,802,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
import time
class Main(QMainWindow):
def __init__(self, parent = None):
super(Main, self).__init__(parent)
# self.setWindowFlag(Qt.WindowCloseButtonHint, False)
# self.setWindowFlag(Qt.WindowMinMax... | [
"39240883+yudhastyawan@users.noreply.github.com"
] | 39240883+yudhastyawan@users.noreply.github.com |
5798de8ec0cb78d787b255aa68313cfba3467723 | 10bad3cbbfb5c9105f045527711ca84c6bce0360 | /portal/Jobs/init.py | 4c01327fe3beacad01bb81909a1e5c84722a2549 | [] | no_license | alekhyamanomay/Timesheet_Portal | 9ede4bea74c45ea7263a9e0dbd7a46518a939f62 | 05140ca86c15a08ebb2439ec43cf31f23c72be7d | refs/heads/master | 2023-02-06T19:26:10.820401 | 2020-12-16T06:17:04 | 2020-12-16T06:17:04 | 312,593,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import os
import sys
import logging
from logging import Formatter
from logging.handlers import RotatingFileHandler
LOG = logging
def init_logger(app):
global LOG
log_file = os.path.join(app.config['LOG_DIR'], 'remainder.log')
log_level = logging.DEBUG
log_format = Formatter(f'%(asctime)s-%(levelname)s... | [
"57211933+unofficialfarooqsheikh@users.noreply.github.com"
] | 57211933+unofficialfarooqsheikh@users.noreply.github.com |
be507621c7e451be5c73f45c1b26ac6457984c09 | 041293fc11f0af8b8d7e3640f5f3a2d221ebf1e7 | /milestone3/sink.py | eaffbd025c6220f67a985e67d13480ec27006a78 | [] | no_license | cearto/pidgeot | a480000de1eaf8dae4a3b830e2348b1066e21c2a | 16343af7f5c27ab2da728c156691f44f5741e8f8 | refs/heads/master | 2020-05-17T23:39:01.227890 | 2013-06-04T12:20:02 | 2013-06-04T12:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,037 | py | # audiocom library: Source and sink functions
from common_srcsink import *
import Image
from graphs import *
import binascii
import random
import os
import heapq # for huffman tree
class Sink:
def __init__(self):
# no initialization required for sink
print 'Sink:'
def process... | [
"itsmaxine@gmail.com"
] | itsmaxine@gmail.com |
8661ca4dd6a72591400f8f8aab510c0a5d703243 | 40dc3f774f264f3c2d41bbd0c9cf9e07459ee000 | /Code/Python/Factorial.py | 989f30fd257fce02853f3f02e67929ac074ac820 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | krishna-NIT/Algo-Tree | 8a5f66b5baef0b7b38a22c41fe090cc9754d8a67 | 1cdb2c3682c6ab85ae8af0b57f42697c15a10554 | refs/heads/main | 2023-05-08T23:39:00.964136 | 2021-05-31T04:07:24 | 2021-05-31T04:07:24 | 371,605,115 | 3 | 0 | MIT | 2021-05-28T06:38:42 | 2021-05-28T06:38:42 | null | UTF-8 | Python | false | false | 604 | py | '''
Factorial function instruct to multiply all whole number from input number down to 1.
The formula for n factorial can be defined as n! = n×(n−1)!
Factorial zero is defined as equal to 1
'''
#This is a recursive function to find the factorial of an integer
def factorial(num):
if num == 0:
return 1
... | [
"noreply@github.com"
] | noreply@github.com |
5c5db34ac82587b820a9710f2e8318425496725b | e4b24fe980b1639a2dc73fe76fe38c1c920b8fc7 | /zoopy/models/plan.py | 7b8090836a21717951d8ff8d6a9580def6a6f0b5 | [] | no_license | andersonqueiroz/zoopy | 8f16e6d03974708af0c2726df9bae76ce5f35f00 | d43b14aa6814aec132622915f6c54cd0630ad090 | refs/heads/master | 2021-10-13T12:56:10.689381 | 2021-09-30T20:52:24 | 2021-09-30T20:52:24 | 239,834,336 | 1 | 1 | null | 2021-09-30T20:52:47 | 2020-02-11T18:27:57 | Python | UTF-8 | Python | false | false | 943 | py | from zoopy.utils import get, put, post, delete, get_marketplace_id
from zoopy.models import marketplace
BASE_MODEL_URL = '/plans'
def get_full_url():
return BASE_MODEL_URL
def list(params={}, is_beta=False):
url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}'
return get(url, params=params, is_beta=is... | [
"andersonkeiroz@gmail.com"
] | andersonkeiroz@gmail.com |
792e20b7f15bf1b906999ff8891ac9c607365a3d | f22a8078d87b873235c458ed0593c6eb3e6807a2 | /apps/flujo/admin.py | 907fdb39ceca793901f847228b9fd5d8b1e230a9 | [] | no_license | nabilchamas/is2 | d5d9bb393facddcb0a68f8e9f96d08b76dc9cb35 | bd4e55661f7897d2294a27ce240c044192385102 | refs/heads/master | 2020-04-18T21:13:08.062527 | 2015-06-19T21:40:04 | 2015-06-19T21:40:04 | 33,631,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.contrib import admin
from apps.flujo.models import Flujo, Actividad
admin.site.register(Flujo)
admin.site.register(Actividad)
| [
"nabilchamasi@gmail.com"
] | nabilchamasi@gmail.com |
9d2ecf89e34e3fcd68ce945948faae0d1b839664 | 1bc67a91d85a7106106ca31307ef9ee93f1d1a20 | /src/py/flwr/server/strategy/dpfedavg_fixed.py | 43dc2249736e6cde6e8488d6afaf39ac3b2c9ab4 | [
"Apache-2.0"
] | permissive | adap/flower | 4915d143c674eb675504d585e1e90ed06833812f | 55be690535e5f3feb33c888c3e4a586b7bdbf489 | refs/heads/main | 2023-08-17T01:18:12.168723 | 2023-08-16T17:17:48 | 2023-08-16T17:17:48 | 241,095,326 | 2,999 | 658 | Apache-2.0 | 2023-09-14T15:43:22 | 2020-02-17T11:51:29 | Python | UTF-8 | Python | false | false | 6,995 | py | # Copyright 2020 Adap GmbH. 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 ag... | [
"noreply@github.com"
] | noreply@github.com |
51ef475926c1fe3bb2fb1c490a227bcaa3740d0b | 21bd66da295baa48603ca9f169d870792e9db110 | /cgp/utils/failwith.py | 3647d91543301dbab771107a4c9d604d07544190 | [] | no_license | kristto/cgptoolbox | e6c01ccea1da06e35e26ffbca227258023377e48 | 8bbaf462e9c1320f237dd3c1ae6d899e1d01ade7 | refs/heads/master | 2021-01-16T20:38:45.097722 | 2012-03-01T09:18:10 | 2012-03-01T09:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,964 | py | """Modify a function to return a default value in case of error."""
from functools import wraps
import logging
from contextlib import contextmanager
import numpy as np
class NullHandler(logging.Handler):
def emit(self, record):
pass
logger = logging.getLogger("failwith")
logger.addHandler(N... | [
"jonovik@gmail.com"
] | jonovik@gmail.com |
ece95817e254bad4af662002d4394d82856327f1 | 4fc3604c2e2f5e54b7cf19578c7013f0525e2ee7 | /generators/utils/3bitPathDist.py | 056413a2dc87b7de99080b49067fb9dd9813c160 | [] | no_license | nbermudezs/bracketology | d4fd4aad1052505dd3287310cdd5b9df97b75705 | 86ef2d495842350120e015260fe89cf0f12a392c | refs/heads/master | 2020-05-05T05:57:27.290588 | 2019-07-08T14:39:40 | 2019-07-08T14:39:40 | 179,770,315 | 0 | 0 | null | 2019-06-30T02:38:39 | 2019-04-06T00:06:35 | Python | UTF-8 | Python | false | false | 3,639 | py | from __future__ import print_function
__author__ = "Nestor Bermudez"
__license__ = "MIT"
__version__ = "1.0.0"
__email__ = "nab6@illinois.edu"
__status__ = "Development"
import json
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import rpy2
import rpy2.robjects as robjects
import seaborn as sn... | [
"nestor.bermudez@agilityfeat.com"
] | nestor.bermudez@agilityfeat.com |
5ae4b198d2a7269a72cc1d693548079756c4fb9b | e16d7d8f60145c68640b25aa7c259618be60d855 | /django_test/webtest/testapp/urls.py | 32d935549071646c1d172c99ccd6ba69db2bd72b | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index,name='index'),
]
| [
"544136329@qq.com"
] | 544136329@qq.com |
c7cc769036318b5263632ef6db922b0a4ffa72cf | 0533d0ceb5966f7327f40d54bbd17e08e13d36bf | /python/HashMap/Maximum Number of Balloons/Maximum Number of Balloons.py | 485eee52af17f72c857b5f35d3beacd6b25b3591 | [] | no_license | danwaterfield/LeetCode-Solution | 0c6178952ca8ca879763a87db958ef98eb9c2c75 | d89ebad5305e4d1a185b0c6f101a88691602b523 | refs/heads/master | 2023-03-19T01:51:49.417877 | 2020-01-11T14:17:42 | 2020-01-11T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from collections import Counter
class Solution(object):
def maxNumberOfBalloons(self, text):
"""
:type text: str
:rtype: int
"""
c = Counter(text)
return min(c["b"], c["a"], c["l"] // 2, c["o"] // 2, c["n"])
| [
"zjuzjj@gmail.com"
] | zjuzjj@gmail.com |
0710b3ada6e27cc9d82d7532b608ce1ab6c6bad7 | f71f9c4736f5279ade23382fc39a6b4f6243bc42 | /finalsalad/wsgi.py | 51de96e59fb786703a467b376f3cc535698f0cfb | [] | no_license | Pancakem/saladmaster | b62143fb41a00e78a0fb6f68c64c8af72956cb89 | 234b388addc45cb74b1021608f888e1efd5d9292 | refs/heads/master | 2020-03-25T08:29:36.398546 | 2018-10-08T10:51:07 | 2018-10-08T10:51:07 | 142,886,081 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "finalsalad.settings")
application = get_wsgi_application()
| [
"pancakesdeath@protonmail.com"
] | pancakesdeath@protonmail.com |
3bf31dc5541a71a9313fdcce75a2fbb612fe9083 | 41941d61fdb1c2f6b50613de20376ca882678946 | /restaurant/migrations/0038_auto_20200903_1340.py | 0977001525108cdcddd8cf1b3672d34d74571759 | [] | no_license | ankitgadewal/saleor_server | 1000ac6dbfa9fb8fa6b8172a03ceb82a86002f0a | 0c743545ea3567eba7bfc402f53abe5413a564b6 | refs/heads/master | 2022-12-11T01:31:28.518059 | 2020-09-09T09:16:19 | 2020-09-09T09:16:19 | 293,053,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # Generated by Django 3.1 on 2020-09-03 08:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('restaurant', '0037_auto_20200903_1304'),
]
operations = [
migrations.RenameField(
model_name='order',
old_name='payment_id',
... | [
"ankitgadewal@hotmail.com"
] | ankitgadewal@hotmail.com |
3b5771126a3de74c7f3d369f13baba24a89456bb | 1b300019417ea1e25c59dd6f00fbffb60ec5a123 | /python/example/run_demo.py | 1bcd9cc24764d75872a145135941ce238fefc7d5 | [
"MIT"
] | permissive | Wendong-Huo/diff_stokes_flow | 9176210b162e9a8c7b9910274fe4c699814fa7d7 | 55eb7c0f3a9d58a50c1a09c2231177b81e0da84e | refs/heads/master | 2023-03-16T13:16:17.028974 | 2020-12-11T03:55:44 | 2020-12-11T03:55:44 | 576,797,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,729 | py | import sys
sys.path.append('../')
from pathlib import Path
import numpy as np
from importlib import import_module
import scipy.optimize
import time
import matplotlib.pyplot as plt
from tqdm import tqdm
import pickle
import os
from py_diff_stokes_flow.common.common import print_info, print_ok, print_error, print_warni... | [
"taodu@csail.mit.edu"
] | taodu@csail.mit.edu |
4c005fbd4e54f24c9b1a2f8d6364a336338e0c60 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/19_Concurrency_and_Parallel_Programming/02_multiprocessing/example2.py | b775c924c64d2785f7f994c9c8c606e50a2ae97e | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 1,073 | py | import collections
import multiprocessing as mp
Msg = collections.namedtuple("Msg", ["event", "args"])
class BaseProcess(mp.Process):
"""A process backed by an internal queue for simple one-way message passing."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.qu... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
bacebe743480b18f6233b694f509ca0713abd2d4 | 0e61801612672a7e302d0996eea4587d68127b54 | /src/grid_inference.py | d4b8ec4587e0cd8207b4f2880644663186bd6bfa | [] | no_license | DongjoonLim/EvoLSTM | a2c501c2842958cf62b0017b4d2415a5558e0975 | c192488eb30131f77c3111c638b6cf683a0185ca | refs/heads/master | 2023-06-29T23:09:59.928447 | 2023-06-13T20:34:49 | 2023-06-13T20:34:49 | 237,307,918 | 4 | 0 | null | 2022-12-08T11:38:59 | 2020-01-30T21:20:05 | Jupyter Notebook | UTF-8 | Python | false | false | 10,519 | py |
# coding: utf-8
# In[1]:
# !pip3 install -U scikit-learn
# !pip3 install keras
# !pip3 install cudnnenv
# !pip3 install tensorflow-gpu
# !pip3 install matplotlib
# !conda uninstall -c anaconda cudatoolkit
#!nvidia-smi
from keras.utils.vis_utils import plot_model
import numpy as np
from keras.models import Sequent... | [
"noreply@github.com"
] | noreply@github.com |
4d1729f71d00955ffc428891f9ef09e4d06f2ef4 | 8221fc863fa51c2723a78888e9af010d056ad7a2 | /WebServer.py | 446cd65e94d061aa6ad9f258fe26bebcb381ef05 | [] | no_license | hxyalee/CS3331 | 87021ef2c5862b4b86b4039bb52d2fe144db8e67 | bcf5082870a082fc4907e684687aa2ffcca02067 | refs/heads/master | 2023-01-23T09:02:20.769727 | 2020-12-05T17:16:21 | 2020-12-05T17:16:21 | 306,234,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | #!/usr/bin/env python3
import sys
from socket import *
# No valid arguments
try:
if(len(sys.argv) != 2):
raise Exception()
tmp = int(sys.argv[1])
if(type(tmp) != int):
raise Exception()
except Exception:
print("Usage: ./Webserver.py {port}")
exit()
# Extract host and port
server_host = 'localhost'
server_po... | [
"z5226463@ad.unsw.edu.au"
] | z5226463@ad.unsw.edu.au |
f10cdd86dd40f18b8d7c02cf3eabfd28b6204cf2 | 9f61f361a545825dd6ff650c2d81bc4d035649bd | /tests/test_document.py | e95f63d807e367b91125f2d53fc4b1218a64b17d | [
"MIT"
] | permissive | cassj/dexy | 53c9e7ce3f601d9af678816397dcaa3a111ba670 | fddfeb4db68c362a4126f496dbd019f4639d07ba | refs/heads/master | 2020-12-25T11:52:35.144908 | 2011-06-05T20:52:52 | 2011-06-05T20:52:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from dexy.controller import Controller
from dexy.document import Document
from dexy.artifacts.file_system_json_artifact import FileSystemJsonArtifact
import os
def setup_controller():
controller = Controller()
controller.artifacts_dir = 'artifacts'
if not os.path.isdir(controller.artifacts_dir):
os... | [
"ana@ananelson.com"
] | ana@ananelson.com |
dbbab268c0f12ac2bcfab7eab23967dd84e060e4 | 0252a277036b9ac7f95e5db3cad6c1a94b89c4ef | /eaif4_ws/build/turtlebot_apps/turtlebot_rapps/catkin_generated/pkg.installspace.context.pc.py | 5910a9329ceee27595e6b34e8f4452ce3011c710 | [] | no_license | maxwelldc/lidar_slam | 1e5af586cd2a908474fa29224b0d9f542923c131 | 560c8507ea1a47844f9ce6059f48937b0627967b | refs/heads/master | 2020-07-01T03:15:42.877900 | 2019-08-07T10:25:27 | 2019-08-07T10:25:27 | 201,025,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_rapps"
PROJECT_SPACE_DIR = ... | [
"374931377@qq.com"
] | 374931377@qq.com |
c42484aa0e251a858cba80f1b7cbda8c5b61ad40 | b6fa182321756b891b84958e2b2c01e63b3f88b2 | /stepik/product _of_numbers.py | 61d44cf81b636fd8b2f1484dd3cedb783f9c8444 | [] | no_license | carden-code/python | 872da0dff5466070153cf945c428f1bc8309ea2b | 64e4df0d9893255ad362a904bb5d9677a383591c | refs/heads/master | 2023-07-05T05:14:16.479392 | 2021-08-22T21:27:36 | 2021-08-22T21:27:36 | 305,476,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | # Напишите программу для определения, является ли число произведением двух чисел из данного набора,
# выводящую результат в виде ответа «ДА» или «НЕТ».
#
# Формат входных данных
# В первой строке подаётся число n, (0 < n < 1000) – количество чисел в наборе.
# В последующих n строках вводятся целые числа, составляющие н... | [
"carden.ruby@gmail.com"
] | carden.ruby@gmail.com |
c3003bd895edb9bdabce1c019fd28d0ab153b7af | 5e255845c19689f598d9221c7542df60e85f5923 | /setup.py | 01108ddb79b16904ea2ca5f26ffbb9cf402398ee | [
"MIT"
] | permissive | hulsmeier/best_voxelnet_ever | 48023522e109fa263622536b343ee6b310057856 | aeefd32711a5c986c6099d53c5a2efdf9e01ea48 | refs/heads/master | 2021-06-13T03:27:49.944036 | 2020-06-03T18:35:47 | 2020-06-03T18:35:47 | 254,420,901 | 0 | 0 | MIT | 2020-04-09T16:16:11 | 2020-04-09T16:16:09 | null | UTF-8 | Python | false | false | 427 | py | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
# File Name : setup.py
# Purpose :
# Creation Date : 11-12-2017
# Last Modified : Sat 23 Dec 2017 03:18:37 PM CST
# Created By : Jeasine Ma [jeasinema[at]gmail[dot]com]
from distutils.core import setup
from Cython.Build import cythonize
import numpy
setup(
name='box ... | [
"fschaeffler@gmx.de"
] | fschaeffler@gmx.de |
0d87632a4b2c03e675bb8726a5f7622be7f35e49 | 06e897ed3b6effc280eca3409907acc174cce0f5 | /plugins/pelican_unity_webgl/config.py | d7250678123196715136c46cfa982901234d38d6 | [
"LicenseRef-scancode-other-permissive",
"MIT",
"AGPL-3.0-only"
] | permissive | JackMcKew/jackmckew.dev | ae5a32da4f1b818333ae15c6380bca1329d38f1e | b5d68070b6f15677a183424c84e30440e128e1ea | refs/heads/main | 2023-09-02T14:42:19.010294 | 2023-08-15T22:08:19 | 2023-08-15T22:08:19 | 213,264,451 | 15 | 8 | MIT | 2023-02-14T21:50:28 | 2019-10-07T00:18:15 | JavaScript | UTF-8 | Python | false | false | 201 | py | # unity webgl options
DEFAULT_WIDTH = 960
DEFAULT_HEIGHT = 600
DEFAULT_ALIGN = "center"
# paths
GAMES_ROOT_DIR = "/games" # directory with games
TEMPLATE_PATH = "/games/utemplate" # template path
| [
"jackmckew2@gmail.com"
] | jackmckew2@gmail.com |
ad614ea6517177899ac56fa3ee0f5c97ebe6eaed | 20e4eb529af631faed63ce213938a3d08c4c4533 | /maxsubarray.py | 87bdfc8a9df0415b413842f59ca45967c401c2a9 | [] | no_license | mmarat01/leet | 0c4ac88bcec5fc9c35769f151a10a0d588e30ed3 | fb7a41524b51f5fd08460acdde9a5fc44713583e | refs/heads/master | 2023-04-09T05:08:34.948408 | 2021-04-03T16:14:30 | 2021-04-03T16:14:30 | 319,825,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | from typing import List
# Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
'''
traverse list starting from second element because
first eleme... | [
"66384102+mmarat01@users.noreply.github.com"
] | 66384102+mmarat01@users.noreply.github.com |
cca5b0ff8e93a51f7a513b999bef95ba4627b04e | 9cce59649373fa58104641c71cd31c350dd93836 | /server.py | da1a36dfba16ed41a0df4fb24b1a2fec0b46efe4 | [] | no_license | ravi-oli/hackernews | 21a1f8230367a9fbc556d7c3813186c12da750c4 | fd8ac029ca8536fb94be7853430953e1eb72b4a4 | refs/heads/master | 2022-11-30T22:36:30.030884 | 2020-08-06T14:04:12 | 2020-08-06T14:04:12 | 285,585,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | # Import libraries
import os
import flask
from flask import request
from google.cloud import bigquery
# Initialize flask application
app_flask = flask.Flask(__name__,
static_url_path="/",
static_folder="./interface")
# Define API route
@app_flask.route("/")
def root():
return app_flask.send_static_file("index... | [
"omrrjcravi@gmail.com"
] | omrrjcravi@gmail.com |
504f0658b7b7f9ae808c5d819daa2760c8f38d06 | f953784405bc32ea61c770664edeb534459f33d9 | /Shmup/main.py | d35d8c9c1ed44df5f28031ea5a63ccdd1bd83728 | [] | no_license | JLew15/Python | 7ba060baf71cefcf20fe0566b7a6f380134be550 | e735bacb2de433788bf173e9e8d50a187159e1c3 | refs/heads/master | 2023-04-28T06:36:55.734871 | 2021-05-11T15:47:49 | 2021-05-11T15:47:49 | 293,847,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,275 | py | import pygame as pg
import random as r
import math
from os import *
# Code written by Jaiden Lewis
# Artwork Credit Kenney.nl or www.kenney.nl
class Explosion(pg.sprite.Sprite):
def __init__(self, center):
super(Explosion, self).__init__()
self.image = explosionAnimation["lg"][0]
self.re... | [
"zombears@icloud.com"
] | zombears@icloud.com |
1292e503e8b05cd9f288de556289ca29880a41cc | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/JetAnalysis/python/jets/akVs4CaloJetSequence_PbPb_jec_cff.py | 1138081e341c23d6cf41f8774dfe47930fc4f528 | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 14,330 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
a56cc49b7af3847ff824b21c622bd6cfb1a5aba0 | 9c6c92f1df99b1cd996b99defda2a68b8f672215 | /detection.py | 28322274600d4f5cd2ada7e0072d405322d10835 | [] | no_license | oanders/Object_detection | 98d27630400bc174dc693afd20d11d27014beca4 | 328d0f2c3004e48c4b3289bb81ea4a5a2076ef1b | refs/heads/master | 2021-01-10T05:50:29.449343 | 2016-04-10T19:14:49 | 2016-04-10T19:14:49 | 54,318,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,865 | py | import cv2
import numpy as np
from matplotlib import pyplot as plot
import os
#from os import listdir, makedirs
#from os.path import isfile, join, isdir
import copy
from class_sift import Sift
from class_akaze import AKaze
from class_orb import ORB
from class_detector import Detector
MIN_MATCH_COUNT = 10
def main():... | [
"oanders@kth.se"
] | oanders@kth.se |
73dde30ee3e5e9b336b4af24f9c38c43d0e0cf60 | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py | 8075aff2ddabc7a62cba30087f4176a99207fa16 | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # coding: utf-8
import types
from huaweicloudsdkcore.region.region import Region
class CceRegion:
def __init__(self):
pass
CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cce.cn-north-1.myhuaweicloud.com")
CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cce.cn-north-4.myhuaweiclo... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e911275049761c3d34e3f24d5c1a7c806c6d85e4 | a70ff84caceb693723846542c19d300bea321deb | /coins_test/settings.py | 53bc0e9900f1b3562edf8ec612055aea94864f58 | [] | no_license | Greyvend/coins_test | 10420bffa7d4510de20bca9fe7b71bd7091c01b1 | a259907a160d482bc0217aeecbb97c1665db62dd | refs/heads/master | 2021-04-12T10:13:33.417998 | 2016-08-14T16:42:13 | 2016-08-14T16:42:13 | 65,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | """
Django settings for coins_test project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"svmosin@gmail.com"
] | svmosin@gmail.com |
9175323c790049f9662192795528961fbfa3ae6f | 0256a449bd686479aa91905a1763973548d9923c | /two_sum.py | 35b7d25d54872dd0bc05ae114b9aa529adf58ac5 | [] | no_license | zjgwhcn/StartCodingNow | 2aa776865788bec1c8d11e14bb4ef0c97280a68d | b235eb280cc11082c680563dc2a261dfc2f2cdce | refs/heads/master | 2021-06-13T03:47:31.435068 | 2017-02-19T13:25:34 | 2017-02-19T13:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #!/usr/bin/env python
# -*-coding:utf-8 -*-
# Time:16/9/2016
# 1
class Solution(object):
def twoSum(self, nums, target):
for i in range(len(nums)):
for j in range(i+1,len(nums)):
if target == nums[i] + nums[j]:
return [i,j]
#2
'''
num = [1,5,8,2,7]
targe... | [
"louchaooo@qq.com"
] | louchaooo@qq.com |
8418693b0b7f600bc206c9513a976a8685d46f52 | 7a7ed5656b3a162523ba0fd351dd551db99d5da8 | /x11/library/wayland/actions.py | 73d6d6bb7fcd4510e4e0b35f12090d0231dd9fe0 | [] | no_license | klaipedetis/PisiLinux | acd4953340ebf14533ea6798275b8780ad96303b | 3384e5dfa1acd68fa19a26a6fa1cf717136bc878 | refs/heads/master | 2021-01-24T22:59:30.055059 | 2013-11-08T21:43:39 | 2013-11-08T21:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2010 TUBITAK/BILGEM
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
... | [
"namso-01@hotmail.it"
] | namso-01@hotmail.it |
9eb758de63ec95f04758e32b359b987bccabd53c | 10a79a489ae800b25332c12ec829f99f0480c6cf | /floreria/settings.py | 94470c918c589eb73cf0e8a9ca339410226fcef1 | [] | no_license | taamfernandez/floreria | 2af0855ee413fbd617926c24a55d95a5894ee06e | 7f04b85a1dc4cf186dbe7a5f1e367f97116bd232 | refs/heads/master | 2020-09-26T04:13:23.938569 | 2019-12-18T16:42:41 | 2019-12-18T16:42:41 | 226,162,344 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | """
Django settings for floreria project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"ta.fernandeza@alumnos.duoc.cl"
] | ta.fernandeza@alumnos.duoc.cl |
107f09e9df2f036798d34862b440c2ebd70a7a7a | a9117d287019a6860693e8f6dbfac152f5e92a75 | /fe/lda_fe.py | 3467205482cca57aa79025515bb32b7db3f508ca | [] | no_license | backonhighway/kaggle_elo | 48a2e4eda9ef5025665564b22f99bfe2cf296dc6 | 636c1ecc64d70c9f1375653687679b745b8bf6db | refs/heads/master | 2020-04-29T01:26:23.269169 | 2019-02-28T15:29:39 | 2019-02-28T15:29:39 | 175,730,137 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | import numpy as np
import pandas as pd
import gc
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.decomposition import LatentDirichletAllocation
from typing import List, Tuple
from multiprocessing.pool import Pool
from functools import partial
import itertools
from concurrent import futures
cl... | [
"shota.okubo@dena.com"
] | shota.okubo@dena.com |
aeb31cb150012236b10aba55815c798a1a949273 | f559186ea67099b0a58a0e99c17aec291fd941e6 | /inscription/models/Contacts.py | ed32fa0c89f0980aaaca7c689f096372e10adb0b | [] | no_license | JairoDuarte/inscriptionLP | 611f17e9a03d1a0f25d862803d924622a95be501 | 2312d79b9f3f952691a7a529257e5f45175838e5 | refs/heads/master | 2020-05-25T18:16:02.494195 | 2017-09-09T10:52:10 | 2017-09-09T10:52:10 | 84,953,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext as _
from .Candidat import Candidat
class Contacts(models.Model):
candidat = models.OneToOneField(
Candidat,
on_delete=models.CASCADE,
verbose_name=_('Candidatinfo')
)... | [
"alfredojairo17@hotmail.com"
] | alfredojairo17@hotmail.com |
e87625a78f32a96dadb585f31cd7212e2872e95d | 2cd2746c16e0435d57282cac463da4969dc098ac | /metricas.py | 16dcd91c8c1a80470f05b747cbfaf8f813e9a8d0 | [] | no_license | joseallones/Flex | 06a4a1bad454eab28e841dbfe027b2f0c7751e9b | 363a185d6359c05452bbb203781c14fd387066df | refs/heads/master | 2023-03-11T21:48:09.491721 | 2021-02-16T19:11:04 | 2021-02-16T19:11:04 | 294,165,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py |
import os
#Do traducido automáticamente mira canto é de wordnet e canto de mymemmory
termos = 0
num_total_traducidos_gl_wordnet = 0
num_total_traducidos_pt_wordnet = 0
num_total_traducidos_gl_mymemmory = 0
num_total_traducidos_pt_mymemmory = 0
def obtenInfoPaqueteDoCsv(path_file):
global termos
global num_... | [
"joseallones87@gmail.com"
] | joseallones87@gmail.com |
ec6863f6fad89f0a79981b9ebe0b04003f60a4e1 | 38fa69b9334acd23a076372b340b8c1230265b05 | /Console.py | 5a713642b55f572d87502da149577781dccff197 | [
"Apache-2.0"
] | permissive | gauravssnl/IPViewer | c880a098e2300a95b63b8d73f6373d9491fed2ba | 3a04711aa3ba79a961e44e163a479e788de1d7bf | refs/heads/master | 2021-01-22T05:00:49.588000 | 2017-09-10T15:01:16 | 2017-09-10T15:01:16 | 81,607,532 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py |
#Console.py script for PyS60
import sys
import e32
import appuifw
ru = lambda text, : text.decode('utf-8', 'ignore')
class Console :
__module__ = __name__
def __init__(self, logger = False):
self.logger = logger
from e32 import Ao_lock as Ao_lock
from key_codes import EKeyEnter as E... | [
"noreply@github.com"
] | noreply@github.com |
8367d61559cdf696618b6d909051533b8def93b0 | 97899228dbe6c0811783f7c830212febfc54f4c3 | /algorithm_PS/BEAKJOON/String/1157.py | 68937ea53be20eecbe1ef6030f14cc57285ba17d | [] | no_license | ksy37667/Algorithm-study | f977abcd5c44582b71f78e589f4a8a174d35a8f0 | 51680e236cf6bba09a2e0824ec72536ee23bba31 | refs/heads/master | 2021-07-12T20:45:50.849105 | 2021-03-27T06:44:18 | 2021-03-27T06:44:18 | 241,117,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | string = input().upper()
li = []
for i in set(string):
li.append(string.count(i))
idx = [i for i, x in enumerate(li) if x == max(li)]
print(idx)
if len(idx) > 1:
print("?")
else:
print(list(set(string))[li.index(max(li))])
| [
"ksy37667@gmail.com"
] | ksy37667@gmail.com |
a88be55fbce8783a3e8e5780a1ad3fe6b790e992 | a4ab53aad0a6e1780f9eabd978c4d16f4822e38f | /Hexagon/Handlers/AcceptChallenge.py | ee4d575d8fc81f526b9c4c3e199ed1cc11f61d87 | [] | no_license | rywit/Hex | 8fc6af035bf37204cde8d2b8ede0b4590b1bf5ed | bdf43c53e491fcfa951013d10c29d9186877af9e | refs/heads/master | 2020-05-18T12:14:12.220213 | 2012-07-07T01:27:52 | 2012-07-07T01:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from Handlers.BaseHandler import BaseHandler
from Views.GameView import GameView
class AcceptChallenge( BaseHandler ):
def get(self):
## Make sure the user is logged in
if not self.user:
self.redirect( "/login" )
return
## Pull off the game id from the ... | [
"witko.ryan@gmail.com"
] | witko.ryan@gmail.com |
4f5c3e036dff53545e0841fdd9c6bd81bce99281 | 56e1844ca3e1c7bcc8f1d2a8c1465bf7120b3c08 | /Hypothesis_Candy.py | c8aa330e8e736dd7a36bae62d4fc8a82f052bd38 | [] | no_license | rl9703/Artificial-Intelligence | d95c32ffcd83a63cdc5b0461842dea6366c65838 | e39736ba6c33136b5287968df4612be6044770d6 | refs/heads/master | 2022-02-14T23:57:30.674789 | 2022-01-30T08:13:58 | 2022-01-30T08:13:58 | 208,346,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | '''
Author: Rishab Lalwani
Title: Q1 Generate a data set of length 100 and
plot the cor- responding graphs for P(hi|d1,...,dN) and P(DN+1=lime|d1,...,dN)
'''
import random as rand
import matplotlib.pyplot as plt
def P(x):
'''
:param x: Hypothesis of candy bags
:return: Graph plot of all hypo... | [
"noreply@github.com"
] | noreply@github.com |
8581dd3dea171c93ad4e0fc231e5f70bdd96d430 | 0ca60d532c0a77c261f2b107c0e697e82af6000d | /svm/svmdemo1.py | 7cb5f27dd62519e6a8e909c08ad182c2ad32519c | [] | no_license | bnhalder/basic_ml | 6b3ad193622b0632fe449a83cc17a0a5211bdd5f | 91579c34adee090e75eb992f439fefd212741168 | refs/heads/master | 2020-03-10T01:35:09.090807 | 2018-04-11T15:29:41 | 2018-04-11T15:29:41 | 129,113,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 18 22:54:30 2017
@author: jabong
"""
import numpy as np
import pylab as pl
iris = np.loadtxt('../data/iris_proc.data', delimiter=',')
imax = np.concatenate((iris.max(axis=0)*np.ones((1,5)),iris.min(axis=0)*np.ones((1,5))),axis=0).max(axis=0)
targ... | [
"biswanath.halder@jabong.com"
] | biswanath.halder@jabong.com |
1c7c615a5d5f6ffd5521a19f65c1f52ac3bc6411 | ee6b18145acdd00821b4a7578882ab7bac07b237 | /lab10/main.py | d396d90a7bc35119a4c779f98b3a6ca2dd319b45 | [] | no_license | Szymek13/Wizualizacja_danych | ec5238f074c686479fe1f318b2a87ddf7afcd7a8 | 01051f37cc863eb82dc6ee1a0364a79da217e1f7 | refs/heads/main | 2023-05-28T03:03:55.121856 | 2021-05-30T14:22:20 | 2021-05-30T14:22:20 | 343,164,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Zadanie 1
x = np.arange(20, 40, 1)
y = (1/x)
plt.plot(x, y, 'b-', label='f(x)')
plt.xlabel('x')
plt.ylabel('f(x)')
plt.legend()
plt.axis([20, 40, 0.02, 0.05])
plt.title('Wykres funkcji f(x)')
plt.show()
# Zadanie 2
x = np.arange(... | [
"noreply@github.com"
] | noreply@github.com |
85d65df06168b2114299f77d388cbe712b4b7085 | 458c487a30df1678e6d22ffdb2ea426238197c88 | /ubcsp/add_gc.py | e6be0db995f628f5c02f95391bfd50d28fde12ec | [
"MIT"
] | permissive | pluck992/ubc | 04062d2cdeef8d983da1bfaa0ff640a3b25c72c2 | 54fc89ae6141775321d5ea770e973ff09be51c0c | refs/heads/master | 2023-02-19T05:01:42.401329 | 2021-01-21T06:32:15 | 2021-01-21T06:32:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import pp
from gdslib import plot_circuit
from simphony.library import siepic
from simphony.netlist import Subcircuit
def add_gc_te(circuit, gc=siepic.ebeam_gc_te1550):
""" add input and output gratings
Args:
circuit: needs to have `input` and `output` pins
gc: grating coupler
"""
c =... | [
"j"
] | j |
88c6be80cd7eb38f457df5fa97ae76cdc8bb9cce | 2f3f48b87266a62a17d54c090f4b40f11d778f26 | /lib/utils/misc.py | 44179919e604f85ff607872d718a6e66a15eaf07 | [
"MIT"
] | permissive | DarioRugg/Self-Supervised_Pearson_Search | b9f78a2e61946f8709399bfbdeaabe1f303ff960 | 731ff0888b336076ec42c26808417809fb78e3cf | refs/heads/main | 2023-07-15T22:05:37.207853 | 2021-07-11T10:15:16 | 2021-07-11T10:15:16 | 379,900,903 | 0 | 0 | MIT | 2021-06-24T18:09:00 | 2021-06-24T11:24:10 | Python | UTF-8 | Python | false | false | 5,164 | py | # -*- coding: utf-8 -*-
# Reference:
# https://github.com/pytorch/vision/blob/fe3b4c8f2c/references/detection/utils.py
import argparse
import sys
import torch
import huepy as hue
from .serialization import read_json, write_json
class Nestedspace(argparse.Namespace):
def __setattr__(self, name, value):
... | [
"munjalbharti@gmail.com"
] | munjalbharti@gmail.com |
6b757a2650f5ee9d6947c57165ed1c0576b47485 | b628d0cf1717c466f193c90ce6a63fd40a1c3888 | /test.py | 5964dbe14b4c6bcc15952d1dbebe5e841e89d60a | [] | no_license | RduMarais/pioupiou | 8193cb00536e8479ac31b005916bd699baaa8636 | eafccc0dd3fa1071428a46b8d3680b1f75cf427d | refs/heads/master | 2020-06-02T15:34:48.038832 | 2019-06-10T18:21:53 | 2019-06-10T18:21:53 | 191,210,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | #!/bin/python3
import datetime
import cryptography
from Crypto import Random
from Crypto.Cipher import AES as AES
from Crypto.Cipher import DES as DES
from Crypto.Cipher import DES3 as DES3
from Crypto.PublicKey import RSA as RSA
from Crypto.Cipher import Blowfish as Blowfish
# from cryptography.hazmat.primitives.asy... | [
"rmichon@telecom-paristech.fr"
] | rmichon@telecom-paristech.fr |
b3c1357b284e6b73b5f72802de36f0a28ddb3683 | ce965cb69fd1f071dfae85e926b70a9a82eb560b | /main.py | d117bb7f83c82eef07f3af0121e6cee6a6ad88e0 | [] | no_license | tk14shiina/learningtool | c7a2c5ee1ce1ddb216534505df39e41426df2674 | e0bab8ce0c96d30683e01996e896b0e4ebfcbffa | refs/heads/main | 2023-04-29T14:39:22.443660 | 2021-05-18T20:48:36 | 2021-05-18T20:48:36 | 368,662,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,568 | py | from dbhelper import DBHelper
from tkinter import *
db = DBHelper()
root = Tk()
root.title('Quizlett')
root.geometry("700x550")
#root.resizable(width = False, height = False)
tk_ss = Entry(root, width = 30)
tk_ss.grid(row = 0, column = 1, padx = 20, pady = 5)
tk_ssLabel = Label(root, text = "New study ... | [
"noreply@github.com"
] | noreply@github.com |
f1404f7a787c775f3ce768b273fdb666e2071008 | 2d3dc770005c152f459be6f59062b736dc00aa69 | /2048/code/tkinter_event.py | 3d237a061bb54630c553e75a0c527c7db1110946 | [] | no_license | s-python-git/Python-The-code-base | 42394f9459cbcc6544486fb98ab04352eecad568 | b85052af64e5909d38649ee4ab576e608607ba50 | refs/heads/master | 2020-04-27T23:48:30.650696 | 2019-11-25T09:29:52 | 2019-11-25T09:29:52 | 174,791,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # tkinter_event.py
import tkinter
root = tkinter.Tk()
def onKeyDown(event):
print("有键盘按键被按下:event=", event)
print(event.keycode, event.keysym, event.char)
def onKeyUp(event):
print("有键盘按键抬起!", event)
root.bind('<KeyPress>', onKeyDown)
root.bind('<KeyRelease>', onKeyUp)
def mouseDown(e):
print("有鼠标... | [
"noreply@github.com"
] | noreply@github.com |
4b0d73f1c9d3600690df7eb5b54d526f2b7a0427 | 2cf2df2807fff90d4c82c1cbbbece272a4b469c2 | /gplib/core/__init__.py | 1038489a4cd5070d90c14b2d9f7b42cb4ce8684d | [] | no_license | marcpalaci689/gplib | 826466f42da085b91d37297631fcc709c00edc3a | 859ed08d7b77b1a4f4ed3f0cdb5db8930ee95465 | refs/heads/master | 2021-09-01T12:19:30.683620 | 2017-12-27T00:11:02 | 2017-12-27T00:11:02 | 115,462,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | from .gp import GP
| [
"marcpalaci689@gmail.com"
] | marcpalaci689@gmail.com |
a05cf8f5a0bbfbc66fc6366b15421295bcad5546 | 68e66947c2b2a2f1a1cac52a99363ce37f33e9bb | /getdata.py | 2eb211b79b5f329ebe7dad60d8c9b3cf6781e662 | [] | no_license | trmcdade/Manifesto | 30c424127bf734a63f9af13bb25671769077926a | 9a0d150783485492e8c45ebeb37ee41c9c31b253 | refs/heads/master | 2020-06-11T09:31:32.493158 | 2019-06-28T17:14:09 | 2019-06-28T17:14:09 | 193,917,576 | 1 | 0 | null | 2019-06-26T19:35:28 | 2019-06-26T14:10:24 | R | UTF-8 | Python | false | false | 950 | py | import urllib.request, json, ssl
#bypass SSL verification
context = ssl._create_unverified_context()
#you will need your own API. play around with key= parm also
with urllib.request.urlopen("https://manifesto-project.wzb.eu/tools/api_get_core.json?api_key=d00c54e1a64ef97f7a032c91ff45a627&key=MPDS2018b", context=conte... | [
"kylechan@unc.edu"
] | kylechan@unc.edu |
291e37a89529fee6456f713f03a74745d05ca459 | ef905b3f490049212ea7edf777f82eba85328741 | /hist_nsepy.py | 5ecf1a9717dedea68167734c50dd3c3d462a1bc8 | [] | no_license | ghoshsudipto/DA | 98d144541a7355efddd783bc304af396548af5e9 | dbd8725c64bfa9a7e55ff75ee5fa2e8fa270719a | refs/heads/master | 2023-08-18T04:58:12.607293 | 2023-07-27T09:11:07 | 2023-07-27T09:11:07 | 217,709,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | import pandas as pd
from datetime import date
from nsepy import get_history
scrip = input('Scrip:')
series = date(2004, 1, 29), date(2004, 2, 26), date(2004, 3, 25), date(2004, 4, 29), date(2004, 5, 27), date(2004, 6, 24), date(2004, 7, 29),\
date(2004, 8, 26), date(2004, 9, 30), date(2004, 10, 28), date(2004, 11... | [
"noreply@github.com"
] | noreply@github.com |
2f7739039404274a4296d6d5ede3692379b78d93 | c72069c173dcbc475d051ac23dde5c69017604f3 | /testcase/test02_home_search.py | 36eba48b20cf9a3e777424a0d53d671f226d81f5 | [] | no_license | NamedWu/test1 | de454907bbd2455ed1a45cc1b240b6525b3c5512 | db0f5d1f5737e4975cfe5d8f704f26aad84e169a | refs/heads/master | 2023-01-08T23:43:16.536079 | 2020-11-14T12:20:38 | 2020-11-14T12:20:38 | 312,811,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.by import By
import time
def test_select():
driver = webdriver.... | [
"dengqingqign@duiba.com.cn"
] | dengqingqign@duiba.com.cn |
c4b5c68f3abcb5ab6cc0ae450634d6e199046023 | 060a1f91c43e8931a8e2b5e023f6325f4c612862 | /excel_main.py | f7b56bc153bfbe4451309c9162a84fc8e3ce9a25 | [] | no_license | Dianuma/excel | 2ac8ee81f4c41fca007cb6eaa0eacd749ca378b1 | 5a9cf5e22d3b4d15f5c32b0b0326815fa249beab | refs/heads/main | 2023-04-25T03:40:46.789204 | 2021-05-11T10:50:40 | 2021-05-11T10:50:40 | 365,394,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,077 | py | try:
import Tkinter as tk
except:
import tkinter as tk
import tkinter.messagebox
import tkinter.ttk as ttk
import sys
import os
import numpy as np
import time
import openpyxl
import pyexcel as p
import pyexcel_xls
import pyexcel_xlsx
import pyexcel_xlsxw
import math
#font=("UD Digi Kyokasho N-B", 20, "bold")... | [
"dltmdgus1208@gmail.com"
] | dltmdgus1208@gmail.com |
18735fd8a03cafe6b5b2fa7d241a8f0e31a492b3 | 51d504622c8bde5096d954bf9b38789d48ba4ff7 | /Python/flask_mysql/crud/users/flask_app/__init__.py | f2767c96c43e0e7e60569fcd53ccee202e799e37 | [] | no_license | BLee1126/Dojo-Assignments | 36c8fb2294c5cd6a04c065415aae12225c0eb483 | d40d8f6569b1f504d1785d8f34d27c58eab406c8 | refs/heads/main | 2023-07-10T16:00:30.863709 | 2021-08-20T16:42:10 | 2021-08-20T16:42:10 | 368,209,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # __init__.py
from flask import Flask
app = Flask(__name__)
app.secret_key = "shhhhhh"
| [
"blee1126@gmail.com"
] | blee1126@gmail.com |
7e7ca2bb4d9720d03335e98c0747b14c5fab0583 | cc6c9996e8601c28dc0d00bad1daf7280dd8338c | /python/qa_zcz_despreading.py | f4eb192b2e226828cf919e6b466340698b08add4 | [] | no_license | eokeeffe/gr-spreading | 5fad5c6e2db6637bbbf182a93bc45295d1d1246a | 886e1ebea61fa0c19688aff399aefe8339c1a097 | refs/heads/master | 2020-04-07T20:37:06.621572 | 2018-11-22T12:31:13 | 2018-11-22T12:31:13 | 158,696,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018 <+YOU OR YOUR COMPANY+>.
#
# This 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; either version 3, or (at your option)
# any later version.
#... | [
"evan.o-keeffe@ucdconnect.ie"
] | evan.o-keeffe@ucdconnect.ie |
33dfd9eb9fc3006a8361ccc098a0c07b7feb98b1 | b106f6d4b3776b14fca34864bee4ccf3fb5186a9 | /OLS(F, M).py | effaf45acf0a63c0e1e6b56d04e9b9acec62eb90 | [] | no_license | KalyakulinaAnastasiya/DNA | 935bdacb3d5a723abd1657008f63e50696ca4679 | 171287d9c9eba2e9140851a6f73982691f6febbd | refs/heads/master | 2020-09-09T15:18:30.442332 | 2020-05-05T18:51:32 | 2020-05-05T18:51:32 | 221,481,882 | 0 | 0 | null | 2019-11-13T14:46:44 | 2019-11-13T14:46:43 | null | UTF-8 | Python | false | false | 1,529 | py | import numpy as np
import statsmodels.api as sm
import pickle
import matplotlib.pyplot as plt
file = open('observables.txt', 'r')
age_key = 'age'
#pers_key = 'geo_accession'
gender_key = 'gender'
line = file.readline().rstrip()
line_list = line.split('\t')
#pers_id = line_list.index(pers_key)
age_id = line_list.index... | [
"aaron.blare@mail.ru"
] | aaron.blare@mail.ru |
42a05627e3a98cc0ead95e20b03d32f2cefee727 | 67d99eaf3e2355664d6b476e0cdfb4a376f5ace3 | /setup.py | 931fc78bd4758db172c223643c75612eea8bf75f | [] | no_license | Jef808/TicTacToePython | 7e9868b2efd28f1c2714ddce2db7eaae2afda9ea | c60f40bb3f4dd4beeee4533cb2d05a0b9251e98e | refs/heads/master | 2022-12-11T06:25:27.343644 | 2020-08-26T01:18:10 | 2020-08-26T01:18:10 | 290,363,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from setuptools import setup, find_packages
setup(name='TicTacToePython', version='2.0', packages=find_packages())
| [
"jf.arbour@gmail.com"
] | jf.arbour@gmail.com |
e62ac7a0915b7c7f70a113110172c99d24e59e8f | 81638739f723dbca5e662e572a9cef790319a430 | /conductr_cli/test/test_sandbox_logs.py | 56d88dbe3bb0f4c75921fbf7daebfa183a99c4ba | [
"LicenseRef-scancode-unknown-license-reference",
"JSON",
"Apache-2.0"
] | permissive | typesafehub/conductr-cli | 2afe5909720a1bc6eae24dd7677ac66ec2c9822d | 0ed890284228ec8acc894d49a2ea2a598f16e130 | refs/heads/master | 2023-06-19T18:59:16.175762 | 2018-02-07T16:14:56 | 2018-02-07T16:14:56 | 28,919,275 | 14 | 20 | NOASSERTION | 2022-11-04T02:29:09 | 2015-01-07T15:04:13 | Python | UTF-8 | Python | false | false | 1,043 | py | from conductr_cli.test.cli_test_case import CliTestCase
from conductr_cli import sandbox_logs
from unittest.mock import MagicMock
import io
import tempfile
class TestSandboxLogs(CliTestCase):
def test_log_files_is_correct(self):
self.assertEqual(
['/image/dir/core/logs/conductr.log', '/image/... | [
"longshorej@gmail.com"
] | longshorej@gmail.com |
1fa1a301a80606168abdda73ff6ba0c7c75eb089 | 0c6c7365d6ff8b694bc906ec5f74c741e8bb0d37 | /Algorithms/1-Two-Sum.py | 5a8065a1ff799e35aa89d3fd7283348dbcfd26ad | [] | no_license | XiongQiuQiu/leetcode-slove | d58ab90caa250c86b7a1ade8b60c669821d77995 | 60f0da57b8ea4bfb937e2fe0afe3caea719cd7e4 | refs/heads/master | 2021-01-23T11:21:15.069080 | 2019-07-08T15:42:48 | 2019-07-08T15:42:48 | 93,133,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | '''
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0... | [
"zjw2goo@gmail.com"
] | zjw2goo@gmail.com |
c808420814784eb74158420818d1e193c2cff1fe | eed5c6267fe9ac9031c21eae6bc53010261505ac | /tests/metrics/test_default_metrics.py | 9609d6d88e052ff6a942b412ee06c84c93ff3b82 | [
"MIT"
] | permissive | voxmedia/thumbor | 3a07ae182143b5a850bf63c36887a1ee8e3ad617 | 29b92b69e4c241ddd5ba429f8269d775a1508e70 | refs/heads/master | 2022-08-25T13:07:12.136876 | 2022-08-18T16:15:00 | 2022-08-18T16:15:00 | 22,433,808 | 6 | 0 | MIT | 2019-09-13T18:05:03 | 2014-07-30T15:33:42 | Python | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
import mock
from preggy import expect
import thumbor.metrics
from t... | [
"rflorianobr@gmail.com"
] | rflorianobr@gmail.com |
8792f9fb40411dda7586be8db31e4e63b961154c | 2dd814284a1408706459e7dd6295a4575617c0c6 | /cupyx/scipy/special/digamma.py | af54d2a7fd9ec2e5072f91abcaa7fd7cf6a903c3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | dendisuhubdy/cupy | 4e31c646fa697f69abbb07f424910cc8e5f0e595 | b612827e858b8008455a76e8d9b396386c1e4467 | refs/heads/master | 2021-01-23T10:56:45.639699 | 2018-07-12T17:41:26 | 2018-07-12T17:41:26 | 93,111,021 | 0 | 0 | MIT | 2019-12-09T06:55:54 | 2017-06-02T00:31:07 | Python | UTF-8 | Python | false | false | 4,681 | py | # This source code contains SciPy's code.
# https://github.com/scipy/scipy/blob/master/scipy/special/cephes/psi.c
#
#
# Cephes Math Library Release 2.8: June, 2000
# Copyright 1984, 1987, 1992, 2000 by Stephen L. Moshier
#
#
# Code for the rational approximation on [1, 2] is:
#
# (C) Copyright John Maddock 2006.
# Use... | [
"yoshikawa@preferred.jp"
] | yoshikawa@preferred.jp |
ad7ed55ad4a24f93212d491b8b82e0afff803c67 | 6a389811490cf5c4bbb8bb46cacf37b5992f9f22 | /Villordo_Cristian/001/001.py | dcd18937829e5283fa9ebd6c61418b22424defe1 | [] | no_license | informatorio2020com07/actividades | 40e2ba899e1a9d8ea6ac312ed7a480218ee6b79a | b9b76a5f8bc0a7da17ff378f954b38564f41fa66 | refs/heads/master | 2022-12-20T05:02:21.567549 | 2020-10-06T22:41:03 | 2020-10-06T22:41:03 | 285,361,906 | 2 | 26 | null | 2020-10-06T22:41:31 | 2020-08-05T17:39:32 | Python | UTF-8 | Python | false | false | 327 | py | # 001-
# Programa que pregunte al usuario, el precio del producto y la cantidad de unidades vendidas.
# Informar el total de ventas.
print("PRECIO DE PRODUCTOS")
producto=float(input())
print("CANTIDAD DE UNDIDADES VENDIDAS EN EL MES")
unidades=float(input())
print("el total de las ventas del mes es ", producto*un... | [
"cristianndvillordo11@gmail.com"
] | cristianndvillordo11@gmail.com |
67488237676831d1edf9d909b0ec985b4bd2e48b | 4959dcaf240badfcde1bb3de484dad7bf6dd88c6 | /Python/fun.py | a3d55d7cbb60a3e1db41d539ec80ba23962f5a89 | [] | no_license | awoltman/Computer_Science | 1025540f5cd087b8e5188e84557b9b276549a8de | 412de1d7519edea2e5ee0759ab3033d6ddfc81f5 | refs/heads/master | 2020-06-17T07:48:21.603061 | 2019-08-12T13:02:18 | 2019-08-12T13:02:18 | 195,849,350 | 0 | 0 | null | 2019-07-17T20:10:16 | 2019-07-08T16:27:34 | C++ | UTF-8 | Python | false | false | 60 | py | #first Hello World
message="This is Bob!"
print(message)
| [
"woltmanap@gmail.com"
] | woltmanap@gmail.com |
884ab6fcd860c6c1708f1f0f92d0a0b46f140e7f | a8fd25898010c2bfaa3e5c07782b6ec8738b6806 | /venv/Scripts/easy_install-script.py | d7ea1e7cc8f97577707b83df3e04f2a8694b7f18 | [] | no_license | manasarora98/FatiguedOperatorDetectionAlarming_PythonOpenCV | 2b9a312116dcdf99a12e760dd012b81bf0067e34 | 05b6949b6c6131a08d71aef377223662aca7791d | refs/heads/master | 2022-04-17T19:28:07.155742 | 2020-03-30T18:24:14 | 2020-03-30T18:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!"C:\Users\Manas Arora\PycharmProjects\FatigueDetection\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'... | [
"manasarora98@gmail.com"
] | manasarora98@gmail.com |
699cc4b622f8e16c0d1b318294e129f9b6a4884c | cd8f1c6ceac85a870de457f237ea74509903cad3 | /tests/python/test_services/test_2/test.py | 754fecab92c98b3edb529bb68095be05eb69f7d2 | [] | no_license | HugoCornelis/sspy | 379cbfc08dc572c40f9dfba75662fb7ffa8c0d50 | e63e23a12add054c3fe98258877808b37ab76287 | refs/heads/master | 2020-06-04T17:06:07.893013 | 2019-06-16T15:25:47 | 2019-06-16T15:25:47 | 192,116,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py |
#*************************** Begin Service ********************************
class Service:
#---------------------------------------------------------------------------
def __init__(self, name=None, plugin=None, arguments=None, verbose=False):
"""
"""
self._plugin_data = plugin
... | [
"mandorodriguez@gmail.com"
] | mandorodriguez@gmail.com |
6072d7b1aeea4e91805c782132b00e67448bf944 | 303041f23462a2095fa107976269c09618d1642f | /source/check_source.py | c28c64f71c2bea8891142c4f6dfbeaa0aba8225e | [
"MIT"
] | permissive | billyquith/GWork | 99a890e75713040739ef4f3393cdb27d9507263a | ea2d70137c97701e5b9eb6114a80d5ecd2aaaff8 | refs/heads/gwork | 2021-04-18T19:17:14.936917 | 2019-07-06T14:27:46 | 2019-07-06T14:27:46 | 7,449,996 | 216 | 54 | NOASSERTION | 2019-06-26T21:30:51 | 2013-01-05T01:20:46 | C++ | UTF-8 | Python | false | false | 1,532 | py | #!/bin/env python
"""
Check source code follows the rules!
"""
import os
CHECK_EXTS = ('.h', '.cpp')
CHECK_NAMES = ('CMakeLists.txt',)
IGNORE_DIRS = ('./platform/include/Gwork/External',)
IGNORE_FILES = ('DebugBreak.h', 'FontData.h')
class Stats:
def __init__(self):
self.files = 0
self.lines = 0
... | [
"chinbillybilbo@gmail.com"
] | chinbillybilbo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.