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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd7945760a4924d927021ded1d1b0d4d2a70b9a4 | 390565b36da4e69a08a69f1d59b7d58a3ffd2fdf | /python/baseline/reader.py | e0d40319da1df29dfc0b91e4cd315de3788011b3 | [
"Apache-2.0"
] | permissive | demoninpiano/baseline | 3a87afc831bbdef56f25652e2e90205dee33a290 | e3e541a241f673813cc4628de90411d1ecee5e3f | refs/heads/master | 2021-07-08T02:10:42.430721 | 2017-10-05T14:34:15 | 2017-10-05T14:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,106 | py | import baseline.data
import numpy as np
from collections import Counter
import re
import codecs
from baseline.utils import import_user_module, revlut
import os
def num_lines(filename):
lines = 0
with codecs.open(filename, encoding='utf-8', mode='r') as f:
for _ in f:
lines = lines + 1
... | [
"dpressel@gmail.com"
] | dpressel@gmail.com |
3146ac4d82a11f18275b102801c61fb91b9937eb | b57c77c985c45f51e766cd0c5a2595a6b89b8562 | /BackEnd/account_info/admin.py | 8a1ed8e04fb27f08f3b577f9b9c7c589dd5f0ddc | [
"MIT"
] | permissive | coinarrival/BackEnd | 2e90c2be109671d3abcaf7f83b39b737d230c21e | 58a0e61510c732de6cd3f398e0ae8481c351873a | refs/heads/master | 2021-06-23T16:40:21.294612 | 2019-06-26T04:52:58 | 2019-06-26T04:52:58 | 191,327,303 | 0 | 0 | MIT | 2021-06-10T21:33:34 | 2019-06-11T08:26:00 | Python | UTF-8 | Python | false | false | 111 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(User) | [
"423127555@qq.com"
] | 423127555@qq.com |
7b7d425aab4c254bf7b7b0b7397173468957f603 | 2fc1acb9e0f1ae989461f601cb63a796526a8e0c | /interview_bit/stack/sliding_window_maximum_of_window.py | 8d02f1149c71eeaddd28bf851bdf57eec65a4eb8 | [] | no_license | anojkr/help | 4ff64ef9503c90d36e9c051c4d912cf727c1e077 | f2f0b46b19b5efbf888e063606c78db2cbfdd306 | refs/heads/master | 2020-06-28T01:54:10.344799 | 2019-10-31T07:35:28 | 2019-10-31T07:35:28 | 200,111,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from collections import deque
class Solution:
# @param A : tuple of integers
# @param B : integer
# @return a list of integers
def slidingMaximum(self, A, B):
# print(A)
n = len(A)
C = [int(x) for x in A]
t = 0
r = deque()
res = []
if n == 1 and B ... | [
"anoj.kumar48@gmail.com"
] | anoj.kumar48@gmail.com |
2dabc5c778f7f9d2cbe5ba4d185e74d905c10ccb | 159bb98457406b35d9424640ba26490883dd629a | /generateClassifier.py | 7b18593b68ba61ef7cbc66dc4ea2418f9426040d | [] | no_license | Jeya27/Handwritten-Digit-Recognition | 74594d197d6e65abcc6cb73a5f21a9ee10ff3bc5 | 8a4862e3d4f0458ae9002038cba8e66139c8eaf3 | refs/heads/master | 2020-06-21T16:12:08.807605 | 2019-07-18T03:04:16 | 2019-07-18T03:04:16 | 197,498,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | # Import the modules
from sklearn.externals import joblib
from sklearn import datasets
from skimage.feature import hog
from sklearn.svm import LinearSVC
import numpy as np
from collections import Counter
# Load the dataset
#dataset = datasets.fetch_mldata("MNIST Original")
dataset = datasets.fetch_mldata('MNIST origi... | [
"noreply@github.com"
] | Jeya27.noreply@github.com |
8a3770a1e1051a3ce13c75ea3a0b5dc1c13b82c2 | 7061eaa736aa19bd4b160d2c7e2cda4c5d9dce0d | /linear_regression/simple_linear_regression.py | 3a52636b790bb4afd3c552f53337cd7399e5b265 | [] | no_license | seungtaek-hutom/pytorch_study | 3adb4ec07727d78177e07cb7eab6e5b813b97582 | 9d9353951f8ae40251ed39084c2cd49543fb83bd | refs/heads/master | 2022-07-22T13:58:51.448201 | 2020-05-24T14:20:43 | 2020-05-24T14:20:43 | 255,092,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | x_data = [1.0, 2.0, 3.0]
y_data = [2.0, 4.0, 6.0]
w = 1.0
def forward(x):
return w * x
def loss(x, y):
y_pred = forward(x)
return (y_pred - y) * (y_pred - y)
def gradient(x, y):
return 2 * x * (w * x - y)
print("predict (before training)", 4, forward(4))
for epoch in range(100):
for x_val,... | [
"seungtaek@seungtaeg-ui-MacBookPro.local"
] | seungtaek@seungtaeg-ui-MacBookPro.local |
e127448c81eaef35d6b4be3f774b985c4a0bbc7d | 72b1683c545a78a2dad9f1d8a30ca4101d79ffa9 | /our_duck.py | 2d8363c64ed927daf3f0fe5d0b8d0beb012beb93 | [] | no_license | whitercactus/Duck-Hunt | 21a2cb1e23050663fa7fb7ff2cd6ee46683fb406 | 3341cd3239abe02345bbd7ff93c243573e4cdc75 | refs/heads/master | 2022-12-25T02:35:59.571689 | 2020-10-02T06:02:56 | 2020-10-02T06:02:56 | 300,516,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | import pygame
from constants import *
from spritesheet import SpriteSheet
pygame.init()
class Duck(pygame.sprite.Sprite):
def __init__(self, x,y):
super().__init__()
sprite_sheet = SpriteSheet("duck.png")
self.frames_r = []
self.frames_l = []
image = sprite_sheet.get_image(0... | [
"whitercactus927@gmail.com"
] | whitercactus927@gmail.com |
c245280ad82540871652d5baae5ea20fb24e5cd5 | eca4f8a6b1a0efd90504e5def0da8218e3f9bc2e | /course17-analyze_data/10/test.py | 8ffb9818cd9ff61aa33f4ce6f94ca169c57df8c5 | [] | no_license | yasmineTYM/udacity--data-analyst- | 53e2c4f47f512517ba84bba7418c1c2ca8c211ae | 4200c35841683999f7310b6a92022b88e6e9e6c1 | refs/heads/master | 2021-09-01T13:27:54.080784 | 2017-12-27T07:31:13 | 2017-12-27T07:31:13 | 104,347,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | #!/usr/bin/env python
"""
Write an aggregation query to answer this question:
Of the users in the "Brasilia" timezone who have tweeted 100 times or more,
who has the largest number of followers?
The following hints will help you solve this problem:
- Time zone is found in the "time_zone" field of the user object in e... | [
"noreply@github.com"
] | yasmineTYM.noreply@github.com |
8b95c1c41b34279bd7fb140fbdf3ddfee5576700 | 67e5436d39a2aab5bfd2b9c5cff23ca934a85182 | /donkeycar/templates/just_drive.py | b7eae21a71916d468ad04aa75dd72d1786b0b985 | [
"MIT"
] | permissive | autorope/donkeycar | d4991aa69d8b1334c6331640e532d8d796b2ac25 | 9f91ad1aaff054522b24c2c1e727d1a111e266f4 | refs/heads/main | 2023-08-17T20:25:19.085591 | 2023-07-05T19:35:50 | 2023-07-05T19:35:50 | 76,095,264 | 1,861 | 921 | MIT | 2023-08-01T23:06:30 | 2016-12-10T06:35:09 | Python | UTF-8 | Python | false | false | 2,275 | py | #!/usr/bin/env python3
"""
Scripts to drive a donkey 2 car
Usage:
manage.py (drive)
Options:
-h --help Show this screen.
"""
import os
import time
from docopt import docopt
import donkeycar as dk
from donkeycar.parts.datastore import TubHandler
from donkeycar.parts.actuator import PCA9685, PWMSteer... | [
"tawnkramer@gmail.com"
] | tawnkramer@gmail.com |
76f8173348a5716b3da3222f4654c8d1a1347e29 | 7033686cf027f6f9d25349bdd3cc83e30aa88327 | /main.py | 6812aef93085071f6a353bf7dc8a5fa9b4d05f5a | [] | no_license | Kerni1996/SocialWebGroupProject | ee6f975d54587919b1b0ed7b2836a53f3159666f | 4c3375f017acf60107240b52f18d0c9170e7c77b | refs/heads/master | 2023-01-30T16:46:20.457753 | 2020-12-12T11:19:43 | 2020-12-12T11:19:43 | 320,377,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,281 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import GetOldTweets3 as got
import datetime
import tweepy
import snscrape.modules.twitter as sntwitter
import numpy
import ... | [
"alexander@kernreiter.at"
] | alexander@kernreiter.at |
ec9e6dd992eeed6db72e166f944d03ef079367f3 | 9bf2e049e5f76af872ce95a2a6d52156416ad080 | /EMS/users/backend.py | 19cceaa19cab4e0c2ccaff7793d5009a7beb8f75 | [] | no_license | nitesh5695/api-testing-ems | 7c578295de889b75bb77c08fd9a03709a702a648 | f0cb0225dbf2129e38b31601faa3cc4cafe8e45a | refs/heads/master | 2023-04-06T00:23:44.456983 | 2021-04-19T09:43:27 | 2021-04-19T09:43:27 | 344,903,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py |
from .models import companies,employers
from rest_framework import exceptions
class MyAuthentication():
def login(request,username):
request.session['username']=username
return True
def isemployee(email):
try:
user=employers.objects.get(email=email)
return True
... | [
"pksingh@nitesh.singh5695@gmail.com"
] | pksingh@nitesh.singh5695@gmail.com |
0841b4172720a20150a3ae36182d8b27991df75d | 0da6b4de78c6142b3629a3fd80ce2b03bea734e6 | /Code_Eval/Moderate/NumberPairs/NumberPairs.py3 | 3c23a83b277a8a36a9d1f5a7cf9b337e7e13d345 | [
"MIT"
] | permissive | marshallhumble/Coding_Challenges | 4979e19315b6b05ae04805534e6576dbf6d9bfd9 | 90101d308a3342a0eab33c1f4580df549bfc8896 | refs/heads/master | 2021-01-18T02:30:37.740072 | 2016-10-09T16:25:41 | 2016-10-09T16:25:41 | 48,114,974 | 0 | 0 | null | 2016-06-03T14:30:38 | 2015-12-16T14:26:03 | Python | UTF-8 | Python | false | false | 1,207 | py3 | #!/usr/bin/env python
"""
NUMBER PAIRS
CHALLENGE DESCRIPTION:
You are given a sorted array of positive integers and a number 'X'. Print out all pairs of numbers whose sum is
equal to X. Print out only unique pairs and the pairs should be in ascending order
INPUT SAMPLE:
Your program should accept as its first argu... | [
"humblejm@gmail.com"
] | humblejm@gmail.com |
5a771ee32cdf7beb755ff51f86e481ecb718b502 | 8a5398111a763c1e033e97c2ad56301754c30f36 | /train/experiment_ResSinDro3.py | 0ad8529ee5c1dcdcda169706f6356ac7dfdb1fdd | [] | no_license | YukiSato-ml/SignalAugML | 6371e99d95082b3ff95e8b201e6007ed00965ed1 | 4ff228e0b4d5fff2671059f228f957d0d3622a97 | refs/heads/master | 2020-07-12T03:55:58.568485 | 2019-08-27T14:45:50 | 2019-08-27T14:45:50 | 204,711,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | # coding: utf-8
#chainer
import os
import sys
import chainer
import chainer.initializers as I
import chainer.functions as F
import chainer.links as L
from Core import Trainer
from Chains import classifier as C
from Chains import chain
from Chains import util as U
'''
SingleReLU dropout 1
layer 10
32-32x2-64x2-128x2-2... | [
"54586589+YukiSato-ml@users.noreply.github.com"
] | 54586589+YukiSato-ml@users.noreply.github.com |
4c8e5edcd4706488c54a8864ed2c93d83349dfc1 | 958231073be5a0978d3e3fbb648da8f26b2cbb03 | /example/conftest.py | 4071b2c66e9419fe3f49c4b652e0bfb75cc1b5d1 | [] | no_license | Suren76/Python | afc9589c677496db6bbfb38166164b6e28da41ab | c843d43f7384397aeabcc16155b7ef6617ce256c | refs/heads/main | 2023-03-02T22:36:17.904471 | 2021-01-31T23:48:29 | 2021-01-31T23:48:29 | 329,370,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import os
import pytest
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
@pytest.fixture
def browser(request):
options = webdriver.ChromeOptions()
options.add_argument("--start-maximized")
driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
... | [
"parsyan_suren@mail.ru"
] | parsyan_suren@mail.ru |
981d8d52579b0a5435358412b4ad65cba7026469 | 136bd584b3bf7bc06812c386a84a8b51f115ec13 | /fleet-management-data-processing-and-analysis/xml_parsing.py | 1059f64ab02547e4b27e62e2a5dedeb1ea761684 | [] | no_license | dhana2k14/ml-stuffs | a8fe8cc152c7f3f1106206df9c55aa87086dccd1 | d932f2a5b1624748847f783379884ad2e2216cd2 | refs/heads/master | 2021-09-06T17:32:06.844608 | 2018-02-09T02:02:05 | 2018-02-09T02:02:05 | 108,121,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,722 | py | import pandas as pd
import numpy as np
import sys
import os
import datetime, time, json
import xml.etree.ElementTree as ET
from pymongo import MongoClient
from bson import json_util
from pandas.io.json import json_normalize
from bson import json_util, ObjectId
client = MongoClient("mongodb://172.25.94.82:27017")
db = ... | [
"33093@Hexaware.com"
] | 33093@Hexaware.com |
e3d5555ebf1e83f5a03cd5b4e8a00f6c2fce3f77 | 2a19a3ed5132b5426a5a02a206fbefd743787685 | /1197.py | 463514316a0a226c31ed46a01805037f0979b6ad | [] | no_license | zensen6/BOJ_350_solved-completed_code-partII | 01ee844b5f5a3d9cc0e3ef98a65f840881c86759 | 3e40e06d06e8bb867a202ced7ebeeb0410c444cc | refs/heads/master | 2023-02-14T03:51:29.499561 | 2023-01-28T14:48:04 | 2023-01-28T14:48:04 | 191,082,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import sys
input = sys.stdin.readline
def Find(x):
if x == p[x]:
return x
p[x] = Find(p[x])
return p[x]
def Union(x, y):
x1 = Find(x)
y1 = Find(y)
if x1 < y1:
p[y1] = x1
else:
p[x1] = y1
return
v,e = map(int,input().split())
edge = []
p = [i for i in range(v+1... | [
"junhee1469@gmail.com"
] | junhee1469@gmail.com |
250a67bc0c4b54f6ad97213cfde878f64d8c88d8 | 9a5e417572dad9712180d89063d4a4bc0517cc04 | /app/request.py | 2f58ed48bfb409811912f4370687c5412f4db98f | [] | no_license | philipiaeveline/WATCHLIST | 39d91de12e7a515f414853c94e24eca45cd911cb | 1dcd380bf11a5980259ffad373fc23cceaa0f6fe | refs/heads/master | 2023-01-18T23:01:51.688233 | 2020-11-28T08:29:12 | 2020-11-28T08:29:12 | 316,217,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | import urllib.request,json
from .models import Movie
api_key = None
base_url = None
def configure_request(app):
global api_key,base_url
api_key = app.config['MOVIE_API_KEY']
base_url = app.config['MOVIE_API_BASE_URL']
def get_movies(category):
'''
Function that gets the json response to our url r... | [
"philipiaeveline13@gmail.com"
] | philipiaeveline13@gmail.com |
f0a406207fdc6930328b5b04a850ec7bb4b781ee | 8ba154db185f17257306dcb9929ba67f68aba396 | /Day_3/Day_3 Triangle Quest.py | a8aee3403e8b44e317479884149036ad6c46572d | [] | no_license | GILLA-SAITEJA/Innomatics_Internship | 749d2346bddcd6ad0ce757c956981f9a9a1c0cea | 43a0525aeac0ca213aeb69ad838dfbd371f88ac4 | refs/heads/main | 2023-03-25T07:33:09.768492 | 2021-03-25T15:07:16 | 2021-03-25T15:07:16 | 331,515,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also
print(int((10**i)/9)*i)
| [
"noreply@github.com"
] | GILLA-SAITEJA.noreply@github.com |
65a1a8dee4cd2e98c95172b3b60cbc94a2cdcfa0 | ec107a0c2badd74f2fc1e4ce8ebeb3801e8a3cd5 | /evaluation/evaluate_transfer_learning.py | 3d14f465efdb1b48f1f14b502ad33ebf6a1c668b | [] | no_license | ADockhorn/ForwardModelLearningDissertation | d502b9527b3b2f544cd0bf80b038942672615a07 | 0088833a16286b5bf82c94e19c701c5a0122a6f2 | refs/heads/master | 2020-09-07T05:16:14.306141 | 2020-08-15T08:47:07 | 2020-08-15T08:47:07 | 220,658,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | import os
import pickle
from gym import envs
from games.GVGAIConstants import get_images
import logging
import gym
import gym_gvgai
import numpy as np
if __name__ == "__main__":
os.chdir("/".join(os.getcwd().split("/")[:-1]))
grid_based_games = []
with open("data/GVGAI/grid-based-games.txt", "r") as file... | [
"alexander.dockhorn@ovgu.de"
] | alexander.dockhorn@ovgu.de |
ced36850afb33a6ad4af3eec0f9c3f2e32020cd3 | 7e1c6d8d8783b1a1e6ddf247739bc646d8694f7f | /ner/cnngram/src/infer.py | 299f96a84933b485b6e2069672c132acdcce3d4c | [] | no_license | ankitshah009/BioASQ-Question-Answering | 6cdef1f97a3649d969721bef93cbff676a2ab9dc | 663d4ebb0c4dca3f4b75ac5fa3be3efb96493d52 | refs/heads/master | 2020-04-02T15:30:37.680572 | 2018-12-05T21:55:36 | 2018-12-05T21:55:36 | 154,570,563 | 0 | 0 | null | 2018-10-24T21:17:28 | 2018-10-24T21:17:27 | null | UTF-8 | Python | false | false | 8,927 | py | #!/usr/bin/env python
import os
import numpy as np
import re
import optparse
import itertools
from collections import OrderedDict
from utils import create_input
import loader
from utils import models_path, evaluate, eval_script, eval_temp, reload_mappings, create_result, create_JNLPBA_result
from loader import word_m... | [
"gbayomi@gmail.com"
] | gbayomi@gmail.com |
9242d2dcd3ff7576d42367217c8b68b4e4928b47 | 2cf9457414198d00b4338c1228126c68cd4c566c | /DunkelPilleBot/BotV2.py | fd50123273e5f26f219c287cdc7c2add274f2f89 | [] | no_license | Darksider3/Stuff | ee3c7cf9c2db7c2f3af92acd99d5584639c12663 | a10e269ed8f98f5c93ce69b07a8535bb52fdef8f | refs/heads/master | 2021-06-15T05:01:15.995473 | 2021-05-01T10:55:53 | 2021-05-01T10:55:53 | 189,863,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | #!/usr/bin/env python3
# bot.py
import os # for importing env vars for the bot to use
from twitchio.ext import commands
import datetime
import time
import random
def FromTimeDelta(from_time, delta_add):
return from_time + datetime.timedelta(minutes=delta_add)
def now():
return datetime.datetime.now()
class Emo... | [
"github@darksider3.de"
] | github@darksider3.de |
3b08043f718e1f762cda399cb3dab5923ba38bc0 | a7b401e810508fccdd2a3fbdea320c798b1e2e17 | /lib/memcached.py | cdc85d8aa0d5b68c0cec434e87ab931e7ccabc65 | [
"MIT"
] | permissive | iqtek/amocrm_event_listener | e513609af972e713abf136815f0d34f3ff2ff54c | 078a4d89039d3d941aabaaa6ec0670448c6f7190 | refs/heads/master | 2020-03-15T01:57:12.137001 | 2018-05-03T19:54:04 | 2018-05-03T19:54:04 | 131,906,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import memcache
from settings import MEMCACHE as SETTINGS
__all__ = ["Memcached", ]
class Memcache(object):
instance = None
def getConnectin(self):
return memcache.Client(
[SETTINGS["HOST"] +':' + SETTINGS["PORT"]],
#pickler=SimplejsonWrapper,
#unpickler=Simplejso... | [
"igorg@iqtek.ru"
] | igorg@iqtek.ru |
878d117d208c8bddc445d9193bd60d9962bc2d04 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181202205024.py | 2016dd936c4c5606bd2c690a9091adbc44772a0d | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | """Flask Login Example and instagram fallowing find"""
from flask import Flask, url_for, render_template, request, redirect, session, escape
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.secret_key = 'any random string'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///kullanicilar.db'
db = SQ... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
291295000c491f1a395e8bb1f95090929391a4c3 | 745844af714c767402011ac0bf50b94bf73dcbb1 | /Exercises/Results/jone2032/crud.py | ad6e316be1e09ccfc2795072e82d67a80af627c7 | [] | no_license | Mark-Seaman/UNC-CS350-2017 | 32584522e55f9678516350380d4ae046c17e712f | 7728e6068acf0732be5555be53fa615b9736ca7b | refs/heads/master | 2021-08-30T11:00:24.429682 | 2017-12-07T20:24:40 | 2017-12-07T20:24:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | # crud.py
from os.path import exists
from os.path import exists
from files import read_csv, read_file, write_csv, write_file
from csv import reader, writer
## Pair Programming Guide
# * Work in Pairs (1 keyboard + 2 brains)
# * Switch for every iteration (micro-story)
# * Test - Code - Refactor (Fail, Pass, Beautif... | [
"noreply@github.com"
] | Mark-Seaman.noreply@github.com |
ddf15062b858f78fb39fed56808c8b1e276647cd | f4b3be2a3955c26b4e05ab162fa4909cf9a14f11 | /CRB/validators/subsystems/enforcements/enf088.py | c28e582eaead1d50d8b94f0b33352ef67a14a38f | [] | no_license | njovujsh/crbdjango | fd1f61403c1fbdac01b1bda5145faeb4b9ef9608 | fdf5cc6ca5920a596c5463187d29202719664144 | refs/heads/master | 2022-12-04T18:13:07.709963 | 2018-05-14T09:07:47 | 2018-05-14T09:07:47 | 133,333,767 | 0 | 0 | null | 2022-11-22T01:44:28 | 2018-05-14T09:04:17 | JavaScript | UTF-8 | Python | false | false | 599 | py | from validators.subsystems.enforcements import enf001
class ENF088(enf001.ENF001):
def __init__(self, mobject, field, priority, action):
super(ENF088, self).__init__(mobject, field, priority, action)
self.status = None
self.fcs = None
def validate_field(self, field... | [
"njovujsh@gmail.com"
] | njovujsh@gmail.com |
697728c4d441967b7ee1b41e84a36fbef1213c3f | de77865d79a70c8e5c8f024340c198eea45c6c68 | /src_code/plot_chern.py | 8be92c963a3065dab600760a4c865a8669d02038 | [] | no_license | yunhong111/hashCorrelation | ea265f6204382e81439cf13ce7db3da8c9ccb16a | f82463ee7665aedf9a9e508008a9d7d2ff8e7123 | refs/heads/master | 2021-01-25T12:31:15.403038 | 2018-04-02T16:36:08 | 2018-04-02T16:36:08 | 123,475,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import matplotlib.pyplot as plt
import pandas as pd
flow_num = [5000*i for i in range(1, 6)]
df = pd.read_csv('../outputs/chern_values.csv', names=['a'+str(i) for i in range(5)])
print df.iloc[0:5]
# Plot
fig = plt.figure(figsize=(4.3307, 3.346))
ax = plt.subplot(111)
types = ['o-', '^-', '*-', '<-', '>-', '+-']
co... | [
"yunhong1110@gmail.com"
] | yunhong1110@gmail.com |
d656310ee6ebfd2a08f1c9d937689b1dc201bd12 | 969b83ba4110e84434c3f955f132627427f6d305 | /server/message_unreact.py | 75b0e5bd369b6632da2297d4c0594935723ab94e | [] | no_license | emcintire/slackr | d49b3cae6d93ec7b0ee4fee22feb186d2c5db564 | c85a083c4f11ec77aaa67d186f2f59ef69a20eef | refs/heads/master | 2021-06-29T17:35:48.704628 | 2021-06-05T18:44:47 | 2021-06-05T18:44:47 | 230,976,869 | 0 | 0 | null | 2021-01-05T18:47:41 | 2019-12-30T20:39:33 | Python | UTF-8 | Python | false | false | 974 | py | import jwt
from appdata import data, valid_tokens, channels, decodeToken, getMessage, getMessageChannel, isUserChan
from server.error import ValueError, AccessError
def message_unreact(token, message_id, react_id):
global channels
try:
u_id = decodeToken(token)
#check if react_id is valid at th... | [
"noreply@github.com"
] | emcintire.noreply@github.com |
45e2ae6c49914c6b0cc75158ca7b01822ea962be | 017ef40dd2ae7611cbd187e6ce64d86547d0abb9 | /rc/Motor_Example.py | 6ba17e19f83c24f20af218ca1dda63264d575979 | [] | no_license | hyfan1116/playground | 70a373151c2b50c9f69a496e8f636696395638ee | fc27f42f39b4c13df0b0fcfe3ee128c4fe8641ed | refs/heads/master | 2021-01-12T15:04:11.832241 | 2019-10-14T04:08:24 | 2019-10-14T04:08:24 | 71,677,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | #!/usr/bin/python
from Adafruit_PWM_Servo_Driver import PWM
import time
# ===========================================================================
# Example Code
# ===========================================================================
# Initialise the PWM device using the default address
pwm = PWM(0x40)
# No... | [
"fanhaoyang1116\"gmail.com"
] | fanhaoyang1116"gmail.com |
66379b12d4d5befc395446e0bd7e8fd9610fbfe9 | 7626a8371c7a847f93bdae5e1d6e03ee9667c3ba | /func/print_area_kz/venv/bin/sqlformat | 87ba197dbb67cb1b0c1fd9666d91f0b0353cc1f2 | [] | no_license | zzyzx4/sp | 52c815fd115b4605942baa73687838f64cd41864 | 90c7a90b3de27af674422e2c8892bad5ba7891e8 | refs/heads/master | 2020-05-23T21:20:28.166932 | 2019-07-19T11:56:49 | 2019-07-19T11:56:49 | 186,950,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/user/PycharmProjects/print_area_kz/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dastik0101@gmail.com"
] | dastik0101@gmail.com | |
aaf3e1a0d45c0ae8e0ef320f1f68bb8890160acc | 29b82a48c7373dcbbb7ddc4fc986d80579af94f0 | /src/preprocessing/prepare_warehouse_data.py | f2d5c44a5990eee9c1dee715e00df762d5ff6a0d | [] | no_license | nguyentheimo2011/cs4224-project-mongodb | 585c15f067444b614fa2e50fe8714d6f3f6b2a3e | 84fa69bc80d0c209fe6e0facb39eb1fddaeef219 | refs/heads/master | 2021-01-20T11:44:54.738723 | 2016-11-10T15:01:56 | 2016-11-10T15:01:56 | 72,109,821 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | import os
import argparse
def prepare_data():
next_delivery_order_ids = prepare_next_delivery_order_id_for_districts()
original_warehouse_file_path = os.path.join(original_data_directory, 'warehouse.csv')
original_district_file_path = os.path.join(original_data_directory, 'district.csv')
prepared_war... | [
"nguyentheimo2011@gmail.com"
] | nguyentheimo2011@gmail.com |
c266c889f792a3b3629b97cb48f01a1e98e7ab09 | 4ca0cb74402be70c63ad8e1c67b529cd7770ba38 | /19_model-view_controller/mvc.py | f0b57f822676e41408bad59aeb0327aba2d02a44 | [] | no_license | alxfed/python-design-patterns | 06af6f8e47925bcafe39a117943dd8287a6fe567 | b1a1ffb02b6e81e44bc7f0491376f9121b325a09 | refs/heads/master | 2020-04-02T04:34:18.060976 | 2019-12-18T16:08:00 | 2019-12-18T16:08:00 | 154,022,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | """
mvc.py
"""
import sys
class GenericController(object):
def __init__(self):
self.model = GenericModel()
self.view = GenericView()
def handle(self, request):
data = self.model.get_data(request)
self.view.generate_response(data)
class GenericModel(object):
def __init__(... | [
"alxfed@gmail.com"
] | alxfed@gmail.com |
ed9eaf8d898b82c4d3e2949e76cca0402f98f2dd | 708a540af554d48ad8cab6b3406d45e05fb96aa1 | /segmenter/visualizers/LayerOutputVisualizer.py | 972fc882306f74873f2d841e6cd70bd8ce71940b | [
"Unlicense"
] | permissive | brandongk-ubco/segmenter | a10cd2dfb8393639a4d785043b881b1b52a7074f | dbc042d31dc74f1abdc87ae10a6be78ba38ddb91 | refs/heads/master | 2023-07-18T19:28:12.034659 | 2020-12-21T04:54:59 | 2020-12-21T04:54:59 | 236,781,455 | 0 | 0 | Unlicense | 2023-07-06T21:58:36 | 2020-01-28T16:28:36 | Python | UTF-8 | Python | false | false | 2,833 | py | import os
import json
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from segmenter.visualizers.BaseVisualizer import BaseVisualizer
import glob
import numpy as np
class LayerOutputVisualizer(BaseVisualizer):
bins = np.linspace(-10, 10, num=2001)
def execute(self):
csv_f... | [
"brandongk@gmail.com"
] | brandongk@gmail.com |
96b6fa8e4536f81f43eca8c0550e402ee9f52784 | 6cbb69762b952bf3708de03b977bb215ebca9653 | /lib/dynamo_sessions.py | 007ef5de62ace494da60ecf989e4af11c5d5bc08 | [
"MIT"
] | permissive | kaellis/sqs-browser-events | 98e913ecc02c3e200285b00ffc39b847d0f9fa1a | 47a74ff3c756dc70f84307453385d0bd399cc659 | refs/heads/master | 2021-01-19T16:42:19.634499 | 2017-04-13T18:11:06 | 2017-04-13T18:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,604 | py | import os
import time
import decimal
import concurrent.futures
import boto3
from boto3.dynamodb.conditions import Key, Attr
from boto3.dynamodb.types import TypeSerializer
import botocore.exceptions
import logging
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.INFO)
import common
def get_session_tabl... | [
"kenneth.ellis@thomsonreuters.com"
] | kenneth.ellis@thomsonreuters.com |
245fefb6b13563caaf367493baeec4fa8694dfee | c7f476a72d485e4eba8c67a28eb0f88cb327a803 | /repeat.py | a0e7a2d9bafe6ecafe23cf294dbe0fb2ec1759af | [] | no_license | KotipalliMadhavi92/GUVI_SampleRepo | 94ec84809d87b8340200f7c2e1f974dfd993e7b4 | 5836d4e11b172ad38639fcd6ac2cd7f2645df37d | refs/heads/master | 2020-04-08T08:33:07.464675 | 2018-11-26T15:19:28 | 2018-11-26T15:19:28 | 159,182,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | a=int(input())
l=list(input().split())
ans=list()
for i in range(0,a):
if l[i] in l[i+1:]:
ans.append(l[i])
if(len(ans)==0):
print("unique")
else:
for i in ans:
print(i,end=" ")
| [
"noreply@github.com"
] | KotipalliMadhavi92.noreply@github.com |
f69ca1620d84787a070cb87c845699b2c947878a | 5171454307a8ed915ad5c480443f34d4d36abd09 | /person.py | c9b7d0243d65c5ad489ddebe12777e7eeaa13ae7 | [
"MIT"
] | permissive | dpoy/python- | 1eab4a9686314ed09a8b74fe155879e8971e0fd1 | 311217a669bdd9ad70545aba5956381b577a48a5 | refs/heads/main | 2023-01-02T12:46:17.898077 | 2020-10-26T03:23:32 | 2020-10-26T03:23:32 | 302,836,136 | 1 | 0 | MIT | 2020-10-26T03:23:33 | 2020-10-10T06:53:56 | null | UTF-8 | Python | false | false | 244 | py | def build_person(first_name, last_name):
"""返回一个字典,其中包含有关一个人的信息"""
person = {'first': first_name, 'last': last_name}
return person
muscian = build_person('jimi', 'hellion')
print(muscian) | [
"noreply@github.com"
] | dpoy.noreply@github.com |
5c5fe9527304738d1add27c1a72d2139e50b56ea | 882fc389b7082cff9bd8c9a5e39a2177658a6daa | /test.py | 4697471e0b92326df13d5c89831323c973620658 | [] | no_license | changruowang/myRegressionProj | 8fe92d4405141e35186fdf28a35e90f643d120dc | b17060134a1e3357c3bc22882f564163a17ba3e4 | refs/heads/master | 2023-03-31T05:57:47.854099 | 2021-03-31T12:21:39 | 2021-03-31T12:21:39 | 353,340,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,338 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys, glob
import torch.nn as nn
from torch.utils.data import DataLoader
import torchvision
import torch
import numpy as np
import utils
from multiprocessing import freeze_support
import dataset
from dataset import noise_class2idx, NoiseLevelRegDataset, save_csv, ... | [
"44989223+changruowang@users.noreply.github.com"
] | 44989223+changruowang@users.noreply.github.com |
254d2a1a7db7f1c6d9ae9a7970f8bfa3bf0f2cb4 | 063d0ab929ff02c3504603399d148f1afae8fa5a | /rainfall.py | 46673d3f2ee3ddac13ff0acebc5a03d538c64891 | [] | no_license | cthurmond/Python-Practice | 2f126ef435df2e979d868897810e5f6b9e7d621f | 8f240e415c2e90487de855bbfa151e3772d4e086 | refs/heads/master | 2021-01-17T17:49:07.399938 | 2016-10-11T23:52:56 | 2016-10-11T23:52:56 | 70,644,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | rainfall_dict = {}
while True:
city_name = raw_input("Enter the name of a city: ")
if not city_name:
for city in rainfall_dict:
print city + ": " + str(rainfall_dict[city])
break
rainfall = raw_input("Enter the rainfall in mm: ")
if city_name in rainfall_dict:
... | [
"noreply@github.com"
] | cthurmond.noreply@github.com |
984a61dca3d0c585415ca20bbaff11e349e39f16 | 974bebca86a852707b4e2ac3595498cb05654199 | /modin/engines/ray/cudf_on_ray/io/io.py | e0beabc395db44c4b882de95beae046505a1903e | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Longliveping/modin | d7fd4d01e148419165a2f19b4ce2cf53182c2904 | 18dc8f83e2ce4668e44042c56954ba15cc893e4f | refs/heads/master | 2023-04-18T06:30:19.766917 | 2021-05-09T19:39:24 | 2021-05-09T19:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | [
"noreply@github.com"
] | Longliveping.noreply@github.com |
e309b3d53e3f10fc4a8a3d3f0777de04aac9a701 | 0c5f0ce665cf8477f3a6c377fb5e329cc6984938 | /apps/interfaces/migrations/0002_interfaces_is_delete.py | c329d994bad75e9c6183e77e1e96aac1c2e58e2a | [] | no_license | rggaoxin/lemon_test_django | 7de61c0c24e5d802a7c986d99c8b2352d7254d56 | 0865302c4c8f095331c20a7631317aaeea395187 | refs/heads/main | 2023-02-21T03:48:02.524567 | 2021-01-15T08:56:01 | 2021-01-15T08:56:01 | 329,553,577 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Generated by Django 3.1.3 on 2021-01-14 01:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('interfaces', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='interfaces',
name='is_delete',
... | [
"467126493@qq.com"
] | 467126493@qq.com |
3d9b0e5df8724e5d2920fb4941c70c8a612e36c8 | 931268a497e866537492263be6fea75cf46b1aee | /GUI/main.py | 6a18b0d28a602df0daf2c7ea9d1f7ea2685a4395 | [] | no_license | Bioinf-homework/Bioinf | e905da3fda40e785008601827ebe7af6fee11294 | 918b2dd51efc3a2dcceb40eaab97e12bd041bf40 | refs/heads/master | 2020-05-29T08:52:00.015672 | 2016-12-02T05:35:27 | 2016-12-02T05:35:27 | 69,361,357 | 1 | 1 | null | 2016-11-12T14:02:17 | 2016-09-27T13:45:47 | Python | UTF-8 | Python | false | false | 1,806 | py | # coding=utf-8
import wx
from Lib import *
# ----------------------------------------------------------------------------
TitleTexts = [u"K操作",
u"Fasta算法",
u"编辑距离",
u"NW&SW算法",
u"ID3决策树"
]
class TestCB(wx.Choicebook):
def __i... | [
"519043202@qq.com"
] | 519043202@qq.com |
7da11b2b6560f70a07cfc5ee79bacf3b82b37c85 | 926f23a55dbe360a67bcda9714e1d28a300501bc | /stylelens_search_vector/api_client.py | e401df529385b97e7649f581d5080a6fcf9ecbad | [] | no_license | bluehackmaster/stylelens-search-vector | 08dd24b38e410b40710a7cbeb2dd4a303c981669 | a45a089039dcfa0fbfbe77ac3c12b39088147303 | refs/heads/master | 2021-05-08T04:27:06.091937 | 2017-10-26T13:08:31 | 2017-10-26T13:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,215 | py | # coding: utf-8
"""
stylelens-search-vector
This is a API document for Vector search on bl-search-faiss\"
OpenAPI spec version: 0.0.1
Contact: bluehackmaster@bluehack.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import ... | [
"master@bluehack.net"
] | master@bluehack.net |
aee62795c6a4a1e4d51b8ae53706a90b13a95bf2 | 9ea6319966cac38a6e77e2a558e2f6a63de7595d | /qwt/math.py | d6eb818eae99df62c93c333137f5b0f5a1662bc3 | [] | no_license | xalton/PokeIA | 85ac5f7e076eba6394fcf7e16c5b66b8364c68fb | 2d1eab1c9a90dd1b7a1f776f1b2955aa35bbe480 | refs/heads/master | 2020-09-29T02:50:50.657169 | 2020-03-14T12:36:46 | 2020-03-14T12:36:46 | 226,931,122 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # -*- coding: utf-8 -*-
#
# Licensed under the terms of the Qwt License
# Copyright (c) 2002 Uwe Rathmann, for the original C++ code
# Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization
# (see LICENSE file for more details)
from qwt.qt.QtCore import qFuzzyCompare
import numpy as np
... | [
"xalton94@gmail.com"
] | xalton94@gmail.com |
8ce9919b642c2bd392dc743194f4ed17aaf8bcc5 | 592c1602789ccc632492e55120e21cd5e67ea2fd | /lib/dataTypes/Summoner.py | 40ffbd41d2f60285f2ba9934c9002f78a67d3a02 | [] | no_license | wcrwcr/py_sh_tray | 9db4c0323b08cde7d723ea7c6b1d649f36195ede | b5b45d6fb8f286ba5f531c95ccadc3641799dc4d | refs/heads/main | 2023-01-05T21:21:51.857241 | 2020-11-05T10:39:45 | 2020-11-05T10:39:45 | 310,266,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | ''''data type summoner'''
from lib.dataTypes.jsonDefinedData import jsonDefinedData
class Summoner(jsonDefinedData):
id = None
name = None
icon = None
puuid = None
def __init__(self, data):
super(Summoner, self).__init__(data)
self.id = self._json['summonerId'] #unique id... | [
"tsstsstosser@gmail.com"
] | tsstsstosser@gmail.com |
1c59053d7c6f0cc642b0dbe1ecc9f46b90c2c6f1 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python_Advanced/05_Functions Advanced/Exercise/04_negative_vs_positive.py | db0c4a49d3f9878fa05166a33c9f802e169e1017 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | def absolute(negative_sum):
return abs(negative_sum)
def compare_negative_positive_sum(negative_sum, positive_sum):
if positive_sum >= negative_sum:
return True
else:
return False
def negative_separator(numbers):
if numbers < 0:
return True
def positive_sepa... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
a370c978a47bc4b67c07d327141825fd9ce68d99 | b441503bcdb484d098885b19a989932b8d053a71 | /neural_sp/evaluators/wordpiece.py | aae95de11e128601df6e62d74b585a82e86bef85 | [
"Apache-2.0"
] | permissive | entn-at/neural_sp | a266594b357b175b0fea18253433e32adc62810c | 9dbbb4ab3985b825f8e9120a603a6caa141c8bdd | refs/heads/master | 2020-08-28T05:48:28.928667 | 2020-06-22T19:17:53 | 2020-06-22T19:17:53 | 217,611,439 | 0 | 0 | null | 2019-10-25T20:40:18 | 2019-10-25T20:40:18 | null | UTF-8 | Python | false | false | 7,250 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Evaluate the wordpiece-level model by WER."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_functio... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
15ccd5f52842ed3e6115a9f7d0a4fde211cdd0e8 | 2f4390a25e1bba856c993e1412e935ec6bd57317 | /vanguard/urls.py | 6a3b7e8464774460103381a583ea4b6c27e11844 | [
"MIT"
] | permissive | svalleru/vanguard | af4ab5b0b8404bc28d508bd02be6e926397a6a73 | 5e76eac4bc0d5df329f33a16dd574b0ef763ae4e | refs/heads/master | 2023-08-26T17:50:38.145325 | 2023-08-02T23:02:46 | 2023-08-02T23:02:46 | 61,655,053 | 2 | 0 | MIT | 2023-08-02T23:02:47 | 2016-06-21T17:54:53 | Python | UTF-8 | Python | false | false | 939 | py | """vanguard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"shanvalleru@gmail.com"
] | shanvalleru@gmail.com |
f98a1584a105d194c9e6e6a5e93adcc623f4cfab | cb61ba31b27b232ebc8c802d7ca40c72bcdfe152 | /leetcode/931. Minimum Falling Path Sum/soln.py | 1e4b6c29b5e019be51d4b3abc9a345a86c121f90 | [
"Apache-2.0"
] | permissive | saisankargochhayat/algo_quest | c7c48187c76b5cd7c2ec3f0557432606e9096241 | a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc | refs/heads/master | 2021-07-04T15:21:33.606174 | 2021-02-07T23:42:43 | 2021-02-07T23:42:43 | 67,831,927 | 5 | 1 | Apache-2.0 | 2019-10-28T03:51:03 | 2016-09-09T20:51:29 | Python | UTF-8 | Python | false | false | 1,022 | py | # So we create a DP and start from the last low and start building up the the upper rows in the dp 2d array
# dp[i][j] represents the minimum path to reach that element with the given constraints.
class Solution:
def minFallingPathSum(self, A: List[List[int]]) -> int:
dp = [[0 for j in range(len(A[0]))] fo... | [
"saisankargochhayat@gmail.com"
] | saisankargochhayat@gmail.com |
86a3bc23436ff8c4eff096a5796e7cd006409c98 | 2caa95bf6977f06b367bdacfe8cddb9898aad5f0 | /intro/avoidObstacles.py | 7a3aeef0462802b921f1632fb9345a7f859e5005 | [] | no_license | michelsmartinez/codefights_exercises | a92ee2ac529cf719eb08104787b7d63beb18d207 | bcdd444f1c059d37570cbe1a08f047c7c457720e | refs/heads/master | 2021-08-31T19:00:56.601653 | 2017-12-22T13:20:17 | 2017-12-22T13:20:17 | 114,759,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # You are given an array of integers representing coordinates of obstacles
# situated on a straight line.
#
# Assume that you are jumping from the point with coordinate 0 to the right.
# You are allowed only to make jumps of the same
# length represented by some integer.
#
# Find the minimal length of the jump enough t... | [
"michel.martinez@cwi.com.br"
] | michel.martinez@cwi.com.br |
cab5aafff8e84c21491d9e3b216a7c83dd701455 | 8ec922f6acecd314b7be5397d2bc2f91533bbf1e | /Study/Functions.py | 037fd9e0af0d26c38e04cc45b5e0310d03b71150 | [] | no_license | andrecavalcanti18111983/Python | 18c7f46826b2a299fb6c19553ae1fe864adc31c3 | b00c4c5d24dc7926ebb013f748fde42f54b69b35 | refs/heads/main | 2023-06-26T05:01:22.709861 | 2021-07-28T12:34:59 | 2021-07-28T12:34:59 | 390,345,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | calculation_to_units = 24
name_of_unit = "hours"
def days_to_unit(num_of_days):
return f"{num_of_days} days are {num_of_days * calculation_to_units} {name_of_unit}"
def validade_and_execute():
try:
user_input_number = int(user_input)
if user_input_number > 0:
calculate_... | [
"68634379+andrelscavalcanti@users.noreply.github.com"
] | 68634379+andrelscavalcanti@users.noreply.github.com |
fadf1813c6bf7b19b811a7796e12fd098027bd47 | 6cf256f10838b23bb1a451551ad511816a3dbb88 | /omaha_server/sparkle/forms.py | 7f01efbd12300d78ac786d24ed0a8dd1d0ef73f3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | initialjk/omaha-server | 2ab8ba3d54e53c92b4bec512f7ac79dddb74c102 | 92bbb93a84c3d827262f2cfec7976cda7f41f1a2 | refs/heads/master | 2021-01-15T21:10:14.940483 | 2015-04-02T15:19:33 | 2015-04-02T15:19:33 | 32,273,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # coding: utf8
"""
This software is licensed under the Apache 2 license, quoted below.
Copyright 2014 Crystalnix Limited
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/... | [
"yurtaev.egor@gmail.com"
] | yurtaev.egor@gmail.com |
edb0c0132192cd46eb1316baeae7a2da78a0f89f | 2312db84a76baf32a918ed9d354dc324c842c3cb | /http/sse/hello-sse/server.py | 56e250a5cc475b1742a82ea0b0e0cf132f53d7f0 | [] | no_license | justdoit0823/notes | a6ec61c2429a76f7d9ac52d8535a97abfa96ee10 | 25da05f9fdd961949c56bcb11711934d53d50c9a | refs/heads/master | 2023-06-22T23:17:17.548741 | 2022-10-19T15:15:15 | 2022-10-19T15:15:15 | 18,003,252 | 13 | 1 | null | 2023-06-14T22:29:39 | 2014-03-22T06:01:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,283 | py |
"""Hello server send event module."""
import asyncio
import random
import string
import aiohttp
from aiohttp import web
import aiohttp_jinja2
from aiohttp_sse import sse_response
import click
import jinja2
_c_queue_mapping = {}
_shutdown_event = asyncio.Event()
def get_random_string(length):
"""Return fixed ... | [
"justdoit920823@gmail.com"
] | justdoit920823@gmail.com |
108110a304955c3ae58137945c8d77744beb6505 | d10ea337036d407411d63aa4d19ec1c6b6210623 | /django_project/genres/migrations/0002_alter_genre_options.py | ff7f2a43b9633f9e5d2eb8a277c29ca69d92ca1f | [] | no_license | Kyrylo-Kotelevets/Django_Book_Reviews | f8f75f5324da1c5d35c8656e9c989b3aae01b30c | 72470f926db9d8f996cf12be0b2910090ba0087e | refs/heads/master | 2023-08-10T22:21:26.507992 | 2021-09-21T12:11:43 | 2021-09-21T12:11:43 | 400,107,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # Generated by Django 3.2.6 on 2021-08-31 20:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('genres', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='genre',
options={'ordering': ('name',), 'verb... | [
"kyrylo.kotelevets@nure.ua"
] | kyrylo.kotelevets@nure.ua |
8d6d28f03e7dba2a24a1999e76fb628096a9fb19 | 486173e490129cec10b15c36903af3d13cfb0950 | /FP-growth/fpGrowthTest.py | 96ee73f6f17be8d5471447071182a3d3d5beda46 | [] | no_license | Hsingmin/MLinAction_on_Python2 | ce3592297cbddf4e7a5c6525b6491b1b37b87ca5 | ac5c5f8a167d3b4a5f7c7ee9e3409136db423ac0 | refs/heads/master | 2021-07-25T10:06:02.933608 | 2017-11-04T08:55:08 | 2017-11-04T08:55:08 | 103,387,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py |
# fpGrowthTest.py
import fpGrowth
from numpy import *
'''
# FP-Tree node create test
rootNode = fpGrowth.treeNode('pyramid', 9, None)
rootNode.children['eye'] = fpGrowth.treeNode('eye', 13, None)
rootNode.children['phoenix'] = fpGrowth.treeNode('phoenix', 3, None)
rootNode.disp()
'''
simData =... | [
"alfred_bit@sina.cn"
] | alfred_bit@sina.cn |
b96f2c76b38323327b3fd2cd6fe341d4e3148b74 | ec4ce2cc5e08e032f2bdb7d8e6ba616e80e6f5f7 | /chapter11_test_code/test_cities.py | f669296324136f72db551ae3d88cecb53a02dda6 | [] | no_license | AiZhanghan/python-crash-course-a-hands-on-project-based-introduction-to-programming | 8fc54ef69636c88985df00b546bc49c4a2378e79 | 9d8c9fde7d6ab9fe664fa718e1516d7442eafd00 | refs/heads/master | 2020-09-28T18:28:56.558413 | 2019-12-12T11:05:43 | 2019-12-12T11:05:43 | 226,835,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import unittest
from city_functions import get_formated_city_name
class CityTestCase(unittest.TestCase):
'''测试city_functions.py'''
def test_city_country(self):
'''能够正确地处理像Santiago, Chile这样的城市吗?'''
formetted_city_name = get_formated_city_name('santiago', 'chile')
self.assertEqual(forme... | [
"35103759+AiZhanghan@users.noreply.github.com"
] | 35103759+AiZhanghan@users.noreply.github.com |
d11cc39e33656680af6cca1dabb70e63e4f5e87c | 1fd59f9fb1331cbb77b8ff14b7ab64e9aadd1db6 | /unittesting/test_crawler/test_get_body.py | 029a0a406d59774592572c0174cea8b90c56ab06 | [] | no_license | saeedghx68/crawler | fccfa19494cd6e631948085c0dfe9949e4f3fecc | a2853f8acfbb1f3a3d19dc4df14db250d19b6d87 | refs/heads/master | 2023-08-04T08:49:39.625588 | 2021-10-31T15:58:18 | 2021-10-31T15:58:18 | 168,580,167 | 10 | 0 | null | 2022-07-06T19:59:11 | 2019-01-31T19:05:22 | Python | UTF-8 | Python | false | false | 761 | py | import unittest
import asyncio
from crawl import Crawler
class TestGetBody(unittest.TestCase):
def setUp(self):
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
def test_valid_url(self):
async def valid_url():
url = 'http://yoyowallet.com'
craw... | [
"saeed.ghx68@gmail.com"
] | saeed.ghx68@gmail.com |
f9198d9eb339474258efaac2ded39e65e899ec24 | b8e249f2bf0aa175899090128f7a77fb34aa2c1b | /apps/users/migrations/0002_auto_20190523_2209.py | ad3a4736f1152245525812b35261e78189162d03 | [] | no_license | dojo-ninja-gold/ng-server | 80d8568fa960e882df9e1a6fff7e020e93ff2990 | fcd69744a2ebf99f0c24b3136ba7a2d8a4c683e1 | refs/heads/master | 2023-05-03T21:05:54.026847 | 2019-05-24T22:29:51 | 2019-05-24T22:29:51 | 187,918,381 | 0 | 0 | null | 2023-04-21T20:32:36 | 2019-05-21T21:49:40 | Python | UTF-8 | Python | false | false | 830 | py | # Generated by Django 2.2.1 on 2019-05-23 22:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='first_name',
fie... | [
"wes@tao.team"
] | wes@tao.team |
c0814e43f0e2e81f7a2ea1755c40e656f739b742 | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/skia/gyp/tools.gyp | a4f8cfd62ab9ccea85060ad32dc63ec9fff9cb5e | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 19,668 | gyp | # Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# GYP file to build various tools.
#
# To build on Linux:
# ./gyp_skia tools.gyp && make tools
#
{
'includes': [
'apptype_console.gypi',
],
'targets': [
{
# Build... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
c6540befb02546360fde8697d9ad6f1187176976 | 6a999066cbdec2cdc1d20d068840ad7fcb0de19d | /p122_cnn_image_recognition.py | d344cd9e00c5d4b075b645724ab64799408d1dfa | [] | no_license | chrisjune/tensorflow_project | 4a4594ff800b7c84757121bba7a0c80be85789ff | 8d461ad6fd3e17ed7c7ad1a37253abe900c7f521 | refs/heads/master | 2021-04-03T08:14:18.716342 | 2018-05-19T08:06:23 | 2018-05-19T08:06:23 | 125,016,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./mnist/data/",one_hot=True)
import matplotlib.pyplot as plt
import numpy as np
#Data variabel
X = tf.placeholder(tf.float32 , [None, 28, 28, 1])
Y = tf.placeholder(tf.float32, [None, 10])
keep_prob = ... | [
"CJY@CJYui-MacBook-Air.local"
] | CJY@CJYui-MacBook-Air.local |
41706151fef1d1cd9a44b39dd33883328f4d028f | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/queryset_pickle/__init__.py | 65c7eab6fc54959a02377165342999a088249224 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/queryset_pickle/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
7ea66eada5f6c4acd8152bcd1f465d7d6d83e9bf | 2e4c7e3706030405cbe0d348b70a8f1df261bbf3 | /aula36.py | 82b165eeb8244e46209a46db2ee7ec116c01c60a | [] | no_license | squintal73/Python | 93b3c8dca2123999aac9c42a58936cb920966746 | e5f3dc91cdf696d146e5f763cbaf1b880533cb1c | refs/heads/master | 2022-11-14T10:23:29.137986 | 2020-07-09T04:10:23 | 2020-07-09T04:10:23 | 276,403,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # PRACTICE - PYTHON 036"
# Json
import json
carros_json='{"marca":"Honda","modelo":"HRV","cor":"Prata"}'
carros=json.loads(carros_json)
# for x in carros.values(): imprimi os valores "Honda"
# for x in carros.items(): imprimi os a linha tota ou o item "{"marca":"Honda"}"
# for x in carros(): imprimi a chave "marca"... | [
"sidnei_quintal@yahoo.com.br"
] | sidnei_quintal@yahoo.com.br |
38070280f5ab47224ff46500b9977e4b3c3b3cf9 | 12df91d7339562c11b572e7d8a4a6ca25f177357 | /二叉树/104.二叉树的最大深度.py | 02cd11b17e1b9b19f4f100e331100684d4f7518c | [] | no_license | snsunlee/LeetCode | a1827132fed8199e638da4d3afb68c222a7ffc57 | a38df8b102081f988c8dcc6deda8caaec575df82 | refs/heads/master | 2021-06-10T10:47:21.226583 | 2021-05-25T11:54:53 | 2021-05-25T11:54:53 | 185,298,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #
# @lc app=leetcode.cn id=104 lang=python3
#
# [104] 二叉树的最大深度
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def maxDepth(self, root: TreeNode) -> int:
if not root:
... | [
"snsunlee123@gmail.com"
] | snsunlee123@gmail.com |
873e6ba1c033baa76178ee1abf218c693f385f53 | bd390260329556fcd81f008e9f0d67ab25ab9ec8 | /CatchDownload.py | f0dbecc8e6726f7842d96ee23785768a72bbce9a | [] | no_license | VLSMB/Millia-The-Ending-CHS-Patch | 3449bff5ac560dc7dec4b3dc32ebddbc59b1d10d | 12f2b447e04883d9cbc2c1eba5c824d9fadd29b1 | refs/heads/main | 2023-07-03T21:00:06.368701 | 2021-08-09T02:59:14 | 2021-08-09T02:59:14 | 393,949,173 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | from bs4 import BeautifulSoup
import requests,re
#获取ys168网盘根目录信息
headersA = {"Accept":"*/*","Accept-Encoding":"gzip, deflate","Accept-Language":"zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2","Connection":"keep-alive","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Cookie":"__yjs_d... | [
"noreply@github.com"
] | VLSMB.noreply@github.com |
9bfc406bd5d3388d37ef44d357529cc09bffcda6 | 73c3d76f451b1b12e4e83026306fd3f688a96709 | /venv/bin/flask | 042c0d88b83d728104a5b23288334c1300cc88f2 | [] | no_license | everett-yates/learning-flask | 562479567059250279b9a1070bab1ce37d15d4a8 | 3596529a62bfc43c360e2c0f6f997cc183bf6a0d | refs/heads/master | 2021-01-02T22:46:58.837859 | 2017-08-04T23:53:10 | 2017-08-04T23:53:10 | 99,387,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/home/bobby/learning-flask/venv/bin/python
# -*- 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())
| [
"everett.yates@atlapps.net"
] | everett.yates@atlapps.net | |
12f77883df8917200b77ed652bec018debcd2f8c | 280040bde598205e3bb93112695d3f0adf161093 | /data/test_fvcom.py | 5f6c849c10824fca381ea2e1c1ee7283918bd101 | [] | no_license | geoffholden/ocean-navigator | 24965f8e90222c4b9f2a3ca56cb10df523dd87f1 | 2ae745d475744bcf4770982f1de55c05b3b29238 | refs/heads/master | 2021-01-21T06:42:02.957677 | 2017-05-18T16:49:35 | 2017-05-18T16:49:35 | 91,581,750 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | import unittest
import fvcom
import datetime
import pytz
class TestFvcom(unittest.TestCase):
def test_init(self):
fvcom.Fvcom(None)
def test_open(self):
with fvcom.Fvcom('data/testdata/fvcom_test.nc'):
pass
def test_depths(self):
with fvcom.Fvcom('data/testdata/fvcom... | [
"geoff@geoffholden.com"
] | geoff@geoffholden.com |
7a1d94f0c89d9af6c453aaafa6cff4c74c4de9f7 | cb5595fbf1520e1b8ab17836050956fd319e4dee | /hog/hog.py | 9ac9307bee2ba5c316697005baca613b7a6e1de1 | [] | no_license | davidlin0241/SICP-Projects | 3da529abd792e011d7d02f8d305798efa16f74aa | 97d3729aaa3f0b598e501823337c49ba0d543257 | refs/heads/master | 2020-07-23T20:54:25.733657 | 2020-02-17T02:34:23 | 2020-02-17T02:34:23 | 207,703,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,643 | py | """CS 61A Presents The Game of Hog."""
from dice import six_sided, four_sided, make_test_dice
from ucb import main, trace, interact
GOAL_SCORE = 100 # The goal of Hog is to score 100 points.
######################
# Phase 1: Simulator #
######################
def roll_dice(num_rolls, dice=six_sided):
"""Simul... | [
"davidlin0241@gmail.com"
] | davidlin0241@gmail.com |
b68b5150216302b06ba998298347b7a50375061f | ece9a0b9c2c3285f8ff68376ad3311a8cd6c5f3b | /99-LargestExponential.py | e5d157cc45a9587bb3938efcebc40a99755b8220 | [] | no_license | helani04/EulerProjects | a9908912b39a0c36605ddd2798da8fe86108b90b | 719b9b2f8f9cb6d6bd3dcccfba9423c5a6f3b1b6 | refs/heads/master | 2022-04-19T07:17:24.201244 | 2020-04-18T06:19:09 | 2020-04-18T06:19:09 | 256,530,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,602 | py |
numbers=[519432,525806,632382,518061,78864,613712,466580,530130,780495,510032,525895,525320,15991,714883,960290,502358,760018,511029,166800,575487,210884,564478,555151,523163,681146,515199,563395,522587,738250,512126,923525,503780,595148,520429,177108,572629,750923,511482,440902,532446,881418,505504,422489,534197,9798... | [
"helanikumarawadu@gmail.com"
] | helanikumarawadu@gmail.com |
dcc2d399258f579438cf9daa73f67a2279579a6f | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/smallinvSNPr1b050-055.py | b776f5ed09f35dcb7ccc13d0d18939f16d47a7d3 | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167,364 | py | # MINLP written by GAMS Convert at 02/15/18 11:44:28
#
# Equation counts
# Total E G L N X C B
# 4 0 2 2 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"christoph.neumann@kit.edu"
] | christoph.neumann@kit.edu |
6c281aa4d706afe4cbaa93514f9ccba63e13f302 | 6dc46eb6d63b1342398762d605d4d9753f7d7ef0 | /learn.py | d02a08eacee60f445adf3be88d0c5e7ca0501094 | [] | no_license | stalat/ImpWork | 800ce41ed46787aca5126880bc3f71af889ed143 | 1093721fe6b34f7970d74fe29d6ad08094a336f8 | refs/heads/main | 2023-04-21T02:11:58.585759 | 2021-05-08T07:35:33 | 2021-05-08T07:35:33 | 357,979,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | # Importing core python modules
import csv
import time
from random import randint
class LearnTable(object):
def __init__(self):
# User can chose any option out of these choices to make sure if he
# wish to learn further
self.choices_to_make = ['y', 'Y', 'n', 'N']
# Initial... | [
"talatparwez2@gmail.com"
] | talatparwez2@gmail.com |
1e0bc44fa3fba1c10f72ce9d61c6daa1c68bdcab | 888179fc56042fd50f283d8eaace04bec87ce582 | /PolicyGradient/pol_grad_unfrozen.py | e5654023e00655f4cdec72a35378fdaa87311454 | [] | no_license | stickzman/honors_thesis | c178c25b5cf6fa2d923d9f7f1ce519f28913b3a6 | 078ad97e9c7f7e07d343d16a25e5c3f7d32cbb53 | refs/heads/master | 2021-08-30T05:15:25.643928 | 2017-12-16T05:02:02 | 2017-12-16T05:02:02 | 103,351,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
import numpy as np
import gym
import matplotlib.pyplot as plt
from tutorial.tut_policy_gradient_agent import agent
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from thawedLakeEngine import Env
try:
xrange = x... | [
"Daniel.ahl1@marist.edu"
] | Daniel.ahl1@marist.edu |
e9d2fba53b75ecd2755d17c5468771018d927055 | 3d48adfc1a49a618aea10bfbc04228435e958f41 | /Synchronization_ST/TimingRecovery_ST.py | dc11310b0c6bf2f5866475244fd4076621ff4ca4 | [] | no_license | Camcore95/MetodykiProjektowTeleinf | dc691deecc595d44e4e99235f37ddd4ef65d383e | 7773f24bac4e2b14c5e3c6f63a0384c4c565724e | refs/heads/master | 2020-12-01T23:02:08.486233 | 2019-12-23T14:54:49 | 2019-12-23T14:54:49 | 230,803,413 | 0 | 0 | null | 2019-12-29T21:06:43 | 2019-12-29T21:06:42 | null | UTF-8 | Python | false | false | 2,638 | py | from Synchronization.TimingRecovery import TimingRecovery
from QPSK.Modulator import Modulator
from QPSK.Demodulator import Demodulator
from RadioTransmission_ST.RadioChannel import RadioChannel
import numpy as np
#########################################################################################################... | [
"kamilsternal20@wp.pl"
] | kamilsternal20@wp.pl |
0b1900e0a13d5588aa349822a427ad816264765e | 287fcd6bc49381d5b116dd541a97c0ff37141214 | /app/section/sections/hero_section.py | c5960e017024cdfa7d8610c48d487ea424d32899 | [] | no_license | elcolono/wagtail-cms | 95812323768b90e3630c5f90e59a9f0074157ab5 | b3acb2e5c8f985202da919aaa99ea9db2f6b4d51 | refs/heads/master | 2023-05-26T05:24:42.362695 | 2020-10-08T17:23:22 | 2020-10-08T17:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,839 | py | from django.db import models
from wagtail.snippets.models import register_snippet
from wagtail.admin.edit_handlers import (
MultiFieldPanel, FieldPanel, StreamFieldPanel, FieldRowPanel)
from wagtail.admin.edit_handlers import ObjectList, TabbedInterface
from wagtail.images.edit_handlers import ImageChooserPanel
fr... | [
"andreas.siedler@gmail.com"
] | andreas.siedler@gmail.com |
cf258f0e1d1a474ab2979b9f003106f8014ed209 | 0a5a22c5cf15b56e17df6f45bc92ea3414c45ada | /app.py | 429abe272f03f6b634142aa45ac5d95fd6f62085 | [] | no_license | nidhi988/predicting-salary-of-employees | 65cb0f1b4525af1838b2c8c67f382bbb4ae789a0 | f8666ac17814dc48378095eade1c11c341fce004 | refs/heads/master | 2022-11-18T04:15:48.091687 | 2020-07-17T07:58:42 | 2020-07-17T07:58:42 | 280,363,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('C:\\Users\\LOHANI\\Desktop\\predicting salary of employees\\model.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict',methods... | [
"noreply@github.com"
] | nidhi988.noreply@github.com |
c364bf86337f174f6c159d3984b287408e5a58e9 | 572c9dd60e56a58987a3c2551daab0f80a607d35 | /src/train/sample/text_sample_embedded.py | e42e1b2c1e1f91b33f65d64bdc8a15fb9b29e721 | [] | no_license | yogurtco/learning_framework | 07777ee3a8febdde70e0230bfd930dbee415f578 | efa786c60a3904c2d3afa1a08b821a09bec7ae2c | refs/heads/master | 2022-11-21T10:27:10.908735 | 2020-07-11T08:30:13 | 2020-07-11T08:30:13 | 278,622,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | from typing import List
import torch
from learning_framework.src.train.sample.base_sample import BaseSample
import numpy as np
class TextSampleEmbedded(BaseSample):
padding_size = 400
def __init__(self, text_data: np.ndarray, text_gt: np.ndarray):
assert isinstance(text_data, np.ndarray), "{} is not ... | [
"yogurt.co@gmail.com"
] | yogurt.co@gmail.com |
fb12a92b52212e89e2cadcc438e0da54af195126 | 60b10ea16030b487bf17642e193f42f806d4b05f | /videocapture.py | 89324137a13dbfdf43df5468eba75fe29162ee67 | [] | no_license | utkarsh-srivastav/VideoCapture | 48d1238cc1d96750ce28abe2445ac16dc9dd0870 | 2668de171e9e66587918558271175ac655738516 | refs/heads/master | 2022-12-14T11:45:30.555531 | 2020-09-10T06:11:22 | 2020-09-10T06:11:22 | 294,319,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import cv2
video = cv2.VideoCapture(0)
a = 1
while True:
a = a+1
check, frame = video.read()
print(frame)
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow("Capture", gray)
key = cv2.waitKey(1)
if key == ord('q'):
break
print(a)
video.release()
cv2.destroyAllWindows()
| [
"utkarshsrivastav233@gmail.com"
] | utkarshsrivastav233@gmail.com |
967e7320a9a29f041353b28c1b5ab24efafaf248 | 7196665b280786ed8225f6ba13ab9038f17d1040 | /dxspider/bdimage.py | dc47fab3288dc38201e82df24e1e52bf5365ed3e | [
"MIT"
] | permissive | dujiepeng/spider_baidu | 369ac4650ef614af1c6e09d8d96afab324282161 | 6211f6e142aa5b375b7dc94935ff7be5add62105 | refs/heads/master | 2021-01-17T06:59:41.536822 | 2016-04-27T07:23:36 | 2016-04-27T07:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,398 | py | # coding = utf-8
'''
使用正则表达式查找
提供以下功能:
1. 获取百度图库一级分类
2. 获取百度图库 "壁纸"分类
3. 获取"壁纸"分类下的图片原始链接
'''
from urllib import parse
from urllib import request
# from bs4 import BeautifulSoup
import re
import os
import datetime
# import threading
URL_TIMEOUT = 20
IMAGE_BASE_URL = "http://image.baidu.com/"
headers = {
'Conne... | [
"xyjxyf@163.com"
] | xyjxyf@163.com |
ce216ce47e0e2a40bf167808914a09f67706c10b | ac83e924105295a6dac6682c830ede44884e1437 | /Computer Vision course - Msc BGU/Exercise 1/task/dense_SIFT_example_new.py | b918b014924449c6b04f5c772ac0af081fbc395e | [] | no_license | Hengrinberg/Data-Science-Projects | 973f51307b45a03a1aa0ead8e44f234d59e839f9 | 139f3cb8c90a6d2bd12ec0ae94aa66378f745c7f | refs/heads/master | 2021-06-03T11:49:17.979701 | 2021-04-13T10:08:20 | 2021-04-13T10:08:20 | 102,189,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import skimage.data as skid
import cv2
import pylab as plt
import scipy.misc
img = scipy.misc.face()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
plt.figure(figsize=(20,10))
plt.imshow(img)
plt.show()
sift = cv2.xfeatures2d.SIFT_create()
step_size = 5
size = 5
kp = [cv2.KeyPoint(x, y, size) for y in range(0, gray.... | [
"heng@youtiligent.com"
] | heng@youtiligent.com |
c209ff085368ec5de726e07ca1298dcd1d6c77be | 35463a0e00e2a1e90171e646eaeaadaa61d3b867 | /Part 6 - Reinforcement Learning/Section 33 - Thompson Sampling/thompson_sampling.py | 0fe5e9f6682649c01bc92218cb60f2ee5c3305d8 | [] | no_license | Redwa/Machine-Learning-A-Z | 3ef4f905a71ba2ce9eb2371869b61d820bc78bfe | 14bc93491dd3d7a940d743d71a71f286c0a7fcf1 | refs/heads/master | 2021-01-25T05:09:34.071676 | 2017-05-11T13:03:20 | 2017-05-11T13:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 17 21:49:14 2017
@author: Nott
"""
#Thompson Sampling
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Ads_CTR_Optimisation.csv')
#Implementing Thompson Sampling
import random
N = 10000
d = 10
ads_se... | [
"sawatdeekrab@gmail.com"
] | sawatdeekrab@gmail.com |
05073c0c21276b72ee5fdccd7d1ae12855c27c0c | 212770b9868cbab6c016cd6acdfb3c117bbf7ab6 | /polls/views.py | 097805857e14fc9f7433e60c48c0209e293a5930 | [] | no_license | Derstilon/SQLProject | a75cd2774a6c2c72df3a926b45d01159de336336 | fc0e70b8b738cdbc3e144340f7be3b9894bb6872 | refs/heads/master | 2022-07-07T19:32:02.346957 | 2020-06-06T18:56:09 | 2020-06-06T18:56:09 | 250,903,453 | 0 | 0 | null | 2022-06-22T01:56:46 | 2020-03-28T22:09:53 | HTML | UTF-8 | Python | false | false | 1,508 | py | from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.template import loader
from django.urls import reverse
from django.views import generic
from .models import Question, Choice
class IndexView(generic.ListView):
template_name = '... | [
"ostatni5@o2.pl"
] | ostatni5@o2.pl |
4b9785d208ec7bfd695f67a1c0ae0ae14af5c025 | d3e4b3e0d30dabe9714429109d2ff7b9141a6b22 | /Visualization/LagrangeInterpolationVisualization.py | 88ab36a87c9cd16c736d839ffcb9ba3d3157994f | [
"MIT"
] | permissive | SymmetricChaos/NumberTheory | 184e41bc7893f1891fa7fd074610b0c1520fa7dd | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | refs/heads/master | 2021-06-11T17:37:34.576906 | 2021-04-19T15:39:05 | 2021-04-19T15:39:05 | 175,703,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from Polynomials import lagrange_interpolation
import matplotlib.pyplot as plt
import numpy as np
points = [1,3,5,7]
function = lambda x: np.sin(x)
print("""Lagrange interpolation takes a set of n points and finds the "best" polynomial that describes them. Given n points on a plane there is a polynomial of degree n... | [
"ajfraebel@gmail.com"
] | ajfraebel@gmail.com |
1d35b0c6b7a5c4252763588c948c81d9b77ad15b | b458b2cf3011a73def66605b296144049909cd48 | /tests/my_trade.py | e749520a049723eff15fa850405a79187d1d6f1f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | shihliu/python-binance | 8c5607a78a4794f9b42fe90092a149f4050d4710 | c44f8a315df32c8b5d54750c27703060ec9060aa | refs/heads/master | 2021-08-22T02:47:10.423523 | 2017-11-29T04:34:30 | 2017-11-29T04:34:30 | 111,865,384 | 0 | 0 | null | 2017-11-24T01:57:33 | 2017-11-24T01:57:33 | null | UTF-8 | Python | false | false | 1,044 | py | from binance.client import Client
import json
client = Client('yq67cDjrCxGl6eeKMyTeiK1zkeArFpu8v4uB4b6TWDQdgjDlH0KjmXfHBZ1NjvJj', 'DxE7Wugo75EK8mLmybY76dbZW6tROpyNjBRd9NHsEOXqBaKq6Awgul4390xwRUdc')
my_trade = client.get_my_trades(symbol='QSPETH')
all_buy_price = all_buy_amount= 0.0
all_sell_price = all_sell_amount= 0... | [
"root@dhcp-129-210.nay.redhat.com"
] | root@dhcp-129-210.nay.redhat.com |
b1ff28e00fcaf827759d3315508259d5c02fe49a | 912cb61eaa768716d30844990ebbdd80ab2c2f4e | /ex070.py | aad48d4aa3286cd92534b1c397274d2ac7ddf5ea | [] | no_license | luizaacampos/exerciciosCursoEmVideoPython | 5fc9bed736300916e1c26d115eb2e703ba1dd4ca | 398bfa5243adae00fb58056d1672cc20ff4a31d6 | refs/heads/main | 2023-01-06T21:48:17.068478 | 2020-11-11T12:29:10 | 2020-11-11T12:29:10 | 311,964,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | total = tk = menor = soma = 0
print('--------------Loja Sallus-----------------')
while True:
prod = input('Nome do produto: ')
valor = float(input('Preço: R$'))
soma += 1
cont = str(input('Quer continuar? [S/N] ')).upper().strip()[0]
total += valor
if valor > 1000.00:
tk += 1
if som... | [
"luiza.almcampos@gmail.com"
] | luiza.almcampos@gmail.com |
6117f3c8eb4a8b3c838875fb81981e1cd8764c57 | 7cb811ca5578e92b9efa1159b2d2a8972d89c030 | /general/flutterwave_helpers.py | bfd71d17b4071624a33c1e5249351ac97f5ab5d1 | [] | no_license | isaiahiyede/izzyUzo | 251d95a8d3921c491d7caf14cbd77c48732c7675 | 4bf2f024bcad837215cd022765aeb94090e7fa52 | refs/heads/master | 2022-11-30T08:06:03.153990 | 2019-06-07T18:55:07 | 2019-06-07T18:55:07 | 190,793,404 | 0 | 0 | null | 2022-11-22T00:34:18 | 2019-06-07T18:47:02 | CSS | UTF-8 | Python | false | false | 14,772 | py | try:
from flutterwave import Flutterwave
except Exception as e:
print 'e: ',e
pass
from django.conf import settings
import random
from django.shortcuts import render, redirect
import ast
from django.contrib import messages
from django.core.urlresolvers import reverse
from sokopay.models import SokoPay, Mark... | [
"isaiahiyede.ca@gmail.com"
] | isaiahiyede.ca@gmail.com |
c845118f231d95af60dcd0e8f2f185057bc62db9 | e77912fd6681f487fdd45b61908b39990c7b413d | /ppo_ddt/agents/baseline_agent.py | 293be0562eb7dbff5bb6b53bd39eebccd2c97567 | [] | no_license | chrisyrniu/ppo_ddt | a55e7cc4c0740c0619a9fd9c048aa66eff592e10 | 913e54cdf484f0f0193cc30af934ae9d5b68c89d | refs/heads/main | 2023-06-11T20:36:12.370061 | 2021-06-29T07:13:27 | 2021-06-29T07:13:27 | 379,434,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | py | import torch
import torch.nn as nn
from torch.distributions import Categorical
from ppo_ddt.rl_helpers.mlp import MLP
import copy
from ppo_ddt.agents import CartPoleHeuristic, LunarHeuristic, \
StarCraftMacroHeuristic, StarCraftMicroHeuristic
from ppo_ddt.agents import DeepProLoNet
class BaselineFCNet(nn.Module):... | [
"noreply@github.com"
] | chrisyrniu.noreply@github.com |
ecaddca74190decf179e750f4b15682975147252 | 4fee5cf517f9853cf1a33c3d1bf16247f4ecc34c | /server/log/printout.py | c389144c83c0df2ef4594a811e3d4c64102582c8 | [] | no_license | hoanduy27/GardBot | 8708030fca24bb3787959bb558b615f98fddd4d6 | dd9a87ab1b5c8bf149542c22bbc57c46aec600ba | refs/heads/master | 2023-06-06T10:14:54.886986 | 2021-06-24T15:15:49 | 2021-06-24T15:15:49 | 366,006,154 | 0 | 0 | null | 2021-06-20T03:51:20 | 2021-05-10T10:36:44 | Kotlin | UTF-8 | Python | false | false | 435 | py | class Printout:
INFO_STYLE = '\033[0;37m[INFO]'
ERROR_STYLE = '\033[1;31m[ERROR]'
WARNING_STYLE = '\033[0;33m[WARNING]'
@staticmethod
def i(key, message):
print(f'{Printout.INFO_STYLE} {key}: {message}')
@staticmethod
def e(key, message):
print(f'{Printout.ERROR_STYLE} {key}:... | [
"hoanduy27@gmail.com"
] | hoanduy27@gmail.com |
1ab9aeeaa915aa465fa60013804a1786e46f06ac | e8c22556d1c3da2118220b10a38950598619abfd | /TunisianLeague.py | 362581df3d8f071909014d7b19d591f295f9b7d8 | [] | no_license | mmouhib/Football-Leagues-Standings | 97542e864516d3e6d154cd5f1f46e8fca1f2a33f | a8e85659e46bd42f07e3275b38090f5e25c8bce3 | refs/heads/main | 2023-04-23T15:23:06.014620 | 2021-05-12T06:21:56 | 2021-05-12T06:21:56 | 366,610,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | from bs4 import BeautifulSoup
import os
import requests
class Team:
def __init__(self, pos, team_name, matches_played, wins, draws,
losses, goals_for, goals_against, goal_diff, pts, last_five):
self.pos = pos
self.team_name = team_name
self.matches_played = matches_played
... | [
"mouhibouni321@gmail.com"
] | mouhibouni321@gmail.com |
6a7e5845d8d77668de1a676f33da668cf725b5a0 | 25bc51b25262698f32554b327f2fe786fcb9ab70 | /src/api2.py | 6b856b22a5f2c9a810bb3c16293801e7769bb15d | [
"MIT"
] | permissive | classabbyamp/rtex | d8088abce0fabea9844e6e4a9de74857263e2d0c | f9d86ecbf1ab1b59668bee8af6c3709daa26c481 | refs/heads/master | 2022-10-16T02:49:28.299001 | 2020-06-02T22:49:26 | 2020-06-02T22:49:26 | 268,661,159 | 0 | 0 | MIT | 2020-06-02T00:15:44 | 2020-06-02T00:15:44 | null | UTF-8 | Python | false | false | 1,888 | py | import os
import json
import string
import re
import aiohttp
import logs
import stats
import jobs
from random_string import random_string
async def post(request):
# print(await request.text())
req = (await request.post()) or (await request.json())
code = req.get('code')
output_format = req.get('format... | [
"dxsmiley@hotmail.com"
] | dxsmiley@hotmail.com |
30197700259a9549341c49c7bd19ffeca986744d | fb0e99751068fa293312f60fedf8b6d0b9eae293 | /slepé_cesty_vývoje/iskušitel/najdu_testovací_soubory.py | 452504d722f35dd929333e4039ac4e9dc3d416ee | [] | no_license | BGCX261/zora-na-pruzi-hg-to-git | d9628a07e3effa6eeb15b9b5ff6d75932a6deaff | 34a331e17ba87c0de34e7f0c5b43642d5b175215 | refs/heads/master | 2021-01-19T16:52:06.478359 | 2013-08-07T19:58:42 | 2013-08-07T19:58:42 | 41,600,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/env python3
# Copyright (c) 2012 Домоглед <domogled@domogled.eu>
# @author Петр Болф <petr.bolf@domogled.eu>
import os, fnmatch
MASKA_TESTOVACÍCH_SOUBORŮ = 'testuji_*.py'
def najdu_testovací_soubory(cesta):
počet_nalezených_testů = 0
if os.path.isdir(cesta):
for cesta_... | [
"petr.bolf@domogled.eu"
] | petr.bolf@domogled.eu |
c3f6f7d8fc443d77d3e3e9e3fcc2804ef70cb098 | e4a565b09a8d3fd9dc46cc38c5e42fbcb94c1b05 | /nm.py | dc62e8a2fb7744f9a60632e986b66c229ef4b099 | [] | no_license | mystblue/PyTools | ca91d0a1a8850bc749adb9d05c3fd49166f58831 | 5eab64345d0ae5614f6cdabe3005b515f078a744 | refs/heads/master | 2023-09-01T19:55:37.190349 | 2023-08-31T00:55:25 | 2023-08-31T00:55:25 | 1,466,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # encoding: utf-8
import re
ubuf = ""
with open("test.html", "r") as frp:
buf = frp.read()
ubuf = buf.decode("utf-8")
ubuf = re.sub(">", ">", ubuf)
ubuf = re.sub("[ ]+$", "", ubuf)
ubuf = re.sub("<[^>]+>", "", ubuf)
with open("test.html", "w") as frp:
frp.write(ubuf.encode("utf-8"))
| [
"k-kayama@finos.hakata.fukuoka.jp"
] | k-kayama@finos.hakata.fukuoka.jp |
413cdca73ad398e6965d4f8c713960a58e72b596 | 922a58fa02ed0427e6697da54f19bc84e83f4d29 | /lyricsloader/load.py | e00562638f626b93b50868ac4bfce4788147a1d3 | [
"MIT"
] | permissive | afcarl/LyricsLoader | 560e66c48ecbc8ce95a8f41004abfa175ba496c5 | 795bc8838177fe4659df64da230b4348aed23db7 | refs/heads/master | 2020-12-04T05:18:51.204027 | 2019-08-03T16:30:42 | 2019-08-03T16:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | from typing import Dict, List, Optional, Union
import requests
from bs4 import BeautifulSoup
class LyricsLoader:
def __init__(self, artist: str, suppress_err: bool = False) -> None:
"""
:param artist: name of artist
:param suppress_err: whether to suppress LyricsLoaderError if artist/alb... | [
"dkaslovsky@gmail.com"
] | dkaslovsky@gmail.com |
bbca1de8f3365de6962acd80b69471036e33422e | 68c4805ad01edd612fa714b1e0d210115e28bb7d | /venv/Lib/site-packages/numba/tests/test_config.py | de8371b8b2d4ac9757452a6d5a24a1954ff13f8d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Happy-Egg/redesigned-happiness | ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c | 08b705e3569f3daf31e44254ebd11dd8b4e6fbb3 | refs/heads/master | 2022-12-28T02:40:21.713456 | 2020-03-03T09:04:30 | 2020-03-03T09:04:30 | 204,904,444 | 2 | 1 | Apache-2.0 | 2022-12-08T06:19:04 | 2019-08-28T10:18:05 | Python | UTF-8 | Python | false | false | 3,444 | py | import os
import tempfile
import unittest
from .support import TestCase, temp_directory, override_env_config
from numba import config
try:
import yaml
_HAVE_YAML = True
except ImportError:
_HAVE_YAML = False
_skip_msg = "pyyaml needed for configuration file tests"
needs_yaml = unittest.skipIf(not _HAVE_YA... | [
"yangyang4910709@163.com"
] | yangyang4910709@163.com |
e0f22fd71048326d2bb4e2124f6e7ddf8ca591cf | a28292ebdda00ff8eb362a83d0f70bce8133258c | /logistic/views.py | a69aef397373a7316af24139daedd638c51b6f7f | [] | no_license | maratkanov-a/logistic | 7681f537c6dc21c2dfbdc89b7af1a3910897af2c | 2fa85f1bcea266f195467e9396ec86e270ca8666 | refs/heads/master | 2021-01-17T08:33:17.395073 | 2016-08-04T09:12:23 | 2016-08-04T09:12:23 | 60,477,657 | 0 | 2 | null | 2016-06-13T15:58:08 | 2016-06-05T19:44:56 | Python | UTF-8 | Python | false | false | 712 | py | from django.core import urlresolvers
from django.views import generic
from logistic import forms
from logistic import models
class Index(generic.CreateView):
template_name = 'logistic/index.html'
form_class = forms.SimpleRequestForm
model = models.SimpleRequestModel
def get_success_url(self):
... | [
"maratkanov@yandex-team.ru"
] | maratkanov@yandex-team.ru |
946c2cf07550b349ae7705ea34918564c9a275a7 | eacdc4bda210386d4773399c3ee46c4f028cca10 | /Parser/Task_3_Handler.py | 21df8c85c3736b41b0e374d1dde47e7cb9e1d0b4 | [] | no_license | 406410672/p_dtb_f | 9d32e333c6b8822d607ee42c75a26eabed896e87 | d04b693c21bd7be8ab8f4ff5add0384b71563017 | refs/heads/master | 2020-03-11T17:42:47.931249 | 2018-05-22T03:35:48 | 2018-05-22T03:35:48 | 130,155,004 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/5/9 15:15
# @Author : HT
# @Site :
# @File : Task_3_Handler.py
# @Software: PyCharm Community Edition
# @Describe: Desc
# @Issues : Issues
import functools
import re
from BaseModule.HTMLParser import HTMLParser as hp
from BaseModule.HTTPRequest i... | [
"18316551437@163.com"
] | 18316551437@163.com |
19377378073d0491068a8850c5ec1a202b416b4e | e514bbdf8e0abe5ef0b58b94fe5f7d2afb38ea6b | /test_suite/shared_data/frame_order/cam/rotor/perm_pseudo_ellipse_z_le_x_le_y_alt/pseudo-ellipse.py | b1dec4d76ae1ec4b73e2fd5cf18f201d538cd854 | [] | no_license | edward-dauvergne/relax | 98ad63703e68a4535bfef3d6c0529e07cc84ff29 | 9710dc0f2dfe797f413756272d4bec83cf6ca1c9 | refs/heads/master | 2020-04-07T04:25:25.382027 | 2017-01-04T15:38:09 | 2017-01-04T15:38:09 | 46,500,334 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | # Optimise all 3 pseudo-ellipse permutations for the CaM rotor synthetic frame order data.
# These 3 solutions should mimic the rotor solution.
# Python module imports.
from numpy import array, cross, float64, transpose, zeros
from numpy.linalg import norm
import sys
# relax module imports.
from lib.geometry.coord_tr... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
238766efb621c4ea8ebfbc76bee09febb405c98b | 7b1420324360f79a2763a13b9f56b18e6dd45e0a | /Legacy/LG_surface_fitting.py | 8034eeed0dcaeefe231c5852da00da2fc85b1d4c | [] | no_license | Eflom/LG_Fitting | 37cc8aa45988046630fcbdcd7995a0bc6b3d5dbc | 9138261ee7b17c943ee05091114b35021fb4d009 | refs/heads/master | 2021-05-07T20:38:36.425940 | 2017-12-13T20:28:31 | 2017-12-13T20:28:31 | 108,931,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,876 | py | import numpy as np
from numpy import mean, sqrt, square, average
import numpy.ma as ma
import pylab
import matplotlib.pyplot as plt
import scipy
from scipy import special
from mpl_toolkits.mplot3d.axes3d import Axes3D
import cmath
import pandas as pd
import scipy.optimize as opt
from scipy.odr import ODR, odr, Model, D... | [
"erikflom86@gmail.com"
] | erikflom86@gmail.com |
f31f612131930929e78310b8e8f88d8b51ffea52 | 5a72c3b3adff4ae034f207268af358161a5f5c4b | /historic_hebrew_dates/values/dict.py | 595216ebb08b6a05ee04e39f0f3e28180920d248 | [
"BSD-3-Clause"
] | permissive | UUDigitalHumanitieslab/historic-hebrew-dates | 3212e437a47a73abc3594dd43d35b1997cf8e418 | 5ace44d9b1315a96a96ea296383f0b618d994212 | refs/heads/develop | 2023-01-24T13:27:44.021311 | 2020-06-24T12:05:30 | 2020-06-24T12:05:30 | 176,713,362 | 1 | 0 | BSD-3-Clause | 2023-01-07T09:13:04 | 2019-03-20T10:53:28 | Python | UTF-8 | Python | false | false | 198 | py | #!/usr/bin/env python3
import yaml
from typing import Dict
def dict_value(expression: str) -> Dict:
values: Dict[str, str] = yaml.safe_load('{' + expression[1:-1] + '}')
return values
| [
"s.j.j.spoel@uu.nl"
] | s.j.j.spoel@uu.nl |
5309bdadded82baf1d63c7d55531b2e1182bd445 | 33513f18f4ee7db581a9ccca0d15e04d3dca0e2d | /detector/YOLOv3/detector.py | 4bacdb526423c9e1f55ae6639029ba7a3ba5eab0 | [
"MIT"
] | permissive | xuarehere/yolo_series_deepsort_pytorch | 0dd73774497dadcea499b511543f3b75e29d53e1 | 691e6eb94260874de29a65702269806fc447cf8c | refs/heads/master | 2023-05-23T18:32:00.991714 | 2023-02-01T10:58:18 | 2023-02-01T10:58:18 | 513,482,826 | 36 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | import torch
import logging
import numpy as np
import cv2
try:
from .darknet import Darknet
from .yolo_utils import get_all_boxes, nms, post_process, xywh_to_xyxy, xyxy_to_xywh
from .nms import boxes_nms
except:
from darknet import Darknet
from yolo_utils import get_all_boxes, nms, post_process, xyw... | [
"xuarehere@foxmail.com"
] | xuarehere@foxmail.com |
164b19c6ae1bd8b400a1296c2b5d3a93cddf328d | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/RobSpectre-Call-Your-Family/allPythonContent.py | dfea466529f966662dd2984fc56f28256ffdd134 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,193 | py | __FILENAME__ = app
import os
import signal
from flask import Flask
from flask import render_template
from flask import url_for
from flask import request
from twilio import twiml
# Declare and configure application
app = Flask(__name__, static_url_path='/static')
app.config.from_pyfile('local_setting... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
835c27431d3a140adf6503dcd77cb46bc75158db | 27522b219cf00fd702a101cb8192c77bde93f1c6 | /Motorbike Cost - Home Learning Task.py | 3ec7f69e7a5adef9f3813406095e9ae53fd69343 | [] | no_license | Rajan-95/TTA-Home-Learning | 66b9fedb95b2399e6d9daebf1ecdaef1c690e767 | 2a772209c73a9fda526a60954f20df1ccffe7479 | refs/heads/main | 2023-05-26T06:28:03.531230 | 2021-06-15T11:41:56 | 2021-06-15T11:41:56 | 377,140,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # Task: Motorcycle costs £2000, print the value of the motorcycle every year until its value drops below £1000.
motorbike = 2000
year2021 = motorbike * 0.9
print("Value of bike in 2021: £" + str(year2021))
year2022 = year2021 * 0.9
print("Value of bike in 2022: £" + str(year2022))
year2023 = year2022 * 0.9
print... | [
"noreply@github.com"
] | Rajan-95.noreply@github.com |
8282401112b1b4d464f5eb4541b0d79ec6a226e1 | af67d7d0f56da5d8ac9a6fbd4b0aedcebf5a6434 | /buglab/models/evaluate.py | 6451f664c2e61472f2c8c46d28d3d1c9e7e5661b | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/neurips21-self-supervised-bug-detection-and-repair | 23ef751829dc90d83571cd68c8703e2c985e4521 | 4e51184a63aecd19174ee40fc6433260ab73d56e | refs/heads/main | 2023-05-23T12:23:41.870343 | 2022-01-19T12:16:19 | 2022-01-19T12:16:19 | 417,330,374 | 90 | 23 | MIT | 2022-08-30T11:54:55 | 2021-10-15T01:14:33 | Python | UTF-8 | Python | false | false | 11,936 | py | #!/usr/bin/env python
"""
Usage:
evaluate.py [options] MODEL_FILENAME TEST_DATA_PATH
Options:
--aml Run this in Azure ML
--azure-info=<path> Azure authentication information file (JSON). Used to load data from Azure storage.
--minibatch-size=<size> The minibatch size. [de... | [
"miallama@microsoft.com"
] | miallama@microsoft.com |
d00b15b51af9b80c644dd6ea97b30104695d30ea | 127524f1e0b3675ba9660d0f531cfd7bd62935f0 | /quickai/yolo/utils.py | 0a1a51c24ab6b2bf55afff234575111a724bb849 | [
"MIT"
] | permissive | bryan2022/quickai | 779fc153bd98d7efc48879a37abdd18831eefe87 | 2c84bce9751131eef75e91803eb6bf6ea25c0b89 | refs/heads/main | 2023-06-15T00:56:45.188599 | 2021-07-11T14:43:59 | 2021-07-11T14:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,713 | py | import cv2
import random
import colorsys
import numpy as np
import tensorflow as tf
from .config import cfg
YOLO_CLASSES = "./coco.names"
def load_freeze_layer(model='yolov4', tiny=False):
if tiny:
if model == 'yolov3':
freeze_layouts = ['conv2d_9', 'conv2d_12']
else:
free... | [
"iamapythongeek@gmail.com"
] | iamapythongeek@gmail.com |
8b6ae75cd27c32f78ea740595757c1a84a66c477 | 6e43937c521b841595fbe7f59268ffc72dfefa9d | /GSP_WEB/views/index/view.py | 8abba08ca5d578311be5a2e72cc36170dcf80929 | [] | no_license | MiscCoding/gsp_web | a5e50ce7591157510021cae49c6b2994f4eaabbe | a24e319974021ba668c5f8b4000ce96d81d1483e | refs/heads/master | 2020-03-28T15:11:30.301700 | 2019-08-12T04:47:42 | 2019-08-12T04:47:42 | 148,565,440 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,123 | py | #-*- coding: utf-8 -*-
import datetime
from collections import OrderedDict
from dateutil import parser
from elasticsearch import Elasticsearch
from flask import request, render_template, Blueprint, json
from GSP_WEB import login_required, db_session, app
from GSP_WEB.common.encoder.decimalEncoder import DecimalEncode... | [
"neogeo-s@hanmail.net"
] | neogeo-s@hanmail.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.