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
99e03c7a5ebab7b1c9c4e3402824052c450ba006
c705b2620119df0d60e925e55228bfbb5de3f568
/archives/tk/tk2_quitter.py
3cca393ee1a4141db70198a64ebaa6da511c3297
[ "Apache-2.0" ]
permissive
mcxiaoke/python-labs
5aa63ce90de5da56d59ca2954f6b3aeae7833559
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
refs/heads/master
2021-08-05T03:47:51.844979
2021-07-24T11:06:13
2021-07-24T11:06:13
21,690,171
7
7
Apache-2.0
2020-08-07T01:52:32
2014-07-10T10:20:17
Python
UTF-8
Python
false
false
515
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2015-08-09 16:10:35 from tkMessageBox import askokcancel from Tkinter import * class Quitter(Frame): def __init__(self, parent=None): Frame.__init__(self, parent) self.pack() widget = Button(self, text='Quit', c...
[ "mcxiaoke@gmail.com" ]
mcxiaoke@gmail.com
c5a87f85fa80e6a67002a8bf58d804b830798bbb
8f114173e2f9cf4a92a392d55af4e948578aa5ed
/__init__.py
fee6989753b066e251e9847c57d7a502f59de009
[]
no_license
warsang/tracerfnf
c95af09a2995612d45d9d804cbb8ad02a0edcaf3
b5cb5cba123dc40dc1b2895d0a00a3869a7e1c74
refs/heads/master
2021-01-12T01:47:56.197041
2017-01-17T15:36:40
2017-01-17T15:36:40
78,432,469
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
from .runner import Runner from .tracer import Tracer, TracerMisfollowError, TracerEnvironmentError
[ "theodore.riera@telecom-sudparis.eu" ]
theodore.riera@telecom-sudparis.eu
eaa6e35f128bf03656d60aa0743f7634e690e650
648e3929c359d1860f90f752bfde3119f0317440
/Datatype/datatype24.py
a9c4b5469ff3a4852f7e531116eff79032664c9c
[]
no_license
pujaaryal89/PythonAssignment
627f9ba04ec0567416f3c6819b0df68917106ea1
cc438f53aabbbb07a1cf95cdb634b29cfa5fa027
refs/heads/master
2022-11-13T09:00:12.093278
2020-07-04T07:05:12
2020-07-04T07:05:12
275,513,725
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
original_list = [1, 2, 4] new_list = list(original_list) print(original_list) print(new_list)
[ "aryalpooja89@gmail.com" ]
aryalpooja89@gmail.com
f48a2d6ad9f40aec56f12ee39990d196f54f231a
6df7d43108f499c10fa40b71fdca97e51b3638f1
/A&D-Practica/week3/3/opdracht3.py
04744811a3539f66bdae03fcd5ec9f9444b79c84
[]
no_license
florenso/Algoritmen-en-datastructuren
6d4392e67af48a8fa92474137cbe82fcf6ade6f5
298507324a4c6ea08a4a1b26b0d253fa2571a3a5
refs/heads/master
2021-01-10T11:39:48.187659
2016-03-14T13:56:52
2016-03-14T13:56:52
50,831,187
0
0
null
null
null
null
UTF-8
Python
false
false
9,283
py
import sys sys.setrecursionlimit(1000000000) class BSTNode: def __init__(self,element,left,right): self.element = element self.left = left self.right = right def __repr__(self,nspaces=0): s1 = '' s2 = '' s3 = '' if self.right != None: s1 = s...
[ "koenvdkruk@gmail.com" ]
koenvdkruk@gmail.com
51adf88b87cd3fb3a4d2a71c8e585c80903d9344
a01a6da68594a3a5c2d08b22588db7b2cac3689c
/src/PAOPhot2/make_photometry_catalogue.py
ef989796bda34e8bbd8c82a6e77c69c7a009f89e
[]
no_license
NGTS/PAOPhot2
17ca5ad425819b0f75d2f162e03b50ecb5b13a4f
1306a1459b82a567cc6611e193569a025215f97c
refs/heads/master
2023-01-22T03:32:53.248737
2020-12-04T10:03:08
2020-12-04T10:03:08
299,685,538
0
0
null
null
null
null
UTF-8
Python
false
false
3,110
py
# To avoid OpenBLAS error import os os.environ['OPENBLAS_NUM_THREADS'] = '1' from astropy.table import Table, vstack from astropy.io import fits import numpy as np from astropy import units as u from astropy.coordinates import SkyCoord import argparse, os, sys def make_TIC_target_catalogue(tic_id, reference_imag...
[ "samgill844@gmail.com" ]
samgill844@gmail.com
bca28892a0c2c6e6c8726063960a6c10181aa781
5c5c878ed9eda0baee989de542135224afbae8be
/env.py
01128cdd5f6e75de15c510303b8ad474822a83c6
[]
no_license
kedar2017/A_star_Path_Planning
b997acf5dfe8a70db9fb535e15f0e3fe975a6459
a85aaee80f7a4b79a39cc7eb4538876b72f885e7
refs/heads/main
2023-06-11T14:17:45.854364
2021-07-01T05:12:43
2021-07-01T05:12:43
381,916,887
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
class Env: def __init__(self): self.x_range = 51 # size of background self.y_range = 31 self.motions = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)] self.obs = self.obs_map() def update_obs(self, obs): self.obs = obs ...
[ "Joshi" ]
Joshi
1df3fe9bfaa423b8777c33c1b73fb67cb79c9162
dd694c300d0380df35c62f7ab7667346214ea296
/common/python/rift/mano/tosca_translator/rwmano/syntax/mano_template.py
d263e6f01cb1302a47517e08d092ad80e30a91fa
[]
no_license
RIFTIO/SO
9412858132db0430217a2c5c55fb4b1db89290fa
697160573011d47f45bd0b955a291a46063d3b15
refs/heads/RIFT.ware-4.3.3
2021-06-22T13:42:40.860291
2016-12-29T21:47:25
2016-12-29T21:47:25
75,762,640
1
1
null
2017-02-08T19:31:28
2016-12-06T19:11:20
Python
UTF-8
Python
false
false
8,848
py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
[ "Leslie.Giles@riftio.com" ]
Leslie.Giles@riftio.com
2cac0ea3a32b2b410a765f090be888c9a79b1470
4f8017615a86d1dfa10718d06606999bd4f6ae24
/pythoncollections/binary_searching.py
cdf7927044378889a9231365cade95c035ac21b1
[]
no_license
ASWATHIV98/Luminarpythonproject
d2b2c840bb4c29223d85a7a4a5973f82de99afe7
53f07060442f24b6ffed2104ef63c43884ab6fc8
refs/heads/master
2023-03-06T10:45:07.875145
2021-02-12T05:28:59
2021-02-12T05:28:59
333,320,955
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
arr=[10,11,12,13,14,15,16,17,18,19,20] element=int(input("enter the element")) flg=0 low=0 upp=len(arr)-1 while(low<upp): mid=(upp+low)//2 if(element>arr[mid]): low=mid+1 elif(element<arr[mid]): upp=mid-1 elif(element==arr[mid]): flg=1 break if(flg==0): ...
[ "shiljirajk@gmail.com" ]
shiljirajk@gmail.com
e4492680d141de291d7465a651e77ead9ce69654
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/person/feel_child_at_point/company/important_eye/say_time_with_year/same_man_and_time.py
2e1318a493eaec887d5816876828623ba3bfeaef
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
#! /usr/bin/env python def number(str_arg): point_or_group(str_arg) print('company_or_number') def point_or_group(str_arg): print(str_arg) if __name__ == '__main__': number('first_work')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
07a2335bfe239f189c83292b9a6e2991c0094dae
a27d5a16210fef310569c98b589307b54248f28a
/orders/views.py
6657d5ea28e264de6e22d2da575e427300a6bf6f
[]
no_license
yashboura303/E-commerce_Django
fd4b5088c97cc9e8a6971eecb3637700a8bd2e6c
8cc2aeb397056566186a4379b9eece56ac99a970
refs/heads/master
2020-09-22T07:43:09.118289
2019-12-01T10:58:47
2019-12-01T10:58:47
225,108,306
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
from django.shortcuts import render from products.models import Products from cart.models import Cart from .models import Orders from django.core import serializers import datetime def orderPage(request): orders, created = Orders.objects.get_or_create(customer=request.user) cartProducts = Cart.objects.get(cust...
[ "yashboura303@gmail.com" ]
yashboura303@gmail.com
686b706d30a24d127ee3cceccc35b6174e9af4ac
d34c3204b6a985a82e17dc82f455672660536517
/703.py
24e6ea591581514bc7d5dc52606fb072a9c2cab2
[]
no_license
pzqkent/LeetCode
34fe4af305c8db4e336ab095bba11e28a4f20ea5
48c0bda6f3163adf1709cb440a600fe36d4fb8ec
refs/heads/master
2020-04-14T23:10:32.898699
2019-02-02T23:20:51
2019-02-02T23:20:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,546
py
class KthLargest: def __init__(self, k, nums): import heapq """ :type k: int :type nums: List[int] """ self.nums = nums self.k = k heapq.heapify(self.nums) while len(self.nums) > self.k: heapq.heappop(self.nums) ...
[ "pzqkent@gmail.com" ]
pzqkent@gmail.com
09b36a955af2da8166de925b7b177a0575e1146d
dad4e29c0484cabad9c20a723f3d3bc2fb280e5e
/data/evaluate.py
4bd8599f89a62c1cb5e389efbf4b6f98dd7ea143
[ "MIT" ]
permissive
MobtgZhang/PQTA-Net
f4e024caab6077d473368a456992e4c780ad55f3
94e8d6ad78725f2c4f534f6c2ca9638c28053ad9
refs/heads/main
2023-04-23T09:20:20.055597
2021-05-09T15:21:24
2021-05-09T15:21:24
362,654,451
0
0
null
null
null
null
UTF-8
Python
false
false
10,111
py
import collections import numpy as np def compute_prediction_checklist(examples, features, predictions, version_2_with_negative: bool = False, n_best_size: int = 20, ...
[ "noreply@github.com" ]
noreply@github.com
6dec826ad832e8c498d065e24377c60a73a16993
2db9b284a8788266f93442ec485cd4ad47c5b23d
/LeetCode/Python/Medium/Deepest Leaves Sum.py
c6ef10035f3e1df6e40847ded60432fc3eaf52f1
[]
no_license
KeithDinh/Coding-Interview-Practices
5beec3d60469935d604ab5067641ee2efca4f256
7951886a7ec0ebea052b8eaad0bdd46dd53c059d
refs/heads/main
2023-07-08T13:01:20.825747
2023-06-24T14:23:39
2023-06-24T14:23:39
338,962,095
0
0
null
2021-07-12T03:49:53
2021-02-15T03:59:05
Python
UTF-8
Python
false
false
663
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def deepestLeavesSum(self, root: TreeNode) -> int: arr = [] self.sumByLevel(root, 0, arr) ...
[ "52475783+KeithDinh@users.noreply.github.com" ]
52475783+KeithDinh@users.noreply.github.com
4215373432425e8e7ac9a12e4c3eecf3791b95c6
9755d827f896f12aa30d446cc2aa5845134a101d
/PointziChallenge/bookList/tests.py
1ce2e4f2a80e6775d000799032c1ded6b3a6d8a5
[]
no_license
zcipod/challenge_with_BDD
9295e9cb6d9c5732776428a4cc7b1960bebdb2c4
4f0fc898e789b04543720989676acbe68ed9c9a0
refs/heads/main
2022-12-26T01:33:31.419618
2020-10-05T09:08:34
2020-10-05T09:08:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,082
py
from rest_framework import status from rest_framework.test import APITestCase from PointziChallenge.bookList import models from PointziChallenge.bookList import views import datetime class ApiTests(APITestCase): def setUp(self): url = '/user/' data = { "firstName": "testUser1", ...
[ "zhaochang168@gmail.com" ]
zhaochang168@gmail.com
07fa2c9057fbe99c779f2b1a7325559f2f426267
f6ed4d4d752581d692e795b9083ef0ce020c14b1
/Robotics All Code/person_follower2.py
a1ec6af48e7d40f6e7c10ad7dd043c395e77da4f
[]
no_license
johnhanckel/AMRClass
ea269525722593887ceaa4cab3efc8c91234cd77
9093c30a038e07e491e60e30e225020eb890ac63
refs/heads/main
2023-02-01T18:45:02.298033
2020-12-16T02:56:36
2020-12-16T02:56:36
321,850,678
1
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
#!/usr/bin/env python import rospy import numpy as np from math import atan2 from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan from nav_msgs.msg import Odometry from std_msgs.msg import Empty from kobuki_msgs.msg import BumperEvent from time import time xr = -0.1 yr = 0. pressed = False target_...
[ "noreply@github.com" ]
noreply@github.com
a8879ce20faccae2cf5d9e3ceef1ff93e3d082a3
e8bafd52d242ee4deed5825e25983b331e1877fb
/distributed-systems/homework3/testBrokerTolerance/pub.py
ce21d12d138393a6fd0d8021e963c8d536503339
[]
no_license
damccorm/course-work
c629d404140e7194624e9bee3405debf29545b70
9cc75fea15bda7b9397b0c326d87f9709d3aaa32
refs/heads/master
2020-04-29T06:08:54.142124
2019-03-16T14:42:15
2019-03-16T14:42:15
175,906,941
2
1
null
null
null
null
UTF-8
Python
false
false
440
py
import os import sys from time import sleep if __name__ == '__main__': if __package__ is None: import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) from publisher import Publisher else: from ..publisher import Publisher this_ip = sys.argv[1] pub = Pu...
[ "damccorm@microsoft.com" ]
damccorm@microsoft.com
73060cfb7802a5a73ee205e56574bb8cd627f7ec
df6505f07b42c843e0101093e4c7279bb06ed548
/lib/python3.6/tokenize.py
27d7371ef2b57cd2bbb564b5bfa3d4f675f9fd1a
[]
no_license
CrulQRL/ewallet
c4ff19a555261709e09d0146cd00bf3634d859fd
d4b51c9e65d4701d272f83f16e9909c4ec6c27e7
refs/heads/master
2022-12-24T07:57:02.697255
2018-10-31T17:04:37
2018-10-31T17:04:37
155,591,490
0
0
null
2022-12-08T01:16:05
2018-10-31T16:42:52
Python
UTF-8
Python
false
false
51
py
/Users/faqrulan/anaconda3/lib/python3.6/tokenize.py
[ "faqrulans@gmail.com" ]
faqrulans@gmail.com
672384e7ee2fe00f78ba8f0cae10fd9abc21ca41
eaa43160aeeaa3cb4c7c9f52d8ed01f9abdf85e5
/tests/rest/test_rest_view.py
9ff9c33ab588473769c4b72a22918c34f7426d12
[ "MIT" ]
permissive
furious-luke/polecat
4fd2a2f859b9a77d9d004b32bc1bf8f907fea2ba
7be5110f76dc42b15c922c1bb7d49220e916246d
refs/heads/master
2022-07-31T16:38:45.791129
2021-05-06T01:05:03
2021-05-06T01:05:03
179,440,367
4
0
MIT
2022-07-05T21:28:34
2019-04-04T07:00:55
Python
UTF-8
Python
false
false
593
py
from polecat.rest.schema import RestView from ..models import Authenticate def test_rest_view(db, factory): user = factory.User.create() view = RestView(Authenticate) request = type('Request', (), { 'path': '/a', 'session': None, 'json': { 'email': user.email, ...
[ "furious.luke@gmail.com" ]
furious.luke@gmail.com
0157b4d2e05d2f7510bea6c0ae5605eade35f1ac
eb40a441a8bbf1ef3a611c2fef0ecf3fe619fcc0
/venv/lib/python3.7/site-packages/django_states/templatetags/django_states.py
9376d901335f28eec646d8b75c8818daac119a4c
[]
no_license
TaurusCanis/tcr_home
db943b2efec8ba4673d7f3aeb6858370f0ae3c28
b49023cad1631afdd121bfecf26929d7cc691e81
refs/heads/main
2023-05-18T14:10:15.456138
2021-06-08T15:00:45
2021-06-08T15:00:45
296,198,662
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
from django.template import Node, NodeList, Variable from django.template import TemplateSyntaxError, VariableDoesNotExist from django.template import Library register = Library() class CanMakeTransitionNode(Node): def __init__(self, object, transition_name, nodelist): self.object = object self.t...
[ "acdole09@gmail.com" ]
acdole09@gmail.com
c00d69730a70e6feef9a2ca6c63e7ab3df11b6c4
8d982cae49d5658c8b8da540fe614807e0e719f4
/KPMG/LinkedIn/spiders/env/bin/mailmail
69a30935fc2b02230a73ee43409b59de3c29d79b
[]
no_license
headrun/poc237d
372ae5232433accf5b2137f4c53004816d3087d3
5a13e2bd02299a40c54febd5ea58b914b5eff729
refs/heads/master
2022-01-09T23:54:22.753176
2018-12-19T10:34:40
2018-12-19T10:34:40
120,739,761
0
0
null
null
null
null
UTF-8
Python
false
false
295
#!/home/ramya/learning/Scrapy/poc237p/KPMG/LinkedIn/LinkedIn/spiders/env/bin/python # -*- coding: utf-8 -*- import re import sys from twisted.mail.scripts.mailmail import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "rajaramya@Ramyas-MacBook-Air.local" ]
rajaramya@Ramyas-MacBook-Air.local
7b1557e45e765345bdce5d280c50ca47853acb31
99b784550a6d306147c022c8d829800b0fbb8c68
/Part_1_Basics/Chapter_6_Dictionaries/favorite_numbers.py
9dd21d1fa775414e45ba499c76a968d7a33e6089
[]
no_license
apuya/python_crash_course
116d6598f656d8fed0b4184edbce8e996cd0f564
0b2e8a6e9849a198cfb251706500a919d6f51fe7
refs/heads/main
2023-06-03T22:41:03.203889
2021-06-16T04:07:28
2021-06-16T04:07:28
367,812,531
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
# Python Crash Course: A Hands-On, Project-Based Introduction To Programming # # Name: Mark Lester Apuya # Date: 05/28/2021 # # Chapter 6: Dictionaries # # Exercise 6.2 Favorite Numbers: # Use a dictionary to store people’s favorite numbers. Think of five names, # and use them as keys in your dictionary. Think of a ...
[ "contact@mapuya.com" ]
contact@mapuya.com
1fed40586b8a86779adfa038334fea05ee538612
edfcd96f0010ea068a4c046bdcf7067ff92d3f9b
/Robot/Selenium/4.Auto-Login.py
7787da558eff8cdfb6356e8519c9782480f7224f
[]
no_license
afsanehshu/python-project
a99ff558f375c1f5e17ea6ffc13af9216ec4733f
48905cfd24df6d1f48460d421ed774f19403cf53
refs/heads/main
2023-08-03T01:53:32.812949
2021-09-22T19:36:25
2021-09-22T19:36:25
409,303,454
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import os from password import username , password addresss = os.path.absp...
[ "afsanehshu@gmail.com" ]
afsanehshu@gmail.com
26d5db2ab13123ffbf9e51990e3d590bc9bba1c8
5bab91fad81efd7e5d5e4f16c22bcc9986bc891d
/break_brick/powerup.py
064a1fe2515438f2ae61ba8f76ff559c274f0adf
[]
no_license
gsc2001/breakBrick
2cb1a5e4b2d45f0be9428203c9f6832e875341bd
816e3c75e833f844dd80f5395801ea286fe3bbd2
refs/heads/master
2023-03-20T18:24:12.822578
2021-03-19T14:10:58
2021-03-19T14:12:21
337,354,021
1
0
null
null
null
null
UTF-8
Python
false
false
5,834
py
from typing import List from colorama import Fore, Style import numpy as np import config from .ball import Ball from .objects import AutoMovingObject, GameObject from .graphics import * from .paddle import Paddle class PowerUp(AutoMovingObject): """Base class for all the power ups""" def __init__(self, re...
[ "gurkirat.singh@students.iiit.ac.in" ]
gurkirat.singh@students.iiit.ac.in
092a3fd97569804c742af907c3279274384885fa
4f263fc4cec4c4cc811a6c9896919f778d73acb4
/draw_box.py
915514bf6711df0fc8bc41af34cc885f71a3c04f
[]
no_license
333TRS-CWO/scripting_challenge_questions
550a25b6299771e6957a07cecd852160c28708b3
ec09d11b261a26ff887f699755bb2ee3b6aeaf0f
refs/heads/master
2022-04-09T21:24:55.693964
2020-04-07T20:04:42
2020-04-07T20:04:42
253,653,478
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from typing import List ''' Complete the draw_box function so that given a non-negative integer that represents the height and width of a box, the function should create an ASCII art box for returning a list of strings. Then wall of the box should be made up of the "X" character The interior of the box should be ma...
[ "adamdsneed@gmail.com" ]
adamdsneed@gmail.com
d67251be703eaa8132677562bd91c16bf6a94bb1
a91ce8b137f7088b861c98d887e04e50f166ab33
/neat_data.py
e01f2b1abee4c0b2c47097937098d07e7294959b
[]
no_license
saikamalkola/PRML
81a8945ff91f6938a0eb9be5966ab95827f325a6
2b6904f355fab3864648bfcf7dde54199ec59a90
refs/heads/master
2020-03-15T08:25:56.844460
2018-05-03T21:21:06
2018-05-03T21:21:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
trainingSet=[] testSet=[] features = [] training_labels = [] test_labels = [] with open('data.csv', 'r') as csvfile: lines = csv.reader(csvfile) dataset = list(lines) features = dataset.pop(0) #print(features) for x in range(1,len(dataset)-1): for y in range(2, len(features) - 1): ...
[ "saikamalkola@gmail.com" ]
saikamalkola@gmail.com
f47e482e6b1655070e638282d72b62eca5418697
75abd41712564b62154dc09e91394bf3530dd6ea
/d01/ex04/state.py
6d8696415dd238db41f12d19357b0dfd7ca56f6c
[]
no_license
JeanMax/Piscine-Python
4c4f863362c3f25534bbc6aee39c6049d317a7bc
60df7fc0cf9bea5184cf6727919ee6a3a2a64594
refs/heads/master
2021-04-15T09:12:46.132314
2018-03-30T15:13:41
2018-03-30T15:13:41
126,845,866
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
#!/usr/bin/env python3 import sys def get_key(h, v): """Super Opti""" if v not in h.values(): return None for k in h.keys(): if h[k] == v: return k return None def uneautrefonction(capital): """Ceci est une autre fonction""" states = { "Oregon": "OR", ...
[ "mcanal@student.42.fr" ]
mcanal@student.42.fr
84ca014a01bea4b0f0ae8abbc8301ce9a76311f2
a3e6c9f54193be74f7ee7d13113723db84b4859d
/read_images.py
cb12286eee3a8103829d454df1e85949841c2add
[]
no_license
Arrotech/openCV-python
b235748ed142b02e90cac644d445a6facf637413
f5d6f056d2210f81aee5f3359d09080fc6e81482
refs/heads/develop
2023-05-03T08:34:50.302587
2021-05-21T13:57:35
2021-05-21T13:57:35
368,883,383
0
0
null
2021-05-21T13:57:36
2021-05-19T13:43:00
Python
UTF-8
Python
false
false
1,310
py
import cv2 as cv img = cv.imread('images/ppic.jpg') def resizeframe(frame, scale=0.75): """Resisze the frame of the image.""" width = int(frame.shape[1] * scale) height = int(frame.shape[0] * scale) dimensions = (width, height) return cv.resize(frame, dimensions, interpolation=cv.INTER_AREA) re...
[ "arrotechdesign@gmail.com" ]
arrotechdesign@gmail.com
3dfa9d7a221774d06c71a6a1ed01f9aeeae3953f
a248ed39805f6ef8fe498e3eb05401f92c355f53
/cars/migrations/0037_auto_20190115_1608.py
899ceaba9fc4ca39ad77133cee5e1fbeecc8f064
[]
no_license
dbudrys/AutoMove-Django
b1fd55843e2c54ca5cb3b24c373280881a89001e
7cbd04aea6fe39af5d5ca5a17868b626af010682
refs/heads/master
2022-12-09T23:14:46.517493
2019-10-24T17:36:05
2019-10-24T17:36:05
202,580,285
0
0
null
2022-11-22T04:32:53
2019-08-15T17:01:42
JavaScript
UTF-8
Python
false
false
324
py
# Generated by Django 2.1.5 on 2019-01-15 16:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cars', '0036_auto_20190115_1607'), ] operations = [ migrations.AlterModelOptions( name='carimage', options={}, ), ...
[ "dbudrys@my.apsu.edu" ]
dbudrys@my.apsu.edu
38add734222e213cbc9a08725bd613814cf7ed95
cfa50cd1f203ab2d3f89b3d06f060bd9e90201ac
/tatakelola_kabupaten/controllers/layout.py
bf51201f375a5e8c6170e4f08caca6afc9a3cbfe
[]
no_license
roedyrustam/sideka_app_server
b53586a4759549e9576f026c58675c21370335ef
538c13badb910c82a3f769199b1938fcb0ad0426
refs/heads/master
2023-05-13T08:43:30.463496
2018-12-07T12:47:54
2018-12-07T12:47:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
from flask import Blueprint, jsonify, current_app from tatakelola_kabupaten import db from tatakelola_kabupaten.models import LayoutModelSchema from tatakelola_kabupaten.repository import LayoutRepository app = Blueprint('layout', __name__) layout_repository = LayoutRepository(db) @app.route('/layout/region/<string:r...
[ "firstcode2017@gmail.com" ]
firstcode2017@gmail.com
54924fe1dc8498e5d95211b1b0053f990039d591
2b3c5f047d3f06a5a571a2f4af46d109e6d5674a
/dtor/utilities/torchutils.py
e8cd1342e7916a6235f85b15dd29de536ed1c3fa
[ "MIT" ]
permissive
nki-radiology/dtor
f2e1abb8ca913b257c8e26508b69bea61b70b14b
f9efd8ea377c9167872cb65e352bdc4502487588
refs/heads/main
2023-04-12T06:35:27.915668
2022-05-12T11:51:00
2022-05-12T11:51:00
341,508,464
0
0
null
null
null
null
UTF-8
Python
false
false
2,940
py
from dtor.logconf import logging import numpy as np from sklearn.metrics import f1_score log = logging.getLogger(__name__) # Used for computeBatchLoss and logMetrics to index into metrics_t/metrics_a METRICS_LABEL_NDX = 0 METRICS_PRED_NDX = 1 METRICS_LOSS_NDX = 2 METRICS_SIZE = 3 def process_metrics(metrics_t, class...
[ "sean.h.benson@googlemail.com" ]
sean.h.benson@googlemail.com
086aaeefc009dbbc67eeb42757f5fdeaed97feb1
cb354702710c18d5bc5d1491757c66400a7bf642
/probclearn.py
9114139e2d6e951b52859d47f76dd3ab916c87cb
[]
no_license
LouiseHash/data-mining-python
9d47eac49641e8e2ba1f5be87bdf39bdf0e7a1d9
15f4ae877ce4cf43c175c80f0a2735ef7afddcf0
refs/heads/master
2020-08-19T12:57:02.890647
2019-10-18T04:30:02
2019-10-18T04:30:02
215,921,949
1
0
null
null
null
null
UTF-8
Python
false
false
1,776
py
# Input: numpy matrix X of features, with n rows (samples), d columns (features) # X[i,j] is the j-th feature of the i-th sample # numpy vector y of labels, with n rows (samples), 1 column # y[i] is the label (+1 or -1) of the i-th sample # Output: scalar q # numpy vector mu_positive of d rows, 1 column # numpy vector ...
[ "wenjuy2@uw.edu" ]
wenjuy2@uw.edu
78156af445ca7f6349b598fc6489e5fb05a9cc00
4fa34df79255313bbac516d6eddb8208e8dc899a
/manage.py
b626519e2214d3bcc9fd736f1e759d96033c4a58
[ "MIT" ]
permissive
SecBaby/eLdap-Ldap-Search-and-Filter
79fbf986e74e7a2495e24c4f2f2dcce9351f98b5
a9220f94ed5443598047dd3d48786878d4c1dc83
refs/heads/master
2022-12-23T17:26:59.890101
2020-09-30T19:03:40
2020-09-30T19:03:40
274,427,060
0
0
MIT
2020-09-30T19:03:42
2020-06-23T14:26:47
null
UTF-8
Python
false
false
625
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'eldap.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
[ "byemre.ovunc@gmail.com" ]
byemre.ovunc@gmail.com
f912c8c8ca62320552c2c4adb01a2bd91eb795b8
332205747557bd5133c3274090e98fad06bd3f9b
/DSGD_CNMF.py
01a5cdd4b2b27766be5c8cdcd348427889b516b9
[]
no_license
ninghaohello/ALAD
3de309a67637347f5e26d5936364855784557705
bd656b85f5b474929a82aed7611511aed49b1be3
refs/heads/master
2021-04-15T08:52:10.823127
2020-04-30T23:29:06
2020-04-30T23:29:06
126,275,698
2
2
null
null
null
null
UTF-8
Python
false
false
12,129
py
# Block Distributed SGD Algorithm # Copyright 2018, Ninghao Liu import numpy as np from scipy import sparse as sp from scipy import io as sio import multiprocessing as mp import Mat2BlockPublic as Mat2Block import math, time, copy, random, sys class DSGD_CNMF(object): def __init__(self, R, B, sp_flag...
[ "noreply@github.com" ]
noreply@github.com
4955954c9b25165f33268d85c08c4a8c2747291c
7de0d83ac7df64425defe88db44a6456771bbc39
/policy.py
0b8ea4ac731cca3457942351326a199662baa8f1
[]
no_license
PhilipCho/CIP
403d52c444e1ce8e5be11b33a4b6ec9aba006963
4dd20371238553bb4ae40b9468d9178358188410
refs/heads/master
2021-01-13T12:54:01.015354
2016-11-03T22:26:24
2016-11-03T22:26:24
72,792,362
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
#!/usr/bin/env python3 class PolicyRisk: def __init__(self, cn, tm, uptime, hon, hgt): self._cn = cn self._tm = tm self._uptime = uptime self._hon = hon self._hgt = hgt self._risk = max((float(cn)/tn)*hgt, (float(hon)/uptime)*10) def risk(self): return s...
[ "noreply@github.com" ]
noreply@github.com
2fc0c7fb75747be308dd1f0cd0dc25f774012fe3
b232cde86ee8fdf1f5f14ec523d4cd440966f406
/example/manage.py
855350cb004b5600259205876158824823db9ab3
[]
no_license
flenter/django-progressable
bb9d0de881a8ba5b90757c6b2003a09cb68dc611
9d4d35a0fbb0a74a006eeb548385fe9fb0361e45
refs/heads/master
2021-01-19T19:31:21.456222
2012-01-04T12:33:22
2012-01-04T12:33:22
1,999,465
2
0
null
null
null
null
UTF-8
Python
false
false
557
py
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write(\ """Error: Can't find the file 'settings.py' in the directory containing %r. ...
[ "jacco@secretcodemachine.com" ]
jacco@secretcodemachine.com
ab438588d010a27e28f5c90b72d85b2aeb513c3b
e0b92a15065b68f6523b27a4572c575a62a694be
/syntax-lesson/syntax-lesson01/syntax-lesson01-chapter06/map.py
528d8d03065159b35dcb4825b0f09df499e60dab
[]
no_license
tykkidream/HelloPython
f57f1ddfb9d6782380f045be4d438599fcb0e8d9
4a57d351c0742224881bce809e63e263d9364268
refs/heads/master
2021-09-16T07:05:17.351010
2018-06-18T10:27:47
2018-06-18T10:27:47
106,831,125
0
0
null
null
null
null
UTF-8
Python
false
false
3,941
py
print("\n# 01") alien_0 = { "color" : "green", "points" : 5} print(alien_0["color"]) print(alien_0["points"]) print("\n# 02") alien_0 = { "color" : "green", "points" : 5} print(alien_0) alien_0["x_position"] = 0 alien_0["y_position"] = 25 print(alien_0) print("\n# 03") alien_0 = {} alien_0["color"] = "green...
[ "tykkidream@gmail.com" ]
tykkidream@gmail.com
e56fc25ac90a0ca298a217fb2dc1bf53705cc121
594f4dccbb1958c009b7fb87258d61d47f3dd76b
/protect_archiver/dataclasses.py
d9927ec9b3c3c296d2d98fbe558af76aa4089dd7
[ "MIT" ]
permissive
chach17/unifi-protect-video-downloader
64453eff103171c18ce4387239825cd1059b32f2
cc31ae2f2abc3d83be7513c6119e8ff0c6c3e1a7
refs/heads/master
2023-08-05T12:59:40.465234
2021-10-05T15:49:52
2021-10-05T15:49:52
413,208,054
0
0
MIT
2021-10-03T22:08:39
2021-10-03T22:08:39
null
UTF-8
Python
false
false
372
py
from dataclasses import dataclass from datetime import datetime @dataclass class Camera: def __getitem__(self, key): return getattr(self, key) id: str name: str recording_start: datetime @dataclass class MotionEvent: id: str start: datetime end: datetime camera_id: str s...
[ "github@danielfernau.de" ]
github@danielfernau.de
727823b509e57b782cd2f483e86f3ea68facafe3
365434508376d0d2112cecff1f5b4fdc1853b03c
/Orders/migrations/0005_line.py
6bd56afa197718faf8aa18082de8413b5c55730a
[]
no_license
zdvitas/karaoke
1cab11b23bf96c1bc767a254b9b9a5874f0a2bbc
0de92fd6f87e4d387c1e060ea1749f6828f8b57f
refs/heads/master
2021-01-02T09:07:21.085282
2014-12-12T18:05:21
2014-12-12T18:05:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('Orders', '0004_auto_20141016_1837'), ] operations = [ migrations.CreateModel( name='Line', fields=[ ...
[ "zdvitas@gmail.com" ]
zdvitas@gmail.com
5eb7695a378f7d7168413fc99f8fb871e63572c8
90a1d37ee057f2f67fc7c68d1bd28d7bdb3ef9d3
/PythonTip.py
9bbe387c826ea962ae15fa4936a8e952540b4d05
[]
no_license
Kimsangchul0603/HoneyTip
fcb17e3ace010ec1eb4a0b17281754f375a60cd1
1b3660f6088cb59c4a47edef6c6e80fdf11b8853
refs/heads/main
2022-12-27T03:28:28.097411
2020-10-10T11:30:52
2020-10-10T11:30:52
302,646,597
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
# 목차 # 리스트 # 리스트 x = [1, 2, 3] x.extend([4, 5, 6]) # 리스트에 리스트 추가, x = [1, 2, 3, 4, 5, 6] x.append(4) # 리스트에 항목 추가, x = [1, 2, 3, 4] 1 in [1, 2, 3] # 항목 존재 여부, True # 딕셔너리 dict.get("없는key", "value") # 딕셔너리 내 없는 키의 값을 value로 대체해줌 dict.keys() # key 호출 dict.values() # value 호출 dict.items() # key, value를 튜플로 묶어 리스트로 호출 #...
[ "high99a@gmail.com" ]
high99a@gmail.com
d8f4ef8cc640aa234f1fe9ee17a5fde93e159e07
cdae0c3e86620063edddacf8d11d68dea8703d14
/04_bulk_pregrant_read_in/Python Scripts/draw_desc_text_2015.py
08e96fa11e484ee0b224ad9a9d855e4f01d87d2a
[]
no_license
Cativolcus/PatentsView-Code-Snippets
6acd8f3ac608635f46e48aae443c9ce53de1b028
0bee4eab7d19117301089b6458af32dba42142e3
refs/heads/master
2023-05-01T15:06:11.166651
2021-05-03T20:04:56
2021-05-03T20:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
891
py
#Read-in script for 2015 draw_desc_text Data # Importing necessary packages. import os import zipfile as zip import pandas as pd import csv # Set up file path: # Please include the folder path of the file you are reading. Ex: os.chdir("C:/Users/johnsmith/Downloads") os.chdir("") # Selecting the zip file. file_name = "...
[ "jtutor@air.org" ]
jtutor@air.org
9b9cb3056f6c2616d79303f2f8177253e0bd3516
56ceabd50615384dd78d40ad6fbc1bd626ab8f46
/Project/user/views.py
508ceb66f018785d1c4a19e5e0d476c8f60da6d9
[]
no_license
shristhipahwa/Development_series
f462bf4f531574c4a8e2878129e87ee1066b6a81
da9cae6b6e767739653fcc23e3006ce35013f4ab
refs/heads/master
2022-07-22T03:48:59.376324
2020-05-18T17:37:37
2020-05-18T17:37:37
258,881,422
0
0
null
2020-04-25T21:49:40
2020-04-25T21:49:39
null
UTF-8
Python
false
false
1,465
py
from django.shortcuts import render, redirect from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm from django.contrib import messages from django.contrib.auth.decorators import login_required def register(request): if request.method =='POST': form = UserRegisterForm(request.POST) ...
[ "ssdk171@gmail.com" ]
ssdk171@gmail.com
90621bfe3417cf74b3345694d425576bd0b9d17d
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/test/test_word_count_dto.py
14b46c84f966ab2bbefc1ec77a192bda0e3e6bcf
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
649
py
""" dev2 api schema 'dev2.baidu.com' api schema # noqa: E501 Generated by: https://openapi-generator.tech """ import sys import unittest import baiduads from baiduads.materialproduct.model.word_count_dto import WordCountDto class TestWordCountDto(unittest.TestCase): """WordCountDto unit test stubs""...
[ "v_wangzichen02@baidu.com" ]
v_wangzichen02@baidu.com
a31a8ad29aa2aa3317182191c87dcbb5489883c1
cb1fb3bf87b3f7006b564a0f2acd2d68e5d5ffaa
/pyram/misc/vispy_examples/flow_lines.py
a802abddd2174e35e85825563cb952f32bd1a21d
[ "MIT" ]
permissive
Hoseung/pyRamAn
2778f8b12ca966e7586ebf077a964aecd1654223
f9386fa5a9f045f98590039988d3cd50bc488dc2
refs/heads/master
2021-06-22T18:35:06.478492
2021-06-05T03:26:31
2021-06-05T03:26:31
227,741,934
1
1
MIT
2020-03-04T12:39:06
2019-12-13T02:49:30
Jupyter Notebook
UTF-8
Python
false
false
6,690
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2015, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # -------------------------------------------------------------------------...
[ "hopung@gmail.com" ]
hopung@gmail.com
1b53fd66d3749ef53ddc760f7ea523e55541ad13
4f45cfd217c37c4c6c26ca38c8d362d3e022764a
/jxbbs/jxbbs/pipelines.py
eb8c072b51b2dc0a89ec86e11f1efd07bee91f23
[]
no_license
huangjie-python/scrapy01
ae2c08ea4081406c37da1b90ded9df22f3a3d1fa
a04eaaf72e3174b59b62b24303d200f91533b680
refs/heads/master
2022-12-07T00:25:53.598878
2020-08-15T08:10:35
2020-08-15T08:10:35
287,705,231
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
# -*- coding: utf-8 -*- import json # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class JxbbsPipeline(object): def process_item(self, item, spider): # print('========================开...
[ "1615035351@qq.com" ]
1615035351@qq.com
b36c3041919205c657ef8714f2f80aaa9965ff9f
86b296513214f90ca2294ea98e41f900de10b478
/django_authopenid/forms.py
9c519d7474aed3af1ad8a81ed7c494a9ce4a035c
[ "Apache-2.0" ]
permissive
laygounas/cnprog
947b653ec734ed7554c6a71bbacb1b713f456320
b33e41a431297f20fa2c4376b6a0bb1fd70751ee
refs/heads/master
2021-01-10T09:17:31.811635
2015-05-27T23:18:31
2015-05-27T23:18:31
36,401,636
0
0
null
null
null
null
UTF-8
Python
false
false
19,136
py
# -*- coding: utf-8 -*- # Copyright (c) 2007, 2008, Benoît Chesneau # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright...
[ "chagel@b6dd08b8-cd4e-11dd-94fd-9de6169c3690" ]
chagel@b6dd08b8-cd4e-11dd-94fd-9de6169c3690
f730bfe29d2a0e355822fbd76a75f8bd6d320316
0d7df85b817a4800744d94dbf3656263f8a50359
/DjangoServer/urls.py
7b41ee6d3daefba5a53fa6e38c3285571e2bd3ba
[]
no_license
hmafnan/PadreServer
c065014c9290ebb7ee06992735e35394718b483d
b2b0fa3fefe35500ed279e52ddaad4cef2d85e38
refs/heads/master
2022-11-02T17:35:17.502043
2020-06-21T15:59:49
2020-06-21T15:59:49
241,957,007
0
0
null
2022-09-23T22:44:01
2020-02-20T18:16:30
Python
UTF-8
Python
false
false
844
py
"""DjangoServer URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "hm.afnan@yahoo.com" ]
hm.afnan@yahoo.com
5d51135e8bbed8efdb6c26ff33adf8488a8a911f
6c543074f1d764af9701e5b55db9ab0220c1df93
/prictice/mzitu_02.py
b9fa94a5ea6dc727418b8ebc4bc253f4cf809349
[]
no_license
allenlgy/Django-project
127e984e13f71d20e01df68ad42d00b977ac0105
9c4b9e6c67481a5f3cef58ea47e9fd62058036d8
refs/heads/master
2020-06-23T01:03:03.170674
2019-09-04T06:11:40
2019-09-04T06:11:40
198,453,709
0
0
null
null
null
null
UTF-8
Python
false
false
3,039
py
import requests import os import time import threading from bs4 import BeautifulSoup # 下载界面的函数,利用requests就可以实现 def download_page(url): ''' 用于下载页面 :param url: :return: ''' headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"} r = requests.g...
[ "1006547624@qq.com" ]
1006547624@qq.com
b93fd0bf3fca31916b8f29925683450fa038a140
aab72a5f302ba99ba2576b1b54ba9590257f9bf8
/Cryptopals/Set2/decrypt_msg_.py
9960bca0a3caa45b6b029db0d28b170a957b4454
[]
no_license
Altelus1/Hacking_Adventures
ad09a0d2666c21e6dd4734a0c606888f1c19ad6c
488248259be6813fe1409b9278915381275cedb1
refs/heads/master
2021-06-28T11:32:21.967709
2020-10-17T16:18:37
2020-10-17T16:18:37
143,871,206
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
import aes_cbc_decryptor as ACD import base64 filename = "decr.txt" contents = "" key = "4n7mK1Nu2HFRyMrd" block_size = 16 with open(filename, "rb") as rb: contents = rb.read() #contents = contents.replace("\n","") contents = base64.b64decode(contents) plain_blocks = ACD.decrypt_cbc(contents, key=key) print(b'...
[ "noreply@github.com" ]
noreply@github.com
253cb78ffc6b58e754decfdf0f150c0092725d86
00664b0348a8346dba40dd8e60fe521e3d9d8bf1
/createDB.py
12838ac8abe994110b4e22a19c02e4f2cf558fd4
[ "MIT" ]
permissive
sfera2/Poker_DB_Creator
381eea9814e02914af6474a8fd0c57590a33ba6d
24c1e1c5b6b20459f698f7492eda4b632f0c38e5
refs/heads/master
2021-01-25T09:31:29.511802
2017-12-04T18:47:38
2017-12-04T18:47:38
93,841,455
0
0
null
null
null
null
UTF-8
Python
false
false
9,582
py
import psycopg2 import sys from handHud import * import time from psycopg2.extensions import AsIs import copy from multiprocessing import Pool import os def connection(): try: conn = psycopg2.connect(database="new", user="postgres", password="postgrespass", host='localhost'...
[ "michal.gigon@gmail.com" ]
michal.gigon@gmail.com
06f1d2e2894480fc8c46423476b46581410b8a8c
2309938ab660efb777e745060f81772561817d71
/website/urls.py
9f4fe6e9a619cf63f7d5e4dff7c062d3a1b2352a
[]
no_license
karthik-dasari/self-appraisal-report
fc28de595f8ee8afa576b24dd7bd16209237add4
e6ac1c840b1935c93c3ad245dc28bb3b143fcd71
refs/heads/main
2023-03-28T22:02:49.732662
2021-04-09T18:00:41
2021-04-09T18:00:41
356,335,791
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
from django.contrib import admin from django.urls import include, path from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('',views.welcome), path('personal_information',views.personal_information,name='personal_information'), path('education...
[ "karthik.dasari2001@gmail.com" ]
karthik.dasari2001@gmail.com
7cde5d9d37ec46338e447fc55293449faeb6e926
12066303d774f82e3f2342f0bfdc908bfe7417fd
/chess/test/opencl.py
6944f01f349f5a7921dd1f5140a184844bca62a0
[]
no_license
lishocking/PythonLearning
6ba4bceb35159a8d68da21b0786a4f0fbbd3a2f7
c76a8b886158685d3779f2a22be4a32da94185f3
refs/heads/master
2021-07-24T17:16:04.150707
2019-01-02T03:01:13
2019-01-02T03:01:13
130,651,520
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
from py2opencl import Py2OpenCL import numpy from numpy.random import randint def next_it( x, y, dest, src ): """ neighbor coordinates: 0, 1, 2, 3, 4, 5, 6, 7 """ live_neighbors = ( src[ x-1, y-1 ] + src[ x, y-1 ] + src[ x+1, y-1 ] + src[ x-1, y ] + sr...
[ "lishocking@users.noreply.github.com" ]
lishocking@users.noreply.github.com
3e3df2fe59d1a10f32ac54a43df7b4cb123f4f9a
2411fc1113109abfc7c4c195ba24bac0352f10e5
/mnist_cifar10/cifar/lr.py
b1fdc4fbe9cd4914c748095d0d518b63e8be6c55
[]
no_license
wuchengyangcn/ee369
d445804f6a1a14cf7038c2f2a6f6a784306950a2
6c64e3a14af52008edbdb08dd09bcbc9bc726a07
refs/heads/master
2020-04-03T11:14:26.320417
2018-11-04T06:27:05
2018-11-04T06:27:05
155,215,591
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
import time import numpy start=time.time(); trainfeature=numpy.loadtxt('train.txt',dtype='int'); testfeature=numpy.loadtxt('test.txt',dtype='int'); trainlabel=trainfeature[:,0]; testlabel=testfeature[:,0]; numpy.delete(trainfeature,0,axis=0); numpy.delete(testfeature,0,axis=0); end=time.time(); print(str(end-start)+'\t...
[ "wuchengyang@sjtu.edu.cn" ]
wuchengyang@sjtu.edu.cn
3c1f4a4b7338df8421e0546aafd7d00b9af411c9
43251ef26ad8aec6ffffa6f6b2a9c9c2889460d6
/simpleavs/objectdict.py
00a33dc9bf0a15d45e120df37d0bec3bd25776e7
[ "MIT" ]
permissive
fransiska/simple-avs
203f6a3f5ab8a091e8b9ac9b8798842be6e2be29
bfeceb29e6cd19b0bcaa8187cfcf3d62296b4b4f
refs/heads/master
2020-03-21T11:58:59.845777
2018-06-25T08:23:29
2018-06-25T08:23:29
138,531,543
0
0
MIT
2018-06-25T01:58:43
2018-06-25T01:58:42
null
UTF-8
Python
false
false
535
py
""" allows object style access for dictionaries """ class ObjectDict(dict): """ allows object style access for dictionaries """ def __getattr__(self, name): if name in self: return self[name] else: raise AttributeError('No such attribute: %s' % name) def __setattr...
[ "robl@theappbusiness.com" ]
robl@theappbusiness.com
7d44bce3aceb66ea7e657d70b1114c028bade942
bab29c689a443dcf187204549d7cebc2bcccde62
/11_Convolutional_Neutal_Networks_Application/main.py
79001bb2bd5a5503e9c8a204ce07fab5069564b4
[]
no_license
Kabibi/deeplearning-assignments
21d273647cbba9cdf0e5b838b5eea43e7e0b049e
025f0f6ea6f80dabe40f19a908df1969521e15f0
refs/heads/master
2021-09-07T04:42:52.755014
2018-02-17T15:44:43
2018-02-17T15:44:43
115,249,427
0
0
null
null
null
null
UTF-8
Python
false
false
8,484
py
# coding=utf-8 import math import numpy as np import h5py import matplotlib.pyplot as plt import scipy from PIL import Image from scipy import ndimage import tensorflow as tf from tensorflow.python.framework import ops from cnn_utils import * # Loading the data (signs) X_train_orig, Y_train_orig, X_test_orig, Y_test_o...
[ "aaron.csie@gmail.com" ]
aaron.csie@gmail.com
b90c9db4fa9a96c8814e0d5a68e38eb672171701
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/YjwJ6BfujKtmuTMqW_6.py
1eb141206c4290eab340178e76daf41c58d99aec
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
def dice_game(scores): players = ['p1', 'p2', 'p3', 'p4'] scores = scores[::-1] while len(players) > 1: turn = [] for player in players: turn.append({'s':scores.pop(), 'p':player}) turn.sort(key = lambda t:(sum(t['s']), t['s'][0])) last1, last2 = turn[:2] if last1['s'] != last2['s']: ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
b0b257a789216c40cc2c4179eac1dd25c94a01ba
36d067816e0c1c801898f3fcfe122edc746dfdb6
/neutron/tests/unit/api/rpc/agentnotifiers/test_dhcp_rpc_agent_api.py
b175d340361da84c40c6aa20221111cfd3cc0e8c
[ "Apache-2.0" ]
permissive
osrg/quantum
9fd7b126167a15200d63277c36321d9b758d3680
b78eea6146145793a7c61705a1602cf5e9ac3d3a
refs/heads/master
2023-09-01T03:04:53.297582
2014-01-13T21:57:04
2014-01-20T21:49:55
2,808,163
1
4
null
null
null
null
UTF-8
Python
false
false
3,197
py
# Copyright (c) 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ "marun@redhat.com" ]
marun@redhat.com
234a48b757180d2754f4dfb3f157ffaeb91c00bc
70584f25391874aa45484a197d53dc290dae479f
/data_salmon/tests/strategies/test_random_range_strategy.py
1247e289d3d98baacc36ff01159634dcaf85348a
[ "MIT" ]
permissive
htryppcook/data_salmon
4d16bef3516a83c00475925c3e7efd9920453cae
8fecbba5db4433fa8472cd156bebde854b5eb692
refs/heads/master
2020-03-28T13:07:34.654992
2018-12-19T00:10:35
2018-12-19T00:10:35
148,368,660
0
0
MIT
2018-12-19T00:10:37
2018-09-11T19:24:43
Python
UTF-8
Python
false
false
1,183
py
from nose.tools import assert_equals from nose.tools import assert_true from data_salmon.fields import IntegerField from data_salmon.strategies import RandomRangeStrategy class TestRandomRangeStrategy: def test_random_range(self): test_cases = [ { 'input': [0, 15], ...
[ "harrison@sounderintelligence.com" ]
harrison@sounderintelligence.com
f047f9775a3c47115ce51159634b7701faa2263c
0b2f2a87a8acff0b3a4ae606c223ffe44a6fea2f
/scripts/matrix_to_vector.py
88f8a51703ece5b7c5f8f6db2c57342206de025f
[ "MIT" ]
permissive
endrebak/ldetect
25b19518de6fc97e41c3d290e711d9cfbf055520
620f60a6758b448c6f16bb529b8ac1afd6b88a6a
refs/heads/master
2020-10-01T18:08:59.949249
2020-01-07T14:04:39
2020-01-07T14:04:39
227,595,162
3
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
import pandas as pd import numpy as np from ldetect2.src.matrix_to_vector import mat2vec from sys import argv partitions = argv[1] theta2 = argv[2] covariances = argv[3:] theta2 = float(open(theta2).readline().strip()) import sys # print(partitions, file=sys.stderr) # print(covariances, file=sys.stderr) # partit...
[ "endrebak85@gmail.com" ]
endrebak85@gmail.com
3ed899df8d36433f762fbff5833d248575c40cd3
6210a3874f14037b869c364a6054d9e7e64587dc
/bookmarks/admin.py
f79e2b16deda37a3f615352c9a24b83987e91b88
[]
no_license
tsimpson/porganize
f4c95bed8bbd4de7dca9dfda4a8e6e6ae365c0aa
ccad84b6238d8b86e55187dc315113e0fa37c532
refs/heads/master
2020-03-16T19:49:52.852633
2018-05-15T19:13:08
2018-05-15T19:13:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
from django.contrib import admin from .models import Bookmark, PersonalBookmark admin.site.register((Bookmark, PersonalBookmark)) # admin Porganize
[ "travis.simpson92@hotmail.com" ]
travis.simpson92@hotmail.com
e32bb47b91f6e04fd2eb460965bb64bb96f1518e
f35611cc91f1dcb36030932e722421ed4c354032
/algorithms/cache/fibonacci.py
6fec3db24b7ecdecf60e035a829dded20fcfe59e
[]
no_license
IcedTea0000/DataStructureAndAlgorithm
dee853ed275e27367b0430333e24e6dd0c3047e1
cafb62f576d51a33fe6681370d188c2a96dbd51f
refs/heads/master
2023-03-17T14:52:04.301035
2021-03-07T08:18:58
2021-03-07T08:18:58
324,182,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,990
py
# 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811... calculation_counter = 0 calculation_counter2 = 0 def cal_fibonacci_no_cache(index): global calculation_counter calculation_counter += 1 if index < 2: ...
[ "ngohoanglam65@gmail.com" ]
ngohoanglam65@gmail.com
1165a7404ae1e7b92edadd609cbdf241953c197d
9d756c2725e4807bbb25e2b7245c8e7c3b2a6609
/real_time2.py
00acf4d7c3e81821727a7c9c23fff5281b63f9ed
[]
no_license
gianlucavasco96/AdaptiveSonification
31a20ca021055a9f9da6f28eb609d2f8db042ab0
a0fbf8bb9296afdac10791dcca6e637fbdb179b3
refs/heads/master
2023-04-26T00:20:50.617897
2021-05-25T13:05:02
2021-05-25T13:05:02
346,099,378
0
0
null
null
null
null
UTF-8
Python
false
false
4,590
py
import time import pyaudio from matplotlib.widgets import Slider, Button from scipy.interpolate import pchip_interpolate from functions import * # initialize pyaudio p = pyaudio.PyAudio() def update(val): global snr_target snr_target = gain_slider.val def reset(event): gain_slider.reset() # callback ...
[ "gianluca.vasco@studenti.unimi.it" ]
gianluca.vasco@studenti.unimi.it
777c3c4fec3ed2bbdebae458605ecef13414b3d6
be439be121f09ff4b30247860d4bb2fc799cb1fa
/Assignment1/twitterstream.py
b1227c28046b7708c5b40a70c5f5b94e9a40ebcf
[]
no_license
gdemin/Introduction-to-Data-science
e6b6b1e485732d2a0e45d0de69ad9699e0ccba22
dc0966846de50a42a79852f0bf64b1411f013e34
refs/heads/master
2021-01-23T03:05:34.043597
2014-07-14T00:37:52
2014-07-14T00:37:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
import oauth2 as oauth import urllib import urllib2 import json api_key = "uh17pit6qMXu8S2ASBRAvTcCI" api_secret = "JzMNKwVj0iDkssDtfX3RbgTGHa0OAULVAjNpvQsCs2Ltx9eMit" access_token_key = "25037696-wR32LYh9PVzfeJVXuYY03ksihMCpUF8JWO47GjPVP" access_token_secret = "dx8BlAvhtRpOdCshRjENgpT0IDwBBdtcpQ0nz1CAGAm9S" consumer...
[ "gdemin+github@gmail.com" ]
gdemin+github@gmail.com
94da14487164e8512d55f09207f5cff8ed5508f0
4d9af20ba15e84fdc5aa8835a0951ab346729026
/SubEventDetection/similarity_score.py
484460dc2e3b51635ce9f0ad9aa4b46c74ceac5c
[]
no_license
Humanity123/DeepLearningImplementations
8ab28a79ac891a91324fbba22198834590f14ef7
d95a7422af6f7872ce9268e3f7bc284fbeeb3859
refs/heads/master
2021-03-22T03:24:46.119946
2018-01-24T15:22:08
2018-01-24T15:22:08
92,681,858
3
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
from math import * import sklearn import numpy as np import datetime def tf_idf( doc, term, list_of_docs): num_docs_containing_term = 0.0 for document in list_of_docs: if term in document: num_docs_containing_term += 1 if term in doc : freq_term_in_doc = doc[term] else : freq_term_in_doc = 0 words_in_...
[ "yashagrwl.iitkgp@gmail.com" ]
yashagrwl.iitkgp@gmail.com
fe26112695faaf8104bf70c2b794a31141f7a516
65381b8dffa1ade89746f6fc3a4979a7eb548d34
/purchase_portal/controllers/portal.py
37789ade0983d57e5d6b846a6a0fe04daa62ae59
[]
no_license
ff4f/AISJ-13
a4240d1952c3854dd5b21a62cf7dbfdebb16fde5
a2f2183e0f753100842877efecc844bdc72f8bd4
refs/heads/master
2023-05-08T22:54:43.972954
2021-06-03T14:44:10
2021-06-03T14:48:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,953
py
# -*- coding: utf-8 -*- from collections import OrderedDict from datetime import datetime, time from dateutil import parser from pytz import timezone, UTC from odoo import fields, http, _, SUPERUSER_ID from odoo.exceptions import AccessError, MissingError from odoo.http import request from odoo.addons.portal.controll...
[ "LuisAngelMalaveMora@gmail.com" ]
LuisAngelMalaveMora@gmail.com
335ab796a253ae907561d2df40671b805dc18b2a
5941c9b7047054d7be3e55f460a3d5b35b987498
/GeeksForGeeks/Sorting/Quick Sort.py
318bcf08b91455a3ce300c2e53bd1a26034bd67d
[]
no_license
mohtashimkamran/DSA-GeeksForGeeks-Codechef-Codeforces-solutions
19d3a0d716160750bac70fc979a982c4fde085bd
364e7e68e32ebdb2429754883465696e06b3a436
refs/heads/main
2023-05-08T16:44:42.309261
2021-05-31T17:46:40
2021-05-31T17:46:40
307,804,119
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# Quick Sort def lomato(a,l,h): p=h i=l-1 for j in range(l,h): if(a[j]<a[p]): i+=1 a[i],a[j]=a[j],a[i] a[i+1],a[h]=a[h],a[i+1] return i+1 def quicksort(a,l,h): if(l<h): p=lomato(a,l,h) quicksort(a,l,p-1) quicksort(a,p+1,h) ...
[ "noreply@github.com" ]
noreply@github.com
678b9e9f0f6989327d360b2083e0bf4434e0023d
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/W_w_Mgt_to_Cx_Cy_focus_Z_ok/Sob_k25_s001_EroM/pyr_Tcrop256_pad20_jit15/pyr_6s/L5/step10_a.py
fab778e5987a75c6e7f5c3d29a6df640d3dca9e0
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
256,859
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
8ea6243ca53dcdd617b9bc0fd4fc19042f716cf2
1e263d605d4eaf0fd20f90dd2aa4174574e3ebce
/components/ally-core-http/ally/core/http/impl/processor/parameter.py
daa374e7e51b69baa90131966fe02b3e46269120
[]
no_license
galiminus/my_liveblog
698f67174753ff30f8c9590935d6562a79ad2cbf
550aa1d0a58fc30aa9faccbfd24c79a0ceb83352
refs/heads/master
2021-05-26T20:03:13.506295
2013-04-23T09:57:53
2013-04-23T09:57:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,856
py
''' Created on May 25, 2012 @package: ally core http @copyright: 2011 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the parameters handler. ''' from ally.api.criteria import AsOrdered from ally.api.operator.container import Criteria, Query from ally.api.operat...
[ "etienne@spillemaeker.com" ]
etienne@spillemaeker.com
3d9827f5b99071170e3b1d8dd18ba39464607cc7
a0cc9f625c20811c06dc41e69be4aabc2ddaaabc
/Visualization/6weierstrassFunction.py
9ee11a24b09851d921317013ee352880787a96a2
[]
no_license
MurtadaMalik/Differential-Evolution-vs-Particle-Swarm-Optimization
342e83323bf029dac03280d7d1495c3a5c33b6b1
3c8280f84ca8be7624472a2fc329f909d8e33740
refs/heads/master
2021-09-18T22:34:20.986409
2018-03-11T20:16:31
2018-03-11T20:16:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,459
py
from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from csv import reader import matplotlib.pyplot as plt import numpy as np import csv from random import randint import time from random import random, seed from mpl_toolkits.mplot3d import * from matplotlib import cm def f6(x): sum1, sum2, sum3 = 0....
[ "ansh13027@gmail.com" ]
ansh13027@gmail.com
811a8e421742a551d4cf230d26549355f72332c2
04f20b04cd51371d24aca0fa2dfc3d085a04007d
/dataframe/convert_dataframe_to_pandas.py
dd94864ba4be59c668f4bb329a5e3813d2e5f1f9
[]
no_license
nileshvarshney/learn_pyspark
ec7de0fa007ef43455d20695d069905376b228ed
ae4f5ba031223cf0dca0765435dae6b11a3b75ef
refs/heads/main
2023-03-15T09:52:17.107382
2021-01-12T20:21:24
2021-01-12T20:21:24
329,101,214
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
import pyspark from pyspark.sql import SparkSession from pyspark.sql.types import StructType, StructField, StringType, IntegerType spark = SparkSession.builder.appName("learnSpark").getOrCreate() data = [("James","","Smith","36636","M",3000), ("Michael","Rose","","40288","M",4000), ("Robert","","Williams","42...
[ "nileshvarshney@nileshs-mbp.lan" ]
nileshvarshney@nileshs-mbp.lan
f0b9fef98d5c5152df4e6e24da30b139ae97a8af
ec3b1dceb471711c9d0fc94256515b29131771da
/Python/NameClearValidations/NameSurnameValidations/NameSurnameValidations/RepeatedChars.py
b66154182282bf76e2da3d75f3f564ee617429cd
[]
no_license
bertugmete/samples
57a5ddd77054eab9aa8f14be9e886ad9b0b1cc77
ce5dff871d83c21c74dba7c22f68d5f34b10d7f8
refs/heads/master
2022-09-12T01:03:14.776024
2022-08-23T13:26:42
2022-08-23T13:26:42
85,175,146
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
foo = "SSYYNNOOPPSSIISS" import itertools print(''.join(ch for ch, _ in itertools.groupby(foo)))
[ "bertumete95@gmail.com" ]
bertumete95@gmail.com
a73d4baa19672562404c9f40d169333b2ced9f89
727ea97da29a58aa983e2fc966c40deebe48f2a5
/latex_reports/latex_figure.py
4e5e0a72ffb65ef2251c22d63c91df33a8270065
[]
no_license
jkedmiston/latex-ds
7492f161d68d85ea70341e1ecb69fc75e8826e2b
f7e422a56a0e25cb3de1e731bab691ec72faae71
refs/heads/master
2023-03-19T14:09:57.948463
2021-03-07T23:53:38
2021-03-07T23:53:38
287,349,469
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
from latex_reports.latex_obj_base import LatexObjBase from latex_reports.latex_utilities import make_latex_safe class LatexFigure(LatexObjBase): def __init__(self, fname, width=1, caption=None, label=None): LatexObjBase.__init__(self) self.fname = fname self.width = 1 self.caption =...
[ "johnkedmiston@gmail.com" ]
johnkedmiston@gmail.com
ca7f8c687c2ad6eac7c008eb15dbfde0026b8190
3056736f013b25d1e70adb355082c578e5091314
/ml_quality/datasets/shit/practice.py
2f86668552f950b2489f0e318e85746a42d243a5
[]
no_license
flerchy/codestyle-core
dcad1385b76678e4473f0804d2ecfaa03866d124
a009bcd2f17dadd440ea5ff24bd3167e38948bff
refs/heads/master
2021-01-20T03:21:16.694322
2017-06-05T05:52:35
2017-06-05T05:52:35
89,524,181
0
1
null
null
null
null
UTF-8
Python
false
false
10,684
py
import re def count_words(passage): words = re.findall(r'[^ \n]+', passage) return len(words) passage ='''The number of orderings of the 52 cards in a deck of cards is so great that if every one of the almost 7 billion people alive today dealt one ordering of the cards per second, it would take 2.5 * 10**40 t...
[ "flerchy@gmail.com" ]
flerchy@gmail.com
4ee5538c1d96b89789f7074b655659ea2fb72114
bef7c41e7b51417f9cc5c3d30a7f94b59286e2b7
/Algorithms/perceptron.py
f727c7bee8b28f15487193977601aafc100476bb
[]
no_license
algometrix/LeetCode
40dd6ea93c370cabe57ba672d820f261e0595cae
3dc885ac2a93781c36fbe2735061da29194caba4
refs/heads/master
2021-07-01T19:45:08.018784
2021-06-03T05:38:13
2021-06-03T05:38:13
235,496,179
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
def perceptron(X, W): pass if __name__ == "__main__": pass
[ "ashishnagar31@gmail.com" ]
ashishnagar31@gmail.com
8969818c4fa32f5e6b743dd73f23ffa1821a0536
1debf85e0f8008a6ecfdc7629bf0111a81ae6844
/customer/models.py
75e5c8dc3718d8a2c68dd1e4212fb0791f12669f
[]
no_license
shalini2501/django-food-delivery-app
b95baf1b6aa4d99eaa9bd0e2b77af5ba700d97a8
7cb34b9c439aec297d16f4edf748da0c29ebf4c8
refs/heads/main
2023-04-24T08:47:51.632993
2021-05-04T15:13:23
2021-05-04T15:13:23
364,257,533
0
0
null
null
null
null
UTF-8
Python
false
false
1,101
py
from django.db import models class MenuItem(models.Model): name = models.CharField(max_length=100) description = models.TextField() image = models.ImageField(upload_to='menu_images/') price = models.DecimalField(max_digits=5, decimal_places=2) category = models.ManyToManyField('category', related_name='item') d...
[ "shalini@codewithshalini.com" ]
shalini@codewithshalini.com
60b80f4d5ce107ae58b4dd24df77289078e90ce9
82f67ea9fbf21d21f26b611cea5ad6047617e1ab
/cvs-projects/build_scripts/utils/logDB.py
421fbdf39e5ac167b958fc4217ade79d842bee98
[]
no_license
metalsky/mvst
741a0e8ddc1c43ca28c7b26dc5720e965a70b764
e1deb593f47c28e0142e66d11ca47fa4af247ed8
refs/heads/master
2020-03-19T09:42:59.923445
2018-03-02T00:38:58
2018-03-02T00:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,378
py
#! /usr/bin/env python import server import time def _show(mytype,myvalue): if myvalue == None: return "NULL" elif not (type(myvalue) == mytype): raise Exception,"logDB error, wrong value type in _show(%s,%s)" % (mytype,myvalue) elif mytype == long: return "%d" % myvalue elif mytype == str: return "'%s'" ...
[ "njka.github@gmail.com" ]
njka.github@gmail.com
d18815521b80880217b68858c49b4e99994acaf9
648d5e885cecbcc608d0bbd25df07453b53ec1a9
/IntGenerator/intGenerator.py
150998cb88b24b5cbad9960600b11fe4d7fadcac
[]
no_license
MichelfrancisBustillos/PythonPrograms
766b568781d2917392d3cdc2dc419a09c645d25f
bfb8735fd3c9c2e8c133782f60730ec931c862a2
refs/heads/master
2023-02-12T00:35:27.362508
2023-02-01T01:54:08
2023-02-01T01:54:08
62,933,289
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
__author__ = 'Michelfrancis Bustillos' import random def main(): ints = 500 with open('myInts.txt', 'w') as fwrite: for x in range(ints): fwrite.write(str(random.randint(1, 100)) + "\n") main()
[ "Michelfrancis Bustillos" ]
Michelfrancis Bustillos
8aaf157b2f18da827cb7335441ed703f76c72e6d
686890c48054854936717724aeb54991adf87827
/server.py
ea9450fe395b4c3c450b622391e09998ad6b4893
[]
no_license
sivutzaza/WIChat
b93b1e2aa47b07b56e1481f011755fcf2ca8fdbf
84dd50688310d4c31e68c4301ab5aa2b4243c530
refs/heads/master
2021-01-19T00:43:37.757223
2017-04-04T11:16:38
2017-04-04T11:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
import socket import time host = "192.168.43.128" port = 5000 clients = [] s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind((host, port)) s.setblocking(0) quitting = False print("Server Started.") while not quitting: try: data, addr = s.recvfrom(1024) if "Quit" in str(data): ...
[ "lnw00445@gmail.com" ]
lnw00445@gmail.com
7b476d3b3b5bfa9b8ff352c46cc64e10262ed17f
42c9fc81ffbdb22bfde3976578337a1fe5f17c2a
/visualization/rviz_tools_py/example/origin_demo.py
eddd4aa4b01641f26df3113dbb5a2cc18f81b4ae
[ "MIT" ]
permissive
LiuFG/UpdatingHDmapByMonoCamera
988524461287bfa8b663cba756a787e4440268ef
dc8f06795a12669da1a8096e38851f78b2e26a62
refs/heads/master
2022-06-01T08:33:53.034821
2020-04-26T05:32:38
2020-04-26T05:32:38
258,131,871
0
0
MIT
2020-04-26T05:32:43
2020-04-23T07:49:14
Python
UTF-8
Python
false
false
13,425
py
#!/usr/bin/env python # Copyright (c) 2015, Carnegie Mellon University # All rights reserved. # Authors: David Butterworth <dbworth@cmu.edu> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of sour...
[ "2022087641@qq.com" ]
2022087641@qq.com
cd7bfb98c8dc1ae659eacc15ec27482a920ac63b
88dbbb7ea7c5fde6e30025f9951d89069884e265
/class1/targil1.4.py
3bc315687ea5cbc92a78b1658bdff03a57c551c7
[]
no_license
yustshachar/pythonProject1
8b85ab87f845e43e2731633652637bd3fa509aee
0017284c895dd87b6816b3aec9a06da8a88c474b
refs/heads/master
2023-04-10T05:02:38.621865
2021-04-26T16:12:47
2021-04-26T16:12:47
360,144,677
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
num1=int(input("enter number1: ")) num2=int(input("enter number2: ")) print(num1+num2,num1*num2,num1%num2)
[ "yustshachar@gmail.com" ]
yustshachar@gmail.com
e50fff82db49c4d3e46c34330e69f157e49ccee0
b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf
/000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st04TASK04_20210206_conditional.py
f09ca9abe36d1c94d09c812d67fc9a1879b525cf
[ "Apache-2.0" ]
permissive
SafonovMikhail/python_000577
5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4
f2dccac82a37df430c4eb7425b5d084d83520409
refs/heads/master
2022-12-08T10:53:57.202746
2022-12-07T09:09:51
2022-12-07T09:09:51
204,713,341
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
''' Вы уже умеете приветствовать человека по имени. Давайте добавим немного персонификации. Напишите программу, которая считывает пол ученика и приветствует его в соответствующем роде. Формат входных данных Пол ученика - "М" или "Ж" Формат выходных данных Приветствие в заданном роде Sample Input 1: М Sample Outpu...
[ "ms33@inbox.ru" ]
ms33@inbox.ru
0818baf769d8d948dd2bfb3eefca8dbaf7ca45fb
52bdad813d9bf9b5e8436b87bcb9b86ecf14370a
/tests/test_graph_group.py
bffb15475e75e7e15d413000780e3a22f9288a61
[ "MIT" ]
permissive
lsgd/Office365-REST-Python-Client
8e1abfd78824caed04e0e5bdf7cef66f6331ac6a
403a3e884e042e1d64012329713b76db133e9d5f
refs/heads/master
2021-01-01T13:56:38.242662
2020-02-09T13:42:31
2020-02-09T13:42:31
239,308,985
0
0
null
2020-02-09T13:26:43
2020-02-09T13:26:42
null
UTF-8
Python
false
false
1,257
py
import unittest import uuid from office365.directory.groupCreationProperties import GroupCreationProperties from office365.runtime.client_request_exception import ClientRequestException from tests.graph_case import GraphTestCase class TestGraphGroup(GraphTestCase): """Tests for Azure Active Directory (Azure AD) ...
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
1b2f2ed53607c82d0c80565b0c4722fafb6079fa
20746d20d6f3852ddef735de36da50e558ef5dd9
/board.py
573c412c558e777a8bf9b9a416ab968fbc8ef68b
[]
no_license
Hagmar/autoplace
697e2d4344c36f82d0111c8aa7ca6ab59f44be85
ff9f0e57620841e6b96914ce3679fc773ea6acfa
refs/heads/master
2021-01-18T20:03:01.583815
2017-04-03T16:13:13
2017-04-03T16:13:13
86,929,876
3
2
null
2017-04-02T18:22:50
2017-04-01T17:22:04
Python
UTF-8
Python
false
false
1,550
py
import numpy as np import requests as rq URL_BOARD = 'https://www.reddit.com/api/place/board-bitmap' class Board: _colormap = { 0 : (255, 255, 255), 1 : (228, 228, 228), 2 : (136, 136, 136), 3 : (34, 34, 34), 4 : (255, 167, 209), 5 : (229, 0, 0), 6 : (229, ...
[ "hagmar.magnus@gmail.com" ]
hagmar.magnus@gmail.com
6f34755301941982cda1c8a2f816a6488ca3b94e
76d08b580d16008cfdec11103d3a2ef3c5444185
/python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目集合/阿里1688_淘宝_天猫_京东_折800_卷皮_拼多多_蜜芽_蘑菇街_楚楚街_唯品会_聚美优品/my_flask_server/pintuan_script/jumeiyoupin_pintuan.py
66d163bed18e087018e29b0ff191e3954e4dedf9
[]
no_license
lrygdh/python
c9794f75610a76a234105f11e93587336c4594c0
a1bc3c384459f8a40c420c3d1a7e4233970c459c
refs/heads/master
2020-03-25T07:53:30.141809
2018-08-04T11:02:13
2018-08-04T11:02:13
143,586,696
1
0
null
2018-08-05T05:41:45
2018-08-05T05:41:45
null
UTF-8
Python
false
false
11,355
py
# coding:utf-8 ''' @author = super_fazai @File : jumeiyoupin_pintuan.py @Time : 2018/3/25 11:32 @connect : superonesfazai@gmail.com ''' import sys sys.path.append('..') import json import re import time from pprint import pprint import gc from time import sleep from logging import INFO, ERROR import asyncio, a...
[ "superonesfazai@gmail.com" ]
superonesfazai@gmail.com
37b9ea83dc0b2cb3ef93c1ad2526a05d7262ba32
eb40dce4039d528b9cd06dbeda75da09d09d7fc5
/need_install/Django-1.8.17/django/__init__.py
cb9997a426a00b1d73b443fd2d3dc00e55446c10
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MulticsYin/MulticsSH
39b62189446787c7f0f037b1640c9c780bd1dddd
5837a0bff0e7da0e8535e4e0b31ef6baf24274b4
refs/heads/master
2021-08-28T07:53:51.759679
2017-12-11T15:31:03
2017-12-11T15:31:03
82,428,902
4
2
null
null
null
null
UTF-8
Python
false
false
520
py
from django.utils.version import get_version VERSION = (1, 8, 17, 'final', 0) __version__ = get_version(VERSION) def setup(): """ Configure the settings (this happens as a side effect of accessing the first setting), configure logging and populate the app registry. """ from django.apps import ap...
[ "multics_luo@163.com" ]
multics_luo@163.com
e05778a23d7c92f813033d1db6ef56b2b95f191e
600c05f21ff3f3f784c3f09f872cf21f4aad7f4c
/Week0/Week0-1/prime_number_of_divisitors.py
51d58540a18e4847f121fb1c9888474dc9f589de
[]
no_license
skdls-/Python
5d732fa33b82db0f2452dc064c8477f55aae7728
bfcc398a8d1f9249aa55acd8691dcd163c3f918e
refs/heads/master
2021-01-13T01:50:11.214387
2014-12-28T15:18:41
2014-12-28T15:18:41
25,029,427
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
from week0_Zad4_is_Prime import is_prime def prime_number_of_divisitors(n): count = 0 for i in range(1,n+1): if n % i == 0: count +=1 return is_prime(count) print (prime_number_of_divisitors(7))
[ "skdls@abv.bg" ]
skdls@abv.bg
01f3fa0571244001a5c11989abbb644546a11d53
1dedb1e869c2bab5e29bef7524c34c9529d5690e
/Resource/catIds.py
4bf13a7b13225c8cd08d6d05fa22c7667006d13c
[]
no_license
xingweiyong/vps_spider_client
aea960c0fdd8c9771be35e02cd236ff13ec010e9
83bba919e93d356540219b86c987a695ef726c96
refs/heads/master
2021-08-28T10:50:54.752930
2017-12-12T01:45:27
2017-12-12T01:45:27
113,822,823
1
0
null
null
null
null
UTF-8
Python
false
false
3,418
py
#coding:utf-8 cat_ids = [ (50024400,0,100000), (50918004,0,100000), (50916002,0,100000), (55808016,0,100000), (56212008,0,100000), (50934001,0,100000), (50930001,0,100000), (50924005,0,100000), (50928001,0,100000), (56532001,0,100000), (56356002,0,100000), (56534001,0,100000), (50936001,0,100000), (50920004,0,100000),...
[ "1531694185@qq.com" ]
1531694185@qq.com
4517ff839afc8246a356b9592e6877ad0233549b
337a0d6a81051b45e62ac493429983e61a0cd1ac
/test/testComparator.py
d323d6c5c6f5f1d56c7ea7d3e81662faaf115586
[]
no_license
Mzhhh/CythonLeveldb
7f0360368bb6bd285c63ed5376ff2b9a802087e0
ed75e5f2e182051a4f29e6065af52ebbd1febe70
refs/heads/main
2023-03-08T07:25:31.956262
2021-02-27T04:40:24
2021-02-27T04:40:24
342,164,547
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
import sys, os, shutil sys.path.append(os.path.join(os.path.dirname(__file__), '..',)) import cythondb as db DB_PATH = '~/Desktop/testdb' def reverse_comparator(a, b): if a == b: return 0 elif a > b: return -1 else: return 1 def main(): option = db.Options(compare_function=r...
[ "zihanmao@outlook.com" ]
zihanmao@outlook.com
688470d41918e3865f9334327d904a306d8cd50c
400e10dfd9e21ae5092f5184753faa91a9df9277
/Programers_backup/LEVEL 2/땅따먹기.py
9b6caaa3ab6b5d98d1a7de757610cbd8748dcaf9
[]
no_license
MyaGya/Python_Practice
d4aff327a76010603f038bcf4491a14ea51de304
0391d1aa6d530f53715c968e5ea6a02cf745fde5
refs/heads/master
2023-06-14T07:48:19.998573
2021-07-12T05:50:52
2021-07-12T05:50:52
280,452,168
0
0
null
2021-06-23T13:37:56
2020-07-17T14:56:24
Python
UTF-8
Python
false
false
602
py
''' def solution(land): # init pick = [[0 for _ in range(4)] for _ in range(len(land))] pick[0] = land[0] for i in range(1,len(land)): for j in range(4): pick[i][j] = max([pick[i-1][k] for k in range(4) if k != j]) + land[i][j] pick[0][0] = 0 print(id(pick[0])) print(id(l...
[ "38939015+MyaGya@users.noreply.github.com" ]
38939015+MyaGya@users.noreply.github.com
e9eabc8a32d3a22e8dc660826cd005fb3dd755a5
8fd48b300832bf586fd2c23a5d57ee9bed535192
/sql_parser/lexer.py
4ca7acb47fac1c4b004bddfb96184e3afd5668fc
[ "Apache-2.0" ]
permissive
google/sample-sql-translator
243bdd2cdcdf7cd9c70b5ff2164d264864dcd050
35901fb269105b977ada8e0a6c159869ca58a3ca
refs/heads/master
2023-07-05T18:44:51.896972
2022-04-05T11:39:12
2022-04-05T11:39:12
295,134,397
44
17
Apache-2.0
2022-04-20T07:05:17
2020-09-13T11:11:46
Python
UTF-8
Python
false
false
11,016
py
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ "scannell@google.com" ]
scannell@google.com
0140f30b8fe5d4f7d45eef45da0f4de62b13ecaa
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/7RrPMoWifqRHPPqj2_6.py
52a954c8cc7463202c8c110383489e5478d858be
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,666
py
""" Traditional safes use a three-wheel locking mechanism, with the safe combination entered using a dial on the door of the safe. The dial is marked with clockwise increments between 0 and 99. The three-number combination is entered by first dialling to the right (clockwise), then to the left (anti- clockwise), and...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
dcf3061a31a5b534eedc9f30559084e0b7a28dbf
305ea0d9c6aaa920017cec5d39beb0d2553e6380
/problem_27.py
6f02ea966042e76d49ffc61d84eeaab0baef38ea
[]
no_license
eraserpeel/Project-Euler
8ec2b586c808cae0596c57b037ff48130c2ab677
47d86469319adf9532a32f113370e7ec78acd9cf
refs/heads/master
2021-01-10T18:32:55.938409
2015-08-03T03:55:07
2015-08-03T03:55:07
40,104,056
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
import sieve_of_erastothenes as se def calc_primes(a, b, n): return 1 def main(): sieve = se.SieveOfEratothense(1000) sieve = sieve.getCleanSieve() sieve_dict = {} for i in sieve: sieve_dict[i] = True max_count = 0 max_a = 0 max_b = 0 for a in range(-1000, 1000): if a % 100 == 0: print a for b ...
[ "slogmore42@gmail.com" ]
slogmore42@gmail.com
ab0e91074db964ed78d716944e2a37e96aa819a7
8674fb2a8603951135cbfcc624f3ec1374dbea66
/flask-04-handling-forms-POST-GET-Methods/Flask_GET_POST_Methods_2/app.py
3ec9ea8a1bdf60bd8addaa0f237ad689d7931bf8
[]
no_license
ElifPoyraz/my-repository
3f283aa534918539b615b9f72a4fdde0ab9da3b3
088c34f681dbf0c2134fe682265923132a341651
refs/heads/master
2023-09-02T14:07:23.154546
2021-11-17T23:57:49
2021-11-17T23:57:49
411,859,438
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
# Create an object named app from flask import Flask, render_template, request app = Flask(__name__) # create a function named "lcm" which calculates a least common multiple values of two numbers. def lcm(num1, num2): common_multiplication = [] for i in range(max(num1,num2), num1*num2+1): if i%num1==...
[ "elif.pehlivan@outlook.com" ]
elif.pehlivan@outlook.com
138cd4d7a0466e2e968191704239ebbd70fe4987
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-9546.py
28e7816ada82f82a7f2f50fe38323cbbc05079be
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,766
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
fa662c5a40d26cf8759d88c85b01ae45cb1f0b76
c5dac05d262bee187d5a6dc3f48cb54741b54f99
/Mundo 1/ex018.py
248dd414d82decb784e3ac8a4b30a02c5ed903e5
[ "MIT" ]
permissive
Alef-Martins/Exercicios_python_mundo-1
3bbf079995317a6c70286db7d6dc5d6b39d00925
df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c
refs/heads/main
2023-08-18T14:00:48.287331
2021-10-09T05:04:43
2021-10-09T05:04:43
415,205,945
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
#Leia um êngulo qualquer e mostrwe na tel o seno, coseno e tangente do mesmo. from math import sin, cos, tan, radians ang = int(input('Informe um ângulo : ')) print(f'O seno de {ang} é: {sin(radians(ang)):.2f}') print(f'O coseno de {ang} é: {cos(radians(ang)):.2f}') print(f'A tangente de {ang} é: {tan(radians(ang)...
[ "noreply@github.com" ]
noreply@github.com
5ab1afe74cbd28cae16b796e79b2a91dbf7270d0
073a462b25e5c64add3cea33ecc3f75d99a80185
/py13042017/petla_01.py
3cce0818df7172278e1ab0058b235732d24d5336
[]
no_license
GR0SIK/Python_kurs
6be74a832ea06484208731743334a58d28eb1258
a8da6e948449e25bebcca4342cefe3fee6fd66b0
refs/heads/master
2021-01-20T02:08:14.030264
2017-05-30T18:13:04
2017-05-30T18:13:04
89,378,167
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
# pętla while # while True: # print(100) # stan = True # # Pamiętamy o to aby kiedyś warunek był nie spełniony inaczej będzie wykonywać # # w nieskończoność # # while stan: # print(100) # stan = False liczba = 1 while liczba <= 100: print(liczba) # liczba = liczba + 1 # znak += i wartość którą bę...
[ "grosikboss@gmail.com" ]
grosikboss@gmail.com
fce82bd62dafbfead088509f8f6ce5749c8abc03
4bd682fedc8df9536a56c4c2b0b8d6a792ddfd43
/env_ers/bin/pip2.7
84d7d3cc23ce6c625fe7c0597550b7150f8bc94a
[]
no_license
grameh/ers-utils
ebe6ccf89307390e87be1158805218540f583e17
ba7b3053e80f5181dd9bcbb58716d254781b1547
refs/heads/master
2021-01-01T05:30:18.139173
2015-09-22T15:42:03
2015-09-22T15:42:03
37,368,809
0
0
null
null
null
null
UTF-8
Python
false
false
216
7
#!/vagrant/env_ers/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "gramada.mihai@gmail.com" ]
gramada.mihai@gmail.com
1fd54e30d7f5c6d6e07987d53e879531567e7a1f
35867251178183837d2ebad1a8a0fdb33bcf2f01
/resources/extract-tagged.py
6b09f04f8b2afd586629c0d81413885dae6ac84e
[]
no_license
waitforcode/docs
635f9f5295339e81a2e93ab1c7bf0de0a490a40d
8c7baabdaef137284e4cfa8e6ded92c016d49236
refs/heads/master
2021-01-20T01:28:25.351596
2017-04-24T19:05:11
2017-04-24T19:05:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
#!/usr/bin/env python # Extract a tagged portion of a file. def extract_tagged(target, tag): import re start = re.compile('^(\s+).+tag::' + tag) end = re.compile('end::' + tag) foundTag = False result = '' with open(target, 'r') as f: for line in f: if end.search(line): ...
[ "noreply@github.com" ]
noreply@github.com
3ecf6a1a9654381210ad1269dd4c356c791028b7
9fd0e9df52bff792b5b96f6dcd1fa03cc467c18d
/source/pages/admin.py
ff1ef520d4a6068150cb665ad217e8e17d4de802
[]
no_license
mooja/ssip209
87d4385c7e5038bb0ecfb2a4a3faee7aa2a9cea1
bfba4cddecff44057bd6d9da171b1ebfdb5148f3
refs/heads/master
2020-04-30T22:00:58.032859
2015-02-20T14:55:48
2015-02-20T14:55:48
24,278,046
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from django_summernote.admin import SummernoteModelAdmin from django.contrib import admin from .models import Page class PageAdmin(SummernoteModelAdmin): list_display = ['title'] admin.site.register(Page, PageAdmin)
[ "max.atreides@gmail.com" ]
max.atreides@gmail.com
442256c2ccfb48aaa989e91c88de4e72cf578ff4
fb631e7baf2569c91c294b9c4b09bac185fb5e4c
/qdTrees/dbConnection/connection.py
a1f5e82ab1b08300a5a62c42bc5eb97d040f500e
[]
no_license
LiuJiazhen1999/Qd-Tree
392f29660b6e666c65e5adb9fc260c61632c1fb9
575ab8ceec0673a88063dd9d4a46fe5750b399e9
refs/heads/main
2023-07-31T22:26:43.197931
2021-09-20T03:02:38
2021-09-20T03:02:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
from sqlalchemy import create_engine from qdTrees.config.appconfig import AppConfig from qdTrees.recordprocessing.sample_records import sample # used to connect to the db and save the dataframes class DatabaseSetupSqlAlchemy: def __init__(self, config): db_config = config.get_config("db") self.t...
[ "maria.georgaki@channelvas.com" ]
maria.georgaki@channelvas.com
24416654f7d2f71301317aec5ab49a845c8e2e7c
455dfa6e90c8df568a68d994e3916c4b838602af
/soviet_art_bot/download_images.py
13474f03a3115cb9055547e6548505749711cde9
[]
no_license
hlgrprng/soviet-art-bot
26d2c246491ac5b8e9db0a8a71af3305dd9edc61
33ddc70db99f0cf9de2206ed68af42061e0b1ac7
refs/heads/master
2021-09-14T07:30:23.828002
2018-05-09T19:44:09
2018-05-09T19:44:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,989
py
""" This code queries WikiArt and returns all paintings and metadata in the Socialist Realism category """ import json import shutil import sys from glob import glob import boto3 import requests import PIL from PIL import Image import settings # intialize connection to S3 resources s3 = boto3.resource('s3') s3_clie...
[ "vicki.boykis@gmail.com" ]
vicki.boykis@gmail.com