blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d36440509a5ce458028cddd6f11386e9c9f9b3e | 37c189ce1dfe146df449d61add792de639d04321 | /api/can_api_v2_definition.py | e4ceaddb9c7ebf78ed14e4f9807f171fc516f0fe | [
"MIT",
"CC-BY-4.0"
] | permissive | yangyijane/covid-data-model | 2f9d1db874e2b883f4c856989d1e0876ab293a77 | 3d7d8ec65fbabf1ce5e1749f328c96cdf6199905 | refs/heads/main | 2023-08-22T06:39:33.401142 | 2021-10-25T15:59:53 | 2021-10-25T15:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,290 | py | from typing import List, Optional, Dict
import enum
import textwrap
from libs.datasets.dataset_utils import AggregationLevel
from libs import base_model
from libs.datasets import timeseries
import pydantic
import datetime
from covidactnow.datapublic.common_fields import GetByValueMixin
CDC_TRANSMISSION_LEVEL_DESCRIP... | [
"noreply@github.com"
] | yangyijane.noreply@github.com |
c3eaff4220b08fc56b7f529974b9922daf3908ab | 765e0744b33ee9e9b85829d8af542141ed0d1210 | /mproxy.py | c24eedd38d4254ff9ff84835e9aada4814eba6f5 | [] | no_license | tylerwowen/mitm_proxy | 0b5a0ebb13424c3993dce2c431b1ce54c5e8cd66 | 367d190b238c6f497ce4791abd3360e0c6447c1c | refs/heads/master | 2023-04-07T23:33:38.094417 | 2023-03-28T22:35:47 | 2023-03-28T22:35:47 | 55,040,650 | 2 | 0 | null | 2023-03-28T22:35:48 | 2016-03-30T07:07:37 | Python | UTF-8 | Python | false | false | 27 | py | import src
src.__init__()
| [
"ouyang@cs.ucsb.edu"
] | ouyang@cs.ucsb.edu |
b301f0492fba0e2d359e1d51edb2d2c889cdd464 | 7836becef5fce2c55bef3ac08765f856f1ab2689 | /lx_blog/api_v1/profile.py | e0d7fd6f9b83eef6a1333c73621f3eb50556aa1f | [] | no_license | 2218997647/Blog_Test_LX | b049acd392c146fc054c918d32aa8976aca70b9e | d5e0c3e16e10a22e1f9547375256785a86f055b7 | refs/heads/master | 2020-04-05T21:48:19.407676 | 2018-11-12T15:37:42 | 2018-11-12T15:37:42 | 157,233,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | # coding:utf-8
from . import api
from lx_blog.utils.commons import login_required
from flask import g, current_app, jsonify, request, session
from lx_blog.utils.response_code import RET
from lx_blog.models import User
from lx_blog import db, constants
@api.route("/users/name", methods=["PUT"])
@login_required
def cha... | [
"2218997647@qq.com"
] | 2218997647@qq.com |
db1facd386d242b1b380c5534537494db308c88d | 002aca3621afbe787f5f2133d3dbe8af6e5e9e33 | /contraClientes.py | dfaa170150fe8c98060e42d61179b22d6a65867c | [] | no_license | Toti848/Joselyn | 5ce55f38ac3092b5f283ddad47a0351ad78eefe3 | 735e123ef7a80770d54a26afe8ef9f112b37e7be | refs/heads/master | 2022-12-02T06:59:42.999170 | 2020-08-20T03:35:21 | 2020-08-20T03:35:21 | 284,575,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | from tkinter import *
from tkinter import font
from tkinter import messagebox as msg
from tkinter import ttk
class Main:
def __init__(self):
#Pantalla
self.raiz = Tk()
self.raiz.title ("Acceso a los Clientes")
self.raiz.geometry('600x200')
#Fuente
... | [
"noreply@github.com"
] | Toti848.noreply@github.com |
856043c72dfa18187c13e630e6c9e58fcc3c660b | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/matplotlib/_pylab_helpers.py | 2407b573c4aabbe64132bc3a0ae71163132785bc | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 3,445 | py | """
Manage figures for pyplot interface.
"""
import atexit
import gc
class Gcf:
"""
Singleton to manage a set of integer-numbered figures.
This class is never instantiated; it consists of two class
attributes (a list and a dictionary), and a set of static
methods that operate on those attributes... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
6af792a1f4600d4fa1047802376523a08b69a6c1 | 7f2b233462e38f7fd2094bd4e304ca1b7525ec24 | /practice sessin.py | 7cc2b376eca0f3676554c0f2627c86df150aab19 | [] | no_license | vin531999/vin531999 | 919ec99b8dc21a3a8e19357967b72d16211dd733 | 647fb7d4e91b8d6a966a61c150831168c67677be | refs/heads/master | 2021-04-12T18:35:29.594555 | 2020-03-24T04:31:55 | 2020-03-24T04:31:55 | 249,100,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | n = int(input("enter the numbers :"))
c = []
d = 1
for i in range (n):
i = int(input(" "))
c.append(i)
d = d*i
print(d)
| [
"noreply@github.com"
] | vin531999.noreply@github.com |
62098dedacaa8ca0444becbb5aa5a5b7341645ea | d11f36debe9c5c2b5af87221782eebb4d6968d2e | /lesson19.py | fa9276880d4cc7e112e9e6e78b74ae6fef529263 | [] | no_license | OmorovAzat/lesson1 | cde12fcc19d86b22139ca9ac0773b059fd1165f8 | ad1d113c56bbc0961b0543c45b4df94eea3c0314 | refs/heads/master | 2023-05-07T08:31:58.450064 | 2021-05-30T08:54:51 | 2021-05-30T08:54:51 | 372,166,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | #Решение домашнего задания
# a = [1, 2, 3]
# b = [i * 2 for i in a]
# print(b)
# l1 = [1, 2, 3]
# res = 0
# for num in l1:
# res += num ** 2
# print(res)
# time1 = 3
# time2 = 6.7
# time3 = 11.8
#
# print(time1 // 2)
# print(time2 // 2)
# print(time3 // 2)
# s = 'Hello,world'
# if ' ' in s:
# s = s.upper()
#... | [
"bdante025@gmail.com"
] | bdante025@gmail.com |
0d1f8ac232ce4709e84ae40a42d8f4df1accaf4b | d6b4f2a17eacfda27a2823e180c45ae783cea43b | /introducao-python/knn/iris-knn.py | 6778b550102d6ea70867ead5f0fa9ce434993cc0 | [] | no_license | leonardoFiedler/data-science-course | ba31d9c4b0cced259d554b00786981c8b4a6f1c9 | fe7f576a66091bc9d2db4e28e9368d05575315cd | refs/heads/master | 2020-09-04T19:30:03.941010 | 2019-11-22T21:56:13 | 2019-11-22T21:56:13 | 219,868,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
import numpy as np
import pandas as pd
from sklearn.metrics import accuracy_score
(X, y) = load_iris(return_X_y=True)
data = train_test_split(X, y, test_size=0.2, random_state=1)
(X_train, X_test, y_train, y_test) = data
# Num... | [
"leonardo.fiedler.96@gmail.com"
] | leonardo.fiedler.96@gmail.com |
337238a653f2c421c1f017238cbef58842b56a43 | 567ecf4ea5afbd7eb3003f7e14e00c7b9289b9c6 | /ax/storage/json_store/decoders.py | 7a586e03ddb3b32b0a5780c941e67e791e29d11a | [
"MIT"
] | permissive | danielrjiang/Ax | f55ef168a59381b5a03c6d51bc394f6c72ed0f39 | 43014b28683b3037b5c7307869cb9b75ca31ffb6 | refs/heads/master | 2023-03-31T12:19:47.118558 | 2019-12-02T16:47:39 | 2019-12-02T16:49:36 | 225,493,047 | 0 | 0 | MIT | 2019-12-03T00:09:52 | 2019-12-03T00:09:51 | null | UTF-8 | Python | false | false | 3,501 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from datetime import datetime
from typing import TYPE_CHECKING, Any, Dict, List, Optional
from ax.core.arm import Arm
from ax.core.base_trial import TrialStatus
from ax.core.batch_trial import AbandonedArm, BatchTrial, Gene... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
278d818322d05275fb24dbbd4ce90fbb73f4aad5 | cbd347d69f4ae9725ec479795e21ef45d6ccf41a | /tests/constants.py | 968375f731522300035d26c8d7a6828c743fad50 | [
"Apache-2.0"
] | permissive | pyni/perception | 9d1e398964312d8ebdef0374e1e089fa7ff28397 | 81262bd05524e9d28568d55107718783023ae14c | refs/heads/master | 2020-03-24T02:23:21.647095 | 2018-07-19T20:05:00 | 2018-07-19T20:05:00 | 142,373,747 | 1 | 0 | Apache-2.0 | 2018-07-26T01:46:36 | 2018-07-26T01:46:36 | null | UTF-8 | Python | false | false | 122 | py | IM_HEIGHT = 100
IM_WIDTH = 100
NUM_POINTS = 100
NUM_ITERS = 500
BINARY_THRESH = 127
COLOR_IM_FILEROOT = 'data/test_color'
| [
"jmahler@berkeley.edu"
] | jmahler@berkeley.edu |
63d15beb9622fc5048da342646160ea270b446d8 | c4d379713ad8133c61d427c07b29f4121dcd86c5 | /workspace/root/topology/tani_utils.py | 1d93da9c1c42e8e0c77a07b025ee1c6ebc8e4cf3 | [] | no_license | agiulianomirabella/melanoma-detector | 80fe02d4ca18034ee0119e2c797df886a00ceb9e | 33ab38e3e559505f0225c86ba455a02636d3b839 | refs/heads/master | 2022-12-25T04:54:27.443543 | 2020-09-23T16:23:23 | 2020-09-23T16:23:23 | 292,315,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | from root.utils import * # pylint: disable= unused-wildcard-import
from root.utils import makeUnique, getGrayValueCoordinates
import numpy as np
from copy import copy
from scipy.ndimage.morphology import generate_binary_structure
'''
A helpful auxiliary permutation list for subcells computation
'''
#Maximum value fo... | [
"giulianomirabella@gmail.com"
] | giulianomirabella@gmail.com |
ef058a2f7e1c06430d246fe4dc5decaa6c3441d5 | 19e9939c91674b51c7574c7103d9abb12b3a56bb | /examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v11/bulk_keywords_ads.py | 940766c36b292a5ada4817e24525b47af81bf4af | [
"MIT"
] | permissive | dariusmb/BingAds-Python-SDK | 0257225d304948aa41caff42d7dd7972e1bd7457 | bd5814ed66cf5ff809bea8f3231460cc3724c942 | refs/heads/master | 2020-04-01T14:22:15.911884 | 2018-10-16T15:45:26 | 2018-10-16T15:45:26 | 153,291,404 | 0 | 0 | null | 2018-10-16T13:36:08 | 2018-10-16T13:36:07 | null | UTF-8 | Python | false | false | 17,874 | py | from auth_helper import *
from bulk_service_manager_helper import *
from output_helper import *
# You must provide credentials in auth_helper.py.
def main(authorization_data):
errors=[]
try:
# Let's create a new budget and share it with a new campaign.
upload_entities=[]
bu... | [
"eur@microsoft.com"
] | eur@microsoft.com |
070fec483cc8b3618847116669bce6bd58c2f158 | b290100dc3f40cc7867e21080c92135a75bca06b | /labwork/labwork/urls.py | 6b1f3561f1545c492a3cecbffcdb95dbef43ecd2 | [] | no_license | Kunduzha/labwork | a13d69eaff5ca3cad8a17bb038f85683648cc82f | 366af69bbbffcdf0422fe0ea83021e52ca82a61e | refs/heads/master | 2023-04-05T01:43:17.305601 | 2021-03-31T10:55:05 | 2021-03-31T10:55:05 | 353,324,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """labwork URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-based... | [
"kuzanai@mail.ru"
] | kuzanai@mail.ru |
52e97583338ee135280976c809802e41e82f2615 | 4321285ff5eed67fbca253ba7647235032700dfe | /RequestService/liquid_requests.py | fd208f5fa6a8659798a0d78942ac7498d37a46d0 | [] | no_license | TheBigGinge/Analytics | e8fd5ce3f04ce8ce32458500a264c10682dfbdc5 | 27c82bfdd4f06b9e80ee8f7ac7226370c62c4eb2 | refs/heads/master | 2020-12-18T22:19:56.904634 | 2016-08-08T19:53:55 | 2016-08-08T19:53:55 | 34,743,144 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,305 | py | import requests
import json
import os
import getpass
import base64
class LiquidPlannerRequest:
base_uri = 'https://app.liquidplanner.com/api'
workspace_id = None
project_id = None
email = 'ryanm@payscale.com'
password = 'Huge-Large1978'
session = None
def __init__(self, email=None, passw... | [
"rphm78@gmail.com"
] | rphm78@gmail.com |
8f9f79f922e726902af3535889af3665812574bd | 63cf7b2d363d3d4a371f7214f20b5503b401b5ee | /ene-jun-2020/joe tareas y parciales/ordinario/ordinario_busqueda.py | 263816de6626eea036c7531f294391a226f47535 | [] | no_license | joeguerrero735/AlgoritmosSistemas | fdfb03b1072835c5b40e4c5f1e954d0f5c740d72 | ed3132d7738ee31af40c99b2811488ea84c04d6a | refs/heads/master | 2022-09-06T22:45:01.039420 | 2020-05-30T05:03:18 | 2020-05-30T05:03:18 | 263,782,689 | 0 | 0 | null | 2020-05-14T01:17:54 | 2020-05-14T01:17:53 | null | UTF-8 | Python | false | false | 1,481 | py | def binarySearch(arreglo, inicial, final, x):
medio = (inicial + final)//2
if inicial > final:
return -1
if arreglo[medio][0] == x :
if x < arreglo[medio][0]:
return binarySearch(arreglo, inicial, medio-1, x)
else:
return binarySearch(arreglo, medio+1, final, x)
ent... | [
"yoyom_wwe@hotmail.com"
] | yoyom_wwe@hotmail.com |
62e62e7af49f8e9e5000474f3e2369b29eac4b01 | 76fd9a2d3b732a73b688a0c227bfe07219ca1ace | /wp3db/__init__.py | 951dc19a9d4263b1eba80b26bb6f304589845284 | [] | no_license | wp3-wearable/dbmodels | 61d1add4b09eae1f7be9d36a8db73df8bf9b240d | f881f98e6091649d8b8a79b5b9bc895792f23d54 | refs/heads/master | 2020-04-13T14:25:25.887785 | 2018-12-27T11:14:51 | 2018-12-27T11:14:51 | 163,262,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from .db import Session
| [
"dev.trk.9001@gmail.com"
] | dev.trk.9001@gmail.com |
2e89c56bda2683eb9350f7721d4902cb212adae9 | 0bd2de354c696939fedcecb72c924eaa95feb5b2 | /job/views.py | 41186e674e7661a4fa1918f1f8466c05446a4a6b | [] | no_license | RishabhVerma098/personel-portfolio | 94a0643e522d8c43082712b8c0ec5f9094abebc8 | c11aca5b878a5d7490c7159f3b447a45013a5d04 | refs/heads/master | 2021-07-17T09:45:38.546492 | 2019-02-09T14:28:20 | 2019-02-09T14:28:20 | 169,574,563 | 0 | 0 | null | 2020-06-07T14:32:31 | 2019-02-07T13:18:29 | HTML | UTF-8 | Python | false | false | 190 | py | from django.shortcuts import render
# Create your views here.
from .models import jobs
def home(request):
job = jobs.objects
return render(request, 'job/home.html', {'jobs': job})
| [
"vermarishabh0987@gmail.com"
] | vermarishabh0987@gmail.com |
9b1e0c1c235c51767a012be75e7b2a6729897c0d | e9da16d2d1468a47de78c66e4397216038e7ba88 | /zscdumin/谷歌翻译/python代码/getICAPSUrlList.py | e8dee91a1bf115825a8623c2154bb110ff77687d | [] | no_license | ZSCDumin/Spider | 9b28beb5d5166365c3b954c32d28a409a79fb085 | ba63f7122ce8e530cdfaaee56670dd5624d4c864 | refs/heads/master | 2021-06-27T02:04:29.622633 | 2020-09-13T01:20:18 | 2020-09-13T01:20:18 | 137,719,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-01-28 20:30:54
# @Author : 杜敏 (2712220318@qq.com)
# @Link : https://github.com/ZSCDumin
# @Version : $Id$
import requests
from bs4 import BeautifulSoup
def getHTMLText(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_stat... | [
"2712220318@qq.com"
] | 2712220318@qq.com |
dfd3789007df10b47fed17eb4ecef1dbbe054537 | 2edbdd6763f86aca4f6ee67ced390fb477ed0e44 | /udf/extract_type_modify_law.py | b2453cfaf4db58be6073271509e34dc2f95f64b6 | [] | no_license | nhatan172/deepdive | f498901c3faa474d3ab5166ef7a694e1626e2f01 | 492afee641436e4d5a068a7cec1ff3969d964518 | refs/heads/master | 2021-04-06T02:05:17.095127 | 2018-04-12T04:07:45 | 2018-04-12T04:07:45 | 124,988,988 | 0 | 0 | null | 2018-03-21T23:19:06 | 2018-03-13T03:49:20 | Python | UTF-8 | Python | false | false | 12,317 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
from deepdive import *
import re
import handle_string
import divlaw
def lenIterator(list):
sum = 0
for i in list :
sum += 1
return sum
def getTitle(string):
temp = re.finditer(r"\:(\s|\n|\*|\_|\#)*(\“|\")",string,re.DOTALL)
end_title = len(string... | [
"nhatan172@gmail.com"
] | nhatan172@gmail.com |
d56aaa1b76881e1998052b9a341d91955fab83a2 | 1dd6726ebfef9736fea9d4b69c18333909197417 | /New folder/project_test/manage.py | 3a32ab96c4075d09f7fb2b70bdb53957ec7a5dd6 | [] | no_license | Uday-Kiran/My-Scribbles | c7255371ef4c15172dc8acb511d13143533032f4 | fc2383c5877b78dfa4751d4c114762f84504cc48 | refs/heads/master | 2022-01-19T02:36:08.964361 | 2019-07-21T16:40:35 | 2019-07-21T16:40:35 | 198,078,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project_test.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"noreply@github.com"
] | Uday-Kiran.noreply@github.com |
ee1a31f88eeb3c7e9f45e9d6e74e4f4ac8581dbf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_381/ch15_2020_09_14_14_10_44_836878.py | 03149e67069cc3803fab0866de1f386bfbe66feb | [] | 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 | 177 | py | def chris(nome):
if chris == nome:
return 'Todo mundo odeia o Chris'
else:
return 'Olá, {0}'.format(nome)
nome = input('Qual seu nome?')
| [
"you@example.com"
] | you@example.com |
4b6acdbc898c6ac10a32ac3ebabe2a347cac037f | a5846332d42c8705d054792bdac219560d77d32f | /Test/test.py | 5dfe4d8d72022058c8dfbfa854f2b08bdaab2bc1 | [] | no_license | Jinsung-Jeon/Deep_Learning_Code | 2927a65adc9c7ef125603d186d4d5f38cebcfade | a87658c4beb823f9c34019e28cad736b259a7747 | refs/heads/master | 2020-12-13T02:35:52.306209 | 2020-03-06T07:01:11 | 2020-03-06T07:01:11 | 234,288,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,159 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 23 14:32:43 2020
@author: Jinsung
"""
#Chap1 test
runfile('C:/Users/Jinsung/Documents/Deep_Learning_Code/Chap1-Regression analysis Estimation of the number of rings in abalone/abalone.py',
wdir='C:/Users/Jinsung/Documents/Deep_Learning_Code/Chap1-Regression analy... | [
"jjsjjs0902@naver.com"
] | jjsjjs0902@naver.com |
cac26fe53126cbc8d9f1890a5eb47aa89c59b35b | d998988cb9f6f73be4f5b3cc302424119f66c856 | /MGITGatePass/basic_app/migrations/0005_auto_20191217_2052.py | 78882130aea3599e56d61a033f94c7640406fed3 | [] | no_license | sai-sambhu/MGITGatePass | cab9ea545f8b8c5fd959613b364dd161c416fab5 | a14ad7fb79163c1c53d81a5732d2ac0e1ec5544e | refs/heads/master | 2020-11-26T00:51:49.287696 | 2019-12-18T20:02:49 | 2019-12-18T20:02:49 | 228,912,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # Generated by Django 2.2.5 on 2019-12-17 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basic_app', '0004_auto_20191217_2031'),
]
operations = [
migrations.AddField(
model_name='studentprofileinfo',
name=... | [
"saisambhuprasad@gmail.com"
] | saisambhuprasad@gmail.com |
8bdf10e79cd099752ace442f1093c5d4cfb72eca | a985414206b78dd6e15b485f1881287da6f67895 | /app/__init__.py | 4ad6d80e134bc4d66d4ae9840d13c461da368b7e | [] | no_license | arangurenalonso/hackathon_sem11 | 927873c0010e02f5247b47eae2cbc882b3f03042 | 1d2810871f491e96cd414390234af9f6f560421f | refs/heads/main | 2023-03-22T00:47:33.853778 | 2021-03-12T21:10:20 | 2021-03-12T21:10:20 | 347,198,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | from flask import Flask
from pathlib import Path
from config import Config
from flask_restx import Api
from app.category.categoryResource import CategoryResource, CategoriesResource, category_ns, categories_ns
from app.producto.productoResource import ProductResource, producto_ns
app = Flask(__name__)
app.config.fr... | [
"aranguren.alonso@gmail.com"
] | aranguren.alonso@gmail.com |
5ab61d683509ed50cb0997df3f6350787fa30c58 | e30afd7f5166afed9ebfd740765d74a152175f54 | /algorithm-40case/leetcode_exercise/add_two_numbers.py | 9851649b651ca875717c0399a4c9ef6a092d3e53 | [] | no_license | wqdchn/geektime | 214c4ee627023723585ddbc66f3066f816a4fc76 | d953f631d93a4493aed26392954ca1f18a440938 | refs/heads/master | 2021-12-27T16:19:03.680654 | 2021-12-26T11:21:35 | 2021-12-26T11:21:35 | 174,132,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # @program: PyDemo
# @description: https://leetcode.com/problems/add-two-numbers/
# @author: wqdong
# @create: 2019-10-01 14:31
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode):
divmod... | [
"wqdong.chn@gmail.com"
] | wqdong.chn@gmail.com |
191a36449075d84cb10df8758f93f23b02e0ef64 | cfb33b4a1216387c8417af9d04058b87e5d557a9 | /Neutrons/Fast/1SourceMLEM.py | 0d28aff7eb59e63f5c07e39fb4835a1fb576910b | [] | no_license | loomisdevon/DRRSMask | 8c3428acbab7095e8df29008d73d5ab4e7d17b0c | 181955f68b0043a02b38e14b29654779a220b40a | refs/heads/master | 2023-01-15T03:46:43.478169 | 2020-11-26T06:37:36 | 2020-11-26T06:37:36 | 277,006,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,054 | py | # Dual Rotating Radiation Scattering Mask MCNP Code
# Rotate neutron and gamma flux from 0 to 2PI around mask and return signal received from detector
# Authors: Ivan Novikov and Devon Loomis
import os
import os.path
import math
import fileinput
import shutil
import subprocess
import io
import string
import numpy ... | [
"devon.loomis@scientic.com"
] | devon.loomis@scientic.com |
af6c43ee70e8b9d1ae987c97a80ae8707f4b001e | 59dbbdf5d29d2490ec8a697dc137aa7456479e89 | /usage/meta.py | 492a6b0640a3b1458ec28a2c5f9d8bdf040928ea | [
"Apache-2.0"
] | permissive | absalon-james/usage | 15d424599528bec7d3184a72b5e9754c325e46ed | a67ceddda8a14244526b3b3a40c0c3feec7035d2 | refs/heads/master | 2021-01-21T14:58:06.023114 | 2016-10-03T20:56:16 | 2016-10-03T20:57:46 | 57,158,746 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | version = '0.1.2'
description = "Python tool for collecting usage information from ceilometer."
| [
"james.absalon@rackspace.com"
] | james.absalon@rackspace.com |
6e615abdf2ddd030aea3917e7b4d7214899e693e | e249e4bb6e3cb2aabf592bcd3f7ec07b7c080eb8 | /cvp_modules/library/cv_server_provision.py | 2d2d507f668d27dc109e4d45be3d50c71cef71db | [] | no_license | arista-eosplus/ansible-cloudvision | c87e230e5286628c3a2f162efab585f4b16ab4c7 | abe124577d1ebeb3dd7b493102fd15795f4a4506 | refs/heads/master | 2021-01-19T08:23:23.139937 | 2017-07-21T03:15:41 | 2017-07-21T03:15:41 | 72,491,582 | 5 | 0 | null | 2017-06-06T13:31:26 | 2016-11-01T01:09:52 | Python | UTF-8 | Python | false | false | 24,752 | py | #!/usr/bin/env python
#
# Copyright (c) 2017, Arista Networks EOS+
# 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 must retain the above copyright notice,
# ... | [
"mhartzel@arista.com"
] | mhartzel@arista.com |
975d016f867e515a5d0d42fecfb3e22ccc3a61ff | 55ddcae82338890a7101b2ff6db0856463702314 | /perfectcushion/shop/admin.py | 1ac35dfa7e64e770e7c84c4021ff8ced72dc2336 | [] | no_license | rixinhaha/DjangoEcommerce | d31d6e8c7a4a40ba3f32d0e27ef203c59475c1dc | 0e3a188e8276bbfb63901747f553dd2ab483c284 | refs/heads/master | 2020-08-03T21:18:14.750498 | 2019-09-30T15:30:09 | 2019-09-30T15:30:09 | 211,887,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from django.contrib import admin
from .models import Category,Product
# Register your models here.
class CategoryAdmin(admin.ModelAdmin):
list_display = ['name', 'slug']
prepopulated_fields = {'slug':['name',]}
admin.site.register(Category, CategoryAdmin)
class ProductAdmin(admin.ModelAdmin):
list_display... | [
"rixinhaha@gmail.com"
] | rixinhaha@gmail.com |
739c0ed4a80c4bad6b0788a2f025475c8e864f1c | 3ec9ace491cd5d06b5b998e7e309a13bd86c7126 | /tests/system/conftest.py | 535e9d9a46ea535834835fff3376b8c958e75f58 | [
"Apache-2.0"
] | permissive | Jitsusama/lets-do-dns | 64467664f42df053b535156fc773be7e874d0bf5 | faff4bf45e9a4be438e15afbe5caa249fe1e5210 | refs/heads/master | 2021-01-20T02:38:10.953843 | 2017-07-21T03:08:30 | 2017-07-21T03:08:30 | 89,433,363 | 8 | 0 | Apache-2.0 | 2019-10-02T15:07:28 | 2017-04-26T03:24:48 | Python | UTF-8 | Python | false | false | 1,843 | py | try:
import ConfigParser as configparser
except ImportError:
import configparser
import os
import pytest
from requests import post
@pytest.fixture(autouse=True)
def os_environ_reset():
"""Reset os.environ in between test runs."""
original_env = os.environ.copy()
yield
os.environ.clear()
o... | [
"joel@grrbrr.ca"
] | joel@grrbrr.ca |
9c17bdc0d3beabedf1313533658ffff019329cce | 8f5d2fb45d6452fc6df00b12fa0bd45446d1029b | /lessons/models.py | 1227de579706645ec9701f1a78da6f80fcc40145 | [] | no_license | luminyanko/renshuu | 4bcbd0f10e0a4a175ab92783e5346ac4b1c44927 | 54a98f59a7d2971e3ba20d5406b3e7ad8c482408 | refs/heads/master | 2023-06-01T20:40:30.090022 | 2021-06-21T08:47:19 | 2021-06-21T08:47:19 | 377,913,945 | 0 | 0 | null | 2021-06-21T08:44:52 | 2021-06-17T17:39:11 | Python | UTF-8 | Python | false | false | 734 | py | from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here.
class Tag(models.Model):
tag_name = models.CharField(max_length=50)
def __str__(self):
return self.tag_name
class Lesson(models.Mode... | [
"luminyanko@gmail.com"
] | luminyanko@gmail.com |
2a4a81a565fab19cc75a574eb4d85c9994bb0767 | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/lib-python/3/test/test_file.py | e9a1ceeeb8a48606fa1ad65140adac2fd3689d05 | [
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 11,928 | py | import sys
import os
import unittest
from array import array
from weakref import proxy
import io
import _pyio as pyio
from test.support import TESTFN, run_unittest, gc_collect
from collections import UserList
class AutoFileTests(unittest.TestCase):
# file tests for which a test file is automatically set up
... | [
"thezhangwei@gmail.com"
] | thezhangwei@gmail.com |
94f4897b31040b8abc8c30479a440a8e0af48906 | e793abb16a44eff7b48df2c774883d7a469f2005 | /local_code/adam/test.py | 1b238455a5659ce30f9888884b4d2cf00e25d092 | [] | no_license | Junyinghuang/DS4S_group2 | a25f2fe6d31f66452fc03ad02594c9c15a4f0017 | 2a3bcd0fad858e7ef00d69342dbdd47853525b83 | refs/heads/master | 2022-06-20T23:43:11.420048 | 2020-05-12T07:07:56 | 2020-05-12T07:07:56 | 257,669,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from local_code.adam.new_parameters import get_new_parameters
def test_parameter_creation():
'''
Test to make sure I don't get any wonky results from my parameter adjustor
'''
sigmas = [1,2,3,4]
initial_guesses = [0,0,0,0]
new_guesses = get_new_parameters(sigmas,initial_guesses)
#It would b... | [
"apkunesh@ucdavis.edu"
] | apkunesh@ucdavis.edu |
3cd6e2099d0754d1a415a93ab25595f0ada97a68 | 77909a8a93f60759e0fd32fb632d937c7c8d4d68 | /curso_em_video_exercises/desafio10.py | c1c5bc683719ab4335f0251c26bf81cd73603c19 | [] | no_license | euricoteles/python | 13e39bf0b5916b69794dac39dc55a213b5443718 | dae10d87a9923646dd8257a2ce3da91dc355b603 | refs/heads/master | 2021-09-04T14:51:47.147309 | 2018-01-19T16:57:27 | 2018-01-19T16:57:27 | 116,609,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # Crie um script que leia quanto dinheiro uma pessoa tem na carteira e converter em dolares.
# variables received by input
valor = int(input('Qual o valor para converter em dolares:'))
dolares = (1.18*valor)/1
# print information
print('O valor em dolares fica : {}'.format(dolares)) | [
"euriconaz@hotmail.com"
] | euriconaz@hotmail.com |
d01f9d1b57765a72c85ec040eab037e9d12c89bb | ca77e9e45d666771c7b0897e7e3093b3d3c12f65 | /scripts/trigger/add_prices.py | ec79a8be575fe0f59c9b16754b18afc1910a7a29 | [] | no_license | 2gDigitalPost/custom | 46175d3a3fc4c3be21dc20203ff0a48fb93b5639 | 6a3a804ef4ef6178044b70ad1e4bc5c56ab42d8d | refs/heads/master | 2020-04-04T07:40:17.962611 | 2016-12-28T18:35:28 | 2016-12-28T18:35:28 | 39,648,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | """
This file was generated automatically from a custom script found in Project -> Script Editor.
The custom script was moved to a file so that it could be integrated with GitHub.
"""
__author__ = 'Topher.Hughes'
__date__ = '04/08/2015'
import traceback
def main(server=None, input=None):
"""
The main functi... | [
"topher.hughes@2gdigital.com"
] | topher.hughes@2gdigital.com |
41e2a093e82ce2eb956957ab8d320d97248524fb | 1a1a10576c4fabe2879feb00393fe8d3f5211d9b | /todo/settings.py | dfb08b572fb8286e00d5acfcf40919ff7f4a9f4c | [] | no_license | Machele-codez/todo-by-machele | 8a50e7e6f9e560ba40dd7816f1c34324cf4c4f8d | f96903f24a5fdfb587cbf04977b0c2aaf5a92879 | refs/heads/master | 2022-09-13T02:42:36.410948 | 2020-06-03T19:59:33 | 2020-06-03T19:59:33 | 269,172,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"smithbeblack@gmail.com"
] | smithbeblack@gmail.com |
f4b58e180e2f6563fbc03f28f8137aab6bf58d1a | f9d9afad08272fc077f9809eedb8e920fc0fe883 | /Observation/Task.py | a53536d6b3a8175d44f7420b06921eebde12790a | [] | no_license | firekg/is-it-optimal | 1c640a350d25057cf7b32602467d063e5ea65799 | 202b95ae370db7170a12ee942d6e1f0be29cca43 | refs/heads/master | 2020-05-01T13:31:35.441495 | 2019-10-27T15:34:49 | 2019-10-27T15:34:49 | 177,493,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | import numpy
import Observe
import Init
import copy
import Teach
import Learn
# Eq. 6a), 6b)
def Knowledgeability_Task(hypo, feature, label, p_teacher_xy_h, p_teacher_x_h, p_y_xh, delta_g_h, phx, num_iteration):
p_learner_h_xy = Learn.Init_step(hypo, feature, label, p_y_xh, phx)
for loop in ran... | [
"noreply@github.com"
] | firekg.noreply@github.com |
ebbf514c6ec2b30cad1b8c147dfef1377c951533 | 82e5c56806e75a51097a51cb721df1ef07376e6f | /initial_freia/fun.py | 6b89a7f268c642c02b65a655544d8257951ff747 | [] | no_license | hahahasan/MSc-pre-process | 77a2fcdf795830d2b37b2d538e3638d29bd55e80 | ba69d58bc1f9dd7becea431ce9a328b2843d8b66 | refs/heads/master | 2020-03-21T05:43:07.501035 | 2018-06-21T14:14:30 | 2018-06-21T14:14:30 | 138,175,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 13 11:06:10 2018
@author: hm1234
"""
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
rng = np.linspace(0.01, np.sqrt(2), 500)
rng2 = np.arange(10,500)
max_rng = np.amax(rng2)
hi = []
for j in rng2:
n ... | [
"hm1234@york.ac.uk"
] | hm1234@york.ac.uk |
cc2cf6e6ef6fb653f7cb8de7cc061e8c3a300512 | 34192b4a3964c6dec6ff34bddc06c3690c02bf98 | /Social/feed/models.py | 23c6456108e74c85bdff44c8203513abb97e3ed5 | [] | no_license | Aditya-23/The-Social | 6806882f8688f577047d79d0a02b3092cf3c4a4b | aea48c2ef816196839cad75f9dced50fa85af6f2 | refs/heads/master | 2022-10-22T11:33:22.849389 | 2019-08-11T19:31:07 | 2019-08-11T19:31:07 | 201,806,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | from django.db import models
from django.db.models import Q
# Create your models here.
class Question_query(models.query.QuerySet):
def search(self, query = None):
return self.filter(
Q(question__icontains = query)
)
class Search(models.Manager):
def get_queryset(self, query = None):
return Question_quer... | [
"adityamysore002@gmail.com"
] | adityamysore002@gmail.com |
7dfcead14cfcc41518ec35eaa9c96ca9cfbc0be3 | 8fb846f4f4ac5fd417489d731eae8a8a1bdc77c3 | /rllab/misc/console.py | b32d21a249a3d389e0aef97f641591cdb13bb35a | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | zhongwen/rllab | 0a9f9ea2d8995037b83aaae5853a299d5cf9e432 | d8239c05179fcc55d865db7ce933defa3baae24d | refs/heads/master | 2021-01-14T08:36:37.272071 | 2016-08-17T12:29:00 | 2016-08-17T12:29:00 | 65,801,245 | 1 | 1 | null | 2016-08-16T08:18:47 | 2016-08-16T08:18:46 | null | UTF-8 | Python | false | false | 5,514 | py | import sys
import time
import os
import errno
import shlex
import pydoc
import inspect
color2num = dict(
gray=30,
red=31,
green=32,
yellow=33,
blue=34,
magenta=35,
cyan=36,
white=37,
crimson=38
)
def colorize(string, color, bold=False, highlight=False):
attr = []
num = col... | [
"dementrock@gmail.com"
] | dementrock@gmail.com |
d34828fbd987211cc81fd1989af985a0e9374a74 | 128104139a52489f21df67918fae50b647f27cbe | /printswapneg.py | e3d6c3796765ea2755a55619b285b3480622b3fb | [] | no_license | AdamRichey/Python | aabb254742cf46c4d958b8aa55c26bdca100cdde | 00f1be1e235f6f791c624e3496b78d8863355e81 | refs/heads/master | 2020-03-23T05:54:10.976815 | 2018-07-16T18:15:12 | 2018-07-16T18:15:12 | 141,174,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | arr=[-1]
def neg(arr):
for i in arr:
if arr[i]<0:
arr[i]="dojo"
print arr
print neg(arr) | [
"adamrichey88@gmail.com"
] | adamrichey88@gmail.com |
de9ceaa3537c1f1edf2a30fedb2a4f538e0eec02 | a2efa9d89a721aae5016280ca166caffab97e94f | /exercices_EDX_W1.py | 44e668445b4b6b51f8543dd707285978c0d16491 | [] | no_license | samthib/python_edx | 3dc8378c92092eedfb70b0890ee801465e3a4cd9 | 2970745f6671a0d314b2cd32261928c7a55da3f9 | refs/heads/master | 2022-07-04T19:00:19.037593 | 2020-05-05T20:54:57 | 2020-05-05T20:54:57 | 258,567,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 20 21:10:42 2020
@author: Sam
"""
##--------------------------------##
#Exercice 1
import string
alphabet = string.ascii_letters
sentence = 'Jim quickly realized that the beautiful gowns are expensive'
count_letters = {}
for i in range(len(sentenc... | [
"noreply@github.com"
] | samthib.noreply@github.com |
9f800cece6947820a5e6c1324c4b395ea3efdf40 | a1c397a8b4dccfbef8b91a67d6910a58ff6aa98e | /02-19-Cuma/tryExcept.py | 13bb01e466c735f27fe0a613acc049813ea2ed45 | [
"MIT"
] | permissive | hhsalik/staj | f0c9a17064c444fa084a102e4c36050ff62fdb4e | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | refs/heads/master | 2023-04-29T15:17:17.928023 | 2021-05-10T19:25:35 | 2021-05-10T19:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | try:
answer = 10 / 0
number = int(input("Enter a number: "))
print(number)
except ZeroDivisionError as err:
print(err)
except ValueError:
print("invalid input") | [
"cihat02020202@gmail.com"
] | cihat02020202@gmail.com |
80aa265104445e40404828f18f155d2af0bd25b2 | c2285444392e8eb1904255b82f62b49f317aca07 | /scripts/load_tags.py | 59a372e1337682c26b6ce0ab3ed0e6c41f62fb28 | [] | no_license | tlskr/tagger | ced0ed36437bb29fe488eb2fae8b03314c5a9558 | 1230a1f36b91bd7ef2d57840dcfa013ca07e5a4a | refs/heads/master | 2022-12-16T00:44:36.798298 | 2018-08-17T13:23:02 | 2018-08-17T13:26:37 | 145,027,493 | 0 | 0 | null | 2022-12-08T02:46:37 | 2018-08-16T18:55:02 | Python | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
# pylint: disable=wrong-import-position
"""
Script loading tags from JSON file to data
Invocation (from project root)
./scripts/load_tags.py
"""
import os
import sys
import gflags
sys.path.append(os.getcwd())
from scripts.main_gflag import main_gflagged
from tagger.load_json import ins... | [
"gordon@practicalhorseshoeing.com"
] | gordon@practicalhorseshoeing.com |
0aca43944e8543cb2dde41c31bfa4b1db2c4dc93 | 969be4b7959617a4def52267595ed22a67caeaaa | /wsgi/closetBackend/Invetory/views.py | f0b1837c8705c2e6196fc3f5e170a4867ea44c0a | [] | no_license | pjryan93/closet | 0589d493958e5f9a63c760ebc4c52588622da913 | 04dcf33f0991c547cc27b7214a81ab0d3f149ff3 | refs/heads/master | 2021-01-10T06:15:36.359576 | 2016-03-20T22:02:52 | 2016-03-20T22:02:52 | 54,337,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,952 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import TemplateView
from django.template.context_processors import csrf
from django.shortcuts import render_to_response
from django.template import Context
from django.template.loader import get_tem... | [
"pjryan@my.okcu.edu"
] | pjryan@my.okcu.edu |
2566347edc4da7664cffa99c4c72f58678e8c26a | 648384ac8ff1e1a414c41c1ed19c6d54d7f1aeb2 | /pygame_basic/4_keyboard_event.py | 98eb5facda5d2b3900695aa414f57d47e2adf207 | [] | no_license | Online-abayss/-- | dadb65b372ed7c39c391bc0a85355a314028ce19 | 4ac61ad20167a784419365317d61722d5bbddf3b | refs/heads/main | 2023-08-03T13:13:51.623181 | 2021-09-23T08:42:10 | 2021-09-23T08:42:10 | 397,529,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | import pygame
from pygame.constants import K_LEFT, K_RIGHT
pygame.init() # 초가화작업 (무조건 필수) (클래스 정의할떄도 self.init 하는것처럼 그런듯)
# 화면 크기 설정
screen_width = 480 ## 가로크기
screen_height = 640 ## 세로크기
screen = pygame.display.set_mode((screen_width,screen_height)) ## 게임 화면 크기 설정
# 화면 타이틀 설정 (2. background 시작)
pygam... | [
"noreply@github.com"
] | Online-abayss.noreply@github.com |
7a1df63cd632b5b6f4ccaeaeee6eff6164e582d7 | bffcfa6103ee72d7ac394c14aa861e60616c7ab8 | /pytorch3d/datasets/__init__.py | 1687213018a29e5d75a4c5490368d52e5f4d893a | [
"BSD-3-Clause"
] | permissive | Amit2016-17/pytorch3d | ccac686bc1a3caeb4bd0f38519fbcb83f816501d | 7944d24d4872bdb01b821450840049e28d0ce12b | refs/heads/master | 2022-11-25T10:40:14.409087 | 2020-08-05T13:58:53 | 2020-08-05T14:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
from .r2n2 import R2N2, BlenderCamera
from .shapenet import ShapeNetCore
from .utils import collate_batched_meshes
__all__ = [k for k in globals().keys() if not k.startswith("_")]
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1c125d93dacd44efb23a7c8db2107c3a5838f0bb | 25ac403b85c141bde644f92785d086b2049ccbff | /数据/utf8csv2excel.py | 5f12f35818e9db1abf5c1b20b9a128038025af4c | [] | no_license | void126rlz/SHUJRA | 62ac47313a2c42dc439cb027a73376bfbe116ec4 | b7451af92df4bfdd80e71a2e7cbab7eecfb28f23 | refs/heads/main | 2023-07-17T06:26:01.119303 | 2021-09-07T13:39:25 | 2021-09-07T13:39:25 | 379,532,808 | 1 | 1 | null | 2021-07-11T08:42:34 | 2021-06-23T08:28:06 | Jupyter Notebook | UTF-8 | Python | false | false | 1,797 | py | import os # sys
import pandas as pd
home = r'D:\tfp\project\新致软件\3岗位推荐算法\from新致\数据'
fileNamesCSV = os.listdir(home + r'\历史18天的数据') # \*.csv
print(fileNamesCSV)
# !dir D:\tfp\project\新致软件\3岗位推荐算法\from新致\数据\utf8
fileNames = [s[0:-4] for s in fileNamesCSV]
print(fileNames)
# InvalidWorksheetName: Excel ... | [
"noreply@github.com"
] | void126rlz.noreply@github.com |
da731a7f36e0c4abfe56e401d84517f945860e52 | 14d5bccb090070fc212651d017b71a1f2c6fadce | /mysite/myapi/models.py | d29e391516d08b76c141036c24658c027c6e2666 | [] | no_license | ryyvntong/SuperheroAPI | 223c78abd0a46a645ce36a871a7df5008dac6d02 | 6dd2e63a44bf7fc251abacd90cf3782fafb24e9d | refs/heads/master | 2020-12-31T21:32:41.788871 | 2020-02-07T22:02:36 | 2020-02-07T22:02:36 | 239,028,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.db import models
# Create your models here.
class Hero(models.Model):
name = models.CharField(max_length=60)
alias = models.CharField(max_length=60)
def __str__(self):
return self.name
| [
"56896048+ryyvntong@users.noreply.github.com"
] | 56896048+ryyvntong@users.noreply.github.com |
7aaee542c16692bd7e6bafbc73a9debf04054e3d | 504dbb060f00d373278f2f210af39fb89a27916b | /karyawan.py | 5dad1d91ebbe692dd9127b5753080694a65460bd | [] | no_license | Aldidwi53/projek-PBO | e56f1b764c632f6d59a550feadac3583b35e1345 | 7232feb29e5e81e4e82241105bfd41b85ec6d21b | refs/heads/main | 2023-02-06T02:01:53.925205 | 2021-01-02T09:09:28 | 2021-01-02T09:09:28 | 324,373,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import user
import sqlite3
class Karyawan(user.User):
def __init__(self, email, password, nama, gender, alamat, telepon):
super().__init__(email, password, nama, gender, alamat, telepon) | [
"noreply@github.com"
] | Aldidwi53.noreply@github.com |
feee22f88d28bb23ee6a97c99f3208c769d58972 | dc569d08a025447e5386abf0388c99d45bdbfcf1 | /utils.py | 6cc2d12ab1651734c79094fcbdcdd4f3dd2f23ad | [] | no_license | samuelBB/Translating-OOV-Words-Via-Images | cf992d1f27f10352fee61bc89a60ac0bc2d91a9f | 5ae8f3b89786a0813e93b619189e181de8a955dd | refs/heads/master | 2020-05-30T10:08:45.056985 | 2019-05-31T22:37:25 | 2019-05-31T22:37:25 | 189,665,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | """
misc utility functions
"""
import re
import os
import errno
import pickle
import random
import logging
import argparse
import datetime as dt
RANDOM_SEED = 2018
### logging
class UpToLevel(object):
def __init__(self, lvl=logging.FATAL):
self.lvl = lvl
def filter(self, record):
return ... | [
"baldsammy@gmail.com"
] | baldsammy@gmail.com |
3010b06f90027e9d8277db75879d2a23679e061c | 934107eaba17b352bf7bf3a9c0a45af4f263fd54 | /favorites/manager.py | 5106bb9da8161cbc63e045832e3288fd4baca22e | [] | no_license | quentin338/Purebeurre-p8 | d0324f0fbc7e96a1418b367ea41ef3f4f51cc437 | 15bb4192df331d790ef28140e65213ac604cf96e | refs/heads/master | 2023-08-07T22:25:10.975870 | 2023-07-26T10:21:04 | 2023-07-26T10:21:04 | 207,123,046 | 0 | 0 | null | 2023-07-26T10:21:06 | 2019-09-08T14:17:16 | CSS | UTF-8 | Python | false | false | 310 | py | from django.db import models
from django.db.utils import IntegrityError
class FavoriteManager(models.Manager):
def is_favorite(self, user, ancient_product, new_product):
return bool(self.filter(user=user, ancient_product=ancient_product,
new_product=new_product))
| [
"quentin.bertrand@yahoo.fr"
] | quentin.bertrand@yahoo.fr |
670f081b1ef8d14da851e983a53c42b304f46728 | ace2dc6096eb0b7a540f28e57df8459adafad6ed | /Advanced Algorithms and Complexity/Programming-Assignment-4/circuit_design/circuit_design.py | e2ec8b4f2aabddcc3f0a3899603eacd626bc5794 | [] | no_license | tdslivensky/AlgorithmsAndDataStructures | 6ad2c28204600b1f8f72228c13d29d2c3c9437c9 | e8b1011ab5210bc52854f911e2a7e41a83b36740 | refs/heads/master | 2023-01-11T16:32:49.399654 | 2020-11-13T13:49:18 | 2020-11-13T13:49:18 | 289,050,279 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # python3
n, m = map(int, input().split())
clauses = [ list(map(int, input().split())) for i in range(m) ]
# This solution tries all possible 2^n variable assignments.
# It is too slow to pass the problem.
# Implement a more efficient algorithm here.
def isSatisfiable():
for mask in range(1<<n):
result = [... | [
"tdslivensky@gmail.com"
] | tdslivensky@gmail.com |
6ec1b92adbf29c397050d278e8c4ddd379f0e719 | 874c45e64e28ec63829b22738c3e7744dac1aeb7 | /test/rtt/utils.py | 8edbf72b300db2b646aba48fc6af9dc0080c5cc6 | [] | no_license | zenokoller/rtt-timestamp-vs-spinbit | 75372d04a29dc93c6161d61516d0cdb72e684bfc | a2aedc47dd8c48cdf9771e8c747dff422f97fa31 | refs/heads/master | 2020-03-20T18:32:38.876614 | 2018-07-06T15:39:14 | 2018-07-06T15:39:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import pandas as pd
def load_dataframe(path: str, key: str) -> pd.DataFrame:
with pd.HDFStore(path) as store:
return store[key]
| [
"zeno.koller@gmail.com"
] | zeno.koller@gmail.com |
6128440a21b6bad0591564200e67f0c7ab7f0018 | a219c9b0f3ccd1b35c3bb7bb3c7b50e1d9d8ef93 | /d002_1_for_dongusu.py | 9910b109c6ddd3f3d306143754c0ebd1ef137785 | [] | no_license | f0xmulder/python_ornekleri | 3293541b5d4e594dc39e6df623e47ecd4e5e94c2 | d1ebbcefdd7390a4e20a61864b150097f9919e29 | refs/heads/master | 2022-11-04T07:12:20.766931 | 2017-06-22T13:30:45 | 2017-06-22T13:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
For Döngüsü
cok satirli
aciklama
Uşak Universitesi
"""
# tek satır aciklama
import numpy
print "Program Baslangıcı"
print "0-10 arası 1.7 artarak"
elemanlar=numpy.arange(0,10,1.7)
print "Sayı\t(3)\t(5)\t(7)"
for e in elemanlar:
print e,"\t", e%3,"\t", e%5,"\t", ... | [
"noreply@github.com"
] | f0xmulder.noreply@github.com |
0b8e26a5b14106ea4c7a0fcf55baed32e47f43de | 06677c398ea51e3bf78dc45db8cdf97a2b2a296b | /table-cards/cardgen.py | 773492e4f3acd63bb1b3f1079022250713136a9b | [] | no_license | DoESLiverpool/Liverpool-Makefest-2017 | ac0e9df9a8b7fdb68d70d81985690ce25192d856 | 5590cb5f58a3aa403d49c54a6e25ec5e85358b10 | refs/heads/master | 2021-01-21T19:51:51.046353 | 2019-06-28T14:48:22 | 2019-06-28T14:48:22 | 92,169,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,995 | py | #!/usr/bin/env python3
import csv, re, os, shutil, argparse, urllib
#import lxml.etree.ElementTree as ET
from lxml import etree
SVG_FOLDER = 'svgs'
PDF_FOLDER = 'pdfs'
def main():
# parse some flags here
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--infile", help="ods or xlsx input file... | [
"patrick@defproc.co.uk"
] | patrick@defproc.co.uk |
7875cbdde6257275a92695eeecc06813145d79d1 | 1ad64831a79a6b163f6a31a9255994c1e4d8a322 | /settings.py | a2fe5dbf18ed9edbb73469731b1b139a097fe630 | [
"Apache-2.0"
] | permissive | benhosmer/brzr-desktop | 1f17b767a9d1b7d6f4bbb3787e5deb9df92f9165 | 1e5e88e0b33325d35002636192019a40d080224e | refs/heads/master | 2020-03-30T07:49:24.701545 | 2013-07-11T16:29:12 | 2013-07-11T16:29:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import ConfigParser
config = ConfigParser.RawConfigParser()
config.read('brzr.cfg')
database_name = config.get('main', 'database_name')
event_name = config.get('main', 'event_name')
| [
"ben.hosmer@gmail.com"
] | ben.hosmer@gmail.com |
d95df558fb04770dfcce9d62774614c18e3bfa25 | 401e455157f74b28b0ad12df6bdae3c159888db6 | /tiviapp/apis/twitter_rest.py | 2711d64b25094018a1871401c9eeafc7e1407e66 | [] | no_license | AnilSener/tivi | 0624e356524ae03fddd771a43a174211b8e1909d | 701e1ab2948d898fe12999bc5be954f61a3f4e99 | refs/heads/master | 2021-01-01T06:04:31.707925 | 2015-07-03T15:34:36 | 2015-07-03T15:34:36 | 38,221,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | __author__ = 'anil'
from twython import TwythonStreamer,Twython,TwythonError
from tivi.celery import app
from tiviapp.models import *
import time
####################################################################
consumer_key="Vs7V2k4vPWMMyTFqLzqPkM6wE"
consumer_secret="aWNRzh74LUT1fuW35y6VzRDtvuimQ4LjFGMnMMkEXI0Y9LS... | [
"anil_sener@yahoo.com"
] | anil_sener@yahoo.com |
81adc9b89c325fae8eb969a4530b965c9f2ee337 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-ice/aliyunsdkice/request/v20201109/DescribeQueryConfigsRequest.py | d4de87a4f55304fb57408fb816c6f72a3b5b2c81 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,437 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
102f8aafd37eaff350427f12ac5e476d7dda9c04 | 992816021cb79580e9c739ca2650fe9bc83829bd | /medapp/profile/admin.py | b838f95fde2b89db4d347aec60b042db9c24c2e0 | [] | no_license | etiennekruger/medapp-api | 096de56dc523425981b48c6d80930bb3df799639 | af9232f548db28e6716c0a14e38b44dcb9b57690 | refs/heads/master | 2020-04-18T22:58:35.859694 | 2012-07-16T06:17:17 | 2012-07-16T06:17:17 | 5,150,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from django.contrib import admin
from profile.models import Profile
class ProfileAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'created', 'updated']
admin.site.register(Profile, ProfileAdmin)
| [
"makhonin@steelkiwi.com"
] | makhonin@steelkiwi.com |
14450e65ad686acdab9fb6fecaa1b50a8a7d5106 | 84fda250fd32b37d74f07f6d00106226881e70ee | /shop/cart/admin.py | 85a9d7c503ea1cc245e73f3574a659d5c5459871 | [] | no_license | NovosadVictor/OnlineShop | 8b80b1122f9d8019fb2d1641e08ea9eb64cc6ed6 | afe6826bf0494be6af3a033cf8c2e3a205ffb571 | refs/heads/master | 2020-12-02T16:13:26.312803 | 2017-08-22T16:29:55 | 2017-08-22T16:29:55 | 96,091,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from .models import ProductInCart
class ProductInCartAdmin(admin.ModelAdmin):
list_display = ['owner', 'product', 'quantity',]
list_editable = ['quantity',]
admin.site.register(ProductInCart, ProductInCartAdmin)
| [
"novosad_msu@mail.ru"
] | novosad_msu@mail.ru |
52ba6a2814b715ec92f01331d0712c169ef9ebfa | 009eddcbb8e4917710ad3c8661ee5bb04b6fc512 | /tf-transliteration/transliterate.py | 2a032f79be925ab091ef9b896e4cc7c30e5a4c45 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SRSTLCI/tf-transliteration-riggs2slo-toolkit | 873ea0ccb4c7f270bf16b137ea59ad324ea176ce | e6224627408ea23f830e2b3cd4f6e3a723d70d9d | refs/heads/main | 2023-04-20T18:47:30.731897 | 2021-05-17T16:08:55 | 2021-05-17T16:08:55 | 366,071,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,962 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
import os, sys, io, re
import six
from data import create_vocab, load_vocab
from data import split_text_file, SPECIALS
from data import create_dataset, make_data_ite... | [
"noreply@github.com"
] | SRSTLCI.noreply@github.com |
0192859b8b887bddad03294ac6c0618bf2e5e2a9 | 0ce9fbb56b1bb142eed50491c00adeb5eed52d3f | /chatbot.py | 01cda0956f43c0b5dbe7a8189c09280cd267198e | [] | no_license | lucasB97/ARTUR | 0336a7c1bc0e6fc9504dbd46a1a57e2d7c4dd299 | 287625fa5f30923abb676b6ce3fb326ff8ceda81 | refs/heads/main | 2023-04-27T12:01:47.335612 | 2021-04-17T17:31:16 | 2021-04-17T17:31:16 | 316,075,171 | 0 | 0 | null | 2021-04-17T02:59:21 | 2020-11-25T23:21:38 | HTML | UTF-8 | Python | false | false | 1,095 | py | from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
# Creating ChatBot Instance
chatbot = ChatBot(
'A.R.T.U.R.',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
logic_adapters=[
{
'import_path': 'chat... | [
"lucasbessa708@gmail.com"
] | lucasbessa708@gmail.com |
a9c2ba7de5529d4ee631d9a51afa34de0f801869 | 78f3ffc90eec06e3ea638b0a87b73562dc311984 | /damsht.py | 9665480edef3cb1d8c6ffd418a561d9b1c8e1296 | [] | no_license | ashavt/dsh | a19647db44ce8112ce80184c6b5351cd16b649ec | deef4281ddd71d472b4b1d0b0b633634da3bf6a5 | refs/heads/master | 2022-12-22T07:05:45.672516 | 2018-02-18T09:13:54 | 2018-02-18T09:13:54 | 121,934,464 | 0 | 0 | null | 2022-12-08T00:54:53 | 2018-02-18T08:49:08 | Python | UTF-8 | Python | false | false | 2,224 | py | import requests
import datetime
class BotHandler:
def __init__(self, token):
self.token = token
self.api_url = "https://api.telegram.org/bot{}/".format(token)
def get_updates(self, offset=None, timeout=30):
method = 'getUpdates'
params = {'timeout': timeout, 'offset': offset... | [
"ashavt@yandex.ru"
] | ashavt@yandex.ru |
1a7e98eac3530ccd63f562cdfb6de3ad851647f7 | 5223229cbdbe883c6c1c09980c60d845e8255dd3 | /laliga_sb_analysis/Scripts/Barca_Manager_tenure_graph.py | e6efd1c05d1abfb8fc9f6185443ca62b15abc13d | [] | no_license | derrik-hanson/Python_Analysis_xG_Barca_plus | 39b112c47672b5f3133a1b439c942e4cee35791e | 65af5acb02deadb610b182a4b74b444114eb3ec6 | refs/heads/main | 2023-08-26T18:18:17.546730 | 2021-11-13T06:26:36 | 2021-11-13T06:26:36 | 422,980,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 12 19:39:17 2021
@author: Derrik Hanson
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 12 17:03:57 2021
@author: Derrik Hanson
"""
import plotly.express as px
import pandas as pd
manager_tenures = [
{'manager_name'... | [
"hanson.derrik@gmail.com"
] | hanson.derrik@gmail.com |
73140cdc70ade106181a0a7092b94bcbb63b6c41 | 4b0ac126af3d635be9d248ed5b2642dfe32b56d0 | /philips_app_engine/main.py | 040715b066a101a64a4565b120c2e2f6f29d8966 | [] | no_license | CosmaTrix/hackathon-git | b4d31a91531818fa943796a81def0a9626283e83 | cfbdf81aa20ff74ce3af3424018f8b90201f5fe4 | refs/heads/master | 2020-12-24T17:08:42.627668 | 2015-01-31T23:08:04 | 2015-01-31T23:08:04 | 30,111,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# 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 o... | [
"marco@travelbird.nl"
] | marco@travelbird.nl |
1da98ce1969f888ec8962c9239a84d4f7a580f78 | b72dbc51279d3e59cb6410367b671f8a956314c1 | /leet_code/leet_372.py | 5c1d0057a5ac67543ab059922519a69fe52287d6 | [] | no_license | ddobokki/coding-test-practice | 7b16d20403bb1714d97adfd1f47aa7d3ccd7ea4b | c88d981a1d43b986169f7884ff3ef1498e768fc8 | refs/heads/main | 2023-07-08T15:09:32.269059 | 2021-08-08T12:19:44 | 2021-08-08T12:19:44 | 344,116,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from typing import List
class Solution:
def superPow(self, a: int, b: List[int]) -> int:
if a in [1,0]:
return a
return int(pow(a,int("".join(str(i) for i in b)),1337))
| [
"44228269+ddobokki@users.noreply.github.com"
] | 44228269+ddobokki@users.noreply.github.com |
7c3197dc1c975ece63e9829ab29ce34714bbbbbf | 07d5dbbaecddb7ddb3341861fddd5490d54840af | /Computational_Physics/plot2.py | 4da8f397c3aca7afa346f8b38707c1ec770873ec | [] | no_license | julpotter/College-Projects-and-code | 49382e5df82a80c3f2c8162c610c7f465860782e | b1a0508f88a4a6ef1b04de66c9653c68ea03a3cc | refs/heads/main | 2023-03-01T15:25:51.618680 | 2021-02-05T00:54:02 | 2021-02-05T00:54:02 | 326,104,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py |
from __future__ import print
import matplotlib.pyplot as plt
g = 9.81
t0 = 0
y0 = 1.5 # initial height
v0 = float(input("Enter the initial velocity v0 :"))
#use lists to save position and time
y = []
t = []
ycalc = 0
tcalc = 0
#create a loop to populate our lists with values
while(ycalc >= 0):
ycalc = y0 + v0*... | [
"jpotter@udallas.edu"
] | jpotter@udallas.edu |
d2db1ee6174ddceb75d614d139e0bf52ec6cc9c6 | 65c8e86e276fb9ff8159af867d3793063e480d34 | /config.py | 037c7406057066de211e539d476d582edc9ada7d | [] | no_license | prosass83/ucbotplot | 504d0d16f1625c839d624f95017ca20597b1bf59 | 25b4bb10b4c637d4349ecab56f29a8f9720f7012 | refs/heads/master | 2020-03-10T03:36:40.328166 | 2018-04-12T00:34:43 | 2018-04-12T00:34:43 | 129,169,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # Twitter API Keys
consumer_key = "Uu04Kdr6N3SFmbEi334mhy9HQ"
consumer_secret = "d9WJsr5GCCdBI6wbyQopug6HeHpB3T2mKoez8DEHeJFy8D9ko0"
access_token = "2518417008-SC6yochSVIeAYERFWe3BClzJ2pit2iH6YWOUwcA"
access_token_secret = "FBkOuixi1SSXC9xP2k8PpxY07GWsoDZ3MvtC7lj1K59Xo" | [
"prosass@gmail.com"
] | prosass@gmail.com |
c8df0b5f2035c2386b9918776f917c3effb9da50 | 02fa1542bc428b64da276afdb46f2f2f7199f7a6 | /DataManager.py | ff0a2123a51d8a90d13e0f767a8e98c9f0b921d1 | [] | no_license | ulissesbcorrea/atae-lstm-theano-modified | bb4ba7b9786d00d5bf6da16cbbdd5067e8118e91 | e3bfa6a74df878ee7eec115c1a6e8fd1c4fcfa46 | refs/heads/master | 2022-12-13T16:36:10.256232 | 2020-09-14T09:21:14 | 2020-09-14T09:21:14 | 287,218,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py | # -*- encoding: utf-8 -*-
import numpy as np
import theano
class Sentence(object):
"""docstring for sentence"""
def __init__(self, content, target, rating, grained):
self.content, self.target = content.lower(), target
self.solution = np.zeros(grained, dtype=theano.config.floatX... | [
"ulissesbcorrea@gmail.com"
] | ulissesbcorrea@gmail.com |
f9d8cfefda12f3f541879b5d40b545e5a08c6842 | 0751fa2615079decfe8c1446f6dcbd7d1048bc31 | /HW3/Code.py | 10d368b3246cb1e5023cca87882b4c37397c8493 | [] | no_license | fatihselimyakar/AlgorithmAndDesign | 0fa4ca8454dc641a57161657ceca29952f45054e | 519107789c77f60dfc03036f7fda962f49203720 | refs/heads/master | 2021-01-06T01:50:07.846213 | 2020-02-17T19:55:35 | 2020-02-17T19:55:35 | 241,194,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | import itertools
#############QUESTION1###############
def createBoxList( size ):
boxes = []
for i in range(0,(int)(size/2)):
boxes.append("black")
for i in range((int)(size/2),size):
boxes.append("white")
return boxes
def boxTail(boxList,low,middle):
if(middle>=len(boxList)):
... | [
"noreply@github.com"
] | fatihselimyakar.noreply@github.com |
dcb1ace6bff0ebe626977fad8beb5902ed036ab4 | 8a742d701f6e3106f138fb5bb67a90de64c99abd | /lesson1/task2.py | 6dfca1d43eda210d4e9c6cd878da0521bc1d1796 | [] | no_license | alexabolot1/python-homework | ac51f20ad31b866d56783aaffc44d26582f6b113 | 5d719b5f5e3e67ef7e85a8f347d858255cb31ac7 | refs/heads/main | 2023-03-10T16:11:43.824269 | 2021-01-22T06:23:16 | 2021-01-22T06:23:16 | 330,006,488 | 0 | 0 | null | 2021-02-16T12:52:04 | 2021-01-15T19:43:41 | Python | UTF-8 | Python | false | false | 123 | py | a = input('Введите число')
print(f"Сумма вашего числа {int(a) + int(a + a) + int(a + a + a)}")
| [
"alexabolot@gmail.com"
] | alexabolot@gmail.com |
b04bcc13154c9db03c343251a42fa7662c29b486 | 52c737c2f062f7b07e35ab88e9ea042337463253 | /Weibo_v3/weibo_auto_handle.py | b1c5aade7198eb39ae4667657b948245d1f5a156 | [] | no_license | LichMscy/Weibo | b704779cdfe8c52063bb3c8e2d4e611ffd47bb37 | 6d3ed1e9709ef48c4627dfc69fd9ee9cbe7e628b | refs/heads/master | 2021-01-18T17:26:20.351718 | 2017-04-01T02:47:49 | 2017-04-01T02:47:49 | 86,798,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,101 | py | # -*-coding: utf-8 -*-
import re
import time
import datetime
import logging
import json
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.keys import Keys
import requests
from bs4 import BeautifulSoup
from util import parsedate
... | [
"jraqi1994@gmail.com"
] | jraqi1994@gmail.com |
d50868da0f47f63d568213860fafad9a262e1a9d | 926651d078851f96e71e2cc419fe87348b333ba3 | /mysite/mysite/urls.py | 1e5ccbb2f5ede005dbd394a42c6f06242f90e827 | [] | no_license | Kitabo258/secretary2 | edc9c55133aed40b2d66a89a3d32c90afd923297 | d89e74309abe1577aa4248c77ecc73412e27eba3 | refs/heads/master | 2021-08-14T15:11:43.836979 | 2017-11-16T02:32:12 | 2017-11-16T02:32:12 | 110,913,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"kiki901028@gmail.com"
] | kiki901028@gmail.com |
4f02cd88aa3d26c3be1bbb4b45c2049a6e8a6317 | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-i686-ucs4.egg/EGG-INFO/scripts/bed_extend_to.py | 2985cc3497acf222c69151a76b253624baa01752 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 1,132 | py | #!/afs/bx.psu.edu/project/pythons/linux-i686-ucs4/bin/python2.7
"""
Read BED file and extend each record to the specified minimum length. If chromosome
size information is provided trim extended intervals.
usage: %prog amount [ chrom_file ] < bed_file
"""
import sys
from bx.intervals.io import GenomicIntervalReader... | [
"mukarram819@gmail.com"
] | mukarram819@gmail.com |
916795017de2b6b98ecb83425e776e9a8975c090 | 8212c7b8c532681107f735643ab47bb20da177ac | /content_indexer/content_indexer.py | cb4003e22f16b032b2dee9eb2467f20f7d22044f | [] | no_license | jjenner689/Python | 31458c2ca0b612776387fce3bfd3ad56fd07f031 | 665c25077b86b7c802312d5ef4b1ec740b752f8b | refs/heads/master | 2016-08-10T17:06:34.721622 | 2015-10-05T15:00:24 | 2015-10-05T15:00:24 | 43,438,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | import string
import os
"""
Content Indexing Engine Capstone Project
You have a bunch of files in the file system! How can we index these files to make them easily searchable by keyword?
Indexing is a way of moving work 'upfront' so that when the user searches, less work is needed to get them the right search result... | [
"jjenner689@gmail.com"
] | jjenner689@gmail.com |
820e15a0e02606bf4165dcedc96fab3b641663ef | da8a2b9404e6bb9f3d6ca5a786fd01eddf440ec4 | /lyric/apps.py | 618476d0dd10601771f2dbee5c71aa66f38b89f0 | [] | no_license | BrightHao/Django_Music | c099e22d4606a8101f1be3be3a9f4e7b2babcc25 | c31df1a0d3f34594c65bddcc88815e22bc2f0902 | refs/heads/master | 2023-03-17T20:01:33.915667 | 2021-03-13T05:37:49 | 2021-03-13T05:37:49 | 347,283,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class LyricConfig(AppConfig):
name = 'lyric'
| [
"861759757@qq.com"
] | 861759757@qq.com |
f987964ac120b8b838a54bd03b1a6cd553eba48d | e4b52bd79c3a2fdf64f1927ddd04c87fa401fed8 | /myshop/migrations/0003_migrate_translatable_fields.py | cd9bbd763d5d51bc2a494ed80d982b7711caf5e0 | [] | no_license | ObsidianRock/shop | 8e1051efb298c65d6803fe76be07f222c19d60dd | 2a6613f28de3d577288653afc6b1a470fcde6a89 | refs/heads/master | 2021-01-19T10:01:26.797821 | 2017-04-13T16:02:34 | 2017-04-13T16:02:34 | 87,817,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
translatable_models = {
'Category': ['name', 'slug'],
'Product': ['name', 'slug', 'desc... | [
"ObsidianRock@users.noreply.github.com"
] | ObsidianRock@users.noreply.github.com |
cccee8c95ce17bb44043b1a20a899ac4161055be | ee22ec2076a79e8de3011377fe205bc87163ab9f | /src/basic-c3/func-let.py | 8c9c6ff3fea14adfbe60b86692ad4981a5710241 | [] | no_license | n18018/programming-term2 | 039a95c67372a38a34e2aa8c5975045a9fc731be | 86c455269eed312def529604e1ac3b00f476226c | refs/heads/master | 2020-03-22T08:59:29.545280 | 2018-08-29T07:57:37 | 2018-08-29T07:57:37 | 139,806,131 | 0 | 0 | null | 2018-07-05T06:42:11 | 2018-07-05T06:42:11 | null | UTF-8 | Python | false | false | 326 | py | # 関数を定義
def mul_func(a, b):
return a * b
def div_func(a, b):
return a / b
# mul_func関数を変数に代入
func = mul_func
# 代入した変数で関数を使う
result = func(2, 3)
print(result)
# div_func関数を変数に代入する場合
func2 = div_func
result = func2(10, 5)
print(result)
| [
"n18018@std.it-college.ac.jp"
] | n18018@std.it-college.ac.jp |
b477a9cee5d1d50b4effb6e86d254fa10629c6f1 | d63811f9944dead8a745a46e1382f64800c72c5e | /linuxYazKampı/sonuç/petimebak/adverts/views.py | ea08662d7d76a0d3d26ba3224ffcc6795ba666ad | [] | no_license | Arciles/Notes | 9dd77425209b9a10a6503dcd27a5c48c9666c35b | 095e361bdb11ca72c3bff801ed4a9b938827c84a | refs/heads/master | 2020-12-11T05:46:11.416975 | 2014-11-22T12:08:37 | 2014-11-22T12:08:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from datetime import datetime
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response, get_object_or_404, redirect
from django.template import RequestContext
from adverts.forms import AdvertCreationForm, PhotoCreationForm
fr... | [
"salihklc91@gmail.com"
] | salihklc91@gmail.com |
49d7b8bebbad46079eac386c638ee23415db1cdd | 0c8f747e59846ddd7d2479930d38db361ff59bd6 | /secrets.py | b6eb1026c3cc29b7a0e1dd2f39b9bbafa41a8228 | [] | no_license | PaveTranquil/Texity | 39289163e1c5b4ce4d3dea7d718916db8661890a | a4798bbf0cf89496ca12bdb1cd48a3ef9ce4566c | refs/heads/main | 2023-04-13T06:28:32.349938 | 2021-04-27T20:00:52 | 2021-04-27T20:00:52 | 354,387,657 | 3 | 1 | null | 2021-04-06T05:04:37 | 2021-04-03T20:26:48 | Python | UTF-8 | Python | false | false | 69 | py | with open('apikey.txt') as file:
API_KEY = file.readline().strip()
| [
"noreply@github.com"
] | PaveTranquil.noreply@github.com |
ae8bf909464124ce2e2e1c318f37dd319d3ef4ac | 5a99d1f7e0363878a5a94732598410a06008d2ed | /multimeter/_tasks.py | 204079b61c271657c9be403e1e4f4d875d9109f1 | [] | no_license | av-pavlov/multimeter | d8b93e4a6acec420e8593ea8864db9d67ab4a177 | d8132db1e5e0c3b153ab142599c93b302c18fbf5 | refs/heads/master | 2021-04-29T18:44:15.300083 | 2018-03-23T04:38:45 | 2018-03-23T04:38:45 | 121,699,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,491 | py | # -*- coding: utf-8 -*=
import sys
import subprocess
from collections import OrderedDict
from os import listdir, stat
from os.path import isdir, join, isfile
from collections import OrderedDict
from .helpers import load_json, save_json, validate_code, check_or_create_dir, load_tests
class Tasks:
""" Массив олимп... | [
"7911562+av-pavlov@users.noreply.github.com"
] | 7911562+av-pavlov@users.noreply.github.com |
4a460011144f616f403fdf0cd4870acf4bd66824 | 3bdc38b3ba7bcd87f10f24fdae3832cc8344ffba | /douban_spider/doubanspider/douban_image_pipelines.py | c34d5d2d875e4668c16b617c5a0411846c223f8e | [] | no_license | sheng-jie/Learning.Python | b1eee7fe53b0b11b8ca4e2e8716dd6ebb06948d6 | 61f0336c76b9a769021238664142cbc0e4a39d02 | refs/heads/master | 2020-03-20T23:01:44.507048 | 2018-06-19T01:46:21 | 2018-06-19T01:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import os
import scrapy
from scrapy.exceptions import DropItem
from scrapy.pipelines.images import ImagesPipeline
class DoubanImagesPipeline(ImagesPipeline):
def get_media_requests(self, item, info):
for image_url in item['image_urls']:
yield scrapy.Request(image_url, meta={'item': item})
... | [
"ysjshengjie@live.cn"
] | ysjshengjie@live.cn |
3eeca3eaadcaf592565384f53f3160774272b0ca | 86f5ed0463be0b32508865889f5a77fdda549c22 | /raspberryPi/ultrasonic_client.py | 3441acce60eca5f0c6ba2d110d8c8b66f0352044 | [
"BSD-2-Clause"
] | permissive | pseudoyim/galvaneye | e6d7d210bacab5841e98cf275744dcc4ea6454aa | c7c1f1bb893fb8fb6f83c6765473d506979ec4b0 | refs/heads/master | 2023-01-16T00:43:27.283533 | 2020-11-22T03:09:58 | 2020-11-22T03:09:58 | 70,966,508 | 68 | 25 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | from socket import *
import time
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
# create a socket and bind socket to the host
client_socket = socket(AF_INET, SOCK_STREAM)
client_socket.connect(('10.10.10.2', 8002))
def measure():
"""
measure distance
"""
GPIO.output(GPIO_TRIGGER, True)
time.sleep(0... | [
"paul.j.yim@gmail.com"
] | paul.j.yim@gmail.com |
8c063266cbd431b2d5053fd81731c057bd7c9d32 | ca1da3b2d522566132ef48319bd2328813a0a0cc | /tests/callbacks/test_progress_bar.py | f621e7022801269b16d12ae7f3d73f8318b9fa95 | [
"Apache-2.0"
] | permissive | anthonytec2/pytorch-lightning | cc4724c3493e93c6c5b89982abe9caf78a969ee2 | 9759491940c4108ac8ef01e0b53b31f03a69b4d6 | refs/heads/master | 2022-11-18T15:48:40.110614 | 2020-07-17T09:54:24 | 2020-07-17T09:54:24 | 273,110,455 | 1 | 0 | Apache-2.0 | 2021-05-13T20:38:51 | 2020-06-18T01:06:34 | Python | UTF-8 | Python | false | false | 6,732 | py | import pytest
from pytorch_lightning import Trainer
from pytorch_lightning.callbacks import ProgressBarBase, ProgressBar, ModelCheckpoint
from pytorch_lightning.utilities.exceptions import MisconfigurationException
from tests.base import EvalModelTemplate
@pytest.mark.parametrize('callbacks,refresh_rate', [
([],... | [
"noreply@github.com"
] | anthonytec2.noreply@github.com |
1908dbef5523b4c7baf3492790e727cfa3424bd7 | 13a1fae2f825f6c16fa15e47556e4e0b33da15b2 | /stepik course/stepik_3_1_1.py | f1d88368217a5e569d6bd9ca3bbf9a90f41a9d1a | [] | no_license | kubenet/pyLearn | 98a4a2c3243f2c03d00af82451863d65a8a38350 | 3d850de58ba525040c1f72730dcd31368766af53 | refs/heads/master | 2020-07-20T21:13:14.266289 | 2020-03-10T15:53:55 | 2020-03-10T15:53:55 | 206,710,216 | 1 | 0 | null | 2019-09-06T04:05:23 | 2019-09-06T04:05:22 | null | UTF-8 | Python | false | false | 786 | py | # Напишите функцию f(x), которая возвращает значение следующей функции, определённой на всей числовой прямой:
# 1−(x+2)^2, при x≤−2
# -x/2, при −2<x≤2
# ((x−2)^2)+1, при 2<x
#
# Требуется реализовать только функцию, решение не должно осуществлять операций ввода-вывода.
# Sample Input 1:
# 4.5
# Sample Output 1... | [
"kubenet@gmail.com"
] | kubenet@gmail.com |
a03c242a1a98c722662d25054877d5f1d75f61b1 | 8b1ef7f1a7e11b8c39b0546f521a4533f82bb6ba | /PyQt5- Login Form/main.py | 57c90f7324b9bdcd010b805087c425faa78e58d7 | [] | no_license | muhammedzahit/QT5 | 4b6c8e1461f352d4143949486019071285e42d53 | b82283d517023d5860d37e421e5b9babad503469 | refs/heads/master | 2023-02-03T08:19:31.775039 | 2020-12-17T10:25:08 | 2020-12-17T10:25:08 | 289,100,610 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,098 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
import sqlite3
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSize... | [
"muhammetzahitaydin@gmail.com"
] | muhammetzahitaydin@gmail.com |
7ac445a7981cc09e31bfafce07f08ab38310efce | 2a1146bd74be4ae270bd2dc105e1917aa13a3bfe | /gotti/modules/modules.py | 346c86de735720927666368efd616105af0b2a46 | [
"MIT"
] | permissive | HellBringerReal/Telegram-Bot | 0a2721ed04667c6bb1347f7ccdf0e657a360a71a | c204de5e8212fd32aaae6afd92c2bc7999457d4f | refs/heads/master | 2023-06-28T20:34:50.909101 | 2021-08-11T20:22:27 | 2021-08-11T20:22:27 | 290,599,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,947 | py | import importlib
from telegram import Bot, Update, ParseMode
from telegram.ext import CommandHandler, run_async
from gotti import dispatcher
from gotti.__main__ import (IMPORTED, HELPABLE, MIGRATEABLE, STATS, USER_INFO, DATA_IMPORT, DATA_EXPORT, CHAT_SETTINGS,
USER_SETTINGS)
from gotti.mo... | [
"noreply@github.com"
] | HellBringerReal.noreply@github.com |
795d213349a1ac367a0dcc6c7f13ed3a859b131d | c385ed950cd8512915f97a8bbca466349b647a56 | /code/model.py | c9fc26614280c37bf6aa54a2050dc001f870e95d | [] | no_license | livenb/Ultrasonic_Nerve | b5f2c9c8a0bd0e2e3e654ab247f1dca6fa65b847 | 39f5c036dbf3c63ebaae5c96d86ee6005ccfe3af | refs/heads/master | 2021-01-10T23:08:18.455410 | 2017-02-09T01:42:58 | 2017-02-09T01:42:58 | 70,640,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | from __future__ import print_function
import cv2
import numpy as np
from keras.models import Model
from keras.layers import Input, merge, Convolution2D, MaxPooling2D, UpSampling2D
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRateScheduler
from keras import backend as K
from d... | [
"livenb666@gmail.com"
] | livenb666@gmail.com |
59aed57ba62f13ab930efe93f2f9d078ea11c2d3 | f144f0f34227acf229a991d09db18281cd6b5ac6 | /.c9/metadata/environment/abscences/models.py | 269d869f41bb85e539bc1b9b841e06464feed82d | [] | no_license | KikiDow/TUD_HDP_PSE3S | 42dde541a6d65d0c764def842a1e2732fec740ac | cd21c27651e442e1ed84518c1d567f1d52f215c0 | refs/heads/main | 2023-04-22T23:25:25.966531 | 2021-05-09T14:10:01 | 2021-05-09T14:10:01 | 313,276,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | {"filter":false,"title":"models.py","tooltip":"/abscences/models.py","undoManager":{"mark":2,"position":2,"stack":[[{"start":{"row":8,"column":55},"end":{"row":8,"column":56},"action":"insert","lines":["/"],"id":2},{"start":{"row":8,"column":56},"end":{"row":8,"column":57},"action":"insert","lines":["/"]}],[{"start":{"... | [
"ec2-user@ip-172-31-0-153.ec2.internal"
] | ec2-user@ip-172-31-0-153.ec2.internal |
614d20e490badf198728acb806f1b442ff8a43b7 | 9ab642dbc8b5409673e5b2f90e009aa4b5634c32 | /st_network_server.py | ea0366083d46d6693412626cfecd9193cb995a67 | [] | no_license | sunpu/stwhiteboard | 65c20aab6049acc0ca1b5b1924ae048671e119ee | 26cb02b593076e65496beca162be24404bee690a | refs/heads/master | 2021-09-07T12:40:49.138494 | 2018-02-23T01:44:37 | 2018-02-23T01:44:37 | 115,606,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,122 | py | #!/usr/bin/python2.7
# -*- coding:utf-8 -*-
import SocketServer
from time import ctime
import json
courseDict = {}
class Course:
def __init__(self, courseID):
self.courseID = courseID
self.clientDict = {}
self.finishList = []
HOST = ''
PORT = 10001
ADDR = (HOST, PORT)
ROOT_PATH = './fil... | [
"sunpumsn@hotmail.com"
] | sunpumsn@hotmail.com |
b6d4b00e9ba7fd2e1ffb15551e74584d5f265b5d | ed61c386fbe2ab18a73e6c4ac4c581540638dba6 | /src/old verion of code/propagation.py | d0295ff5fd4ade51e1ce136c9a8ddc81f37f1650 | [] | no_license | allenqaq/Online-Social-Network | 5f244cbf3b9f53fe68a926847e485c3a5ab9782e | c6f863827521ed787cf0120c3e02ae0485004a6a | refs/heads/master | 2020-03-08T17:34:54.384051 | 2018-12-21T08:42:34 | 2018-12-21T08:42:34 | 128,272,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | '''
Created on Mar 5, 2017
@author: allen
'''
from math import sqrt
import numpy as np
# def mean(lst):
# """calculates mean"""
# sum = 0
# for i in range(len(lst)):
# sum += lst[i]
# return (sum / len(lst))
# def stddev(lst):
# """calculates standard deviation"""
# sum = 0
# mn ... | [
"allenqaq555@gmail.com"
] | allenqaq555@gmail.com |
c6c061e8c03a18c82ab3cd76a3c826f444b900f1 | 14c831041866edeed1fb3a5643405542fe736939 | /datasetGen.py | f1e20ec710d378afc9b9e20cff19a3c148fd8dba | [] | no_license | Rumee040/Retinal-Vessel-Segmentation-using-Convolutional-Network | d4a37d72d8fde637b53c5d2e279c9848d1dc1313 | 41333730fd2c27a99c0bbb149dfaa739c04ece50 | refs/heads/master | 2021-05-06T06:01:16.863817 | 2017-12-20T11:58:19 | 2017-12-20T11:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | #import cv2
import numpy as np
from sys import exit
from PIL import Image
import matplotlib.pyplot as plt
import random
## defining parameters
patchSize = 27 # rectangular patch with size patchSize*patchSize*channel
patchPerImg = 1000 # patches per image
numImage = 20 ... | [
"noreply@github.com"
] | Rumee040.noreply@github.com |
811cf7cfd7af8000864d8ca0048863f2d418d819 | a9756247d833412e64b18e741c293e7cab9c0b5b | /Command Line/enrollment.py | 3e6491fc442bd5f6d3ef46d8be2a7ca14fa00ac7 | [] | no_license | guennithegun/Command-Line | e44b2b5b7ceac9adc7894f37bf29396b5557dfff | 7c01985129415a56250fa679c9290c3395bf5158 | refs/heads/master | 2020-04-08T04:05:26.323362 | 2018-11-25T05:59:43 | 2018-11-25T05:59:43 | 159,002,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import pandas as pd
if __name__ == "__main__":
data = pd.read_csv("data/CRDC2013_14.csv", encoding="Latin-1")
cols =["SCH_ENR_HI_M", "SCH_ENR_HI_F", "SCH_ENR_AM_M", "SCH_ENR_AM_F", "SCH_ENR_AS_M", "SCH_ENR_AS_F", "SCH_ENR_HP_M", "SCH_ENR_HP_F", "SCH_ENR_BL_M", "SCH_ENR_BL_F", "SCH_ENR_WH_M", "SCH_ENR_WH_F... | [
"noreply@github.com"
] | guennithegun.noreply@github.com |
9d58d840d5920137fe056298c28671343069f204 | ee8ee84343e5efd184e20cb474abdd04425aaf7b | /messenger/models.py | 2992db2413316e882741ef7602bad696b1bf617c | [] | no_license | Amrsaeed/codetouch | 978924b59bb68da05f2307fbc2deed31d10aa927 | a70c6d6241e57692501034a5bf6f5d5634738ef1 | refs/heads/master | 2021-01-22T08:18:00.354453 | 2019-01-14T17:05:07 | 2019-01-14T17:05:07 | 92,609,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Message(models.Model):
message_text = models.CharField(max_length=2000)
sentOn = models.DateTimeField('Sent On')
sender = models.CharField(max_length=150, default='None')
reciever = models.CharFi... | [
"amrsaeed@aucegypt.edu"
] | amrsaeed@aucegypt.edu |
aea9bbdf52c15b1029619192896682d0da4103c2 | a4b46342bc37d2d08b19934c5230928575d9cc39 | /getEmailByRegex.py | 7ad1f201c2b92c1916a084f220d32e11906a7fd5 | [] | no_license | yenchenhuang/regex_practice | 5daec1e13903ad233b2d67dba145593e4a0e7966 | 59f138639f783198d813572f2487566955355d0b | refs/heads/master | 2020-03-26T05:34:41.882199 | 2016-06-22T09:13:52 | 2016-06-22T09:13:52 | 144,563,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import re
def is_email(input):
pattern = r"([\w._]+)@([\w_\-.]+?)"
match = re.match(pattern, input)
if match:
return True
else:
return False
def get_emails(paragraph):
pattern = r"[\w._]+@[\w_\-.]+"
matches = re.findall(pattern, paragraph)
return matches
def get_accounts(paragraph):
pattern = r"([\w.... | [
"yenchenhuang@kkbox.com"
] | yenchenhuang@kkbox.com |
69163c15593175ec5108d8614e170be4b086b0cc | d5a84ba1417d59d6b8eff26124a37ba7186d7e33 | /test_calculator.py | a303fcf1954dd8cadf456028cef326d495242bd5 | [] | no_license | jonathanzerox/tdd-python | 7c4ce49acb6eec562c9a382e9aab83cd1963aa23 | cd718ecdd646046dd0e2d437d050d75f16378280 | refs/heads/master | 2021-08-23T17:39:47.264755 | 2017-12-05T22:54:25 | 2017-12-05T22:54:25 | 113,240,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import unittest
from calculator import Calculator
class TestCalculator(unittest.TestCase):
def SetUp():
print("Setting things up")
def TearDown():
print("Releasing allocated resources back")
def test_addition(self):
calc = Calculator()
self.assertEqual(4, calc.add(2, 2))
... | [
"jonathanzerox@hotmail.com"
] | jonathanzerox@hotmail.com |
c74aea42a9ebf71293d70dbcefafdea417e21e02 | f66b0fda3a16eb7ceb8a7ceb63dcbc373c4ece2d | /smart_QC/libs/json_field/fields.py | 7fcada3804ff579ad916c9cef24d6cb98f62d8c2 | [] | no_license | zcyuefan/smart_QC | 9c82dd7b8a25bfcd0231195b1a797e3f491f3272 | fc8aaec48203065f09ffde7f318c3e39680092ba | refs/heads/master | 2021-01-19T04:55:40.300511 | 2017-09-13T02:31:48 | 2017-09-13T02:31:48 | 81,196,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,430 | py | from __future__ import unicode_literals
from .utils import is_aware
from .forms import JSONFormField
try:
import json
except ImportError: # python < 2.6
from django.utils import simplejson as json
from django.db import models
from django.core import exceptions
from django.utils.translation import ugettext_l... | [
"zcyuefan@126.com"
] | zcyuefan@126.com |
4f8cdbd5a7b33f05ef45e53e15cec978c09c4e1f | a86acf28472700008261fb3709134483b4d4c7e2 | /myutils/seq2seq_peeky.py | 39147587ca4e866f28e07cc94f092969ca0bb185 | [] | no_license | s1len7/ai-rnn | 5a0ab40e7aa0371f41131e99371991c3aeecfa98 | e3f0a07f1a5e4681b2209276b5f3d6a5d4901f1d | refs/heads/master | 2022-11-30T13:55:41.267065 | 2020-07-29T11:19:18 | 2020-07-29T11:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 1 11:24:24 2020
@author: shkim
"""
"""
## seq2seq 성능 개선
* 1) 입력 데이터 반전(Reverse)
* 2) 엿보기(Peeky)
"""
"""
## seq2seq 성능 개선 : 엿보기(Peeky)
### base seq2seq 모델에서의 동작
* Encoder는 입력문장(문제문장)을 고정길이 벡터 h로 변환함
* 이때 h안에는 Decoder에 필요한 정보가 모두 담겨 있음
* 즉 h가 Decoder에 있어서 유일한 정보인 셈임
* 최초... | [
"shkim.hi@gmail.com"
] | shkim.hi@gmail.com |
80e5198c86ed27d6c8417c69bd3be133fb25d9a9 | 87738f6f80f4fe03ac15d6de02b9b51f4e340c4b | /Part 3 - Classification/Section 10 - Support Vector Machine (SVM)/svm.py | d94e5cd0a3aee556681f4db83424c2c51038813a | [
"MIT"
] | permissive | Nikronic/Machine-Learning-Models | b4209dcc5f5a428da9447bc40fc93b9f0e171880 | 9fb48463ee2211eec800b2436699508f55d5ee28 | refs/heads/master | 2021-11-10T14:50:56.425443 | 2021-11-07T15:42:48 | 2021-11-07T15:42:48 | 142,788,604 | 34 | 13 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 17 23:26:31 2018
@author: Mohammad Doosti Lakhani
"""
# Imporing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
x = dataset.iloc[:,2:4].values
y = dataset.iloc[:,4].val... | [
"nikan.doosti@outlook.com"
] | nikan.doosti@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.