blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff30e8932a6292b69bb900155874ffcfa1e06431 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2930.py | 97be09473c78d8ee4bccfb81bd58eb99d9cd14ca | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from __future__ import division
T = input()
for i in range(T):
C, F, X = [float(x) for x in raw_input().split()]
cookiesRate = 2
if C >= X : print "Case #%d: %.7f" % (i+1, X/cookiesRate)
else:
timeElapsed = 0
while(C/cookiesRate + X/(cookiesRate+F) < X/cookiesRate):
timeElapsed += C/cooki... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3b3e969d18a5a1b06d75911178cd64cceed64785 | e65fba18d73b9a0d2bb51b8903d9bfff4d621da6 | /pytd6.py | 068d407edadaf6b07cdbac1acfa3dca93671d843 | [] | no_license | stevendevine/pyTD6 | 23fb16c3afd00235759f6ecba6b7a13cf0ecef77 | 7c701db14fe9b286dc0fc29e8a1e580e249889c8 | refs/heads/main | 2023-07-15T22:16:20.458018 | 2021-08-24T21:47:17 | 2021-08-24T21:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,536 | py | import keyboard, mouse, json, pygetwindow, pywinauto, time, ctypes, pyautogui, PIL, pytesseract
from PIL import ImageFilter
from PIL import ImageChops
from typing import Tuple, Union
from exceptions import *
# required for the mouse.move() to not be offset when display scaling is enabled.
user32 = ctypes.windll... | [
"vidh.bhatt@gmail.com"
] | vidh.bhatt@gmail.com |
9242c6b500fb9f1bf7ec63e07416b8c4618c046e | 1ea4892f4a8f3ef4c1aad0d69ad6800dfbb74661 | /actions/send_email.py | 7be87c16bf8585d3c6a48a22d77aeed5972ae858 | [] | no_license | qube-ai/rule_vm | 55c32715d3828bbb4d97438c80758631857b89e8 | 4e7cd890535077eb79bb8647fd5ea2542fd5c34d | refs/heads/main | 2023-05-08T15:55:04.247590 | 2021-05-31T22:36:26 | 2021-05-31T22:36:26 | 304,846,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | import os
import trio
from loguru import logger
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail, Email, To
from .base import BaseAction
from .base import ActionConstant
from typing import Dict
class SendEmailAction(BaseAction):
action_type = ActionConstant.SEND_EMAIL
schema = ... | [
"apoorvasingh157@gmail.com"
] | apoorvasingh157@gmail.com |
6b02940ed353c8a99eb9742927bfe2c36301da96 | c388f70bec95795dd8fdea56dc8c9beea49aa564 | /diststore/settings.py | 9a2c84a0d1c9ad3f286bff6b4bb37109c619066d | [
"MIT"
] | permissive | santeri/pydiststore | 6d6a5c8d33ba2147da106b0877067c23f591a45d | 227074a152e9e6a86abf22c3d4b2e8d43ec2f659 | refs/heads/master | 2021-01-22T02:53:32.767149 | 2012-10-04T23:54:28 | 2012-10-04T23:54:28 | 145,312 | 1 | 1 | null | 2012-10-04T23:54:29 | 2009-03-07T17:33:18 | Python | UTF-8 | Python | false | false | 843 | py | #!/usr/bin/env python
# encoding: utf-8
__all__ = ['http_port', 'multicast_addr', 'multicast_port', 'multicast_dst', 'multicast_timeout']
import ConfigParser
config = ConfigParser.ConfigParser()
config.read(['diststored.cfg', '/usr/local/etc/diststored.cfg', '/etc/diststored.cfg'])
_http_port = int(config.get("d... | [
"santeri@santeri.se"
] | santeri@santeri.se |
cca76db479141c09148d375544d94ff41aad4e76 | 2b87db0ada3c2d016df891761855e9a9dc5b81fe | /DP/matrixMultiplication_tabulation.py | 5dccacdc6120e0b39b9f754361beaf58b5d63d59 | [] | no_license | drdcs/Algorithms-and-System-Design | 9b201ba47bda14ca8fcd9aeddcfee760b3194f2d | 656fafbd758c30f5bd7a73a7d677562d5ae1f39f | refs/heads/main | 2023-04-11T10:25:02.992297 | 2021-04-22T05:57:10 | 2021-04-22T05:57:10 | 329,364,127 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | """
Input: p[] = {40, 20, 30, 10, 30}
Output: 26000
There are 4 matrices of dimensions 40x20, 20x30, 30x10 and 10x30.
Let the input 4 matrices be A, B, C and D. The minimum number of
multiplications are obtained by putting parenthesis in following way
(A(BC))D --> 20*30*10 + 40*20*10 + 40*10*30
Input: p[] = {1... | [
"diptihdl@gmail.com"
] | diptihdl@gmail.com |
c95bfa05173b3c57990cc2d53cf42b70060aa4c2 | 934c3ed7a95d6509d63c099df9481aa35c2a7c56 | /app/view_models/__init__.py | 79902edd521f6ccbc41b47d3c82e0bf184b70ae1 | [] | no_license | meto001/label | b072c9ab0e581799a3eb6a7b4175afae9d04ca10 | 8f2af923379eea9bb89350b2f6b794b4964a1301 | refs/heads/master | 2021-06-10T13:11:26.307612 | 2020-08-25T08:41:23 | 2020-08-25T08:41:23 | 181,861,296 | 3 | 0 | null | 2021-03-25T22:56:53 | 2019-04-17T09:37:58 | Python | UTF-8 | Python | false | false | 71 | py | # _*_ coding:utf-8 _*_
__author__ = 'meto'
__date__ = '2019/4/11 14:42' | [
"756246975@qq.com"
] | 756246975@qq.com |
bca492a81fe23d315cbb69434d85d776cc8e630a | 774413d52ecdfad882bc79f325f6d6b282b336cb | /src/face_api_client.py | c849e0456c44d3ae95e4d294a36909c9ee1ec024 | [] | no_license | omribeni/BestFaceImageRecognition | 6cde0d7dce9c743001aa34121eead85517b93a4c | 633ab4cf8200bff47a730982b8d41e816aae916f | refs/heads/master | 2022-12-29T11:07:05.260349 | 2020-10-11T15:04:06 | 2020-10-11T15:04:06 | 289,653,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | import os
from azure.cognitiveservices.vision.face import FaceClient
from msrest.authentication import CognitiveServicesCredentials
import Face
class FaceApiClient(object):
# Set the FACE_SUBSCRIPTION_KEY environment variable with your key as the value.
KEY = os.environ.get('FACE_SUBSCRIPTION_KEY')
# Se... | [
"omribenishai015@gmail.com"
] | omribenishai015@gmail.com |
30e8a20521a6bc8d67539d32f44ca040fae0ad73 | 292c19b382dd882a60a31cbe291ca036f39ebb7f | /args.py | 3dba48b23e9683711ac9610852aeb74c3c154d93 | [] | no_license | shailzajolly/EaSe | 687e947319f008240db352119b0b9363e2be8d5a | 53518e8273b7ee01d5c005f052671c2e96ab29a4 | refs/heads/main | 2023-04-05T04:13:55.864936 | 2021-04-06T13:22:41 | 2021-04-06T13:22:41 | 355,194,977 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | import argparse
def get_args():
parser = argparse.ArgumentParser(description="data parameters")
parser.add_argument("--annotation_path_tr",
help="Path to file that contains annotations for training data.",
type=str,
default='v2_mscoco_tr... | [
"shailzajolly@gmail.com"
] | shailzajolly@gmail.com |
141edf402032a4bbe9c3349258944e9dcfa2c803 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /chrome/browser/android/digital_asset_links/DEPS | 7023254e344e39b9b94c5db81d7a70a7df505240 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 296 | # It is likely that this code will eventually be shared across platforms, so
# excluding dependencies that would make this being a component impossible.
include_rules = [
"-content",
"-chrome",
"+base",
"+content/public/test",
"+chrome/browser/android/digital_asset_links",
"+net",
]
| [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com | |
4c269658b728a3ab97fc12a26d4e6a217994a423 | fb0906f77a44e2e2875ee5dbc16a14f5d70df50e | /fotok/config.py | edebde423a287e62642cffceca7e034c08c99d55 | [] | no_license | gsdu8g9/fotok | 3f30f14a5a195531cbf1ee7ecaa5d87d702a701d | bdb9b823c000e9bb9cb465f4e0401f1c093b63f0 | refs/heads/master | 2021-01-22T20:44:44.406304 | 2016-02-16T20:20:54 | 2016-02-16T20:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | """
This file stores configuration for both the web app and feed server.
Should be changed on deployment.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'abcdimverysilly'
MAX_CONTENT_LENGTH = 1024*1024
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'fotok.... | [
"maksbotan@gentoo.org"
] | maksbotan@gentoo.org |
488374d79aa245ef32483dbbbe87d6d7825895ad | 4cc4f6f49bcd1031f017a144e18a7ea68ea7cfeb | /Lab09/.svn/text-base/generateReport.py.svn-base | e96764d152e3d9da24cd8b7572b3d2a740e12461 | [] | no_license | apoorvvw/Python | abeddddbe59dfe0d17865bfbf06232565dbff104 | 1b2661e5835f9e01ae10a91da21bfe768a858a13 | refs/heads/master | 2020-12-24T16:40:34.717506 | 2016-04-03T05:53:16 | 2016-04-03T05:53:16 | 40,106,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | #!/usr/local/bin/python3.4
__author__ = 'ee364e10'
import re
def moreReg(filename):
dict=[]
with open(filename,"r") as inputFile:
FileObject = open('finalGrades.xml',"w")
FileObject.write("<?xml version=\"1.0\"?>\n")
FileObject.write("<students>\n")
for line in inputFile:
... | [
"awairaga@purdue.edu"
] | awairaga@purdue.edu | |
9f060361d6de995b683995985d8c9f9c463b1669 | d54dfc623e1916c5cf08b738ff4a3d88a923fdb7 | /NumberGuessingGame.py | 0527a7d767b7c0c03f242a1d91d2b5670c745784 | [] | no_license | sandeep1108/Code | 1d2004987d55058368149873944ebc631b43fe4e | 1f97e2f6494a40bec14915a288cbfe8e23c7e6eb | refs/heads/master | 2021-05-01T04:23:47.511245 | 2016-09-28T20:44:35 | 2016-09-28T20:44:35 | 69,502,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | """
Author: Sandeep Das
This program asks the user to guess a random number between 1 and 100
"""
import random
import os.path
import json
from sys import argv
def main():
print "Hello There! Welcome!"
playerName = str (raw_input("Please enter your user id: "))
print "How are you doing %s?" %playerName
... | [
"noreply@github.com"
] | sandeep1108.noreply@github.com |
3791527cea4f9b19510cd2511f27d307b569de22 | 4d2de834ecea6ef444b1c45afb5a41e717900858 | /app/app_todo/__init__.py | 33a8204e60a9ea5ebfaf02b5c996d4aafaf808af | [] | no_license | florije1988/flask_regular | 19da04c59fbf600274d206750ccb8cf355db2d24 | 1219e4efbad76202d6dca7e4b2148344ea9edf8c | refs/heads/master | 2020-12-24T13:21:29.840919 | 2014-12-16T00:58:15 | 2014-12-16T00:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from flask import Blueprint
from app.custom_api import Api
app_todo = Blueprint('app_task', __name__)
api_todo = Api(app_todo, catch_all_404s=True)
from . import views
api_todo.add_resource(views.HelloHandler, '/hello') | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
9c1b67405acfc447e0bcde61a0b406ab29189c33 | f4713830c8519daca9d75ec692a6937ee03c74d4 | /Problems/Algorithms/953. Verifying an Alien Dictionary/alien_dictionary.py | af8a014ae986a3a0467e9a3207355cbfdb4b4240 | [
"MIT"
] | permissive | xuedong/leet-code | a0dd38cb884292de9d947718bb00160eff2b0f00 | 285d49cd7061ec43368d63b7c7c56763be520570 | refs/heads/master | 2023-09-03T02:38:55.932182 | 2023-09-02T18:35:42 | 2023-09-02T18:35:42 | 189,745,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python3
from typing import List
class Solution:
def isAlienSorted(self, words: List[str], order: str) -> bool:
map = {ch: idx for idx, ch in enumerate(order)}
words = [[map[ch] for ch in word] for word in words]
return all(word1 <= word2 for word1, word2 in zip(words[:-1], ... | [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
ff0d63e5404e77e306860887c8d0ff6eb8b09f4a | 426e3b7138107d4ef6fb048a0f7b1c4d72617ee6 | /MRI_ProstateCancer_Classification/test.py | e2fca76eb8b994975e620311388537eb98390f09 | [] | no_license | andrewmlu/MRI-prostate | 5d8d16987ab197e79dd231cad61ce65c48cd50d1 | 760552cfea0a3056d21ba1ac81261f5e2af1fe46 | refs/heads/master | 2023-01-23T10:29:46.507468 | 2019-09-09T15:20:31 | 2019-09-09T15:20:31 | 198,726,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #%%
import keras
import numpy as np
import matplotlib.pyplot as plt
#%%
X = np.load('./CoRegistration/img_valid_data_3d_t2_tse_tra.npy')
#%%
print(X.shape)
for i in range(16):
plt.imshow(X[0,i,:,:,0])
plt.show()
#%%
print(X.shape)
plt.imshow(X[4500,3,:,:,0])
plt.show() | [
"lu.andrew.m@gmail.com"
] | lu.andrew.m@gmail.com |
3e2d840dab7fafdba0367c9dcc831eaf950482c9 | 7554c1309bb2409618ced1747b0c6052fe7b963c | /audio-streaming-client-python/client_demo_simple.py | 92cdbe562c3a1d069688c4370cc2515b5a7b9926 | [] | no_license | TheCarryKing/pie | ec464e1a459bfc602cdfeabac4f07318273df485 | e18301e26c94004e84be73e2d31489537c2989ef | refs/heads/master | 2022-04-24T22:49:53.692507 | 2020-04-26T12:00:05 | 2020-04-26T12:00:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # -*-coding:utf-8-*-
from baidu_acu_asr.asr_client import AsrClient
from baidu_acu_asr.asr_product import AsrProduct
import time
import logging
import baidu_acu_asr.audio_streaming_pb2
def run():
"""
添加失败重传
:return:
"""
for i in range(5):
client = AsrClient(url, port, product, enable_flu... | [
"xiashuai01@baidu.com"
] | xiashuai01@baidu.com |
3342dbd03130abc2b867b2e3e093a75c7f00aafa | 1e177ebdcb470f738c058606ac0f86a36085f661 | /Python3/Tkinter/tkinter020.py | 23c5a22cc77a5d384d51239477848c13a696f07a | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/python3
from tkinter import *
root = Tk()
myContainer1 = Frame(root)
myContainer1.pack()
root.mainloop()
| [
"robin.greig@calalta.com"
] | robin.greig@calalta.com |
b6cb0d98aa20ba4ad45816517fb090f55425bab8 | 493fb070c7f60137ae5f0f92e64f416445e2d126 | /managers/swap.py | ac5abed4965adfdbb709030be04f58be42461a64 | [] | no_license | nyko27/algorithms_lab1 | a93365c4481c6a86c719e3d3127ca45b8004df83 | a52871b620ab343de7af0e58eabb35fb82e50228 | refs/heads/main | 2023-01-05T16:25:13.652155 | 2020-10-27T14:43:34 | 2020-10-27T14:43:34 | 303,790,346 | 0 | 0 | null | 2020-10-27T14:43:35 | 2020-10-13T18:09:54 | null | UTF-8 | Python | false | false | 169 | py | def swap_elements(array, element_index, second_element_index):
array[element_index], array[second_element_index] = array[second_element_index], array[element_index]
| [
"yuranykolysak@gmail.com"
] | yuranykolysak@gmail.com |
2735e4cab031de78116192c8f4f40ac4584083ce | 2dd7c708b76d6affba1323ff7b57b768200e863b | /2015/Day_18/day18_1.py | 84ebf3f30809064e6995eb1362784a4a635bd467 | [] | no_license | Daniel-Fernandez-951/AdventOfCode | c8cccf9742e3996ef1235ac7f9ab0391ecc10157 | d708d089fc1170a76e54c8b25332063e55fa8329 | refs/heads/main | 2023-02-01T04:27:17.216222 | 2020-12-18T08:04:10 | 2020-12-18T08:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | from copy import deepcopy
lights = [[True if x == '#' else False for x in y] for y in open('AOC_2015\day18.txt').read().split('\n')]
def get_num_neighbors(x, y, lights):
num_neighbors = 0
nums = [-1, 0, 1]
for a in nums:
for b in nums:
if x+a < 0 or b+y < 0:
c... | [
"Max.Techniche@gmail.com"
] | Max.Techniche@gmail.com |
13c365ba493e7a5703589a2025cbc4b9bf7f895a | 0de1ffce4bc996e44561907e31fa3e25d93be03b | /lab 2/main.py | 131d7cde3f017742bfbef0849a641a6752639361 | [] | no_license | moxxiq/db-2y-labs | 59b891ac3c6b9e224957fc73de7336c251d2244c | 966c277471d4f1afabadf4ad882d05887018d46c | refs/heads/master | 2023-03-23T10:37:05.771818 | 2021-02-02T22:48:10 | 2021-02-02T22:48:10 | 257,173,634 | 1 | 0 | null | 2021-03-19T12:36:26 | 2020-04-20T04:44:55 | Python | UTF-8 | Python | false | false | 1,430 | py | import cx_Oracle
import cred
conn = cx_Oracle.connect(cred.name, cred.passw, "localhost/XE")
cur = conn.cursor()
cur.execute("""
SELECT *
FROM (SELECT ARTIST_ID, ARTIST_NAME, COUNT(RAA.ARTWORK_ARTWORK_ID) ARTWORKS_COUNT
FROM ARTIST
LEFT JOIN RELATION_ARTWORK_ARTIST RAA on ARTIST.ARTIST_ID = RAA.... | [
"dimanavsisto@gmail.com"
] | dimanavsisto@gmail.com |
3e33a95740de2a609722833a58f612500ad751a6 | 0bcb70eceea00ed1ed3627eee0be0b72e3112dd8 | /seok/views/vote_views.py | 7b9ea427e2020168ece3bb569c5f0557716045b2 | [] | no_license | odongs/dong | d6afad4e7fe58d8e1e71cd265a280b5228643320 | 17ae5f8eafefe13939d8bc2a6573a99312256b9c | refs/heads/master | 2023-03-19T11:46:35.394134 | 2021-03-16T06:40:48 | 2021-03-16T06:40:48 | 328,822,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404, redirect
from ..models import Question, Answer
@login_required(login_url='common:login')
def vote_question(request, question_id):
"""
seok 질문추천등록
"""
question ... | [
"dhehdtjr007@naver.com"
] | dhehdtjr007@naver.com |
0ba9aca97b1c1f59da1afb823752e4f46a680b96 | feae88b4a8bc0aba388dcc2eeb7debb49d736809 | /apps/second_app/urls.py | fb99d9914ffc2c2fedcdee10fd14c61afe4e550b | [] | no_license | john-gore/belt3_retry | ec8a5582382fc00f0bcb3cf973fe9cd073ed571c | 03aa6d7ff9988615a96d2c882282107d389b1c52 | refs/heads/master | 2021-07-21T11:11:42.972344 | 2017-10-29T21:34:09 | 2017-10-29T21:34:09 | 108,772,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.conf.urls import url
from django.contrib import admin
from . import views
from ..first_app.models import User # This line is new!
urlpatterns = [
url(r'^$', views.index, name='index') # This line has changed!
] | [
"johngore@Johns-MBP.localdomain"
] | johngore@Johns-MBP.localdomain |
958e3c40bcd396ccc9057e1589dd0d12791f5c09 | b4e8b85f5154bba569b83227d5d1a57acc9c10f7 | /Script/createdata.py | e0ccdc861d699f22b344f5489274d6c1994f61be | [] | no_license | Lazerbeam50/Roguelike-TBS | 1380bd2ce34705e9c3ff8bd77cf2c8ce8a5e3aac | 711e92439e91d0bf95cef6137d20653e0e504088 | refs/heads/main | 2023-03-06T04:19:42.842811 | 2021-02-20T21:28:27 | 2021-02-20T21:28:27 | 340,178,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,428 | py | """
Used to set up the empty database and tables.
"""
import sqlite3
def set_up_empty_database():
db = sqlite3.connect('Game data/game_data')
cursor = db.cursor()
#Ambiguous names
cursor.execute('''
CREATE TABLE IF NOT EXISTS AmbiguousNames
(
id INTEGER PRIMARY KEY,
name TEXT
)
... | [
"FSolofin@gmail.com"
] | FSolofin@gmail.com |
50f0a61a6acffc49e6f9907a711fbfbce9e14a7c | 9fa6547def43d4d56892eafa3f0a7f7b54a50227 | /src/backend/app/tasks/config.py | 3d9fb115ecd781a3ffd1f1a581be539c4afd6933 | [
"Apache-2.0"
] | permissive | code4security/LuWu | f66c23fe17605840c2781e38d2378f5ede03c6bd | 47ae6e1c5a177b1c5e4253f4158db5a50c04d1dc | refs/heads/master | 2022-11-26T08:40:29.565173 | 2020-07-08T01:14:01 | 2020-07-08T01:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | from typing import List
from pydantic import parse_obj_as
from app.crud.crud_config import crud_isp
from app.db.session import session_manager
from app.schemas.config import IspItem
from app.tasks.base import BaseTask
from utils.redis import RedisPool
class ReloadVpsIspConfigTask(BaseTask):
name = 'reload_vps_i... | [
"root@lazymaple.pw"
] | root@lazymaple.pw |
bea2ef34103c1be80a214a122e6c43d572c7b693 | f4f09a1a04ff6f3029b5bd4c7f16a7315387cdd3 | /avatar_pose_controls/handctrl_gestures/__i.py | 308487f520d39e61e5666a7e30a22a54ac1c8d1e | [
"MIT"
] | permissive | YetzabethGC/chilean_sign_language_speller | 469d268c90c8d1b379a7ae95fe655cfe0c7ea23b | c7fa69321ef4a6073b88979432eca98f27f7bf47 | refs/heads/master | 2023-02-02T12:52:21.211099 | 2020-12-21T22:30:05 | 2020-12-21T22:30:05 | 284,134,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import bpy
import sys
sys.path.append("/home/vpoblete/yetzabethg/New Folder/") #DIRECTORIO CON CÓDIGOS DE CONTROL
import handctrl as hc
#####CONTROL DE LAS MANOS######
#Mano izquierda
hc.hLH(0) #ALTURA(0= REPOSO, 1=ESTOMAGO, 2=PECHO, 3=CUELLO, 4=CARA, 5=CABEZA)
hc.dLH(0) #DISTANCIA AL CUERPO(0= ... | [
"yetzabeth.gonzalez@hotmail.com"
] | yetzabeth.gonzalez@hotmail.com |
96871bfb4da9eeaef49b953463556f6f8f8b9173 | 254db35021faf41430b3ffc98f1deae17c881ea5 | /wine_recipes/urls.py | 2b49eee6357796ac7b3ded5a70da46ad6d1e6e2b | [] | no_license | smiledt/IS411-Winesitters | 4e4f71f9eaf8f9468d2c05413f97ac5bad4bdeaa | 2e6946a6b7f558e3ec441d0a77505587fda48c37 | refs/heads/master | 2023-07-31T03:52:56.209082 | 2020-05-12T11:17:19 | 2020-05-12T11:17:19 | 238,153,903 | 1 | 0 | null | 2021-09-22T18:59:20 | 2020-02-04T08:05:11 | HTML | UTF-8 | Python | false | false | 350 | py | from django.urls import path
from wine_recipes import views
app_name = 'wine_recipes'
urlpatterns = [
# Index pattern
path('', views.index, name='index'),
# /wine_recipes pattern, this one will be the final
path('wine_recipes/', views.recipes, name='wine_recipes'),
path('new_recipe/', views.new_... | [
"dereksmilees@gmail.com"
] | dereksmilees@gmail.com |
add8e9fd2525edaad3e388569632dcd7a8a6e0c0 | abc4991a47998d5a6946c2609cc9b6926b95c59e | /get_by_tor.py | e0fb5200e94e646706f21f1cd2f52066f1600114 | [
"MIT"
] | permissive | Guiraud/Formation-Scraping-1 | 09ad6651d3d210f41300fd126008d7bfcc6f685f | 2194a06da9fc727abe160157295f7e984161c0a3 | refs/heads/master | 2022-12-12T21:02:11.477275 | 2019-08-07T21:22:52 | 2019-08-07T21:22:52 | 201,124,297 | 0 | 0 | MIT | 2022-12-08T05:59:20 | 2019-08-07T20:37:08 | Python | UTF-8 | Python | false | false | 872 | py | from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
import os
profile = FirefoxProfile(r'/Users/mguiraud/Library/Application Support/TorBrowser-Data/Browser/o45k8lgc.default')
profile.set_preference('network.proxy.type', 1)
profile.set_preference('network.proxy.socks', ... | [
"mehdi.guiraud@gmail.com"
] | mehdi.guiraud@gmail.com |
458f132534c8a8adb8eae398e8594983f35991ad | 4501dc41b82969b665f9d68ffc8729fabbd50b60 | /1-flask/venv/bin/flask | 961e2559b9e1cecd0dcd703ed36f1016a11f90f3 | [] | no_license | iancmason/100daysOfPython | f12ad1498a7f1d6a635fc73cfb0aaf09c59fcb68 | a93ba6ed1b4ab009734c0454f4f132114a16abb9 | refs/heads/master | 2021-06-21T07:18:42.825660 | 2021-01-22T19:35:05 | 2021-01-22T19:35:05 | 201,953,731 | 0 | 0 | null | 2021-03-30T02:44:51 | 2019-08-12T15:06:21 | Python | UTF-8 | Python | false | false | 260 | #!/Users/imason/code/Python/100daysOfCode/1-flask/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ian.christopher.mason@gmail.com"
] | ian.christopher.mason@gmail.com | |
f205239515d090b06d7334b477d110d97c8c5e8c | 33b97572f76c7f6ebfac4407ba2bca467edf0745 | /batting_order_back_test.py | 37253b7d77e4920adf5e9e0e14ce386e307c059f | [] | no_license | fidler-analyst/Batting-Order-Optimization | 0e83247cf4a4df226a6130a45e4c2421ff9a143e | 88a7eddaa43f245cc2cd7030f3ac5d3527d76967 | refs/heads/main | 2023-08-24T06:14:41.964184 | 2021-10-16T22:24:22 | 2021-10-16T22:24:22 | 389,487,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,712 | py | #batting_order_back_test
import pandas as pd
import numpy as np
df3 = pd.read_csv(r'C:\Users\maxfi\Desktop\Python\baseball\2021-mlb-season-pbp-feed.csv', usecols \
= ['GAME ID', 'BATTER', 'PLAYTYPE', 'ROADSCORE', 'HOMESCORE', 'INNING'])
df3 = df3.dropna(axis = 0)
HOME = np.where(df3['INNING'] == 'B', 1, 0... | [
"noreply@github.com"
] | fidler-analyst.noreply@github.com |
a66a276129d5106408fd6ed8913421cd6fca40fd | 2c09147aa1622d749d7356eb941ef53ec4793184 | /phase_1.py | 3502d36f447ec37638e4d2b3e2c4e0bfdce4ef38 | [] | no_license | TheBroMoe/Berkeley-DB-Kijiji-Query | 7812ee9daa9c6e538643a9a8d65c26b5cd23074c | dea68293824889157c3336579c009614ca1f13e4 | refs/heads/master | 2020-04-07T18:40:42.484991 | 2019-07-22T00:24:41 | 2019-07-22T00:24:41 | 158,619,521 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,607 | py | import re
'''
This file includes terms extracted from ad titles and descriptions; for our purpose, suppose a term is a consecutive sequence of alphanumeric,
underscore '_' and dashed '-' characters, i.e [0-9a-zA-Z_-]. The format of the file is as follows: for every termT in the title or the
description of an ad with id... | [
"wespeterson2@gmail.com"
] | wespeterson2@gmail.com |
e0e6bb89daac937ec046ab4dbb02ff8fd1a54917 | 59e3082ce3a2f9e873b908c669009acbcbf79d78 | /speech.py | 1d53100f60e3e8a122f23199e4b459480580971e | [] | no_license | PROTO204/chef | 0e5529f8f3b582677fe6ea98521ad113596be7a0 | 1df3b34cfd5596f06776b764d5284b539dc44904 | refs/heads/master | 2020-05-19T19:22:12.098925 | 2019-05-02T05:36:14 | 2019-05-02T05:36:14 | 185,178,035 | 0 | 0 | null | 2019-05-06T10:50:57 | 2019-05-06T10:50:57 | null | UTF-8 | Python | false | false | 341 | py | import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something")
audio = r.listen(source)
try:
print("You said:" + r.recognize_google(audio))
except sr.UnknownValueError:
print("could not understand audio")
except sr.RequestError as e:
... | [
"siba@nyu.edu"
] | siba@nyu.edu |
7c84eefc810d6353c7ea038bea797d19876b7ea6 | ded95a944d97f8892f0041242181d035ef120644 | /sigmaz_nonadiabatic/nlevels=20/non_adiabtic.py | 90125498bab58acdd70f4858a82f18aebbc30adf | [] | no_license | Mulliken/dataAnalysis | ed844fbe7366a19ac3b47754efe5edb137ec8eb4 | 0f5a891587e791ae607fb7f6fb033f6088ae39d0 | refs/heads/main | 2023-08-19T09:50:20.621929 | 2021-10-08T15:57:52 | 2021-10-08T15:57:52 | 391,789,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | import numpy as np
from scipy.optimize import curve_fit
# from fishbonett.starSpinBoson import SpinBoson, SpinBoson1D
from fishbonett.backwardSpinBoson import SpinBoson, SpinBoson1D, calc_U
from fishbonett.stuff import sigma_x, sigma_z, temp_factor, sd_zero_temp, drude1, lemmer, drude, _num, sigma_1
from scipy.linalg i... | [
"kavat.lux@gmail.com"
] | kavat.lux@gmail.com |
fbc05970539a311c1532e03d1461d962abe1cae2 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_PointArray.py | 302c83b9f7d628767effb2ae4bd898435e6dc65f | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,546 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from vector_map_msgs/PointArray.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import vector_map_msgs.msg
import std_msgs.msg
class PointArray(genpy.Message):
_md5sum ... | [
"907097904@qq.com"
] | 907097904@qq.com |
2326a5cd67d0e36dfc987657a3b77f64b1108019 | 5de646fb3ecf10ecb45e05018a23b6345fb9ca53 | /codejam/2020 Qualification Round/d.py | e358bdc477498577b9dcea874b2bbacb4f08905f | [] | no_license | PPinto22/LeetCode | 5590d6ca87efcd29f9acd2eaed1bcf6805135e29 | 494a35542b61357c98c621202274d774e650a27c | refs/heads/master | 2022-04-29T20:37:31.085120 | 2022-04-02T12:02:30 | 2022-04-02T12:02:30 | 201,478,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | from typing import Union, List, Tuple, Optional
def solve(B):
def set(index, value):
nonlocal control_equal, control_complement, known
# Fix to prevent unpaired bits right before a fluctuation
if (not control_complement or not control_equal) \
and (query % 10 == 0) \
... | [
"pedropinto24@hotmail.com"
] | pedropinto24@hotmail.com |
704af671c34b28fe54897638a551ae17e85e2de8 | 77f880463d3dc6a7d5e314c1001641370b00e49b | /tests/test_client.py | d47c69a88a4435a499209cb2f66606431a49934a | [
"MIT"
] | permissive | IngoKl/simple-xapi-client | 81e615698a33f01bd76d4e5b2dee9000b1397d58 | 23258d2af5d461f95d431265f8af6674f7f05b32 | refs/heads/master | 2022-12-08T08:01:48.160952 | 2020-08-24T10:57:25 | 2020-08-24T10:57:25 | 289,899,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | import uuid
import configparser
from simple_xapi_client import LRS, XapiStatement, XapiActor, XapiVerb, XapiObject
config = configparser.ConfigParser()
config.read('settings.conf')
test_cfg = config['test']
def test_config():
assert(config.sections() == ['test'])
def test_simple_put_statement():
statemen... | [
"ikleiber@gmail.com"
] | ikleiber@gmail.com |
232daecfb8fa2a362ef8328b7c89287ecd2fb7aa | ec44c3fff2eb9179b3c5e3386467563492b66387 | /globbing .py | b53b658c5247417a7a115ffd0676cdf952981737 | [] | no_license | SonNinh/terminal | 41a3ecb61a6a067af4d308ce247f41dd73f86db9 | 61ac6605235f22248733870a0b7cb253fb153359 | refs/heads/master | 2021-07-07T20:46:16.262103 | 2020-08-25T15:28:10 | 2020-08-25T15:28:10 | 179,713,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | #!/usr/bin/env python3
from re import findall, match, split
from glob import glob
def get_token_list(input_from_command_line):
"""
get input string from command and split it up into tokens.
A token is a none-space string if it begin with a word
Else, if it begin with a [backquote, single quote, double... | [
"sonninhngocba@gmail.com"
] | sonninhngocba@gmail.com |
62755ebfabc1c13420961bb6af14666e8286ca85 | a477e529b162fe45ef4ba0a73c847096e73dae57 | /source_view/urls.py | 0bc818995892077897730d447d324f0a53e6211e | [] | no_license | ubhisat/slack_source_view | 13ff8f0869a1957f7c13bdeaba4e32a4e5bbc42f | f939fc7672a0808702d5becbc74ba580ae6ae002 | refs/heads/master | 2021-01-01T18:37:08.772781 | 2014-11-12T08:15:16 | 2014-11-12T08:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.conf.urls import include, url
from .views import IndexView
urlpatterns = [
url(r'^$', IndexView.as_view(),
name='index'),
]
| [
"satmeet@nclouds.com"
] | satmeet@nclouds.com |
12efbe3435603eb9e953e20a0996af85885357c7 | dc931801b35d0e2a05209378e9e1a148c73e2a98 | /crawlers/smackjeeves_crawler.py | a034849493110476ff37ebfe00da7a379ff6901b | [] | no_license | regeto/comics-crawler | 102dfe217634c3dd8cf7c14f3c11af7564e1562a | 6f86621acf031bdfd05761278fb29bcbd07b12fa | refs/heads/master | 2016-09-06T07:09:20.825799 | 2015-01-02T21:02:51 | 2015-01-02T21:02:51 | 28,471,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import re
from crawlers import Crawler
class SmackjeevesCrawler(Crawler):
site = "Smackjeeves"
url = "smackjeeves.com"
search = "http://www.smackjeeves.com/search.php?submit=submit&comic_title=%s"
def get_chapters(self, series_url):
prefix = series_url.split(".")[0] + "."
html = self.... | [
"regendokira@gmail.com"
] | regendokira@gmail.com |
ec987b94aa935fcb73e88d0b7806f58298647634 | 62bf4ccfe2693157a838fb9f5759f912e79c669f | /workshop/lab_price_deviation_corr.py | 124bcab22c249fa55db0707f686462ce489bff0d | [] | no_license | rafaelxiao/athena | 249ecbe56816f9ec9e7f6d4e1d0075a0b5f10e44 | 7501d7b0991e29a35c574ede4f3a4338e26649c5 | refs/heads/master | 2021-01-13T13:14:41.247613 | 2018-01-29T14:13:24 | 2018-01-29T14:13:24 | 72,708,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | import messenger as ms
import analyst as al
import numpy as np
import assistant as at
import matplotlib.pyplot as plt
h = al.PriceDeviation()
h.price_diff_list_save('002415', date='2017-06-28', duration=600, smooth=3)
origin_data = h.price_diff_list_load('002415', date='2017-06-28', duration=600, smooth=3)
origin_data... | [
"rafaelxiao@hotmail.com"
] | rafaelxiao@hotmail.com |
d27e3a0a5682a13390fb54adcdbba787c16b8c52 | 3c81565e599b4db30c58c5eac871becd7739231a | /Backend/DjangoProject_1/users/views.py | d95ba18d24db3904668e2a510d32eb2fe6f91831 | [] | no_license | alifelham/Bus_Management_System | 8517be21d8715eb4fd56117c880eb7cffa460247 | f8ef3ffebccc6f560fc2624af53d040911cd8f31 | refs/heads/main | 2023-08-01T07:17:28.215221 | 2021-09-19T18:01:42 | 2021-09-19T18:01:42 | 388,483,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from django.shortcuts import render, redirect
# importing django forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
# defining a function for registration
def register(request):
# the form is only given if a post request is made else it is a blank return
if... | [
"noreply@github.com"
] | alifelham.noreply@github.com |
8aadc45ac8ed74363bbca2826d0e6709ba10a478 | fbf19ea11edf7e862a10ba5e1ac2d45a97b65c5a | /authentication/middleware.py | 2daa243dc6edf7743dbd7d8ddfdf4d766a0cfbe7 | [] | no_license | AlexandruGhergut/epic-online-judge | c4bed0e69a98d369a9f95c00b9529a4967db9818 | 1af79e9343e722f352d974f445ad641c79016667 | refs/heads/master | 2021-03-22T03:22:45.447253 | 2017-06-29T06:19:48 | 2017-06-29T06:19:48 | 86,570,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from django.urls import reverse
from django.utils.deprecation import MiddlewareMixin
from django.http import HttpResponseRedirect
class SetUsernameRedirectMiddleware(MiddlewareMixin):
def process_request(self, request):
user = request.user
if user.is_authenticated:
redirect_url = rever... | [
"alexandru.ghergut94@gmail.com"
] | alexandru.ghergut94@gmail.com |
d5c5909ea6644335136f2d82bcda8a30fa14ccab | 48477a15ad96505def8097a6c098826b1e5cfe1a | /2_basic_algorithms/2_sorting_algorithms/14_pair_sum.py | 9e1422278c00aead20f8116beaac4b3230077a6d | [] | no_license | 450703035/Data-Structures-Algorithms | 02cd5bbb92ce25019fce4955af38b0317b4f4cac | dde33560fcb3e3ff41cf8bd37a454f8c13b15138 | refs/heads/master | 2021-05-22T02:25:03.554870 | 2020-06-27T14:23:24 | 2020-06-27T14:23:24 | 252,927,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | # Pair Sum
'''
Problem Statement
Given an input array and a target value (integer), find two values
in the array whose sum is equal to the target value.
Solve the problem without using extra space.
You can assume the array has unique values and will never have
more than one solution.
'''
def pair_sum(arr, target):
... | [
"danny.wangle@gmail.com"
] | danny.wangle@gmail.com |
e79db74e458b1f23bf9c7d355f33c7457e7e49b8 | 45272da6d64161a586b1dd41df63b8f701f38e39 | /Easy Problems/1-10/1easy.py | 075277c849e0a410bcde57f4d5bf459e7c1e8fad | [] | no_license | Lucas-Guimaraes/Reddit-Daily-Programmer | 559f813d2ee1a06e80a2b260bcb43718ae50b8bf | 45d554d0e0f8bc67e2111bede3a45f77f5512d7b | refs/heads/main | 2023-07-31T18:36:48.774791 | 2021-09-13T04:08:09 | 2021-09-13T04:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | #https://www.reddit.com/r/dailyprogrammer/comments/pih8x/easy_challenge_1/
user_name = raw_input("Put in your name: ")
user_age = raw_input("Whhat's your age?: ")
user_screenname = raw_input("How about a username?: ")
print("Your name is " + user_name + " your are " + user_age + " years old, and your username is " + ... | [
"noreply@github.com"
] | Lucas-Guimaraes.noreply@github.com |
37bf81f3ad11ff153ef7e0c65f8e73638bd8e747 | 76ae6d1194c4440b86eac56e1ed2d42f745e612c | /mcds_dcl2isa-pre-v1.py | c673f914ebc0520107f6229d628e42b73a175689 | [] | no_license | rheiland/mcds2isa | 76a551df09233bd976268c44cf0fa7968f87c075 | c0b1245fafd133701ff41fe12153543b73cb94e6 | refs/heads/master | 2021-07-21T00:11:43.103167 | 2019-08-27T17:23:19 | 2019-08-27T17:23:19 | 143,934,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,636 | py | #
# mcds_dcl2isa.py - using a MultiCellDS digital cell line XML file, generate associated ISA-Tab files
#
# Input:
# a MultiCellDS digital cell line file <DCL-root-filename>.xml
# Output:
# 3 ISA files:
# i_<DCL-root-filename>.txt
# s_<DCL-root-filename>.txt
# a_<DCL-root-filename>.txt
#
# Author: Randy H... | [
"heiland@indiana.edu"
] | heiland@indiana.edu |
ddeb97e4d5e9190c47dcbecb8b9a7dbe7ca9dfe4 | bfd33836d69dd05d6e7720216cef6d341c35147b | /User/DanHD/class/Main.py | c45cc8fe6017a72125ec2f8a7222b820242a7acb | [] | no_license | ducdan/PYTHON-COURSE | 5371b65685769e88c2e14a38b9c86a2bdfc82b79 | cc5a26d0d8124087f711ee0ca354065df6ea4fcf | refs/heads/master | 2020-05-25T15:00:00.465760 | 2017-06-15T11:49:54 | 2017-06-15T11:49:54 | 84,941,845 | 1 | 2 | null | 2017-06-15T11:44:32 | 2017-03-14T11:34:28 | HTML | UTF-8 | Python | false | false | 612 | py | #thua ke
# class Chu(Ong):
# def print_ho(self):
# print(self.ho)
class Ong:
def __init__(self):
self.ho='Tran'
self.__ten='Hung'
def __tai_san(self):
print("100 cay vang")
class Me:
def __init__(self):
self.tai_san='200 cay vang'
class Cha(Ong):
def __init__(... | [
"51200482@hcmut.edu.vn"
] | 51200482@hcmut.edu.vn |
3f127a05979e2337238db15b7faefd643873ce8f | 4bdd0fa82a314f7d005400fe1bb8bb7c42e9fa85 | /manage.py | aaa1f9e04c23e569b10fefac82ec289aeca70ba1 | [] | no_license | PavloKuptsov/TestTask2021 | 05bf9d9fd1141eac7e029519b86a398422ea5fb7 | 19e66ea74065da1609e3abbb7046e5e90164049f | refs/heads/main | 2023-04-24T13:34:00.921427 | 2021-05-12T18:54:36 | 2021-05-12T18:54:36 | 366,821,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'socialTestTask.settings')
try:
from django.core.management import execute_from_command_line
exce... | [
"pavlo.kupstov@sigma.software"
] | pavlo.kupstov@sigma.software |
19b4e9540fda721864be49fb8fc6b663fcd29f9f | e500f23b931008b33e8e8f46e4ebc46bd5e35cd6 | /data_layer.py | a0caf0643ec1b8071963348f249c279580a31e4c | [] | no_license | spathak99/Covid-19-Visualization | 5e30123b059f48348bd6fb415483811814509f1a | 3d80c2aae77c5025644a367168b2dafab3817136 | refs/heads/master | 2022-05-20T20:55:58.905677 | 2020-04-23T06:44:19 | 2020-04-23T06:44:19 | 258,126,435 | 1 | 0 | null | 2020-04-23T07:24:50 | 2020-04-23T07:24:49 | null | UTF-8 | Python | false | false | 4,513 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 20 05:24:53 2020
@author: lukas
"""
#imports
import pandas as pd
import global_code
#Data columns as a variable struct
class Columns:
SNO = 'SNo'
OBSERVATION_DATE = 'ObservationDate'
PROVINCE = 'Province/State'
COUNTRY = 'Country/... | [
"checker-tracker@web.de"
] | checker-tracker@web.de |
76d2a881bf9e6396738d1fd20530828d0772d4dc | 3b298a922bea8249f4459f4252605c0774cc00f9 | /test/test_cliffworld.py | ac44640d760d7d32e0a3332e227f04cc5b3eba52 | [
"MIT",
"Python-2.0"
] | permissive | bouali-meriem-estin/tabular-methods | 536fd07ec05ccfb5fc3109cdc59e7bd2e79590a5 | 05ee6488feffc64d3bb7335f26b2e9688d90a57b | refs/heads/master | 2023-06-09T14:01:01.687901 | 2020-07-03T15:23:03 | 2020-07-03T15:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | import sys
sys.path.append("..")
import numpy as np
from env.grid_world import GridWorld
from scipy.io import loadmat
def test_cliffworld():
# load the test data
grid_world = loadmat('../data/test_data/cliffworld.mat')['model']
# specify world parameters
num_rows = 5
num_cols = 10
restart_stat... | [
"david.lines.dl@gmail.com"
] | david.lines.dl@gmail.com |
fe096733995179810a8f5a1cd1a2c0c8aa89bd5d | 5fe7929f129584688b75706334921a02bfa93a20 | /aide_design/unit_process_design/prefab/lfom_prefab_functional.py | 470d5e65aea0ede5f5d25e09810f58fc0555ea2f | [] | no_license | FelixYuHengYang/moops | ff1b1c416151d873a13d91109b17683d6656fbed | 82f018b2f39b58cf08c990cc986d21f67ac265f9 | refs/heads/master | 2021-04-30T06:13:07.663966 | 2019-05-05T18:38:11 | 2019-05-05T18:38:11 | 121,437,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,872 | py | # -*- coding: utf-8 -*-
"""
Edited on September 1, 2017
@author: Monroe Weber-Shirk
Created on Wed Jun 21 17:16:46 2017
@author: cc2467
"""
#Here we import packages that we will need for this notebook. You can find out about these packages in the Help menu.
# although math is "built in" it needs to be imported so i... | [
"31310824+skittlesburst@users.noreply.github.com"
] | 31310824+skittlesburst@users.noreply.github.com |
8735f5b0e9167684495efe5852cebc7defa664f7 | 930309163b930559929323647b8d82238724f392 | /abc155_c.py | 6b0f7c6960bceb99ef3c1e6274c2f06a7b5baa8f | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import collections
N=int(input())
S=[input() for i in range(N)]
S=collections.Counter(S)
max_v = max(S.values())
for k,v in sorted(list(filter(lambda x:x[1]==max_v, S.items()))):
print(k)
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
410559c8f26e95c96374a7fea4724d3d00169ba7 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-ways-to-earn-points.py | 6707c76b184e8c02c07e41ef08fcbd9b81e9220e | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,069 | py | # Time: O(n * t * c)
# Space: O(t)
# knapsack dp
class Solution(object):
def waysToReachTarget(self, target, types):
"""
:type target: int
:type types: List[List[int]]
:rtype: int
"""
MOD = 10**9+7
dp = [0]*(target+1)
dp[0] = 1
for c, m in ty... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
526abb44076323b13492031101bc312d813868d2 | 40796d49a6d50237900ac1a1a20648b546613d18 | /python/applications/mobdat/common/graph/LayoutNodes.py | 333b5941c57af701d1ba71064bdf91f907c25351 | [] | no_license | Mondego/spacetime-apps | c32abca98134d80f5bff965c8d74550c8109821d | c2d3a714cc2819f4a72d2d0b1b8c129d69c4de7c | refs/heads/master | 2021-01-23T03:43:08.197768 | 2019-07-27T22:08:58 | 2019-07-27T22:08:58 | 86,112,423 | 3 | 3 | null | 2019-07-27T22:08:59 | 2017-03-24T21:34:10 | Python | UTF-8 | Python | false | false | 10,237 | py | #!/usr/bin/env python
"""
Copyright (c) 2014, Intel Corporation
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 above copyright notice,
this list of conditions and the follow... | [
"ra.rohan@gmail.com"
] | ra.rohan@gmail.com |
25cc35183020aef1120dbf3d18e7b3ab3b4fbcd8 | 202539c64a109ea1d59b2ea91fd4eaf99b9ef407 | /world/settings.py | e42be1f327bc5c3336f3948fec10939a49b737a6 | [] | no_license | Ahmansee/newman | 95a3ee006248c93d7fc8a2ecf30e2168784d587b | 3f6d982b3701b88b2d53af6938441c8b98728853 | refs/heads/main | 2022-12-24T01:47:31.839599 | 2020-10-02T11:20:25 | 2020-10-02T11:20:25 | 300,582,816 | 0 | 0 | null | 2020-10-02T11:20:26 | 2020-10-02T10:42:51 | null | UTF-8 | Python | false | false | 3,249 | py | """
Django settings for world project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from ... | [
"samyisotop@gmail.com"
] | samyisotop@gmail.com |
a65dddcf69a9be612371a4aa3fd4b4d9a448c0ba | dea03a31e322a06d743b48d714389724591dd45d | /testProject/app/migrations/0002_auto_20191017_2144.py | d424e86a3efcdb901d835ff701542334e57e3659 | [] | no_license | alanpolimentes/test | c5d4f50148649e047c2e9bdca502cb83ad8ff36b | d3c0d40d3292cefd6241e2f9ffe930a701ceaa33 | refs/heads/master | 2020-08-17T00:56:20.518223 | 2019-10-18T22:55:58 | 2019-10-18T22:55:58 | 215,583,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | # Generated by Django 2.2.6 on 2019-10-17 21:44
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='categoria',
name='id',
... | [
"alan.garcia@polimentes.mx"
] | alan.garcia@polimentes.mx |
26520cf0e4d572626cca7f3ae58470069e37fd63 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GLES2/NV/read_buffer.py | 638349916933fad25c3ba754755ffda4f1e717dc | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 617 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
import... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
3ed100785341bbd1cd924b27b04e790838d9c78d | bbe169a02aaec4e6744350530d835af17587cf09 | /models/vgg19_localization.py | d743a694819efc1af8a7865e8222a5d65f3eab69 | [] | no_license | atwang16/sp19-6s897-colon | af4fca0b472ca9e9d4039794b4e33fa9640d1e73 | e414708d1af6953d89ea7cdf88ceeabd04a56136 | refs/heads/master | 2021-08-06T20:42:29.518055 | 2020-06-01T06:27:34 | 2020-06-01T06:27:34 | 182,820,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | #!/usr/bin/env python3
# 64c-64c-p-128c-128c-p-(256c)4-p-(512c)4-p-(512c)4-p-1560fc-1560fc
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import MaxPool2D, Input, Flatten, GlobalAveragePooling2D
from keras.models import Model
from keras.applications.vgg19 import ... | [
"austinw@mit.edu"
] | austinw@mit.edu |
fd88c9382e2933697e301ad7e1c6fb31402f8d9c | 9f91d88b96ce10aadd0759132330a6b353b5cbe2 | /LeetCode/RE_add-two-numbers.py | dcd4373bac4d9c40521795a20dd62e5776694ff5 | [] | no_license | shivanishimpi/CP | b1c9bbace29892fa79183a941655ba216a79d1da | f74197fde545c90a8339f162adae532478ff451c | refs/heads/main | 2023-09-01T16:02:39.116495 | 2020-12-31T12:30:39 | 2020-12-31T12:30:39 | 308,958,764 | 2 | 0 | null | 2021-10-09T18:49:44 | 2020-10-31T19:39:38 | Python | UTF-8 | Python | false | false | 1,906 | py | """
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itsel... | [
"shivanishimpi9@gmail.com"
] | shivanishimpi9@gmail.com |
c19420c7182d6d7cac399f8ef28bbe96ae2b4058 | e00870366e2db04dfe739a5b1b17e9682de6a129 | /Geometric/Graphics/cube_model.py | 59859edf4ef6724693cc29e8fae753ddb936a2cc | [] | no_license | jwatson-CO-edu/py_toybox | 06b0243626fbe0a136b1fa4f9a74783321ee1601 | 7f3b2aaeb24e41002e9dee2f2af669006e1cbd5c | refs/heads/master | 2022-03-25T05:11:55.724434 | 2022-01-27T21:07:26 | 2022-01-27T21:07:26 | 230,351,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,535 | py | #! /usr/bin/env python
#
# <one line to give the program's name and a brief idea of what it does.>
# Copyright (C) 2001 Michael Urman
#
# This program 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... | [
"james.watson-2@colorado.edu"
] | james.watson-2@colorado.edu |
c23dd561e8a88cfa7422931a62513d59e6b6cbf6 | 6effd74388d87b4fbad1e2b858571189f575a850 | /5.py | 2e463301ee81a67ecde78622424e6cd2500244b5 | [] | no_license | wiesson/tdd-project-euler | b1521d521f1e2304b6180337c592716b68e3b055 | 189b772172ed723658924d6832f3c403bcc3f56e | refs/heads/master | 2021-01-17T20:16:40.359816 | 2015-06-23T16:27:40 | 2015-06-23T16:27:40 | 37,330,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | #! /usr/bin/env python
from functools import reduce
from math import ceil, sqrt
import unittest
def is_prime(prime):
# http://stackoverflow.com/a/4117879/2050629
return all(prime % i for i in range(2, ceil(sqrt(prime))))
def prime_factors(n):
primes_list = []
z = n
while z > 1:
i = 2
... | [
"wiese@sipgate.de"
] | wiese@sipgate.de |
4530a5673d72ef9a8eac58ce77431858da59fecf | b47853b6dcf8ab14f1dafeb2d613212a71329206 | /war/prefabs/warrior/mage.py | 8cc1d91efe572268825c7516d0560767f4180e6b | [] | no_license | hittun/pygamel | b75f5b340825a3d99a0087eb6d396dc1a5f26802 | adc294f076d7659dd6357a3365053c62a1868876 | refs/heads/master | 2021-05-16T20:46:53.776772 | 2020-03-30T15:48:08 | 2020-03-30T15:48:08 | 250,463,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
法师(Mage):
法师俗称AP或APC,是具有强大魔法伤害技能、但防守能力和移动能力偏低的英雄。
一些法师可以在短时间内造成巨大伤害,一些则是以长期持续伤害为主,爆发性的法师和刺客间的界线很模糊。
# @File : mage.py
# @Time : 2020/3/28 4:46
# @GitHub: https://github.com/hittun/pygamel
"""
from .warrior import Warrior
class Mage(Warrior):
def __init__(sel... | [
"hittun@163.com"
] | hittun@163.com |
06b5353e742f734e8a4918ac8cd03995c46fc663 | aed424076253479f698cb13acecb1800c9647092 | /Qlearn_proto/manual_control_data.py | 0e01b7793e33078e25cfe05dca7d8188e7c0739c | [] | no_license | starjh94/Drone-Hover | c2e93578ccf47c0e72b38f49441a0a393272ee4d | 60e3f7f56ed5c884bb860f2c1630b03d419b67c2 | refs/heads/master | 2021-01-22T17:42:54.250271 | 2017-12-23T00:20:04 | 2017-12-23T00:20:04 | 85,031,328 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,165 | py | import subprocess
subprocess.Popen(["python","degree_process.py"])
import sys, time
import navio.rcinput
import navio.util
import navio.pwm
import degree_gyro
import numpy as np
import Servo
import threading
period1 = 0
period3 = 0
start_time = 0
## Data numpy value initialize ##
np_gyro_degree = np.array([[0, 0]])... | [
"lbaksa21@gmail.com"
] | lbaksa21@gmail.com |
e5238361b8ddfb4b94907a15d69e41fc53033e74 | 7bc7fe046ce8393870ebba5b744d8809932f036f | /leetcode/344-Reverse-String.py | 606fa4bc8a47658edd61da99b3a186270acc50dc | [] | no_license | BrandonBlimp/Interview-Prep | 2d6376396f8349818c6ebd58130a95acbaa0df30 | b309883565bdc82a4a95dc441bbf0c2d1f89c3ae | refs/heads/master | 2020-06-07T08:52:40.148138 | 2019-06-20T20:20:09 | 2019-06-20T20:20:09 | 192,979,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # Write a function that reverses a string. The input string is given as an array of characters char[].
# Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
# You may assume all the characters consist of printable ascii characters.
# Example ... | [
"brandonloong.lim@gmail.com"
] | brandonloong.lim@gmail.com |
c606b6292b29221a89c5a63f93c792418b45da08 | d58ab1038a1fb412a45c7e471ec3bcbde1ce66a2 | /theZoo/pipelines.py | 7133a4d2045de932e6fb358a6c45da9dfb1a3251 | [
"MIT"
] | permissive | webclinic017/Tarantula | af316134bead2694a4501149def06aa2a8876420 | 1eb10c7d588493fabee0f8cf5269c737389dd193 | refs/heads/main | 2023-08-24T05:06:22.976241 | 2021-10-27T18:35:27 | 2021-10-27T18:35:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
# from itemadapter import ItemAdapter
from sqlalchemy.orm import sessionmaker
fro... | [
"georgereyes103@gmail.com"
] | georgereyes103@gmail.com |
9e36dee4daba7a090054dbc2c153be60056ec165 | 99f9b73530de837297f095689b250b8ebda8f836 | /project euler/prob1.py | b3fba06d1275ea9ae970cd68d930db97fe063ef9 | [] | no_license | ManimaranN/Competitive_solutions | 18cfcf648d85ac4c253690348c180836257cb6d4 | 34f49f9b05b674796335125f7087c4393c05d886 | refs/heads/master | 2020-03-25T05:18:32.165026 | 2018-08-07T16:24:59 | 2018-08-07T16:24:59 | 143,440,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | list = []
for i in range(3,1000):
if i%3 == 0:
list.append(i)
elif i%5 == 0 :
list.append(i)
i += 1
add = sum(list)
print("sum :", add)
| [
"manimaran.n36@gmail.com"
] | manimaran.n36@gmail.com |
9619928a1ab7f5e6f1375ccdfbd3e23c15e65270 | 1296db988387cc1e6a14db76f777cf2cdfca97ba | /corregraphe/core.py | 7a8795545a34fc696fd2fd741e8d584dbba8d89a | [
"MIT"
] | permissive | theodcr/corregraphe | 30529650a86a0722ff83aacbb2fc3556258cff11 | fec9bf844d7ea2dc870197580a4c59a1fad258b8 | refs/heads/master | 2020-06-25T21:25:21.888291 | 2019-09-15T08:11:53 | 2019-09-15T08:11:53 | 199,425,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | from typing import Dict
import hvplot.networkx as hvnx
import networkx as nx
from holoviews import Overlay
from pandas import DataFrame
class CorrelationGraph(object):
"""
Creates a correlation graph from dataframe.
Parameters
----------
data : DataFrame
data to use to compute correlatio... | [
"theo.delecour@gmx.com"
] | theo.delecour@gmx.com |
6f0cf4d61aa094e7e4958d5d2d42c7ee379e097f | 942a82cd1e34cd8f57e1d7f3272e4086605256ee | /config/settings.py | 4ab609f97c0680e52cc1f2490a6f0d441b5e6b02 | [] | no_license | hanieh-mav/SocialNetwork-with-drf | d451126f93e3735a8c9d6dbf714a8179785e15cc | d929704a3d9f26e1e0ca5d961a01ba7dd5c6bf84 | refs/heads/main | 2023-06-13T08:17:46.591597 | 2021-07-09T13:37:06 | 2021-07-09T13:37:06 | 353,754,846 | 2 | 0 | null | 2021-07-09T13:27:27 | 2021-04-01T16:04:26 | Python | UTF-8 | Python | false | false | 4,482 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
f... | [
"h.mehdiabadi@gmail.com"
] | h.mehdiabadi@gmail.com |
8723a4a6f9bb16968b5f83ec44895b30cb9da123 | d82b879f41e906589a0a6ad5a6a09e0a0032aa3f | /ObservationScripts/on_off/observe_moon_spec_analyser.py | 176f9c75c90dd4f6945052404f93c17615964d9f | [] | no_license | SETIatHCRO/ATA-Utils | 66718eed669882792148fe0b7a2f977cd0f6ac2e | 59f4d21b086effaf41d5e11e338ce602c803cfd0 | refs/heads/master | 2023-08-16T20:41:44.233507 | 2023-08-10T20:39:13 | 2023-08-10T20:39:13 | 137,617,987 | 5 | 5 | null | 2023-08-10T20:39:14 | 2018-06-17T00:07:05 | Jupyter Notebook | UTF-8 | Python | false | false | 867 | py | #!/home/obsuser/miniconda3/envs/ATAobs/bin/python
from ATATools import ata_control, logger_defaults
from SNAPobs import snap_dada, snap_if
import time
import atexit
import numpy as np
import sys
import argparse
import logging
import os
def main():
logger = logger_defaults.getProgramLogger("observe",
... | [
"wael.a.farah@gmail.com"
] | wael.a.farah@gmail.com |
21ac72b7d43b4b2cd092a87758265844e747314f | 7be17509048a46e8d33d051495f6c01d97aa1b14 | /plot_price.py | f735c59fce937df3e662928fdf125d59f865db16 | [
"Apache-2.0"
] | permissive | javierarilos/market_session | 7aca2d1fc0aaa37825d44fa6d4e15af67a2b93f6 | 35f3020acfdc771cb6a7bfddabb7ca481c792aa5 | refs/heads/master | 2021-01-10T08:56:45.200902 | 2016-03-17T14:13:40 | 2016-03-17T14:13:40 | 52,529,884 | 0 | 0 | null | 2016-03-17T14:13:40 | 2016-02-25T14:14:33 | Python | UTF-8 | Python | false | false | 327 | py | """ Load data from pickle session file, with only one instrument.
Plot prices after removing zeroes
"""
import matplotlib.pyplot as plt
import preprocess_data
session_file = 'f_mupssan20140901.F:FESXU4.pkl'
mkt = preprocess_data.load_session(session_file)
ts = mkt[:, 1]
last = mkt[:, 4]
plt.plot(ts, last)
plt.... | [
"javier.arilos@gmail.com"
] | javier.arilos@gmail.com |
aaa0827ca1960e9bbf5f709391f05f25418b11bd | 61594a19ffaca4b97f7905a82844132df6860837 | /trio2o/tests/unit/common/scheduler/test_pod_manager.py | 307430b4e306486df2ce0fcfff758d6dd657b1d0 | [
"Apache-2.0"
] | permissive | OpenCloudNeXt/trio2o | db679ab292162e564145fddaa55aa8f8c3c6c0b8 | f4d2d5458fbba71414edebf5e9f69b98abd2d080 | refs/heads/master | 2020-03-14T03:26:16.805389 | 2017-10-18T07:03:20 | 2017-10-18T07:03:38 | 131,419,855 | 1 | 0 | Apache-2.0 | 2018-04-28T15:09:21 | 2018-04-28T15:09:21 | null | UTF-8 | Python | false | false | 5,910 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | [
"yingfeicaozhang100527@gmail.com"
] | yingfeicaozhang100527@gmail.com |
76efc587e9870c67ce18c75d2a19291da2b320b2 | d051b7c8e9375beea6e4ee1a3375d120fde178ac | /moveit_experimental/moveit_jog_arm/test/python_tests/vel_accel_limits/test_vel_accel_limits.py | 2baf6a594a6baf04492bfe3afda8e1b276b15442 | [
"BSD-3-Clause"
] | permissive | anion0278/moveit | 3e4a35f5c37efb1c79cf6c7e52e49c9e2c43bf94 | 7c733c576d34bada28ff8986b1f71f06712d34a6 | refs/heads/master | 2023-02-23T17:01:51.947763 | 2021-01-31T14:28:45 | 2021-01-31T14:28:45 | 267,310,801 | 0 | 0 | BSD-3-Clause | 2020-05-27T12:16:41 | 2020-05-27T12:16:40 | null | UTF-8 | Python | false | false | 2,749 | py | #!/usr/bin/env python
import time
import pytest
import rospy
from control_msgs.msg import JointJog
from trajectory_msgs.msg import JointTrajectory
# Import common Python test utilities
from os import sys, path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
import util
# Test that commands that ... | [
"noreply@github.com"
] | anion0278.noreply@github.com |
b2df86aff826ef401a2e795e3a010d9464621cb0 | 2a0ec173d3e60ee01e07d348728b8517a07d6d0d | /light/select_max_region.py | 7746c4e201022dae8d4055452a0c275874b51860 | [] | no_license | pabogdan/spinnaker_vision | 62c22572e95cfc30a1ad60ef7473d215326b1dfa | b1939a432a672cb6dcd33966a175eb9f2027aca9 | refs/heads/master | 2021-01-18T10:33:41.928880 | 2015-10-21T14:07:45 | 2015-10-21T14:07:45 | 42,939,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | __author__ = 'bogdanp'
import nengo
import nengo_spinnaker
import nengo_pushbot
import numpy | [
"dwTheresnosugar2013"
] | dwTheresnosugar2013 |
3f35bb4275325e1c72d173246eef8e4413773be3 | 25b1d29a9e25629b1fcd469641cf871354b78761 | /Exercicios Listas/listas-17.py | 2ad5b9d2a814128ac5a02e43e1edc9a57313ce68 | [] | no_license | AndersonBatalha/Programacao1 | 0a73302e216ddd189f75231cbbae910743ab67b9 | 07ef756d6984f25d294ce4e758e8a671942581fa | refs/heads/master | 2021-07-15T14:17:34.661718 | 2017-10-15T17:33:20 | 2017-10-15T17:33:20 | 106,857,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 17. Em uma competição de salto em distância cada atleta tem direito a cinco saltos. O resultado do atleta será determinado pela média dos cinco valores restantes. Você deve fazer um programa que receba o nome e as cinco distâncias alcançadas pelo atleta em seus saltos e d... | [
"andersonpbatalha@gmail.com"
] | andersonpbatalha@gmail.com |
dfe222014934e58ee6918b968a783bb1b48102ec | 10475b80244955f380820898b0197de8b82cf41e | /user_mailbox/models/res_users.py | d1ef7eb440898de1151113aef51d2830182be539 | [] | no_license | marionumza/base | ec92de4ee50d319b4e9b95309059c99b766c5b11 | 044a5f5da659957d31e1c063375c5e83fc5d5134 | refs/heads/master | 2020-12-28T06:39:40.489441 | 2019-10-28T06:18:39 | 2019-10-28T06:18:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
"""Res Users Model."""
from odoo import models, fields
class ResUsers(models.Model):
"""Added list of incoming and outgoing mail server for user."""
_inherit = 'res.users'
incoming_mail_server_ids = fields.One2many("f... | [
"promitgt@gmail.com"
] | promitgt@gmail.com |
7f6f59e39a0cf95c2270f55d00248d46fc8634da | b1abf1f549b9e3029f3fb56bfcf3bf91a4258f4e | /Class_Weights_Mutual_Cold/MLP_Cold_hyper_KHI_500.py | eae1a01308f40d1e39b5393411f0135f15c7927f | [] | no_license | tundik/coldcompare2017 | d223954b62bc004781884a8f103bcae3c1c48c96 | 0d69828cf22198e31cc441a1c750d3c0f4fb3888 | refs/heads/master | 2021-01-18T04:10:53.003705 | 2017-04-01T19:29:17 | 2017-04-01T19:29:17 | 85,758,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,893 | py |
# coding: utf-8
from __future__ import print_function
import os
import numpy as np
from numpy import newaxis
np.random.seed(1337)
import keras
from keras.utils.np_utils import to_categorical
from keras.layers import Dense, Input, Flatten
from keras.layers import Convolution1D, MaxPooling1D, Embedding, Dense,Dropout ... | [
"czbalint14@gmail.com"
] | czbalint14@gmail.com |
0c0dd439cd2989daf5ab75b214422e48e706d813 | 023c5085b5aa58b1ee07e602ac2afdb17fc11ec5 | /Decision_Tree_Classifier/ReadData.py | 2463bb556dcc60857eb27d7fdcd7fe4e0579912e | [] | no_license | AnubhavGupta3377/Machine-Learning-Algorithms | b87b7d6c5934ca4f1c6cce6bcf6988156518faa3 | c454f88387f4e6a8cb5357826d793f0582df1efc | refs/heads/master | 2021-05-06T06:29:01.262205 | 2017-12-11T13:47:28 | 2017-12-11T13:47:28 | 113,857,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from collections import defaultdict
class ReadData:
'''
1. labels : list of all the labels of all the examples
2. features : list of list of feature values of all the examples
3. values : dictionary that maps every feature to the set of
possible values it can take
4. numExamples : numb... | [
"anubhagu@adobe.com"
] | anubhagu@adobe.com |
f65170ad67be87a0b687ba1d668c0e6b07848267 | fa03d0932cda3030a1b8da8f6ecfe1fe7314ba72 | /pyproject/scenario04/server/config.py | d4cb406de011985c9701cbfa9a0e9480aa41a2cc | [] | no_license | mathcircle/ccircle | 05d9310c535b5a7f613b3a8fda2eebc105f17b0c | dfc672a1b6a96169d179bb7292a43dd9d9510640 | refs/heads/master | 2020-12-03T00:43:11.324286 | 2019-06-02T05:21:45 | 2019-06-02T05:22:00 | 96,068,861 | 1 | 8 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | SERVER_HOST = '130.39.91.40'
SERVER_HOST_LOCAL = '127.0.0.1'
SERVER_PORT = 50382
SOCKET_BUFFER_SIZE = 4096
MAX_MESSAGE_SIZE = 2048
MIN_REQUEST_WAIT = 1.0 / 10.0
STATUS_GOOD = 'good' | [
"josh@ltheory.com"
] | josh@ltheory.com |
b6d70d3cd0bcef780e9d1bf21d1470f79ecdd2e7 | 2fc197681ac9cdd0346fe9ab56d9aa4d59b6f1d0 | /polyaxon/db/migrations/0001_initial.py | 27bab9b4b5e9c713404ae0d918e70a6b313ea7ff | [
"MIT"
] | permissive | dtaniwaki/polyaxon | 32e0fcfc4cd4b46d1d502ae26cd285dc9c11d55a | 04e3c9c9a732a2128233e8d1db1bdc1647fe7c55 | refs/heads/master | 2020-03-20T08:16:33.334881 | 2018-06-13T22:40:17 | 2018-06-13T22:40:17 | 137,303,634 | 0 | 0 | null | 2018-06-14T03:53:13 | 2018-06-14T03:53:13 | null | UTF-8 | Python | false | false | 52,402 | py | # Generated by Django 2.0.3 on 2018-06-12 13:31
import db.models.abstract_jobs
import db.models.repos
import db.models.utils
from django.conf import settings
import django.contrib.postgres.fields
import django.contrib.postgres.fields.jsonb
import django.core.validators
from django.db import migrations, models
import d... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
13420aecf149f66ef9cb63a68a5a090dbc8a2e3c | 6c3e475dcd95d14875a199466b8a7c744f61478b | /userProfile/userProfile.py | 1395f4986a45fed5e4b88da12ed0cb114aa8c04b | [] | no_license | webclinic017/tripleATradeBot | b4cce7a330e76f9f207c4d6f4d16327b1717a17a | 40b6130f52eb969336c7b602e698f41a2d8f947b | refs/heads/main | 2023-01-04T04:16:38.338563 | 2020-10-29T10:33:34 | 2020-10-29T10:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | from eventLogger import eventLogger as logger
from pathList import pathList
from alice_blue import *
import openpyxl
class userProfile:
userProfileWorkBook=""
profileName=""
userName = ""
password = ""
apiSecret = ""
accessToken = ""
aliceObj = ""
exchangeList = ['NSE']... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
b38a5417f4cf586733ab782b41c420ea59c10d53 | 6a084a2df2869ce3ad565610cbf92eccf00a233e | /states/postgres_user.py | c65e8d42284fe1a2a9ce2c6f70f436a95ff64235 | [] | no_license | ltxin/saltstack | 95b5356715cc918afec378e2926d9f9a1c7a85d5 | 30a493ef5e46bd7629c8ba400e559dab023c1431 | refs/heads/master | 2021-01-16T17:52:56.939714 | 2017-08-11T10:13:41 | 2017-08-11T10:13:41 | 100,019,324 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,166 | py | # -*- coding: utf-8 -*-
'''
Management of PostgreSQL users (roles)
======================================
The postgres_users module is used to create and manage Postgres users.
.. code-block:: yaml
frank:
postgres_user.present
'''
from __future__ import absolute_import
# Import Python libs
# Import salt ... | [
"it_ltxin@163.com"
] | it_ltxin@163.com |
44cea4fe3778010257338bd771d9d18ac7df6092 | 125c9f3d0180e2f11dce03c8edbd5f5924c26165 | /api/envProjet/Scripts/pasteurize-script.py | a41b70ca648548d889ad5856e91983d007be18b7 | [] | no_license | pasterp/WhatBrandIsThat | 816bbfd4918ad60e5f74952b1d50ec60b799d7cc | 3e70b7578d6029a3367630863db93064d2a6185a | refs/heads/master | 2023-01-23T10:26:02.119102 | 2020-05-26T13:26:26 | 2020-05-26T13:26:26 | 163,280,347 | 0 | 0 | null | 2022-12-09T18:26:23 | 2018-12-27T10:20:52 | Objective-C | UTF-8 | Python | false | false | 443 | py | #!C:\Users\Vbourdon\PycharmProjects\testRest\envProjet\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.17.1','console_scripts','pasteurize'
__requires__ = 'future==0.17.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"32929884+ValentinBou@users.noreply.github.com"
] | 32929884+ValentinBou@users.noreply.github.com |
208e6516ab0e2ac5658d992587c4ae1606eb7ff5 | c473ecff4600ade1ad126e483999a89677bfd635 | /lightcone_FRB_decreasingz_xlos_forHaloFinder.py | 8e9aa60945fd1516774db04bbf6f17c6fec64a77 | [] | no_license | pagano-michael/FRB | 1f34b5adac49ddfa09cd781e37a71f3ad173e5b9 | 33c17ed854ea2e37b44e350dbbdc6dba4ac16975 | refs/heads/master | 2023-02-06T07:54:51.310251 | 2020-12-27T15:18:26 | 2020-12-27T15:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,268 | py | #!/usr/bin/env python
# coding: utf-8
#This code takes in an arbitrary set of boxes, whose directory and redshift ranges you must provide, and makes a lightcone
import numpy as np
import matplotlib.pyplot as pl
import sys
import os
import astropy
from astropy.cosmology import Planck15 as p15
from astropy.cosmology imp... | [
"michael.pagano@mail.mcgill.ca"
] | michael.pagano@mail.mcgill.ca |
567c4f1b87268b45b3e5955082e71554b4e4551e | e3abb55ba514fb102ce01601ab0e9ebc15f5d26f | /code/l010_await.py | 1c1c6228bf6292b72ebae15c80d040f4c8a0b5a4 | [] | no_license | joshmarshall/coroutine-presentation | 1d8dec7a6c31a0ee5e8875883a326ea801300e93 | a6d07e70bdff286f45785f4127d854ea701a6a08 | refs/heads/master | 2023-09-03T04:23:20.422823 | 2018-01-03T10:19:50 | 2018-01-03T10:19:50 | 64,452,999 | 1 | 0 | null | 2017-11-19T21:17:58 | 2016-07-29T05:29:08 | Python | UTF-8 | Python | false | false | 1,248 | py | import asyncio
class Session(object):
@classmethod
def connect(cls):
return Session()
async def __aenter__(self):
print("Creating session...")
await asyncio.sleep(1)
return self
async def __aexit__(self, exc_typ, exc, tb):
# can also handle exceptions as nece... | [
"catchjosh@gmail.com"
] | catchjosh@gmail.com |
62abf1b5cf573596ca943d290748c41b37bd2e49 | 4dfb1731e42654d2694b9ea109b0da26f0e6215c | /qbittorrent_mod.py | d6a8fc5bab59ef956ce8f458554ba67a2d766cb4 | [
"MIT"
] | permissive | y2038558528/flexget_qbittorrent_mod | 3e89e13c8814e21de51e101f3430ce660b4cfcb5 | a49dacf0b4bf20217cb43df0ad94112b7dc67364 | refs/heads/master | 2023-03-22T22:00:04.330858 | 2021-03-15T13:45:02 | 2021-03-15T13:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,029 | py | import math
import os
import re
from datetime import datetime
from flexget import plugin
from flexget.entry import Entry
from flexget.event import event
from loguru import logger
from .ptsites.client.qbittorrent_client import QBittorrentClientFactory
class QBittorrentModBase:
def __init__(self):
self.cl... | [
"12468675@qq.com"
] | 12468675@qq.com |
cada27b71e62290be03d07aabfae414035418c63 | 465422bf294af104fe6963900f93d89280c211ec | /generator.py | 5ec266646aac7b586f740b247cc3c0a034133759 | [] | no_license | hevervie/Python | 9272215d31ba8cd83741beb4db80b9fe810be94d | eda55dd49d4b405cf434bdb96357bdf4c4856107 | refs/heads/master | 2021-06-04T10:49:04.122122 | 2016-10-18T13:22:05 | 2016-10-18T13:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #!/usr/bin/env python
#coding=utf-8
g=(x*x for x in range(1,11))
for i in g:
print(i)
#生成斐波那契数列
def fib(max):
n,a,b=0,0,1
while n<max:
print(b)
a,b=b,a+b
n=n+1
return 'done'
fib(6)
| [
"zhoupans_mail@163.com"
] | zhoupans_mail@163.com |
ee80ca6b31092e5fc1369e74a7618bf280402a55 | cf0ee22c5e880eae8098b09a5476e293cdd5c15e | /mod1.py | b0e32edc899d1fb3d8140d4222272f99e2b40b70 | [] | no_license | 90075sourab/daydictionary | 94124c52fe38b654b8a3025506fb1393c2e3d1fd | 43c37ca1f11fd0a93db6fec0d3768b649c8ea4fb | refs/heads/main | 2023-01-28T22:05:51.152902 | 2020-12-07T17:45:24 | 2020-12-07T17:45:24 | 319,397,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | import math
#l=[1,2,None,None,None,8,10,9,None,None,8]
def fillNone(num_list):
#this function find where None value start and where end
#and pass start and end index,None count to setMean function with list
start_none=False
count=0
for i in range(0,len(num_list)):
if num_list[i]==None and... | [
"sourabmajh@gmail.com"
] | sourabmajh@gmail.com |
7d167e1feb92203517a6bf08e8597b19369c565e | 42ffa887ca0ac7b54f0473880613865fe523fbfc | /src/viztracer/__init__.py | 38fd0acde24ec07503595c6da251f4e74a45e921 | [
"Apache-2.0"
] | permissive | tianxie1989/viztracer | e61090ac286a5b4ffe4c8f0265fde38bca68837b | 39a6314b2a5a30ede71be96bd5e174b2bdaa2664 | refs/heads/master | 2022-12-11T08:21:25.415858 | 2020-08-21T00:21:00 | 2020-08-21T00:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/gaogaotiantian/viztracer/blob/master/NOTICE.txt
from .viztracer import VizTracer
from .flamegraph import FlameGraph
from .decorator import ignore_function
__version__ = "0.3.0"
__all__ = [
"__version... | [
"gaogaotiantian@hotmail.com"
] | gaogaotiantian@hotmail.com |
9967bfbb48682fff74e8fa93da453b918a2d908b | 43715a10381ec37c275850c2e4f5302cde18de8c | /rooms/models.py | 8544758b5c7d49ad504a4a43c4f38656f611174b | [] | no_license | dongdong-e/airbnb-clone | 443f290baca4ea5c8f22f6c573383d11de4140f4 | 32c083c4e7f562d968639099d8439f26a666b175 | refs/heads/master | 2023-05-02T22:08:32.232594 | 2019-11-25T12:13:13 | 2019-11-25T12:13:13 | 219,305,006 | 0 | 0 | null | 2023-04-21T20:42:00 | 2019-11-03T13:27:34 | Python | UTF-8 | Python | false | false | 2,842 | py | from django.db import models
from django.urls import reverse
from django_countries.fields import CountryField
from core import models as core_models
class AbstractItem(core_models.TimeStampedModel):
""" Abstract Item """
name = models.CharField(max_length=80)
class Meta:
abstract = True
de... | [
"youngdong9800@gmail.com"
] | youngdong9800@gmail.com |
c97349deca021fa02bd1829b3ff9ee1936879849 | e943b5a6580cac653272c5cf85d4d46867c419fb | /3/3_dht.py | 358d35357e9ceca52e82169fdd97479ecad20227 | [] | no_license | afrizaloky/Praktikum-IoT | a505b078136d4e1c5961a3f34c997ee5a39b5856 | b719020bc2e6cff6adf298b24973fc23e93552ff | refs/heads/master | 2022-11-30T01:21:58.045866 | 2020-08-18T14:17:49 | 2020-08-18T14:17:49 | 287,882,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # Libraries import os import time import sys
import paho.mqtt.client as mqtt
import json
import RPi.GPIO as GPIO
import time
# GPIO Mode (BOARD / BCM)
GPIO.setmode(GPIO.BCM) # set GPIO Pins
GPIO_DATA = 4
# set GPIO direction (IN / OUT)
GPIO.setup(GPIO_DATA, GPIO.IN)
THINGSBOARD_HOST = 'demo.thin... | [
"afrizaloky@outlook.com"
] | afrizaloky@outlook.com |
84bb2ebc15bbae9433e6730fe93e4c27375addca | f19937a6e18fe1b3e53d082e00bb00e931c9f4bb | /element/app/main/__init__.py | 234e186929b64d10542c905c3489a16baafd17bb | [] | no_license | 239103/hello-world | 3ac9a2bb5d61ed22baa30a209f20a8beaf0219fd | ad6434b6d95c8186df387254670f02c735339346 | refs/heads/master | 2021-01-13T00:37:13.662641 | 2016-05-10T06:32:26 | 2016-05-10T06:32:26 | 47,692,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from flask import Blueprint
main = Blueprint('main', __name__)
from . import views
views.init_apis(main) | [
"cw0319@qq.com"
] | cw0319@qq.com |
d2a67d571a6ae128e18235f827a76b271bc6e6e8 | cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b | /ecloud/code/src/main/python/manor/streamlet/create_nodes.py | 159486c27b7fd7132e26361dfada9a5c35673aba | [] | no_license | 1026237416/Python | ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14 | ffa8f9ffb8bfec114b0ca46295db05c4213c4c30 | refs/heads/master | 2021-07-05T00:57:00.456886 | 2019-04-26T10:13:46 | 2019-04-26T10:13:46 | 114,510,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | # coding=utf-8
import yaml
from tornado import gen
from manor.screwdriver import stack_util
from manor.screwdriver.vendor_ecloud import list_app_resources
from manor.streamlet import StreamletBase,get_stack_resources
from manor.streamlet import download_path
from manor.util import generals
from manor.util import redis... | [
"1026237416@qq.com"
] | 1026237416@qq.com |
02b6660eee24fb762865d74b05c9a9efb1bdd81b | 0de10fdcc1ef06a33611219a464fbdd1c7c4ae8b | /pickupfinder/trunk/bin/pip-2.7 | 9de063f867c62edc35320e97bffd0d7c012351db | [] | no_license | steinbachr/WebDev | aa3f1577aed94be4ef9dbb3170c5ddebe309df66 | 7a8c53e1816ba0155ac818a83027000212396180 | refs/heads/master | 2020-06-04T08:59:04.309930 | 2016-12-07T01:04:34 | 2016-12-07T01:04:34 | 7,824,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | 7 | #!/Users/Bobby/Documents/Projects/PickupFinder/trunk/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.1'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('pip==1.1', 'console_scripts', 'pip-2.7')()
)
| [
"steinbach.r@husky.neu.edu"
] | steinbach.r@husky.neu.edu |
7ab917ac2d5b6dbd613df8ad73eaa04c6fd703b9 | e042a2437aa60fdc966c4bb97d87f27fb6378c9c | /vae-mnist/utils.py | cbc53886b453559793ea1d4b8a743196b76eca8f | [] | no_license | JZDBB/OOC-for-research | a8653f69a01fe9edd024411234ca422e220a437f | 265fbd1732460acbe2a36f4273635485abf0eb0c | refs/heads/master | 2020-07-04T04:08:51.130198 | 2019-08-21T13:00:38 | 2019-08-21T13:00:38 | 202,150,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import numpy as np
def merge(images, size):
h, w = images.shape[1], images.shape[2]
img = np.zeros((h * size[0], w * size[1]))
for idx, image in enumerate(images):
i = idx % size[1]
j = idx / size[1]
img[j*h:j*h+h, i*w:i*w+w] = image
return img
| [
"oxuyining@gmail.com"
] | oxuyining@gmail.com |
c8856f83a16833e017ba42874f29a120fe5c05d5 | 8d46b7767ee1dc8737247772fe8696263676fa09 | /app/recipe/serializers.py | 488f4974a99559614e326bb88b86aa0e6a8e0975 | [] | no_license | Diaga/recipe-api | 866997d58348923d039fcf18049f0f8e5738ce13 | e3796253c82e447566e46978e7fd67b0b01ce892 | refs/heads/master | 2020-06-22T18:40:32.851888 | 2019-07-26T17:59:51 | 2019-07-26T17:59:51 | 197,775,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | from rest_framework import serializers
from core.models import Tag, Ingredient, Recipe
class TagSerializer(serializers.ModelSerializer):
"""Serializer for tag model"""
class Meta:
model = Tag
fields = ('id', 'name')
read_only_fields = ('id',)
class IngredientSerializer(serializers.... | [
"diagaaos@gmail.com"
] | diagaaos@gmail.com |
3890719b1de619a46527dd653f3b42ca89a5dcb1 | 430cfece27c54180baf29b3199a67f79fe7d155c | /pygmt/tests/test_grdimage.py | 5ad3913c5bef4b786a5d1de55c30b647ec31619e | [
"BSD-3-Clause"
] | permissive | JamieJQuinn/pygmt | 139f25a3f4280b2d2d43c3fa63179437a9227d31 | 9269fbcb2fc7fca2d5c412acdb794be375c260ab | refs/heads/main | 2023-08-24T16:19:27.673739 | 2021-10-29T09:51:44 | 2021-10-29T09:51:44 | 384,119,354 | 0 | 0 | BSD-3-Clause | 2021-07-08T12:37:21 | 2021-07-08T12:37:21 | null | UTF-8 | Python | false | false | 7,213 | py | """
Test Figure.grdimage.
"""
import numpy as np
import pytest
import xarray as xr
from pygmt import Figure
from pygmt.datasets import load_earth_relief
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers.testing import check_figures_equal
@pytest.fixture(scope="module", name="grid")
def fixture_grid():
... | [
"noreply@github.com"
] | JamieJQuinn.noreply@github.com |
f74296653aa5f909d55be6b01db02cd11a8f0142 | 69533190b829ae8d37fe87e6990ecb9cc250bef3 | /old/teach_pendant/switch_map.py | d91d5db1a81cd2eaa23f0f5cc8e4f22691e1cba2 | [] | no_license | chxb1987/idx6dof | a3ebd70d9901845b3a72f611e021caaba8814602 | b6a2a1b79673cdc3d929c469116ff4eaf3f7583d | refs/heads/master | 2020-08-03T21:46:51.620409 | 2017-06-14T20:50:22 | 2017-06-14T20:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | SWITCH_UP=1
SWITCH_DOWN=3
sw_map = (
( 4, 2, SWITCH_UP),
( 12, 2, SWITCH_DOWN),
( 16, 17, SWITCH_UP),
( 17, 16, SWITCH_UP),
( 18, 15, SWITCH_UP),
( 19, 14, SWITCH_UP),
( 20, 13, SWITCH_UP),
( 21, 12, SWITCH_UP),
( 22, 10, SWITCH_UP),
( 23, 11, SWITCH_UP),
( 24, 17, SWITCH_DOWN),
( 25, 16, SWITCH_DOWN),
( 26, 15, SWITC... | [
"eric@clarinova.com"
] | eric@clarinova.com |
28c30da6018c2bb5ce3deb9c731631034ca15789 | 25ec110360c3d743c33528a5dac59cf0dd997254 | /site_KFU/registration/functions.py | 8d875a482538a22a53b3fed38f47e186d999aeb1 | [] | no_license | Nikiouch/KFUsite | 9130b92d6daceb4ef1ac9ded327d0d3e4ecba3e1 | c786d31723b89710200de23086d5b338522b8258 | refs/heads/master | 2021-08-29T01:35:29.637617 | 2017-12-11T15:01:17 | 2017-12-11T15:01:17 | 113,872,790 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import string, random
alphabet = {'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd', 'е': 'e',
'ё': 'yo','ж': 'zh', 'з': 'z', 'и': 'i', 'й': 'y', 'к': 'k',
'л': 'l', 'м': 'm', 'н': 'n', 'о': 'o', 'п': 'p', 'р': 'r',
'с': 's', 'т': 't', 'у': 'u', 'ф': 'f', 'х': 'h', 'ц': 'c',
'ч': 'ch', 'ш'... | [
"hanouchh@gmail.com"
] | hanouchh@gmail.com |
84c9f0305d09c62aeebc0f058ea4b46557611c42 | 627eccf21233ec99a8fb0a770d4f11a7f887eac7 | /Lab-7/es3.py | dad87720f1f3f43914e0d5c634e4f520f03ea65e | [] | no_license | frollo/AdvancedProgramming | 76e15cc5fd9ac21fb1db36806d8a3d2136da1252 | f4c27a9b1067ead9720ea23d6630d5b7611d4d68 | refs/heads/master | 2021-01-21T04:40:35.984135 | 2016-06-14T16:46:09 | 2016-06-14T16:46:09 | 49,653,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,419 | py | from functools import reduce
class Matrix(object):
def __init__(self,height, width, values):
self.height = height
self.width = width
index = 0
self.matrix = list()
line = list()
while index < len(values):
line.append(values[index])
index += 1
... | [
"rossi.lorenzo@yandex.com"
] | rossi.lorenzo@yandex.com |
8b10787326d6e24fc474df2d039a94863b0a3aab | 9969ee7cfa666c3ba4ec101fd983284d31eadf35 | /leetcode/remove-element.py | f14c018552b59c22efba9b82ec09b70be98fa85a | [] | no_license | QinGeneral/Algorithm | d0385575fdde3aa0b535b3c15ecbadf2c3cc3ff4 | 251b2b8bab88d3cbd9463b7a3c3120587aa281a2 | refs/heads/master | 2023-08-18T18:45:28.958941 | 2023-08-08T14:46:53 | 2023-08-08T14:46:53 | 265,273,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | class BetterSolution:
def removeElement(self, nums, val: int) -> int:
length_range = range(len(nums))
length = 0
for i in length_range:
if nums[i] != val:
nums[length] = nums[i]
length += 1
return length
class Solution:
def removeEl... | [
"qingeneral@gmail.com"
] | qingeneral@gmail.com |
8dacb18cc5f4b37537297886d225802a28f1729d | 7746611d41fb12db544bb871b270258b563fd108 | /Instanciating and global variable.py | 5d3723d6b589de161e2c4122ac197b1608e8b740 | [] | no_license | christianjoy/OOP | d1c5411e83b8c51ae4cf0898fc85e53e06ef80c2 | a17de30c7f98dbfa48857e69d6179d7d417fe46b | refs/heads/master | 2021-01-19T14:56:50.828685 | 2012-08-29T02:33:24 | 2012-08-29T02:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py |
class Score
def __init__(self):
self.score=0
def Add (self):
self.score += 1
def show(self):
print("The score is %i" % (score))
Basketball=Score()
Volleyball=Score()
Chess=Score()
Basketball.Add()
Basketball.Add()
Basketball.Add()
Basketball.Add()
Basketball.Add()
Basket... | [
"christianjoyventura@yahoo.com"
] | christianjoyventura@yahoo.com |
9c5ae5f21eb5f1a36093fe5f764a1835128a01d2 | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/095/C.py | e641e597678f29556c9fceffadc8270b970f8ac8 | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 623 | py | def half_and_half(
A: int, B: int, C: int, X: int, Y: int) -> int:
"""
:param A: A ピザの値段
:param B: B ピザの値段
:param C: AB ピザの値段
:param X: A ピザの必要数
:param Y: B ピザの必要数
"""
min_price = float('inf')
for num_ab in range(max(X, Y)+1):
num_a, num_b = max(0, X-num_ab), max(0, Y... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.