blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e738f57abaf2f4bade3d418917aad39cbae070f | 7649278f4bda14aaf4ec02b7ae58094e16d98618 | /Project/scripts/cartpole_eval.py | 61018275f50b4f2d739e06cf8596805d284be6f9 | [] | no_license | peng00bo00/optlearningcontrol | 1877381ca749f17caf75ede02a5cb263cbddaa79 | 44eff6d17e4da0b0adc85e5e84cf4b8edb8a1bb8 | refs/heads/master | 2021-01-06T18:44:58.981575 | 2020-05-19T17:44:34 | 2020-05-19T17:44:34 | 241,445,231 | 0 | 0 | null | 2020-02-18T19:11:08 | 2020-02-18T19:11:08 | null | UTF-8 | Python | false | false | 1,121 | py | import numpy as np
import tensorflow as tf
import gym
from gym import wrappers
import os
import matplotlib.pyplot as plt
## environment
env = gym.make('CartPole-v0')
env = wrappers.Monitor(env, '../animations/', force=True)
env.reset()
## GPU configuration
gpus = tf.config.experimental.list_physical_devices('GPU')
f... | [
"pengbo_tongji@126.com"
] | pengbo_tongji@126.com |
c5cff275de54420bcb38baed08c685af8327ebac | a11f247da185f02576f1c601044652a41ea8fb04 | /utils/pd_utils.py | d8b7b3ea8068867b26e8b46e5175d60c16d27788 | [] | no_license | JinchaoCai/sportsKG | 341397a13e199d28af3e807447a27eadd260048d | ea6f72fbee9a4fd780d00b7189fbb577cd448af4 | refs/heads/master | 2022-12-15T14:02:25.315709 | 2020-09-11T08:36:26 | 2020-09-11T08:36:26 | 285,804,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import pandas as pd
def to_dict_dropna(df):
return [{k.strip():v.strip() if isinstance(v, str) else v for k,v in m.items() if pd.notnull(v)} for m in df.to_dict(orient='records')]
def read_tsv(filename, dropna=True):
df = pd.read_csv(filename, sep='\t')
if dropna:
return to_dict_dropna(df)
els... | [
"jinchao_cai@apple.com"
] | jinchao_cai@apple.com |
a22da995080be9b7137906676c4dc3cf0bb0d461 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_203/ch11_2019_08_15_11_47_33_547429.py | e6e08c29c09dcae0bbe100b081717e5f1418ada4 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | def celsius_para_fahrenheit (x) :
y = 1.8*x+32
return y
celsius_para_farenheit (7)
print (x) | [
"you@example.com"
] | you@example.com |
d8ec9fe884c663a6f32ba053dea2d5ec8a046bf8 | c417eca3685bbbe576d34f03d6d25c790eba723c | /setup.py | 3af7050cea9f208b11a1da34ec8ef1c1f5691e8f | [
"BSD-2-Clause"
] | permissive | flexiblecloud/cloud_ui | 6e48e14df23913f6bcaf23f13e3e772363acd6ff | 99b3db4f5991afe183c69d4b0e5ed3112b5ab8e1 | refs/heads/master | 2020-07-16T16:17:52.696196 | 2019-09-13T14:06:26 | 2019-09-13T14:06:26 | 205,822,689 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
def process_requirement(requirement):
if requirement.startswith("git+"):
... | [
"andriyvasyltsiv@gmail.com"
] | andriyvasyltsiv@gmail.com |
062479f2d87586d0f4b84baeb3ee922ad34c467f | ddf8fca52a641bf5b98cc626f5f5c1e86c58114c | /OldPythonCode/reverse.py | cb6db963c1c875b4ff7ba29c15daaf81dd9af77f | [] | no_license | mathdoll/python | 5a7a4ce3858d7dfe425deb511c5975fd5f56dd50 | 3105fb88c41092e1312d96a232001fec10de74d2 | refs/heads/master | 2016-08-09T20:37:22.579744 | 2016-03-28T04:21:11 | 2016-03-28T04:21:11 | 54,798,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | '''
a=["a","b","c","d","100","jjj"]
print(a)
b[0]=a[4]
b[1]=a[3]
b[2]=a[2]
b[3]=a[1]
b[4]=a[0]
'''
def rinurev(a):
size = len(a)
b=[None] *size
for i in range(size):
idx = size-(i+1)
#print (i, idx)
b[i] = a[idx]
return b
'''
c=list(reversed(a))
c.append("rinu")
c.append(a)... | [
"Rinisha"
] | Rinisha |
24a02e65a4d81428a3f0677c6a9f0c3de85388a3 | f8f15d6366268bba22dc8aa6e938106efd455689 | /first/teacher/serializer.py | 4cb9b9aa06c2493cf8979c99f2e16db81d6a967a | [] | no_license | 13233039146/first_drf | 2e473d25ae81429f95a4cfa607de1b98e95355a3 | 091fe6a9d979a8930addede96bfcd30f00461a6b | refs/heads/master | 2023-01-06T22:28:09.460407 | 2020-11-04T13:13:39 | 2020-11-04T13:13:39 | 307,693,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | from rest_framework import serializers
from first.settings import MEDIA_URL
from teacher.models import Teacher
class TeacherSerializer(serializers.Serializer):
name = serializers.CharField()
age = serializers.IntegerField()
# gender = serializers.IntegerField()
job = serializers.CharField()
phone... | [
"690321437@qq.com"
] | 690321437@qq.com |
dca433c6328f30c8a5f0e91f879f6bdff3707c9d | affc5b3dc08765126581399e1b8c76ff37b4515c | /protobuf_compiler/args_validation.py | c95638aed8bebc62c08501365eb8fa2278e26a10 | [
"MIT"
] | permissive | netsaj/python-protobuf-compiler | 19d77add8063574ccd3a6d3fe05cf33a3a6e0932 | e4337641c5aa6970d179dd7ea3559b4e29f4361f | refs/heads/master | 2023-07-22T16:29:29.818681 | 2021-07-09T17:07:01 | 2021-07-09T17:07:01 | 175,302,827 | 9 | 7 | MIT | 2023-07-05T21:14:02 | 2019-03-12T22:02:15 | Python | UTF-8 | Python | false | false | 1,913 | py | import os
from protobuf_compiler.input_folder import define_input
def args_validation(
git_repository='',
proto_input_dir='.',
proto_output_dir='.',
proto_package_version='',
git_repository_token=''
):
# repository defined
if git_repository != '':
if not str(git... | [
"Fabio.moreno@cuemby.com"
] | Fabio.moreno@cuemby.com |
652b202ca5b1f1106deeae560e600105807b8316 | c2d636b401ebf4087e983ebff20c94c0337aa838 | /build/lib/hipster/max_heap.py | 90654c240f5a2d48419fc48b8e62841bbea0dc44 | [
"MIT"
] | permissive | soumasish/hipster | cc4c5084efc8bbad81e106a74c4324bce81a0e9c | 1fe3f0526839a2a418a7e9e6a0557bfc4a5ef061 | refs/heads/master | 2020-09-16T13:29:24.853529 | 2019-11-29T20:38:02 | 2019-11-29T20:38:02 | 223,784,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import heapq
from hipster.error import HeapError
from hipster.heap import Heap
class MaxHeap(Heap):
def __init__(self):
super().__init__()
def peek(self):
if len(self.heap) == 0:
raise HeapError("Peeking into an empty heap")
with self.read_lock:
return heapq.nl... | [
"soumasish@gmail.com"
] | soumasish@gmail.com |
17daf2465104d5bf642b1582718ab3d4a61fd2ec | b93ed9abb036d0ac9ee081f3c2f46be7906e2869 | /watchw/models.py | d6896c2e05c5ff068bc9a1a90ab8f1f6d8605ca7 | [] | no_license | mohamadRaafat/WatchW-CS50W-FP | fe2e88d5879961bc78d2ecb849d132a0b7fbb4ca | 8884d64c893d2c3b22eda7658ae49694d4415cd0 | refs/heads/master | 2022-11-05T06:05:57.930725 | 2020-06-26T17:47:21 | 2020-06-26T17:47:21 | 273,964,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | import string
import random
from django.db import models
WATCH_TYPES = (
("Casual", "Casual"),
("Dress", "Dress"),
("Sports", "Sports"),
("Smart", "Smart"),
)
# Create your models here.
class Item(models.Model):
type = models.CharField(max_length=25, choices=WATCH_TYPES)
name = models.CharFie... | [
"mohamadrafat666@yahoo.com"
] | mohamadrafat666@yahoo.com |
c1a05f90f206938cb1f01ac0bcef73994b5d9bc1 | d08d7c0fcc6a1ef1bcce6e3be02eafe5b856ede8 | /Formant-master/get_fp.py | 62149bbe49fb207311c11db82659c5730c339c58 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | skyto0927/kk_sotsuronData | c2fbaf6585386a4150ead58d73902872d1488503 | 158876251309aff04dfb4b9e58b80da1cd866c29 | refs/heads/master | 2020-12-28T08:22:37.102769 | 2020-02-06T21:18:39 | 2020-02-06T21:18:39 | 238,244,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,459 | py | #coding: utf-8
import numpy as np
import scipy.signal
import wave
from LPC import *
#Check version
# Python 3.6.4, 64bit on Win32 (Windows 10)
# numpy (1.14.0)
# scipy (1.0.0)
class Class_get_fp(object):
def __init__(self,NFRAME=640, NSHIFT=320, lpcOrder=32, FreqPoints=1024, max_num_formants=5):
... | [
"skyto0927@gmail.com"
] | skyto0927@gmail.com |
7afe29bbc034fa253e18ba7082d4d3d90b31ac20 | d12c39dc10b03a8bff48951d73c981c7fe99d84d | /archive/id3/ID3.py | eb8fc355c559844d87ed2b8a13be77a773852851 | [] | no_license | bill-mao/python | 1c57c3ef667aabc73ab7e390d27f484766aad6c4 | 261f83eba66f49f1d26f49a6ec8de59d5fec277b | refs/heads/master | 2020-04-12T23:40:29.842128 | 2019-04-17T02:54:36 | 2019-04-17T02:54:36 | 92,309,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,271 | py | import time
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
class Tree(object):
'''决策树的节点
用来存储节点类型,
'''
def __init__(self,node_type,category = None, feature = None):
# 节点类型(internal或leaf)
self.n... | [
"mao_bill@163.com"
] | mao_bill@163.com |
20da8a1571be3297fdc2a8720ab6d9c6f804eede | a0801d0e7325b31f0383fc68517e208680bb36d6 | /Kattis/anagramcounting.py | 362adbaa6dfaa8948b5b2fb3c59253bb2a0f31b6 | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from collections import Counter
_f = { 0: 1 }
def f(n):
if n not in _f:
_f[n] = n * f(n - 1)
return _f[n]
def g(s):
cs = Counter(s)
vs = cs.values()
l = len(s)
r = f(l)
for v in vs:
r //= f(v)
return r
while True:
try:
i = input()
print(g(i))
ex... | [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
d1360b75dcf43a463f259be1a9df57513d15d448 | 36f6351333d62b11bb42b73be6c9131f0cf03f26 | /smshandler/sms.py | b93ad798c79685b7263d9f8a5154c94f2ec6decb | [] | no_license | antoinevg/phanta | ab30f8ea66b7362db4440b57e15e2e63dee90bc6 | c05cdfb8b78954adb8792b98a507d0a54cb8e3b3 | refs/heads/master | 2020-12-25T14:06:18.520801 | 2011-06-23T08:20:27 | 2011-06-23T08:20:27 | 1,656,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | #!/usr/bin/env python
"""*******************************************************
* Schalk-Willem Kruger *
* Phanta SMS script *
*******************************************************"""
import os
import sys
import urllib2
from urllib import ur... | [
"swk@swk.za.net"
] | swk@swk.za.net |
9776c782f39f617a35f28dcaa298d25f01933375 | 1fca3bb176ce42ca11af59222ee5c520f6a44486 | /merge_kaldi_features.py | 53c2d19399ff9da1032fa52122f6c76503552975 | [] | no_license | Caliope-SpeechProcessingLab/ASICAKaldiGMMRecipe | 07c6beca519a849b058b87a816b54b5a6bf5c8e1 | e5e07a7451c2cca387b3e0091b122d0722c10250 | refs/heads/master | 2021-08-15T20:19:51.487126 | 2021-01-03T10:11:08 | 2021-01-03T10:11:08 | 237,428,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,865 | py | #!/usr/bin/env python3
#
# This script takes the folders with the features calculated by kaldi or others (like openSmile) and merge the .ark and .scp
# files in the /data/ folder.
#------------------------------------------------------------------------------------------------------------------
# Variables:
# Inputs:... | [
"noreply@github.com"
] | noreply@github.com |
812ecf3bbe0ca367c19619ac57273f03fa01b103 | 20bace39d601159ed2de73addb2d0fb3a9b0e41b | /client/asgi.py | e0c55fc251bfb11118b6b32421c7ab95f957289d | [] | no_license | tomjuran/django-flooring-website | 8ff0df562c8f70b8d8f168248279d3be37f816a8 | f90ff1ff81dddf7072071b237ed86100259cad9c | refs/heads/main | 2023-01-11T03:03:13.782042 | 2020-11-10T17:48:50 | 2020-11-10T17:48:50 | 311,739,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for client project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('... | [
"noreply@github.com"
] | noreply@github.com |
6fa0fb024936ca115fdd701a9bff446d61c30b9d | 12d1f91023b82779402c622ed8e6619da4945442 | /movies/models.py | 12c27729caaeb3c3e2b9b29ad46f272c06a4d2b4 | [] | no_license | daudulislamsumon/Vidly | cb4c3c1f3364e88d656a5393c0580295c8abd85f | da19afc165563785a04a106bc171dc4a3aa1cb78 | refs/heads/master | 2023-01-22T16:19:39.386561 | 2020-05-19T17:04:20 | 2020-05-19T17:04:20 | 265,310,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from django.db import models
from django.utils import timezone
class Genre(models.Model):
name = models.CharField(max_length=255)
def __str__(self):
return self.name
class Movie(models.Model):
title = models.CharField(max_length=255)
relese_year = models.IntegerField()
number_in_stock =... | [
"md.daudulislamsumon@gmail.com"
] | md.daudulislamsumon@gmail.com |
653479ee8c550b8e45c9081a2f9f514c2251ce72 | baf65c626904fa4877510556c5ad5cf86ee8a463 | /day1/18. DecimalToOBH.py | c4b18247d8555ccd2881e537b6a7a25d25b06ce6 | [] | no_license | nihagopala/PythonAssignments | c2e85299cd8c1648e56bd497b198336dbfe9ea8a | 1501d147d037fd7f68caceec1666fd0a49239486 | refs/heads/master | 2021-08-24T01:20:14.538785 | 2017-12-07T12:15:20 | 2017-12-07T12:15:20 | 112,322,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #-----------------------------------------------------------------------#
#Program to convert to Decimal into Binary, Octal and hexaDecimal values
#-----------------------------------------------------------------------#
dec = input("Enter number in Decimal Format: ")
decimal=int(dec)
print("The decimal value of",... | [
"noreply@github.com"
] | noreply@github.com |
4fdf1bea747a8d67c7f40453558e77f806ca8731 | 49bfc292c42068b6c278cb98c7a55bc46b9902be | /combine_1D_KDE.py | 911159b83f625ffdb6f7a46bc84efe82616c51f4 | [
"MIT"
] | permissive | adamgonzalez/analysis | 003d03248f71092d538a97e04621d16b250c9bb8 | ee6c1025e4d7ea480bdbbacf13f3fb86245a87da | refs/heads/master | 2021-01-01T20:36:57.842731 | 2018-05-10T17:00:04 | 2018-05-10T17:00:04 | 98,895,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
@author: adamg
"""
import matplotlib.pyplot as plt
import numpy as np
import matplotlib
import scipy.stats as st
import operator
import time
import os
from matplotlib import gridspec
from matplotlib.colors import LinearSegmentedColormap
from scipy.stats import gaussi... | [
"adamgonzalez@users.noreply.github.com"
] | adamgonzalez@users.noreply.github.com |
2591109258fee0a132b9ad6d0527a3f907c574e5 | 3db9cea3fc39c181887fd7c4420bfdff653f63a2 | /mostcode/src/codegen.py | f2c9903db40899a66dc5a9c2a233107597b326d3 | [] | no_license | aaks123/minicompiler | 688d2d04c50009b40e997ab971b4a5b80d0091b1 | 9bddc15e5fa9de2a3a1712de0469a4b697226b44 | refs/heads/master | 2020-05-02T02:46:49.432908 | 2019-03-26T04:22:22 | 2019-03-26T04:22:22 | 177,711,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,597 | py | #!/usr/bin/python
import parser
import sys
import runTimeCode
RTC = {}
outputFile = 'a'
def registerAction(action):
global RTC
regs = ['$t0', '$t1', '$t2', '$t3', '$t4', '$t5', '$t6', '$t7', '$t8', '$t9', '$s0', '$s1', '$s2', '$s3', '$s4']
offset = 12
for reg in regs:
RTC.addLineToCode([action, reg, str(offset)+... | [
"noreply@github.com"
] | noreply@github.com |
7f6dff4693647d2194db96d3906772cd9d143a1f | b91e7cf24508ed439bedab13b5bdef2af2151055 | /libs/ple/ple/games/puckworld.py | a74233eb66a121adcf07035118ea371e817316d0 | [
"MIT"
] | permissive | nishithbsk/I-PODRL | 6ae50bcaf7da9f11638eeef52667bac05d916276 | 78f861d0e98b2b0407c078eda56bcfeab102474f | refs/heads/master | 2021-01-11T03:33:25.949824 | 2016-10-25T10:45:28 | 2016-10-25T10:45:28 | 71,019,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,608 | py | import pygame
import sys
import math
import base
from pygame.constants import K_w, K_a, K_s, K_d
from primitives import Player, Creep
from utils.vec2d import vec2d
from utils import percent_round_int
class PuckCreep(pygame.sprite.Sprite):
def __init__(self, pos_init, attr, SCREEN_WIDTH, SCREEN_HEIGHT):
... | [
"nishith@stanford.edu"
] | nishith@stanford.edu |
e01af6a35d35f8f083ade9a162ab86a061691cfe | 777a7527317e5d265536701a7a8f24f3cd6b5ada | /practice/leetcode/1091_shortest-path-in-binary-matrix.py | 0d16cd348073d0535762056b92ebd68ae235ae6a | [] | no_license | ThanhChinhBK/interview-programing-questions | 22d0906ae2e315af4e48f56fe2296a4ac26ff62e | b58d716348301e9b62c57e98ed34a2fb9c34d033 | refs/heads/master | 2022-05-14T02:29:03.879809 | 2022-04-09T14:32:26 | 2022-04-09T14:32:26 | 116,651,413 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | class Solution:
def shortestPathBinaryMatrix(self, grid: List[List[int]]) -> int:
n = len(grid)
visited = [[0] * n for _ in range(n)]
points = [((0,0), 1)]
length = 0
while points:
(cur_x, cur_y), distance = points.pop(0)
if grid[cur_x][cur_y] or visit... | [
"nguyenthanhchinh96@gmail.com"
] | nguyenthanhchinh96@gmail.com |
b0c4e029c47e2ff361892917e87bcfd46c70d0af | 0629a1b32919a6f7e258982dd511eccdb957129c | /scripts/debug_lexer.py | 4b7db41aa4f3caa251713f94ebaf8edde88fc48f | [
"BSD-2-Clause"
] | permissive | mhaberler/pygments | b2729029d2b37d816cea5fb607e7ac075aa2d5a6 | f856d6ee7fa40e563ae0083ad378204f2ec29040 | refs/heads/master | 2020-12-24T11:36:40.040419 | 2016-06-16T17:10:37 | 2016-06-16T17:10:37 | 61,503,624 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,765 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Lexing error finder
~~~~~~~~~~~~~~~~~~~
For the source files given on the command line, display
the text where Error tokens are being generated, along
with some context.
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:licens... | [
"corey@octayn.net"
] | corey@octayn.net |
5868dc3a8a57d076069185449c7b597e72d375ca | 16df490b514a74031072173bdc4f4a2cfa37e8a8 | /LeetCode203.py | 414c798d1dcd9ec1ab055ebb99d426a9c359759a | [] | no_license | hzyhzzh/LeetCode | d7ad522be5eef6919c6c41ec9c2ecaa92b8fa156 | a9c982207d3fc4bcb0513f88b6b5aeaaeb09f554 | refs/heads/master | 2021-01-20T16:35:28.625019 | 2017-09-25T09:08:37 | 2017-09-25T09:08:39 | 68,596,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def removeElements(self, head, val):
"""
:type head: ListNode
:type val: int
:rtype: ListNode
"""
pre... | [
"576591256@qq.com"
] | 576591256@qq.com |
9f840be027ab8aea56e57ba7bb048620ae22d8b9 | 4d514eebd2e9913a5d81c25bf3f82d765cc80d00 | /simple_rnn.py | 808486c9b7bf5f57868f3efab6b17b709b2670f3 | [
"Apache-2.0"
] | permissive | EliasPapachristos/NLP-NLU | 55cc890a86a437ef5571d28e5dacd8f76354ead3 | 8c9c179842c64189c2bbe6648b2d82815c498a05 | refs/heads/master | 2020-08-05T23:37:34.632226 | 2019-10-17T14:09:09 | 2019-10-17T14:09:09 | 212,757,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | from __future__ import print_function, division
from builtins import range, input
# I may need to update this version in the future
# sudo pip install -U future
from keras.models import Model
from keras.layers import Input, LSTM, GRU
import numpy as np
import matplotlib.pyplot as plt
import keras.backend ... | [
"noreply@github.com"
] | noreply@github.com |
858a91e070f27a2a3c26765e7097ef3775f3e2d2 | d1c28fc0af86e47635365c0fce2893634872e394 | /sort_search_medium/94_binary_tree_inorder.py | 12f9ca2fb2b34069ad8ac81cbe88f53da2497a4c | [] | no_license | doyleju/LC | 5a95e07636959477ce27f0374d730c2dfa33f19d | 040182d0ac2461b5f4a1a08d3f6fd0c2f5551c7c | refs/heads/master | 2020-03-22T01:41:15.886629 | 2018-08-21T21:45:39 | 2018-08-21T21:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | class Solution:
def inorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
"""
#1 54p
result = []
def inorder_recursive(root, result):
if root is None:
return
... | [
"noreply@github.com"
] | noreply@github.com |
aab5320af9b48f92a2e321db7cb26674e6d0a401 | 24f2696aab87f1632705a7c8b2d3b866e26aa3ee | /LCA_236.py | 281941167ef5ab53585044747e11fcdfbd20eb5e | [] | no_license | adiggo/leetcode_py | 44a77a0b029f4d92bd0d8e24cad21ceea52e7794 | 4aa3a3a0da8b911e140446352debb9b567b6d78b | refs/heads/master | 2020-04-06T07:05:21.770518 | 2016-07-01T16:00:40 | 2016-07-01T16:00:40 | 30,397,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
:type p: TreeNode
:t... | [
"adiggo@gmail.com"
] | adiggo@gmail.com |
e966a809733c647ed153d31bbebf7df6fc19afa7 | b66304878239ecea3e38593112bcb861fe9815db | /project_template/project_template/urls.py | ff276fbbe3737f276113407e1c2fa281c94dbdfe | [] | no_license | cowhite/django_pymongo_admin | e8ecd9fd193cf43489b9ac19d6a0444c719c7e42 | 8d814b248d82d7572e167be5ed2a2418d5eddd42 | refs/heads/master | 2020-07-03T02:12:26.559308 | 2016-11-19T15:18:04 | 2016-11-19T15:18:04 | 74,205,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | """project_template URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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')... | [
"bhaskar@cowhite.com"
] | bhaskar@cowhite.com |
551bb8ed54a7c9b9c9cf20d5acef50c69f3aa0a7 | 91722e19226e2ac193891c6baad0444fbc2c0659 | /engine/models/distance.py | 9faf0daf71d57780f153ef4d8a2bd67dccc42030 | [] | no_license | Clacket/clacket | 79bf740a837e44d6d82d2d18c8098276b33fc82b | e9aacd967f447cf5d1fb625e57c6e64e0cfcfc78 | refs/heads/master | 2021-01-19T03:34:40.698854 | 2018-01-22T01:22:55 | 2018-01-22T01:22:55 | 83,339,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import pickle
class DistanceMatrix(object):
def __init__(self, folder):
self.matrix = {}
self.filename = '{0}/distances.pyc'.format(folder)
def save(self):
with open(self.filename, 'wb') as file:
pickle.dump(self.matrix, file)
def load(self):
with open(self.fi... | [
"mrf.mariam@gmail.com"
] | mrf.mariam@gmail.com |
a285770553a45f3b2ad61fd5d089ea633742b9a7 | ef835d16ae3b848120424ee231912bfb2ff81ae8 | /stopword/admin.py | 120f6660526d3877058d98d20ddca5a9617aeaa8 | [] | no_license | nelsondressler/SistBiblioteca | 013b930d9d671997a4aa3948fd4dfabaf87fd67b | cff2a6c83b57b51d1a4d7c232eccf7b48728e600 | refs/heads/master | 2021-08-17T07:22:38.619693 | 2017-11-20T22:24:04 | 2017-11-20T22:24:04 | 104,620,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.contrib import admin
from .models import Stopword
# Register your models here.
class StopwordAdmin(admin.ModelAdmin):
list_display = ['id', 'nome'] # campos de apresentação
list_display_links = ['id', 'nome'] # campos habilitados para links
search_fields = ['nome'] # campos de busca
raw_id... | [
"nelsondr58@gmail.com"
] | nelsondr58@gmail.com |
70cf5c7a6c7e3ea0437ed9788e57a2bea5bc6895 | c18b7691e050ebb18e2bced28ef05c1e5e6d4e69 | /convert_csv.py | ac6c10ad22648d0a94c8828f8a759a210549988e | [] | no_license | tejaalle/Key_Performance_Indicator | d0aa12399c6627cdad87a512c3ad03aab0df820d | da3e5aec05ad937a3f3a82d9107101853bf03e2f | refs/heads/master | 2022-12-13T16:02:08.336709 | 2020-08-22T03:15:56 | 2020-08-22T03:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | import csv
with open("DNR_Camping_Parks_Reservation_Data_2016.csv",'r',encoding='utf-8-sig') as csv_file1:
csv_listen = csv.DictReader(csv_file1)
csv_listener = csv.reader(csv_file1)
with open("file1.csv", "a", newline='') as csv_file2:
csv_writer = csv.writer(csv_file2)
csv_writer.writerow(csv_... | [
"tj680478@dal.ca"
] | tj680478@dal.ca |
4af9fff107581efba17158a157bc33c7f8d43be6 | f5390652068c736aea061a0979f27ba32b51784f | /Web/Web/views.py | dfd74dd32a7e1fe8b04516a9a481ccbc516c7484 | [] | no_license | kho903/Project_Reflux | 172c9bd7062f4cc9f84c576412557435f63906b5 | 0f1cdab08bc71d4c219b34839f63cc96f7c90d47 | refs/heads/master | 2022-12-14T03:29:21.008229 | 2020-09-02T09:24:16 | 2020-09-02T09:24:16 | 286,716,990 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views.generic.base import TemplateView
from django.views.generic import CreateView
class HomeView(TemplateView):
template_name = 'home.html'
class UserCreateView(CreateView):
template_name = 'registration... | [
"gmldnr2222@naver.com"
] | gmldnr2222@naver.com |
eb3fc2cf03ec041b81a54d5412a9ec0ab7b0ec31 | f293b0f393de3f6db4aa6439990bbbe25b932ccc | /apps/travel_buddy/views.py | 0263928a3c1922aa35e3ac14fbef0836479d659d | [] | no_license | jessahl/travel | 55821e0300d66f09a0e5738135758a2fcedae4f7 | afe71b8a7be9b3908f154919ae32a3f8b135bca7 | refs/heads/master | 2021-08-19T06:24:18.171234 | 2017-11-24T23:36:49 | 2017-11-24T23:36:49 | 111,962,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse, redirect
from .models import *
from django.contrib import messages
import bcrypt
from django.db.models import Q
def index(request):
return render(request, 'travel_buddy/index.html')
def process(requ... | [
"jessahl@users.noreply.github.com"
] | jessahl@users.noreply.github.com |
dd78f0e4bfba84313de0b82e0d4439015e8332d8 | a07cbfbe6189cb0a59f0b261506850c5cd2b6828 | /sudoku/views.py | e9dc5a15ec12fc01bbe0149ae2436fe37c958d27 | [] | no_license | jack-x/sudoku_django_webapp | e04d15e5d0ccfa4bf0fc059547c51097c1e8233c | 12d688aa43d5a04e48ab2b5ae19b4dffd2290cdb | refs/heads/master | 2021-09-29T12:15:39.056972 | 2020-04-05T22:20:34 | 2020-04-05T22:20:34 | 253,241,287 | 0 | 0 | null | 2021-09-22T18:50:47 | 2020-04-05T13:27:37 | JavaScript | UTF-8 | Python | false | false | 11,426 | py | from django.shortcuts import render
from sudoku import Solver
from sudoku import puzzler as Puzzler
from sudoku import builder as Builder
import random
from django.http import HttpResponse
# Create your views here.
solutionGlobal = []
differenceDict = dict()
sudokuDictionaryResponse = dict()
def index(request):
... | [
"namanvrm7@gmail.com"
] | namanvrm7@gmail.com |
6e01c4a06d08fadfa6604f0bbbf5978b02fb3065 | f55e6bd5395444a9173a86c9b738ae6d58ced982 | /quiz/tests.py | 8998e8f93d32a63015e281e85e6c70eb910b6895 | [] | no_license | kiwi137831/ELEC3609 | 3be4a8552ef1cdb6caed763fe7d342a9e7a45bb7 | 64eb00f580ff4ac18a60cbcdaf0b9c475853c375 | refs/heads/master | 2020-03-13T13:28:45.242014 | 2018-04-26T12:25:20 | 2018-04-26T12:25:20 | 131,139,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | from django.test import TestCase
from quiz.views import *
from django.test import Client
from quiz.view_models import *
class SimpleTest(TestCase):
def setup(self):
self.client = Client()
quiz_tosave = Quiz.objects.create(quizNo=1, courseNo=1)
quiz_tosave.save()
def test_choose_to_add(... | [
"kiwi137831@gmail.com"
] | kiwi137831@gmail.com |
57e2ee283d3febe993b10065b968ba9f581b5a55 | 6a52db9b913c3677dfbcd55776e1a14cddde359d | /parceiros/migrations/0006_auto_20181117_0309.py | 3ab094723e58de570f6ab1ca3fb06592a7e4d342 | [] | no_license | tiagocordeiro/casaconceito-sie | 47a2922f328fa7c9e13e84dae1b6a9135edd6236 | 892e42a655bb4ef08952c5be167e281720f40b49 | refs/heads/master | 2023-08-31T14:48:21.396973 | 2021-05-11T18:18:07 | 2021-05-11T18:18:07 | 140,175,770 | 0 | 0 | null | 2023-09-13T15:14:42 | 2018-07-08T14:38:35 | HTML | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.1.3 on 2018-11-17 05:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('parceiros', '0005_auto_20181117_0251'),
]
operations = [
migrations.AlterField(
model_name='ind... | [
"tiago@mulhergorila.com"
] | tiago@mulhergorila.com |
ddcf005a9089d92a72a6e6744948b752ea3b244f | b90f745e15ab0687a6dface769be88f4b4fee866 | /str_repr.py | c3bf46037a7825fbd9b5aca1c685fcbe5b814aeb | [] | no_license | tkachoff/sandbox | 6a1ec80acd174fb2324f514a7b225c2d41bad697 | b4980d6d52f89fb546cf0eb7fc24967624efefd8 | refs/heads/master | 2020-12-03T13:05:06.531504 | 2016-08-18T11:10:10 | 2016-08-18T11:10:10 | 65,983,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | import copy
d1 = {
1: "one",
2: "two",
3: "three",
4: "four",
5: "five",
6: "six",
7: "seven",
8: "eight",
9: "nine",
11: "eleven",
12: "twelve",
13: "thirteen",
14: "fourteen",
15: "fifteen",
16: "sixteen",
17: "seventeen",
18: "eighteen",
19: "n... | [
"atkachou@ddn.com"
] | atkachou@ddn.com |
8ad3db0ec4061062900fc2e03cbbae10b8f45f56 | 498d889585187ca56018b15f38880b8a671442b8 | /utils.py | 5c6fc73da2244ffe9d611253c389cb6fc386f278 | [] | no_license | mandasdasdasd/excel-fe | b89b06681bd7c91000f491a5f85f0c8577ac0fc3 | a81eb0085192c0932992745284c24efda9859241 | refs/heads/master | 2022-12-24T01:53:03.351947 | 2019-12-04T10:09:14 | 2019-12-04T10:09:14 | 205,658,439 | 0 | 0 | null | 2022-12-11T05:10:56 | 2019-09-01T10:01:07 | Vue | UTF-8 | Python | false | false | 218 | py | import hmac, random
class Encryption(object):
def __init__(self):
self.key = "bigdata"
def hmac_md5(self, s):
return hmac.new(self.key.encode('utf-8'), s.encode('utf-8'), 'MD5').hexdigest()
| [
"you@example.com"
] | you@example.com |
2c5f81b3a18e88988cf948967cd25c3d258a6fac | 625851eb6d87f536c33f89505567a6b15ff5176c | /scout.py | 1afe0f2a9c5d2f5da71a988cb50f1d8514a5e8bf | [] | no_license | SnacksOnAPlane/freefood | 5ed34e968e56c020752e174a2644d5a6e33357c3 | 3ab52352ae188779c0392aa35fbc97204e83ea50 | refs/heads/master | 2021-01-23T01:08:26.035781 | 2017-03-22T22:35:24 | 2017-03-22T22:35:24 | 85,879,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from bs4 import BeautifulSoup
import requests
import json
import boto
url = 'https://postmates.com/atlanta'
webpage = requests.get(url)
soup = BeautifulSoup(webpage.text, 'html.parser')
free_food = [s for s in soup.body.stripped_strings if 'free' in s.lower()]
if free_food or True:
conn = boto.connect_ses()
bo... | [
"smiley@callrail.com"
] | smiley@callrail.com |
a4b96917de1814ab6a7a8134aa8dbeac8ecf673c | b98dfa32e47449e873e8e2ec6b93b1550e2fc95b | /prescriptions/views.py | 3ec0775f6b851c8b80b329ddc528c76692e94f20 | [] | no_license | flribeiro/iclinic_prescriptions_api | 7df1557ea4f67ea437bb8af5009b554078b44570 | 98903e7df56d300d525128841f9c61f29e35d20e | refs/heads/master | 2023-03-04T00:41:18.290079 | 2021-02-18T12:30:45 | 2021-02-18T12:30:45 | 337,925,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,865 | py | import logging
from typing import OrderedDict
from rest_framework import viewsets
from prescriptions.models import Prescription, Clinic, Physician, Patient
from prescriptions.serializers import PrescriptionSerializer
from prescriptions.services.clinics_api import ClinicsApiService
from prescriptions.services.physicians... | [
"fabricio.ribeiro@luizalabs.com"
] | fabricio.ribeiro@luizalabs.com |
d70011c8b28df47afcc58eddc65bb73aa7c2a30e | 8de2a5c432fe44bbb2d549537a441f10f61795fc | /graph/graph.py | a85bd3188171f795e8c281d3b579d21b2545588d | [] | no_license | AMIRmh/beyond_classical_AI_search | 3ccdba27b2613ca5c758404bb01d8daf3546f40d | c439ae649432a3639100b8c297f6136fb2737418 | refs/heads/master | 2021-09-04T19:46:57.749625 | 2018-01-21T20:58:51 | 2018-01-21T20:58:51 | 115,197,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | import copy
import math
class state:
def __init__(self, graph, graph_1, graph_2):
self.grand_graph = graph
self.graph_1 = graph_1
self.graph_2 = graph_2
self.current_graph, self.disjoinments = self.calculate_graph()
def calculate_graph(self):
current_graph = copy.deepcop... | [
"amir.haghollahi@gmail.com"
] | amir.haghollahi@gmail.com |
64217917d491b00b960f878302f437c65851a685 | 010533d6b6901073dfa966ae50420dc4c7b188d0 | /lambda.py | 55cabcb1c26057f5e5c2be0b8bfa7f42a467f775 | [] | no_license | gluemchen/weather | ce1396dd6e49722a04d5f2915a244f6aba4f3673 | b369fb0283cfe9aadd13009bdae1e009fc1ffbfd | refs/heads/master | 2023-06-21T06:16:42.331627 | 2021-07-29T05:37:16 | 2021-07-29T05:37:16 | 384,138,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Python class example
# Defining Vehicle class
class Vehicle:
def __init__(self, brand, model, type):
self.brand = brand
self.model = model
self.type = type
self.gas_tank_size = 14
self.fuel_level = 0
def fuel_up(self):
self.fuel_level = self.gas_tank_size
... | [
"gluemchen81@googlemail.com"
] | gluemchen81@googlemail.com |
e7c1985f62c49d3421a63a89ddab7284277b12d7 | 7a874e0803911516c1785fbd6b954640a6f6d69f | /classTermLists/School_data/extract_clean.py | f5fb6f5c7ecd4565666a9cfb45415fed08b5d902 | [] | no_license | nrhawkins/kbp2015-slotfilling-implie | 15dc28d4496c13a0b5a823e889f17154a2c94d24 | ca3d362c23b7b3f40a632b62c8c71f2b7938c4d9 | refs/heads/master | 2021-01-19T20:18:30.165496 | 2016-11-28T21:30:39 | 2016-11-28T21:49:06 | 37,744,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py |
lines = file('school_data.csv','r').read().splitlines()[1:] # first line is the header.
lines = [line.replace('\"', '') for line in lines]
temp = lines
lines = []
for line in temp:
tokens = line.split(',')
lines.append(tokens[1])
lines.append(tokens[4])
temp = lines
lines = []
for line in temp:
tokens = lin... | [
"genelkim@cs.washington.edu"
] | genelkim@cs.washington.edu |
2c12a85637d4448821f4e08fab01976870d8fdca | b3330bd3365767b89afb9c432f4deb722b39ac1c | /python/sort/selection_sort/selection_sort_10.py | d0142c054e2de0f2b0945ab15e296cef179f94f5 | [] | no_license | hguochen/algorithms | 944df332d5b39220bd59cbd62dc74b12e335fb9e | 703e71a5cd9e002d800340df879ed475a404d092 | refs/heads/master | 2022-02-27T12:11:10.607042 | 2022-02-18T21:04:00 | 2022-02-18T21:04:00 | 13,767,503 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # selection sort
def selection_sort(array):
"""
Divides the array into unsorted and sorted sublist. Left sublist contains
list of sorted elements, right sublist contains list of unsorted elements.
Find the least element in unsorted list and put in sorted list.
"""
# traverse the array
fo... | [
"hguochen@gmail.com"
] | hguochen@gmail.com |
a01b71e2dae640d49f54d02cf08acedbab149c70 | 961931333838aebe8bd17c30c19f3994e32d76ce | /src/leetcode/bfs/279. Perfect Squares.py | 128380fcb8630cd5d95ab5e6415f0e7e36e9fcdd | [] | no_license | MTGTsunami/LeetPython | 5161f9e31dc2ab1855123c2a3a151eb6f4d889bc | f7f3839f631f08a9e5bf8a02398b940f82e43e67 | refs/heads/master | 2023-04-17T16:59:45.621291 | 2021-04-26T07:24:50 | 2021-04-26T07:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | """
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.
Example 1:
Input: n = 12
Output: 3
Explanation: 12 = 4 + 4 + 4.
Example 2:
Input: n = 13
Output: 2
Explanation: 13 = 4 + 9.
"""
class MySolution(object): # A little bit larger than O(n) ... | [
"mtgtsunami1219@gmail.com"
] | mtgtsunami1219@gmail.com |
e1de656ba854ec86201e55c1fead133e35c7c2ec | 38e5c33200e2fe87cc39a53a2fe19a807ebeca2c | /manage.py | 044b5ba9512a1c8ff405cf17fb472998e6494abf | [] | no_license | Hitmantejas/Todo-Django | 623157466b808881cc4cdba69ba73db899ca6550 | 8648be091abc0ddb9fd277e03a25550e360aaeea | refs/heads/master | 2023-03-03T19:41:57.187086 | 2021-02-07T07:49:16 | 2021-02-07T07:49:16 | 336,728,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | 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', 'justdoit.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"tejasbhorde86198@gmail.com"
] | tejasbhorde86198@gmail.com |
ecb16f5a630ad95d5176e9cf813bbe2a8af4ba4d | ffd0f64525bc95b51b422b2067daee166adbea24 | /src/game.py | dadb665d014e49dd49e4a2300595a0f6ddd3802a | [] | no_license | yotam5/NiChaudNiFroid | 54ace05d53cdfecc6a98a803563127d687856ce4 | e125dfb12a2051f61a5cd162fce485119503f14a | refs/heads/main | 2023-07-05T03:19:39.206708 | 2021-08-12T16:46:57 | 2021-08-12T16:46:57 | 395,438,148 | 0 | 0 | null | 2021-08-12T20:37:16 | 2021-08-12T20:37:16 | null | UTF-8 | Python | false | false | 1,384 | py | import pygame
from src.scenes.room import RoomScene
from src.scenes.menu import MenuScene
from src.scenes.gameover import GameOverScene
class Game:
def __init__(self):
self.screen = pygame.display.set_mode((1280, 720), 8)
pygame.display.set_caption("Ni Chaud Ni Froid")
self.current_scene =... | [
"asakosan.pro@protonmail.com"
] | asakosan.pro@protonmail.com |
447014af8d175ebb2bf8ef23621961213678fa88 | 2baa8fe44836e3380fb986a7e796f1a70b467c3e | /call-propagate.py | e7fc8d0a289e52044c79dcfef8de1fcf457d0017 | [] | no_license | jancoufal/pyshards | d50c7349868403e1e6e0a07b4e71e7ecaa4a5bda | b1a3ad45fed47c7bd357cb39ae475562ac089796 | refs/heads/master | 2023-03-15T22:00:06.633852 | 2023-03-14T21:54:13 | 2023-03-14T21:54:13 | 179,240,741 | 0 | 0 | null | 2019-06-24T13:37:42 | 2019-04-03T08:04:19 | Python | UTF-8 | Python | false | false | 1,160 | py | #!/bin/env python3
class TestEvents(object):
def on_foo(self):
pass
def on_bar(self, bar_size):
pass
def on_baz(self, baz_size=None):
pass
class TestEventInvoker(object):
def __init__(self, event_handler):
self._events = event_handler
def invoke_events(self):
self._events.on_foo()
self._events.o... | [
"jcoufal@netsuite.com"
] | jcoufal@netsuite.com |
cb37297816fccafca71a0535f7833e344f4d556f | ac878a24dad53864803a2b36c594c1513a0433dd | /Ch2/variables_start.py | 593cc56822203caa661fc2766e08af0b93b6704e | [] | no_license | anilsa1400/MyPythonBeginner | 5af426bd6a8aefe1c627cc3b2cc98bc60b53fdad | 95b6666e67495b1361167c56a72c4da5df85cce9 | refs/heads/main | 2023-04-29T13:45:35.942934 | 2021-05-19T14:23:54 | 2021-05-19T14:23:54 | 366,984,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #
# Example file for variables
#
# Declare a variable and initialize it
f = 0
# print(f)
# re-declaring the variable works
# f = "abc"
# print(f)
# ERROR: variables of different types cannot be combined
# print("This is string " + str(123))
# Global vs. local variables in functions
def someFunction():
globa... | [
"anilsa1400@gmail.com"
] | anilsa1400@gmail.com |
bea22b6380e1f80d8d293727e249b8f9779d9fc8 | bf8ba111da414391c9bfc218579ec2d220865764 | /fiterp/fiterp/fiterp/doctype/leave_application_fiterp/test_leave_application_fiterp.py | 259ed56e02b1d6058f04b5c1f70f4da293992390 | [
"MIT"
] | permissive | AbrahamMan/fiterp | e0f76c59a3d31ebf38ce957612cec44d16fe6213 | a0ae1cc4f7b848dbbf51c870319e0aade4b92170 | refs/heads/master | 2021-04-27T19:39:08.494755 | 2018-01-28T11:10:13 | 2018-01-28T11:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, ITKMITL and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestLeaveApplicationfiterp(unittest.TestCase):
pass
| [
"nop_itkmitl@hotmail.com"
] | nop_itkmitl@hotmail.com |
19f208a28f2114ce1f37472b9eea2b4a1cf7f629 | 991f6bcf44d937b46843d33d78b4d0fa9c1c18f7 | /courses/urls.py | 3948a5b5310e22502c4fefb909c68aa2202ef956 | [] | no_license | Sajeerks/django-API | a15331d4e5f4d2baa0c28f84ffc17197ac1cb898 | cbc8338e659554ac368eb0f0f5ad727193ba76eb | refs/heads/main | 2023-01-13T09:23:26.700043 | 2020-11-10T05:59:11 | 2020-11-10T05:59:11 | 311,560,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from django.urls import path,include
from .import views
from rest_framework import routers
router = routers.DefaultRouter()
router.register('courses', views.CourseView)
urlpatterns = [
path("",include(router.urls))
]
| [
"sajeersayed@gmai.com"
] | sajeersayed@gmai.com |
c9ec417f68e16aaa3a781bc04a7e47b8cffff73c | c8c0d3e83dbec83ccb89a751dc3e656bb482a2ce | /ZombieGame/modules/coordinates.py | 2e949bd8c3dcf4cac12328f9fe1025eaec8889dd | [] | no_license | Yamase31/python-zombie-game | 80658bcfcb05b819265dfc75c5563391f19b1861 | dfd931ecf5caac9348b652862fc0b018979491d9 | refs/heads/main | 2023-07-07T08:58:43.314898 | 2021-08-10T00:33:36 | 2021-08-10T00:33:36 | 394,479,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py |
# Quick coordinate class to contain both x and y
# Overrides == for easy comparison
class Coordinates(object):
def __init__(self, x, y):
self.x = x
self.y = y
def __eq__(self, other):
return self.x == other.x and self.y == other.y
def __sub__(self, other):
if typ... | [
"noreply@github.com"
] | noreply@github.com |
ab918db583fa2a00e03db1802c67bd5310401427 | 22e6e7636f0dd4bb0e575735e71a81bc345cdd7a | /plots_direct_compression.py | bf924b26539e3cf04bb4962cd98f711a604fc606 | [] | no_license | navjotk/error_propagation | dcab4e7fa079fdb050d02ad11dc3d9a93e54479a | 09285eb54cb31deeb95372b872890cfe1cccfa4b | refs/heads/master | 2023-04-16T23:15:00.022161 | 2022-03-23T14:10:36 | 2022-03-23T14:10:36 | 203,205,530 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | import h5py
import pyzfp
from argparse import ArgumentParser
import matplotlib
import tikzplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt # noqa
from util import error_L0, error_L1, error_L2, error_Linf, error_psnr, write_results # noqa
error_metrics = {'L0': error_L0, 'L1': error_L1, 'L2': error_L2,... | [
"navjotk@gmail.com"
] | navjotk@gmail.com |
83b9398ebef1b2841d29cff940e0595b3f5478ce | aa03bf381871d69fd93143c1697cdcd421cbe7e8 | /src/imageqa_visprior.py | 8c75929f9f66ec24a11fe8b9521fbd7954f5eb17 | [
"MIT"
] | permissive | standardgalactic/imageqa-public | 369073d2e3a9a454986533bb872445c8cafab95f | 4e3ceb092495fb8c1056e55b870631907bb31d46 | refs/heads/master | 2023-06-22T11:59:09.031307 | 2016-03-23T21:56:07 | 2016-03-23T21:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,898 | py | import sys
import os
import numpy as np
import nn
import imageqa_test as it
from nltk.corpus import wordnet
lexnameDict = {}
def lookupLexname(word):
if lexnameDict.has_key(word):
return lexnameDict[word]
else:
synsets = wordnet.synsets(word)
# Just pick the first definition
i... | [
"renmengye@gmail.com"
] | renmengye@gmail.com |
b259dc41599ee92dc043a282fa8235f280b9d968 | 6f0a01dde7bf2998cd09e404cc4e2633fbf45dee | /archive/Tensorflow-101/ep-6-broadcasting.py | cee70b546ae0796a84c3a2c40cb581e09e075af2 | [
"MIT"
] | permissive | IncredibleDevHQ/incredible-dev-videos | b8a26b6ac6efad33f0e8dc2903c2b441ab106a69 | 38d5b3d85fd21b8ec8043b90312b500da398d9f9 | refs/heads/main | 2023-06-01T21:05:00.010981 | 2021-06-21T14:57:41 | 2021-06-21T14:57:41 | 341,483,252 | 2 | 2 | MIT | 2021-06-08T11:56:08 | 2021-02-23T08:32:00 | Python | UTF-8 | Python | false | false | 576 | py | # Broadcasting
import tensorflow as tf
x = tf.constant([1, 2, 3])
y = tf.constant(2)
z = tf.constant([2, 2, 2])
tf.print(tf.multiply(x, 2)) #[2 4 6]
tf.print(x * y) #[2 4 6]
tf.print(x * z) #[2 4 6]
x = tf.reshape(x,[3,1])
y = tf.range(1, 5)
print(tf.multiply(x, y))
# [[ 1 2 3 4]
# [ 2 4 6 8]
# [ 3 6 9 12]]
x... | [
"ashwin.mirskar@gmail.com"
] | ashwin.mirskar@gmail.com |
fb23d8cad946047b56dd79262c71561d4d0dbf1d | 465b778006c691d9553948b58119978604a2bf04 | /setup.py | ee0defde614c583d08699ff84b5dccc40d936c4c | [
"MIT"
] | permissive | nosarthur/coi | 2087d4ae4499ea5a46aadfa1ed4e21fed93632ab | 13efb27adbda111debdc51550bfde3e9fb56eb9b | refs/heads/main | 2023-07-14T15:36:18.519730 | 2021-08-27T17:22:35 | 2021-08-27T17:22:35 | 396,001,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | from setuptools import setup
long_description = None
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='coi',
packages=['coi'],
version='0.0.8',
license='MIT',
description='See output/input status of all sub-folders',
long_description=long_description,
... | [
"zhou.dong@gmail.com"
] | zhou.dong@gmail.com |
2db11fc713334d1c4d17ecf444cf9726e26cc5dd | 055cf8aeec011f67580bf92a83d94ee6919648cd | /migrations/versions/ad28a44f93c4_initial_migration.py | 18999b6182f1570c2b30ca638cbdbed3b8a6a43e | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | RisperAkinyi/BlogPost | df82c8fec558425ca1bbce65aa90464176aefb87 | f8ee4c887fceae8e70410b66a12bc5680cf26044 | refs/heads/master | 2022-09-30T19:09:27.969983 | 2019-08-13T07:36:26 | 2019-08-13T07:36:26 | 201,879,164 | 0 | 0 | MIT | 2022-09-16T18:07:44 | 2019-08-12T07:22:39 | Python | UTF-8 | Python | false | false | 2,128 | py | """Initial Migration
Revision ID: ad28a44f93c4
Revises:
Create Date: 2019-08-09 11:05:50.912878
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ad28a44f93c4'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"email@example.com"
] | email@example.com |
12e0297f0e01b59d69ca42308b250e49c4b45112 | ec1b50134c1d8b7af7374dfdbec876a0c3e9d211 | /6.0001/string.py | 767f2d972b1344a10d00129904f916c95ced4f9a | [] | no_license | Leeboyd/learnPython | 1876d3a5126cb30938a044847a99093512dd88cc | 7fc8938a702ca32a6912490c5c8aa49561f8123e | refs/heads/master | 2023-02-20T03:12:35.529317 | 2022-06-16T23:41:35 | 2022-07-05T03:39:32 | 147,643,970 | 1 | 0 | null | 2023-02-10T22:46:18 | 2018-09-06T08:42:40 | Python | UTF-8 | Python | false | false | 196 | py | s = "abcdefgh"
for index in range(len(s)):
if s[index] == 'i' or s[index] == 'u':
print("There is an i or u")
for char in s:
if char == 'i' or char == 'h':
print("There is an i or h") | [
"jobboy19890101@gmail.com"
] | jobboy19890101@gmail.com |
07d1801bc21bc3ce1f36e57d68f11e9aea47ae54 | f85fbab0cffaa54a136e0938715414383a4eea1f | /Challenge_climate_analysis.py | 4dc0330bdef972cf47b3e48416d2d98207c99eea | [] | no_license | varshajha28/Surfs_Up | 54bd59b9ba867573e974ce74f1bfafa6632c0fd4 | 31ff636167031c20d6de69398d142f02c0a78c73 | refs/heads/master | 2021-03-03T07:22:43.393395 | 2020-03-14T22:02:21 | 2020-03-14T22:02:21 | 245,942,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | # Add dependancies
%matplotlib inline
from matplotlib import style
style.use('fivethirtyeight')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import datetime as dt
# Python SQL toolkit and Object Relational Mapper
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy... | [
"varsha.jha@gmail.com"
] | varsha.jha@gmail.com |
5e882ab6a9df428646946d956286a2353bf597e6 | 2d382086ead32a2de90855fb02662771d7d92c7c | /all_files/migrations/0001_initial.py | 81f3677616ce3d3523a8363974caabad63a4e006 | [] | no_license | accprojects/project | b92f9ebb1ce09ee3d7dc3b77e5c1e7376d6055b2 | 56f51c9581da2c3e8805123c7cdc1652fbfac78b | refs/heads/master | 2021-05-12T19:23:15.617975 | 2018-02-13T11:38:52 | 2018-02-13T11:38:52 | 117,091,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-11 12:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"lianatagirova598@gmail.com"
] | lianatagirova598@gmail.com |
8b6e1e356ae27b2dc78266d986e81f9a3b47123f | 98710e1b64d2eb527efbffa7f1b3d846cce6024c | /20180801-daguan-nlp-classification/model/lr_tfidf_traintest_feature.py | 89efb82eaf5ac37fbbc9e737c6c55157675b818c | [] | no_license | SheldonWong/competition | bf6f8904cfd89d4649249e453f46f45f0a988604 | 3894c7ec5f9fca35d37702b5402dac9b7b1e04c4 | refs/heads/master | 2020-03-30T07:13:32.702321 | 2018-09-30T09:22:25 | 2018-09-30T09:22:25 | 150,924,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from sklearn.metrics import classification_report
from sklearn import svm
from sklearn.cali... | [
"sheldonwong@sheldonwongdeMacBook-Pro.local"
] | sheldonwong@sheldonwongdeMacBook-Pro.local |
e6495c54678fa25589ed821affe20e0b079fbc0a | d5b3011dcc61ea661d395747a4ecac2fc850e667 | /checkout/migrations/0003_order_user_profile.py | f77fa66947ef7054025fbbe925f0b8c909849972 | [] | no_license | Code-Institute-Submissions/learning-management-system-ms4 | d4f544f357351d45fd9dd471774d160cfde7d9a9 | 172738a1a8e37113a40f93a8ed230dae83b1ca93 | refs/heads/master | 2022-11-09T08:56:05.253560 | 2020-06-22T01:08:32 | 2020-06-22T01:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # Generated by Django 3.0.6 on 2020-06-12 09:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
('checkout', '0002_auto_20200612_0951'),
]
operations = [
migrations.Ad... | [
"bogdan@onis.studio"
] | bogdan@onis.studio |
a43e6873d5770d466c0143a8d8e3abdff3975ac4 | 4bc19f4dd098ebedcb6ee78af0ae12cb633671fe | /static/views.py | 608e8568b487fbee9eb1251fbf226fbe6d45ec5b | [] | no_license | StanislavKraev/rekvizitka | 958ab0e002335613a724fb14a8e4123f49954446 | ac1f30e7bb2e987b3b0bda4c2a8feda4d3f5497f | refs/heads/master | 2021-01-01T05:44:56.372748 | 2016-04-27T19:20:26 | 2016-04-27T19:20:26 | 57,240,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from django.http import Http404
from django.shortcuts import render_to_response
from rek.static.models import StaticPage
from django.template.context import RequestContext
def render(request, page_alias=''):
page = StaticPage.objects.get(alias=page_alias, enabled=True)
if not page:
raise Http40... | [
"kraevst@yandex.ru"
] | kraevst@yandex.ru |
e2a4d4248d4f5b48e5c69c52e0dad41e541340ba | 33cfcb4561e7320ae0e893fbe774c7eb0a2effe8 | /eg15.01.py | c94d345080db1688fdbb1a237e7fd737f5e8db93 | [] | no_license | Jueee/aByteOfPython | 9c8bc01f0707daef29e52467db0c3f5a94747119 | ae1a4a4b181612463ccdcd0d89c961f22f7ece20 | refs/heads/master | 2021-05-31T14:26:00.790823 | 2016-02-17T05:41:20 | 2016-02-17T05:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | #!/usr/bin/python
# Filename: list_comprehension.py
# 通过列表综合,可以从一个已有的列表导出一个新的列表。
listone = [2, 3, 4]
listtwo = [2*i for i in listone if i > 2]
print(listtwo)
# 在函数中接收元组和列表
# 当要使函数接收元组或字典形式的参数的时候,有一种特殊的方法,它分别使用*和**前缀。
# 这种方法在函数需要获取可变数量的参数的时候特别有用。
# 由于在args变量前有*前缀,所有多余的函数参数都会作为一个元组存储在args中。
# 如果使用的是**前缀,多余的参数则会被认为是一个... | [
"hellojue @foxmail.com"
] | hellojue @foxmail.com |
1a029ae138c31e24a7f6c8323cce780ea4cc4c45 | 209622dae7003dfec237123a8d4645f97e000df6 | /venv/bin/pyreverse | 22abef7cf37e49af31aee031b7d0ea9780fe04af | [] | no_license | vasughatole/promolta | f50d9ced2e07ff05beae1611cc6c52b49956ee17 | 947a91bc55d9dbd853fde011957df2fb9cc30705 | refs/heads/master | 2020-04-17T19:47:01.759322 | 2019-01-21T21:14:02 | 2019-01-21T21:14:02 | 166,878,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/vasu/python/promolta/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"vasu@moneytap.com"
] | vasu@moneytap.com | |
645fcfbac504304e88b27def48c4789f31873f48 | b56fb8740e74859f95d44854fd4fb4309e039e84 | /src/twenty_four/lib.py | 6dd6277a98e6e208d8c712d22c573fe3b50249fa | [] | no_license | qsweber/twenty-four-api | 03c20e06f725b94c9eab3643fc4dd60c0b464e0b | fb870a24a41b0bacf595d528b13f8f4bde1118af | refs/heads/master | 2022-11-17T02:34:25.585554 | 2020-07-08T03:34:48 | 2020-07-08T03:34:48 | 107,357,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | py | import itertools
import typing
def plus(x: int, y: int) -> int:
return x + y
def minus(x: int, y: int) -> int:
return x - y
def dividedby(x: int, y: int) -> float:
if y == 0:
return 0
return x / float(y)
def times(x: int, y: int) -> int:
return x * y
def get_solutions(numbers: typ... | [
"quinn@quinnweber.com"
] | quinn@quinnweber.com |
284410ab3d19e3be36328ab6005a4c4dea22bbee | c43131586e14cb01bb1449a7318d8c349760f707 | /models/train_bleu.py | e8d50e3dcc9bf9cac0bceb70a7cce2cffb4460ba | [] | no_license | tfaod/arae-project | ef187ecdc711625cf1178e0538e4d200a7085b66 | f5cdb87a41bb3b7407144cc0829e694d57b2ea51 | refs/heads/master | 2022-07-12T01:55:42.790547 | 2020-05-12T17:19:18 | 2020-05-12T17:19:18 | 263,403,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,213 | py | #!/usr/bin/env python
# coding: utf-8
# In[7]:
import argparse
import os
import time
import math
import numpy as np
import random
import sys
import json
from nltk.translate.bleu_score import sentence_bleu
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autog... | [
"alice@Alices-MBP-8.T-mobile.com"
] | alice@Alices-MBP-8.T-mobile.com |
c2ab7ebb09d2e187c4dbf7afea60cfab0e18c38b | 72eb6f8dcfe34996e9c16769fd272d0d4383743f | /OS/MP-3/test.py | 63a530e8860c13151c7675b4a9c1d76e81a69305 | [] | no_license | abhishekkrm/Projects | a11daabc3a051b02f8b899d6058878d08b7613d8 | e7cd5a414ee330ac32671b4eab060949227fe3c7 | refs/heads/master | 2021-03-19T11:16:33.525390 | 2015-02-15T22:15:43 | 2015-02-15T22:15:43 | 30,843,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import getopt
try :
#Keep Receiving the message unless self.cr_lf is found
time_val = 0
if time_val <= 0:
raise "timeout"
print ("DD")
except:
print ("HI")
print("TP")
| [
"am2633@cornell.edu"
] | am2633@cornell.edu |
55a78abf836afadcc6c928b21b04a242cf25d686 | 77266fcd99d4b4770a6e22bf669150b1576c4e73 | /Assignment4/venv/Scripts/pip3-script.py | 85df86302a9b7e83b935b7e11b27688aeb77fbbc | [] | no_license | NourAdel/GA | d67ad9b9ed3cd1dcc6cfe00968217f5ed7b61b33 | c407eb51e6c35b9369298bf96b409a9e4aaeb627 | refs/heads/master | 2020-05-18T00:06:59.353710 | 2019-04-29T10:42:14 | 2019-04-29T10:42:14 | 184,050,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!D:\College\Genetic\Assignment4\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"noura7305@gmail.com"
] | noura7305@gmail.com |
22f6c9a8e5f0d726c42869ef47714dc1722c3f56 | 1d230df0e7b96bdb9d0b56f6f14ac5379915ed4f | /tensorflow/python/keras/metrics.py | b18f12612a849d8d8b7e2465ff8075d35764000e | [
"Apache-2.0"
] | permissive | plddxr/tensorflow | afc5404ca9c089ca84700f9f055ef2bdc6c824f5 | 611edc8c515678c1d1b95ece09e6a374c9790716 | refs/heads/master | 2020-03-25T21:49:46.011109 | 2018-08-09T18:38:42 | 2018-08-09T18:43:28 | 144,191,426 | 1 | 0 | Apache-2.0 | 2018-08-09T18:48:44 | 2018-08-09T18:48:43 | null | UTF-8 | Python | false | false | 21,647 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
585841a0ab7fec5d5e554df56e9525b8542746bf | a273c33036b697eaa90b01a22e5f01a31c61fda5 | /exercises/ListChaine.py | 5889a61caab9ac0da539cc442f6346bf568c7634 | [] | no_license | allaok/codestores | 1a55ed8798f6c99476fe24f27fda9a3c3fa03116 | f000bbb2518a8202875cbbcf6cc3a11e57db5792 | refs/heads/master | 2021-01-19T05:44:06.981591 | 2015-07-29T22:56:16 | 2015-07-29T22:56:16 | 39,902,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | __author__ = 'PWXG8293'
class Element:
def __init__(self):
self.value = None
self.next = None
class Liste:
def __init__(self):
self.first = None
def append(self, value):
element = Element()
element.value = value
element.next = None
if self.first is... | [
"alexis.koalla@orange.com"
] | alexis.koalla@orange.com |
08a41f586570d5ba0baa10410a977b1169ac947f | 4be9a5bdb8e051001b78c8f127ccc1a7f85c14e7 | /mapping/migrations/0033_auto_20170129_0939.py | 90fce4536a94b43eded5f95299f301669aa5c874 | [] | no_license | quentin-david/heimdall | f72a85606e7ab53683df2023ef5eaba762198211 | 84a429ee52e1891bc2ee4eb07a084dff209c789c | refs/heads/master | 2021-01-21T10:26:28.895663 | 2017-07-21T19:19:46 | 2017-07-21T19:19:46 | 83,432,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-29 09:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mapping', '0032_servicewebserver_reverse_proxy'),
]
operations = [
migratio... | [
"david@hemdgsa01.local.lan"
] | david@hemdgsa01.local.lan |
ebf043a81c81d7202f4783736d677c16d360a834 | 828695b32588933b87b8a58c9f68a3d1ce23db17 | /jobs/migrations/0001_initial.py | 4b98fd0982e563eb9eed2e0d1246a174992521c9 | [] | no_license | jimpfred/portfolio | 6a82a632319c0628b54a1b68b13238d10be67458 | 3e62cacd52052844d6a8400fc142ba04d5bb0740 | refs/heads/main | 2023-07-12T08:00:09.698957 | 2021-08-17T21:42:33 | 2021-08-17T21:42:33 | 397,274,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # Generated by Django 3.2.4 on 2021-08-16 19:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.BigAutoField(a... | [
"jimpfred@yahoo.com"
] | jimpfred@yahoo.com |
71bac15afe4dcfaa41d8dd9a2894a3b9ff0f5e83 | 5503712ed14239e48b5dc2fb66e38250f1c14320 | /accounts/migrations/0002_auto_20200506_2119.py | 20372336adb7672ab88f189debfe85514eb19dfe | [] | no_license | Aexki/sajas-hotel_management | ee8238e8f3a13a0e061a9951df7244014d948902 | f0ac71378153ce97c1588ecef3857fcde3cd4035 | refs/heads/master | 2022-07-03T03:36:34.818041 | 2020-05-09T15:53:43 | 2020-05-09T15:53:43 | 262,008,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 3.0.5 on 2020-05-06 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='cabservice',
name='completed',
... | [
"50047387+Aexki@users.noreply.github.com"
] | 50047387+Aexki@users.noreply.github.com |
bb5ab0eba71a2dc209d64e6c93ae9e1d690a3bab | 7c1abd2ec952d022342098990d4ee2382bd18266 | /tests/test_01.py | 6a34cdac5b44ae9e2caa6699102c5839ed98f80d | [
"MIT"
] | permissive | evestidor/svc-stock-price-simulator | 7679177bc06a6e230478cf383b718afb108120cc | 2ddfb504933959c19f8bd2b7d295b117c10fe27a | refs/heads/master | 2022-05-07T19:48:36.449467 | 2019-07-03T15:27:11 | 2019-07-03T15:27:11 | 192,607,658 | 0 | 0 | MIT | 2022-04-22T21:46:32 | 2019-06-18T20:24:01 | Python | UTF-8 | Python | false | false | 71 | py |
class TestDummy:
def test_assert_true(self):
assert True
| [
"tiagoliradsantos@gmail.com"
] | tiagoliradsantos@gmail.com |
05d19c9a1a2febd779681ba4ce0cd85888d449d4 | 783a97b257ec086d6c7e2109840f1ad91f8e52bf | /scraper/src/config/config_validator.py | f432d0d299c047068b9d3b7fd3fbad2aa75bbfab | [
"MIT"
] | permissive | thefrenchmatt/docs-scraper | 949af243655201c865bc7f64cb906c7b597953a6 | 70665daafaea6dfefc48de3ca107c2a97cc9fc0d | refs/heads/master | 2022-07-05T03:34:20.627595 | 2020-05-14T12:05:59 | 2020-05-14T12:05:59 | 267,131,268 | 1 | 0 | NOASSERTION | 2020-05-26T19:17:39 | 2020-05-26T19:17:38 | null | UTF-8 | Python | false | false | 2,824 | py |
class ConfigValidator:
config = None
def __init__(self, config):
self.config = config
def validate(self):
"""Check for all needed parameters in config"""
if not self.config.index_uid:
raise ValueError('index_uid is not defined')
# Start_urls is mandatory
... | [
"clementine@meilisearch.com"
] | clementine@meilisearch.com |
da159e2f2ebf6d02cf5df84e0e70edd3ae7af159 | 08289088124d18029d0ad4388f49ac9c206738e2 | /etl_prefect_core.py | e4ebf3c138cb20b5c050e3ef489bbef516571689 | [] | no_license | AntonioNtV/prefect-pydata-denver-tutorial | e54660172ef484bf9d0610b84b0b9f47d7b2805c | cb6bfb1a236b85a26efdd8b144027351fbe49aa6 | refs/heads/master | 2023-08-10T21:45:38.654271 | 2021-10-07T19:04:31 | 2021-10-07T19:04:31 | 414,699,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import requests
import json
import sqlite3
import pathlib
import prefect
from collections import namedtuple
from contextlib import closing
from datetime import timedelta
from prefect import task, Flow
from prefect.tasks.database.sqlite import SQLiteScript
from prefect.schedules import IntervalSchedule
from prefect.eng... | [
"antonio.bertino.neto@ccc.ufcg.edu.br"
] | antonio.bertino.neto@ccc.ufcg.edu.br |
9a98b7f2a056ef505360b11f8b6ffb23274a9882 | d6d2773e7466b31da5ed9e7103d5eb9909db1223 | /web/sales_app/apps/stations/migrations/0002_auto_20170717_2015.py | 3bc58a2cad8a9bae6483af3e326e06df869aafeb | [
"MIT"
] | permissive | iabok/sales-tracker | bee3f0a18ca565a8da2ce356c6842f6af486367c | 7ef2e68f0b0393b983375d092b8469ca88f6b5ce | refs/heads/master | 2021-06-22T00:09:16.723616 | 2017-08-21T23:30:57 | 2017-08-21T23:30:57 | 92,953,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-17 20:15
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('stations', '0001_initial'),
]
o... | [
"abokisaac@gmail.com"
] | abokisaac@gmail.com |
88bc0b746f0606f86b7e67ef6a1772fa311c5961 | 3b4094f1161502a3d1dbc5712e6405009c3c4b8c | /wsgi/venv/lib/python2.7/site-packages/bokeh/models/map_plots.py | d178a4dc16cabf517ea3bb3b0b28d01d0b822b07 | [] | no_license | chriotte/FinalCourseworkCloudComputingChristopherOttesen | b604337c7e8064ee07e5a45a38e44ae52cb599ae | 08a0271f831e3f14bc836870c8a39b996b6d1d20 | refs/heads/master | 2021-01-18T19:54:02.090555 | 2017-04-01T15:14:03 | 2017-04-01T15:14:03 | 86,919,333 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | """ Models for displaying maps in Bokeh plots.
"""
from __future__ import absolute_import
from ..core import validation
from ..core.validation.warnings import MISSING_RENDERERS, NO_DATA_RENDERERS
from ..core.validation.errors import REQUIRED_RANGE, MISSING_GOOGLE_API_KEY
from ..core.has_props import HasProps
from ..c... | [
"christopher.ottesen@yahoo.com"
] | christopher.ottesen@yahoo.com |
01b5228bafb4cd7e36afa383714ca0ce95b4d5dd | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/anlangner/cordis_v3.py | c960031a72d020159d2fc051da824933e00894a7 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,592 | py | import scraperwiki
import scrapemark
import feedparser
import csv
import re
import urllib2,sys
import requests
import lxml.html
from BeautifulSoup import BeautifulSoup, NavigableString
# extract project page links from the result page "url"
def extract_links(url):
atom_feed = feedparser.parse(url)
link_li... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
952177163a4b1437e1561a38db38fa4d951331ba | 9cb8a9f5172f9af17eda5ca8d3c6ff297f0bf120 | /setup.py | 42aed970f5f0d61d42ac271f5d64f44f3aa5bc6c | [] | no_license | tzyk777/twrapper | 91c35e0a572c533071bc02c75952fd69fd2b4a22 | b07c7c307f324a214c876b0d50ec18771b0012e1 | refs/heads/master | 2021-01-17T16:29:16.968949 | 2016-10-29T21:54:06 | 2016-10-29T21:54:06 | 62,597,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from distutils.core import setup
setup(name='twrapper',
version='1.3.1',
description='Python twitter wrapper',
author='Zeyang Tao',
author_email='zeyangtao1020@gmail.com',
packages=['twrapper']
) | [
"zeyangtaooptions@gmail.com"
] | zeyangtaooptions@gmail.com |
12991bf43618c242644e572cf61bc414b413c0b4 | 152ebb6f75ac0d79f824ea219ca095be59b23fd0 | /client-side-module/client-side.py | 62ab47a62a652cdf6bcc0f1acf2da0f6c105606b | [] | no_license | Automated-CAD-Scoring-Suite/Remote-Communication-Module-for-3D-Slicer | f296d1aca08cb90d1feb28e6ee8e1d7e45af70e0 | fc6a2166c3208997bb7ed0aa8cd3ee0c7b6dc794 | refs/heads/main | 2023-02-23T21:16:25.327063 | 2021-01-30T04:04:53 | 2021-01-30T04:04:53 | 333,851,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | # Import Packages
import SimpleITK as sitk
import nibabel as nib
import matplotlib.pylab as plt
import numpy as np
def find_roi_2D(s):
# rotate -90
s_rotated = np.rot90(s, k=3)
# flip slice
s_fliped = np.flip(s, axis=0)
s_rotated_fliped = np.flip(s_rotated, axis=0)
# Get up and down coordiat... | [
"abdullah.m.alrefaey@gmail.com"
] | abdullah.m.alrefaey@gmail.com |
6be743b4b02d6eb6d7f62aab46ff57260ffa042b | f92dfdebb4bf6bc108f51783333520c35afa66da | /api-web/src/www/application/management/commands/publish_rabbitmq_genome_gene.py | 23f7465ee4e41b1adf971b243ae030a6a568b6ea | [] | no_license | duytran92-cse/nas-genodata | 4d8659a135913d226842ff6a013324714ead0458 | 80c88f42145f729c5862a5293012e71548182e1d | refs/heads/master | 2022-11-13T17:24:03.769605 | 2020-06-14T18:59:36 | 2020-06-14T18:59:36 | 272,264,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | import json, pika, os
from application.models import *
from urad_api import registry
from urad_api_standard.commands import Command as BaseCommand
from django.conf import settings
import json
from application.modules.gene import components as gene_components
from django.db import connection
class Command(BaseCommand)... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
5da2bd8dc2830c9ae5ea68845892e133cd447295 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2210.py | 06f183066edd0d13b690b7e34154e944725a31e0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=28
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3d0e56a951a0a89f5feb4223a746a737089a3ea2 | 6fc2feac7ec07870afc927983cb5b048af1f6566 | /src/monju_no_chie/admin.py | 2fa6e5f53d12c868dd20b772492651f03aa9d62e | [] | no_license | SpaceMagical/SpaceMagical | fd2f114e4df89eeb71c6fb5900010eca8746ebfc | e3b4e5eb1f91fd8145d397b9bd4018d5f99ca8df | refs/heads/master | 2021-06-11T02:42:43.704128 | 2016-12-03T16:13:33 | 2016-12-03T16:13:33 | 74,037,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.contrib import admin
from .models import MonjuNoChie
class MonjuNoChieAdmin(admin.ModelAdmin):
class Meta:
model = MonjuNoChie
admin.site.register(MonjuNoChie, MonjuNoChieAdmin)
| [
"hirotoaoki1349@gmail.com"
] | hirotoaoki1349@gmail.com |
39f29b37f7444cf60b0b9e2cbd3307132c1c48c6 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/pandas/tests/io/parser/test_skiprows.py | 1df2ca4fad4d87539cdcdee874cb25a6cd3ce18e | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 6,948 | py | # -*- coding: utf-8 -*-
"""
Tests that skipped rows are properly handled during
parsing for all of the parsers defined in parsers.py
"""
from datetime import datetime
import numpy as np
import pytest
from pandas.compat import StringIO, lrange, range
from pandas.errors import EmptyDataError
from pandas import DataF... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
0ade196c2880c7c5454d81108adc3086b4ced438 | c7bd791903d36d5ee5e828cd90939e3358b5845a | /contacts/migrations/0001_initial.py | a972d5ff6aacc21aa3e2cf7fb92ed4c8be41ba86 | [] | no_license | Saxena611/bp_real_estate | b638ac477fcf8e44dccfb5d58473c83efa94e5cb | e2ce50678894f6f542864c525b9d8fcdb91f8669 | refs/heads/master | 2023-06-12T05:03:37.845739 | 2021-07-11T06:03:50 | 2021-07-11T06:03:50 | 330,562,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # Generated by Django 3.0.3 on 2021-03-21 06:28
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', m... | [
"Animesh.Saxena@amdocs.com"
] | Animesh.Saxena@amdocs.com |
b6e06bd57873d7cd596aa92ffcccf76eb8c487d1 | 6544fa558a6c08e4c67de393ed0d0ab554533839 | /DjangoProjects/DjangoProjects7EnquiryPageAndDeleteRoom/Rento/rento/rooms/models.py | 8ec356ad12ac7f769c1d4c1fecbeb6b79ef96526 | [] | no_license | tennnmani/bitproject7-DjangoPython- | 498878276ca0c847d0cf2ca73c1091074720d6e5 | fe13b4822c4cc5686a478dbfee915c108b6f9278 | refs/heads/main | 2023-02-21T16:56:10.842672 | 2021-02-25T04:13:52 | 2021-02-25T04:13:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class City(models.Model):
name = models.CharField(max_length=120) # max_length = required
def __str__(self):
return self.name
class Location(models.Model):
city = models.OneToOneField(City, on_delete=models.CAS... | [
"diwakartop10now@gmail.com"
] | diwakartop10now@gmail.com |
4f7296681cdfba9a427661da990e966abc246734 | ce8d7f8171da70b75b805f2ba5b2dfaeed651c9b | /geopy.py | 31f7ec0757edea1530872f3c706b0334a5752853 | [] | no_license | DesPenny/Everythingbackpacker | 5798ebd827c095f0aea48b1a5efa9e1191f8d0a0 | 8c45242de8aa41f00d77d95057d9daa0a61c41f3 | refs/heads/master | 2016-09-06T21:53:25.982409 | 2014-05-01T12:30:37 | 2014-05-01T12:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from geopy import geocoders
g = geocoders.GoogleV3()
def find():
print 'What would you like to search?'
query = raw_input()
place, (lat, lng) = g.geocode(query)
return place | [
"despenny@gmail.com"
] | despenny@gmail.com |
2ce3c8a48982b584a60b2a960d76c25d0d5a33c3 | f8965d7b16e3cf70370b3bd181ef855a2ab89768 | /services/student_service.py | 1008f3f8b34bb77616f5d65ad565592c882b9575 | [
"Apache-2.0"
] | permissive | tuannguyendang/montypython | 59cae6fc6069cf5356670132470cdd52bad00d67 | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | refs/heads/main | 2023-05-12T02:24:50.693432 | 2021-05-31T02:14:16 | 2021-05-31T02:14:16 | 325,188,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | from uuid import uuid4
from services import StudentAssignmentService
from services.abstract import Assignment
class StudentService:
def __init__(self):
self.student_graders = {}
self.assignment_class = {}
def register(self, assignment_class):
if not issubclass(assignment_class, Assig... | [
"tuan193@gmail.com"
] | tuan193@gmail.com |
fffce95d0709e83632fe51584057dd7a2f48896d | 51e56d62ba688b5cc323a3ee3890b87934ae7682 | /5_Arg_Pr_Nac.py | 4c377c901ba044f8930cb6e0a34c4005c39cbf51 | [] | no_license | BogdansProgsCo/OLIMP_FREEDOM | b239df814af90e1dc5fd0aff15ee1c5e921a61f6 | 3e631a223b6215d136104eba70bc35203dfe47cf | refs/heads/main | 2023-05-14T13:19:14.760929 | 2021-06-14T18:21:40 | 2021-06-14T18:21:40 | 376,906,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319,195 | py | import requests
from bs4 import BeautifulSoup
import re
import datetime as dt
headers = {"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Firefox/45.0'}
url = 'https://nb-bet.com/Teams/2136-Atlanta-Buenos-Ayres-statistika-komandi'
r = requests.get(url, headers=headers)
wi... | [
"noreply@github.com"
] | noreply@github.com |
bcd8ad1f09ff8608cd0e1873f337a00d768cbe32 | d7a05a935169e7b4d1c3cc834ff70633908fb525 | /test_model.py | a5e8711ccbf4e9a40a69659d8d35d06c897711b8 | [] | no_license | NinaWie/classify_satellite_images | 72d44b7cdc9c9c038daccc6e354ede04b0b786d8 | 5810580999e557e56fc09d0404f2faccc9690e9a | refs/heads/master | 2020-08-29T02:02:12.105432 | 2019-10-27T17:27:56 | 2019-10-27T17:27:56 | 217,888,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | import numpy as np
import os
import cv2
import json
import keras
import argparse
import sys
from keras.applications.vgg16 import preprocess_input
from keras.models import model_from_json
def classify_tif_image(k, l):
"""
This loads the TIF file and creates the 256*256 tiles out of it. it then classifies each... | [
"ninawiedemann999@gmail.com"
] | ninawiedemann999@gmail.com |
f9a5490c2beeec964b97a7bd6462e457285bbb33 | 530c8697641092d9291514e919f52f79c4ff00d7 | /2d (1).py | 3c9f85943a5580834acc0df43d0b91cbcc24e107 | [] | no_license | haldanuj/EP219 | 59336fcb72ccf76df81f81b37a7c488c1f182d01 | 115633dac1d8f35a014467703672f73761baac7d | refs/heads/master | 2021-01-12T18:19:58.314348 | 2016-11-04T01:01:08 | 2016-11-04T01:01:08 | 69,415,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py |
import numpy as np
import matplotlib.pyplot as plt
import math
file=open('recoilenergydata_EP219.csv','r')
#defined list to store the values of log(L(s))
y=[]
#here defined log(L) function with s as parameter(sigma)
def likelihood(s):
file=open('recoilenergydata_EP219.csv','r')
i=0
sum1=0 ... | [
"noreply@github.com"
] | noreply@github.com |
dd2c0563158627b1fd4a1e16385be8b08316abe4 | a7d23974abd0d09681c17ca09038dc6dcd80a2ee | /extra/exporters.py | db0c766c8661667fb961183dbe55d8eadda1027e | [] | no_license | world9781/pydir | ccdf8aa560411957cf476324d49c7c1b4e0073c5 | 0c6c878a69bc5e0cabd12142d5fbb014fbade006 | refs/heads/master | 2023-03-15T20:27:57.409027 | 2018-10-22T19:09:11 | 2018-10-22T19:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | """
Exporters main duty is to represent a directory structure as XML or Json
TO BE IMPLEMENTED
"""
import os
import json
class BaseExporter(object):
"""A base for Writing Directory structure Exportation formats"""
def __init__(self,path_name):
self.pathname = path_name
def repr_as_dict(self,pa... | [
"kituyiharry@gmail.com"
] | kituyiharry@gmail.com |
6a6d137d3c8dc70d14aa023a752ffba6f170d4fd | 91af1af67ed219e583b209b40ae5dd34d6f7f355 | /train_net.py | 90d770c1765c7f52a585ded8af49a5bf767545db | [] | no_license | jack20951948/Deep-Clustering | d6f5bfdd97be1f07f114371eafd9f8643ebb6e30 | 4dd8b4d3fef72e597cd142406d343450cf2dd517 | refs/heads/main | 2023-06-28T02:18:58.915727 | 2021-07-18T07:18:10 | 2021-07-18T07:18:10 | 387,109,398 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,555 | py | '''
Script to train the model
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datetime import datetime
import os.path
import time
import numpy as np
import tensorflow as tf
import ipdb
from datagenerator2 import DataGenerator
from model import Mode... | [
"j20951948@gmail.com"
] | j20951948@gmail.com |
1210ab54593eea5b9c24f896a0e2f0ffdb4dc99f | fb96a752515b20e5bb3548cc5eec39b81d463643 | /Advent/2016/day_08/eight.py | f95e8a67803a3b23d5abf78129a798f0349b137b | [] | no_license | kryptn/Challenges | 2de2675ad0a39e13fb983a728dc090af7113b443 | f1aba799fa28e542bf3782cdfa825ff9440bf66c | refs/heads/master | 2021-05-01T02:54:21.404383 | 2016-12-27T17:09:09 | 2016-12-27T17:09:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | with open('input.txt') as fd:
data = fd.read()
class Screen:
def __init__(self):
self.grid = [[False]*50 for x in range(6)]
def shift_row(self, row, spaces):
self.grid[row] = self.grid[row][-spaces:]+self.grid[row][:-spaces]
def shift_col(self, col, spaces):
self.grid = zi... | [
"kryptn@gmail.com"
] | kryptn@gmail.com |
1398fd23f5db51415ada765ea40ff41dfd172980 | 1472d0b89d3c845f1f40552fcef889cd12ce367e | /classification/quiz.py | 2c461e7f0ef7cf0fe26cd2e9708dabc4dc97b1c1 | [] | no_license | AatmanTogadia/DataMining | 47e45cb26b8c5bfbb8fdda08044517765c7b3c96 | a3005e132dd823f13dd00dff9ad9f9bd7c1870d0 | refs/heads/master | 2020-12-25T10:34:10.452558 | 2016-07-07T04:02:07 | 2016-07-07T04:02:07 | 61,662,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,541 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 14 21:53:56 2016
@author: Aatman
"""
__author__ = 'Aatman'
from sklearn.linear_model import LogisticRegression
from sklearn import svm
import pylab as pl
import numpy as np
from sklearn import cross_validation
from sklearn.grid_search import GridSearchCV
import json
imp... | [
"Aatman Togadia"
] | Aatman Togadia |
e91ec979aaed5918fde76b0f5e9594aa88de1975 | 47836a0e9dd477b17a08f0f1fdc0dec284e119eb | /cqt/strats/strategy_long_short_average.py | 5ec4dc0aa62cccce396687634037d60420e694e2 | [] | no_license | Jwang-2007/ML-Crypto-Trading | efe5667c9953bbe6541a183e749a85268b8613d2 | c83bc9ad68efaea65671a2268f6890bfbfccb79e | refs/heads/master | 2021-04-05T20:37:30.585610 | 2020-04-22T19:09:52 | 2020-04-22T19:09:52 | 248,598,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | from cqt.strats.strategy import Strategy
from cqt.analyze.signal_long_short_crossing import signal_long_short_crossing as slsc
from cqt.analyze.signal_long_short_crossing import signal_average_envelope as sae
import copy
class StrategySimpleMA(Strategy):
def apply_event_logic(self, time, ledger):
coin = 'b... | [
"yolandwjx@gmail.com"
] | yolandwjx@gmail.com |
4355e732fc8866cde71cd3a8929fb289585ea09a | cea30cf853c1ddbe517292e8bcaf2265ddfeaa00 | /directions/migrations/0001_initial.py | 60c40bd4b3be8941d7d8643f00deab5c72d5f44f | [] | no_license | mehranj73/london-routes | b80242ecf60fa16c19dd0017be421ed790fe7b30 | 0fa50faf6813fc704379d0e0e4f2ad891e4121b0 | refs/heads/main | 2023-01-20T22:43:56.963476 | 2020-11-26T13:23:08 | 2020-11-26T13:23:08 | 325,857,652 | 1 | 0 | null | 2020-12-31T18:56:12 | 2020-12-31T18:56:11 | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.1.2 on 2020-10-25 18:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Direction',
fields=[
('id', models.AutoFiel... | [
"anouskaoleary@gmail.com"
] | anouskaoleary@gmail.com |
af071cda274d216298ffa43dad3dc91a802788fa | a97dab5a6d7fa9e65a61193001652198236d5814 | /ircpdb/bot.py | ce6b1bf265fbd7e97b178bd50deab4f663a664cb | [
"BSD-2-Clause"
] | permissive | scshepard/ircpdb | ac083b55fe94485e44859f7dca301361d6411616 | d6f197b02a77113d8e025e3026b64549eb748e2e | refs/heads/master | 2021-01-24T14:27:05.410262 | 2014-10-30T23:09:24 | 2014-10-30T23:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,071 | py | import fcntl
import logging
from multiprocessing import Queue
import os
import random
import socket
import textwrap
import time
from irc import strings
from irc.bot import SingleServerIRCBot, ServerSpec
import requests
import six
from .exceptions import DpasteError
logger = logging.getLogger(__name__)
class Ircpd... | [
"adam.coddington@coxinc.com"
] | adam.coddington@coxinc.com |
4c20c568fe6c4a47880f6ed1eb34cc337b469524 | 6404478cd856f018bddf4a047b23d658e29d94cb | /robot_position_estimation.py | c6b4c283acb14211540d045a0e9ed7c24a3fb5c8 | [] | no_license | RokonUZ/robotic-arm-pick-and-place-OpenCv-Python | c11eff3d70f46d47267ee7342ab16f96a90073af | f9ac7e759a93199d56d97b27efcc7c3d085c1e9e | refs/heads/main | 2023-09-03T10:13:18.792301 | 2021-10-27T17:53:24 | 2021-10-27T17:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,663 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 8 21:58:01 2020
@author: Tehseen
"""
# This code is used to Find the location of the Origin of the Robotic arm
# with respect to the image frame. We calculate the center point (origin) of the robotic arm
# as well as the rotation of the robotic arm with resp... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.