blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55968e8443fcb461836ed5f78744c1e4c108bce1 | a7b0fccb92d6ccf24669ae23ce9275a05b99b527 | /main.py | 8d821260df99e82719e618bbd95d0b4d79a2887a | [] | no_license | tdameros/minesweeper | 18d2aedaf01e84f1ee9dc05645524bdf5c95321a | cf03ccd135b8fec718b3909217159db35e5fce48 | refs/heads/main | 2023-08-11T13:15:21.616502 | 2021-09-13T18:45:03 | 2021-09-13T18:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,171 | py | import sys
from PySide6 import QtWidgets
from minesweeper import Minesweeper
class MyWidget(QtWidgets.QWidget, Minesweeper):
def __init__(self):
self.mines = 30
QtWidgets.QWidget.__init__(self)
Minesweeper.__init__(self, height=14, width=18, mines=self.mines)
self.setMaximumSize(... | [
"tomdamerose@gmail.com"
] | tomdamerose@gmail.com |
4b6c1a8e10bab33aaa6629088bb2f48ab5184699 | d2bb13cec7faf28e3d268312298f03c99806bd8b | /calc_tdc_offset/corelli_calc_tdc_offset_func_loop.py | f73d0e5a8641d0c738264885957499cec67aac99 | [] | no_license | rosswhitfield/corelli | 06a91c26556ea788f20f973a1018a56e82a8c09a | d9e47107e3272c4457aa0d2e0732fc0446f54279 | refs/heads/master | 2021-08-07T14:04:24.426151 | 2021-08-03T19:19:05 | 2021-08-03T19:19:05 | 51,771,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from corelli_calc_tdc_offset_func import *
for i in range(637,640):
#for i in range(2100,2110):
filename='CORELLI_'+str(i)
results=calc_tdc_offset(filename)
print results
| [
"whitfieldre@ornl.gov"
] | whitfieldre@ornl.gov |
45c9d5ee3a7cc8b934eac813c9bce43d8dc8d910 | 13d4a9fda8c393f6c588964b1cca360935491488 | /study/Dictionary.py | 9f1b61960186c17a786182233b34db7ed9bf8efc | [] | no_license | BecomingBigdataAnalyst/DataAnalysis-Python | 66ba0f93cc455adc04d496950f5ce6a2e7cb3cec | a19e181b8bd94e153c79539e8fdbd8a9562a831f | refs/heads/master | 2021-04-07T02:01:21.350824 | 2018-03-19T06:22:17 | 2018-03-19T06:22:17 | 125,472,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | #๋์
๋๋ฆฌ : ๋งคํ ์๋ฃ๊ตฌ์กฐ
#ํค์ ๊ฐ์ ์ฐ๊ฒฐ์ํค๋ ๋ฐฉ์์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ค๋ฃจ๋ ๋ฐฉ๋ฒ ์ ๊ณต
#ํค๋ ์ ์ฅ๋ ๋ฐ์ดํฐ๋ฅผ ์๋ณํ๊ธฐ ์ํ ๋ฒํธ๋ ์ด๋ฆ
#๊ฐ์ ๊ฐ ํค์ ์ฐ๊ฒฐ๋์ด ์ ์ฅ๋ ๋ฐ์ดํฐ
#๋ฐ๋ผ์, ํค๋ง ์๋ฉด ๋ฐ์ดํฐ๋ฅผ ๋ฐ๋ก ์ฐพ์ ์ ์์
#๋์
๋๋ฆฌ๋ { } ์ ํค:๊ฐ ํํ๋ก ์ด์ฉ
#ํค:๊ฐ์ด ์ฌ๋ฌ ๊ฐ ์กด์ฌ ํ ๊ฒฝ์ฐ , ๋ก ๊ตฌ๋ถ
menu = {'1': 'newSungJuk', 2:'showSungJuk', 'abc':'modifySungJuk'} #ํค๋ ๋ค์ํ ์๋ฃํ์ผ๋ก ์ฌ์ฉ
book = {
'bookid': '1',
'bookname' : '์ถ๊ตฌ์์ญ์ฌ' ,
'publi... | [
"jjh9523@naver.com"
] | jjh9523@naver.com |
29a9af3be2a85ff3e255f7f20682d60548aa28d3 | 809b5e7c80e72e890cdc2d94ee446d492fea47ba | /adminApp/migrations/0009_instructorfeedback_has_response.py | d2277bc9d3408d265b7d6981e97ecb71dc00e848 | [] | no_license | JoelMekonnen/My-Lingua | fdf0034242bb7fe793ebfa8df8d4751e3775e051 | 41b7cb4f780c68e8bf2ac30923e3d7d4fa424778 | refs/heads/master | 2023-05-25T10:59:23.680281 | 2023-05-14T18:28:20 | 2023-05-14T18:28:20 | 343,859,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 3.1.7 on 2021-03-09 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adminApp', '0008_adminfeedback_instructorfeedback'),
]
operations = [
migrations.AddField(
model_name='instructorfeedback',
... | [
"joelmek.gmail.com"
] | joelmek.gmail.com |
47ede7a086f2a0feeeddf75aef608e80939a862e | f0d85de6e413e360223dad170e782974943e11db | /check_wins.py | b1fdcf841827aa4dd224a9cbf9d2e920a24ef2d3 | [] | no_license | AndrewSaltz/ThePub | b9f88a6ac125bf83a50d59cf07b1f4c950d2d2c8 | fa9117075e2d8b077496d3262036141ba078b70a | refs/heads/master | 2021-01-11T09:40:36.141742 | 2017-08-26T19:11:23 | 2017-08-26T19:11:23 | 77,493,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | import os, django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thepub.settings")
django.setup()
#Get models
from teamsports.models import Teams, Schedule
#Get F
from django.db.models import F
#Make all wins, losses, ties at zero
Teams.objects.all().update(loss=0, win=0, tie=0)
#The logic, practice
for games in ... | [
"amsaltz@gmail.com"
] | amsaltz@gmail.com |
43882d5e19e6886e6c2e341b84dd6b2d6a68f830 | 4943adf7e95a8fb4b56f34f71477d942de22886c | /ecom/api/product/models.py | f714be11292e40d28434f45bb6a71b1db346845d | [] | no_license | Harsha196/Full-Stack-React_and_Django-EcommerceSite | 0960b0157429756fca1a0351b36828cd7c9d88b1 | eb8f931a8c05ea0748446bb390081a17c2103b39 | refs/heads/master | 2023-01-31T07:25:53.881230 | 2020-12-13T11:31:18 | 2020-12-13T11:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.db import models
from api.category.models import Category
# Create your models here.
class Product(models.Model):
name=models.CharField(max_length=50)
description=models.CharField(max_length=250)
price=models.CharField(max_length=50)
stock=models.CharField(max_length=50)
is_active=model... | [
"jayam.ganapathi12@gmail.com"
] | jayam.ganapathi12@gmail.com |
5e075deff90a093e627ea1cd97c6ebe0f39f8755 | bb903d05fa6136f785001c562ee55ee02ca04526 | /networktest.py | a211bd13b912e5d955bdcbbdf824b9b3eaca7390 | [] | no_license | NRiess/Prediction-of-Muscle-Activation | 85f618bea71d3e3f59823129e9015eabacd5476a | d6b8ab20793d9a97b795004e3d5f285ba65c5db8 | refs/heads/main | 2023-05-14T09:58:19.622849 | 2021-06-05T18:55:55 | 2021-06-05T18:55:55 | 373,056,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,155 | py | # testsetting for evaluating multiple networks
import numpy as np
import tensorflow as tf
from operator import itemgetter
from numpy import savetxt
import matplotlib.pyplot as plt
import os
from functions import *
from mpl_toolkits.mplot3d import Axes3D
import time
import math
from tensorflow.keras.utils imp... | [
"noreply@github.com"
] | noreply@github.com |
4bbac5316f308b5d3e670762dc88786d18c9bee7 | 64497b25c73cfae34b0aa37b3f7d5f042db54f15 | /object_detection/detect_objects.py | ed6c2bd1e72fce4be7c48d40a961f5d8eb8b240e | [
"MIT"
] | permissive | guidocalvano/ObjectDetection | 904107ecb94cd6af92f258b97b68def0a9646780 | cfa75084ea65f49542ac5a2a6210e565373530cf | refs/heads/master | 2020-11-24T08:28:55.717114 | 2019-01-07T22:24:04 | 2019-01-07T22:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,136 | py | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
import json
import time
import glob
from io import StringIO
from PIL import Image
import matplotlib.pyplot as plt
from object_detection.utils import label_map_util
from object_detection.pro... | [
"garbagedetectionamsterdam@gmail.com"
] | garbagedetectionamsterdam@gmail.com |
1bee663d7c4ec53d0aae190aa76827e89a0ec34e | b65032c8b76dd2115fd37ae45669a44537ad9df4 | /Code/dictionary_words.py | a1ae64f3596492ec99008c0aa807de8a02d24fd2 | [] | no_license | reikamoon/CS-1.2-Intro-Data-Structures | a795dc8ca9e52f02cafb9d0782a80632bcc7b206 | 40b19ad8d93631bbdbd589fa95b0b3a7ec40b53a | refs/heads/master | 2022-12-22T00:22:05.667638 | 2019-12-11T20:45:11 | 2019-12-11T20:45:11 | 220,103,212 | 0 | 0 | null | 2022-12-08T06:16:43 | 2019-11-06T22:35:08 | Python | UTF-8 | Python | false | false | 642 | py | from random import randint
from os import sys
def get_words():
words = list()
with open('/usr/share/dict/words', 'r') as f:
words = f.read().split('\n')
return words
def random_words(integer_input, word_list):
sentence = str()
while integer_input > 0:
index = randint(0, len(words) ... | [
"ambrosio.anjelica@gmail.com"
] | ambrosio.anjelica@gmail.com |
6dfbfef776daceb15fe420c71a7effaf85379b71 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tests/layer_tests/pytorch_tests/test_convnd.py | 8b46b2992d2c072c48f4b6aaa35fbb0cdf2c3517 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 10,460 | py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
from openvino.frontend import FrontEndManager
from openvino.frontend.pytorch.ts_decoder import TorchScriptPythonDecoder
from pytorch_layer_test_class import PytorchLayerTest
class TestConv2D(PytorchLayerTest):
def _pr... | [
"noreply@github.com"
] | noreply@github.com |
3e61b344581e41fde3a12da57f13f08a18175541 | 93659df3bffee1874112e44fc081de71a35da866 | /code/zhuanqu_test.py | ddc57b840f7f03640bf3a176da73ecaca2e9d8f0 | [] | no_license | schemmy/hupudata | 03c9fe92e69241ea253d5d0d9f462b1d7bcf7c0b | a22be24e9fe38215ad217436a7198c4c9bf4e62b | refs/heads/master | 2021-05-09T00:18:26.675710 | 2018-02-14T00:22:31 | 2018-02-14T00:22:31 | 119,740,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py | <<<<<<< HEAD
##################
# @Author: Chenxin Ma
# @Email: machx9@gmail.com
# @Date: 2018-02-02 17:58:59
# @Last Modified by: schemmy
# @Last Modified time: 2018-02-13 19:22:28
##################
from os import listdir
from os.path import isdir, join
import pandas as pd... | [
"chm514@lehigh.edu"
] | chm514@lehigh.edu |
9a5313aa163c400517d5d6dbb6c1015e050657bd | 9567d8d9572a0f6dbf45139a7d2dde8ba8554c58 | /CNN/รrnek_รงalฤฑลmalar/El_yazisi_siniflandirma/mnist.py | 0d3fcef2329a7ff0019af068222d4815fbc5a680 | [] | no_license | kilicmustafa/Deep_Learning | 4b0ee82aed11ade6fe9487b16438387021388126 | 16a69f71c5d0f459b508a21eae942ac9575179d5 | refs/heads/master | 2022-07-07T11:01:33.313185 | 2020-05-11T19:15:08 | 2020-05-11T19:15:08 | 261,508,705 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | #import list
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
#%% load dataset
train = pd.read_csv("mnist_train.csv")
print(train.shape)
print(train.head(5))
test = pd.read_csv("mnist_test.csv")
print(test.shape)
print(train.head(5))
#%% X- Y separation
y_train = train[... | [
"51002612+kilicmustafa@users.noreply.github.com"
] | 51002612+kilicmustafa@users.noreply.github.com |
13f0a300bed6f6a9e0f1e0a34c142e75fbc7d12e | 7a43b71484b8ef010c0d4cece58ffdd379f15ac6 | /Python_for_data_analysis/Chapter_03/cprof_example.py | 2c670d022ec60962bca637c65142fba204dfee5c | [
"MIT"
] | permissive | ALEXKIRNAS/DataScience | 7ea6155bd786920b216ed4363e03c79b5540a6cf | 14119565b8fdde042f6ea3070bc0f30db26620c0 | refs/heads/master | 2021-01-24T06:16:08.621483 | 2017-12-28T22:53:03 | 2017-12-28T22:53:03 | 93,309,479 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import numpy as np
from numpy.linalg import eigvals
def run_experiment(niter = 100):
K = 100
results = []
for _ in range(niter):
mat = np.random.randn(K, K)
max_eigenvalue = np.abs(eigvals(mat)).max()
results.append(max_eigenvalue)
return results
some_results = run_experiment()
print(np.max(some_results))
| [
"alexkirnas@ukr.net"
] | alexkirnas@ukr.net |
0ea962df3cf9877904f1ea8f5f1b0f67b3f881f2 | a3d65aa2be7872db1e6bd8da94764b71abdebd99 | /week09/labUseFib.py | 44fa4176083f798f99ee7111d33117a3ba1277b1 | [] | no_license | ssteffens/myWork | 2a2854b2aeed758a44969276bde36a79a6554558 | 354b413a97c0e1f5adf26b26ca09c2e069af4dff | refs/heads/main | 2023-04-07T06:20:37.737877 | 2021-04-18T15:26:58 | 2021-04-18T15:26:58 | 331,762,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # This program prompts the user for a number and prints out the fibonacci sequence of that many numbers
# Author: Stefanie Steffens
import labMyFunctions
nTimes = int(input("how many: "))
print(labMyFunctions.fibonacci(nTimes))
| [
"77699063+ssteffens@users.noreply.github.com"
] | 77699063+ssteffens@users.noreply.github.com |
082ae04a5c36262e14182602b53ff46f5aa16fcf | 1f08436bab6cd03bcfb257e8e49405cbc265195a | /8_function/Sample/functions_ex3.py | 0b362e6fc10e31311f529f7db4e12747dd2833cc | [] | no_license | kuchunbk/PythonBasic | e3ba6322f256d577e37deff09c814c3a374b93b2 | a87135d7a98be8830d30acd750d84bcbf777280b | refs/heads/master | 2020-03-10T04:28:42.947308 | 2018-04-17T04:25:51 | 2018-04-17T04:25:51 | 129,192,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | '''Question:
Write a Python function to multiply all the numbers in a list.
'''
# Python code:
def multiply(numbers):
total = 1
for x in numbers:
total *= x
return total
print(multiply((8, 2, 3, -1, 7)))
'''Output sample:
-336
''' | [
"kuchunbk@gmail.com"
] | kuchunbk@gmail.com |
8848ab074e6ffc479ca17e76bc03b10bd7d34f11 | 34e1988211e7b8a8210ffe8592fbd79a43d8d997 | /maddpg/main.py | a6e8f1be527c47635edaa11fe366ccc250c97ed9 | [] | no_license | SachinKonan/MARL | fb3d39041e52968917480d80492b96bf8fb32bde | 1c16e8c695b3175dd4c64d1c87589064db6f4fed | refs/heads/master | 2023-02-08T07:21:16.813947 | 2020-12-02T23:32:53 | 2020-12-02T23:32:53 | 317,743,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | from maddpg.MADDPG import MADDPG
import numpy as np
import torch as th
from maddpg.params import scale_reward
import gym
import ma_gym
# do not render the scene
env_name = 'PredatorPrey5x5-v0'
#random_seed = 543
#torch.manual_seed(random_seed)
env = gym.make(env_name)
reward_record = []
np.random.seed(1234)
th.manu... | [
"sachinkonan480@gmail.com"
] | sachinkonan480@gmail.com |
e564aeb74503389e96f90e993d5b23fe405ed52a | bf8178bcf3aa09655fc827f5bc5a9e587f907fb7 | /utils/permissions.py | a304cd625a735603793c918db6f56f8c10d69033 | [] | no_license | Tinaz0996/django-twitter | fd2ebf4c718ce1107b2eaf5d38d01ac7a4884b96 | 2d64b37a04fa7656da2d886aa1418aaf42b10c56 | refs/heads/main | 2023-08-01T01:36:57.327371 | 2021-09-11T20:18:42 | 2021-09-11T20:18:42 | 364,114,579 | 0 | 0 | null | 2021-09-11T20:10:41 | 2021-05-04T02:07:56 | Python | UTF-8 | Python | false | false | 846 | py | from rest_framework.permissions import BasePermission
class IsObjectOwner(BasePermission):
"""
่ฟไธช Permission ่ด่ดฃๆฃๆฅ obj.user ๆฏไธๆฏ == request.user
่ฟไธช็ฑปๆฏๆฏ่พ้็จ็๏ผไปๅๅฆๆๆๅ
ถไปไน็จๅฐ่ฟไธช็ฑป็ๅฐๆน๏ผๅฏไปฅๅฐๆไปถๆพๅฐไธไธชๅ
ฑไบซ็ไฝ็ฝฎ
Permission ไผไธไธชไธช่ขซๆง่ก
- ๅฆๆๆฏ detail=False ็ action๏ผๅชๆฃๆต has_permission
- ๅฆๆๆฏ detail=True ็ action๏ผๅๆถๆฃๆต ha... | [
"xiaoxuz0996@gmail.com"
] | xiaoxuz0996@gmail.com |
574a1e88961aa1174faddd9bd0c3fa7486d04a66 | 093111846764d93579255f3d0f19d6893a9317c1 | /mvs/mvs_server.py | a0c1b8a79c7641dd7a0ba1c0159f829adcf4c3a0 | [] | no_license | lightscalar/mvs | a3485aab8d76dbc03e6bdd768ec9552ea7208852 | 6e5c1d772064bea5c3e66a9fac10a7c89350dcc6 | refs/heads/master | 2021-01-16T18:08:53.816743 | 2017-08-15T16:14:25 | 2017-08-15T16:14:25 | 100,040,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from mvs.unit import *
from pymongo import MongoClient
from master_controller import *
from pyro.basics import *
# Define currentl available units.
AVAILABLE_UNITS = [('Unit-01', 0)]
DATABASE_NAME = 'mvs_database'
client = MongoClient()
database = client[DATABASE_NAME]
# Instantiate available models.
units = {}
for... | [
"lightscalar@gmail.com"
] | lightscalar@gmail.com |
4eb1fd0550f77f77711b51db989afcf7ef39a245 | 8c3c2e1fe91592219f83d43c96ff66a5851fd361 | /ipythonlogs/final_exam.py | eaa2338361834d26a7326ace2ca39cb5861b585d | [] | no_license | tylerc-atx/u_st101 | 410def9331e8fc3b3845c87101cb76ff3b319eb0 | facb0b36e6b8e399a56adbcc9b0b5f3d1ab186c4 | refs/heads/master | 2021-06-09T20:13:43.005483 | 2017-02-02T02:04:06 | 2017-02-02T02:04:06 | 79,617,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | # coding: utf-8
from math import *
get_ipython().magic(u'ls ')
0.7 * 0.5
.3*.5
.7*.5
.3*.5
.35+.15
1
.35+.15
.5*(1/6)
.5*(1/8)
.083333333333333+.0625
.0833333333/.14583333333
(0.2**2)*(.8**5)
.4 / .14
.2*(.8**6)
0.05243*7
0.05243*2
21*(0.2**2)*(0.8**5)
7*.2*(.8**6)
.27525+0.36700
1-.64255
1-.367002
.8**7
1-.209715-.367... | [
"tylerc-atx@github.com"
] | tylerc-atx@github.com |
90e9c5289c22dc01e847cec0f98fd1c852758c18 | 364149ef8a4809c142bcabb0291fd441be10ff24 | /example_api/urls.py | d040cf4ba5798b63e07ce4a74d6e1b906c0fa94e | [] | no_license | awaistkd/django-rest-api-example | 8ea33822e9324fcf4cf441ba8968fbe404f1cc78 | e4738f416e6080f9f5dcf2954d5116dd8e47d630 | refs/heads/master | 2022-05-04T11:25:05.334252 | 2020-05-24T18:23:18 | 2020-05-24T18:23:18 | 193,535,019 | 0 | 0 | null | 2022-04-22T21:37:40 | 2019-06-24T15:48:44 | Python | UTF-8 | Python | false | false | 891 | py | """example_api 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-b... | [
"aawais.nu@gmail.com"
] | aawais.nu@gmail.com |
9453d95d3efaed6a8de50c3edffaa2d636244d88 | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/team29/analizer/statement/instructions/alter/alter_data_base.py | 4d67266a5977732607c3de3c6160d88dfad9e3a9 | [
"MIT"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 3,288 | py | from analizer.abstract import instruction
from analizer.typechecker.Metadata import Struct
from analizer.reports import Nodo
from storage.storageManager import jsonMode
# carga de datos
Struct.load()
class AlterDataBase(instruction.Instruction):
def __init__(self, option, name, newname, row, column):
in... | [
"39706929+Yosoyfr@users.noreply.github.com"
] | 39706929+Yosoyfr@users.noreply.github.com |
4a6b78de21ffdffea8c1583ad2df047b3419aa55 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch73_2019_04_04_18_01_16_761758.py | 2a91c18fcec24852640d02b74224cf472d03ccae | [] | 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 | 266 | py | def remove_vogais(letras):
i=0
while i<len(letras):
if letras[i]== 'a' or letras[i] == 'e' or letras[i] == 'i' or letras[i] == 'o' or letras[i] == 'u':
del letras[i]
else:
i+=1
return remove_vogais(letras)
| [
"you@example.com"
] | you@example.com |
4db31dc3dacc7d2647cce109b1b57cc1ddb0c41e | 95a2c37f40ed28c6052d3fed0c0f1b80846bffac | /datasources/views/__init__.py | a9638065b7f3d3f840e2ba8905802847088e2825 | [
"MIT"
] | permissive | PEDASI/PEDASI | eecbab837877f965aef4258e908baec9a389083a | 25a111ac7cf4b23fee50ad8eac6ea21564954859 | refs/heads/master | 2022-12-10T02:36:42.416249 | 2021-03-24T16:32:14 | 2021-03-24T16:32:14 | 144,545,470 | 0 | 1 | MIT | 2022-12-08T02:48:34 | 2018-08-13T07:39:15 | Python | UTF-8 | Python | false | false | 55 | py | from . import datasource, licence, user_permission_link | [
"J.Graham@software.ac.uk"
] | J.Graham@software.ac.uk |
66f9b0dba88e8ebaea2e7d87dfecb174463ccf41 | 0194a3c0a6055ec07320d1589815620729a1a85b | /univ_analysis/prob_dist_and_dens.py | 6073a4aae4c099ab8e8a0cfe13e1bb686baa11b8 | [] | no_license | williamherring/Thinkful-Data-Science-Course | b3e7b15b9866956f2e2627640b36c99e34e61d06 | 67a410f3a7ad31e87a35e29f32c8dade180567cf | refs/heads/master | 2021-01-17T16:04:40.570281 | 2016-06-30T20:49:39 | 2016-06-30T20:49:39 | 61,718,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import numpy as np
import scipy.stats as stats
import matplotlib.pyplot as plt
plt.figure()
test_data = np.random.normal(size=1000)
graph1 = stats.probplot(test_data, dist="norm", plot=plt)
plt.show()
plt.figure()
test_data2 = np.random.uniform(size=1000)
graph2 = stats.probplot(test_data2, dist="norm", plot=plt)
plt.... | [
"william.herring.jr@gmail.com"
] | william.herring.jr@gmail.com |
39543716ce468bf3259746dcfca8cb0814b014c3 | 966245c3a47798f20648dd2819e1ee7839b9bdbb | /backend/Yiqi/Yiqi/apps/userOperation/migrations/0006_activityuserinfo_type.py | abdc9c6ea1591cbebd9bbcc64b1f27d44d80a2e5 | [] | no_license | wxSmallProgram/deerlet | b63e71884c99b2653a6c2bb064c5fbcb9347afcb | e6a29df17ec14c8db2b4ebe3523d44d4c94dfe32 | refs/heads/master | 2022-12-11T13:15:46.312823 | 2019-04-11T02:55:54 | 2019-04-11T02:55:54 | 180,702,704 | 0 | 1 | null | 2022-12-08T01:03:02 | 2019-04-11T02:54:39 | Python | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-07-07 03:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userOperation', '0005_browseusermodel'),
]
operations = [
migrations.AddFie... | [
"zz634682577@163.com"
] | zz634682577@163.com |
92e1311a7a23fa68bd32337ca78affafc101e26a | 468a5d80429d301973a4938f106ed61d20d7913b | /BookMyDoc/doctor/forms.py | f0f20a02720360d8e9c0239b5517a95f42df6785 | [] | no_license | nayanbharada/bookmydoc | 1a41c8142c88997f2df3a15f93b543e9d41ac9ec | f00303f16ca675922f7519755516505694eeeea4 | refs/heads/master | 2023-02-20T19:33:54.761302 | 2021-01-25T16:56:45 | 2021-01-25T16:56:45 | 332,816,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | from django import forms
from django.forms import TimeField
from .models import DoctorProfile, Qualification, DocTimeSlot,DoctorDegree, DoctorUniversity
from django.contrib.auth import get_user_model
import datetime
User = get_user_model()
class DoctorProfileForm(forms.ModelForm):
experience = forms.CharField(re... | [
"47547578+nayanbharada@users.noreply.github.com"
] | 47547578+nayanbharada@users.noreply.github.com |
3fa693040c1097b4016610cbc5628712ffeda8a3 | b4eda202d51e2677f6f1584ed8371ff36f12b421 | /medium/happy_birthday.py | 1ba5d339611cd928440aa633b069bec330c1765b | [] | no_license | OM-Ra/interview_python | af3d66049aa985ae2fc2f1deb30988f7245a7a8c | 70d4464d9b54a5fce1a51765fa86688af3d1a8de | refs/heads/master | 2023-08-31T14:59:20.894025 | 2021-10-21T18:52:28 | 2021-10-21T18:52:28 | 386,342,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | # -*- coding: utf-8 -*-
'''
ะะปะตะณั ะฝะต ั
ะพัะตััั ััะฐะฝะพะฒะธัััั ััะฐััะต, ะฟะพััะพะผั ะพะฝ ัะตัะธะป ะฟัะฐะทะดะฝะพะฒะฐัั
ัะพะปัะบะพ ัะฒะพะต 20-ะปะตัะธะต (ะฝั ะธ 21 ะณะพะด ัะพะถะต, ะปะฐะดะฝะพ ัะถ). ะญัะพ ะฒะพะทะผะพะถะฝะพ,
ะตัะปะธ ะฟัะธะผะตะฝะธัั ะฝะตะบะพัะพััะต ะผะฐัะตะผะฐัะธัะตัะบะธะต ะฝะฐะฒัะบะธ. ะัะถะฝะพ ะฟัะพััะพ
ะฟะพะดะพะฑัะฐัั ะฟะพะดั
ะพะดััะตะต ะพัะฝะพะฒะฐะฝะธะต ัะธัะปะฐ!
ะะฐะฟัะธะผะตั, ะตัะปะธ ัะตะนัะฐั ะะปะตะณั 22 ะณะพะดะฐ, ััะพ 20 ั ะพัะฝะพะฒะฐะฝะธะตะผ 11.... | [
"syndeft@gmail.com"
] | syndeft@gmail.com |
d8a5f27c8d1dd586ce84191a204d5d0378424983 | 875c5f4ef5892be5a31590d5b1ad4a2c6adecec9 | /dictionaries.py | efbc2c01f404e7063ca9eaf641f1df164477e2b9 | [] | no_license | hmhuan/advanced-python | 1304d4dad301a85af19855a691069efc2c5511ff | 17d86bb7c6d616f4d8d595c4358db311a2d7d884 | refs/heads/master | 2023-07-12T12:36:51.598489 | 2021-08-16T09:18:44 | 2021-08-16T09:18:44 | 387,825,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | my_dict = {"name": "Ming", "age": 21, "city": "New York"}
print(my_dict)
name = my_dict["name"]
print(name)
my_dict["email"] = "abc@gmail.com"
print(my_dict)
# delete key - value
del my_dict["email"]
print(my_dict)
city = my_dict.pop("city")
print(city)
print(my_dict)
print(my_dict.popitem())
# loop in dictionary... | [
"huan.huynh@linecorp.com"
] | huan.huynh@linecorp.com |
350c55ba9706c064dfe760bd360f7497b79236ac | 8391636811f5a768e3948454363c2694a1347c92 | /examples/perfetto/aggregate_scripts/aggregate_subject.py | dcca482a7f5e04461069e7ebd0b0ca92d5ea7fe2 | [] | no_license | S2-group/android-runner | a0256e4d78fc2e16fa22ea7c8d13519fe1582236 | f0fe5f815064416ed14aadcad90f89b2674947db | refs/heads/master | 2023-06-25T11:16:58.252947 | 2023-06-19T14:12:21 | 2023-06-19T14:12:21 | 143,003,319 | 29 | 106 | null | 2023-09-11T17:00:55 | 2018-07-31T11:09:08 | Python | UTF-8 | Python | false | false | 359 | py | from AndroidRunner.Plugins.perfetto.trace_wrapper import PerfettoTrace
import os
def main(dummy, path):
for perfetto_trace_file in os.listdir(path):
trace = PerfettoTrace(perfetto_trace_file, trace_processor_path="/home/pi/android-runner/AndroidRunner/Plugins/perfetto/trace_processor")
data = trac... | [
"omar.website@gmail.com"
] | omar.website@gmail.com |
d4661de7781d69bf47240b7d4a8effe187d22ad9 | dea3e6876afe2fdae5b5b4a3f429cfce81b7a0a1 | /tests/test_frameSetUtils.py | 963a1cbd09e97306839efc9adabd9dc07e8a72a9 | [] | no_license | frossie-shadow/afw | 741f09cd202a5a9cc3b3943696a389b94a4ee404 | a1c44404738dcd73ff400e3bcd176ffe4dd51aab | refs/heads/master | 2021-01-19T17:49:51.003432 | 2017-08-19T03:11:56 | 2017-08-19T03:11:56 | 35,149,129 | 0 | 0 | null | 2015-05-06T08:54:49 | 2015-05-06T08:54:49 | null | UTF-8 | Python | false | false | 3,063 | py | from __future__ import absolute_import, division, print_function
import unittest
from lsst.afw.coord import IcrsCoord
from lsst.afw.geom import arcseconds, degrees, makeCdMatrix, Point2D
from lsst.afw.geom.detail import makeTanWcsMetadata, readFitsWcs, readLsstSkyWcs
import lsst.utils.tests
PrintStrippedNames = False... | [
"rowen@uw.edu"
] | rowen@uw.edu |
4c59bf2329fd1567caddbca76105185740dad7e5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02987/s680269618.py | 10f62cd0a31d38e548bfb5cbca9157ed13e880b2 | [] | 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 | 254 | py | S = input()
if S[0] == S[1] and S[2] == S[3] and len(set(S)) == 2:
print('Yes')
elif S[0] == S[2] and S[1] == S[3] and len(set(S)) == 2:
print('Yes')
elif S[0] == S[3] and S[1] == S[2] and len(set(S)) == 2:
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8978c7239669262c75ee2bb775b37c2f64e6e9c2 | 55e29dec1872a50336b0ab94c38d3fbb4e50104d | /swot.py | 0f5ec7709e2458153f8219ecb9939b591dd89358 | [] | no_license | tiltedwrld/swot | 35ae82bde27b0b3d5e4f4cb4f7975c5f77249783 | 81c2f286c08fdec7c59cedd5465def14c76b0266 | refs/heads/main | 2023-03-28T01:07:21.397240 | 2021-03-26T19:54:40 | 2021-03-26T19:54:40 | 351,893,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,681 | py | # -*- coding: utf-8 -*-
"""swot.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/14Aq7oPiSKFWJoK129_LaO8GiWCzp-3b7
"""
print('ะััะฟะฟะฐ: 20ะะ-3')
print('ะคะะ: ะะตัะฑะธััะบะธะน ะะฐัะฒะตะน ะะฐะบัะธะผะพะฒะธั')
!ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime
!dat... | [
"noreply@github.com"
] | noreply@github.com |
404d4ab1329f9f242c77fd139657e528fb917c08 | 0f9609807405a3dd9de89e2eff84e399b7a4924c | /lagagogn-django/domar/migrations/0007_auto_20181128_1027.py | c9727e842de481f3101ad8943c856921df400867 | [] | no_license | ZJONSSON/domar | d2098a331f14dfb96da3a14ed32ad53a5b9942a2 | f51dc7e19c2ceb29d3fbd3fe70fb4711f648dcde | refs/heads/master | 2020-04-13T09:29:19.855432 | 2018-12-19T09:14:52 | 2018-12-19T09:14:52 | 163,112,930 | 0 | 0 | null | 2018-12-25T21:39:15 | 2018-12-25T21:39:15 | null | UTF-8 | Python | false | false | 504 | py | # Generated by Django 2.1.3 on 2018-11-28 10:27
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('domar', '0006_domur_judge'),
]
operations = [
migrations.AlterField(
model_name='domur',
... | [
"pallih@gogn.in"
] | pallih@gogn.in |
645255515c3308d2c803eae9a5f02d2301026483 | b02c7897dbe819ef96694a09ec4995fd4ee7ebfc | /{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__init__.py | 69f3fb102e7c7ed42424f0b1bbef3fcf946b9a9b | [
"BSD-3-Clause"
] | permissive | mlf4aiur/cookiecutter-daemon | fd2c73ba9ba8b2d7927788c5c2a1e14c9c6c78c9 | 510b39c38d11f9b556185b24c9a1eca79665db5c | refs/heads/master | 2020-05-18T15:17:12.654210 | 2014-12-03T07:00:32 | 2014-12-03T07:00:32 | 27,474,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #!/usr/bin/env python
"""Package for {{cookiecutter.project_name}}."""
__project__ = '{{cookiecutter.project_name}}'
__version__ = '{{cookiecutter.version}}'
VERSION = __project__ + '-' + __version__
| [
"mlf4aiur@gmail.com"
] | mlf4aiur@gmail.com |
ba7639ad6a9c59bd8170920acdd5a7a269c096e7 | e5270423abf42482d956548333d4105d684cca31 | /trails/feeds/malc0de.py | 09d204f3da28e20de8dc18f4ac03427f7557e5e3 | [
"MIT"
] | permissive | ana2s007/maltrail | 2f5f556d222b6f1ba78affedce97400da125232a | 80979e76c33dca58313141a0e4a2626b609c3ebf | refs/heads/master | 2021-01-16T22:49:25.319116 | 2016-01-28T13:04:57 | 2016-01-28T13:04:57 | 50,610,789 | 1 | 0 | null | 2016-01-28T20:18:20 | 2016-01-28T20:18:20 | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
"""
Copyright (c) 2014-2016 Miroslav Stampar (@stamparm)
See the file 'LICENSE' for copying permission
"""
from core.common import retrieve_content
__url__ = "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/malc0de.ipset"
__check__ = "malc0de"
__info__ = "malware distribution"... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
761115aa3bdc406dc4f4c52ccd593a7e80e5d5c2 | c1ad248b8172c63f7756f14cb50f96cf726f90d0 | /tensorflow_examples/lite/model_maker/core/utils/ondevice_scann_builder.py | 9031bc02d9da8875c3b62beb2465f38818ce479a | [
"Apache-2.0"
] | permissive | slmsshk/examples | 846ec816c0c6d095cf49e4054df85a80375f4b7f | cd89a54b9e9577bebd22a9f083526ca8cb2b58b5 | refs/heads/master | 2022-08-16T19:59:03.695027 | 2022-08-07T07:30:14 | 2022-08-07T07:30:14 | 256,999,865 | 1 | 0 | Apache-2.0 | 2020-04-19T12:59:03 | 2020-04-19T12:59:01 | null | UTF-8 | Python | false | false | 1,856 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
86ddec28dee78756b57aa131bc70d9140872cc04 | 08c5ee41d40f9f14a3c6c3cb48515ed8467845e3 | /python/kfs_lib.py | 6c10b5ce828b790d815030153018533c82f3b5b2 | [
"Apache-2.0"
] | permissive | fdgonthier/kas | 3f971bda691b8c6db7a6343ea419088d1ac10386 | c82a3723085cdd9fec25efca1209e62db09edd72 | refs/heads/master | 2021-01-17T21:38:07.362287 | 2013-08-14T20:54:08 | 2013-08-14T20:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,451 | py | import os, ConfigParser, hashlib, stat, struct, logging
# from kpython
import kbase
from kpg import *
from StringIO import StringIO
# local
import kanp
import kcd_client
from kcdpg import KCD_KWS_LOGIN_TYPE_KWMO
# KFS Constants.
KFS_CHUNK_SIZE = 256 * 1024
KFS_FILE = 1
KFS_DIR = 2
KFS_NODE_TYPES = [KFS_FILE, KFS_DIR... | [
"karim.yaghmour@opersys.com"
] | karim.yaghmour@opersys.com |
09720d321f63f021019918984dce887b72d21bb5 | b05be5a98e43c4c403c1bf91105bd98d52a33439 | /disque/disque.py | d5dcc2d9c56565fd0d63d933318024848e3473e6 | [] | no_license | aallamaa/disquepy | 8704c28106135f5cf449597748efaef2214262d5 | 0d70d2f484d59324b986a7aeac77a5f2b47dfbf6 | refs/heads/master | 2020-06-03T21:49:42.124147 | 2015-04-28T01:38:32 | 2015-04-28T01:38:32 | 34,691,338 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,862 | py | #
# Copyright (c) 2015, Abdelkader ALLAM <abdelkader.allam at gmail dot com>
# All rights reserved.
#
# This source also contains source code from Disque
# developped by Salvatore Sanfilippo <antirez at gmail dot com>
# available at http://github.com/antirez/disque
#
# Redistribution and use in source and binary forms,... | [
"abdelkader.allam@gmail.com"
] | abdelkader.allam@gmail.com |
4209baa817c451e1b89a686b10aa7ddc8096c027 | af4253fe18c2cbd860b631a0934e7389f0b6d547 | /TestObjects/Objects.py | a8de5e0996c843d71056ac81af635b4e3db702e2 | [] | no_license | jainikbhatt/testing-assignments | 1b795b3deadb4816bc0aef320bbff49043f0f6a7 | e2ca52f56d6c3ae08b856c724b041970036ae839 | refs/heads/main | 2023-07-02T21:19:03.029319 | 2021-07-29T14:25:23 | 2021-07-29T14:25:23 | 390,717,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py |
class Object:
logo_by_xpath = "//*[@id='nav-bar']/div[1]/a/img"
process_by_css_selector = "input[class='menu-item'][href='/#process']"
process_by_xpath = "//*[@id='nav-bar']/div[2]/ul/li[1]/a"
work_by_xpath = "//*[@id='nav-bar']/div[2]/ul/li[2]/a"
careers_by_xpath = "//*[@id='nav-bar']/div[2]/ul/li... | [
"jainik@kaptaine.com"
] | jainik@kaptaine.com |
3a6969dffb80f9d7a7115a07bdc66312f33ad0db | b1390f9fc51adc01992df9cc3d236d06d44545b6 | /threeNN.py | 95918cc4aac4408b7c5b271ce7d953d0be5b85e4 | [] | no_license | BlingBling921/DL | d7dd71d0a39889c8d301d8e51a8de3ecba4030e5 | 6b4571f3189ccd32606c67e59c8151f1a2ec2291 | refs/heads/master | 2022-11-15T07:27:11.023004 | 2020-06-21T08:04:54 | 2020-06-21T08:04:54 | 272,327,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,614 | py | import numpy
import scipy.special
import matplotlib.pyplot
class neuralNetwork :
# ๅๅงๅๅฝๆฐโโ่ฎพๅฎ่พๅ
ฅๅฑ่็นใ้่ๅฑ็ป็นๅ่พๅบๅฑ่็น็ไธชๆฐ
def __init__(self, inputnodes, hiddennodes, outputnodes, learningrate):
# ่พๅ
ฅใ้่ใ่พๅบ
self.inodes = inputnodes
self.hnodes = hiddennodes
self.onodes = outputnodes
... | [
"2650400028@qq.com"
] | 2650400028@qq.com |
cafd330140fcfb6368723d583251829672ceb42d | a86599993fcca8fbe67ee02106281b5145f8db5e | /Laboratory 04/wdp_ftopt_l04z04pr.py | 37e25e77b5d7c40c7a9717f6d5240df8b50d219e | [] | no_license | pauliwu/Introduction-to-programming-in-python | 2747572c73a5559c0636523f7b75ae6c4e79d51e | cc4be2030d1a0798054ec2c6b30425fd77d3e117 | refs/heads/master | 2022-03-31T09:15:33.191768 | 2020-01-30T22:05:53 | 2020-01-30T22:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | '''
Napisz program, ktรณry poprosi uลผytkownika o podanie promienia koลa, a nastฤpnie wyลwietli
informacjฤ o jego polu i obwodzie.
'''
def kolo(promien):
pi = 3.14
obwod = 2*pi*promien
pole = pi*promien**2
return pole, obwod
def main():
r = float(input("Wprowadz promien kola w cm: "))
p,o = kolo... | [
"58003896+majsylw@users.noreply.github.com"
] | 58003896+majsylw@users.noreply.github.com |
ad7c6f3e45d6ce78eacd4972b09e736c5a69aa25 | 3907f4591cf26309b1e6981fc3467da871b4f860 | /mymoney/apps/banktransactionschedulers/views.py | afcea194d45e587af7a5a67e63f4164182a121a6 | [] | no_license | chenchampion/djangosample | e19b0fe457d3e96217c85bf4ce160eb744b4f598 | f4e56daa75a821424d8759bcf1a35674a98e5c7d | refs/heads/master | 2020-12-30T14:19:29.252939 | 2017-05-28T08:04:07 | 2017-05-28T08:04:07 | 91,305,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | from django.contrib.auth.mixins import PermissionRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django.views import generic
from mymoney.apps.banktransa... | [
"championonline@gmail.com"
] | championonline@gmail.com |
52fb799a9719d0f4a6dd2ee54ce68e2687c19b3a | 4060819693d6ae501e10cfa965f5747214422339 | /model/__init__.py | 1717d8979a45e296f8a35d44f195c49401ca9ee8 | [] | no_license | baicaisir/AutoFunction | 25f7424796e10ebffc52ea68d2ad24c2685ed2b7 | 0cfb121cfb4e2a203504535234a7cadde86197b8 | refs/heads/master | 2023-07-07T10:35:55.701976 | 2021-05-21T03:06:36 | 2021-05-21T03:06:36 | 357,548,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from .Firebase import Firebase
# ๅฐ่ฏไฝฟ็จๆญค็ฑปๆนๅผๅฎไนๅธธ้๏ผ้ฟๅ
ๅฎไน้ๅค๏ผๅฏผ่ดๅผๅธธ๏ผไพฟไบ็ปดๆค
Firebase = Firebase()
| [
"junhua.future@gmail.com"
] | junhua.future@gmail.com |
6b62ab21c2268296db1080921db84219e376a6f9 | 1a2d843df90bbde9d958c9539b418a6c765cfef5 | /Hard/GridWalk.py | 936bde5ceaf13c6395275e8586c019164bb80ce9 | [] | no_license | tramxme/CodeEval | 4a0255bc795558f512d1aa918ecd53bd555fd506 | 1914daa981d0f4bac0f6ec1227f09cf530fb0431 | refs/heads/master | 2021-01-20T15:12:41.770646 | 2017-06-08T19:13:41 | 2017-06-08T19:13:41 | 90,733,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import sys, re, math
def isValid(num1, num2):
s1 = str(num1)
s2 = str(num2)
v = 0
for c in s1:
v += int(c)
for c in s2:
v += int(c)
return (v <= 19)
def main():
res = 0
M = []
i = 0
while True:
j = 0
arr = []
while True:
print(re... | [
"tramlaisf@gmail.com"
] | tramlaisf@gmail.com |
6e6194a66c8390f74429e25e8931b1bca6a81b96 | b09b95b6f1d28b48bb58a44b52dceb6dfbbbc79d | /sessions/001_011/stringreverse.py | 94bfcb579a445633ee523dea90e9a58a457b2f82 | [] | no_license | cookjw/Project-Euler | 05e3852865decaa8167ed6c66c3b9b926516487e | ffea7c1864f9e9a24b7f2792accf58cd511c1e24 | refs/heads/master | 2018-12-28T15:38:35.548334 | 2014-02-07T18:43:33 | 2014-02-07T18:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | def switchindex(n):
return -n - 1
def string_reverse(string):
length = len(string) - 1
string_init = string[length]
stringbuilder_list = [string_init]
string_so_far = string_init
for n in range(1, length + 1):
stringbuilder_list.append(string_so_far + string[switchindex(n)])
str... | [
"cookjw@gmail.com"
] | cookjw@gmail.com |
d3412ea7bd72697ab7388bbb6fe54280a2dc9514 | e4666ca87a6708f9338bbb0780023c37187665b0 | /Comida.py | 8bf609722b7e8c9b108ca34b0695c4a80a476a85 | [] | no_license | Gergash/cinema | d4b3f3686796b6dbdfc5990ae3539af0fb41ffb5 | 2daaa612f5782c8b2ca7d6e9d9908c25e095802a | refs/heads/master | 2023-08-25T19:32:47.049078 | 2021-10-27T21:25:56 | 2021-10-27T21:25:56 | 402,144,900 | 0 | 1 | null | 2021-09-11T05:36:39 | 2021-09-01T17:19:51 | null | UTF-8 | Python | false | false | 152 | py | from enums.TipoComida import TipoComida
class Comida:
idComida: str
precioComida: int
nombreComida: str
tipoComida: TipoComida
| [
"noreply@github.com"
] | noreply@github.com |
871eb6e8ee0778f806cecd0362c54b91bff6028c | d6e90e0326248389768fc9b6aece86b70e16f3e5 | /code_examples/gnuradio/module_fmcw/gr-radar/python/qa_FMCW_separate_IQ_cc.py | 7933b4c9829cbf1f1334c20a93dcfcf5f7cdd61a | [] | no_license | stwunsch/gsoc-proposal | 22d1d8f23b2f6008e59f80c4a51aab50a04b3e85 | 75d37e8a1e6d16ad0798bf3e7b4ab067d24f9a18 | refs/heads/master | 2021-01-19T16:57:41.145819 | 2014-04-14T16:15:08 | 2014-04-14T16:15:08 | 17,761,313 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2013 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#... | [
"stefan.wunsch@student.kit.edu"
] | stefan.wunsch@student.kit.edu |
48dfce6bf10d4a7f9141eab7bdb034ead039a3da | 69f8272788d6474c15b47d9d0e95445570b04d89 | /qq_login.py | 7daae349086c8beaf1e9c0a7a105e43b5e31af42 | [] | no_license | songting77/d3 | d3167dfef18867264a3419256b7c1f190a57b3fc | ba98a7ed29a67009061b51cd9dccdca05fb4c17d | refs/heads/master | 2020-03-29T01:47:14.715668 | 2018-09-19T06:58:06 | 2018-09-19T06:58:06 | 149,406,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | def login_by_qq(self,user,password):
pass | [
"1820440070@qq.com"
] | 1820440070@qq.com |
2e612ae69448a10737689a3bfeb630b822833fd5 | bc008babe45f3703ed4d77b767a5dd7335bf7136 | /duckql/functions/tests/test_sum.py | 90243c8cdfdee22cc41d98f05c4bf5f573ff1554 | [
"MIT"
] | permissive | Sibyx/duckql-python | 4da8c7052f43d4d41d3867ac83d8e88972f82124 | ec82b683e929760f4f725f09c0603c68df17ba3b | refs/heads/master | 2023-08-09T18:21:33.488797 | 2022-06-09T09:29:03 | 2022-06-09T09:29:03 | 254,049,497 | 5 | 1 | MIT | 2023-07-20T11:35:28 | 2020-04-08T09:56:01 | Python | UTF-8 | Python | false | false | 294 | py | from duckql.functions.sum import Sum
from duckql.properties.property import Property
def test_simple():
my_function = Sum(
property=Property(name='transactions.amount'),
alias='total_amount'
)
assert str(my_function) == 'SUM(transactions.amount) AS total_amount'
| [
"jakub.dubec@gmail.com"
] | jakub.dubec@gmail.com |
cd6e2ee6dd4b2426d88995adb36e5d9a9495f85c | 005c8f3b475375c6ee3fd11b47a5363c43b27f43 | /maccorcyclingdata/testdata.py | 585d3a2ed217fc71fb28ae8028289b30ead940a0 | [
"MIT"
] | permissive | gillboy1989/maccorcyclingdata | e81150d3ad957d04aee9a803b70310772f65dab0 | c06f88cf28a2f58b3a731acae064aa696f18bada | refs/heads/master | 2023-07-05T07:43:05.057446 | 2021-04-01T21:49:12 | 2021-04-01T21:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,268 | py | import pandas as pd
import numpy as np
import os
def import_maccor_data(file_path , file_name, header=0):
"""
Given the file path and file name of the testdata file, this function will import the csv file as a pandas df
and clean it.
Parameters
-----------
file_path : string
File path
... | [
"shriyachallam10@gmail.com"
] | shriyachallam10@gmail.com |
d01146525edde6003f1dd431e050dd76dea16973 | 148fd2231722077091b4595d406a6b5ffc87d1af | /clase7/urls.py | 390ace00cdc816d0cd62a4f47b40afac4b6b354e | [] | no_license | lvaldivia/django-integracion | 507f4e3d842a43d82abfb9e694ae7ffee38e9229 | 47c42e197f6dae88ee41e824019079b28dd9f053 | refs/heads/master | 2016-09-14T14:22:04.223655 | 2016-05-02T20:34:53 | 2016-05-02T20:34:53 | 57,919,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | """djangoexample 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')
Cla... | [
"valdivialuis1989@gmail.com"
] | valdivialuis1989@gmail.com |
a2c28ec47fbd74a3159ca3a127c49e89addf2c7d | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/MINZ_tests/correct/dictionary.py | 3594fcbfb30b0ee6df0cd44083dd7c263c58907c | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | dict = {'value' : 1, 'abc' : "aba", "ab" : "ababa", "abc" : 2}
print(dict["ab"]) #Expect 'ababa'
| [
"czchen@mit.edu"
] | czchen@mit.edu |
8fffb2612b763989d4dd187c65f7f73516c2751d | 8c169510f047c7b3997e381e888adafce5fa91ac | /Integralregning.py | 52fcf8d520475c529f463645fa2ee0e6c47d1a82 | [] | no_license | casper1357/GRAFER | 7fafe90fd5c11a1573f6fdd3c63468888395a097 | 69f9580dfee12017f27cea93872c2316691357e2 | refs/heads/main | 2023-01-22T20:40:58.229044 | 2020-11-24T20:01:40 | 2020-11-24T20:01:40 | 315,739,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | import sympy
class Integralregning():
def __init__(self, a, b, columns):
self.a = a
self.b = b
self.columns = columns
def func(self, x, forskrift):
y = sympy.sympify(forskrift).subs(dict(x=x))
self.forskrift = forskrift
return y
def area(self, ... | [
"noreply@github.com"
] | noreply@github.com |
e0935743f7688c9951a2d83812994aded07c6dba | ce378bf28153d4d30cd53ec8684e8017abd0ac59 | /pythonProject/leetcode/Rotate Array.py | abac0295ceee22ace5ca239c758306f05baeca4e | [] | no_license | zzong2006/coding-problems-study | 5f006b39264cbe43d11db489ce8b716272329b6e | 9b3affbeb2ddfa673c1d879fb865408e34955c5c | refs/heads/master | 2023-04-07T12:47:41.646054 | 2021-04-08T05:02:33 | 2021-04-08T05:02:33 | 286,918,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | class Solution(object):
def rotate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: None Do not return anything, modify nums in-place instead.
"""
print(nums)
n = len(nums)
k %= n
for i in range(n // 2):
nums[i], nums[... | [
"zzong2006@gmail.com"
] | zzong2006@gmail.com |
e609fe4e192768341a6bcb783b7f365c59f21f10 | f0ddff43f4a4eec7226e5a0b0fd47dec72d7a9ab | /ImageViewer.py | 5185d2e5636caa63dc8e3c47ad8b162d3c88693a | [] | no_license | LinhIThust/Image-Processing | 3638d0b0ba6d1c0ae332af7c9d17cd6a5c25f84d | 96bbe51bd4b81d844d717b6117e7c998b90afd2b | refs/heads/master | 2022-11-16T16:17:09.922758 | 2020-06-30T17:27:41 | 2020-06-30T17:27:41 | 277,751,258 | 1 | 0 | null | 2020-07-07T07:46:00 | 2020-07-07T07:45:59 | null | UTF-8 | Python | false | false | 1,019 | py | from PyQt5 import QtGui, QtCore, QtWidgets
class ImageViewer(QtWidgets.QMainWindow):
def __init__(self):
super(ImageViewer, self).__init__()
self.STANDARD_WIDTH = 800
self.STANDARD_HEIGHT = 1200
self.imageLabel = QtWidgets.QLabel()
self.imageLabel.setBackgroundRole(QtGui.Q... | [
"hieu.dm161505@sis.hust.edu.vn"
] | hieu.dm161505@sis.hust.edu.vn |
1a9fa3e8dcf8c60490f47495a2566b6a1f32a92a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_009/ch90_2019_10_02_18_22_03_037134.py | fcae0603fe15fc773b6d8deebd33737ee6754ef6 | [] | 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 | 224 | py | def segundos_entre(x,y):
t1 = datetime.strptime(x, "%H:%M:%S")
t2 = datetime.strptime(y, "%H:%M:%S")
t2 - t1
a = (t2 - t1).seconds
return f'A diferenรงa entre os horรกrios {x} e {y} รฉ: {a} segundos'
| [
"you@example.com"
] | you@example.com |
da4842483d6af9d811d81589b759060682fadc9f | f3cbbf2bdefc2fe55fd32157e7c4eef7721b0ab5 | /demo/venv/Scripts/easy_install-3.7-script.py | 868a706a8033bec2c0dd67dd8800bac3e47b6580 | [] | no_license | 2474942479/BigData | bcca2aef8b8a258470a87351f5ceba800174f50b | 6255fdf90c34a7a56e121cacdd8bd008aeab7185 | refs/heads/master | 2022-12-05T01:12:20.017030 | 2020-07-30T02:33:32 | 2020-07-30T02:33:32 | 283,649,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #!E:\Pycharm\projects\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"2474942479@qq.com"
] | 2474942479@qq.com |
0ac97ca2e94f840dc49c2017c053199926019612 | b522898c49f858cf7367c85effa862504a18c9d2 | /chapter3/section5/click_edit.py | bf6481aeed47eed2e8f3f440a4c5b7247156ec04 | [] | no_license | kingleoric2010/python_for_linux_system_administration | 42b9a48fc843e09f1db691f7a362e8cb0aa5df36 | 66fc0c198b9c2372cb651883a56abf8164325734 | refs/heads/master | 2021-06-26T06:07:01.454146 | 2017-09-14T12:39:29 | 2017-09-14T12:39:29 | 103,648,255 | 1 | 0 | null | 2017-09-15T11:10:36 | 2017-09-15T11:10:36 | null | UTF-8 | Python | false | false | 98 | py | from __future__ import print_function
import click
message = click.edit()
print(message, end="")
| [
"me@mingxinglai.com"
] | me@mingxinglai.com |
0880800ff1d16a0cdd536c87b0f5d15ae629547d | aac761dd8c8497daf03abc05bc745273fca77625 | /presence/migrations/0001_initial.py | aa2464b5234fc0d3db6848b21c7a75e77b550815 | [] | no_license | zeke1806/gestion_presence | 414a37e96e41ee516b8d353ccd87ea1c15cb7200 | d6d8af545040245c59e897abd40f93101c35674f | refs/heads/master | 2022-12-04T18:40:53.895297 | 2020-02-06T23:24:20 | 2020-02-06T23:24:20 | 227,303,390 | 0 | 0 | null | 2022-11-22T04:53:45 | 2019-12-11T07:29:37 | Python | UTF-8 | Python | false | false | 4,209 | py | # Generated by Django 3.0 on 2019-12-11 09:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Appartenir',
fields=[
... | [
"joeloliviersidy@gmail.com"
] | joeloliviersidy@gmail.com |
a05c37f79374dcbb5c055e9eea2fd7f52863f0d4 | 51f3af9642cc13150bbdde47d255eb8daf51fe71 | /lesson3/task2.py | 86b815b6c6ba1ebe8f227c6cc3c4c5fdaec87144 | [] | no_license | Lazemir/Polyanskiy_Artyom_920 | 703479d048ccb1a0171fe64ea5c92c90f2f12a33 | 65878afcae46640ddcd1603b53bc1995cb608eb6 | refs/heads/master | 2020-07-30T10:09:19.147036 | 2019-11-06T05:54:05 | 2019-11-06T05:54:05 | 210,186,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | from graph import *
import random
import math
width, height = windowSize()
def half_ellipse(xc, yc, rx, ry, fi: int):
pos = []
fi *= math.pi / 180
for i in range(181):
x = round(rx * math.cos(i * math.pi / 180))
y = round(ry * math.sin(i * math.pi / 180))
x0 = x * math.cos(fi) - y... | [
"lazemir@yandex.ru"
] | lazemir@yandex.ru |
5d61d4cc761935504ca40d2a917658d404c405d7 | cee6549aea7069adea1518666228392a92e704b2 | /accounts/models.py | f80e6854f221d04ce0ca716661b80234daf527cd | [] | no_license | lamyar96/grad | 9119e122d409f7942f2c6c773973b0f9dc073190 | 4a8ad0afedfd9a13588c55ef9d22e16d134cbea2 | refs/heads/master | 2021-01-12T14:33:38.620012 | 2016-12-12T17:11:31 | 2016-12-12T17:11:31 | 72,015,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from userena.models import UserenaBaseProfile
class Profile(UserenaBaseProfile):
user = models.OneToOneField(User, unique=True)
first_name = models.CharField(max_length=50)
middle_name = models... | [
"Lamya@lamyas-MacBook-Pro.local"
] | Lamya@lamyas-MacBook-Pro.local |
6796233cc8e0d68532199b60208872e887b79dbe | 8af6f0195e94908482ca7236bcd2eae382605fa7 | /python3code/chapter03/fibs.py | 82488642ecd1ea7d7ff1edce7bf88be46820530f | [] | no_license | MeatStack/StarterLearningPython | 4a1e0fc94c4615022ba9ff41455c4e67bd16a5bd | 98f0a9028f40db189cf2636a5e0c3abbcd86f71d | refs/heads/master | 2020-03-23T16:21:02.884442 | 2018-07-21T11:24:11 | 2018-07-21T11:24:11 | 141,805,470 | 1 | 0 | null | 2018-07-21T11:15:42 | 2018-07-21T11:15:42 | null | UTF-8 | Python | false | false | 191 | py | # coding=utf-8
'''
filename: fibs.py
'''
def fibs(n):
result = [0,1]
for i in range(n-2):
result.append(result[-2] + result[-1])
return result
lst = fibs(10)
print(lst)
| [
"qiwsir@gmail.com"
] | qiwsir@gmail.com |
e2141bfbe1940d48e60d545306ad35b1aa55f3e8 | 60f3c767c9f1a700c9e67dac606b8ee3bc46450d | /example.py | bb8e0450c336caa9837456280eb09470e3379615 | [] | no_license | codesharedot/Quadratic-Line-Chart-Sandra | 57b999e12d7ae20b3f907697b2f739c64a45db11 | 9e4eae6d10fc4001464a80de7c7cf5c4e2d6b115 | refs/heads/master | 2020-07-26T12:24:34.892400 | 2019-09-15T19:04:04 | 2019-09-15T19:04:04 | 208,642,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-1, 1, 50)
y = 9*x*x
plt.plot(x, y,'c-',linewidth=10)
plt.savefig('chart.png') | [
"codeto@sent.com"
] | codeto@sent.com |
5844507275c3bd7504ede191ad80d897ac4386c6 | 5cd042c36162b3a5230c95de21d0976f0b47e6c4 | /quizapp/quiz/migrations/0001_initial.py | f5ecaed19b7e4bcc42bd1e206149444083505591 | [] | no_license | pankajsp25/quiz | ff6af257943b0b38d2b80f4ab129718f1b3a0b1f | 59c04c2d2410bb400f2db0a1cbc85889b3c8098f | refs/heads/master | 2022-12-16T00:41:46.678501 | 2020-09-17T13:10:53 | 2020-09-17T13:10:53 | 296,296,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # Generated by Django 3.1.1 on 2020-09-17 11:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Option',
fields=[
... | [
"pankaj.gupta@ingrammicro.com"
] | pankaj.gupta@ingrammicro.com |
20fddd6c18c901b9d7e1b3372851a7f4531f018d | c741f04141784a2571d2d27d95e0d994e4584ab1 | /learning/ask/1/post.py | ab38ef683317efbfc0792dcf7434195069199bd4 | [] | no_license | haodonghui/python | bbdece136620bc6f787b4942d6e1760ed808afd4 | 365062ba54297c81093b7f378742e76d438658b7 | refs/heads/master | 2022-02-03T23:52:37.288503 | 2022-01-27T05:23:25 | 2022-01-27T05:23:25 | 191,729,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | """
ไผ ้่กจๅ
้ๅธธ๏ผไฝ ๆณ่ฆๅ้ไธไบ็ผ็ ไธบ่กจๅๅฝขๅผ็ๆฐๆฎโ้ๅธธๅไธไธชHTML่กจๅใ ่ฆๅฎ็ฐ่ฟไธช๏ผๅช้็ฎๅๅฐไผ ้ไธไธชๅญๅ
ธ็ป data ๅๆฐใ
ไฝ ็ๆฐๆฎๅญๅ
ธ ๅจๅๅบ่ฏทๆฑๆถไผ่ชๅจ็ผ็ ไธบ่กจๅๅฝขๅผ:
"""
import requests
# ๆต่ฏๅๅ
# domain_name='https://test-api.yestae.com/api'
# ๅผๅๅๅ
# domain_name='http://hdh.tae-tea.net/yestae-community-api'
domain_name = 'http://localhost/yestae-community-api'
# ่ทๅๆดปๅจ่ฏฆๆ
url = domain_name ... | [
"h_donghui@sian.cn"
] | h_donghui@sian.cn |
dcb8c24edec90330787d2c6983a98b1414b258e9 | efad409db922d4542c98aaef2d583fa683c3bd7c | /parsetab.py | 24cc938b407362aaace2e3543cc3ff6f9b1ec358 | [] | no_license | quano2/MATLAB-to-Python-Translator | a071445ccb6e00a76c107a12e334460ef84a5fbd | 6dec102bfd7c96b6116e75ddaad6db4845ccb993 | refs/heads/master | 2021-01-22T14:16:06.209450 | 2015-04-20T04:41:08 | 2015-04-20T04:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,646 | py |
# parsetab.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = b']u\xb9\xc3,\xbf\xe8\xa0?8K;\xae\xceW\x9d'
_lr_action_items = {'$end':([0,2,6,7,8,9,10,12,13,14,25,30,31,36,37,39,45,46,47,60,96,104,105,106,108,109,113,115,162,163,164,176,177,18... | [
"quano2@live.com"
] | quano2@live.com |
641eb5e4ce8f4443864024b99da2a1c4b80e0d83 | 167face5e34f69ba36b8a8d93306387dcaa50d24 | /15formatando_strings.py | 1061eb1748036704fe55492e86c058ee0f7e4ae9 | [] | no_license | william-cirico/python-study | 4fbe20936c46af6115f0d88ad861c71e6273db71 | 5923268fea4c78707fe82f1f609535a69859d0df | refs/heads/main | 2023-04-19T03:49:23.237829 | 2021-05-03T01:24:56 | 2021-05-03T01:24:56 | 309,492,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # ร possรญvel formatar strings das seguintes formas:
nome = "William Cรญrico"
idade = 20
peso = 70.31287418293472
print("Nome: ", nome, "Idade: ", idade, "Peso: ", peso)
print("Nome: {0} Idade: {1} Peso: {2}".format(nome, idade, peso))
print("Nome: {n} Idade: {i} Peso: {p}".format(n=nome, i=idade, p=peso))
print(f"Nome:... | [
"contato.williamc@gmail.com"
] | contato.williamc@gmail.com |
9e3558f3d288087f8b9b9ca49c4c0643f113bda5 | 8982eacbdc0dcc63ca95693e944bc8d1e749bafe | /udemy_python/sec-10/video_code/tests/acceptance/steps/interactions.py | 65ff54dbf34ce75d6ba568e348f8d83c86bd3f69 | [] | no_license | ltsuda/training | 8c98f2b7edf6943baaee737755ac1a0066244522 | 42e42cef95977c18567002f7f70960af5dbcaad4 | refs/heads/master | 2021-09-08T11:32:42.235710 | 2019-05-22T13:12:52 | 2019-05-22T13:12:52 | 125,256,857 | 0 | 0 | null | 2021-08-31T16:05:35 | 2018-03-14T18:29:22 | JavaScript | UTF-8 | Python | false | false | 786 | py | from behave import *
from tests.acceptance.page_model.base_page import BasePage
from tests.acceptance.page_model.new_post_page import NewPostPage
use_step_matcher('re')
@when('I click on the "(.*)" link')
def step_impl(context, link_text):
page = BasePage(context.driver)
links = page.navigation
matching... | [
"ltsuda@daitan.com"
] | ltsuda@daitan.com |
81e9000ab5421eed06c53cc2b93b30270fd1bc06 | 6d7894b522ed60dff8e85afc6150321aa6d3f980 | /buffer_overflow/jumptoaddress.py | a97e006a136c4e654df4dff3539fe081e08b38b7 | [] | no_license | demon-i386/material_palestra | 3e21cbbfc7b3b4a383f4c9c76ac786a3a7874bb7 | a2f92becbf1097897c451a7786c21e570e5d499f | refs/heads/master | 2023-06-13T07:54:58.561017 | 2021-07-04T06:14:27 | 2021-07-04T06:14:27 | 382,103,855 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import struct
junk = "A"*20
address = struct.pack("<Q",0x4004f7); # simbolo roubarpremio, nรฃo รฉ afetado pelo ASLR
print(junk + address)
# ASLR (Address Space Layout Randomization): proteรงรฃo, posiciona objetos como endereรงo
# base do executal, stack, heap e posiรงรฃo das libs em um espaรงo aleatรณrio que muda
# ao fim da ... | [
"75624951+demon-i386@users.noreply.github.com"
] | 75624951+demon-i386@users.noreply.github.com |
6c050c340a55dc158eb445212dc89309085f6de1 | a64f1280b8dedc21c85e8c4234072da3d6a43916 | /mnist_perceptron.py | 7e05809d05073d916ab9a9ba237d0942a1037443 | [] | no_license | pseudo-sm/cv-dl-basic | 1c84d5e36422d7f5230cfba7c423cba78cf9fe6d | f84f53365ec44bd59742fe1e04bbf82977c67169 | refs/heads/master | 2022-08-27T16:08:31.650049 | 2022-07-26T07:54:39 | 2022-07-26T07:54:39 | 154,711,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist_data = input_data.read_data_sets('MNIST_data', one_hot=True)
input_size = 784
no_classes = 10
batch_size = 100
total_batches = 200
x_input = tf.placeholder(tf.float32, shape=[None, input_size])
y_input = tf.placeholder(tf.float3... | [
"saswathcommand@gmail.com"
] | saswathcommand@gmail.com |
17ebc93a0e4a5b9f3bdb7c23942b97a73909d91d | 0bc4391986b15c706a77e5df314ec83e84375c54 | /articles/migrations/0002_article_image_thumbnail.py | dd12130bb4ff92b2ae300134423a7f1d034fcd9b | [] | no_license | ssshhh0402/django-crud | a6d1a0872942c6215b1130a44ae335182c42937d | da292c07c9f77526bee8cbbec07d37ea8464d6af | refs/heads/master | 2022-05-02T12:07:26.518798 | 2019-09-23T06:26:43 | 2019-09-23T06:26:43 | 203,089,241 | 0 | 0 | null | 2022-04-22T22:11:46 | 2019-08-19T03:07:54 | HTML | UTF-8 | Python | false | false | 443 | py | # Generated by Django 2.2.4 on 2019-09-23 06:07
from django.db import migrations
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='... | [
"ssshhh0402@naver.com"
] | ssshhh0402@naver.com |
df4e2b89e5e838494485cf479d6d0589536e3838 | fa76cf45d7bf4ed533e5a776ecd52cea15da8c90 | /robotframework-ls/src/robotframework_debug_adapter/vendored/force_pydevd.py | 93bcca4fb794844f5a72a146f94071d71202e7a7 | [
"Apache-2.0"
] | permissive | martinRenou/robotframework-lsp | 8a5d63b7cc7d320c9fed2372a79c8c6772d6481e | 5f23b7374139e83d0aa1ebd30675e762d7a0db86 | refs/heads/master | 2023-08-18T22:26:01.386975 | 2021-10-25T13:46:11 | 2021-10-25T13:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
from __future__ import absolute_import, division, print_function, unicode_literals
import contextlib
from importlib import import_module
import os
import sys
VENDO... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
b2fa1c2267c4363c4044bbd0a1256ecebf629f01 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DRAFT-MSDP-MIB.py | af1baa3acc14379cc42129394496b65eb61a6067 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 31,396 | py | #
# PySNMP MIB module DRAFT-MSDP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DRAFT-MSDP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:54:19 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3b68e6ca40f8dadcb29028961550c661836d8e9a | 89f1282ae71fe0d838bd406766df817c02fed007 | /notes/migrations/0002_auto_20200711_2211.py | ed67cc7353d83df3366c7d575cf5a1d19ef00114 | [] | no_license | joaopaulozorek/notes-django-bulma | ad7a7be593f52ab62084f60940104421d7e4f107 | ba8430729ed1dcda92276f365b405f0c38a3fbb6 | refs/heads/master | 2022-11-18T13:00:40.184979 | 2020-07-13T15:56:30 | 2020-07-13T15:56:30 | 278,969,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 3.0.8 on 2020-07-12 01:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notes', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='note',
old_name='autor',
... | [
"joaopaulozorek@gmail.com"
] | joaopaulozorek@gmail.com |
e32ab4c247177bf2ca41ccaf29e0268e813b00d8 | ae8c9fab9d57dd7b633f7b4973af8720c98c7f57 | /tests/test_utils.py | 09f9aec9fd59159209a680d3d8bcf23ad74db19e | [
"MIT"
] | permissive | jungtaekkim/bayeso-benchmarks | ec40ad2198e305bb60d041c3acf11a53ef31628e | 5eaf53d103dcdbe9c646faf743adfa865bf100a5 | refs/heads/main | 2023-08-22T23:58:09.550624 | 2023-01-27T21:37:45 | 2023-01-27T21:37:45 | 228,564,765 | 26 | 7 | MIT | 2023-01-13T21:14:32 | 2019-12-17T08:04:29 | Python | UTF-8 | Python | false | false | 4,767 | py | #
# author: Jungtaek Kim (jtkim@postech.ac.kr)
# last updated: January 6, 2023
#
import numpy as np
import pytest
from bayeso_benchmarks import utils
TEST_EPSILON = 1e-5
def test_get_benchmark():
with pytest.raises(TypeError) as error:
benchmark = utils.get_benchmark()
with pytest.raises(ValueError... | [
"jungtaek.kim@pitt.edu"
] | jungtaek.kim@pitt.edu |
8a79f2f3eec81fcaec62dc583d08cdd0dec52e25 | cb1119aa2e410ea5e2edb6c496994a5ddc1789ad | /venv/bin/rst2latex.py | 087f07c2db21054490c32502c60b39c7c89e68e9 | [] | no_license | Korshikov/hackuniversity_2019 | 3a875396d59db960d0874a20d804b9c1b685516f | d003e8b0f8229df4e2a32166ac8bb77b372d583a | refs/heads/master | 2020-05-01T04:43:35.234035 | 2019-03-24T11:03:13 | 2019-03-24T11:03:13 | 177,281,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #!/home/delf/PycharmProjects/hackuniversity_2019/venv/bin/python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import lo... | [
"pk.delf@gmail.com"
] | pk.delf@gmail.com |
c191ff7ea89cf172a63b28bb2a28e606fc8dec17 | cd1c07220e37d1387fd1bcbee00b2f5f2871947c | /spareseArray/SparseArray.py | da2cf355a05c4bf29f61da600e9953d3551e0d28 | [] | no_license | r-p-n/projcets | dd2febb4bedce1cc059f361c9e92f53addf29fde | 5c0f315da8d41df29bb8478327aae1933a2d35fe | refs/heads/master | 2023-02-01T11:00:49.172677 | 2020-12-16T04:23:31 | 2020-12-16T04:23:31 | 321,567,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | class SparseArray:
class Node:
def __init__(self, data, next_node, previous_node, array_index):
self.array_index = array_index
self.data = data
self.next_node = next_node
self.previous_node = previous_node
def get_data(self):
re... | [
"jimmyc2322@gmail.com"
] | jimmyc2322@gmail.com |
5f2b15931a75439bc09b09b417d82d8f4b96ecbd | 2f6196d1d6dca474dbf9305761e1f5f5503d6e5b | /benchmark/HIGGS/TP-Prior.py | 08b45049438236151ea4f0423eaff5db0b20de75 | [
"MIT"
] | permissive | victor-estrade/SystGradDescent | f3db6acc38a9e5a650982022c2d3cb22948f3d33 | 822e7094290301ec47a99433381a8d6406798aff | refs/heads/master | 2021-07-24T14:29:04.400644 | 2021-07-01T06:47:13 | 2021-07-01T06:47:13 | 174,348,429 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,825 | py | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
# Command line :
# python -m benchmark.HIGGS.TP-Prior
import os
import logging
from config import SEED
from config import _ERROR
fr... | [
"victor.antoine.estrade@gmail.com"
] | victor.antoine.estrade@gmail.com |
8d8c9788a9836bac94cd547c3889d9deb500b5f6 | da437d59c9caf5d10e8c7be0e640a6c08507d2f4 | /data/CNN.py | 734b06a9792eb9f55ea0e8eb9f87d55e8548a7e5 | [] | no_license | SoliareofAstora/vision_pipeline | 9982ea7b3d2fe009102d0e712535be9bba362a1c | f7a2d76a155c8b3d863b10e7f9e1a148f98c3780 | refs/heads/main | 2023-05-08T23:36:19.403137 | 2021-06-01T14:12:31 | 2021-06-01T14:12:31 | 372,847,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,179 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class CNN(nn.Module):
def __init__(self, args):
super(CNN, self).__init__()
self.criterion = torch.nn.CrossEntropyLoss()
self.args = args
self.L = self.args.L
self.D = self.args.D
self.K = self.args.... | [
"piotr1kucharski@gmail.com"
] | piotr1kucharski@gmail.com |
de560c64ba52aaecaeac7ec15a5ce04eb115991c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2018v7/conf_test_fatjetscale_DY/configuration.py | 586bc0ae5cf8cc622910ab866255e792b1b7f1ac | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 950 | py | # Configuration file to produce initial root files -- has both merged and binned ggH samples
treeName = 'Events'
tag = 'DY2018_v7'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'+tag
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables
variablesFile ... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
c3701aa49b4c51ded0baedb47b8a7c05212e663c | 360e92850a0bd7dfa192f5ca9132fb69ef88df08 | /Data Generator V 1.0 .py | 1afc52eeef86d9b7db235e92f09629e7b68f807c | [] | no_license | rochellesteele/Data | 87f5536c80366aa1cd6fe32f7dae9d7df219719f | a5c2dfacbe0ff5d171df4438e07be9c5a13dfbdf | refs/heads/master | 2020-06-26T04:26:11.549154 | 2019-07-01T20:16:31 | 2019-07-01T20:16:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py |
import numpy as np
import math
import random
from statistics import stdev
import pandas as pd
import matplotlib.pyplot as plt
seconds = 4000 #data aquisition time
samples = 20 #samples per second
time = np.linspace(0,seconds,seconds*samples)
heart_beat_amp = 500 #amplitude of the heart beat in counts
breath_amp = 50... | [
"noreply@github.com"
] | noreply@github.com |
05469b710f5c6a95209af7d598ec98156bd5d97e | ab5ec8468dc01aef7e46dd802b6a368d5693ba0c | /archieve/for_jiarong.py | df1b12b973a1856ba60366525dc8d9ecbbf81609 | [] | no_license | Jiarong-L/spacial_map | 4119d90600c2a53a53929c323c1a3fa7b3000fca | ceadf3f498a32c303980cff7154b7effa029b3e8 | refs/heads/master | 2023-02-01T20:06:56.717391 | 2020-12-18T08:29:57 | 2020-12-18T08:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | import novosparc
import time
import numpy as np
from scipy.spatial.distance import cdist
from scipy.stats import pearsonr
if __name__ == '__main__':
dataset_path = '/sibcb1/zenganlab1/shenrong/output/project_regeneration_20201020/table/expr_matrix_10day_log_normalized.txt' # this could be the dge file, or also can be... | [
"1299025078@qq.com"
] | 1299025078@qq.com |
4d6f518366d4aa6722fcdf84cbdbbce305db1563 | 8bf2be4528af71670309c0ce05e400a48d139f6c | /app/main/routesHelper/routesDbHelper.py | e68125dd752366b2864f7141da930d2752f5f75e | [] | no_license | eoghanmckee/hound | 179655089b2f0724f53dd0f33a93cfd6bcb770ba | 5393384d9cae12a2159694e04a5351fdcaf20031 | refs/heads/master | 2022-12-23T20:42:29.980074 | 2020-09-23T22:51:17 | 2020-09-23T22:51:17 | 263,177,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import logging
import urllib.parse
from app import db
from flask import request
from urllib.parse import quote
from app.models import SlackWebhook, Names, Usernames, UserIDs, \
Emails, Phones, IPaddresses, Domains, Urls, BTCAddresses, Sha256, Sha1, Md5, \
Filenames, Keywords, Events, IOCMatches
def insertslac... | [
"eoghan.mckee@bitmex.com"
] | eoghan.mckee@bitmex.com |
44adf11e68e123617a038d223a248d466f8f01b2 | 0e836ad043697d0a334f468330850c65080a4c3f | /yanghui.py | 337e941d9605c9f254c235a8347d722e1d15ebbf | [] | no_license | wulandy/pyds | a6e99f2814de0023df13d8ba89c89b6fa171ce57 | abeb40d2b5c0e6194aa0f9ff811dc228690f92a6 | refs/heads/master | 2021-05-01T17:19:36.270946 | 2017-01-19T07:44:49 | 2017-01-19T07:44:49 | 79,427,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #coding=utf-8
import argparse
from collections import deque
def yanghui(i):
s=deque([])
s.append(1)
s.append(0)
i-=1
num=9999
while i>=0:
i-=1
s.append(1)
while True:
num=s[0]
if num==0:
s.popleft()
break
... | [
"wulandy1024@gmail.com"
] | wulandy1024@gmail.com |
389b56ddeafab722304da3406994e9dd2e7cbe09 | 4c143c5787f465bbf6686376bb4811ad558cc24a | /api/migrations/0005_rename_screenshoot_app_screenshot.py | ecd0477715e4a2bdf5231062d0eaa11062287e0a | [] | no_license | samlexxy/Crowdbotic-Test-API | 2caa70b30e16e08c51e78bbad9269dc00aed3e4c | d73cc66452ed264931c71578b5436de5a7015211 | refs/heads/master | 2023-08-22T04:31:04.429480 | 2021-11-01T17:51:17 | 2021-11-01T17:51:17 | 423,557,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Generated by Django 3.2.8 on 2021-10-18 11:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20211018_1017'),
]
operations = [
migrations.RenameField(
model_name='app',
old_name='screenshoot',
... | [
"ibiloyes@gmail.com"
] | ibiloyes@gmail.com |
a529fbcae070869bd8992330e56d3ff9294c576d | 794e54abc2504ee76823df70577faf82a3817b51 | /tests/test_errors/test_errors.py | c8c5d4c57d28418c79dc21cdcc74a07382a9c484 | [
"ISC"
] | permissive | thp/pyotherside | 6c54bf04ec657393d915a06452a3406c4c8d8410 | 63eb5290d5994dc31471dd68e43805f78099c7c6 | refs/heads/master | 2022-09-02T18:08:41.498511 | 2022-08-05T11:48:28 | 2022-08-05T11:48:31 | 1,822,789 | 314 | 51 | NOASSERTION | 2021-06-06T10:09:49 | 2011-05-30T18:43:45 | C++ | UTF-8 | Python | false | false | 192 | py | import pyotherside
import threading
import time
def run():
while True:
pyotherside.send("test-errors")
time.sleep(3)
thread = threading.Thread(target=run)
thread.start()
| [
"m@thp.io"
] | m@thp.io |
04912754202eea5fd265b696fa9e5acdcda7a7dd | bb36962cf5a32f78788cdcef39fad76885153024 | /tango_with_django_project/rango/migrations/0006_auto_20170210_0857.py | aef8b581d53a04e3d55886afd74658f872c54426 | [] | no_license | rachelclare47/django_tutorial_1.10 | f80a2c14d52d137b97969212d337e82994629c66 | dffe34da29057b1f8c98ec1bae035c30205c1289 | refs/heads/master | 2021-01-15T13:11:10.054433 | 2017-02-10T14:43:13 | 2017-02-10T14:43:13 | 78,748,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 08:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0005_auto_20170209_1259'),
]
operations = [
migrations.AlterField(... | [
"2191180o@student.gla.ac.uk"
] | 2191180o@student.gla.ac.uk |
df4829079e6b486a8b1360bcb22aec9a0b2a476a | f5e61e489e529c47aad126f3a79e4583a869f676 | /alembic/versions/1c465e341efa_removed_balance_field.py | 2a00f48cd02cda35d8ae0a164c2b4eb6f0ae4400 | [
"MIT"
] | permissive | bitcart/bitcart | 9d8da7b3bb3a050869d428fa5530d9ce6ba61176 | c1715ed9c302b5d2c92003d172a94467b4523284 | refs/heads/master | 2023-08-17T19:37:23.075461 | 2023-08-13T23:35:33 | 2023-08-13T23:35:33 | 173,628,650 | 37 | 10 | MIT | 2023-08-08T23:15:17 | 2019-03-03T20:54:15 | Python | UTF-8 | Python | false | false | 706 | py | """removed balance field
Revision ID: 1c465e341efa
Revises: a27789cb7b2a
Create Date: 2020-10-09 23:29:44.645464
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "1c465e341efa"
down_revision = "a27789cb7b2a"
branch_labels = None
depends_on = None
def upgrade()... | [
"chuff184@gmail.com"
] | chuff184@gmail.com |
31fa6cf28dee74da3917221dcc286b6239f35fdc | d5ba475a6a782b0eed5d134b66eb8c601c41421c | /terrascript/data/template.py | a964634d94047ba5352fbbb1a6371b1e8858546a | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | amlodzianowski/python-terrascript | ab42a06a5167e53ad8093b656a9bf14a03cb031d | 142b1a4d1164d1012ac8865d12fdcc72f1e7ae75 | refs/heads/master | 2021-05-19T11:59:47.584554 | 2020-03-26T07:13:47 | 2020-03-26T07:13:47 | 251,688,045 | 0 | 0 | BSD-2-Clause | 2020-03-31T18:00:22 | 2020-03-31T18:00:22 | null | UTF-8 | Python | false | false | 233 | py | # terrascript/data/template.py
import terrascript
class template_file(terrascript.Data):
pass
class template_cloudinit_config(terrascript.Data):
pass
__all__ = [
"template_file",
"template_cloudinit_config",
]
| [
"markus@juenemann.net"
] | markus@juenemann.net |
84ce29ec0b055f310b9c7a1cc9c761783cad19b7 | d1a39a3a5217412cb56cc3349963bb3ad5d9857c | /Life.py | cbdcf3effd2d864db06f9ad050a3c4ed870f00d8 | [] | no_license | MingStar/Nature | 8d160ca12103092bf81a192cd91a3e3f83a80799 | b03be7f4cb6dfdacc3bbe758f05fef13c643783a | refs/heads/master | 2019-01-02T07:48:44.209502 | 2012-07-23T14:38:11 | 2012-07-23T14:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import random
from Constants import *
from DNA import DNA, Action
X = 0
Y = 1
def getRelativePos(dist):
"""
get relative pos at this distance
"""
dist = abs(dist)
pos = []
for i in xrange(-dist, dist+1):
j = dist - abs(i)
if j == 0:
pos.append((i,j))
else:
... | [
"mingstar215@gmail.com"
] | mingstar215@gmail.com |
2ab9a055c087bec20f55a801e2d7e465ac1a6f7c | c149570f4eefd2ca015581509618d87b61d5d946 | /model/hooks.py | 9fb0a6077d2604812d903a6b1fa898e50acc8d07 | [] | no_license | yfliao/music-transcription | 84c7db67ac3d2a2b7c0b6cae4de53e43c837ce36 | a1615e5c252a33bfa22c3b6ec2e3b4ba2ac11820 | refs/heads/master | 2020-05-15T16:22:57.940063 | 2019-04-19T22:53:55 | 2019-04-19T22:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | import tensorflow as tf
import pandas
import mir_eval
import evaluation
import datasets
import numpy as np
import visualization as vis
import matplotlib.pyplot as plt
import matplotlib
import os
import csv
import time
mir_eval.multipitch.MIN_FREQ = 1
def simplify_name(name):
return name.lower().replace(" ", "_")
... | [
"balhar.j@gmail.com"
] | balhar.j@gmail.com |
eece6af6b08c1d59567df069fc76ac636d14c164 | 4e529788eff965b1c591150457914941f1ed5932 | /7 kyu/The Office IV - Find a Meeting Room.py | ef5bae031489c476178680cf62a209766278089b | [] | no_license | Margarita-Sergienko/codewars-python | a8d70c1be8bb83e83b8319604fc68b9a7d4c656b | 1dde0137873ebd596f931eb30c797c5a88e729d1 | refs/heads/main | 2023-03-12T00:02:52.969107 | 2021-02-19T04:05:59 | 2021-02-19T04:05:59 | 305,252,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # 7 kyu
# The Office IV - Find a Meeting Room
# https://www.codewars.com/kata/57f604a21bd4fe771b00009c
# Your job at E-Corp is both boring and difficult. It isn't made any easier by the fact that everyone constantly wants to have a meeting with you, and that the meeting rooms are always taken!
# In this kata, you w... | [
"noreply@github.com"
] | noreply@github.com |
04ce13404cbea01047eb7cdedbdb9aea7f8b1fc8 | b41b95d716b9b5b2e883f4d1dece78df9566ab07 | /opencv_blur_img.py | 477e3e41588c81e6caca8cf8c4dd958b0e30cc7c | [] | no_license | ervishuu/OpenCv2 | 8e71e581d9d2453bd91e2d0d3dc04917c7fc708a | 3e0691c2666f77ebd01ea1cd6e591a70912883e6 | refs/heads/master | 2022-12-02T21:06:13.288330 | 2020-08-18T04:33:23 | 2020-08-18T04:33:23 | 288,349,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | import cv2
import numpy as np
img= cv2.imread("F:/Images/f1.jpg")
cv2.imshow("original img",img)
cv2.waitKey(0)
#create 3x3 Kernal
kernal_3x3 = np.ones((3,3),np.float32)/9
blurred = cv2.filter2D(img,-1,kernal_3x3)
cv2.imshow("3x3 kernal img",blurred)
cv2.waitKey(0)
#create 7x7 Kernal
kernal_7x7= np.ones((7,7),np.floa... | [
"vishvanathmetkari2000@gmail.com"
] | vishvanathmetkari2000@gmail.com |
3ae766f684e591c9c4ef4688fc51c7a7723f0ede | 9e5424a09128bd414e0d45bb3edd4fe208fa8312 | /fibonaccisequencerecursion.py | 6f013fffd06bc35ff1f1ed7a4106dee436903589 | [] | no_license | Prabesh-Shrestha/Fibonacci-Sequence-in-Python | 23d3bcc643fd5dbf3654dfbe6aa9a4d708aad0c4 | 9655a70854f4101582fbf377315e42e3ca968df0 | refs/heads/main | 2023-02-05T22:41:20.990817 | 2020-12-30T03:20:28 | 2020-12-30T03:20:28 | 325,443,123 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | userval = int(input("How much do you wana print: "))
def fib(n):
if n == 0:
return 1
if n == 1:
return 1
else:
return fib(n-1)+ fib(n-2)
for i in range(userval):
print(fib(i))
| [
"noreply@github.com"
] | noreply@github.com |
96fa37e9f41607403ec3f0e59669aaa85bb9ed98 | bb3fb268b2a1a586377ca15c4d79187d51ae7273 | /noise_reduction.py | fce63e6fab6d37c595ef7519e806cfcd8d88b624 | [] | no_license | romero8688/SmartSheetMusic | f24e7463aa4d289d17187d5a75fb9631fcb657fb | d8895e94cbe44fe8e1bea529bc269ee5f06eab11 | refs/heads/master | 2023-06-30T12:53:34.916635 | 2019-01-18T12:00:05 | 2019-01-18T12:00:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,835 | py | import numpy as np
import os
os.environ['LIBROSA_CACHE_DIR'] = '/tmp/librosa_cache' # Enable librosa cache
import librosa as lb
import utils_audio_transcript as utils
# We set the window type to Hamming to avoid numerical
# issues while running the algorithm online
# (the Hamming window does not go to zero a... | [
"noreply@github.com"
] | noreply@github.com |
6300090e5a1167be972d853d145e04125121895d | ccbcaca6df1c3984a19f039351e29cfa81e73314 | /timetable/schedule.py | a3265c9ffcaa2c76a8c6866709dc7413cf0e18ea | [
"BSD-3-Clause"
] | permissive | pgromano/timetable | b96c6eb2da8ede8abfa211f6d54748a4a5a9c9c7 | 8fa83fa82bb2afc56f6da1b7f8e3836f2b127164 | refs/heads/master | 2021-01-21T00:22:17.376372 | 2016-08-17T14:57:25 | 2016-08-17T14:57:25 | 61,254,584 | 0 | 0 | null | 2016-06-16T02:07:07 | 2016-06-16T02:07:07 | null | UTF-8 | Python | false | false | 182 | py |
class Schedule(object):
"""Student schedule object.
"""
def __init__(self):
def add(self, course):
"""Add course to schedule"""
def courses
| [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
3b0848f202ecd9d4c0ae3efc96929599353adf99 | 9dfc9d9bbf8cb415e8fe9cc618047f46a3fd8278 | /cut-video-with-text/Text_classification/text_classify/train.py | b28b0ddbf0601d1e78f46edf9d4f20a3a45ef21a | [] | no_license | kaiyu-tang/Little-niu | e50397ec1cd98d35e8b65472effbd7649b88a096 | 2ee215277a08f66c6a6932865a6467cb14722b2d | refs/heads/master | 2021-06-30T04:56:06.597051 | 2018-12-24T13:46:55 | 2018-12-24T13:46:55 | 132,573,637 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,736 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/5/29 ไธๅ3:06
# @Author : Kaiyu
# @Site :
# @File : train.py
import json
import os
import time
import torch
import torch.utils.data.dataloader
import torch.nn.functional as F
from Model import TextCNN, TextRNN, TextVDCNN
from Config import... | [
"tangkaiyuvip@gmail.com"
] | tangkaiyuvip@gmail.com |
d934c066420370ae2be79b824a2058c1b52e6568 | 210befd04f2ba70a0843df8b59d309eab1ff3316 | /temp.py | 9578fef96fb82f47e2552d63e0ef4cd614b8fa6d | [] | no_license | ahilh/projet-2i013 | d159b023d7d7f51833057f350eab04891487f208 | 8f008a0d2d7e6c8178603f77aa46b8cc2d6ec27b | refs/heads/master | 2020-04-19T05:34:48.002251 | 2019-02-25T18:01:47 | 2019-02-25T18:01:47 | 167,991,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from salsa import Attaquant, Defense
from soccersimulator import Player, SoccerTeam, Simulation, show_simu
joueura1 = Player("Attaquant A" , Attaquant())
joueura2 = Player("Defenseur A" , Defense())
team1 = SoccerTeam ("Equipe A" , [ joueura1, joueura2])
# nombre de joueurs de l equipe
joueurb1 = Player("Attaquant B"... | [
"ahil.hassanaly@yahoo.fr"
] | ahil.hassanaly@yahoo.fr |
3e14d69378a30d8887db254aeede0f54138ce747 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/matrix/4d38ab06972046a988250a3005464d09.py | 03b161fe26511da6e0ce058e59c662bf8f099254 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 488 | py | class Matrix(object):
def __init__(self, init):
split_at_newline = lambda m: map(lambda s: s.split(), m.split('\n'))
convert_to_int = lambda m: map(lambda s: int(s), m)
column_range = lambda m: range(len(m))
column_member = lambda x, m: map(lambda s: s[x], m)
self.r... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
507318a00b41ce38db963c43532b962a36ca4c43 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_print32.py | fed133646d96b60d6083b2f83a8360c33eb35250 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from xcp2k.inputsection import InputSection
from _program_run_info23 import _program_run_info23
from _restart10 import _restart10
from _restart_history4 import _restart_history4
from _current1 import _current1
class _print32(InputSection):
def __init__(self):
InputSection.__init__(self)
self.PROGR... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.