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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76b07fab07edb0667ffdda682c409887fdab50cc | 2cf99a155405b48bf14f872e1980ed948079e5dd | /test/test_router.py | a30b567e256a3ea2fe3ba97d23c6ab0b5d1539e8 | [
"MIT"
] | permissive | marrow/web.dispatch.route | c15309a26023d068b8f84ea4bbc221b674c1e6b8 | 92494bcad2e2a9a52d2e51eecfab910d829cc2de | refs/heads/master | 2021-01-25T04:01:46.245851 | 2016-02-15T07:54:36 | 2016-02-15T07:54:36 | 32,564,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | # encoding: utf-8
import pytest
from web.dispatch.route.router import __DYNAMIC__, Router
from sample import Root
@pytest.fixture
def router():
return Router.from_object(Root)
def test_dynamic_repr():
assert repr(__DYNAMIC__) == '<dynamic element>'
def test_router_singleton():
assert Router.from_object(Root... | [
"alice@gothcandy.com"
] | alice@gothcandy.com |
67b528a1d4897d406c2df773535234cf98e46ce4 | b7ada17734345131348d541d269c171ffbf88508 | /Clase 15-11-2019/EJM EXCEPCIONES.py | ffef2497de09d7ed5d0c969e35a71e143b8da847 | [] | no_license | PatrickPuente/Curso-Python-CEC-EPN | 709094e0e10c26b5bb4883649383c9660b227c32 | 83c9e4f85ca939f12d4fc536e46f58c4470ffa0d | refs/heads/master | 2020-09-11T16:18:56.670104 | 2019-11-16T17:43:50 | 2019-11-16T17:43:50 | 222,123,485 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import math
'''try:
y = 1/0
except ZeroDivisionError:
print("Zero Division")
except ArithmeticError:
print("Arithmetic Problem")
print("THE END")
#VAriantes
def badFun(n):
try:
return 1/n
except ArithmeticError:
print("Arithmetic Problem")
return None
badFu... | [
"noreply@github.com"
] | PatrickPuente.noreply@github.com |
7e1915a371be95b8b39560a1b5d338aaa86da5fe | d0e26d18017b825dd18919b0f87d0c99c15e1247 | /twitterclone/urls.py | f38223bc8a2886dc69db15f43acff166caa1a2ab | [] | no_license | davidstewy/twitterclone | 9e202f852514e72141c39e83f6d47e44f095be28 | 7e4395f9415854ca1edc3b81232f1303badb9543 | refs/heads/master | 2020-04-30T05:55:22.162908 | 2019-03-20T02:54:13 | 2019-03-20T02:54:13 | 176,638,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | """twitterclone URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"davidstewy@gmail.com"
] | davidstewy@gmail.com |
8bacb8e843f98006b0d409848f10edb92140f035 | f160cf4eb335ea799559312ac3d43a60c2c5848b | /library/zip_extract.py | e1f1faecce940706c2ead17d0b449c0c1525aa28 | [
"MIT"
] | permissive | baseplate-admin/Machine-Learning-Source-Code | c3389e0acb81e1f4c8e4c0cc763fcbc3781ef94e | a2203033d525c17b31584b52527c30e2c8aad1c4 | refs/heads/master | 2022-11-21T04:33:41.307477 | 2020-07-10T15:46:32 | 2020-07-10T15:46:32 | 277,730,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | def zip_extract():
import os
from zipfile import ZipFile
def zip_function():
print("We are extracting ZIP!!!")
where_is_zip=input("What is your zip location?")
what_is_zip_name=input("What is your zip name?")
what_is_zip_extension=input("What is your ZIP format?")
zi... | [
"61817579+baseplate-admin@users.noreply.github.com"
] | 61817579+baseplate-admin@users.noreply.github.com |
a926afb7922e05c0385c644c79fe80df6e229e01 | ff983c83c59011c91ef1d28ef0b6ce6bfd843d8e | /cola.py | 9f4af97d65cbd2e4bbb9bc14d98eccfe9ac5f6b7 | [] | no_license | jiterman/Flights-Manager | 7af81f025342988ef5a9497dd79f0849e87ba43c | 197d49aa3f012846521d3e06a992fcf0d8b2b9d9 | refs/heads/master | 2022-11-05T11:43:53.566874 | 2020-06-22T01:09:16 | 2020-06-22T01:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | class Cola:
def __init__(self):
self.items = []
def encolar(self, x):
self.items.append(x)
def desencolar(self):
if self.esta_vacia():
raise ValueError("La cola esta vacia")
return self.items.pop(0)
def esta_vacia(self):
return len(self.ite... | [
"noreply@github.com"
] | jiterman.noreply@github.com |
66d3b82f69e86c48f0251452cf320598139f48d5 | f7108e688415975baf5e3290d9b210585e4faaed | /monkeybat2.1/date.py | 04e20469868384d3244bafb377ee7322bf43019a | [] | no_license | lijiansheng325/python-2019 | 20ef1a960bc1cd8f09c0133eafda2755d273e2a4 | a577992d71d7d36a93d9cbb7658887c9152173f1 | refs/heads/master | 2020-04-19T03:30:48.426503 | 2019-01-30T09:12:02 | 2019-01-30T09:12:02 | 167,936,368 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | class Date(object):
def __init__(self, day=0, month=0, year=0):
self.day = day
self.month = month
self.year = year
def __str__(self):
return "{0}-{1}-{2}".format(self.year, self.month, self.day)
@classmethod
def from_string(cls, date_as_string):
year... | [
"lijiansheng325@163.com"
] | lijiansheng325@163.com |
2bfac6ff84eb132dbe0ca2d7e60294830f89405d | 697948f1b4e889258d64e4b641aa00f352c915d2 | /model/relation_prediction_semantic_loss/mydataloader.py | e0c59029b30751d753cdaf9484117914bd70a388 | [] | no_license | cheunglei/myLENSR | 6c8ad0376d907396b2db53f9ac42c76a001cd2eb | 063e50cc66dcc4390423150af89e95a9e0d2493a | refs/heads/master | 2021-03-21T02:02:16.576945 | 2020-05-18T08:02:47 | 2020-05-18T08:02:47 | 247,254,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | from torch.utils.data import Dataset, DataLoader
from torch import Tensor
import numpy as np
import pickle as pk
class VRD_dataset(Dataset):
def __init__(self, train_set_keys, image_features_train, annotation_train, information):
self.train_set_keys = train_set_keys
self.image_features_train = ima... | [
"948594226@qq.com"
] | 948594226@qq.com |
52722c46ff54f9d588bdd4cd1a24506d64dacd60 | bcc2d156334d3680561b17cec82cbc31a5ea07ad | /String/22. Generate Parentheses.py | 2431fefda0dcde528d7eafd0b65a378afe0ebe31 | [] | no_license | kevinsshah/Leetcode | 72b14e226b6881bcd18913b2fa132b0e3f8dd6ef | 4419f46e6f6b1d96ff8b7066fce687cfa88e65a0 | refs/heads/master | 2020-03-25T23:00:49.851183 | 2018-09-08T04:13:27 | 2018-09-08T04:13:27 | 144,255,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | # Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
#
# For example, given n = 3, a solution set is:
#
# [
# "((()))",
# "(()())",
# "(())()",
# "()(())",
# "()()()"
# ]
class Solution(object):
def generateParenthesis(self, n):
"""
:t... | [
"shah.kevi@husky.neu.edu"
] | shah.kevi@husky.neu.edu |
9616bdcb9ebc14028225fac131ca2aa6763cfb91 | 9e3205c13404f6bf2b36c96af7d0a9d2532596a0 | /cart_pole/dqn.py | a37de3641dfad0cf9d3e7d3c578e6d83d554f348 | [] | no_license | mminhou/openai | fce2da3e1b49da0b99a55087cc97e8890fb5a1f7 | 05418b83218f4f2b29d70deef4a41cde7ad6941e | refs/heads/master | 2020-03-11T07:36:33.644382 | 2018-04-17T07:04:13 | 2018-04-17T07:04:13 | 129,861,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | import numpy as np
import random as random
from collections import deque
from cnn_tensorflow import CNN
# See https://www.cs.toronto.edu/~vmnih/docs/dqn.pdf for model description
class DQN:
def __init__(self, num_actions, observation_shape, dqn_params, cnn_params):
self.num_actions = num_actions
self.epsil... | [
"exit19093@gmail.com"
] | exit19093@gmail.com |
846876364bc01fda2b044a0b561e2709369cd56c | 268d9c21243e12609462ebbd6bf6859d981d2356 | /Python/python_stack/Django/BeltReview/main/apps/books/models.py | fddd59aa3b548da3b7fdfa2c3d3484b1350a19f0 | [] | no_license | dkang417/cdj | f840962c3fa8e14146588eeb49ce7dbd08b8ff4c | 9966b04af1ac8a799421d97a9231bf0a0a0d8745 | refs/heads/master | 2020-03-10T03:29:05.053821 | 2018-05-23T02:02:07 | 2018-05-23T02:02:07 | 129,166,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | from __future__ import unicode_literals
from django.db import models
from django import forms
from django.core.exceptions import ValidationError
# Create your models here.
class UserManager(models.Manager):
def basic_validator(self,postData):
errors={}
#validate password
if len(postData['password']) < 8:
... | [
"dkang417@gmail.com"
] | dkang417@gmail.com |
b96c59645e8a2d9a6c3fc4d83acb6984da618953 | dfe50c0041a5dc23b63ea39369d115a8b74c56f0 | /array_167.py | e396760dac8bbbcd6d360a390f08503b38081aa2 | [] | no_license | cainingning/leetcode | 1c624caf6330d2e1af4835741e5f0748c3f9513b | 09b7121628df824f432b8cdd25c55f045b013c0b | refs/heads/master | 2021-07-07T14:28:09.207501 | 2019-02-22T08:48:55 | 2019-02-22T08:48:55 | 142,756,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class Solution:
def twoSum(self, numbers, target):
"""
:type numbers: List[int]
:type target: int
:rtype: List[int]
"""
l_index = 0
r_index = len(numbers) - 1
while l_index < r_index:
if numbers[l_index] + numbers[r_index] == target:
... | [
"499814159@qq.com"
] | 499814159@qq.com |
79e2b660e292e440ae352f3b6b11c484f59e6ad4 | ad00e2f10ae396a02ded81d90e31e90a8999fbc8 | /kaggle/DigitRecognizer/tensorflow-cnn2.py | c32ba7704e1c74578cabd9e8f115fde48eed94a7 | [] | no_license | yixiaoyang/SmallData | a8c2f8525cf12b6c2e719c5aca0dee1580ce7215 | 6643ac67a150e1d7fdb924c8dde501f8c72fd40f | refs/heads/master | 2021-01-17T09:55:31.630233 | 2020-04-02T18:19:26 | 2020-04-02T18:19:26 | 59,277,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,728 | py | # coding: utf-8
#!/usr/bin/python
import tensorflow as tf
import pandas as pd
import numpy as np
import time
class DigitsModelCNN(object):
def __init__(self):
self.train_input = tf.placeholder(tf.float32, shape=[None,784])
self.train_out = tf.placeholder(tf.float32, shape=[None,10])
self.k... | [
"hityixiaoyang@gmail.com"
] | hityixiaoyang@gmail.com |
12d896a3fb16ddce598c3c26b8715790f3f41155 | bb7ee0c29834864964a445cc7cc68a742937791c | /file_crawler_w_yts_downloader.py | 667d19c6ff4a1df526fb6ea31d1ddfe5ce354fed | [] | no_license | quadcube/Automated-Yify-Subtitle-Downloader | 6a5ef01f70cb44e77f602bf8fac529c9f3436cf1 | 2254fccdebe61fa2871123267556b11cd75bb4c7 | refs/heads/master | 2020-08-23T08:38:44.358378 | 2020-04-12T14:18:36 | 2020-04-12T14:18:36 | 216,580,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,176 | py | import os
import re
import urllib
import logging
import requests # pip install requests
from zipfile import ZipFile
from html2text import HTML2Text # pip install html2text
log_path = "/Users/quadcube/Project/Subtitle Tool"
log_name = "file_crawler_w_yts_downloader"
logging.basicConfig(level=logging.INFO, format="%(asc... | [
"noreply@github.com"
] | quadcube.noreply@github.com |
7e0772e81bc42eb837cd3dce54f0f187bcad8970 | 3505132210ee8e48c2f216400aed6c2478075a86 | /feature_selection/find_signature.py~ | e0d9df6158e852a573058dd3eaff86b9c629a9bd | [] | no_license | yutsai84/Enron_POI_identifier | 7610da2403a63857c3963977096fef9565a95b3f | 03a27f997641fd97eaa78aec446b9b3704fd15df | refs/heads/master | 2019-04-03T12:10:48.198921 | 2018-04-23T02:47:28 | 2018-04-23T02:47:28 | 66,225,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | #!/usr/bin/python
import pickle
import numpy
numpy.random.seed(42)
### The words (features) and authors (labels), already largely processed.
### These files should have been created from the previous (Lesson 10)
### mini-project.
words_file = "../text_learning/your_word_data.pkl"
authors_file = "../text_learning/yo... | [
"yuchengtsai84@gmail.com"
] | yuchengtsai84@gmail.com | |
2e2d00ecfeb31b0168a0130af2aa68e6f2967de9 | aa245f4e900ab0f27eee9b0fb2d7c9f7d4172269 | /tests/test_utils.py | 5c5bd201679fb0fdf8b3403da887b2dcab97dcbe | [
"MIT"
] | permissive | Vetrovec/chainee | ed4edd4e92637b29fcf5ff0493de6f6983e66e98 | 3a1a300f86ad8aeb385d8de7f766dd035c039f04 | refs/heads/master | 2022-04-05T13:54:38.804711 | 2020-02-01T14:11:16 | 2020-02-01T14:11:16 | 235,657,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,992 | py | from unittest import TestCase
import chainee.utils as utils
class TestUtils(TestCase):
def test_is_hex_string(self):
self.assertTrue(utils.is_hex_string("AbCdeF1234567890"), "is hex")
self.assertFalse(utils.is_hex_string("abcdefg"), "is not hex")
def test_validate_private_key(self):
... | [
"stepan.vetrovec@gmail.com"
] | stepan.vetrovec@gmail.com |
051bf23137383141aa82658c92056367cacb34f9 | d5c159e43758e5bee418a75cbb856ff2bbd9e285 | /bitcoinexp/routing.py | 586038d988de0a21eb789a7c4e7609f61940d059 | [] | no_license | okcdbu/bitcoinexperiment | b2b1ab3f54de12fb215be890cf6f4d587bcaa146 | 46af6018210fddc64464a4a867540efc894b5b01 | refs/heads/master | 2023-05-24T06:33:43.703070 | 2021-06-08T08:11:19 | 2021-06-08T08:11:19 | 350,988,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from flask import Flask, render_template
from bitcoinexp.trading import get_chart_data, run
from flask_socketio import SocketIO
import threading
app = Flask(__name__)
socketio = SocketIO(app)
thread_lock = threading.Lock()
@app.route("/")
@app.route("/chart")
def chart_visualization():
return render_template('ch... | [
"okcdbu@gmail.com"
] | okcdbu@gmail.com |
f23488ded619c675fe870811001ad1b85b57c931 | 4eaf9f8ef3eb2addf6a4fb0a6bc4f41b8584bbc6 | /Week10/src/button.py | 626572ee8c47c89608c588dd40fe26a8514f7b33 | [
"MIT"
] | permissive | Kids-Hack-Labs/Winter2021 | 3d6afd99ae0c77ae7a9767d08c6f89b9e92da34e | 4c66d5cf05045d2724db2393a0c2c581f314f903 | refs/heads/main | 2023-04-01T13:45:45.200124 | 2021-04-07T04:32:14 | 2021-04-07T04:32:14 | 329,418,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | from pygame import Color, Rect, Surface
import pygame.mouse as pm
from src.text_generator import TextGenerator
class Button():
STATES = ("NONE","OUT","HOVER","DOWN","UP")
def __init__(self, button_text, text_info, button_info, func):
self.colours = {Button.STATES[1]:button_info["out"],
... | [
"hercules.diascampos@kidshacklabs.com"
] | hercules.diascampos@kidshacklabs.com |
3e4331ea4515d8ab9a244201033c44ae2211e3db | d4cd2476f8fa8a7d94e183a68bd0678971310c5b | /checkio/06_Ice_Base/06_IceBase_04_FunnyAddition.py | 9030b3fb8d1063f001b7c9e2d024d3d76144968e | [] | no_license | gwqw/LessonsSolution | b495579f6d5b483c30d290bfa8ef0a2e29515985 | 0b841b1ae8867890fe06a5f0dcee63db9a3319a3 | refs/heads/master | 2020-07-05T19:15:53.758725 | 2019-10-01T11:34:44 | 2019-10-01T11:34:44 | 202,744,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def checkio(data):
"""The sum of two integer elements"""
return sum(data)
if __name__ == '__main__':
assert checkio([5, 5]) == 10, 'First'
assert checkio([7, 1]) == 8, 'Second'
print('All ok')
| [
"="
] | = |
c78554bfaf8bee6f13777307c2c97139d339f973 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02390/s457532968.py | 390a81631bac8de1e3a93db961d2ef9a82cb8ed1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import sys
line = sys.stdin.readline()
inp = int(line)
h,mod = inp//3600, inp%3600
m,mod = mod//60, mod%60
s = mod
print ("%d:%d:%d" % (h,m,s)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d6ae632a35692b47fe5e5803717396272bfc1bd | ba84b4776efbfd114be6e489e206c61bcc93cf1d | /ScoreChanger.py | bcee5df8c7cda74ef7a3328cc951dd1ab5fdc825 | [] | no_license | ReiraH/Pinball-Machine | 5ad94267e3d4eb642aa03e4d4606e05cc6417431 | c4baee924bb8655a1464f6eebd0df0887bf95615 | refs/heads/master | 2020-03-21T05:20:39.219845 | 2018-06-21T11:03:06 | 2018-06-21T11:03:06 | 138,156,415 | 0 | 0 | null | 2018-06-21T11:03:07 | 2018-06-21T10:35:23 | null | UTF-8 | Python | false | false | 8,332 | py | import RPi.GPIO as GPIO
from time import sleep
class ScoreChanger(object):
HIGH = 0
LOW = 1
digitOnes = 24
digitTens = 23
digitHundreds = 15
digitThousands = 18
A = 0
B = 0
C = 0
D = 0
active = False
GPIO.setmode(GPIO.BCM)
GPIO.setup(digit... | [
"noreply@github.com"
] | ReiraH.noreply@github.com |
2e77e1bf2950b9ae5d4e921023ac91b6785e05f8 | 7474675ad1a50bd41792ef9c4de09924acbc8f17 | /KNN/iris.py | 85f0cf2fd3a28cafc5e979950791eb122826a8a8 | [] | no_license | itsmefarhan/MachineLearning | 5f2b756e31ab199701ac8f223c420634a0d04478 | 6df397f583222575ac9035350e76f6a9b9c0a2eb | refs/heads/master | 2020-09-05T09:24:56.605009 | 2019-11-11T20:07:39 | 2019-11-11T20:07:39 | 220,056,068 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import pandas as pd
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import confusion_matrix
dataset = load_iris()
# print(dataset.keys())
# print(dataset.data)
X_train, X_test, y_train, y_test = train_t... | [
"farhan.farooq@live.com"
] | farhan.farooq@live.com |
1c9cb402c43d4cdc6747cd94f70df60e1fb424bf | 4276667227d01d225bcc083e9d82439d52f6cd6c | /10.io_code/4.serialization.py | 8781bf10dcf222c4764dafc10d9adcaa30f0cc42 | [] | no_license | JianxiangChan/python_learning | 82e24498e96369c1a25c7cb557e80f7baf5e7961 | 488e6f6cb0591b8fce9261b072346c745b19cb2d | refs/heads/master | 2020-06-05T22:01:54.429817 | 2019-12-16T14:40:14 | 2019-12-16T14:40:14 | 192,557,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | # -*- coding: utf-8 -*-
import pickle
d = dict(name = 'bob', age = 20, score = 88)
print(pickle.dumps(d)) #use of dumps
with open('dump.txt','wb') as f:
pickle.dump(d,f)
with open('dump.txt','rb') as f:
d = pickle.load(f)
print(d)
import json
d = dict(name = 'bob', age = 20, score = 88)
print(json... | [
"15651898806@163.com"
] | 15651898806@163.com |
b8a62fa93f2532714aacb95518a96010cd6afe03 | fffa7b13491deadfc649dfd035099ef764d8d303 | /api/tests/mathematical_object_detail.py | 3ecfae51fd020c715c1a8504027fcc57a26800f4 | [
"MIT"
] | permissive | Gawaboumga/OEMS | 3b12b8bebbe4b29716e8be4e22034ec394af36da | 1e60fa1f350f4cf1ca2e48072e0b4228eeb15024 | refs/heads/master | 2022-12-14T11:15:55.797241 | 2019-01-22T10:22:42 | 2019-01-22T10:22:42 | 147,358,167 | 0 | 0 | MIT | 2022-12-08T01:26:59 | 2018-09-04T14:20:58 | Python | UTF-8 | Python | false | false | 4,231 | py | from rest_framework import status
from rest_framework.test import APITestCase
from django.test import override_settings
from django.urls import reverse
from oems.settings import TEST_MEDIA_ROOT
from api.models import MathematicalObject
from api.tests import utils
@override_settings(MEDIA_ROOT=TEST_MEDIA_ROOT)
class M... | [
"yourihubaut@hotmail.com"
] | yourihubaut@hotmail.com |
dc6217c8436382f7a1d6ad3ae9face803e235091 | 931f1a920913dc21ea6cb5b4b591e05259abf490 | /input_files/create_text_hdfs.py | 414999ed6bf77e3288c4a4c21af9200eeb0fa107 | [] | no_license | cgeroux/big_data_benchmark | f7bf3dbce55ae234c4548704f74710fa2f57cfef | b612665d0bda6e20283148fd9ba7be398f8d24d2 | refs/heads/master | 2021-01-10T13:34:19.043658 | 2017-10-12T15:24:04 | 2017-10-12T15:24:04 | 53,532,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,341 | py | #!/usr/bin/env python
import random
import optparse as op
from subprocess import Popen, PIPE,list2cmdline
import os
def addParserOptions(parser):
"""Adds command line options
"""
#these options apply globally
parser.add_option("-f",dest="forceOverwrite",default=False,action="store_true"
,help="Forces o... | [
"chris.m.geroux@gmail.com"
] | chris.m.geroux@gmail.com |
066a5edb911a9b5069125b1aee9dfad1bbc78dbb | 7d74195bd00cbe8516670c8fe718e983106c9830 | /src/data_types/test_collections_ordereddict.py | ee4fe8c69fee1eec3bc707d6f7b10d39022930d8 | [] | no_license | masa4u/example_python | 7ab3d48020855ad493336afcd8d0c02eb3104b2b | 7bdee4cb8e90255b20353f7f95d3e879f6462638 | refs/heads/master | 2021-01-18T14:10:56.539659 | 2017-03-28T12:52:08 | 2017-03-28T12:52:08 | 30,511,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2}
from collections import OrderedDict
print OrderedDict(sorted(d.items(), key=lambda t:t[0]))
| [
"masa4u@gmail.com"
] | masa4u@gmail.com |
ab9064ed0cf5cdd9c40ea7d1980c735a9bd402c3 | ed98cf758a1aebb7a4415502a3672dcd5d480f91 | /app/email.py | 24033cf66ce2aa9d49a15899dba09de47e85f155 | [
"MIT"
] | permissive | eclectic-coding/microblog | 541a4e7c187def2a3511b8d7fc69cddb7e3e3b51 | 7193bb04d3073bb918aeb1e437fd72869555c467 | refs/heads/main | 2023-04-28T01:56:32.835458 | 2021-05-16T18:05:53 | 2021-05-16T18:05:53 | 356,620,088 | 0 | 0 | MIT | 2021-05-16T18:05:54 | 2021-04-10T15:20:27 | Python | UTF-8 | Python | false | false | 940 | py | from threading import Thread
from flask import render_template
from flask_mail import Message
from app import app, mail
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(subject, sender, recipients, text_body, html_body):
msg = Message(subject, sender=sender, reci... | [
"noreply@github.com"
] | eclectic-coding.noreply@github.com |
10a39221f5994440bcf13c5a105678bdd1ad321e | 08f60e7f496e76a4c6d5d8f6b671eb65fe7f4c7e | /env/Scripts/rst2man.py | cf0ea6a096d96e11d05be44d0d3c7949c0e96b1a | [] | permissive | Cell5/nfckey | dca892a0d647a3594fbb9af00615e388a8b54758 | 15a052e4877ad8eb4d71de3c92b2285e3e7d9d57 | refs/heads/master | 2022-11-27T03:45:29.944031 | 2018-11-16T09:38:01 | 2018-11-16T09:38:01 | 156,221,618 | 0 | 1 | BSD-3-Clause | 2022-11-19T01:38:13 | 2018-11-05T13:23:52 | JavaScript | UTF-8 | Python | false | false | 629 | py | #!c:\xampp\htdocs\nfckey\env\scripts\python.exe
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""
import locale
try... | [
"exride@gmail.com"
] | exride@gmail.com |
1f43b2642f2cdbd247d3109f36b3583af0b787b8 | adc53c3aa155a93610261353df13ae0b25393f7a | /src/app/api/files.py | d9c2ebc273e444cc8a6e6769f8eb359a3c004451 | [] | no_license | alvinTaoOps/geofiles-api | fe9b95a63117cbfcceb7e404c0bd7c94b2bedfbe | 66bb1bd09d57f294a40ed8aec13ab58a2234ca6f | refs/heads/master | 2023-07-18T10:52:19.939089 | 2021-04-27T16:55:41 | 2021-04-27T16:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | from typing import Optional, List
from fastapi import APIRouter, status, UploadFile, File, Header, Request
from ..db import files as files_repository
from ..utils.Exceptions import raise_422_exception, raise_401_exception, raise_404_exception, raise_410_exception
from ..utils.http import HTTPFactory
from ..core.valid... | [
"jossefaz@protonmail.com"
] | jossefaz@protonmail.com |
d9a464be1a3be2b144f34de63add4214c3cfc0dd | 6cfc109684e689fd4fba01380f95ebdde567531d | /Lab2/prueba.py | 58c38427b1d982a7c6a10fd06c3ffd5445836209 | [] | no_license | jaoc1811/CI2692 | 83291c70277dbe05dc076f9bffcb5db44a9c9864 | ab185a695c0a7722ccdd8317e4d4130853e9c9ae | refs/heads/master | 2020-03-18T20:32:45.852537 | 2018-05-29T00:58:17 | 2018-05-29T00:58:17 | 131,191,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | from common.base.basic import read_file
from common.base.basic import Random
def mergesort(A):
# Busca la cantidad de elementos del arreglo.
r = len(A)
# Si el arreglo es unitario esta ordenado por definicion.
if 1 == r: return A
# Crea dos nuevos sub-arreglos ordenados.
# L para el sub-arreglo de la izquierd... | [
"jaoc1811@gmail.com"
] | jaoc1811@gmail.com |
b7ba80089f455b58d92760039c26578e86a680f3 | 3b380acf42684aaaa3201c241456e43920a40c1d | /paradeground/units/__init__.py | 19c57c101368292a30f2e9093d01635cbcbbd3f7 | [] | no_license | warp-one/electron | 484245c45a7947f5bbe3b87020b62df74eb884ca | 0147b3ff2e6320147562161ec2c9edea784b4015 | refs/heads/master | 2021-01-24T03:18:24.758276 | 2016-09-28T19:22:11 | 2016-09-28T19:22:11 | 41,637,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,473 | py | from math import sqrt, pi, sin, cos, tan, degrees
from random import randint
import pyglet
from tools import *
from units.behavior import *
from units.behavior import states
from selection import selectiontriangle as st
import settings
class Status(object):
name = "Buff"
def __init__(self, unit):
... | [
"wrschuller@gmail.com"
] | wrschuller@gmail.com |
4d876adb17ed372668e9f24105bb83023429a2af | ef9368cc0b4f1bfad3abae292be5c7677f11a8e4 | /EazyHacks/urls.py | 8cc74321382162d1e9bd6f86e1997887ef30302c | [] | no_license | prnvshrn/EazyHacks | 89fc519c034fb4c8c75ea91c7a83b50ce77d2a63 | 212c66c80de4bf4eb3eb76dda4479abcfe67d873 | refs/heads/master | 2021-09-05T21:26:55.891948 | 2018-01-31T04:36:36 | 2018-01-31T04:36:36 | 115,707,094 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | """EazyHacks URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"prnvshrn@gmail.com"
] | prnvshrn@gmail.com |
4f17a87004d2e33cbb26f6d49b7cb84a0b7ffef9 | 70532360ddfdd8006bf7044c117403ce837cef0a | /code/Rplot.py | cd1f9b2b402c74ca5ecf9502d4eba1665cd10a9b | [] | no_license | wsgan001/campus_wifi_analysis | 09a7944f5019f726682925c8785cdf5f7d8c469a | c470135691ff8faad3cb4755301e4f59389e2c5a | refs/heads/master | 2020-03-10T11:09:05.579870 | 2017-03-03T07:13:57 | 2017-03-03T07:13:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,312 | py | # -*- coding: utf-8 -*-
import fileinput
user = {}
for line in fileinput.input("../data/select/select_a"):
mac = line.strip().split(" ")[0]
user[mac] = True
fileinput.close()
with open("../data/plot/R_trace_all","w") as f:
f.write("mac time dura\n")
for line in fileinput.input("../data/feature/trace_all_statist... | [
"mqiang@splunk.com"
] | mqiang@splunk.com |
2ec70de8b0fa6c526ab26722c4d947d9f7a07da4 | 241c347e5842c19bb298b8422a4bc68e64350d66 | /machine_learner.py | 7fa09bca40979c59a871e5e4fa1155713a8286a7 | [] | no_license | ThePianoDentist/dota_talent_stats | 92956c43356ea8e8d752c15f1294978eff026545 | e2c3d1cec51d1e8b426c804f0331ee1221e3208b | refs/heads/master | 2021-01-23T03:43:12.700928 | 2017-09-29T12:49:54 | 2017-09-29T12:49:54 | 86,113,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | import random
from keras.models import Sequential
from keras.layers import Dense
import numpy
import itertools
seed = 7 # random seed fixed so can reproduce things
numpy.random.seed(seed)
# TODO abstract model stuff away so can literally just give our hero id, and team and enemy ids.
# TODO i.e dont hardcode these ... | [
"jbknight07@gmail.com"
] | jbknight07@gmail.com |
bddd1e68745eb9d0c4be78f83fbe5b77dccf95e0 | bff3b19be6408c671b99a8c08f8faee932460686 | /afnd6.py | 69873feb97141fca01ad456deafbdc69854124d0 | [] | no_license | OrionVi1998/Automatas | 47591e9bb9548674e2a885cc348bf300d0eaafb4 | 3969ad25b66684c635d10138ffd71adf61d21e7c | refs/heads/master | 2023-05-28T01:58:27.042093 | 2021-06-15T22:35:27 | 2021-06-15T22:35:27 | 376,657,207 | 0 | 0 | null | 2021-06-15T22:30:50 | 2021-06-13T23:10:41 | Python | UTF-8 | Python | false | false | 637 | py | grafo = {
0: [(0, "a"), (0, "b"), (1, "a")],
1: [(2, "b")],
2: [(3, "b")],
3: []
}
grafo2 = {
0: [(1, "a"), (2, "a")],
1: [(3, "b")],
2: [(5, "b")],
3: [(4, "a")],
4: [(1, "b")],
5: [(2, "a")]
}
def bfs(start):
queue = [(start, "")]
visited = []
while len(queue) ... | [
"octaviov1998@gmail.com"
] | octaviov1998@gmail.com |
60c21ecdefa93da86c1761960a9774855f951f81 | fab44b6672152764ad965291d645223ccbe6186a | /Undergrad_research(Machine Learning) Project/Machine Learning_undergraduate research project/lab2-part1/debugging2.py | 4e814c85f717f68d4f752899d62cf392491012d2 | [] | no_license | AndanteKim/AP_Archive | 45149c410dcdc8d4f2cd64422091de00f451f34b | bcec25375edc5c2f44598bd9f48a6de49e108d35 | refs/heads/master | 2023-02-23T20:33:08.650315 | 2021-01-28T23:51:23 | 2021-01-28T23:51:23 | 276,733,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/env python
# This script is full of common errors you're likely to run into.
# To fix it, you need to debug it. Look at the error messages, use print
# statements, and trace your code by hand on paper to find and fix the bugs.
# This scripts calculates the fibonacci sequence in four different ways.
# Be s... | [
"54167881+AndanteKim@users.noreply.github.com"
] | 54167881+AndanteKim@users.noreply.github.com |
67539a56c45da689a06a5d0dbec167da20875c44 | 0f85c7bfd4f29bcd856adc316cecc097fda744dc | /tests/test_ensure_db_indexes.py | b76b5876506cd87e0fd1691da623de883de60b0f | [
"MIT"
] | permissive | yandex/yandex-taxi-testsuite | 260f46731c9888a9efcc3372c3d92329f2fb4d56 | 8befda8c13ef58d83b2ea7d0444e34de0f67ac7f | refs/heads/develop | 2023-08-31T23:28:31.874786 | 2023-08-14T16:00:53 | 2023-08-14T16:00:53 | 244,937,107 | 150 | 41 | MIT | 2023-09-13T16:34:07 | 2020-03-04T15:35:09 | Python | UTF-8 | Python | false | false | 2,916 | py | import pymongo
import pytest
from testsuite.databases.mongo import ensure_db_indexes
@pytest.fixture(scope='session')
def mongodb_collections():
return ['sharded_collection']
@pytest.mark.parametrize(
'index_from_yaml, arg_and_kwargs',
[
({'key': 'field'}, ('field', {'background': True})),
... | [
"vitja@yandex-team.ru"
] | vitja@yandex-team.ru |
39b26a09d6fbe8fddb9e0b8211cadb3d9dd28529 | f418f6f3a4f1e6574103b4426150c6a26e233bfe | /criteo/src/xgboost.py | c52aa05e8e393e239ef1a069b3f22698c0755499 | [] | no_license | fengqi0423/hahaha | 495b8e6916cb553ce8dbeb02673b5c41489b93ab | 4bdd96a81eb1165bc0eb05ab41b0f1ac3c9cde8a | refs/heads/master | 2021-01-10T19:23:47.828477 | 2014-09-23T03:30:44 | 2014-09-23T03:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,098 | py | # Author: Tianqi Chen, Bing Xu
# module for xgboost
import ctypes
import os
# optinally have scipy sparse, though not necessary
import numpy
import numpy.ctypeslib
import scipy.sparse as scp
# set this line correctly
XGBOOST_PATH = '/usr/local/lib/libxgboostpy.so'
# entry type of sparse matrix
class REntry(ctypes.S... | [
"feng.qi@hulu.com"
] | feng.qi@hulu.com |
2a200f3a2374864f5dfb04e9acef5ed89b61e21d | 30b3fe3e33c090099f8d86e498b80e70da069822 | /solution.py | 9605a5aca6066e2072a43573499ef3283f88859a | [] | no_license | selvaramkumar/leetcode1451 | 5e967d2b6d89e7ce5c7345dcdbef3478e3fcb20a | bebf87f5beca2aa791fcd8f3b00ae1e6cf87364c | refs/heads/main | 2023-02-07T08:46:21.077083 | 2021-01-05T14:23:29 | 2021-01-05T14:23:29 | 327,020,442 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from collections import OrderedDict
class Solution:
def arrangeWords(self, text: str) -> str:
temp=text.split(" ")
dict1={}
for i in temp:
if not len(i) in dict1:
dict1[len(i)]=i
else :
dict1[len(i)]=dict1[len(i)]+" "+i
res="" ... | [
"sselvaramkumar@gmail.com"
] | sselvaramkumar@gmail.com |
43c10cdae7648e4ba849bdb25a0d0584082480de | a1678f80efe56423d08bea6a2843633b8a81dd34 | /DSALGO_String/firstNonRpeatingCharacterInStream.py | d49f0701ab89e0eff461dd81e21982da2b3f07ca | [] | no_license | NIDHISH99444/CodingNinjas | af60aa93dbfcf050e727949d41201f72973b0608 | b77b652cf0bf9b098ef9da4eff5eaecb7bfeaea5 | refs/heads/master | 2021-05-17T03:50:45.376843 | 2020-05-03T17:25:01 | 2020-05-03T17:25:01 | 250,608,228 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from _collections import deque
def firstNonRepeating(string):
dict=[0]*26
q=deque()
for i in range(len(string)):
dict[ord(string[i])-ord('a')]+=1
q.append(string[i])
while len(q)!=0:
if dict[ord(q[0])-ord('a')]>1:
q.popleft()
else:
... | [
"nidhish99444@gmail.com"
] | nidhish99444@gmail.com |
74b61650487cc870cd8e9dd2cda6ff92a8231e9d | fac2ed23a092fe8c07c30c6542f977e2244d57e3 | /문24.py | bc6d66ba577e4c6c0f17f198a2fd390df6fccb99 | [] | no_license | rhkdgh815/rhkdgh815 | d1fcf9b192ffb8eb1ccc4a2dd3d2d7997342ed8d | 5cb6380ba17fcc1bbffced4d8f0f5aab259ad155 | refs/heads/master | 2023-08-01T23:58:50.459446 | 2021-09-28T05:55:50 | 2021-09-28T05:55:50 | 403,934,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | n1 = int(input())
n2 = int(input())
odd_sum = 0
even_ sum = 0
for i in range(n1+n2+1):
if i % 2 == 1 :
odd_sum += i
else:
even_sum += i
print("짝수:",even_sum,"홀수:",odd_sum) | [
"80893010+rhkdgh815@users.noreply.github.com"
] | 80893010+rhkdgh815@users.noreply.github.com |
3f8ff7bf52aee9a81f937005bb281f95f35481df | 4b5d7d9131cd342d0d54130d217cb10eff7c1bff | /lab4/algorithmTests.py | 904f07e9267a8788aa66254840d2d128f0696911 | [] | no_license | sklaboi/ochrona-danych-laboratorium | 48f8b02d2ab73d764e869c4a3a001088d34134e2 | 7701cc1e29afb2b7b3d8fb0a25a95b7d00d4d61d | refs/heads/master | 2021-05-26T18:10:36.085276 | 2012-04-02T10:22:49 | 2012-04-02T10:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #!/usr/bin/python
import sys
import random
import math
import hashlib
from Crypto.Cipher import DES,AES
import time
des = DES.new("key12345")
des = DES.new("key12345",DES.MODE_CBC)
#encrypted = des.encrypt("secret12")
#print encrypted
aes = AES.new("1234567890123456",AES.MODE_CFB)
encrypted = aes.encrypt("test")
#print... | [
"gwiazdal@volt.iem.pw.edu.pl"
] | gwiazdal@volt.iem.pw.edu.pl |
4f2b19ca6ea2aa053e8a9553366d01288860bf6f | 5ee1c8378e374dd239752bcc79b44bcbbd89559a | /wsgi.py | 3368c2fb6bbe0e361458b3fcc7990de7fce240c8 | [
"Apache-2.0"
] | permissive | mahdikord/kordba | 302bdaf03afddef04c3e9b860c096a8d0f29514a | 20c71f636cfb4e49265c0f7984ac3373cd2e7ba4 | refs/heads/master | 2021-01-10T07:49:14.110378 | 2016-02-07T08:22:08 | 2016-02-07T08:22:08 | 51,240,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,537 | py | #!/usr/bin/env python
import os
def application(environ, start_response):
ctype = 'text/plain'
if environ['PATH_INFO'] == '/health':
response_body = "1"
elif environ['PATH_INFO'] == '/env':
response_body = ['%s: %s' % (key, value)
for key, value in sorted(environ.items(... | [
"devmwheeler@live.com"
] | devmwheeler@live.com |
a95329335b970233b588cd83bb48ba1a20a06e5b | 97e833b79e40f798019e45829d4c3eb91b852438 | /telegraph/appos.py | 0326616f7c814a68bea716949be213b918db56f4 | [] | no_license | AwkwardLiSFan/news-tone | b6069d6abb55b6e4eb8caf38ff27669669d66560 | fd55786991c3c1c4d4cbe3585026b14992bec69f | refs/heads/main | 2023-06-22T10:43:57.793472 | 2021-07-21T10:58:45 | 2021-07-21T10:58:45 | 388,087,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | appos_list = {
"aren't" : "are not",
"can't" : "cannot",
"couldn't" : "could not",
"didn't" : "did not",
"doesn't" : "does not",
"don't" : "do not",
"hadn't" : "had not",
"hasn't" : "has not",
"haven't" : "have not",
"he'd" : "he would",
"he'll" : "he will",
"he's" : "he is",
"i'd" : "I would",
"i'd" : "I had",
"i'll" ... | [
"noreply@github.com"
] | AwkwardLiSFan.noreply@github.com |
7ef0e32c2bc08328f7dda3f11c84b48d28e808b8 | 34096e5f3d6569e3aaee794bf8ccc0b04f2c8c8f | /docusign_esign/models/envelope_transfer_rule.py | 9850e0af941d967df7254ce7324591c2361dd884 | [
"MIT"
] | permissive | hunk/docusign-python-client | 5c96de8a08973fe1744d902b2a3873a7376a62c7 | a643c42c1236715e74eef6fc279a1b29da1b5455 | refs/heads/master | 2021-06-14T06:41:23.298368 | 2020-04-01T05:51:08 | 2020-04-01T05:51:08 | 254,482,059 | 0 | 0 | MIT | 2020-04-09T21:28:23 | 2020-04-09T21:28:23 | null | UTF-8 | Python | false | false | 9,506 | py | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from p... | [
"noreply@github.com"
] | hunk.noreply@github.com |
2b527ae08f8f0e1fc6300048d9138a988209d9aa | 3e3ce865b7746732fe4298435cfe5cb8b23f46e7 | /venv1/bin/easy_install-2.7 | 5fdfe2bb8764ea291ec2e732b2cdb5cb68fd2aab | [] | no_license | siddharth12456/Plivo | ba48735ff1edb655737ed569d65db5619cd7f4b4 | a6bd537b88add841325b88cd953b60b35636ddd4 | refs/heads/master | 2021-07-19T11:46:37.090810 | 2020-04-20T08:16:07 | 2020-04-20T15:46:01 | 132,721,649 | 0 | 0 | null | 2020-04-20T15:46:03 | 2018-05-09T07:52:32 | Python | UTF-8 | Python | false | false | 278 | 7 | #!/home/siddharth/PycharmProjects/PlivoAPI/venv1/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sroy@sentient-energy.com"
] | sroy@sentient-energy.com |
caff9c7cb685bc07ae6b58176aa41c8d83544348 | 9f0a4262c4402201df1cdd5674a679543f4a50b5 | /shaderLibrary_maya2017/resources/__init__.py | 05e522a865f16bd93dd2591fa2f1e5a4d20967ec | [] | no_license | subing85/subins-toolkits | 611b6b3b3012ccb023096f6e21d18d2bda5a534b | d02af1289ec3ee5bce6fa3d78c134a8847113aa6 | refs/heads/master | 2022-07-12T17:19:57.411454 | 2022-07-01T20:37:16 | 2022-07-01T20:37:16 | 168,826,548 | 11 | 2 | null | 2022-07-02T01:03:34 | 2019-02-02T11:51:25 | Mathematica | UTF-8 | Python | false | false | 1,087 | py | import os
from shaderLibrary_maya2017.utils import platforms
CURRENT_PATH = os.path.dirname(__file__)
MODULE = platforms.get_tool_kit()[0]
def getInputPath(module=None):
return os.path.join(
CURRENT_PATH, "inputs", "{}.json".format(module)
)
def getIconPath():
return os.path.join(CURRENT_PATH,... | [
"subing85@gmail.com"
] | subing85@gmail.com |
f34988ec1779777e353d26f3d66f85407eee93b7 | 91ad7dcbb7db4066e1bbcba01affa0a46eba1439 | /Plotter.py | b44ae256fcf4ed3cc63627793a4930bcdab84531 | [] | no_license | dcakagi/PnPSolver | 54e4c6f79037989e309aefe7debe670fee36ef5a | d77344034497cdd47e4605cfa21df7c10dbd729b | refs/heads/master | 2023-07-24T07:57:28.141307 | 2021-09-03T20:54:46 | 2021-09-03T20:54:46 | 393,401,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,830 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.offsetbox import AnnotationBbox, TextArea
class ErrorPlotter:
def __init__(self, plots: list, error_window_size: int, error_units_: str, time_units_: str, secondary_axes: bool=False):
'''
Class to be used for plotting errors. Defaul... | [
"dcakagi@gmail.com"
] | dcakagi@gmail.com |
334f16eca95422f71e3a8b64fd17fd7ac3057b10 | da6df71f4bc31fae2874285ecfe688540d724910 | /pipelines/communication.py | 7fed316af16a903c6e0f2902402af1aa48c2a015 | [] | no_license | joseilberto/dog_bark_detection | 67be5551e1735e9bc03f3dcd4db60388f7e8af05 | 1ff993bc703727c38ed0463e546e539763c869e7 | refs/heads/master | 2023-03-11T01:32:42.215274 | 2021-02-20T22:29:52 | 2021-02-20T22:29:52 | 236,839,762 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from os.path import basename
import email
import numpy as np
import smtplib
import ssl
def create_body(files, message):
"""
Create the body of the e-mail fro... | [
"ilbertofjunior@gmail.com"
] | ilbertofjunior@gmail.com |
bac58cc9c2e873327fcf4652f7150e09e1f24dbc | 9ee12b1d04a458ab84a042acc317c483bf10b53e | /TinyImagenet/keras_alexnet.py | e447fe8fade498b338e4828802796951bcbea1cb | [] | no_license | cvasfi/light-cnns | c938aa952444894575253e1885bcea2d1b09c68c | e181e6aac1aac3e499c5318143b3fffba54186e7 | refs/heads/master | 2021-01-21T10:49:22.172196 | 2017-10-19T19:11:52 | 2017-10-19T19:11:52 | 101,991,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | from __future__ import division
import six
from keras.models import Model
from keras.layers import (
Input,
Activation,
Dense,
Flatten
)
from keras.layers.convolutional import (
Conv2D,
MaxPooling2D,
AveragePooling2D
)
from keras.layers.merge import add
from keras.layers.normalization impor... | [
"yunus.ec@gmail.com"
] | yunus.ec@gmail.com |
64ebd8dc8dee1409f7462da7e97b36589440ca93 | 897d82d4953ed7b609746a0f252f3f3440b650cb | /evening/20200615/demo3.py | fb8a2467fdd7cd54f0e4530ae9c506eeaa9352c6 | [] | no_license | haiou90/aid_python_core | dd704e528a326028290a2c18f215b1fd399981bc | bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1 | refs/heads/master | 2022-11-26T19:13:36.721238 | 2020-08-07T15:05:17 | 2020-08-07T15:05:17 | 285,857,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | class GParent:
pass
class Parent(GParent):
def __init__(self,atk,hp):
self.atk = atk
self.hp = hp
def attack(self,target):
pass
def damage(self,value):
pass
#玩家攻击敌人 敌人受伤,还可能死亡
class Player(Parent,GParent):
def attack(self,target):
print('黑虎掏心')
... | [
"caoho@outlook.com"
] | caoho@outlook.com |
3eee818cb29ce487b694fea16caba653f9d645ec | 629f909ebe19b22d068ec1a4719c9eb303ed2826 | /python_iugu/request/plan_request.py | 9d483102bd3f8d101761bc3b7ad17dd17da24c93 | [
"MIT"
] | permissive | guiflemes/python_iugu | f564ce3e653b228a6e71e82f5f26b1b364eb7f76 | e7efca84e76ebd5b99773f4e57a14f991fbcb520 | refs/heads/master | 2023-05-05T05:25:42.631921 | 2021-05-21T18:00:16 | 2021-05-21T18:00:16 | 327,623,059 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from __future__ import annotations
from dataclasses import dataclass
from typing import Optional
from python_iugu import enuns
@dataclass
class PlanRequest:
name: str = None
identifier: str = None
interval: int = None
interval_type: enuns.IntervalType = None
value_cents: int = None
payable_wit... | [
"guilherme@campusinc.com.br"
] | guilherme@campusinc.com.br |
864225aab249cfde9e18603e2f560f35df07377d | acce415d18f324fdcbd2df9d4bfae003c0b6560a | /user/urls.py | 8650a041a0109d2dcf93a0c0ff42c65a91bffd75 | [] | no_license | borsden/kanban | c9b08d34b779975b4cf3b8cc67e0e03f7816d37a | be0bfd22b8af61f78c407025b1706e57e5389ba4 | refs/heads/master | 2016-08-11T20:25:20.803053 | 2016-02-18T05:49:16 | 2016-02-18T05:49:16 | 48,171,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # coding=utf-8
from django.conf.urls import patterns, url
import views
urlpatterns = patterns('',
url(r'^current_user/$', views.CurrentUser.as_view()),
url(r'^update_user/$', views.UpdateUser.as_view()),
url(r'^login/$', views.LoginUser.as_view(), ... | [
"borsden@gmail.com"
] | borsden@gmail.com |
317b8373cde4e8566b57759adc99ca00c1e5885f | d59a459f3b3bccfb6204a3f803fa465ea1297811 | /ipynbhpc/PBS.py | 3895e450292927f8ff6d1597d02e93c764db13c6 | [] | no_license | rainwoodman/ipynbhpc | 90fbce679b5ae5886222b90984f5453aeceefceb | 338973766328d5c83896daec18ae7e81514ae3b8 | refs/heads/master | 2021-01-20T00:58:26.675992 | 2015-05-24T18:46:54 | 2015-05-24T18:46:54 | 34,808,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import subprocess
import numpy
import xml.etree.ElementTree as ET
import re
import time
def submit(string):
pipe = subprocess.Popen(['qsub'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
stdout = pipe.communicate(string)[0]
match = re.match('([0-9]*)\..*', stdout)
if pipe.re... | [
"yfeng1@berkeley.edu"
] | yfeng1@berkeley.edu |
21d9a316ce6cfdf96f3a9f5edaacf77894c81bf4 | e9d52dcf101aea0327c6b0d7e5244c91dfd62cf6 | /spexy/adv/samples/simple.py | e2df8a641ff75635616d8894582fa8f83e6bf7dd | [] | no_license | drufat/spexy | 6eba9f44a5539245486cd4ef8fefd24bdb7ade6a | 53255009c1830501986afbf6688142ddefe17b9a | refs/heads/master | 2021-09-18T19:51:47.313946 | 2018-07-19T05:09:02 | 2018-07-19T05:09:02 | 100,453,374 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | # Copyright (C) 2010-2016 Dzhelil S. Rufat. All Rights Reserved.
from sympy import sin, cos
def V(x, y):
return (-sin(y), sin(x))
def p(x, y):
return -cos(x) * cos(y)
| [
"drufat@caltech.edu"
] | drufat@caltech.edu |
1e5c3dec3126452c25e701e2cef0ece2a6572176 | 7556fc49cef701861ce456c962181c8a4d8522ce | /employee/models.py | e51481d0fb408a74056a647258631f3c29935d3c | [] | no_license | km-pythoner/job_market_cms | 7fa708e6bc0f14ac0936e863c971e2e62c0f6ed0 | 2e18f8822f6938098bcff7317dd9350d4d837540 | refs/heads/master | 2021-09-09T19:50:54.551274 | 2018-03-19T10:05:52 | 2018-03-19T10:05:52 | 125,135,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from datetime import datetime
from django.db import models
from users.models import UserProfile
from employer.models import JobInfo
class EmployeeInfo(models.Model):
pass | [
"jj19901030"
] | jj19901030 |
2694809627d8fe84439bbd9857953fd90a2c72a8 | 8a62bbff9378187a898f336532bb49de18cb88e4 | /2020-phone-bpe-attention/scripts/create-phone-bpe-lexicon.py | 9cc4eba43457fe7795861e94c644ea94d3b34626 | [] | no_license | rwth-i6/returnn-experiments | e2cdecb67febe646d702282ced8c290f1dd8edd0 | a46021329c030af361e0becb25ea92afca9610ce | refs/heads/master | 2023-06-08T08:56:11.891782 | 2023-05-30T12:46:45 | 2023-05-30T12:46:45 | 67,426,132 | 159 | 52 | null | 2023-05-30T12:46:46 | 2016-09-05T14:07:48 | Python | UTF-8 | Python | false | false | 13,569 | py | #!/usr/bin/env python3
import xml.etree.ElementTree as ET
from xml.dom import minidom
import codecs
from returnn.LmDataset import Lexicon
from argparse import ArgumentParser
"""
create Lexicon, given bpe Vocab, lexicon and applied phones_bpe
"""
def convert(string_num):
if isinstance(string_num, str) and string_n... | [
"thomas.ng@rwth-aachen.de"
] | thomas.ng@rwth-aachen.de |
6bcb9db3729f35fb8aec94089af0cb9395cbe3a6 | df513473a78ec2714025a43d673988e73d89dc9e | /IAM/detach_policy_group.py | 5b6926588309e84ec94664993b1c106c3aa09ec9 | [] | no_license | sgouda0412/AWS-With-Python | dfcef51c07696d13a46c63236cfcd130b4916256 | b3abfa7d324e17d22f81c7e53afc34df6f5d484c | refs/heads/master | 2023-03-17T18:18:49.692190 | 2020-03-04T13:35:48 | 2020-03-04T13:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import boto3
#detach policy from group using client
iam = boto3.client('iam') # IAM low level client object
response = iam.detach_group_policy(
GroupName='group1',
PolicyArn='arn:aws:iam::aws:policy/AdministratorAccess'
)
print(response)
#detach policy from group using resource
iam = boto3.resource('iam') #re... | [
"mogal.mahesh33@gmail.com"
] | mogal.mahesh33@gmail.com |
2ed8d0c47dc05eb342a5011b55fde809be7ece77 | b038128c5ecd477403f1396ae7f5be29d6ade668 | /dataset/dataset.py | 25e313a0f9865d75871717ce8397d6f655d704c2 | [] | no_license | BAfsharmanesh/Kaggle_Indoor_Location_Navigation | 82fe8768b0a81f2bbc6e4a7c4d7d4f204f686b33 | e9379061c0a0cda1a02f9e373c967a4c48f487f6 | refs/heads/main | 2023-04-30T19:36:38.876825 | 2021-05-16T21:48:41 | 2021-05-16T21:48:41 | 367,980,247 | 0 | 0 | null | 2021-05-16T20:40:34 | 2021-05-16T20:36:18 | Python | UTF-8 | Python | false | false | 5,444 | py | import pandas as pd
from icecream import ic
from pytorch_lightning import LightningDataModule
from torch.utils.data import Dataset, DataLoader
from sklearn.preprocessing import StandardScaler, LabelEncoder
from sklearn.model_selection import StratifiedKFold #,StratifiedGroupKFold
from config import Config
from utils.ut... | [
"noreply@github.com"
] | BAfsharmanesh.noreply@github.com |
6ed312e707abaa007c3cd93e7fdc80401b65f139 | f736f2392c6de4b8c6cd9d9bdff6de5c05d4a278 | /blog/coments/api/serializers.py | 5aa0958b3467c1a910fc2f7c2bcccf44198519e5 | [] | no_license | ricardocastilloisc/cursoDjangoBlog | a36f20021f72dc1b7b819c4f863e649707b3736a | 13bac0f3811e7fafc3f21ed979b53cf36aae6d91 | refs/heads/main | 2023-06-27T19:33:26.977679 | 2021-07-26T14:59:26 | 2021-07-26T14:59:26 | 389,442,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from rest_framework import serializers
from coments.models import Comment
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = ['id','content', 'created_at', 'user', 'post'] | [
"ricardocastilloisc@gmail.com"
] | ricardocastilloisc@gmail.com |
be8bec20e05cbf5aa26e1cb824b5be2ffe259628 | 541cfbacae0805d6ef61041a23b9854c15be0d55 | /join_cases.py | 6c9a2063c9bf65acaa6e1515742da7e32673e713 | [] | no_license | qdouasbin/postproc_explo_airbus | 1b37444fe577d8527e71b35a580a2638c4c5b8fe | 64f102973bb3f13660c7e0ab557fa0ffe793c07a | refs/heads/main | 2023-06-05T11:15:11.673524 | 2021-07-01T10:29:29 | 2021-07-01T10:29:29 | 375,285,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import os
import glob
import numpy as np
import pandas as pd
def join_subdirectory_csv_files(prefix, extension):
"""
1. Seek for csv files according to prefix.extension rule
2. concatenate all files
3. drop duplicates
4. re-index
5. dump clean concatenated file
"""
# Find all csv file... | [
"qdouasbin@cerfacs.fr"
] | qdouasbin@cerfacs.fr |
77576f4bd93940f460a967a46375dcb841c71094 | 4a418036130cb63caa503719b4162cce9753459b | /nemo/collections/nlp/modules/common/transformer/transformer_modules.py | 63998217f09b5eaa659f8bbb583c263a6befd154 | [
"Apache-2.0"
] | permissive | kssteven418/Q-ASR | 89a7dac24d74556453e7b54b26289fd1466070c4 | aa1ec2ef78fd7606f8f365dfe3e66691a0e48178 | refs/heads/qasr | 2023-08-05T15:43:42.493513 | 2021-10-11T20:06:53 | 2021-10-11T20:06:53 | 353,027,973 | 33 | 1 | Apache-2.0 | 2021-03-30T17:33:26 | 2021-03-30T14:20:56 | Jupyter Notebook | UTF-8 | Python | false | false | 8,624 | py | # Copyright 2018 The Google AI Language Team Authors and
# The HuggingFace Inc. team.
# Copyright (c) 2020, NVIDIA CORPORATION. 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 Lice... | [
"noreply@github.com"
] | kssteven418.noreply@github.com |
7cd9fa50c093dbb5c2b3d3496f38b231a56fb61e | 7ed70a9ee30990c5a195ddc96ebb8b3c174d4f6d | /hello/world.py | 0b79d944ce10636eccb90edcaae841f2818cfaa7 | [] | no_license | greenwell0912/helloworld-scripts | f69eee8462d226d3fe4286826832b4e0de8b2d9c | e75ed883ee0066ae6052b8e875aecbd6e1a079a0 | refs/heads/master | 2020-03-10T20:17:01.811318 | 2018-04-15T05:06:34 | 2018-04-15T05:06:34 | 129,567,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
print("hello world!")
if __name__ == '__main__':
main()
| [
"hiroki6357@gmail.com"
] | hiroki6357@gmail.com |
87990ee7c013adfed4d8152d526bab78f47feee2 | 9550ce4a80169d21b556b22679a9462f98438e32 | /app/urls.py | 32f3b1ab973c04cbcb9ce11ea3ea6d0850315945 | [
"Apache-2.0"
] | permissive | erics1996/questionnaire_django | 87cc44bd745eb810861349effc126ed3dfbd6508 | 1006c61eba1e9efec0801299938eb13c16a0b292 | refs/heads/master | 2022-12-15T04:47:39.042594 | 2020-09-02T17:34:33 | 2020-09-02T17:34:33 | 284,580,189 | 0 | 0 | Apache-2.0 | 2020-09-02T17:34:34 | 2020-08-03T02:02:20 | Python | UTF-8 | Python | false | false | 300 | py | from django.contrib import admin
from django.urls import path, re_path
from .views import backend
urlpatterns = [
path('', backend.IndexView.as_view()),
re_path('survey/(?P<pk>\d+)/', backend.SurveyDetailView.as_view()),
re_path('(?P<pk>\d+)/download/', backend.DownloadView.as_view())
] | [
"erics1996@yeah.net"
] | erics1996@yeah.net |
831c204ef9a4257ac6f36dc2e05da942d2a695c0 | c59aafd22b33cad444d5702f23dd987ab8d29a69 | /src/fcn/__init__.py | 6c283a41bc672f44f0cc7127e5dea94d0a700541 | [] | no_license | pbecker93/DLRC-Unicorns | 9ddd0396f2c7d43de28903d3ddc92a430f59623e | 9a7956e7e401b1330ed62d7120ce73ea0465d8c2 | refs/heads/master | 2021-07-13T15:23:25.011871 | 2017-10-17T08:49:46 | 2017-10-17T08:49:46 | 106,546,851 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from .fcn_vgg import FCN
__all__=['FCN'] | [
"roel.wier@gmail.com"
] | roel.wier@gmail.com |
b93f375f3cedfc8c8ea2bc3dcac1516cf225aaa1 | f7bbc8246a49480f58b5295a14fd0955c32c093c | /Desktop/python trader/backtest data/strategy8.py | 361e722ad7fd1f00cc1ece891ce450ffab5d9c49 | [] | no_license | jobeSoffa/pythonTrader | cf66ea38cc95b1695e0ac66e13a713a81db78e2a | 6ef7b97d6dcb3726f65538bdbe6641bdb92bb6d3 | refs/heads/master | 2020-04-09T04:53:56.805565 | 2018-12-04T09:43:27 | 2018-12-04T09:43:27 | 160,042,254 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | import trade
import candleCompressor
import candle
class strategy8(object):
highestBalance = 1000
highestDrawdown = 0
shouldPrint = True
inBuy = False
totalTrades = 0
winCounter = 0
lossCount = 0
com = 0 #.0001
pip = .0001
otherPip = 1/pip
maxTrades = 30
tempArr = []
... | [
"otisjobe123@gmail.com"
] | otisjobe123@gmail.com |
8f634225763e18482cad60471aa5f39cadda7853 | a00eab2cfe9566641c4c5ec99909490543e734d5 | /BackPropagation/solutions/compare_loss_acc.py | abf09d21879aa494b1838e53417b23696449f17b | [] | no_license | indianvalantine/High-Dimensional-Deep-Learning | 55823c1d80ffee2e50bc20fcdf24f24cc6de8c14 | 47ee6263f40496e7ab5f6a030508ecd531732cb5 | refs/heads/master | 2022-12-27T21:00:28.090851 | 2020-09-28T14:04:44 | 2020-09-28T14:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | history = keras_model.history.history
fig = plt.figure(figsize=(20,5))
ax = fig.add_subplot(1,2,1)
ax.plot(history["loss"], label="keras", color="red")
ax.plot(history["val_loss"], label="keras_test", linestyle="dashed" ,color="red")
ax.plot(losses, label="numpy", color="blue")
ax.plot(losses_test, label="numpy_test", ... | [
"brendan.guillouet@gmail.com"
] | brendan.guillouet@gmail.com |
a78acddf6eebc59cad1ebc0e8fdaf53ee0ce2702 | 44a7101ae18c84ffa0e3c674763ba7b500937773 | /root/Desktop/Scripts/pyinstaller-1.5.1/bh_sshRcmd/bh_sshRcmd.spec | 66707266787869a8fdd977ad9985b57711fe3880 | [] | no_license | Draft2007/Scripts | cbaa66ce0038f3370c42d93da9308cbd69fb701a | 0dcc720a1edc882cfce7498ca9504cd9b12b8a44 | refs/heads/master | 2016-09-05T20:05:46.601503 | 2015-06-23T00:05:02 | 2015-06-23T00:05:02 | 37,945,893 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 561 | spec | # -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(HOMEPATH,'support/useUnicode.py'), '/usr/local/tools/bh_sshRcmd.py'],
pathex=['/usr/local/tools/pyinstaller-1.5.1'])
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
a.zip... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6925f9d279dd7fc2386a10b7f0527b1c88816f95 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/servicebus/aaz/latest/servicebus/topic/_list.py | 751ddf434b8c609435a955fc4eaa4a17a49bdf38 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 10,902 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e7057bc48d0c58e842a5c16fe3711fae0386968b | 5c534f0a3912ef002834398c765ed1e3f98c9173 | /Quotes/test.py | 1b8164565ecfabfdb0762a61f09b818a5961c220 | [] | no_license | ormanya/Supyiel | 894c2acc7f05683f1cd9101a413f3c93fd69d149 | 77e291c5b73da2e292f6b38ff40aa2b3d70915cb | refs/heads/master | 2023-03-13T13:58:20.944904 | 2023-03-02T16:53:02 | 2023-03-02T16:53:02 | 80,935,297 | 8 | 0 | null | 2022-11-10T18:06:34 | 2017-02-04T17:24:40 | Python | UTF-8 | Python | false | false | 1,871 | py | ###
# Copyright (c) 2008,2012 Kevin Funk
# Copyright (c) 2014-2015 James Lu
# Copyright (c) 2016-2017 Ormanya
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code... | [
"liriel@sekrit.me"
] | liriel@sekrit.me |
e603161e2e56683dbefc6a30f0d9444b0da60f3e | d220e6b1a15dc384567ec30c0d80dcc51566fdac | /app/scrape/reload_series.py | bf0a9a83d7be959a0addde763d2546e2e2feed84 | [
"Apache-2.0"
] | permissive | cs373n/idb | 481c7dae6bdb22bb5955c368b94c32e954fe9062 | 274d843609fc8958d65bfd0c04c90a67acc70ccb | refs/heads/master | 2020-06-25T08:33:17.558044 | 2018-04-12T07:04:12 | 2018-04-12T07:04:12 | 94,237,770 | 2 | 16 | null | 2017-07-21T15:18:44 | 2017-06-13T17:11:10 | JavaScript | UTF-8 | Python | false | false | 5,062 | py | import requests, json, time, datetime, hashlib
from models import db, Series, Event, Character, Creator
class MarvelRequest():
def __init__(self):
self.publicKey = ""
self.privateKey = ""
self.timeStamp = str(datetime.datetime.utcnow())
self.baseurl = "http://gateway.marvel.com/v1... | [
"saketsingh2018@gmail.com"
] | saketsingh2018@gmail.com |
c23b86d447f850e4bd75066d30e311f702ae67d0 | 9b92b21f39870e1b8a0de6bc94ff08a66690b1ea | /sources/webapp/SyncronisationDAO.py | bf64956c5930f3244b62286e3d037dc75d5ef9a1 | [] | no_license | sebastiansIT/HTML5Podcatcher | ac5bb3cf128d4785f478b43e23ea57c62cfadce0 | f1d9f446df0333eec3ef59219b28d683b7f17c5f | refs/heads/master | 2023-06-25T19:01:39.039093 | 2021-05-08T05:51:47 | 2021-05-08T05:51:47 | 10,554,866 | 8 | 1 | null | 2023-03-04T03:04:49 | 2013-06-07T17:10:11 | JavaScript | UTF-8 | Python | false | false | 1,925 | py | import sqlite3
import datetime
import SyncronisationModel
import cgi, cgitb
cgitb.enable()
class Sqlite3DAO:
def __init__(self, fileName):
self.dbFileName = fileName
def DataBaseInitialisation():
connection = sqlite3.connect(self.dbFileName)
cursor = connection.cursor()
sql = "CREATE TABLE SyncPoints(I... | [
"sebastian@human-injection.de"
] | sebastian@human-injection.de |
f5d215c564dfad6c96246bd529b6f6afd273eafa | beac917ee396ffb33c4f13d2ceff188c3bf5148e | /app/evaluation.py | bdc7f21c84bae0c079063d2953eca979513fa410 | [] | no_license | Boj3alex/rpn-calculator | 75532b25b312feed163e7f0bf1e45887c35ad417 | 705c21e250a1105ae02ab4e620546e77fd1d805f | refs/heads/master | 2023-01-09T06:50:19.879472 | 2020-08-31T17:46:26 | 2020-08-31T17:46:26 | 290,067,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import re
floating_point_regex = '[0-9]*\.[0-9]*'
def do_operation(element1, element2, operator):
if operator == '+':
return element1 + element2
if operator == '-':
return element1 - element2
if operator == '*':
return element1 * element2
if operator == '/':
return int(... | [
"noreply@github.com"
] | Boj3alex.noreply@github.com |
6e890dcf23489e8e89080c6b65f3762b23bdff4d | 72a22cde6b6ca91255f25a931909502115e4e47c | /Alfred/SwitchLayoutWorkflow/set.py | 4ae6ae60a0486bf6d86b48325f6a942a3ddc711a | [] | no_license | DATADEER/dvorak-mac-setup | 52de6f0062e75981cf6a0c6bc91de92f6095b24a | 2f5d0eb450be9c02fd74285cd526715abe358941 | refs/heads/master | 2020-05-17T08:00:25.408894 | 2020-03-15T11:42:10 | 2020-03-15T11:42:10 | 183,594,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import sys
import json
from os.path import expanduser
from collections import OrderedDict
import subprocess
CHOSEN_PROFILE = sys.argv[1]
CONFIG_PATH = '.config/karabiner/karabiner.json'
home = expanduser("~")
config = {}
with open('{}/{}'.format(home, CONFIG_PATH)) as conf_file:
config = json.load(conf_file, ob... | [
"konto@datadeer.de"
] | konto@datadeer.de |
fd3fd13935a93c20f91027c39f5327878e821fa3 | c72fb291300941c756c4fe4e7bbd443880214367 | /files/models.py | a6c1f3b0d75882226cbe0bbd77c225b9a7167397 | [] | no_license | garywangcn/django-3dshow | 1e4893331b70630cb989b62fb95d58703cc9bc9d | 4dad878ebbf13de89facd73c0d6d57860a01a0df | refs/heads/master | 2021-05-11T10:23:59.516091 | 2018-01-24T09:33:42 | 2018-01-24T09:33:42 | 118,099,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from django.db import models
# Create your models here.
class Document(models.Model):
name = models.CharField(max_length=255, blank=False)
description = models.CharField(max_length=1000, null=True, blank=False)
picture = models.FileField(upload_to='documents/')
modelpackage = models.FileF... | [
"15818651704@163.com"
] | 15818651704@163.com |
6c927fd560a5286ca585f48c71da1ae010982efc | 6bbe5d00cb2084ddd8e2fa6cc6559abe94ef4f12 | /client/tts.py | d999b5d0ff92520dca66c3722cffb2a2d481262a | [] | no_license | stigaro/ttm4115-project-team14 | 8b6cf37d60461a18ef3872c505fbf4182b4cc7d9 | 742bf63e6a2ee4d916cddda05f193247875750cd | refs/heads/master | 2023-04-17T01:36:37.797459 | 2021-05-01T12:57:36 | 2021-05-01T12:57:36 | 357,459,929 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | from stmpy import Machine, Driver
from os import system
from gtts import gTTS
from pydub import AudioSegment
import pyaudio
import wave
class Speaker:
def __init__(self):
self.audio_file_name = "string"
def speak(self, string):
# TTS
tts = gTTS(string, lang="en")
tts.save(self.... | [
"shirajuki00@gmail.com"
] | shirajuki00@gmail.com |
09ee4a21ddc1b92f8f3846d847e7be6be388b97a | a8fd86dce16f7fec7a5f00ecf97270fb7a8243b9 | /phylo3.py | 02e5ff23a7be96c9c780ec7e9b98ff7b8ab5952b | [] | no_license | tomopfuku/mammalian_morphological_clocks | 8a8f68b498297f95b9222843de416912c50e2e3a | 80b3179cb8101ac654e516f71282d7bbba288934 | refs/heads/master | 2022-10-18T02:39:54.477321 | 2017-11-28T17:07:34 | 2017-11-28T17:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,086 | py | PREORDER = 0; POSTORDER = 1
BRANCHLENGTH = 0; INTERNODES = 1
#trying to deprecate this.
class Node:
def __init__(self):
self.data = {}
self.isroot = False
self.istip = False
self.label = None
self.length = 0
self.old_length = 0
self.parent = None
self... | [
"cfukuchi@umich.edu"
] | cfukuchi@umich.edu |
2aa3c4884a4fb9cc6a1dfb40a23627bc7126d8ab | 4e248704293e8b229d51cce077263364a98bb45f | /Lexical_analyzer/train.py | 46c35de8df5855ddcc221f0d83b0e0491e7537a1 | [] | no_license | VincentLee-EN/FibreTextAnalyzer | 0ba5c70c899f2f85aae6180ba75bb1031c6fd15d | 2de3f9d4f18498d24be829e0f9d3a6f2c373a82c | refs/heads/master | 2020-05-16T02:45:42.072795 | 2019-05-02T14:02:52 | 2019-05-02T14:02:52 | 181,429,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | #encoding=utf8
import time
import numpy as np
import tensorflow as tf
from tensorflow.contrib import crf
import Lexical_analyzer.cws.model as modelDef
from Lexical_analyzer.cws.data import Data
tf.app.flags.DEFINE_string('dict_path', 'data/your_dict.pkl', 'dict path')
tf.app.flags.DEFINE_string('train_data', 'data/yo... | [
"2392539432@qq.com"
] | 2392539432@qq.com |
dc0f1debf616d07e130ae2adb13b8209fd2e2f74 | 99afa83eda09cf552466ddf90314cb01d07b166a | /testapp/models.py | c1fa45c2c96048893e614bf9142070231858f126 | [] | no_license | jithinvijayan007/Lithoera | 358c9a6191d6510ac07229e7a92eadd89d70e14f | 33e3639e882f79b12541f92070dad74483fdfa72 | refs/heads/master | 2023-01-05T18:29:37.388869 | 2020-11-02T11:58:27 | 2020-11-02T11:58:27 | 309,316,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
# Create your models here.
class MyAccountManager(BaseUserManager):
def create_user(self, email, username, password=None):
if not email:
raise ValueError('Users must have an email address')
if not username:
... | [
"jithinvijayan007@gmail.com"
] | jithinvijayan007@gmail.com |
21064aaea82657175bb68471f1411164393e0210 | 657c80336bce1cc6158cd349ce208c5e680a4d0d | /contrib/projection/tests/projection/base_projection.py | de53d6895412de112d31a959926d9cdb47b6ef9c | [
"BSD-3-Clause"
] | permissive | Xinmudotmoe/pyglet | b37628618647bf3b1e3d7db28202a5e14c60450c | 144257c365ca85528c6a4c5bed8141e683d7a9b6 | refs/heads/master | 2021-05-29T22:05:40.676643 | 2015-10-24T05:55:49 | 2015-10-24T05:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!/usr/bin/python
# $Id:$
from pyglet.gl import *
def fillrect(x, y, width, height):
glBegin(GL_QUADS)
glVertex2f(x, y)
glVertex2f(x + width, y)
glVertex2f(x + width, y + height)
glVertex2f(x, y + height)
glEnd()
def rect(x, y, width, height):
glBegin(GL_LINE_LOOP)
glVertex2f(x, y)
... | [
"leif.theden@gmail.com"
] | leif.theden@gmail.com |
d811f5d03ae12bdeb567632e2d82b3ecccc87751 | a1e3e7cf1d27b85d9472c6353e7646d37528b241 | /q11.py | 3ea7528239387d3ae6df885be655e4e6ebe1b32f | [] | no_license | osama1998H/standerdLearnd-string | 421148f81c2c604f6c75dac568ff1faeb20922ce | 0af39cd2fd43be45bb54aca2826bc8bf56e399ed | refs/heads/main | 2023-09-01T04:21:52.499680 | 2021-05-15T19:54:50 | 2021-05-15T19:54:50 | 365,533,408 | 0 | 0 | null | 2023-08-29T08:31:40 | 2021-05-08T14:21:53 | Python | UTF-8 | Python | false | false | 325 | py | string = input("enter the string: ")
def del_odd(string: str)->str:
new_string = ""
string = [i for i in string]
for i in string:
if string.index(i) % 2 != 0:
string.remove(i)
for i in string:
new_string += i
return new_string
new_string = del_odd(string)
print(new_str... | [
"osamamuhammed555@gmail.com"
] | osamamuhammed555@gmail.com |
03a7b76aa472ee4f249b294ee548e8d4b9c4d794 | a923a44d3c4815f645ca2ba84f973083c5dc29a1 | /audio.py | 7022ffd8026fa3ee5f185d610030341c99efd1f5 | [] | no_license | unparalleled-ysj/T2-TF2 | 49ca50fe1e844b64c75d91a22d294b83c7c449a9 | 5c0c22a569c68d6f63648c5f545fd78ffb261033 | refs/heads/master | 2022-11-13T17:20:33.963871 | 2020-07-06T04:15:52 | 2020-07-06T04:15:52 | 277,436,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | import librosa
import librosa.filters
import numpy as np
from scipy import signal
from scipy.io import wavfile
num_mels = 80
n_fft = 1024
sample_rate = 16000
hop_size = 200
win_size = 800
preemphasis_value = 0.97
min_level_db = -120
ref_level_db = 20
power = 1.2
griffin_lim_iters = 60
fmax = 7600
fmin = 50
max_abs_va... | [
"unparalleled.ysj@qq.com"
] | unparalleled.ysj@qq.com |
7e22d1771263f8683682167b4be8379f2aa928d4 | e17440e48ad6cc7d69bb19395f815292a08a7388 | /common/apps/collectors/add_timestamp_and_id.py | 17b8fd6b6c504deaf5c993e0f17bae71b892e459 | [] | no_license | Tecquilka/uwobs | 70b127c14bd16339214500c1386da2b4d858ceb9 | bf1350e1158efe571db251e39456ae4d7d95ff01 | refs/heads/master | 2022-12-28T20:13:04.540963 | 2020-10-13T09:30:09 | 2020-10-13T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!/usr/bin/env python
import datetime
import sys
if len(sys.argv) != 2:
sys.stderr.write("Usage: {0} IDENTIFIER\n".format(sys.argv[0]))
sys.exit(2)
id=sys.argv[1]
try:
while True:
line = sys.stdin.readline()
if not line:
break
now = datetime.datetime.utcnow().isoformat()[:-3]+"Z"
print("... | [
"fullergalway@gmail.com"
] | fullergalway@gmail.com |
56667ede08c017457c4c2cb5392283faa5332663 | ba4c50d4b03e097f71e5af8ba639721fcb7e1fc5 | /plot_tp6_2.py | f9bb738ef4835ca9238907b8192312d55c1bd760 | [] | no_license | EricHorvat/itbaSSfinal | 0b1b4bc0c6de03b4a6376f2d0a9c9cd3fb310884 | 76f4bfed0c341da474595cc4d35c1a30ddd41506 | refs/heads/master | 2020-04-07T01:30:29.438910 | 2018-12-13T03:28:46 | 2018-12-13T03:28:46 | 157,943,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import matplotlib.pyplot as plt
import numpy as np
import json
def parse_filee(filename):
with open(filename,"r") as file:
return json.loads(file.readline())
def plot_surfacee(dss,dvelocities):
fig = plt.figure()
ax = plt.gca()
oavg = []
ostd = []
for index, ds in enumerate(dss):
... | [
"eric.nahuel.horvat@gmail.com"
] | eric.nahuel.horvat@gmail.com |
da3f5d0d4b3c71ac3db45cece6411a3233f8b68a | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/webpubsub/azure-mgmt-webpubsub/generated_samples/web_pub_sub_replicas_create_or_update.py | 81ff6144e4226d349866642540011deb03744386 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,920 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e39dd51fde7cd071010f467f6c281e6f42fb42b2 | 1968f0d6064a6947538a54371b01b13c425a56c4 | /errorsOnSite.py | 0e08966c7400df0732547c458ae33be2fc3b7b0b | [] | no_license | pahkao/coursera1 | ef695543625dfdb1fa50a78bd62b16eed600944a | 2506e3f54258da83c9e19e1498825bd799c3d152 | refs/heads/master | 2022-09-12T06:15:44.159155 | 2020-05-30T21:57:15 | 2020-05-30T21:57:15 | 255,118,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | # #### Импорты
import re
from pprint import pprint
#!pip install pyaspeller
from pyaspeller import Word
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
options = Options()
options.add_argument("start-maximized")
options.add_argument... | [
"olkhovskiy91@gmail.com"
] | olkhovskiy91@gmail.com |
30c2edac25e1e11650ef113d805ea63ffa3f6a75 | d2ec03d034bddc968ab850bf5a4593087f9eafe7 | /train_se3posenets.py | b2acac894a4ed0efd11d1ad2f16d4b81063f4585 | [] | no_license | abyravan/se3posenets-pytorch | b5c61550939a84e6df3f73c3372062a266f4f711 | d15a2db3f2e708fafd6912f877e53aec6eed5ee1 | refs/heads/master | 2020-05-15T13:44:13.853586 | 2019-09-06T02:49:04 | 2019-09-06T02:49:04 | 182,308,095 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 48,573 | py | # Global imports
import os
import sys
import shutil
import time
import numpy as np
import matplotlib.pyplot as plt
import random
# Torch imports
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim
import torch.utils.data
from torch.autograd import Variable
import torchvision
torch.mul... | [
"barun@MacBook-Air-2.local"
] | barun@MacBook-Air-2.local |
63b5cb24632edd5d430a55027fef2cb179ad50c6 | 308b8c6e8b33d56f23029f3039d2a8d8e8f9ba1f | /lab1/sentence_gen.py | 2d340a1719d2daf35f78abd68ba4a70bd1fb9f60 | [] | no_license | myrlund/tdt4275-nlp | 029dd79b5366e30771f9cfd960324d538741071b | fce13d7cbb3dbba0494cab94f64c1b9a4f7e06a6 | refs/heads/master | 2021-01-19T07:09:25.870108 | 2013-04-23T13:14:36 | 2013-04-23T13:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | #!/usr/bin/env python
# coding: utf8
import random, operator
from loader import *
def sentence_gen(corpora, n, priority, length=15):
"""Generates a sentence of given length, based on popular n-grams."""
counted_ngrams = {}
sorted_ngrams = {}
counted_ngrams = corpora.ngrams(n)
sorted_ngr... | [
"myrlund@gmail.com"
] | myrlund@gmail.com |
1dbfcc3d47f3a48af022c5b19fdcc27352f4d401 | d2b54d3df1dc8f7e88c0d209b35949089facc73f | /treenode/memory.py | b5c7ddd2c1dd51260daf32b36666209d52ca2176 | [
"MIT"
] | permissive | domlysi/django-treenode | df8b08e756884bc8daffdfad7b5b3b102e92e309 | 86e7c76e2b2d60c071cfce6ad1493b2b51f2d304 | refs/heads/master | 2022-12-12T18:10:44.668904 | 2020-08-17T11:01:09 | 2020-08-17T11:01:09 | 287,275,877 | 0 | 0 | MIT | 2020-08-13T12:37:54 | 2020-08-13T12:37:54 | null | UTF-8 | Python | false | false | 522 | py | # -*- coding: utf-8 -*-
from collections import defaultdict
import weakref
__refs__ = defaultdict(weakref.WeakSet)
def clear_refs(cls):
__refs__[cls].clear()
def get_refs(cls):
return __refs__[cls]
def set_ref(cls, obj):
if obj.pk:
__refs__[cls].add(obj)
def update_refs(cls, data):
f... | [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
56c2d58dcd0b848ea888575681f0c0591b9d5bbc | 30b8c9fcd359a7f15ad42dd7733a17e3020ff27c | /hipster/urls.py | ca3c62e6b4863498a6f75128e1ec1b3854a566e7 | [] | no_license | MySecondLanguage/django-rest-auth-email-verify-demo | cdfec9efeee7174f0c91b59ea6939813c7fd5a61 | 4d243a471d5dfe338369eb2614215a6303022331 | refs/heads/main | 2023-03-20T20:00:07.199132 | 2021-03-08T11:08:38 | 2021-03-08T11:08:46 | 345,623,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | """hipster URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"mmamunism@gmail.com"
] | mmamunism@gmail.com |
74cff82d3fb4d7b9313cdc8f801d09727367361a | abbb1e132b3d339ba2173129085f252e2f3311dc | /model-optimizer/extensions/middle/RemoveUselessConcatSplit_test.py | 7f91a7e4cbc1b0606f910b5a814c723cf707ab7f | [
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | Python | false | false | 16,709 | py | """
Copyright (C) 2018-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
d3f832d3e767c0ff4bca2f5cccc70c027d529027 | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/abc083/abc083_a/Main.py | b29da90d1695a2084ca06588e76990130541eb02 | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a,b,c,d=map(int,input().split())
if a+b>c+d:
print("Left")
elif a+b<c+d:
print("Right")
else:
print("Balanced") | [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
30fed9cd0fbcc9ea11672e3c32d6f34d4cb8d46f | 20bf84daa3894ee5625413140913350328d0d3b1 | /data_example/practice_data.py | 6a4e521b4dc3ac4857f6e6c145d5fff70c2e6cb1 | [] | no_license | jinsuyun/DataAnalytics | f9d28c424946fd2279cfbfe4ca2ffb314156ad97 | 8c60c7352aaebb421bc54e20934550e95096482f | refs/heads/master | 2020-06-18T23:11:35.589302 | 2019-07-31T08:51:17 | 2019-07-31T08:51:17 | 196,487,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import pandas as pd
df = pd.read_csv('adult.data', header=None)
# data basic
print("SIZE")
print(df.size)
print("SHAPE")
print(df.shape) # 몇 x 몇 인지
print("BEFORE COLUMNS")
print(df.columns)
df.columns = ['age', 'workclass', 'fnlwgt', 'education', 'education-num', 'marital-status', 'occupation',
'relationship', 'race', ... | [
"say2dbs@ajou.ac.kr"
] | say2dbs@ajou.ac.kr |
85f6c7b51b3c817448e8059efe2d0bab5d80b27b | 1b79374fe169ffa2d8dd381d8a21f314ef0e68df | /apps/mock_dojosecret/models.py | fef95460c238754cd1149f5492b69a74159239f6 | [] | no_license | HacTso/mock_dojosecret_project | c85900630e4da785b4dd0a6ae6856d54843100f3 | fa1ff570d998e3d0dc028c99e5546e40d0ec03bc | refs/heads/master | 2021-01-24T07:55:52.980273 | 2017-06-05T04:27:49 | 2017-06-05T04:27:49 | 93,364,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,822 | py | from __future__ import unicode_literals
from django.db import models
import re
NAME_REGEX =re.compile('^[A-z]+$')
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
import bcrypt
# Create your models here.
class UserManager(models.Manager):
def register(self,postData):
# return (True)
if l... | [
"hackknh@gmail.com"
] | hackknh@gmail.com |
0a7df3c31e01f5af78445a98036348be5e9ad1d7 | 2eadc45342aa161b7367cd09a2465c98d525882a | /secretsanta/__main__.py | c16719c29f42d454b61cea94358ea9ef7f8717d2 | [
"MIT"
] | permissive | jminuscula/secretsanta | a99313b7ed6c5cabe161a52e89d725712e178c12 | 0a305001a9a0ea26cf782f50ebba77256a28117a | refs/heads/master | 2021-12-07T20:08:12.560279 | 2021-11-21T15:09:29 | 2021-11-21T15:09:29 | 111,299,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | #!/usr/bin/env python3.4
import sys
import argparse
import json
from .participant import read_participants_csv
from .manager import SecretSantaDebugManager, SecretSantaDefaultManager
def get_arguments(args):
parser = argparse.ArgumentParser()
parser.add_argument(
'--email', '-e', metavar='PATH',
... | [
"jacobo.tarragon@gmail.com"
] | jacobo.tarragon@gmail.com |
da71551170a8138c807fd10d025d929b6f0e1ef2 | df3ac7e78ea022ecf156e3a94ae009355fdeb484 | /jobs/views.py | a391b16f522cae398d76a6c782c867e5ef7f4438 | [] | no_license | Dheerajkarmankar/portfolio-project | 6695d9db66e338d5cdaac7b213ada3c205e06ded | b18f411f3de877d69e861e19df26e77681f70b98 | refs/heads/master | 2020-11-27T03:17:13.020812 | 2019-12-20T14:50:45 | 2019-12-20T14:50:45 | 229,284,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
from .models import Job
def home(request):
jobs = Job.objects
return render(request, 'jobs/home.html', {'jobs': jobs})
| [
"dkarmankar7@gmail.com"
] | dkarmankar7@gmail.com |
5b17489d18983256040a969c95cfb04fe56a0ad6 | 2fb266cb1860008187cdec533d0970183d107e58 | /server/status.py | e35cd60a784ac5ad64e9bc96bfbc7edff3f163b8 | [
"MIT"
] | permissive | bizet/xpmanager | d12fe1e16bee227da825297ec4f5f7290182fa2a | 3f5e62e894c5a4df42d610016a22179726b9d621 | refs/heads/master | 2021-01-22T21:32:16.865883 | 2013-11-04T08:18:35 | 2013-11-04T08:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from db_info import db_xpmanager
class Status:
def __init__(self):
pass
def get(self, i):
status_options = list(db_xpmanager.select('status'))
return status_options | [
"bizet.cn@hotmail.com"
] | bizet.cn@hotmail.com |
6d625de9d95abca7e287fd3c385bb06c6b57b4f9 | 82cd87ea45ce91bf7cc6d60a8536c39676ca7689 | /eval.py | 20f28b8bec5eb3d1c886dcc50f2a24ac59a6e38f | [
"MIT",
"Apache-2.0"
] | permissive | gtesei/ebm-anatomy | 2be6bde61eeaa558198755b2535bbd4ec1958ef5 | 24c819b7239f554c8edc46c09085e129922962d2 | refs/heads/master | 2022-08-30T02:46:37.456060 | 2020-05-20T02:35:44 | 2020-05-20T02:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,642 | py | ##############################
# ## EVALUATE TRAINED EBM ## #
##############################
import torch as t
import torchvision.transforms as tr
import torchvision.datasets as datasets
import matplotlib.pyplot as plt
import json
import os
from nets import VanillaNet, NonlocalNet
from utils import download_flowers_... | [
"point0bar1@gmail.com"
] | point0bar1@gmail.com |
ecc3ad925d8cd3f872845d9ba866ab7860df6f03 | 328578dc61ddfef9959e0cc6b8a0c4f95c272423 | /web_crawler_demo/data_store_demo/csv_store.py | 79f47abd403a63b79bcc1e47ef62387b5dde5190 | [] | no_license | newiflin/web_crawle | 0a5bb3b0b4226d5993b39b256d2d51ececc26a4b | 83d09119bc25be3b425cfcf5fb1c84a57a3dab67 | refs/heads/master | 2020-05-21T18:21:19.472825 | 2019-07-28T09:09:09 | 2019-07-28T09:09:09 | 186,131,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import pandas as pd
import csv
#csv文件 保存含分隔符的文本
with open('data.csv', 'w') as csvfile:
writer = csv.writer(csvfile, delimiter=' ') #delimiter指定分隔符
writer.writerow(['id', 'name', 'old'])
writer.writerow(['101', 'Bob', '23'])
writer.writerow(['102', 'Tim', '22'])
writer.writerow(['103', 'Lisa', '30']... | [
"newiflin@gmail.com"
] | newiflin@gmail.com |
e1d829b54b662af945088f6706746423887e21c6 | 123e7109e676d612481368fbf42c09e7490b83ca | /仪器使用/PCI6289采集卡/program/pci6289_ao_test.py | 076b265d46fd57a77f26750a74dc05f9a6a93829 | [] | no_license | Kaige213/QuantumTransportExperiment | ada6c6999cef079113557e4087f653bfdaf135b5 | 0703c61f72e1490682c5ce2b9a8bb82a545c3730 | refs/heads/main | 2021-11-27T04:59:13.617922 | 2021-09-22T13:28:37 | 2021-09-22T13:28:37 | 251,171,218 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import nidaqmx
with nidaqmx.Task() as task:
task.ao_channels.add_ao_voltage_chan("PCI6289/ao0",min_val=-1, max_val=1)
task.write(0.5)
| [
"yuexiaokai@outlook.com"
] | yuexiaokai@outlook.com |
254fb14e235ff8c88fb37c0a2d8073e8cd9249a5 | f474d500b7da4f4069e24fddcde97783a4f3664b | /vagrantEnv/lib/python3.5/encodings/kz1048.py | 8c13cbaa6892121f32a575a95efa7e9b71c453ad | [
"Apache-2.0"
] | permissive | Thanh-Lai/chat-bot | 220a0fd6383181f0cdaf732b5c02f645bd960a28 | e3007fa6e034d3cccff4615a7eccf0e75bbc1708 | refs/heads/master | 2020-04-23T09:39:04.509356 | 2019-02-18T04:56:25 | 2019-02-18T04:56:25 | 171,075,880 | 0 | 0 | Apache-2.0 | 2019-02-18T04:56:26 | 2019-02-17T03:00:39 | Python | UTF-8 | Python | false | false | 38 | py | /usr/lib/python3.5/encodings/kz1048.py | [
"tlai1122@gmail.com"
] | tlai1122@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.