blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
531590a79151cab03af74e1d6f7c08b7b8bfa05d
8de1cae4c3e014e177ef95b97fd4cdcb898c1fdd
/tasks.py
88d2708c7942cd54a15e92451cfe288baef7fc6e
[]
no_license
john-shiner/pylogbrowser
42008a0efd6451721bbe3d3ccba00332e71a927a
31b60e873f566f2b4f4a91cdc65fa99d82f7d6b2
refs/heads/master
2023-03-21T13:07:17.568194
2020-10-27T19:53:16
2020-10-27T19:53:16
259,982,015
0
0
null
2021-03-20T04:04:38
2020-04-29T16:35:48
Python
UTF-8
Python
false
false
5,474
py
tasks.py
#!/usr/bin/python3 """Run these tasks from the project directory""" # point to the appropriate project yml files from invoke import task import os import os stream = os.popen('pwd') output = stream.read() inv_path = output.strip() os.environ["INV_PATH"]=inv_path redis_depl = "$INV_PATH/k8s/redis-deployment.yml" re...
73f72fd4a7cd11b57c082330384bf6aba37cb3fe
90ac84fc0898cf3537583d38d936af0edf76fb16
/longest_sequence.py
a58d1ef233062a2a81d434c34f74c0be7014d65a
[]
no_license
3Thiago/Competition-Toolbox
84515cbc029d1d07aa5281c04c75d13b3ea8a6d3
da672793ccf1fd43df917d75474df3c82d7581b6
refs/heads/master
2020-06-16T22:23:34.721728
2019-07-01T07:56:22
2019-07-01T07:56:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
longest_sequence.py
def longest_sequence(N): ''' Find longest sequence of zeros in binary representation of an integer. The solution is straight-forward! Use of binary shift. ''' cnt = 0 result = 0 found_one = False i = N while i: if i & 1 == 1: if (found_one...
d2659ccc511ca24eac0a4b370b50d6fc08b5dd03
41dae49ea63f0ca1e5098fc4e2e447e38465ba4d
/permutations.py
b643e15027973225b5fb69f4ade7da16579ca9b8
[]
no_license
kaz-mathui/LeetCode
c2f7b1cccd2237b806c4a94fcbc93872e37b6fe8
1e91c52f189a49cf9541b19ff37f934c1fbc14a2
refs/heads/master
2023-04-06T07:05:24.387760
2021-04-20T11:59:35
2021-04-20T11:59:35
331,304,484
0
0
null
2021-02-27T17:27:09
2021-01-20T12:45:23
Python
UTF-8
Python
false
false
1,468
py
permutations.py
# class Solution: # def permute(self, nums): # """ # :type nums: List[int] # :rtype: List[List[int]] # """ # def backtrack(first = 0): # # if all integers are used up # if first == n: # output.append(nums[:]) # for i in ra...
f4962af591ac7f0882a9e665513945992cf5f23e
11c42dd9b0b1b379de533943a0a8700b33d9f29f
/vjezba6/vjezba6.py
d531176a913610c5ade9c6814e96f94e23dd7c4f
[]
no_license
petrajuka/Zadace-i-samostalni-zadaci
42db018c1c810fa395a9c2f937a0c22bae983fee
49543bf96ae0f1758e2313898e1b94bf93d4ed09
refs/heads/master
2022-09-12T14:46:50.416053
2020-06-05T10:29:15
2020-06-05T10:29:15
269,600,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,749
py
vjezba6.py
import random from vjezba6Error import PogadanjeEror class Pogadanje: def __init__(self): self.num_round = 1 def display_title_bar(self): print("\t******************************") print("\t**** Igra- Pogađanje broja ***") print("\t******************************") def ...
e40fc64127f517c9c9844de2dc090740edc1d1d1
ebac806d8289e6268ebd4b8075e682bdaeff860b
/tests/draw/test_visibility.py
e9e17ee55cac4482704e8da9c20b5c6f608d98d6
[ "BSD-3-Clause" ]
permissive
Kozea/WeasyPrint
af1613ea28ba54bf14ac2cbba37c4832393d71e7
6977e79ce94ef605d39276702e3484d2a9570b35
refs/heads/master
2023-08-11T07:08:47.828375
2023-08-09T18:14:07
2023-08-09T18:23:15
2,179,572
5,685
739
BSD-3-Clause
2023-09-04T20:52:57
2011-08-09T14:14:24
Python
UTF-8
Python
false
false
1,492
py
test_visibility.py
"""Test visibility.""" from ..testing_utils import assert_no_logs visibility_source = ''' <style> @page { size: 12px 7px } body { font: 1px/1 serif } img { margin: 1px 0 0 1px; } %s </style> <div> <img src="pattern.png"> <span><img src="pattern.png"></span> </div>''' @assert_no_logs ...
881e337c983929572b8d3719b9a25f815d8e589c
6db70ea8b3852ef03945dbb9f429fb035b90f00d
/gcdofno.py
e7511c0d133185a8fc1cfb4b72d7ba3145c6d71c
[]
no_license
viharika-22/Must-Do-for-prac
0a8a0dcaafd954b4304f1bbe1ed927bb3de60342
8122c28d1a48e166fe8a30d70d8b4e08af25ee86
refs/heads/master
2022-12-16T22:28:13.188924
2020-09-10T21:00:41
2020-09-10T21:00:41
294,173,877
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
gcdofno.py
def gcd(a,b): while b: a,b=b,a%b return a a=int(input()) b=int(input()) print(gcd(a,b))
ee98808d74f6ab6ef3fc633390cdbdd265af14e7
d5d67ee9395a724ce8f040d2556fea666a187865
/reinforcement_learning/continuous_control_with_deep_reinforcement_learning/ddpg_tf.py
f18eb295e8bfe4be979ba4a025161711e1dc8b6c
[]
no_license
RomaneCastel/papers_implementation
e002fdf3f4517d1f736e34c04dfdf6cfa1cefccd
8014e5cba6bd96e14a09243c6a1228d2c81025b1
refs/heads/master
2021-04-14T20:11:59.137621
2020-03-22T20:07:30
2020-03-22T20:07:30
249,262,322
0
0
null
null
null
null
UTF-8
Python
false
false
16,446
py
ddpg_tf.py
import os import numpy as np import tensorflow as tf class OUActionNoise(object): def __init__(self, mu, sigma=0.15, theta=0.2, dt=1e-2, x0=None): self.mu = mu self,sigma = sigma self.theta = theta self.dt = dt self.x0 = x0 self.reset() def __call__(self): ...
2ff4a2a50cb3a5d957d4791df7d2a6a3cc172e25
c4758ebd5e331b52c2155726512daf024e25f684
/skater/obstacles.py
3ff5a0cc5337690801c0683de823691886bdf83d
[]
no_license
rwakulszowa/Skater_pygame
2aaaf4bb02d07bc375b2e9ae89dc089f1d096adf
8e50e4467af097a11d2113e99e8275c442cf1c50
refs/heads/master
2020-03-22T10:29:02.293002
2018-08-25T12:56:14
2018-08-25T12:56:14
139,905,744
0
0
null
2018-07-05T22:15:41
2018-07-05T22:15:41
null
UTF-8
Python
false
false
1,434
py
obstacles.py
from math import inf import pygame from pygame.locals import * class Obstacle(pygame.sprite.Sprite): def __init__(self, image, x = 0, y = 0): super().__init__() self.image = image self.rect = self.image.shape self.rect.x = x self.rect.y = y def is_under(self,...
8668c6a34f39546b2ef8bcd6c04ddb2c999f229d
8c91c1345c865d83af918f5e62909c7d560721d4
/THINK LIKE A COMPUTER SCIENTIST FOR PYTHON 3/CHAPTER 18 RECURSION/flatten nested list.py
93b79e44e9d9f887530e05e418f1da192703be9b
[]
no_license
Tomasz-Kluczkowski/Education-Beginner-Level
7870ac594a2144c52bf0c63adec7da249138196e
590eb65416dd09b73b53427d14a0339193a5da97
refs/heads/master
2021-07-03T06:40:13.714469
2017-09-21T19:14:27
2017-09-21T19:14:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
flatten nested list.py
from unit_testing import test def flatten(nested_list): """ Returns a simple list with all elements of the nested_list """ new_list = [] for item in nested_list: if type(item) == type([]): new_list.extend(flatten(item)) else: new_list.append(item) return new_li...
7c9223cf105b39f5f93da6c3d5f32874c8c7abc0
81af78241b1a3c09d80db4f0ef2effa3c869e20d
/NLP/TP2/OOV.py
c02f881eb6269d595f740b3e0496a46cc32fc4bf
[]
no_license
guipet/appolon
412c39afc2dc5281faafa43d3618c8dcf6e15365
340ad70c6f294663acca297d1496a39baf1be047
refs/heads/master
2021-07-07T18:24:39.838336
2021-01-17T12:42:38
2021-01-17T12:42:38
222,292,992
1
0
null
null
null
null
UTF-8
Python
false
false
9,073
py
OOV.py
import numpy as np import pickle import nltk import nltk.tree as Tree from pcfg import * import re # Noramlize digits by replacing them with # DIGITS = re.compile("[0-9]", re.UNICODE) #cosine similarity def cos_similarity(word1, word2): ''' Inputs: -word1 : vecteur -word2 : vecteur Output: -score : réel c...
caf9122a722427bca0e76ddc4c4b6bdb02caf730
efc3737148038d34f00677d8304c1b1fd1a75733
/cowin_v1.py
02e79bab5ffccf1ccfa765d79ed038e2e140a699
[]
no_license
vaishakhp1902/covidBot
436343629f75da49b78446f42f53ca9755b67df1
508cc1c22043d82843684c0b72ba35d14a265e16
refs/heads/main
2023-05-14T06:11:20.598196
2021-05-23T11:38:32
2021-05-23T11:38:32
370,035,563
1
0
null
null
null
null
UTF-8
Python
false
false
1,540
py
cowin_v1.py
import requests from datetime import datetime cowin_url= "https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict" telegram_api_url= "https://api.telegram.org/bot1841619990:AAHVHp1shdmcSjbVnF_9zUOPciS_r0uT7No/sendMessage?chat_id=@__groupid__&text=" now=datetime.now() today_date= now.strftime("%d...
9b33b8efd7235b0d3d096f0a9409d168d36af9a7
6b8306a89a9fb202f61884f0298438cb9eb15b65
/app_tests/webdriver/test_keyActuator.py
b9e5487746a51f9bdc95b3cdda1224977d8707d2
[ "MIT" ]
permissive
enricoteterra/virtual-agent
0500df3b49a260f48e4242516ae85eff909150a7
fa07df4789ebf265bd56726f6d9aad6fce411c97
refs/heads/master
2020-03-18T21:46:31.773279
2018-07-01T14:59:08
2018-07-01T14:59:08
135,302,189
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
test_keyActuator.py
import unittest from app.webdriver import KeyActuator class KeyActuatorTest(unittest.TestCase): """@TODO listen to dispatch & validate contract"""
08cb81ff5214f10c7fc5837ba8149c066b57c7c9
0db69df62b54f5e15a62a51035831419adcb3f35
/felica_plug/read_w525.py
fe472e0892bde04a1ff141b0cd49fd22026e1668
[ "Unlicense" ]
permissive
thinkAmi-sandbox/nfcpy-sample
dcead3f75be7ace4ed95cdb5b272c201dad57b23
06daa02caee3bc26a074c9f4cf016aab27a7e549
refs/heads/master
2021-05-12T12:49:16.355081
2018-01-20T07:09:10
2018-01-20T07:10:15
117,423,225
0
0
null
null
null
null
UTF-8
Python
false
false
2,101
py
read_w525.py
# -*- coding: utf-8 -*- # https://nfcpy.readthedocs.io/en/latest/topics/get-started.html#read-and-write-tags import nfc import nfc.tag.tt3 import binascii def connected(tag): print tag # => Type3Tag 'FeliCa Plug (RC-S926)' ID=03xxxxxxxxxxxxxx PMM=01xxxxxxxxxxxxxx SYS=FEE1 print type(tag) # => <class ...
a83767395370da52ff683a66e765ead921f659b3
d03d088b3ac7fdd8c8fcfd1a06ef3a0c72e043a8
/start/app/ContaLibrary.py
62a9bfa9a0e8e11b782b16162a34c4d8d25ec6cd
[]
no_license
RaphaelCarvalho07/RobotXpert
002440449aaae682600d90d2aac28b791b666c95
6adbd326b0c4922113179b08bc1b98a11daa788b
refs/heads/master
2023-06-28T18:24:37.518326
2021-07-28T22:09:32
2021-07-28T22:09:32
369,582,015
1
0
null
null
null
null
UTF-8
Python
false
false
415
py
ContaLibrary.py
class ContaLibrary(): def abrir_conta(self, saldo = 0.0): self.saldo = 0.0 self.deposita(saldo) def obter_saldo(self): return self.saldo def deposita(self, valor): self.saldo += valor def saca(self, valor): self.saldo -= valor self.saldo -= 2.0 # cont...
b96ecd2e5cfe351781f4a445d04a0d8ae19a7115
d06d66271030c6bb7afcc04569e250f276bf28dd
/DeepHyperion-BNG/core/plot_utils.py
d08e60421e53b4e8b49b6da4e2007313f1e786c0
[ "MIT" ]
permissive
testingautomated-usi/DeepHyperion
d81a1e0086b7246a1ed178302dc90c98c00df7a0
8a9fc5a2fbf1f94ef12ca1b73ef74b414ddb6078
refs/heads/main
2023-05-12T16:05:50.564618
2023-05-04T14:00:45
2023-05-04T14:00:45
359,465,104
8
4
MIT
2021-11-25T08:57:18
2021-04-19T13:13:48
Python
UTF-8
Python
false
false
7,695
py
plot_utils.py
import matplotlib.pyplot as plt import seaborn as sns from matplotlib.offsetbox import OffsetImage, AnnotationBbox from matplotlib.patches import Rectangle from svgpathtools import svg2paths, wsvg import os import re import numpy as np import glob import cv2 import pandas as pd NAMESPACE = '{http://www.w3.org/2000/sv...
91d1a55c1cdc778530b8a1c888d9404c6c23c515
e2788166f465dac26826137a1aa7f722346fcdb1
/intentions/resources.py
56491a918255027dd1c32972db1d20b7742f5b74
[]
no_license
therosemary/bms_colowell-2
53ef6b96b971aa560381e520f6f3074359cff05f
6351a7c1606b56c43b2db212445bdb658cfbcbef
refs/heads/master
2020-04-11T07:19:02.526943
2019-04-04T03:01:26
2019-04-04T03:01:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
resources.py
from import_export import resources from import_export.fields import Field from import_export.widgets import DateWidget from intentions.models import Intentions class IntentionSource(resources.ModelResource): """意向池导入导出resources""" id = Field( column_name="编号", attribute='id', default=None ) ...
d8ca6b89b01574a5b169512f22e68fe97e9ecf3d
9d7949891d8c8fe30cf0125a6d44d15369b0edc1
/Exercicios/041-060/desafio046.py
366b9d4018da50d7e34b6d31af5098afbd2a3c1d
[]
no_license
FelypeNasc/PythonCursoEmVideo
ff81cc14a2ddf08477fca400831e45456ece06e7
43cc27becf465e5ae4f47a7ff95de90603be93c9
refs/heads/master
2023-06-16T14:53:03.581758
2021-07-10T23:21:55
2021-07-10T23:21:55
380,390,555
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
desafio046.py
from time import sleep for c in range(10, 0, -1): print(f'{c}!') sleep(1) print('KABOOM!')
aa97a43cfc6971858fc4c7286f8b8ba3f61899c6
ad13583673551857615498b9605d9dcab63bb2c3
/output/models/nist_data/list_pkg/id/schema_instance/nistschema_sv_iv_list_id_enumeration_5_xsd/nistschema_sv_iv_list_id_enumeration_5.py
2b3cf12a108ec5389b99e8f7c47c1fbf1748d372
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
5,984
py
nistschema_sv_iv_list_id_enumeration_5.py
from dataclasses import dataclass, field from enum import Enum from typing import Optional __NAMESPACE__ = "NISTSchema-SV-IV-list-ID-enumeration-5-NS" class NistschemaSvIvListIdEnumeration5Type(Enum): AIS_WBUSINESS_HA_NORGANIZATIONS_THAT_DOCUMENTS_TIME_IS_AND_PROCE_AND_WORLD_THESE_TO_COOPERATION_COMMUNITY_ALLOW_...
ee078510badf675401449dae69db172e48bf0988
ad4c9bd6382e91879b18a7354a2d7b5600c0d3b3
/src/the_edit_editor.py
df760770fd7142945f5ce316915dde9364181676
[ "MIT" ]
permissive
varnerlab/Reduced_EMT_Model
ce5dfac5153f5c6a2fd073e4634a2c4fad5bc678
48cda4ef98cfcf539f8b38def68d64722a2db8be
refs/heads/master
2021-01-11T07:15:06.394892
2017-01-30T16:31:45
2017-01-30T16:31:45
50,203,963
1
0
null
null
null
null
UTF-8
Python
false
false
2,129
py
the_edit_editor.py
# update edit_file_global with new indices from a new model buil # be careful, if entries are missing or mislabeled, all indexing will be thrown off, so spot check the new edit file execfile('../pyprgs/in_out_line.py') read = lin.reader('edit_file_global.jl') old = lin.writer('old_edit_file_global.jl_old',read) comme...
74ae4fa8a5213fc08f2a5194c0b9fc7246bc3fda
b7634e92ed147a34cdb017598c6d8dd41c0def96
/aula11/admin.py
a24b5b59440d45f37a907d41d55fba2279da2893
[]
no_license
mayronceccon/olist-django-labs
a4e9805489f4c9ad782f5085188dee342d4ac051
fbe6f314554e65f0a47dddc7c2c21165ccc1d828
refs/heads/master
2021-09-28T14:21:44.385979
2020-06-06T00:25:54
2020-06-06T00:25:54
240,728,135
1
0
null
2021-09-22T18:44:59
2020-02-15T14:36:27
Python
UTF-8
Python
false
false
127
py
admin.py
from django.contrib import admin from .models import Categoria, Post admin.site.register(Categoria) admin.site.register(Post)
446da7131dd75f0dc092fbc36ff055f6e36a3b0e
1427406bf4982cd38546bc01b4b55c868d540cef
/movielist/migrations/0043_auto_20170326_1337.py
d48253318bf084779c112c8667047fc1d4796e62
[]
no_license
daansmits1/mhaggle
912fc7ccb3969ceaa4e49dfee1be94b38ddfc238
f1b6b9793ed29884cb44e615da58b77e13476ad7
refs/heads/master
2021-01-11T15:28:54.919399
2017-05-04T18:37:26
2017-05-04T18:37:26
80,356,806
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
0043_auto_20170326_1337.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-26 17:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movielist', '0042_score'), ] operations = [ migrations.AlterField( ...
fc3bad72cc6e73337c0e76df92047d3754be105a
992508b28c593087b67b0242390a231dcb8a1af1
/summary2.py
90f9f33e9bb2597f9e7d0cc5cca22eddc72a61e1
[]
no_license
japnitahuja/FirstHackathonChatBot
afb11bdc23efa6c43f1aaecaa4f5e57d715cf572
c5d1f5e74a62886b0fe94fb8e59dab604ca5eeb2
refs/heads/master
2023-04-28T05:52:09.547412
2018-07-14T06:25:55
2018-07-14T06:25:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
summary2.py
import re import os import sys import json from scrapy.spiders import Spider from scrapy.selector import Selector class GoogleSearch(Spider): #set the search result here name = 'Google search' allowed_domains = ['www.google.com'] start_urls = ['Insert the google url here'] def parse(self, re...
ea9fee34789377a716f8494cc4e8c15e749941e3
6c9b4b80523491d9a7a9124abba3f227c5e7098c
/maximum-subarray/maximum-subarray.py
d495343aa92b37d913ba81449403d01da3a3fba5
[]
no_license
SameeraKodi/Leetcode
4f8523f6ca27cb55ef374bfe523baadd54cae464
fa58bd24c9b516b93e586226451ca347774f0859
refs/heads/main
2023-04-17T23:53:54.047862
2021-04-30T19:05:20
2021-04-30T19:05:20
327,166,660
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
maximum-subarray.py
class Solution: def maxSubArray(self, nums: List[int]) -> int: current_sum = nums[0] max_sum = nums[0] for i in range(1,len(nums)): current_sum = max(current_sum + nums[i],nums[i]) max_sum = max(current_sum,max_sum) return max_su...
3f57f283aa8a005bfa7ac69abaa3f5812df5570c
5188b9365bdecc5f433cd257a58c5b08a4e5cb7f
/app/apps/visits/migrations/0005_auto_20201202_1544.py
a6c91983cd25b60f13f137adf33108f45c2a8bf6
[]
no_license
tiltshiftnl/zaken-backend
b42ce4dc55d990e14b8c2bd19973954870e29965
705b083724c120f8322537d21fd8c25980dbe182
refs/heads/master
2023-01-24T12:40:54.668135
2020-12-09T14:41:06
2020-12-09T14:41:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
0005_auto_20201202_1544.py
# Generated by Django 3.1.3 on 2020-12-02 14:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("visits", "0004_auto_20201106_0416"), ] operations = [ migrations.AlterField( model_name="visit", name="notes", ...
ca3e4554cfd2aa52b6a3c2ba9d5f3a31267147d7
5882d5eb47f647f4810d2af03c43462dde8a30f5
/visualization.py
562d8dc683496115180fb7a94e662e3843c3dc52
[]
no_license
Anita-Kouhestanian/Capstone-Project
366df0172ba189d7b78f80de049ab2b0b47d5f29
81cba48b09aa68aba30f98258898178a0bd139c2
refs/heads/main
2023-05-10T06:39:18.060596
2021-06-08T01:17:35
2021-06-08T01:17:35
372,238,713
0
0
null
null
null
null
UTF-8
Python
false
false
4,877
py
visualization.py
import cv2 from xml.dom import minidom import numpy as np from scipy.signal import convolve2d as conv import matplotlib.pyplot as plt # the following code visualizes the face detection Haar cascade classifier(some of its kernels) # and visualizes the rectangular features if __name__ == "__main__": # pat...
377492d3b5495f417d5bb8f35038b71d5c4e6d6f
ee1dbf71fd793db8702f7c23c42f206aad30ce71
/routes/customerRoute.py
00a84ec0906012ae0abde7cd5436d94f70a81b15
[]
no_license
Jordan71214/Flask-Heroku-Web
ad8025293045c1b7618d7a043fe8ac220eb7fae5
8c21b31ab8ab92fa3bccf32f4918d24fd72cf89b
refs/heads/main
2023-05-07T18:30:57.702854
2021-06-03T14:07:57
2021-06-03T14:07:57
371,325,161
0
1
null
null
null
null
UTF-8
Python
false
false
4,448
py
customerRoute.py
from flask import render_template, request from core.db import DB from services import customerService from models.customer import Customer def init_app(app): #-------------------- # 客戶清單 #-------------------- @app.route('/customer/list', methods=['GET']) def customerList(): data...
e0dc8bedfa6ab76389fa7eab7b3e368a845f3609
206cb0d83077703db023d27eb998ea33a64b5e11
/python/learn/lambdalist.py
39835522bb209707206ff714e36a016634198644
[]
no_license
edangolgithub/evan
85549c9b5ed60ad6a584244c502bd77a7fc79422
3113dfc6c3725610b49a251004fba1eded6dc2f5
refs/heads/master
2023-04-02T10:04:08.428520
2021-03-26T05:05:55
2021-03-26T05:05:55
331,930,242
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
lambdalist.py
import boto3 # no error client = boto3.client('lambda',region_name='us-east-1') response = client.list_functions() for fun in response["Functions"]: print(fun["FunctionName"]) exit()
7116912a7c92e6ef44d8c4680ef19aaa49d9f340
daf19b833c561efae30bd75c06964c1e4ca80393
/ARTICLE/apps/model/LoginHistoryModel.py
6fb1b78ab51242d9a9fec5efddc5bfa50d7722e5
[]
no_license
amirdharaja/Sarah-Article
5f588e8aaaf77cd0719f41c163a43ec7bbbd95cc
be4309bbb5f7de83387b78ee6f6889ec2b62ed18
refs/heads/master
2023-01-02T12:45:42.120992
2020-07-30T16:32:47
2020-07-30T16:32:47
283,821,988
0
0
null
2020-07-30T16:28:10
2020-07-30T16:16:39
CSS
UTF-8
Python
false
false
340
py
LoginHistoryModel.py
from django.db import models from datetime import datetime from apps.models import Login class LoginHistory(models.Model): login = models.ForeignKey(Login, on_delete=models.CASCADE, unique=False) login_at = models.DateTimeField() objects = models.Manager() class Meta: db_tab...
0583ee96ac33f45f6046ac314d360645a4f2c712
b6013afddbdddcb0d67c312bfc064d66e4560f72
/DictionaryWithListValues.py
688b292a95d09cb058f3ad5f7433d1dfb270c01b
[]
no_license
MatthewBolan/FunctionsIntermediate1
13987564c205db9b7ed4f61e516e3c7d41773a55
db9e4d7802961672aea339c540ed166b7ade86b7
refs/heads/master
2023-07-16T09:54:43.330382
2021-08-31T11:23:32
2021-08-31T11:23:32
401,676,705
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
DictionaryWithListValues.py
dojo = { 'locations': ['San Jose', 'Seattle', 'Dallas', 'Chicago', 'Tulsa', 'DC', 'Burbank'], 'instructors': ['Michael', 'Amy', 'Eduardo', 'Josh', 'Graham', 'Patrick', 'Minh', 'Devon'] } def printInfo(dict): for key,val in dict.items(): # Loops around Locations & Instructors print(f"{len(val)} {key.upper...
215727905b428816bed7a6e0806ef869d6da33ce
af66ef6e1ab25a2987e448901371ba3ebfdcc537
/ImageReduceNoise_UI.py
6b3dd0a8dc25f5bf5b679368cfa9da228794886c
[]
no_license
Ming-Yi/ImageGaussReduce
b06d617cd2d5a2d1af56e09a95103a9e6b27cb50
e8cc0c3047cd926a4c750ced84545202a1f97392
refs/heads/master
2020-07-17T20:52:46.137907
2016-11-16T13:58:51
2016-11-16T13:58:51
73,925,171
0
1
null
null
null
null
UTF-8
Python
false
false
5,187
py
ImageReduceNoise_UI.py
# -*- coding: utf-8 -*- from Tkinter import * from ttk import * import tkFileDialog from PIL import Image from collections import defaultdict import threading class Application(Frame): ''' Python UI 初始化 ''' def __init__(self, master=None): Frame.__init__(self, master) self.pack(side="top",fill=BOTH, expand...
f1423aae9705d0c599eae344757be654d5759fc6
0568781b36024764e76e885ec1e2e186877b90d7
/beauty/lps/handler/lpsInerface.py
ce31d81c3d359becb4b11090945a1063ee43b637
[]
no_license
luchengLC/guideForBeauty
3e1d4bb9756222f907c1f29491f070bd74d0d843
9e20ba284864e22cb1c9ba15f20f3e3346a1665d
refs/heads/master
2021-09-13T01:46:37.088090
2018-04-23T15:15:39
2018-04-23T15:15:39
107,341,368
0
3
null
2018-04-11T02:45:53
2017-10-18T01:03:37
Python
UTF-8
Python
false
false
2,978
py
lpsInerface.py
import copy from django.http import JsonResponse from django.views.decorators.http import require_http_methods from django.core import serializers import json from beauty.models import ProductLipstick, ProductEye, ProductBasemakeup, ProductOtherPerfume, ProductPerfume from beauty.lps.handler.updateTianMaoItem import u...
9b7d344fadd702556b5148db687998a744a0071f
7dd544e078a41fedf7dd567caf715fa09f3bf8c1
/chopro/chopro2html.py
dc5a2927b500fed23c97e05b23a0fa86ba7a4f9e
[ "MIT" ]
permissive
nomike/pychopro
4f1ec413ea15b82789bbdcee4086e7b5f3dfc713
75632ed9666a1760bf83a55b4215b94ae3ba4fae
refs/heads/master
2020-09-02T20:29:57.059839
2019-11-04T23:38:54
2019-11-04T23:38:54
219,298,266
0
0
MIT
2019-11-03T12:35:02
2019-11-03T12:35:02
null
UTF-8
Python
false
false
1,315
py
chopro2html.py
"""chopro2html Convert ChoPro/Chordpro to HTML Usage: chopro2html [(-l | --lyrics)] <chopro_file> chopro2html (-h | --help) chopro2html --version Example: chopro2html twinkle_twinkle_little_star.chopro > twinkle.html """ from docopt import docopt import sys import os with open('VERSION') as version...
0f18b05537aeb498219ce2e96063ec7e150d978a
294969e5d123e0487ed80de2a34428fd7d89dfd5
/leetcode/1143. 最长公共子序列.py
aa239ca6d59d23a249208997accbf24896fabbd9
[]
no_license
chenfu2017/Algorithm
0a750c4b2f380cbcb838d2da2352ec4e95067341
ccb3106ae489268aa8f868a43ecdf802a02adc22
refs/heads/master
2022-04-27T09:28:05.296285
2022-03-28T07:18:32
2022-03-28T07:18:32
141,994,018
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
1143. 最长公共子序列.py
class Solution(object): def longestCommonSubsequence(self, text1, text2): """ :type text1: str :type text2: str :rtype: int """ m, n = len(text1)+1, len(text2)+1 l = [[0] * n for i in range(m)] for i in range(1,m): for j in range(1,n): ...
0bcc3dc4274378ff2bd52f640c2140becde498d3
4063c06f2239cc887c80ec8a4ed8b7ccdbe19a02
/maxWeightIndependentSet.py
4a6b8e87b64395f99c57097ed55f4af26c0aea45
[]
no_license
vanessa-bergen/AlgorithmsCourse
20f5aceac9023872ed5a4de0d2851c3294c657e9
f22c670f006b0fa24001ad095628f34989918408
refs/heads/master
2023-03-11T10:31:12.928720
2021-02-16T16:46:08
2021-02-16T16:46:08
330,781,258
1
0
null
null
null
null
UTF-8
Python
false
false
3,415
py
maxWeightIndependentSet.py
""" In this programming problem you'll code up the dynamic programming algorithm for computing a maximum-weight independent set of a path graph. This file describes the weights of the vertices in a path graph (with the weights listed in the order in which vertices appear in the path). It has the following format: [n...
416aeb6e53d6ace4e0cfa917e9a4ef3c323dfce5
67a37f3de131e3ddf0fb5e3df0c6fa49a0c50e7d
/algorithms_DS/analysis/big_o.py
2098e3b9db44f68de265aab069b9bee073bdfbc8
[]
no_license
agatanyc/RC
5ae7fe210a32b3d2b8ea918713fdecf3465e86db
52a46402e2d3215b5a666b80b293eae0c463b65a
refs/heads/master
2020-04-12T06:41:11.977118
2016-12-11T18:12:31
2016-12-11T18:12:31
60,784,394
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
big_o.py
"""Write two Python functions to find the max number in a list. The first function should compare each number to every other number on the list. O(n2)O(n2). The second function should be linear O(n)O(n).""" def compare_1(xs): r = 0 for x in xs: xs.remove(x) ys = xs for y in ys: ...
5ed6108376f5dfe7bc32c934ab899335e42fd84b
d8b09fdf939492f27583ae59fa99920ae4fd2d5a
/culturacyberCore/migrations/0016_auto_20201204_1244.py
6733866cac6b5414101a6b14f1d635d030eb194e
[]
no_license
ImSoHappi/CulturaCyber
e2f1b6e3bc67dec2e516913ca9157b2038a6da3a
654e737b3b56521751cf394a09eacff44e71e2a2
refs/heads/master
2023-04-21T04:40:45.775788
2021-05-05T00:39:21
2021-05-05T00:39:21
300,718,138
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
0016_auto_20201204_1244.py
# Generated by Django 3.1.3 on 2020-12-04 15:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('culturacyberCore', '0015_client_module_model_disabled'), ] operations = [ migrations.AlterField( model_name='client_module_model...
a9c04581e41f2ee16afe2d3cc3650d939dab1f24
57f773d5e0e942335e1445428a9ac42b75db03a9
/venv/Lib/site-packages/pysnmp_mibs/CIRCUIT-IF-MIB.py
3d5e88cd796cb1709ef584f36269a5c69969fb66
[]
no_license
Therealdanjo/SNMP_Tool
2b8b9bb295f2084a9bfcbb0688f750a5632b0f87
9e0126fe716479adea6ba65502ae12cf9953741e
refs/heads/master
2023-02-20T21:07:17.441050
2021-01-23T14:29:31
2021-01-23T14:29:31
318,448,639
1
0
null
null
null
null
UTF-8
Python
false
false
12,716
py
CIRCUIT-IF-MIB.py
# # PySNMP MIB module CIRCUIT-IF-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/CIRCUIT-IF-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:06:52 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ...
4449b3e623f2dc1baa8f93ff7ea0356e71922cd8
bfb4c1e908f6e35aecc6f617b9e41fdbba60bfab
/cupid/systemstatus.py
c22cf256fcdec0b65f1865643b4e2226c2a6fdb9
[ "Apache-2.0" ]
permissive
Tambralinga/iicontrollibs
a74f10e432e88f67301c4858f90564c0ebf5d31c
cf91a757fe94f0f3410fdbb4f6ce6429993e08f5
refs/heads/master
2021-01-17T22:44:44.885884
2016-01-05T23:52:46
2016-01-05T23:52:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
44,427
py
systemstatus.py
#!/usr/bin/env python __author__ = "Colin Reese" __copyright__ = "Copyright 2014, Interface Innovations" __credits__ = ["Colin Reese"] __license__ = "Apache 2.0" __version__ = "1.0" __maintainer__ = "Colin Reese" __email__ = "support@interfaceinnovations.org" __status__ = "Development" import os import sys import ins...
2b6f239348f5efbaed2180f2411954328b11ae85
3c79448895f6cc1c4dbfe7bd91c9c603125dc56d
/stats/setup.py
b78a161d71997f20298b3e3a1f6b9a0624474838
[]
no_license
johndolgov/Python-Tasks
cc554c08c5814c41176b2b5410f856d5d235abd7
a4313b55c08025a34e08532c4f8db58b047488d0
refs/heads/master
2021-04-15T05:36:07.482925
2018-06-06T15:01:47
2018-06-06T15:01:47
126,724,356
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
setup.py
# License MIT from setuptools import setup, find_packages import os DISTRO_ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) def extract_requirements(file): """ Extracts requirements from requirements file :param file: path to requirements file :type file:str :return: list[str] -- list of ...
adf06b4c6190e34261f401f24721faff2ecb22e8
e676660381027b724f2417db09b9c4c6f62ecd04
/chapter-nine/login_attempts.py
0ecb7c6ca3e09aa273d4ae87c31a34cc9da4030f
[]
no_license
lmhavrin/python-crash-course
d6e5660ea7c88a5aad362bf863f9df80d0d5f8de
d7f3d680732c06715ad37ca3ac8f88f63259b87c
refs/heads/master
2021-03-27T17:15:15.640648
2018-03-18T19:52:05
2018-03-18T19:52:05
117,572,407
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
login_attempts.py
# Exercise 9-5: Login Attempts class User(): """Making a brief user profile""" def __init__(self, first_name, last_name, gender, age, hometown): self.first_name = first_name self.last_name = last_name self.gender = gender self.age = age self.hometown = hometown ...
0b8e5da8882fd8384bf3bf07dcfc3cddc04bc931
56f50ee50ad8279a1e6c223994ca59ddfe455afe
/src/CorvusScreenScaler.py
52d62157d9eda9dceb5c0e0df229d045b47caf9b
[]
no_license
aaron-boyd/Corvus
d22ca4311ac7c5df6df91c7a74cfe866d1344288
7575dbf8ba31236172f77740db59a0e9fbb415c0
refs/heads/master
2020-05-05T01:36:42.133721
2020-02-20T00:08:42
2020-02-20T00:08:42
179,608,448
3
2
null
null
null
null
UTF-8
Python
false
false
609
py
CorvusScreenScaler.py
from screeninfo import get_monitors class CorvusScreenScaler: monitor = get_monitors()[0] width = monitor.width height = monitor.height nativeWidth = 1920 nativeHeight = 1080 @classmethod def scaleX(cls, x): if(cls.width > cls.nativeWidth): return x * (cls.width / cls....
7b557a29d97a4712174bf1a9b01ffcc5dda93558
635aec29d921de2500d7a2a8496f8c4093e71269
/A2/codes/24-2.py
d9cf1d97195c02b820d05e0439b4201b9ea4b704
[]
no_license
manasvi-26/Machine-Learning
1240086db197c2de05756cf1abaf65823f90096f
43553242c5ba3e9b53acb9dc16b9d24e47c7764f
refs/heads/main
2023-03-20T21:07:21.435350
2021-03-16T17:04:44
2021-03-16T17:04:44
336,445,778
0
0
null
null
null
null
UTF-8
Python
false
false
6,754
py
24-2.py
import numpy as np import random from client import * import json import matplotlib.pyplot as plt overfit = np.array([0.0, -1.45799022e-12, -2.28980078e-13, 4.62010753e-11, -1.75214813e-10, -1.83669770e-15, 8.52944060e-16, 2.29423303e-05, -2.04721003e-06, -1.59792834e-08, 9.98214034e-10]) POP = 10 FEAT...
4736ccf46a33004246d425f53a0427cf1bd74a87
3100013f7f7aa8a8291527e2e832200912b92c55
/10.函数_by/2.内部函数_by/内部函数_by.py
195bfde2048f4570e50500f2c6bff5d16fd85328
[]
no_license
baiye1228/vscode_studylist
f609c379cdade4f2c61bbe7881cb500cc5cfd491
a53c080861e1b618ed3037a6e8e3c5af06acbe3c
refs/heads/master
2022-12-17T11:21:29.896557
2020-09-18T09:41:45
2020-09-18T09:41:45
281,262,232
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
内部函数_by.py
def func(): #声明变量 n=100 list1=[3,6,9,4] #声明内部函数 def inner_func(): nonlocal n #对元素加5操作 for index,i in enumerate(list1): list1[index]=i+5 list1.sort() n+=101 inner_func() print(list1,n) func() ''' 特点: 1.可以访问外部函数的变量 2.内部函数可以修改外部函数的...
d536eca68c46015a17adc7e49311e1b5542456bc
549f1a013ef290c8a0dd1bd9c68488bb51bd95b8
/Introduction to Using MongoDB for Data Science in Py/01. Flexibly Structured Data.py
54b3def09f086cb0d9b6b12c2d8336ea7acb4d9c
[]
no_license
arslanugur/db
1522243a8101bbb7b94c24665d9302a36b9cb5ce
a8286b10f29d9c990626aa22aaa379ac2c832997
refs/heads/master
2023-08-11T02:22:33.175122
2021-09-21T14:52:20
2021-09-21T14:52:20
361,018,458
1
0
null
null
null
null
UTF-8
Python
false
false
25,488
py
01. Flexibly Structured Data.py
1. Flexibly Structured Data """This chapter is about getting a bird's-eye view of the Nobel Prize data's structure. You will relate MongoDB documents, collections, and databases to JSON and Python types. You'll then use filters, operators, and dot notation to explore substructure.""" 1.1. Intro to MongoDB and ...
a85302c150164bcaeb55d6355276a58ad846affe
96245d94b16741550585f00a2cea0dbef5f7d2ea
/minus/object.py
b014b67420cf1dd53d7ec8b460fed1098ca84d7b
[]
no_license
Miners/minus.py
e6278558fb4334479b3ffcdb81009b6ce35fa79b
62651c9a9d76aa88141ee6b5bc46f5a86cc63169
refs/heads/master
2016-08-06T02:08:51.430846
2011-12-04T20:23:48
2011-12-04T20:23:48
2,429,882
6
2
null
null
null
null
UTF-8
Python
false
false
1,312
py
object.py
class MinusObject(dict): """ This is a base object to create/modify/read/delete Minus objects easily. A Minus Object is a dictionary like object. Fields are readeable like a normal dictionary. """ _url = None _client = None def __init__(self, client, url, *args, **kwargs): """ Initiali...
6456e3855f8f7cd86a23d3908d8de5b73e08037b
3475f192220525ce232a3f701c3c4307b5c96c96
/scripts/clean_grocery.py
1ad5098113ddf2c1d6b4ba6022dcfa0853edc703
[]
no_license
salinawu/wildhacks
4b95e4d3ae119eb47cfd43e4cb96413e19b881f5
25163fd9eebe1dfc27eda99f101546242c487e8a
refs/heads/master
2021-01-10T03:55:58.844081
2015-11-23T23:47:53
2015-11-23T23:47:53
46,630,968
1
4
null
2015-11-22T17:11:46
2015-11-21T19:48:12
Python
UTF-8
Python
false
false
2,673
py
clean_grocery.py
# -*- coding: utf-8 -*- import pandas as pd import imp, sys import sqlite3 import mysql.connector from sqlalchemy import create_engine #from fooddeserts.models import * PATH_ROOT = "/home/kzen/repos/wildhacks/" FILE_PATH_IND = PATH_ROOT+ "data/Nearby_Independent_Cook_County_Grocery_Stores.csv" FILE_PATH_REG = PATH_RO...
94e5346582e7b015e4336a72bf1380cfe1f3ef97
f87f0ccf97298827198e06c2424ac745b097ba0d
/streamr/__init__.py
4c7688df7c083db19249f0d17d93c689a72f9082
[ "Apache-2.0" ]
permissive
streamr-dev/streamr-client-python
a1b7335c2f4e6ba0f90548529fffccf98e3a74d3
8160df6d58cc124369bc47cf56245c7d17bf662f
refs/heads/master
2023-01-07T18:30:31.420285
2020-11-24T08:38:39
2020-11-24T08:38:39
163,869,208
9
4
Apache-2.0
2022-12-27T15:33:41
2019-01-02T17:17:15
Python
UTF-8
Python
false
false
105
py
__init__.py
""" streamr package """ from streamr.client.client import Client from streamr.util.option import Option
77be2e3f6d46e336417699a1cbb7d0415da8fd9d
d44f89f77ee98cb33ab8aa5bc681fe9e9b645801
/utils/models.py
157ffa89b1c5dd8148ec46fafe07e3d77e7b7431
[]
no_license
519605144/meiduo_project
fd2f4f915b12b7ac7261e8b4fa82f4b352373190
38422d9856236c0184a8afbb512c7575064e51e0
refs/heads/master
2023-06-07T23:12:50.623334
2021-06-17T10:05:36
2021-06-17T10:05:36
371,551,311
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
models.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : models.py @Contact : 519605144@qq.com @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2021/6/4 11:42 huanghao 1.0 None...
a401c9c711775075e362fdd342715113bc45bd23
f3f0244c65821aa3c0a25aafd509d40cbb06327a
/wandering_lantern/tavern/models.py
34a04c2ad6b3c12e02b6a5975d1fff697594bc60
[]
no_license
Scott-McCann/wandering-lantern
5f219f2a4ed1e453bd7805f773f2a31a06157d25
4bfadfc5bfd7695697958d59a0bab97e7bba3257
refs/heads/master
2020-04-03T09:53:25.902147
2017-04-02T22:03:16
2017-04-02T22:03:16
60,493,711
0
1
null
2016-06-27T15:31:40
2016-06-06T02:47:03
Python
UTF-8
Python
false
false
17,715
py
models.py
from django.db import models from .level import * from django.contrib.auth.models import User from datetime import date # Create your models here. class Abilities(models.Model): name = models.CharField(max_length=256) def __str__(self): return self.name class SkillProficiencies(models.Model): na...
b5ab2558799234b1b97dd3d4ddd64b958d8536dc
ea159be6616a15469af7aa11bf55b831c085537e
/tests/apitests/python/test_ldap_ping.py
bede8955e0e66ea8b0da18a9c388154457e3e951
[ "Apache-2.0" ]
permissive
steven-zou/harbor
60be312392b3e8f3bcccffede1b5c90d5abcf74d
82be6cf726bcdcaa49aef5ac5efc43f4129bddac
refs/heads/master
2021-09-11T03:59:46.279724
2020-07-02T12:05:40
2020-07-02T12:05:40
86,295,940
2
1
Apache-2.0
2019-05-14T17:04:55
2017-03-27T05:47:38
Go
UTF-8
Python
false
false
1,033
py
test_ldap_ping.py
# coding: utf-8 """ Harbor API These APIs provide services for manipulating Harbor project. OpenAPI spec version: 1.4.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys sys.path.append(os.environ["SWAGGER_CLIENT_PATH"]) ...
96a1c6aa3fb7232fe8f474a70cb328956b5a7dc4
55dd583a00ccda7c22889456d5446c526fbffb9a
/app/app.py
719d65e8b595781619c86649d4d7b72f615a4c51
[ "MIT" ]
permissive
pachasaheb/FeatureRequestApplication
ccebb111ff1ea2c834f1b24820e04a6220568814
008db00a1ae31d8fdf4da842b4ff02a29742b2f9
refs/heads/master
2021-04-15T07:32:58.568939
2018-03-29T02:59:55
2018-03-29T02:59:55
126,195,484
0
1
MIT
2018-08-29T11:34:11
2018-03-21T14:56:14
Python
UTF-8
Python
false
false
831
py
app.py
# Flask is a Python class datatype.Flask is the prototype used to create instances of web application or web applications. from flask import Flask # imports Config class from config.py module from config import Config # once we import Flask, we need to create an instance of the Flask class for our web app. # passing _...
2c145d569933af5a096538f1891e10e7ed174fe7
aba69f1f8c9825e51d3afe9774e54919e58237c7
/settings.py
e7c61554b01ca23f56f7b08ff55d2af248f3dc15
[ "MIT" ]
permissive
vlameiras/poe-trade-scraper
ecf8bb6d75ebe5a0bc7dfeaaaa9b93d824025ffc
bffed681973045fb0e555fe5cfb0491bacb36b74
refs/heads/master
2021-01-19T18:44:22.365861
2019-04-16T11:30:45
2019-04-16T11:30:45
101,159,934
9
3
MIT
2018-01-02T09:25:18
2017-08-23T08:59:06
Python
UTF-8
Python
false
false
71
py
settings.py
SEARCH_URL = 'http://poe.trade/search/' WS_URL = 'ws://live.poe.trade/'
b1438f973e61d709369d05a67677e8258b83d671
c4b8e1e09dedbccd37ca008ecaaca4438610bbaf
/z3/word_square.py
ea7585a75dfea03cdd0e6005c6fff1c77ed3af91
[ "MIT" ]
permissive
hakank/hakank
4806598b98cb36dd51b24b0ab688f52dadfe9626
c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2
refs/heads/master
2023-08-15T00:21:52.750270
2023-07-27T16:21:40
2023-07-27T16:21:40
11,933,517
336
97
MIT
2023-07-27T11:19:42
2013-08-06T20:12:10
JavaScript
WINDOWS-1252
Python
false
false
3,284
py
word_square.py
#!/usr/bin/python -u # -*- coding: latin-1 -*- # # Word square in Z3 # # From http://en.wikipedia.org/wiki/Word_square # ''' # A word square is a special case of acrostic. It consists of a set of words, # all having the same number of letters as the total number of words (the # 'order' of the square); when the words a...
1566c3b9e61fea3321cdf8ec78129ca7a063357e
09073527de931e808d48b55a54c55de068725a76
/Verlet_main.py
27c949ac887cef2d90a65f454d271a5d51fbfb15
[ "MIT" ]
permissive
GerwynJones/Python
00b3e1c19d99088d40df3e304199fc86a6c9bd7c
776996fd2874bdf4cd7ccaed22b6adaa7f5698e7
refs/heads/master
2021-06-14T18:50:51.493775
2017-03-27T12:38:09
2017-03-27T12:38:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,113
py
Verlet_main.py
#!/usr/bin/env python """ Created on Tue Oct 18 09:11:38 2016 @author: Admin """ from __future__ import division import numpy as np from numpy import linalg as LA from Verlet_IC_EMS import * ##################### def Verp(ovel, opos, dt, a): "Position:" pos = opos + ovel*dt + .5*a*dt**2 return pos ...
402ce75611c56bba03c3748d41d3a395c4e752f6
4a91ede6bde58d133c95ecf3dbbb509e568574fc
/weather/models.py
211c3ce0a4e436b46625927e24cd695dd8d0bc1a
[]
no_license
TWeatherston/BBCWeather
3916fe6c6c4cbef29df64a1cabbb1d3891af8a2c
93eb6b9fc6f67cfcee961d2a527915156f696e1a
refs/heads/master
2022-12-16T03:51:59.026118
2020-09-23T12:55:23
2020-09-23T12:55:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
models.py
from django.db import models class Location(models.Model): name = models.CharField(max_length=200, unique=True) code = models.CharField(max_length=50) def __str__(self): return self.name class Forecast(models.Model): location = models.ForeignKey(Location, on_delete=models.CASCADE) url =...
482953452fbcea6bf072d03b289eaa9bc1236220
069e69b07087055d47e859da8ec7af2b4528798a
/modals/Student.py
5f69b034898f5d1cf8167e3013d2b94f99638aea
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
IndiaCFG3/team-52
35f9328e7e4fe8dd39205f1ea15decf0d152ebbd
54ed7e090af6eb85f535864217fd6eb61f828872
refs/heads/master
2023-02-15T06:31:35.994567
2021-01-06T15:38:22
2021-01-06T15:38:22
287,280,607
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
Student.py
class Student: def __init__(self, student_id, name, teacher_id): self.student_id = student_id self.name = name self.teacher_id = teacher_id class StudentScore: def __init__(self, student_id, score): self.student_id = student_id self.score = score
9d0bcbbd9b6b7f4e871a2a39ce393fbf90259c00
283f9fc69e0b00051a79232fc2cbaabdab589c18
/flashsale/coupon/migrations/0013_auto_20161118_1049.py
54ed608c5c9d3d867d24f1f454a6249c293d70eb
[]
no_license
nidepuzi/ndpuzsys
572b67a84fcd6c4fa4d49d3bdb0eb826e7791e62
be58dc8f1f0630d3a04e551911f66d9091bedc45
refs/heads/master
2023-01-06T22:52:49.861479
2019-07-09T11:00:06
2019-07-09T11:00:06
188,955,119
1
0
null
2022-12-26T20:15:24
2019-05-28T04:41:35
Python
UTF-8
Python
false
false
982
py
0013_auto_20161118_1049.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-18 10:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coupon', '0012_coupontransferrecord_elite_level'), ] operations = [ migrati...
796690166a697f76021b7e1e1bbf44e632aa011b
68a34673f5ca869778b078b2ae3e6f36231bb8e3
/test/html_test.py
e5fdcbd264ed5325660aee559e16305492b4c67a
[ "MIT" ]
permissive
ejones/mythril
3a40db9156537cdca25d8ef80cd2582b2674c928
e7886e8981870e622233d0a13c08ee73ec3ada9d
refs/heads/master
2021-01-10T19:14:00.644176
2011-11-01T04:01:04
2011-11-01T04:01:04
2,382,942
0
1
null
null
null
null
UTF-8
Python
false
false
3,867
py
html_test.py
# -*- coding: utf-8 -*- from nose.tools import * from mythril.html import * class CamelCasedName: pass class CamelC4se3Name( object ): pass def some_func_name(): pass def test_cssid(): eq_( cssid( 'foo-bar' ), 'foo-bar' ) eq_( cssid( CamelCasedName ), 'camel-cased-name' ) eq_( cssid( some_func_name ), 'so...
385a6c5cd3526535ec4a1b00e753c3c38086e5bd
a8aaf7d1af95f9200c80182d2e7d1051248ae76f
/setup.py
82ec7346cb9a74ff5e226eed4fa7b61e21b04f8e
[ "MIT" ]
permissive
lambdalisue/rms2dfinder
fbe7a5b0a3d40bc038b3a88a15f020aadb1b4913
711123b6b6fdcf1acd80ff58de3020c03da16c38
refs/heads/master
2020-04-29T03:10:27.575212
2018-03-06T01:40:20
2018-03-06T01:40:20
27,648,114
0
1
MIT
2018-03-06T01:40:21
2014-12-06T20:30:15
Python
UTF-8
Python
false
false
1,849
py
setup.py
# coding=utf-8 import os import sys from setuptools import setup, find_packages NAME = 'rms2dfinder' VERSION = '0.1.2' def read(filename): BASE_DIR = os.path.dirname(__file__) with open(os.path.join(BASE_DIR, filename)) as fi: return fi.read() def readlist(filename): rows = read(filename).spli...
1732f45b533de599c9a104aee1964cc93199070b
f27986939c141358c3e8ad9a3ad6169abce04c53
/test.py
15e1e280fe92729dd6e203b2128cc029b924611a
[]
no_license
nishant071988/python
70db37572d27593732204207761e3fbc4faab5ee
cd081918e27945ddab8b67b207b2b59c6e7b1101
refs/heads/master
2022-07-10T09:58:53.870098
2020-05-14T06:41:26
2020-05-14T06:41:26
263,250,947
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
test.py
var = input("Enter your value: ") print (type(var))
1b7ab4d8e355e56a4a47b8b94db25568efcadf55
df7ce679466635eb68ba14b8e59144f305d4f120
/DefaultFolder/DefaultFolder.py
638a81ce006451e1353078e3ce436b9210c4f6a1
[]
no_license
eidan76/Web-Automation1
213347718728c0ff55bebb8cfe864343735755b4
688523f7fdd691fa2460fe22498969421bfbac70
refs/heads/master
2021-01-10T21:41:48.359070
2015-08-17T13:48:33
2015-08-17T13:48:33
37,127,901
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
DefaultFolder.py
__author__ = 'Eidan Wasser' import unittest import ChangeDefaultFolder def default_folder(): n = unittest.TestSuite() n.addTest(ChangeDefaultFolder.ChangeDefaultFolder("test")) return n
62afc60aa2e921f980027d0323efcafed7b81f91
9e614aeb3c38b2ff4d7bc8945a3aed9f16fa3121
/sslms/sslmsapp/apps.py
0df0eb246400f968d560d76b8850fa56d68b97c4
[]
no_license
yesiknowjava/django
877198f29167bdd36e6e8483760676441ef5a616
bf6ab3e7f2dae6ecb580b7e0ec6d0fad380aa350
refs/heads/master
2020-08-24T18:07:08.890829
2019-10-28T09:53:06
2019-10-28T09:53:06
216,878,595
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
apps.py
from django.apps import AppConfig class SslmsappConfig(AppConfig): name = 'sslmsapp'
0a524ccca2cddd7a3f3edd32b60e4d9ba911acfa
9f6f31bb7fc79067d22bf61feeec03afce663bf2
/Challenge_My_Calendar_I1.py
e03cac3616b7680d80e4d3c9c06e35ecadea1ccb
[]
no_license
elena0624/leetcode_practice
8910fef20d5bf7ff0d749602f6aaf5cd4cfc856f
393ca92a76f00335dd6f4830938d126b9c5af8bc
refs/heads/main
2023-06-24T00:37:00.890871
2021-07-22T10:54:41
2021-07-22T10:54:41
349,133,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,986
py
Challenge_My_Calendar_I1.py
# -*- coding: utf-8 -*- """ Created on Fri Jun 11 00:17:38 2021 @author: ppj """ import bisect a=[] start=37 end=50 #%% def insert_ls(a,start,end): x = bisect.bisect(a, (start,end)) print(x) if x>0 and a[x-1][0]==start:# 如果有重複的 insert的位置會是重複的下一個 所以看前面那個是不是一樣 一樣不行 start不能重複 print(False) ret...
7a02ff65d4fc672c730a9d1c14c800604c302537
4277e3162ae8cf897a3f41bff25c40ef71b3f1d6
/map_flow_models.py
67f6154c00bd5033756680f9bc9d599c39a777ca
[ "MIT" ]
permissive
Jasplet/SWSTomo
7f7f11db3d6969e95737ef20cbe3b2a1fdb68f22
a3ddceca72c7b09bdf5ae71b274598fa7d135983
refs/heads/master
2023-02-08T08:11:02.199573
2023-01-24T18:36:00
2023-01-24T18:36:00
215,030,004
0
0
MIT
2022-02-07T18:37:26
2019-10-14T11:48:47
Python
UTF-8
Python
false
false
7,379
py
map_flow_models.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 7 11:53:03 2021 @author: ja17375 """ import numpy as np import matplotlib.pyplot as plt import cartopy.feature as cfeature import cartopy.crs as ccrs import netCDF4 as nc import pandas as pd def extract_forte(la, lo): '''For an inou point ex...
7d790ea97ccdc626da0fc79e2930654a485bb1cb
4b16f3d7aa5aa2e9dd7c3a6b2f0654ca529c3469
/field.py
dee17b7f0ab91da538c4a4e7a07317582e3b3b21
[]
no_license
slapa2/hang-man
967efdbce1e3293cdccccdad276d8880ae164c80
951d6ed0de971056ed8d4b9ba122ed852b20e90a
refs/heads/master
2020-03-22T08:25:46.872450
2018-12-15T12:04:41
2018-12-15T12:04:41
139,765,802
0
0
null
null
null
null
UTF-8
Python
false
false
6,753
py
field.py
import os from math import ceil class Field: def __init__(self): self.field = """ _____ _____ _____ _____ _____ _____ _____ | | || _ || | || __|| || _ || | | | || || | | || | || | | || || | | | |__|__||__|__...
9e4bf54005fdfbd4c2867f711a2c2ee8139139cf
994496f2a9c886d5ae8da32c926b26b31be2247a
/prog/prog11-6.py
4c372c556bf156a20aff4b2ef093f22ba316e822
[]
no_license
nineties/prml-seminar
67207dc86e23a37abb552ab2da5d6df2b97cf427
292910799edd32b658801dc1db58e144641bcbed
refs/heads/master
2020-07-02T06:41:20.950575
2018-06-20T05:06:43
2018-06-20T05:06:43
16,799,610
16
7
null
2018-06-20T05:06:44
2014-02-13T10:32:09
HTML
UTF-8
Python
false
false
2,794
py
prog11-6.py
# -*- coding: utf-8 -*- from numpy import * from scipy import linalg as LA from matplotlib.pyplot import * random.seed(0) #== 超パラメータの学習 == MAX_ITER = 2000 ITER_EPS = 1.0e-5 # 精度パラメータ BETA = 1.0 # Gaussian process regression N = 10 train_x = random.uniform(0, 1, N) train_t = random.normal(sin(2*pi*train_x), 0.1) # ...
0dd330c8e82646dec9cbd1799075579da6ae067f
d39611a1c65e5b86c4281a56c0857a7ed2890d31
/WHAT/utilities/normalize.py
135ad2f8be473e466f4fc53c720680de4750e67e
[]
no_license
Gu-Youngfeng/Reimplement
7e2bea08fd2ac1ad51f1e6315808dc9adcafc123
77b4a2e94e537cf7210fe123024e79662012f5d8
refs/heads/master
2020-03-27T08:29:41.936214
2016-11-03T03:17:09
2016-11-03T03:17:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,620
py
normalize.py
from __future__ import division import pandas as pd from sklearn import preprocessing def do_normalize_min_max(filename): name = filename.split('/')[-1] df = pd.read_csv(filename) columns = df.columns indep = [c for c in columns if "$<" not in c] dep = [c for c in columns if "$<" in c] indep_v...
6a221aaa2538624b5310f079ceb7a09de0da1608
be5b8fd74ee160a0caa1cee93c7005a36906a4d4
/python_workshop_code_samples/stage04.py
03a6c11371731225e367ac03295d89ccbd57166f
[]
no_license
thomasmortensson/bristolraspberrypipythontutorial
1c86ab6e0753ae924c5474c8e3142718fb589c9c
26528a6507f1d03d2d2beafd76c279c015c446d2
refs/heads/master
2016-09-06T20:05:34.489127
2014-07-10T14:08:05
2014-07-10T14:08:05
13,080,061
2
0
null
2013-09-25T12:01:04
2013-09-25T00:22:05
null
UTF-8
Python
false
false
64
py
stage04.py
''' Variables and Assignment 2 ''' i = 2 + 5 i = i * 3 print i
6e3ce66fe1b5e4b8a45d1f97bebcb27c025e6c93
826a7a903e2733600b4f81bde2ab59455f84e4a0
/transfroming_data.py
ec59f9dd13343cdfc5d3587591c25ad3ff2dbf98
[]
no_license
minhle080119/Pandas
88de3263182876f8115698edaff6d4015b4a47fe
0bf578b81983c906467e9cb4fe605542b127bba4
refs/heads/master
2020-04-06T12:05:34.159609
2018-11-13T20:37:54
2018-11-13T20:37:54
157,443,099
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
transfroming_data.py
import numpy as np import pandas as pd from pandas import Series, DataFrame df_obj_1 = DataFrame(np.arange(24).reshape(4,6)) df_obj_2 = DataFrame(np.arange(16).reshape(4,4)) concat_obj = pd.concat([df_obj_1, df_obj_2], axis=1) drop_obj = df_obj_1.drop([0,1], axis=1) series_obj = Series(np.arange(6)) series_obj.na...
a871b94782e1a366d1279d9803f30cfb69f0115a
5753d379b8ea86f2ea76f9d991dd3cb43ba56401
/seesaw_soil_simpletest.py
2d7e6e0d5eb0f90961801904d4d35684629a5083
[]
no_license
J-Esposito/ewb-camden-2019
6836b9315a7ae01e285678c26b572b8c7299260a
043daba30c08fa07a7a2e5caf94590c6e5bf14f8
refs/heads/master
2020-04-09T16:03:11.144458
2020-03-04T02:22:31
2020-03-04T02:22:31
160,442,748
2
0
null
null
null
null
UTF-8
Python
false
false
648
py
seesaw_soil_simpletest.py
import time import RPi.GPIO as GPIO from board import SCL, SDA import busio #Pin 9 is 17, not 0 from adafruit_seesaw.seesaw import Seesaw i2c_bus = busio.I2C(SCL, SDA) ss = Seesaw(i2c_bus, addr=0x36) GPIO.cleanup() GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) while True: # read moi...
b0013eaee587e7d1053f5dcaa6e88ad7d03d0629
d0d088be9ba855fbc1798d55a0874faee192d8b5
/posthog/api/test/test_user.py
3306be9d4692f1f35421c5c12727cce3eaec2958
[ "MIT" ]
permissive
pplonski/posthog
bf62d1bfb36a007adb180faecd418a8d1337f904
9ae6854254085bbe10cc4f9c98820d9efed52424
refs/heads/master
2021-01-08T17:36:18.303885
2020-02-20T19:38:07
2020-02-20T19:38:07
242,096,368
2
0
MIT
2020-02-21T09:00:14
2020-02-21T09:00:14
null
UTF-8
Python
false
false
1,266
py
test_user.py
from .base import BaseTest from posthog.models import User class TestUser(BaseTest): TESTS_API = True def test_redirect_to_site(self): self.team.app_url = 'http://somewebsite.com' self.team.save() response = self.client.get('/api/user/redirect_to_site/?actionId=1') self.assertIn...
62bad87b6870b94dc590c99a34902a3fc58c1d19
8681ce4c9e49e0e08dfc099ee27f2e2917fdb0b6
/MP2_PY_Malabanan_Perez.py
19d8c2078c53b4080776a20d1fdcfbfc9c824ad7
[]
no_license
ercgbrlprz/MP2-Python-Malabanan-Perez
fb23a68c9f3ae5aaa2fe6e71b735f670e366c851
d996b2ef60611099e804479d5ce3028e6c1f42d3
refs/heads/master
2020-09-28T03:30:04.194525
2019-12-08T14:08:28
2019-12-08T14:08:28
226,677,461
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
MP2_PY_Malabanan_Perez.py
#Machine Problem 2 #Malabanan,Angelo-Perez,Eric #2-ece-a from math import * x1 = int(input ('x1: ')) y1 = int(input ('y1: ')) x2 = int(input ('x2: ')) y2 = int(input ('y2: ')) x3 = int(input ('x3: ')) y3 = int(input ('y3: ')) D = (((x2**2)-(x1**2))*(y3-y1)+((y2**2)-(y1**2))*(y3-y1)+((x1**2)-(x3**2))*(y2...
9f6ed462848a8ab0e8f02c391bae52a99e986edf
ef588c2aa0bf5cce0ae71a9d8060b59a1b567dc8
/traceme/models.py
532067906cbfde9bcf3512124d030874b788f700
[]
no_license
amolvenkataraman/traceme
393aeb89821fabc26d1876b0a39432f876429142
5362508b9c446fe56bb6f4254e5ca85da19f2ab0
refs/heads/master
2022-06-20T18:12:37.917959
2020-05-09T21:57:03
2020-05-09T21:57:03
262,665,107
1
1
null
null
null
null
UTF-8
Python
false
false
1,301
py
models.py
from django.db import models from django.contrib.auth.models import User # Place model - stores a place class Place(models.Model): user = models.ForeignKey(User, on_delete = models.CASCADE, related_name = "user") city = models.CharField(max_length=128) state = models.CharField(max_length=128) c...
5ea1af13b3620a851a81132a0da30428070fe6bf
3c4aefc0146468f670e670028934eb17713c5cc7
/Django-ViewFlow-OA/demo/bloodtest/flows.py
1292c12e050906718ae6e4c347acccabbc346fbd
[]
no_license
anstones/py-collection
a4a375c15183cb0e1072b3e7513931d82ff4cb53
f60b9eb93728edf8d4170fba19e9b88e7ed06bde
refs/heads/master
2023-05-11T17:19:43.702320
2019-11-28T03:10:45
2019-11-28T03:10:45
163,496,577
3
0
null
2023-05-01T20:58:53
2018-12-29T09:15:20
Python
UTF-8
Python
false
false
1,310
py
flows.py
from viewflow import flow, frontend from viewflow.base import this, Flow from . import views, models @frontend.register class BloodTestFlow(Flow): process_class = models.BloodTestProcess first_sample = flow.Start( views.FirstBoodSampleView ).Next(this.biochemical_analysis) second_sample = f...
d58088dcc9295f456d14172f6fd6bb00fa14a215
46a3bc84e4f60a97c54a8d6ed77a01d237bc66b5
/optimize.py
c598c4904580ef29cba917c0745726e4afc4c5d5
[]
no_license
BenjaminPeter/pooGUI
cf4b4c57c96e5b92c9dfa9158955d67a515d2797
5903ea38859a2e638bbb9faa78a111953a33835f
refs/heads/master
2021-01-10T20:20:32.392939
2013-07-12T20:34:32
2013-07-12T20:34:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,106
py
optimize.py
import numpy as np import scipy.optimize as spo import scipy as sp debug_psi , debug_data = 0,0 def tdoa3(rawData, rowsToKeep="ALL",**kwargs): """ this function estimates the origin of a range expansion. The input is a np.array where each row corresponds to a pairwise psi. The first two columns are ...
4ad4e39f521e9655b213b00f464362b97129fcbb
4ac24b6465d7fcf08195a27959df73e1a3f2feb5
/password_generator.py
cc600790d1a7b54d7f8d5d740cb2f189b9f04c25
[ "MIT" ]
permissive
zPi247/password-generator
cd1d0e1e7b8de3be656bf2ce65ae3289239e470f
2dd25433fed44d33acf94391dad3380b6dfa27d3
refs/heads/master
2021-03-22T23:17:13.124397
2020-11-04T10:27:23
2020-11-04T10:27:23
247,405,338
2
1
null
null
null
null
UTF-8
Python
false
false
713
py
password_generator.py
import random # 密码生成 password = '' chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%' for i in range(16): password += random.choice(chars) # 信息收集 info_site = input('What is the password for? (Enter website)\n') info_name = input('What is your username for this website?\n') info_contact ...
7d4dad7e8507e81748dc4a3c13b0cb97c748ee8c
795590d8ef6a8fdfe2604d0a2257dedb6ed02e04
/upwork-devs/Pappaterra-Lucia/modules/power_point.py
bb356701d997575f15f70923c7cac8b2d247d414
[ "Apache-2.0" ]
permissive
lucia15/k8-data-visualization
36f5abfbe338bc9d11c177e1c4558c0d3a59ba64
119ba21deab2e58ee5598df2bd01a0e84159ad3d
refs/heads/master
2023-01-23T10:17:38.733932
2020-11-12T17:21:24
2020-11-12T17:21:24
294,520,067
0
0
Apache-2.0
2020-09-10T20:52:38
2020-09-10T20:52:37
null
UTF-8
Python
false
false
19,521
py
power_point.py
import pandas as pd import yaml import os from pptx import Presentation from pptx.util import Inches, Pt from pptx.enum.shapes import MSO_SHAPE from pptx.enum.text import PP_ALIGN from pptx.dml.color import RGBColor from pptx.oxml.xmlchemy import OxmlElement #import subprocess as sp # Include this path if working in ...
ea6eadd57d15035938fc49aa0e05c008bf798a58
aeaf387a1d0c5624291126b6358a8dfe91e85ea2
/setup.py
364196056c409d9ce5a1d325cc00e773e424906b
[ "Apache-2.0" ]
permissive
popravich/elasticmagic
05aa804488b72707b84f90f884612f49dc95c29e
b71c4d080bd37217e7181860dc9b0f8e973e8b78
refs/heads/master
2020-04-04T18:17:09.876178
2017-02-18T23:35:35
2017-02-19T08:09:21
42,649,866
1
0
null
2015-09-17T10:26:01
2015-09-17T10:26:01
null
UTF-8
Python
false
false
1,301
py
setup.py
import os from setuptools import setup, find_packages def get_version(): with open(os.path.join('elasticmagic', 'version.py'), 'rt') as version_file: return version_file.readline().split('=')[1].strip().strip("'\"") def parse_requirements(req_file_path): with open(req_file_path) as req_file: ...
aebdec6ce371e9f5edbb5049e1828286b576b456
b4eda25d4514e07080d8e3343967e8de49b76761
/Assignment 3/LfDassignment3_SVM_group3.py
fd5580b2076cd2a87c21c2ceabcd4371f31ab871
[]
no_license
leonwetzel/Learning-from-Data
08dd688e88536c8e9dba58ec213bc8fdf7bb8fb1
19ba624bdf87875817ce8f8d08ad59e3375ff306
refs/heads/master
2023-01-11T18:51:29.815753
2020-11-05T11:04:54
2020-11-05T11:04:54
293,522,047
0
0
null
null
null
null
UTF-8
Python
false
false
4,884
py
LfDassignment3_SVM_group3.py
import sys import os from nltk.corpus import stopwords from sklearn.feature_extraction.text import CountVectorizer, \ TfidfVectorizer from sklearn.pipeline import Pipeline from sklearn.metrics import precision_recall_fscore_support, \ precision_score, recall_score, f1_score, make_scorer from sklearn.metrics i...
f0535068ffd320fdd47faebedd3dd3dfe7594e89
aefb82cfda13cceecc6f2c86c7c16924c2c61a22
/PYQTGUI.py
ae9999a63869c4dd8b7573f2b402217dbe9ce93e
[]
no_license
Ajayneethikannan/Computer-Architecture-Coding-Project-1
9a9acdb9907c14eb101b2f25c4b49e0127937d10
afa3eeffbabbb7d31bd829456aceb61464560125
refs/heads/master
2020-04-01T22:45:50.091927
2018-10-18T22:44:15
2018-10-18T22:44:15
153,725,419
1
0
null
null
null
null
UTF-8
Python
false
false
9,296
py
PYQTGUI.py
import sys import PyQt5 from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import pyqtSlot import time class App(QWidget): def __init__(self): super().__init__() self.title = 'CALCULATOR' self.left = 300 self.top = 300 self.width = 500 self...
5608bfb27667c9aa66ddd90da626bcb255766bc5
b9e06e29cc1ffc0cdf81a5c26ce5cca252324315
/tests/api_resources/test_patient.py
0c9128132fab7e078eacc64afdd0bcc32241f78f
[ "MIT" ]
permissive
sonugspericorn/welkin-python
613e4cefde706d2fc9601b7417c952cb31cedf48
a96491a4bb96af697f965263f6bcc12c30397fa7
refs/heads/main
2023-03-05T07:17:26.686630
2021-02-16T12:09:09
2021-02-16T12:09:09
338,241,901
0
0
MIT
2021-02-16T12:09:10
2021-02-12T06:33:24
Python
UTF-8
Python
false
false
2,509
py
test_patient.py
import welkin import urllib3 client_id = '0b03eb73-1f76-4021-b917-deddf5f79498' client_secret = '7105cc3b-6f68-417a-be7d-ca27da09552f' class TestPatient(object): def test_is_creatable(self): data = { "phase": "intake", "primary_worker_id": "1ecacc1f-1a4c-4bcb-9790-528642cba054", ...
837164fcdee0f7fb00e8c9cc7adc8b04bdb1f5cd
abc3ea969541cf74ab2ceeadb7d5614e3b79b1f4
/classify/__init__.py
485fa20ba95a240aa55fe1d02a71a90471f532b1
[ "MIT" ]
permissive
lxb007981/fyp-backend
779b5399046959621bfc88e91e681d4469f195fc
54f895b758f9e9e16f0acf0047af3a4e8cf6d4c2
refs/heads/master
2023-08-10T16:21:33.280385
2021-10-01T01:17:34
2021-10-01T01:17:34
411,609,119
0
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
__init__.py
import logging import azure.functions as func import json import ast # Import helper script # from .predict import predict_image_from_url from .server_main import runner logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG) def main(req: func.HttpRequest) -> func.HttpResponse: ...
1a7a9ddb0698a8cd29437d4ebd5448ed67df5e20
f42249430322ee1d79d088f860b963555520c2c9
/purchase.py
52a336e3a16a0131696738d20893ff88ed0a665e
[]
no_license
fabyc/nodux_purchase2draft
3f5b5ea2e2f84b3a1cd912527b786423996ca213
525af669e47fba14219f4c7db897fd665cae764b
refs/heads/master
2022-04-24T14:29:28.914846
2016-12-27T22:26:26
2016-12-27T22:26:26
260,091,294
0
0
null
null
null
null
UTF-8
Python
false
false
4,901
py
purchase.py
# -*- coding: utf-8 -*- # This program 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 of the License, or # (at your option) any later version. # # This program is distributed ...
0dcf4ea47d40da730722d46edf80ef5c17670de3
5d70d5868f31cf348f29f5149febc9f3cdea72b9
/code/orm/ushuffle_sad.py
cc8f059223721b01d5a7f0fc99fe1a8bc98ee52b
[]
no_license
YuJhon/Python-Basic
46e87d603a9bf98ec06a37047ddc698838d3f621
2a3dcb5cfeb30c1b8e0e666d21df85fa09f64642
refs/heads/master
2020-03-16T05:57:48.933105
2018-05-16T14:03:39
2018-05-16T14:03:39
132,544,350
0
0
null
null
null
null
UTF-8
Python
false
false
3,569
py
ushuffle_sad.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.log import warn as printf from os.path import dirname from random import randrange as rand from sqlalchemy import Column,Integer,String,create_engine,exc,orm from sqlalchemy.ext.declarative import declarative_base if isinstance(__builtins__,dict) and 'raw_i...
2c5064b722deaf41b8ced6eef4d5bd727d8a57cf
123b6b9cba3c3db3640249a92b86ffcbcb7832e4
/kaggle-google-play-store-apps/main.py
739403fd507517f4cbe038801316a4ffb646094c
[]
no_license
andre-ac/data-analysis
15522edfb25d8c0c51b7cebc3b4750234eead8a6
0ebada55290e1d72564a95292987d4620c35c782
refs/heads/main
2023-02-03T14:02:48.079620
2020-12-22T00:24:11
2020-12-22T00:24:11
302,470,691
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
main.py
import numpy as np import pandas as pd stats_dir = './data/googleplaystore.csv' reviews_dir = './data/googleplaystore_user_reviews.csv' stats_data = pd.read_csv(stats_dir) reviews_data = pd.read_csv(reviews_dir) print(stats_data.head()) ###Most popular category### #Get list of all categories Cat = list(stats_data[...
e375428ae31f440c2fec98ddc6c0ca2ab86f9849
3331beabe031060e837e6bbfe8081055093fc0d0
/API_5/ruuning/yunxing.py
d3e1cb961c45653d4e86111bebe6f7f280da6e8b
[]
no_license
luren123/hehehe
bbb96d8a8fd366514bc408a14a5d87497c9a719c
fbdecfe15fb7996ff486ae7a1041ab918f2d1bb1
refs/heads/master
2020-05-03T23:59:00.570633
2019-04-02T06:53:17
2019-04-02T06:53:17
178,875,950
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
yunxing.py
import sys sys.path.append("./") print(sys.path) #将项目路径保存 import HTMLTestRunnerNew import unittest from API_5.common import test_recharge suite = unittest.TestSuite() #测试套件 loader = unittest.TestLoader()#用来加载用例 加载器 suite.addTest(loader.loadTestsFromModule(test_recharge)) #运行Testadd类下面的所有用例 with open("text.html","wb...
18cbef45ba15307f341c80ea24da43870cac7861
fbe4aad61d6c334527ee059020d88427d402520b
/api/migrations/0002_auto_20201211_0252.py
984361efca236da338f6cb81474009c2a0906ee0
[]
no_license
samanraja/pizza-api
ae83fdf90349f5de6b7cc99608537ab20105881f
bc93ce0c28b237327a817e24b24ba47c367c977d
refs/heads/master
2023-01-28T02:42:50.737750
2020-12-10T22:00:38
2020-12-10T22:00:38
320,399,762
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
0002_auto_20201211_0252.py
# Generated by Django 2.1.2 on 2020-12-10 21:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.RenameField( model_name='task', old_name='title', new...
d21d244b2e5ce70b6a05d269681e6f8d6d9fefa5
37faa935d3af283be72423821a25d17172f2df6a
/lessons/lambda-map-filter.py
31835a52c5d929c237486749c9162e8d3e25cd7b
[]
no_license
rogeriolaguilar/python
2b214fccbb32ca269c745b26fbc082cb20981c23
fef86ca360e5a47fcd86f9ab99c04c58d353705b
refs/heads/master
2020-03-19T11:00:51.367723
2018-09-16T12:56:39
2018-09-16T12:56:39
136,421,396
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
lambda-map-filter.py
l = list(range(10)) print(l) # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] result = list(map(lambda x: x * 2, l)) print("Simple Lambda", result) # [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] tuples_l_l2 = list(map(lambda x1, x2: (x1, x2), l, result)) print("Lambda and map with more variables", tuples_l_l2) mins = list(map(lambda tu...
3566888e5888fe5b0d62a6dae5c4ea62702f3c90
920f4dd70d0e76dc0e22d19832c5990230ebe2b0
/3/15_mutable.py
d2d195120e10e6be9012bf0deb249570522ba104
[]
no_license
deepabalan/python-basics
19f9f869fbe00c8c6b73df6b2eee60a60a564c04
f9d57f56835902dfa46f8688649438b50e1ffb5d
refs/heads/master
2021-01-18T22:29:43.099003
2017-10-29T18:38:57
2017-10-29T18:38:57
87,058,497
2
0
null
null
null
null
UTF-8
Python
false
false
179
py
15_mutable.py
# If the global value is mutable, you can modify it without declaring # it: known = {0: 0, 1: 1} def fun1(): known[2] = 1 print known print known fun1() print known
dbec914a1d3a26ab0aa3848f04607db5466146f0
97c36e0928df4b873851c991a571f2e2cf727a1c
/conversor de moeda.py
16d9734bea59511ade6b3cba4eae50a2c228c3e9
[]
no_license
batmit/Class
f3ddc212b5fa9b63e6c9e1f495dcf7d2ada1dc06
dcda96a2021f96e0afe6874bc2c8a48851b26a00
refs/heads/master
2023-01-08T23:14:22.990198
2020-11-07T15:40:16
2020-11-07T15:40:16
280,242,974
1
0
null
null
null
null
UTF-8
Python
false
false
272
py
conversor de moeda.py
n = float(input('Digite o valor do dólar: ')) n2 = float(input('Digite o valor do euro: ')) n3 = float(input('Digite o valor do Yen: ')) n1 = float(input('Digite o valor em reáis: ')) do = n1 / n eu = n1 / n2 ye = n1 / n3 print(f'Dólar: {do}, euro: {eu}, yen : {ye}.')
5c84e950e3df169e2fbbed582e99a5a930127f57
6d0ae34bc8064755156b2b666efca0d6766a9acf
/subjective_segmentation.py
b30f1256cce50fc7b285c81a3fb1511898816027
[]
no_license
jamalw/music_event_structures_local
ead74b0e2e1bc9230d9eacf5d73265810719f3a8
81ed8abdd6e4df24e09f045be94a1a450598ed4f
refs/heads/master
2021-04-15T14:15:32.654196
2019-03-27T16:16:02
2019-03-27T16:16:02
126,277,548
0
0
null
null
null
null
UTF-8
Python
false
false
5,425
py
subjective_segmentation.py
## Imports from psychopy import prefs, sound, visual, event, core, gui, data from psychopy.hardware.emulator import launchScan prefs.general['audioLib'] = ['pygame'] import glob, time, random, os, csv ## Session settings subj_id = 'SS_030218_0' os.system("mkdir '/Users/jamalw/Desktop/PNI/music_event_structures/subjec...
026b50ebab0a9d51c6b99a30ef81a20031875460
14ca58c5e11f06cbb446f635170f9ad73df03db3
/profiles/templatetags/custom_filters.py
05f94000a513388c99cfb9ad4bca47580b76bf0f
[]
no_license
dimnik97/events_all
143c889684e25ad7edf1e72966708bfa50361428
f5847b6fb63749752476150dec099ef1a8783912
refs/heads/master
2020-03-15T20:57:55.298945
2018-11-22T18:19:37
2018-11-22T18:19:37
132,345,114
0
0
null
null
null
null
UTF-8
Python
false
false
3,107
py
custom_filters.py
from django import template from events_.models import EventMembership, EventViews, EventLikes from events_all import helper from groups.models import Membership from profiles.models import ProfileSubscribers register = template.Library() @register.filter def count(members): return members.count() @register.f...
71ef990219bb63dd4466aab5bb5466f6b78a0484
dca36e076c53fb9fd5502d132435d92459c714d9
/live/nexi/web/.svn/text-base/models.py.svn-base
4dcdc1f7b3a95a3e3076cf25c4df19c420eb18d2
[]
no_license
ciprianmardare/ShaolinCoders
5591141bd8c38b42501316383d09ab56098a94f6
18aeb21a4ddf20f91fe580e5d26eb077941836a4
refs/heads/master
2021-01-15T18:50:04.906390
2011-05-15T09:05:43
2011-05-15T09:05:43
1,746,819
2
0
null
null
null
null
UTF-8
Python
false
false
1,224
models.py.svn-base
from django.db import models from socialauth.models import LinkedInUserProfile def get_skills(obj): if obj._skills_set is None or len(obj._skills_set) == 0: return set() return obj._skills_set.split(',') def set_skills(obj, skills): skills = (skill.lower() for skill in skills) obj._skills_set = ','.join(...
4b7c54849458f68316d65c829615233593e24ab5
a36ffea1c2b584bbde175d961253e51fcd87c538
/inventory_management/inventory/forms.py
91d01b32f1dc0b660c27b0864d4f26a0dec33471
[]
no_license
Venka1995/django_ims
5d3fc9157341680c6250a3238c688dbe22af18e0
c11242f046241f33c238d0815c13125cc049a063
refs/heads/master
2022-09-11T17:38:52.968515
2020-06-04T14:56:41
2020-06-04T14:56:41
269,388,211
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
forms.py
from django import forms from .models import Laptop,Desktop,Mobile class LaptopForm(forms.ModelForm): class Meta: model=Laptop fields='__all__' class DesktopForm(forms.ModelForm): class Meta: model=Desktop fields='__all__' class MobileForm(forms.ModelForm): class Meta: ...
8c0eddf256184fec3dd813ce3075531905f04237
074421d31af92ae29c7c78bdb7e50f199a38eb9b
/weixin/code/moc_def/moc_db_sync/OraSyncEvent.py
9d432b6f96c0272b3098c3944cb5d83d53fb3cf3
[]
no_license
allenforrest/wxbiz
3f49ce66b37e281fc375f548610aa54a0f73268f
e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f
refs/heads/master
2016-09-06T15:17:49.420934
2013-08-05T13:13:40
2013-08-05T13:13:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,016
py
OraSyncEvent.py
#coding=gbk import mit from mit import MocBase, MocRule from mit import MocAttrDef, ComplexAttrDef import type_def import err_code_mgr # The automatic generated MOC. It is not recommended to inherit. class OraSyncEvent(MocBase): __MOC_NAME__ = "OraSyncEvent" __IMC_SYNC_PRIORITY__ = mit.IMC_SYNC_NOT_SYNC __...
237e681c9b3334415dd21671b30988361f5129f6
0f9f8e8478017da7c8d408058f78853d69ac0171
/python3/l0086_partition_list.py
cb416ad21d25dfaff96c6151a7a2832614571f4a
[]
no_license
sprax/1337
dc38f1776959ec7965c33f060f4d43d939f19302
33b6b68a8136109d2aaa26bb8bf9e873f995d5ab
refs/heads/master
2022-09-06T18:43:54.850467
2020-06-04T17:19:51
2020-06-04T17:19:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
l0086_partition_list.py
from common import ListNode class Solution: def partition(self, head: ListNode, x: int) -> ListNode: p1 = h1 = ListNode(None) p2 = h2 = ListNode(None) p = head while p: if p.val < x: p1.next = p p1 = p1.next else: ...
be8b3dd62b51ba9a2941ba1c3685c0a12ec4d28b
842e83f5e57bcfe2f3da1274122c33a74a19ace2
/ex3.py
0baf7e609f68f208e8a273b9dbae1a425ea65c65
[]
no_license
13969918264/The-Hard-Way-To-Learn-Python
5ae4133f8cbe8ee810c3e9efa31c9b56f4ad7560
4a04d2bf01342f4d0e57a2060412c4bc68e68bea
refs/heads/master
2021-01-20T02:49:41.006522
2017-05-02T13:47:22
2017-05-02T13:47:22
89,458,108
1
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
ex3.py
# -*- coding: utf-8-*- print "I will now count my chickens:" #打印出“现在我要数我的小鸡数量” print "Hens", 25.0 + 30.0 / 6.0 #打印出 “母鸡”后面输出数量 print "Roosters", 100.0 - 25.0 * 3.0 % 4.0 #打印出“公鸡”后面输出数量 print "Now I will count the eggs:" #打印出“现在我要数鸡蛋的个数” print 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0 #打印出鸡蛋的个数 p...
01b00b937ce9a97be1530a245e7a333d6b3f9fc9
8d33638524b013039b4c34ba67447d4dcf73aea6
/task4.py
e12509f61b16eab08f8a069db03dd56e77861cdb
[ "MIT" ]
permissive
mohamedsayed18/Mona_Lisa_EEG_analysis
6f2f8bdded1f45b02cd309a007469d022713cca9
b0f67e210689a3e3dd57164078bc7da265f4b44a
refs/heads/main
2023-03-11T10:53:08.881687
2021-03-03T11:09:58
2021-03-03T11:09:58
344,097,657
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
task4.py
""" Task 4: chi-square: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chisquare.html T-test: H0 """ from scipy.stats import chisquare from scipy.stats import ttest_ind from scipy.stats import mannwhitneyu import numpy as np # TODO Person at max value and data all_people = np.load("alpha_sign...
b46b12587703c0d34e830c824ab7bac02868acdd
f4f2f79b4efc27ca11adbc9a62a967d091b24011
/Stockmarket.py
2bced88c130f54ac5c7dc10c103f81b6d9dc68db
[]
no_license
vachuvathsan/Stock-market-prediction
a98c20caec632d938268e79e7503856ffd7de36c
19b7c95766dc748e1624e1c18ab483fc0a770095
refs/heads/main
2023-06-08T07:21:59.262975
2021-06-19T16:06:57
2021-06-19T16:06:57
378,452,335
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
Stockmarket.py
import streamlit as st import yfinance as yf import pandas as pd st.write(''' # Stock Price These are the stock prices of the **Tesla** ''') symbol='TSLA' tickerdata= yf.Ticker(symbol) tickerdf= tickerdata.history(period='1d', start='2020-05-08', end='2021-05-08') st.write('## About') st.write(t...
3a7aad23df4223610316a0f3cd2edf8b1035379d
33d95a2e5222f1ab9993480a8bdc354aa6dc672f
/world/forms.py
54d506fba2bf08fd673967ec1cfce8e867e513e0
[]
no_license
JackSnowdon/die-master
ab3eb7b1dbbe8b16031515c09b843aaba879aef5
d0af9fb8d6851904d466165d190dc9ec3700f2fd
refs/heads/master
2023-07-29T13:20:18.171612
2020-06-19T18:27:56
2020-06-19T18:27:56
265,283,325
0
0
null
2021-09-22T19:14:04
2020-05-19T15:16:26
Python
UTF-8
Python
false
false
189
py
forms.py
from django import forms from .models import * class DarkBaseForm(forms.ModelForm): class Meta: model = DarkHeresyBase exclude = ['created_by', 'current_fate_points']