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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a8b2cdde3908ffa52271f85cdfd0d8883b5c8db | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /young_government/want_thing.py | fe79d6bc7b16f04663bb72a76609bd5cc5bbb80f | [] | 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 | 206 | py |
#! /usr/bin/env python
def group(str_arg):
small_work(str_arg)
print('old_work_and_young_company')
def small_work(str_arg):
print(str_arg)
if __name__ == '__main__':
group('have_thing')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
8d2b484cff3bd51b1611b037763e2610856b2f72 | ab074b341c90e4876b0830d6be450bdf6f1a8a41 | /quiz12.py | 6b503450cf4697e90dbe16c2e80b6843786313f7 | [] | no_license | eogus9988/PythonHW | ccf68f24b082e32b63d66770ab755344ecdb6019 | 97175e764324e35c0fdd5ecf1f90276f38b03d5b | refs/heads/master | 2023-02-12T16:50:44.123741 | 2021-01-14T14:28:20 | 2021-01-14T14:28:20 | 328,023,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | a=input().split()
b=map(float,input().split())
c=dict(zip(a,b))
print(c) | [
"eogus9988@cau.ac.kr"
] | eogus9988@cau.ac.kr |
489e2e09803bee84b079966a8659daea765790f2 | b47526ca8653fe641fee60a6e9712ccb4c48cfea | /utils.py | 3de66b8efbb0f3519d460d7d15a213f97611aabb | [] | no_license | stevenabreu7/cnn_speaker_verification | 935b7f034806660b614441e00f96beda05d18516 | f8e9098ce6cbfdec392c7d53d1f9ac9da86aecfc | refs/heads/master | 2020-03-31T06:43:04.561895 | 2018-10-17T18:22:00 | 2018-10-17T18:22:00 | 151,992,464 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | from __future__ import print_function
import os
import numpy as np
from tqdm import tqdm
from random import randrange
from scipy.optimize import brentq
from scipy.interpolate import interp1d
from sklearn.metrics import roc_curve
def train_load(path, parts):
"""
Example Usage: train_load("/path/to/training/fi... | [
"stevenabreu7@gmail.com"
] | stevenabreu7@gmail.com |
956ef7f9bbda19c259de876c23f18bfa189bc407 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/large-scale-multiobj2/core-arch4-guard2-beta0-hebbe/pareto0.py | 0000998404917886a9c21b69d9c51c32cf41c0cc | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch4_decomposition_new import Arch4_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
1ec7b25815bcd8cd62a64856dec2078ced58961d | a1f57d10c5bd5d5bc5da9b8e7ec9f68e92659df1 | /migrations/versions/a0bba18baade_followers.py | 3c40a9e9526b82ed0e6bf8762c2a7a2ea91533c9 | [
"MIT"
] | permissive | thanhhxse/microblog | 6d2631ed871c263860cc32d27eb13ce216a22e97 | 218ddb203e17d9f5b155df9d552dab31602b0582 | refs/heads/master | 2020-08-09T00:40:45.919938 | 2019-10-09T15:47:34 | 2019-10-09T15:47:34 | 213,896,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | """followers
Revision ID: a0bba18baade
Revises: 8b96c5bf8965
Create Date: 2019-09-29 22:49:39.896819
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a0bba18baade'
down_revision = '8b96c5bf8965'
branch_labels = None
depends_on = None
def upgrade():
# ### ... | [
"thanhhxse99@gmail.com"
] | thanhhxse99@gmail.com |
560d16264808bad83e295834bef2508e4a03d704 | 2420afd7cc1490ca259f11d64b596c4b73077706 | /land/wsgi.py | 15d776305922f92f86e93771cd530bcd263a9152 | [] | no_license | KevinSantizo/examenfinal | 98b676f5054abfd13fb001c5e0073efc6555ded0 | a54e5621ea97572ef001cb8e7507dea8e3883ce1 | refs/heads/master | 2020-07-15T00:54:54.118227 | 2019-08-30T19:08:08 | 2019-08-30T19:08:08 | 205,441,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for land project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"kevinsantizoo660@gmail.com"
] | kevinsantizoo660@gmail.com |
2b8943730be957aff312a086aeab211fe2ad6c17 | e14ccaaa9ddebe0236aba7f99beacd61828c2eb1 | /kudakudaru.py | 788bb79c8d3564abc2a83cb266e9f2f77719027a | [] | no_license | hakimencem01/study | a3d19b3d3eec43178d68f40a20797f8d696eb27d | 1b4de444dfd2541cafca58ae048327d3095823ee | refs/heads/master | 2023-04-03T11:18:09.439877 | 2021-04-01T12:41:07 | 2021-04-01T12:41:07 | 351,306,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | print("Buy House Now");
print("Price : RM 300000");
houseprice = 300000;
aftercreditprice = 0;
percent = "";
creditstate = input("Are you have good credit ? [Y/N] ");
if(creditstate.lower()=="y"):
aftercreditprice = houseprice + (houseprice*0.1);
percent = "10%";
if(creditstate.lower()=="n"):
aftercreditpr... | [
"hakimencem01@gmail.com"
] | hakimencem01@gmail.com |
f03fbc1defed79eac973a17df65ba7230e1b456c | 4539e248750a971138dd5e80806effe8a8fd2a0d | /scratch/iterate.py | ca9ba2fc55bd29ea245173d7638238dc24789c61 | [] | no_license | glennvorhes/ArcMapHelpers | 998a7c034a4035e02f34330d987e2a6a1a627d14 | d9eb2efb3574e5b11ab47d682a078a4a8ac07cb0 | refs/heads/master | 2021-09-08T09:26:46.085960 | 2021-09-08T04:45:35 | 2021-09-08T04:45:35 | 134,441,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import arcpy
import os
arcpy.env.overwriteOutput = True
input_file = arcpy.GetParameterAsText(0)
output_file = arcpy.GetParameterAsText(1)
arcpy.ImportToolbox(r'C:\Users\glenn\PycharmProjects\ArcMapHelpers\ArcMapHelpers.tbx')
input_directory = r'C:\Users\glenn\OneDrive\Desktop'
output_directory = r"C:\temp"
for ... | [
"glennvorhes@statuscode200.com"
] | glennvorhes@statuscode200.com |
ea614927846c9f7c1ef97ae26d825d205f797f76 | 2b814bfe4e4749f2ea49faa8aabed6e827214e5c | /test/test_data_preparation.py | 86c508ad89b92a85bd8f25985fd9ea22fc82f5ee | [] | no_license | MrTrustworthy/pylow | c93a4255eede9e16c7e8b865aa881c053cd14042 | 288203db96ff2b034bbcca179827277d7b7fb4d7 | refs/heads/master | 2021-05-07T20:52:53.558143 | 2017-08-06T12:13:10 | 2017-08-06T12:13:10 | 108,970,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | import pytest
from datapylot.data import VizConfig, Datasource
from datapylot.data.attributes import Dimension, Measure
from datapylot.data_preparation.avp import AVP
from datapylot.data_preparation.colorizer import adjust_brightness
from datapylot.plotting import Plotter
from .testutils import TEST_FILE
def test_co... | [
"tinywritingmakesmailhardtoread@gmail.com"
] | tinywritingmakesmailhardtoread@gmail.com |
aa3da0067c3c603fdf2fa130929c27c9b517b53b | 437f10859ebf509ac2bb6f7e2704a7925ac26350 | /build/hector_slam/hector_map_tools/catkin_generated/pkg.develspace.context.pc.py | ef07821169ba50fc963b109632c505201605be8d | [] | no_license | pringithub/ros_tank | 5cd95f497527d8e823a4d7f528cca36ff8ee0275 | 00d29781775f2a11428fdbae58785abe7d21c096 | refs/heads/master | 2022-04-19T15:44:04.445918 | 2020-04-19T15:43:59 | 2020-04-19T15:43:59 | 257,035,993 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/lxu9/rostank_ws/src/hector_slam/hector_map_tools/include;/usr/include/eigen3".split(';') if "/home/lxu9/rostank_ws/src/hector_slam/hector_map_tools/include;/usr/include/eigen3" != "" else []
PROJ... | [
"pring5@ford.com"
] | pring5@ford.com |
bf88e3a2947b9b3b8e6deb56f3c803717d70acd6 | f878ae9c162b20bb7bdd2ede22d78709ae7b8c61 | /Sorting algorithms/SelectSort.py | e3eeae3e27c9bd294f1a10ab2e483d0a19c374ee | [] | no_license | mission-learning/Algorithms | f40e6a9997e256f48c6e93915a85c5ca82d56204 | a3e45c7c9b574a800d652aa7e293aaf3ce93bd42 | refs/heads/main | 2023-03-22T06:38:05.412327 | 2021-03-19T21:56:50 | 2021-03-19T21:56:50 | 347,335,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | def SelectSort(A):
# Traverse through all array elements
for i in range(len(A)):
# Find the minimum element in remaining
# unsorted array
min_idx = i
for j in range(i+1, len(A)):
if A[min_idx] > A[j]:
min_idx = j
... | [
"noreply@github.com"
] | noreply@github.com |
9ea3d144054fc52972df06b7889eb6a5e232efbe | 8df331308a2e44bd053ea3ff802ae1fee7ff8401 | /tmdb_request.py | 71d818bc4766d6fdfd8f062ee07440f6a3ab7608 | [] | no_license | erinata/tmdb_downloader | cc016f424b2eb03b9af352516dd86437281cac89 | d94a4aa86dbd042772449bb7e31be388a7c15b69 | refs/heads/master | 2021-10-19T08:23:49.268594 | 2019-02-19T13:53:29 | 2019-02-19T13:53:29 | 171,482,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import urllib.request
import sys
import os
import json
import time
api_key = sys.argv[1]
if not os.path.exists("json_files"):
os.mkdir("json_files")
response = urllib.request.urlopen('https://api.themoviedb.org/3/movie/latest?api_key=' + api_key)
json_response = json.load(response)
movie_count = int(json_response['... | [
"erinata@gmail.com"
] | erinata@gmail.com |
3ce3a6eab0a2a8a330537b10da41a7662569f9ac | 0739b807aae180b6c6959f02c51d1f3a35f5f96f | /ex005.py | 927bff43f7070efc49ad97928c0a1b65647fb6f8 | [] | no_license | jefersonlcorrea/Exercicios | c6f9d16fefbaff1d50c004470bf9d8232e654c79 | b2b31554ca9f30b65913853b3d401e313f585445 | refs/heads/master | 2022-08-05T11:24:29.276223 | 2020-05-21T02:02:50 | 2020-05-21T02:02:50 | 265,731,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | desafio = 'ex005'
print('{:=^30}'.format(desafio))
numero = int(input('Digite um número: '))
print('O número antecessor é: {}, e o sucessor é: {}'.format(numero-1, numero+1)) | [
"jefersonlcorrea@hotmail.com"
] | jefersonlcorrea@hotmail.com |
a38b80cfcf7e8bb6e782b4d18d5c0c513e9c251b | 4e7be2c4a07b3a64d76152e1a8dbb0d9f0eb79e5 | /ctd/wsgi.py | 0f6a27145ccbef39a8e51a9cf9dc4e7dbd395aed | [] | no_license | frey1186/ctd | ac2d624badd7508b9cf660b22ef9f27921a2c082 | 9719275323c85d09d0094ad7a33b557427c23ae4 | refs/heads/master | 2021-12-30T01:16:02.665027 | 2017-12-29T08:16:12 | 2017-12-29T08:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for ctd project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"yangfeilong_2009@126.com"
] | yangfeilong_2009@126.com |
ddd352a932897eab44ab466a1462189f4656689c | c934e7c27f0e72385218a14b4e2a7e94a747a360 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gsuiteaddons/v1/gsuiteaddons_v1_messages.py | 3c7225d36f055cd65a71467d6cc9a202871a533a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PrateekKhatri/gcloud_cli | 5f74b97494df4f61816026af9460b9c4d8e89431 | 849d09dd7863efecbdf4072a504e1554e119f6ae | refs/heads/master | 2023-03-27T05:53:53.796695 | 2021-03-10T04:08:14 | 2021-03-10T04:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,183 | py | """Generated message classes for gsuiteaddons version v1.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py import extra_types
packa... | [
"actions@github.com"
] | actions@github.com |
6d6904357feed75ef8f28cfabe56230d316bbe49 | 1befca1dffd096faa82fcddb6c942ddfbf04e05c | /jiaohang/jiaohang/settings.py | e83fc7517c4230c4b466553d5ff988cb61253226 | [] | no_license | yanghepan/crawl | 3e2e1d390fbb17e82d8a93d04fe2ff47d67ed93d | 2aef556fbdb49eea371299767e60b1cd78ba22d5 | refs/heads/master | 2021-05-03T21:48:39.216133 | 2016-10-21T09:23:18 | 2016-10-21T09:23:18 | 71,544,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # Scrapy settings for jiaohang project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/topics/settings.html
#
BOT_NAME = 'jiaohang'
BOT_VERSION = '1.0'
SPIDER_MODULES = ['jiaohang.spiders']
NEWSPIDER_MODULE... | [
"yanghepan2012@162.com"
] | yanghepan2012@162.com |
a97ed4333fd26e92040a8518e6c7c947a2d216c3 | 747f759311d404af31c0f80029e88098193f6269 | /addons/c2c_timesheet_reports/reminder.py | ab9dad36b4cf448e2f10b2624628cc6cc88d7346 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /home/openerp/production/extra-addons/c2c_timesheet_reports/reminder.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
aef4ec0a3ce00fc70645ef7498cfcf781055e2a7 | a29a7d983565ed2f85fe8fae02479ffbe944fe00 | /Project/mysite/sentiment/migrations/0001_initial.py | f2f9939206cd11d12dbdb3374e82cb879473f9e6 | [] | no_license | dgted/aspectmining | 9585f3e47e6303f62ad8b6af38d693fc79c0bbd0 | 5f8c351b8e22c9da43f831911f07fb775682bd82 | refs/heads/master | 2022-12-05T05:16:37.685541 | 2020-08-26T13:05:45 | 2020-08-26T13:05:45 | 162,121,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # Generated by Django 2.0.4 on 2018-08-13 11:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='File',
fields=[
('id', models.AutoField(aut... | [
"imran.cse.ku@gmail.com"
] | imran.cse.ku@gmail.com |
b5115d5d1bd6fd85f36a0aa9dd35426d1ae84c16 | 3a29837faa5c0b78f9a49022853b24b64c1e7659 | /models/name_change.py | 50ea0e45d4c63c8a91cad3beae69137b60fb026e | [] | no_license | prasanthshiv/visitors_tailoring | 27348c451811344d58f562347c2bdc9df8afbd1b | 6319117a10e926d74688a3ff536c5ab0e7bcc015 | refs/heads/master | 2020-03-12T20:08:24.618723 | 2018-05-15T09:33:59 | 2018-05-15T09:33:59 | 130,798,861 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | from odoo import models, fields, api,_
class ParentChildName(models.Model):
_inherit="sale.order"
@api.onchange('partner_id')
def name_search(self):
res=[]
customers=self.env['res.partner'].search([])
for obj in customers:
if obj.display_name.find(',')!=-1:
name=str(obj.display_name)
child_name=n... | [
"ajin.gogit@gmail.com"
] | ajin.gogit@gmail.com |
2efbcefa010bfac92b421e035a80c4d6820f47ea | 2917116bca906eec8b3547aee759af7003656eea | /ca.py | 1fe74003322c14b813c64d480318feeba1789014 | [] | no_license | sfidahussain/encryptingPython | f73866d6eefa79fa0505c08314aff24ba2c4fda3 | 776b9bba036178920a265f74300f87dddca2c0e5 | refs/heads/master | 2020-03-31T03:31:26.894801 | 2018-10-12T01:50:34 | 2018-10-12T01:50:34 | 151,868,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID
import datetime
import uuid
def generateCertAndKeys():
one_day... | [
"6472383+sfidahussain@users.noreply.github.com"
] | 6472383+sfidahussain@users.noreply.github.com |
7d67812f59781d0de68d44ef8bb872267496f908 | a7a9960da9aa7bea525331d856cb9c2dd6a03d7c | /json_schema_express/__init__.py | 281168f90b2cd7095871d86a938cc1b78a5623e8 | [
"MIT"
] | permissive | flickerlight/json_schema_express | 291caec63d694844abbc0b721a4579116be35de8 | 3771bf4cb8a5b9c4c0e8c999805c1951dc836d94 | refs/heads/master | 2020-12-11T07:21:16.936679 | 2016-02-14T09:01:38 | 2016-02-14T09:01:38 | 48,972,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import json
import os
import re
import sys
import random
from data_producer import DataProducer
from generators import *
__all__=['DataProducer']
| [
"cwlme82@gmail.com"
] | cwlme82@gmail.com |
d29f5685c461da483a731f28490384ef6e074cab | a0cf59e79154d6062c2dccfb2ff8b61aa9681486 | /10.py | 9f90c64b92e30c225325d27221e01584d6676600 | [] | no_license | PetraVidnerova/AdventOfCode | a211d77210ac1c43a9b2c0f546250f6d7c1d183c | 5b0e8017fcd8f71576a312b6c7b5bd3602be6e89 | refs/heads/master | 2021-01-10T16:07:03.336632 | 2016-02-28T14:02:54 | 2016-02-28T14:02:54 | 52,216,197 | 0 | 0 | null | 2016-02-21T17:17:37 | 2016-02-21T16:39:51 | null | UTF-8 | Python | false | false | 471 | py |
def read(input):
# one iteration of read
input = input + "x" # last char is ignored
result = ""
lastchar = None
count = 0
for ch in input:
if ch == lastchar:
count += 1
continue
if lastchar:
result = result + str(count) + str(lastchar)
... | [
"petra.vidnerova@gmail.com"
] | petra.vidnerova@gmail.com |
afadc4951bc991f31a52268704ed3a684067bd71 | 6de44b11704b964ff4cae6434252ff0ed995e95c | /PServer/Model/cluster.py | 48fe92962a30617ed590454ca8c427a1ce535643 | [] | no_license | AamirAfzal/Analytica-Express-and-Django-Backend | 21b56c7247a8ba43abc29395cd99a86fd5c73259 | ed4c0c2f4f3ca2d106ec528d939b144c06b9f0e6 | refs/heads/main | 2023-02-03T05:37:50.310401 | 2020-12-25T15:01:15 | 2020-12-25T15:01:15 | 324,379,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import joblib
dataset = pd.read_csv('FruitsDataSet.csv')
dataset.head()
dataset.count()
dataset.max()
dataset.min()
dataset.shape
dataset.isna().sum()
X = dataset.iloc[:, :-1].values
X
from sklearn.cluster import KMeans
#elbow method to f... | [
"aamirafzal9669@gmail.com"
] | aamirafzal9669@gmail.com |
c9b2bf07ef3d133370cd5986c7f3b4b38cfeabf1 | a7a7ff3c59728ca7fab989f4248e093d8c4f0e77 | /Lab_projects/lab8/build/lib/l2.py | bbdba469dc3fb840c7327ea92621a88e8e82c5e6 | [] | no_license | Yet-sun/python_mylab | 5dc868bcf13fb7b626ffefff6a6ed3521c1f4cc1 | bb2f5df7372bf1b4956938683b04947fc8e6ac79 | refs/heads/master | 2020-04-09T19:25:20.225731 | 2018-12-05T16:09:20 | 2018-12-05T16:09:20 | 160,543,034 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | '''
需求:
编写一个可以求圆形、三角形、矩形、梯形面积的模块,并编写只有独立运行模块代码时才能运行的测试代码。要求必须包含完整的API和模块文档(可以通过help函数查看)。并要求通过__doc__属性分别查看模块注释、类注释和函数注释。
'''
PI = 3.14 # 定义常量π
def circular():
'''函数circular用于求输入圆的半径,返回该圆的面积'''
r = int(input("请输入圆的半径:"))
return PI * r ** 2
def triangle():
'''函数triangle用于输入三角形的三条边,运用海伦公式返回三角形的面积'''... | [
"18468152772@163.com"
] | 18468152772@163.com |
f1e40aa237fa8734bc2f745f5b50a7c0d0125d49 | b4035de770c0499a5e3ac057e61722bfb1365b56 | /v2.0.0/device_software/intel_iq_sdk/wearable_device_sw/tools/factory/generate_factory_bin_product.py | 1c13d8903db72fbca71ebfc94e80f0a0af300755 | [] | no_license | Mario378/ndgIqSoftwareKit | ab58808483e86dd69bff9254e178b9ea6d2e6f48 | d9dfa01b597277718be6653bbe283e1dffa2823d | refs/heads/master | 2021-06-01T10:03:05.688148 | 2016-05-20T17:12:11 | 2016-05-20T17:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# INTEL CONFIDENTIAL Copyright 2015 Intel Corporation All Rights Reserved.
#
# The source code contained or described herein and all documents related to
# the source code ("Material") are owned by Intel Corporation or its suppliers
# or licensors.
# Title to the Material rema... | [
"fabien.marotte@intel.com"
] | fabien.marotte@intel.com |
d3e688e2e0724426f98735db7408e549f3245eda | 717f7d68e5f36c1d30d223cb201407b0f9c11f9c | /statistical data analysis/02_variance_measure.py | dc22125bd55674bad964315424d4951b43a8ed47 | [] | no_license | raunakshakya/PythonPractice | 7f54508f9adb8541a9cedc7a58e3629bcfb9b6f5 | 3643e9f526401d31ca706f036af0cdae3da04984 | refs/heads/master | 2020-03-22T18:01:54.357735 | 2019-06-05T03:32:07 | 2019-06-05T03:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # https://www.tutorialspoint.com/python/python_measuring_variance.htm
"""
Variance is a measure of how far a value in a data set lies from the mean value.
In other words, it indicates how dispersed the values are. It is measured by using standard deviation.
The other method commonly used is skewness.
"""
import panda... | [
"rkshakya99@gmail.com"
] | rkshakya99@gmail.com |
d6271117a9193e0facb6f43251e36bccbc847ba1 | 9bb01fa882e713aa59345051fec07f4e3d3478b0 | /tests/cysparse_/sparse/common_attributes/test_common_attributes_matrices_likes_ConjugatedSparseMatrix_INT32_t_FLOAT32_t.py | 17904df851dbc456f945b9e24ed309bc76956c00 | [] | no_license | syarra/cysparse | f1169c496b54d61761fdecbde716328fd0fb131b | 7654f7267ab139d0564d3aa3b21c75b364bcfe72 | refs/heads/master | 2020-05-25T16:15:38.160443 | 2017-03-14T21:17:39 | 2017-03-14T21:17:39 | 84,944,993 | 0 | 0 | null | 2017-03-14T12:11:48 | 2017-03-14T12:11:48 | null | UTF-8 | Python | false | false | 7,395 | py | #!/usr/bin/env python
"""
This file tests basic common attributes for **all** matrix like objects.
Proxies are only tested for a :class:`LLSparseMatrix` object.
See file ``sparse_matrix_coherence_test_functions``.
"""
from sparse_matrix_like_common_attributes import common_matrix_like_attributes
import unittest
fro... | [
"sylvain.arreckx@gmail.com"
] | sylvain.arreckx@gmail.com |
289d57e5fa067de98862d99ce8d1e8317961d4ce | 23beee80b11ed0c1bb7b00781d3055dbb1426070 | /utilities/utilities_main.py | bd8a3ba1a8465f880d2ef3de3b9306a327ed6c79 | [] | no_license | ws-choi/DepAudioNet_reproduction | 1c3a7fba6ceaad49af71bfc4af0cb109acce98da | 0d2dc4cb34f2af3e41163687719e9673e1ca9c13 | refs/heads/main | 2023-06-26T03:04:15.024744 | 2021-07-26T11:15:37 | 2021-07-26T11:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,365 | py | import os
import pickle
import numpy as np
import h5py
import pandas as pd
import argparse
import logging
import logging.handlers
import csv
import shutil
import torch
import random
def save_model(epoch_iter, model, optimizer, main_logger, model_dir, cuda):
"""
Saves the model weights along with the current e... | [
"ab01814@surrey.ac.uk"
] | ab01814@surrey.ac.uk |
2c67e9b1f72c733b0a1e89b84a30f898e7549ce4 | 5a4ad3d1cb4db856dabfb4cd1280857669d0173c | /djangoacl/cmsacl/menu.py | ea0f682db78ae79a882cedc151ab661a756a611e | [
"MIT"
] | permissive | dwatkinsweb/django-acl | 58c92da11b634c7c076a279bd52787569e69ce29 | 30cad17b884da2b48cb1c851b688979f97f4753d | refs/heads/master | 2020-05-19T10:43:27.798243 | 2015-10-08T23:49:33 | 2015-10-08T23:49:33 | 34,081,332 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from cms.models import Page
from menus.base import Modifier
from .permissions import user_has_cms_page_permissions
class ACLModifier(Modifier):
def modify(self, request, nodes, namespace, root_id, post_cut, breadcrumb):
final_nodes = []
for node in nodes:
node_page = Page.objects.get(... | [
"dwatkins@insuremonkey.com"
] | dwatkins@insuremonkey.com |
817fc983cb302666d50ad094ac3af4b9ca26a6c3 | 62bb8adaf550a35ee1c7477945e5adc3e2681fd8 | /py/2015/11B.py | 28c9cb0085e565b6a49032d818ad54dd847f4ce0 | [
"MIT"
] | permissive | pedrotari7/advent_of_code | 91f64a6b77f46a4b996954cc8b1bb55e8737dc48 | 2c809a089e95aae2a4948da31f5327d702deeb2f | refs/heads/master | 2023-01-14T13:11:45.986027 | 2022-12-25T22:31:23 | 2022-12-25T22:31:23 | 75,390,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import re
def is_valid(p):
if any([l in p for l in ['i','o','l']]):
return False
i,pairs = 1,0
while i < len(p):
if p[i] == p[i-1]:
pairs += 1
i+=1
i+=1
if pairs < 2:
return False
i,count = 1,0
while i < len(p):
if ord(p[i]) == ord(p[i-1])+1:
count += 1
if count == 2:
break
else:... | [
"jpfa@kth.se"
] | jpfa@kth.se |
e0492512a068aa29958a7d8846875839583e6f93 | 029d45ed64b04b55d9b71b3be07d0a2115905db9 | /FiniteWingAnalysis/VLM.py | b3bbce6d689e0eda6bd7d1d587c9b461e7609629 | [] | no_license | jaredthomas68/aerodynamics_me515 | 39305ab3c32a95cf989b91828b900694fc3c1095 | 0ed0be93a8c63679d0a0c5f377c5332e2e874952 | refs/heads/master | 2021-01-24T16:15:21.587778 | 2018-04-26T04:17:34 | 2018-04-26T04:17:34 | 123,179,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,462 | py | import numpy as np
def get_panels(span, Npanels):
nodes = np.linspace(0,span/2, Npanels+1)
mid_points = np.zeros(nodes.size-1)
for i in np.arange(0, mid_points.size):
mid_points[i] = (nodes[i]+nodes[i+1])/2.
return nodes, mid_points
def get_k(y, ybar):
k_pos = np.zeros([y.size-1, y.s... | [
"jaredthomas68@gmail.com"
] | jaredthomas68@gmail.com |
33bf5fcb5173d113c61698b14c7d3e1f7896e315 | 24b6f888e8d29c34856cee6ea9c0bfd14aa6ea10 | /apirest/apirest/urls.py | 6805663fbd87343ad8f72f5feb5665a547ae986c | [] | no_license | egarciadev234/api-rest-countries | 78903504032cca54635b7531bcee4504883a7afa | dcc6aa39e4605fec398477d8f5577ec563a7f09c | refs/heads/master | 2020-04-16T17:41:56.848874 | 2019-01-15T05:09:06 | 2019-01-15T05:09:06 | 165,786,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """apirest URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"developeeg@gmail.com"
] | developeeg@gmail.com |
8761eaff518d705e57ceb09085af5d4088e080fb | 71047c4c45e97f474b45e0989202d8d88b0e4895 | /sparse_dot/sparse_dot.py | 3e82d3d8e3094bf5d04af57799a660e9c4e6e47a | [
"Apache-2.0"
] | permissive | pluralsight/sparse_dot | bd86e676e323ef84f51b2b5ae7b453ba7fa66916 | 271131a3a28f12d7dcca0fbeca8591e9d052c98a | refs/heads/master | 2023-04-01T06:03:51.845211 | 2016-12-13T19:33:30 | 2016-12-13T19:33:30 | 72,578,014 | 3 | 1 | Apache-2.0 | 2023-03-27T18:25:07 | 2016-11-01T21:24:52 | Python | UTF-8 | Python | false | false | 2,459 | py | '''The main script'''
# To update with any Cython changes, just run:
# python setup.py build_ext --inplace
import numpy as np
import cy_sparse_dot
def to_saf(arr1d):
arr1d = np.asanyarray(arr1d)
locs = np.nonzero(arr1d)
return {'locs': locs[0].astype(np.uint32),
'array': arr1d[locs].astype(np... | [
"david.n.mashburn@gmail.com"
] | david.n.mashburn@gmail.com |
8e5530438c97d0e7a5e092c7bb90b4885627ccac | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Conv1DTranspose_7.py | 38603397c5765f6c7bc79e052c30df74cd538a9e | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 635 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
4ea282c215b39bd1c20dba68c9aa0b0f34066973 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/yaml-3.10/yaml/composer.py | 09bc60b808f475856445853ce5b7bc7054ef576a | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/yaml-3.10/yaml/composer.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
c11783353c99fffe21e0f8e79429f18154b97c68 | 965d584ad531011c20bfc1c355e2c45e3562d270 | /docker-django/public/resources/settings_local.py | cedf233d5bdd4ff9e5b1f15bae7270efa324248a | [] | no_license | raymondnijssen/qgis-plugin-repos | 5285fd49dd950e5d470d900132d87054cd82eacc | c5857c0c0ba7cabc9290a3b2f606bc98e4918a5b | refs/heads/master | 2020-05-27T00:12:42.852784 | 2019-01-21T21:06:28 | 2019-01-21T21:06:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | ADMINS = (
('Larry Shaffer', 'lshaffer@boundlessgeo.com'),
)
MANAGERS = ADMINS
# Tell django which clients may receive debug messages...used by django-debug-toolbar
INTERNAL_IPS = ('127.0.0.1','')
# Disable for prod machine
DEBUG = True
TEMPLATE_DEBUG = DEBUG
LOGGING_OUTPUT_ENABLED=DEBUG
LOGGING_LOG_SQL=DEBUG
# A... | [
"lshaffer@boundlessgeo.com"
] | lshaffer@boundlessgeo.com |
7e0256ed63a14946e63395f36524476c8d151457 | 51408bde5bdceef723bdddfe953eae65b175a424 | /config/wsgi.py | 5cadd5d8ffbc4cac5f31e50e1a4afeff54859fd2 | [
"MIT"
] | permissive | tejaser/budgetproject | e7642a3106eee71f612c2f4c8d608f5ff171611e | 3b4f2ef0827bd60cd4c8c6115b4c797d788ff6d6 | refs/heads/master | 2020-03-26T22:16:02.982378 | 2018-08-21T15:42:31 | 2018-08-21T15:42:31 | 145,444,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | """
WSGI config for budgetproject project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICAT... | [
"tejas.er@outlook.com"
] | tejas.er@outlook.com |
813b384724d9387a2ab35021475ef7f9a6a1fb60 | 82eef8f3df9e7f32629810cb0cbb330a0202d109 | /main.py | c31ce2f8329809eb65a27bd76d07585b30c6216c | [] | no_license | arodrigu12/web-caesar | 3385eab6b104f954e2df58d9c36336ee1aab4610 | fdb3527318f73e29d5f76968cd64a8ae8b9ed061 | refs/heads/master | 2020-07-23T19:41:09.072630 | 2019-09-11T20:33:45 | 2019-09-11T20:33:45 | 207,686,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from flask import Flask, request
from caesar import rotate_string
app = Flask(__name__)
app.config['DEBUG'] = True
form = """
<!DOCTYPE html>
<html>
<head>
<style>
form {{
background-color: #eee;
padding: 20px;
margin: 0 auto;
wi... | [
"arodrigu12@hotmail.com"
] | arodrigu12@hotmail.com |
48d72d53068a6d2945811022cbbf90e460108735 | 1810101411ed8c45d2eba292cf7050d32578f8cf | /BFS.py | 2806f775cab0f8c2377767aaeedfe875acf8a8b9 | [] | no_license | TharindaDilshan/Graph_Theory_Python_Implementation | 7993bbc7a7229b1e1892f8c51401c55cb4d82df1 | 34c4e5bea001f4018f2d2d626032856cee67e8e6 | refs/heads/master | 2022-10-20T23:07:28.465532 | 2020-06-15T18:07:47 | 2020-06-15T18:07:47 | 271,597,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | def FIFO_push(FIFO_list,element):
FIFO_list.append(element)
def FIFO_pop(FIFO_list):
return FIFO_list.pop(0)
def add_to_explored_vertices(explored_vertices,vertex):
explored_vertices.append(vertex)
def is_explored(explored_vertices,vertex):
return vertex in list(explored_vertices)
def BFS(maze_graph... | [
"tharindad7@gmail.com"
] | tharindad7@gmail.com |
ae148d541da55bbbe4f859e76be305aec7f777a9 | 77c02056dd83fa874817e0876c6fdcd6a6b59a5e | /package/scripts/status_params.py | b6154543f88cbeafd374029854e3fa8914f5d4bb | [] | no_license | ydsAnnda/nslcd | 3ab80e4b5ec718950ce21d5130b50069d3775875 | 0a607f8236e70d2cfb3947b8d17c0c376667d3ce | refs/heads/master | 2020-04-02T17:24:58.433192 | 2018-10-26T02:08:16 | 2018-10-26T02:08:16 | 154,656,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python
from resource_management import *
config = Script.get_config()
nslcd_template_config = config['configurations']['nslcdconf-env']['content']
| [
"noreply@github.com"
] | noreply@github.com |
cf18cea74b375ef58f2eda79335e7af66ee879e9 | c90ce52f9bf22c798742b8a2d310fdeb13ff80e9 | /4-array.py | ffd5ac44b4df8f9105de95272759ae4d78c9dcef | [] | no_license | strelka0d/Py-Hillel-hw | 9c7527fce8c7bd020ad92fa54a5d1d4c2bb79c78 | cd3337ed30b819b3afeaa50b03ab7f2e5d177d66 | refs/heads/master | 2020-04-09T14:13:26.653183 | 2019-01-27T19:03:39 | 2019-01-27T19:03:39 | 160,390,816 | 1 | 0 | null | 2019-01-27T19:03:40 | 2018-12-04T16:57:33 | Python | UTF-8 | Python | false | false | 587 | py | array = [10, 11, 2, 3, 5, 8, 23, 11, 2, 5, 76, 43, 2, 32, 76, 3, 10, 0, 1]
def non_double_array(args):
array_non_doubled = []
for i in array:
if i not in array_non_doubled:
array_non_doubled.append(i)
return array_non_doubled
def max3_elements(args):
lst_sort = sorted(array)
... | [
"anastasiakryukova@gmail.com"
] | anastasiakryukova@gmail.com |
b740d83db7f6331328478770e719872d514907ac | 7e7f1522a2b7c6db51d61fbb58e690b150df3cab | /estate/models/estate_property_tag.py | 53a5b21b77bb0f01c1eb55bf29e6a6c02014f526 | [] | no_license | Jarsa/real-state | e5399ea1e1d5c4011f597c2526ae67c8ea853257 | 5abf764928a675a23eff78299e852985a843cf89 | refs/heads/13.0 | 2023-07-08T20:40:06.774241 | 2021-08-23T13:13:17 | 2021-08-23T13:13:17 | 390,747,273 | 0 | 3 | null | 2021-08-23T14:02:57 | 2021-07-29T14:16:29 | Python | UTF-8 | Python | false | false | 449 | py | # Copyright 2021, Jarsa
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class EstatePropertyTag(models.Model):
_name = "estate.property.tag"
_description = "Real Estate Property Tag"
_order = "name"
name = fields.Char(
required=True,
)... | [
"alan.ramos@jarsa.com.mx"
] | alan.ramos@jarsa.com.mx |
3b2eaf8dc46933c9a802f20b30baa46224363405 | f6f632d0d19fcced0a464d7c75d82ef2c3a9758a | /ABTS/setup.py | 7ba36c058cd4412f1283346fa33f92c3e3e30eed | [] | no_license | gfalcon2/Aerobraking-Trajectory-Simulator | 3f9446be40df41e94fe59ac60bd6d2edf2364232 | 2ad7314ae759283148bd259449a012a7797de6c2 | refs/heads/master | 2022-12-03T22:30:33.979187 | 2022-11-20T16:48:11 | 2022-11-20T16:48:11 | 239,838,808 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | #!/usr/bin/env python
from setuptools import setup, Extension
from Cython.Build import cythonize
import Cython.Compiler.Options
import numpy
Cython.Compiler.Options.annotate = True
ext_modules = cythonize([
Extension("ABTS", ["ABTS.py"]) ,
Extension("config", ["config.py"]),
Extension("control.Control", [... | [
"noreply@github.com"
] | noreply@github.com |
d1a033f01049990d507264bd1ec5cea4e9e25a33 | d7d80d9e45ebb2ebbd9f87675e6d26fd9302b555 | /main.py | fe850f5fd9a25036a5d7c309d4be729356d8ef33 | [] | no_license | ChristinaLi94/1D-CNN-Library | cd4617e5d360a6ea014d94074b1bffdabc7b7367 | 71af6989b6bbbdc34b9727a069bfa39a9d12b059 | refs/heads/master | 2020-07-11T23:28:59.958795 | 2016-07-27T09:14:18 | 2016-07-27T09:14:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | #-*- coding=utf8 -*-
from libDL import *
if __name__ == '__main__':
#read data from file
file_name = sys.argv[1]
train_name = sys.argv[2]
input_node = Open_data(file_name)
#read training data
d = Open_data(train_name)
#Prepare weight
w = []
#decide kernel size
conv_kern... | [
"palloc.mknet10@gmail.com"
] | palloc.mknet10@gmail.com |
34c80b8c05a2b877654645106255e49006208ae0 | ed2a5f0773b6179be69663b0d811246333f16b1b | /app/mariage/migrations/0006_carpooling.py | 18fb2fd8d8cb5cfa14085a51bd4cac7b888fafe5 | [] | no_license | cyrilbecquart/mariage | 626fc4e6d8c941926845adc328b3d603a71287b6 | 2b34abc4f4b7c643a84398c2735173dc48c51259 | refs/heads/master | 2021-01-21T04:32:00.378162 | 2016-06-19T13:18:18 | 2016-06-19T13:18:18 | 37,016,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('mariage', '0005_auto_20151020_1538'),
... | [
"cyril@buzzcar.com"
] | cyril@buzzcar.com |
9a8cac4b3e32f6a077d7eb78d0f5051c0512f4a2 | 936dc2666f27de7a7d1428c7ad2ded62a722b8fa | /src/aids/migrations/0176_alter_aid_subvention_comment.py | 9b1d57c10296955b4148ac4b92dc72f523a577cb | [
"ISC"
] | permissive | MTES-MCT/aides-territoires | 03451a32bdeaab3812b8593bfe3a27c1b1d9a182 | af9f6e6e8b1918363793fbf291f3518ef1454169 | refs/heads/master | 2023-09-04T22:15:17.819264 | 2023-08-25T13:19:17 | 2023-08-25T13:19:17 | 124,301,398 | 21 | 11 | NOASSERTION | 2023-09-12T13:46:49 | 2018-03-07T22:19:11 | Python | UTF-8 | Python | false | false | 553 | py | # Generated by Django 4.1.7 on 2023-04-25 12:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("aids", "0175_aid_ds_id_aid_ds_mapping_aid_ds_schema_exists"),
]
operations = [
migrations.AlterField(
model_name="aid",
... | [
"noreply@github.com"
] | noreply@github.com |
0a75bb66a7e70f09535076aea3429e83768bcab4 | fe74150f4fbe02c5cbc2f65f2aff765241fd7322 | /elib/urls.py | 108e6859d9ced347e31355110589e772782aa066 | [] | no_license | khaled-305/online-library | cb0d5122badc32757d761c7e43bb4a69b06da1b3 | 940b7666a84f4666e3c521be21c4647d2146c03c | refs/heads/main | 2023-02-05T04:56:32.992561 | 2020-12-31T22:09:26 | 2020-12-31T22:09:26 | 325,880,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('books/', views.BookListView.as_view(), name='books'),
path('book/<int:pk>', views.book_detail_view, name='book-detail'),
path('authors/', views.AuthorListView.as_view(), name='authors'),... | [
"khaled305.on@gmail.com"
] | khaled305.on@gmail.com |
860f8837c470272298fba138600106d8c74fce29 | 4ef4d67b9ef6d6e3fc9f69baf520a797c85a129d | /karmaproject/wsgi.py | be3bda0b86b54092ab91cb98043cc30b5fd19779 | [] | no_license | niranajnkumarverma/karmaapp | 666b32eb02a1fd21e11efd6ca5b271e70de3f266 | 35dbf76894be26a9fe6e62224d11f29ad216ad6b | refs/heads/master | 2023-08-23T03:22:50.817278 | 2021-11-05T10:56:02 | 2021-11-05T10:56:02 | 424,915,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for karmaproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"niranjankumar"
] | niranjankumar |
19ada9a86c2e1dd0408eebffc3954daabce8108c | 31440000997eaec495e30fe12a6046ea5907e744 | /todoApp/forms.py | 678d7f1f7472224951fc2de5c27cf3c8b03141c8 | [] | no_license | Rayast159/todoApp | e109c48791046920d0decddac8b26e72221a3bc9 | babfe9f80c42e277ef0f8595bbd3e70cdb59f247 | refs/heads/master | 2023-04-17T23:19:33.925992 | 2021-05-06T12:56:30 | 2021-05-06T12:56:30 | 363,159,416 | 0 | 0 | null | 2021-05-06T12:55:48 | 2021-04-30T14:05:09 | JavaScript | UTF-8 | Python | false | false | 243 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class CreateUsersForm(UserCreationForm):
class Meta:
model = User
fields = ['username', 'email', 'password1', 'password2'] | [
"william.tran@ecole.ensicaen.fr"
] | william.tran@ecole.ensicaen.fr |
c284c62518399e7db958db634226e57614625b90 | 2f0ab8bdc939da79a314a749044a13a429596832 | /odin/bay/layers/dense.py | 7c455df3b1845c0f9ec7b08f8e4f5fe317632de0 | [
"MIT"
] | permissive | YashinaTatiana/odin-ai | 6bb65d691471cf632b4137fc21bd0b09ef76cf2a | f44c56c3f01ddb354bfc5df430bfd6587f95897c | refs/heads/master | 2022-04-20T15:26:20.617310 | 2020-04-23T17:35:57 | 2020-04-23T17:35:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,313 | py | from __future__ import absolute_import, division, print_function
import inspect
from functools import partial
from numbers import Number
from typing import Callable, Optional, Text, Type, Union
import numpy as np
import tensorflow as tf
from six import string_types
from tensorflow.python.keras import Model, Sequentia... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
7fdcd110543a9c0ccb60f092629d52bcf03238a2 | dbaf76aa19f2617aea0131a0fae0ef1c3b511949 | /python tcp server/v2/TCP2.py | da72713f93d9c1f08305a28e9d339f8a6a4ed18e | [] | no_license | thoridaz/GEO_Tracking | 8f95158b8e0ff2848908b9df702f73f745d5aa6d | 9f6ffc2ca06edd334b6ac5243c917463865c43cd | refs/heads/master | 2020-05-25T23:33:32.377098 | 2017-05-07T07:58:11 | 2017-05-07T07:58:11 | 84,978,424 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | import asyncio
import functions
HOST = functions.HOST
PORT = functions.PORT
trackers = []
class GpsServer(asyncio.Protocol):
def connection_made(self, transport):
self.transport = transport
self.addr = transport.get_extra_info('peername')
self.s = transport.get_extra_info('socket')
... | [
"gew.papakonstantinou@gmail.com"
] | gew.papakonstantinou@gmail.com |
6f45050ff954bb9205bc2f030b0c116a8444a513 | 82a488149c7c466f0b979cfcf4fbaa27eefccf72 | /IOModels/threadhello.py | fc790cdf77e88dc4d3b86072a1f14700391071e0 | [] | no_license | axeoman/python-sys | 832847e81b9bead329a9bca9b86934041cf70ac3 | 45664bb09f670cb8c7d16034e24b4e4fe47c886f | refs/heads/master | 2021-01-14T10:08:35.037695 | 2011-12-15T20:21:58 | 2011-12-15T20:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | #!/usr/bin/env python
import threading
import datetime
class ThreadClass(threading.Thread):
def run(self):
now = datetime.datetime.now()
print "%s says Hello World at time: %s" % (self.getName(), now)
for i in range(2):
t = ThreadClass()
t.start()
| [
"dketov@gmail.com"
] | dketov@gmail.com |
c2ff5f92ae6a36b1e2857168a5bb67cc2d082c1f | dc46bf60353b273a356d400f9d184ecb3bb534ac | /l10n_ve_retencion_iva/models/account_move.py | 054394c103081b588b977334b9a076d1993eb0f9 | [] | no_license | luismata01/midespensa | 38c371a05ba2c5d81e637bd9b143548106d9ff11 | 94d02339b316456d505686623de0436f6a5b69a1 | refs/heads/master | 2023-06-01T01:21:54.509594 | 2021-06-11T14:01:10 | 2021-06-11T14:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,926 | py | # -*- coding: utf-8 -*-
#############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Lice... | [
"clara.15is.cs@gmail.com"
] | clara.15is.cs@gmail.com |
54ca12d67db93ad73a903f15cd006cccfdefb7b9 | 38b8bceafb4d80afc7c77196eb9ee99694191bcf | /scrapy/study/w3school/w3school/pipelines.py | f7b1b2c843306a1645d8a3cfe490cb83fe27c0f5 | [] | no_license | tangc1986/PythonStudy | f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff | 1ed1956758e971647426e7096ac2e8cbcca585b4 | refs/heads/master | 2021-01-23T20:39:23.930754 | 2017-10-08T07:40:32 | 2017-10-08T07:42:38 | 42,122,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
import codecs
class W3SchoolPipeline(object):
def __init__(self):
self.file = codecs.open('w3school_dat... | [
"tangc1986@gmail.com"
] | tangc1986@gmail.com |
bc84b1d032b1997b9821ff3ddf33c6d2c324154e | a6f9b3b1503fc08e7d77161bb2b5beac3b89480d | /app/main/views.py | d9d53ba612eb73e52f381e20e54f8542edc6833b | [] | no_license | AugustineOchieng/newsFeed | e779d7e4cf91c6769947cb5e140d417001ecf7c2 | b08720540c31453f895f395524177edb489add97 | refs/heads/master | 2020-05-09T14:53:23.346539 | 2019-04-16T10:04:09 | 2019-04-16T10:04:09 | 181,212,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | from flask import render_template,request,redirect,url_for
from . import main
from flask import render_template,request,redirect,url_for
from ..request import get_source,article_source,get_category,get_headlines
#our views
@main.route('/')
def index():
'''
Root function returning index/home page with data
... | [
"gusochieng@gmail.com"
] | gusochieng@gmail.com |
baf650db3de1ebf462c1d13609b573330b37db84 | 56ca5f2ef97fb9a15471ba8b99435063ad8a7b38 | /Array_Problems/3Sum.py | 87ab73125e195b3d12eca186143c00fcefbb34e1 | [] | no_license | phanitejakesha/LeetCode | 34897e8e12c842f8870b4a9994323915450f8789 | 9a53ed747f5477f44bf37dc140da9f9cc2544f5a | refs/heads/master | 2020-03-28T21:25:23.323560 | 2019-06-16T23:39:27 | 2019-06-16T23:39:27 | 149,154,795 | 0 | 0 | null | 2018-12-09T04:40:45 | 2018-09-17T16:26:47 | Python | UTF-8 | Python | false | false | 2,407 | py | #Leetcode problem Number 15
#3 Sum
#Author : Phani Teja
class Solution(object):
def addSum(self,li):
li.sort()
a=""
for key in li:
if key<0:
a = a+"*"+str(abs(key))
else:
a=a+str(key)
return a
def threeSum(self, nums):
... | [
"phani1@umbc.edu"
] | phani1@umbc.edu |
4ccdebe79c6426cfcb6e3575d45e3132f15b3df7 | 837079b9ec7bb7099709b5195a56244aba80e5a6 | /env/bin/isort | e88661afe9be8d74d967ab936b405f0cc42dff6c | [] | no_license | Sajinthan/elevator-challenge-python | 73c1cec50ae6b39918cc67de92830cf7d8acdfcb | f861a278a3b011ef0a6606160c0ac1606463aaba | refs/heads/main | 2023-05-05T09:20:10.059598 | 2021-05-20T21:59:27 | 2021-05-20T21:59:27 | 367,872,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/Users/sajinthanjanahiram/Projects/elevator-challenge-python/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rsajee@live.com"
] | rsajee@live.com | |
c61dac74f492854f0bb8047b0bf5933954436cb7 | e8595dc3e6349c7af5066097b7c6fd25b41f7b8e | /XPython/XPLMDefs.py | 0a2335541a169043604c86c90243a544e0782eaf | [] | no_license | bar0metr/x-plane_plugins | 033cb186ddb6cf299b2bf7994d1a14b521ddc047 | b6250a797a0788d240ba784e95ba2db4705d28ad | refs/heads/master | 2022-04-17T05:14:03.390209 | 2020-04-19T07:27:26 | 2020-04-19T07:27:26 | 256,937,059 | 0 | 0 | null | 2020-04-19T07:10:40 | 2020-04-19T07:10:40 | null | UTF-8 | Python | false | false | 8,550 | py | ###############################################################################
# Based on CHeaders/XPLM/XPLMDefs.h
###############################################################################
###############################################################################
# GLOBAL DEFINITIONS
#####################... | [
"f.josef@email.cz"
] | f.josef@email.cz |
df4499e1513a41e0771f5ffae1717e8bd84fce53 | c7c5a2a9ac838f06faf7cc02f3b2feaf9d8485ac | /app/views.py | ab20b2620838002a57a3700db5a9909a5edff1e6 | [] | no_license | swaren23/face-find | e031b0aa9dfd160763a4e4c4b520ba8c10ff9664 | 290d400fc17cf213d25f2b42c8332ba77fdb4bb3 | refs/heads/master | 2021-04-06T19:49:45.822596 | 2018-04-24T15:25:05 | 2018-04-24T15:25:05 | 125,425,750 | 0 | 1 | null | 2018-03-15T21:01:57 | 2018-03-15T21:01:57 | null | UTF-8 | Python | false | false | 1,657 | py | from flask import render_template, request, redirect, url_for, flash
import os
from werkzeug.utils import secure_filename
from app import *
from main import pre_process, compute
import subprocess as s
@app.route('/', defaults={'filename': None})
@app.route('/<string:filename>')
def home(filename):
if request.meth... | [
"shreyasnbhat@gmail.com"
] | shreyasnbhat@gmail.com |
189cb863141731891c069ff349c15efd45b5203a | 2a60ac137b1aec2a213aa065133c7ab6005c32a8 | /joaogzmn/base/views.py | 41be9ff5c606c43fc3f2d52e8c5311fe3acf0477 | [] | no_license | Joaoguzman/joaogzmn | 6e61a5df53656e0fad1513fa3325269c7021ee07 | 18ffca0c8f7b007c3015e5d1a443048c0c37a699 | refs/heads/main | 2023-05-08T00:16:19.227856 | 2021-05-14T15:21:27 | 2021-05-14T15:21:27 | 355,348,539 | 0 | 0 | null | 2021-05-13T14:31:45 | 2021-04-06T22:44:15 | null | UTF-8 | Python | false | false | 583 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return render(request, 'base/home.html')
def backend(request):
return render(request, 'base/backend.html')
def researchopinion(request):
return render(request, 'base/researchopinion.html')... | [
"joaogg@ug.uchile.cl"
] | joaogg@ug.uchile.cl |
573b1dc7aba33616134017c467b51f6691588f5e | c03f733d39f620c9d9cd3a46a73a6881bb5c1120 | /main.py | 95a5345a6d48731e99560894ded5cdc3d249b6e5 | [] | no_license | rishikk/multiversebot | 5cdc37e637ad444995fb6bb35f241a33a039925f | ee3508b8d680e083e392cea0a4f755f1408e5aca | refs/heads/master | 2020-04-21T06:26:48.701391 | 2019-01-30T08:45:48 | 2019-01-30T08:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111,644 | py | import discord
from discord.ext import commands
from discord.ext.commands.cooldowns import BucketType
import asyncio
import colorsys
import random
import platform
from discord import Game, Embed, Color, Status, ChannelType
import os
import functools
import time
import datetime
import requests
import json
import praw
im... | [
"noreply@github.com"
] | noreply@github.com |
76f73572655c215a9d002b9fcf638fd6e98ce9c4 | b3b21fd7040b73a41f1d504366aeb681f216fa52 | /Jumping on the Clouds.py | 074c9bc50a203ff5e921b9fb4f445a2d9c1006cc | [] | no_license | ljshope/HRank | 98d8030faaf9b1b9ad81bf9174664e10a3d0f8a1 | a2efbdfea7cb72cb1ef91876cc4f8c90c1b7d091 | refs/heads/main | 2023-03-03T22:55:29.372347 | 2021-02-06T22:35:21 | 2021-02-06T22:35:21 | 332,272,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # -*- coding: utf-8 -*-
def jumpingOnClouds(c):
steps = 0
current= 0
while current < len(c)-1:
if current + 2 < len(c):
if c[current+2] == 0:
current += 2
else:
current += 1
else:
current += 1
steps += ... | [
"noreply@github.com"
] | noreply@github.com |
5d2f6b9cf9964b379a4c1ee6226d84a2a44a6a5d | be08b95d4c381a99299be9686daf613f0ac78fdf | /part1_9th_class/PrivilegesAdmin.py | f328865cd2b19556ce7b99b939f9f9463ff640fd | [] | no_license | LHB6540/Python_programming_from_entry_to_practice_code_demo | 433dca09707a473fa908a419b7da4452e206441f | 9ed6167a94301ab5d9ddc8b7446da2ac18dafdd8 | refs/heads/master | 2023-02-17T09:53:13.766324 | 2021-01-20T05:51:45 | 2021-01-20T05:51:45 | 293,476,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import User
class Privileges():
def __init__(self,*privileges):
self.privileges=privileges
def show_privileges(self):
for i in self.privileges:
print(i)
class Admin(User.User1):
def __init__(self,first_name,last_name):
super().__init__(first_name,last_name)
self.... | [
"lhb6540@gmail.com"
] | lhb6540@gmail.com |
ff37490e37c1446938d6c142fd5bd1f3ab298ea2 | 91f966eaabf3d788f2d2e27dfa547fffb4cd6174 | /mail/forms.py | 77f5f553d12ab4c1a82813182418c6e2ea450fed | [] | no_license | skols/flaskbooksuper | 12d1af644a75d5f5cfda659749d7ed46fd3d104b | 05df48da7db2596b2d7af5da8c88da655856238e | refs/heads/master | 2021-01-12T12:07:17.691475 | 2016-12-14T01:26:12 | 2016-12-14T01:26:12 | 72,306,298 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from flask_wtf import Form
from wtforms import validators, StringField
from wtforms.widgets import TextArea
from flask_wtf.file import FileField, FileAllowed
class MailForm(Form):
images = FileField(
"Select images",
render_kw={"multiple": True},
validators=[
FileAllowed(["jpg"... | [
"mikeskolnik75@gmail.com"
] | mikeskolnik75@gmail.com |
682f79637410169e32b6f2d4e72fc057f7c65e97 | 758a8f5a6f8585b18897744868153ca78e8ff14e | /trabajo-practico-7-arboles/program.py | e0f924440a220a4e8d36c761415db749f350897f | [] | no_license | Midorihtml/estructura-de-datos | c81d6eb68573799299146115b17a4bfe117caba2 | fcad9b20d56a09cabb0f567c49753b8a2aeeb749 | refs/heads/master | 2022-03-14T12:17:01.231084 | 2019-11-26T00:06:28 | 2019-11-26T00:06:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
import ABB
arbol = ABB.ABB()
arbol.insert(25)
arbol.insert(10)
arbol.insert(33)
arbol.insert(5)
arbol.insert(22)
arbol.insert(1)
buscado = arbol.search(54)
maximo = arbol.maximum()
minimo = arbol.minimum()
lista = [25, 10, 5]
print(arbol.searchPath(lista))
| [
"melianlucasnahuel@gmail.com"
] | melianlucasnahuel@gmail.com |
fd9df452e3afb92a21b4255e91ae5edd374bc08f | b2b88cb1febd8b3b3ed8d5de24f13cba12e96e99 | /measure_loss.py | d09e350447ee8a32570764e674df47ef2a1b2ebb | [] | no_license | qiaowenchuan/rlpricing | 9a2721ad8f0d0e7d7e1f8ebd21e04607d2725064 | 24c19590c3f519e18166646f0f9e8e7a859e4f8c | refs/heads/master | 2022-11-16T10:42:10.099183 | 2020-07-14T09:47:56 | 2020-07-14T09:47:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import json
import os
import numpy as np
import matplotlib.pyplot as plt
def measure_loss(dir):
files = [os.path.join(dir, "train_history_{}.json".format(i)) for i in range(0, 10)]
losses = []
for f in files:
with open(f) as file:
cont = json.load(file)["losses"]
losses.app... | [
"alex.kastius@qwrz.de"
] | alex.kastius@qwrz.de |
81aae8dda3cfa375499e2336e5a1a46bb0c57c6b | 849493b90af8bfda3e1a460126b985edba7c3833 | /visualization.py | 4a8751cdcd233dd7f4da4109ca77bab116542b0c | [] | no_license | ertenggang/image | a6956bb0cd8ffd42e38c49e662d6a88680543269 | ff7ab609514c7349949dfc2e6059c7831b2c4bb2 | refs/heads/master | 2020-04-06T04:26:22.002269 | 2017-02-23T09:54:06 | 2017-02-23T09:54:06 | 82,910,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | from utils import get_image_name, get_timestamp
import os
result_root = 'results'
def adapt_srcpath(pathname):
return pathname.replace('.', '../..',1)
def generate_casetable_image(match_list):
html = '<table>'
cnt = 0
for ml in match_list:
cnt += 1
pic_row = '<tr><td>'+str(cnt)+'</td><td><img src="' ... | [
"wenjing_zhuang@htc.com"
] | wenjing_zhuang@htc.com |
779b9c8c3a549d32165a35f31ee831e235df31a8 | 2a3333e42018583216921e8beda60e1379a9634b | /config.py | c6f4738f7116ac6454bc75eec1a67e058f77fdd3 | [] | no_license | MrLiupython/MyPay | 99bba6d267fe5a29c9acf4977c15c46c283a91cb | e6c8362d7bb29b5f8bd55e4b1219ed5e091b917a | refs/heads/master | 2020-03-25T00:10:32.862009 | 2018-12-23T15:30:39 | 2018-12-23T15:30:39 | 143,172,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | # -*- coding: utf-8 -*-
import os
DEBUG = False
BASEDIR = os.path.abspath(os.path.dirname(__file__))
TEMPLATEDIR = os.path.join(BASEDIR, "templates")
SQLALCHEMY_DATABASE_URI = "mysql://root:passwd@127.0.0.1:3306/mypay?charset=utf8"
try:
from local_setting import *
except ImportError:
pass
| [
"18270881162@163.com"
] | 18270881162@163.com |
48dceef61c9045e48cc3bed6c6933478b66a840c | cad9110acdf03e7db9bec5dabe01cb9fff65aab9 | /tests/test_process_and_save_capitalized_headlines.py | fe7591e1462565fa1f5bfe3c2e703851d10fcfb8 | [
"MIT"
] | permissive | xiaohan2012/capitalization-restoration-train | f3a473413b1ce97692ee94507cbb8aa374ad4aba | 24f9236a553ac91f4e291625e5616d8558f80d3e | refs/heads/master | 2016-09-05T09:32:02.654651 | 2015-09-07T19:22:13 | 2015-09-07T19:22:13 | 41,725,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import os
from nose.tools import assert_equal
from capitalization_train.process_and_save_capitalized_headlines import process_and_save
from pathlib import Path
CURDIR = os.path.dirname(os.path.realpath(__file__))
target_dir = CURDIR + '/data/puls-format-raw-capitalized/'
def test_process_and_save():
# remove fil... | [
"han.xiao@cs.helsinki.fi"
] | han.xiao@cs.helsinki.fi |
9e9b2a6eb0fac3538aa52817165e477a93645c6d | d21b41fa19cd9a0b092fa4d234ff9bb6890b34d2 | /Code/Question_B/B.py | 939afd656a43793efa01f64196d262a21ef8f5e8 | [] | no_license | SoBeRBot94/LDSA-Assignment-A2 | ca734cbb698249cab1645438275bd1ca85f02710 | ae70f3e2f7151b631b54582b0b22ac7e931225dd | refs/heads/master | 2020-03-19T15:02:37.584228 | 2018-06-27T17:34:25 | 2018-06-27T17:34:25 | 136,653,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | #!/usr/bin/env python3
# Python Script For All Tasks in Question B
import pyspark as pys
sparkC = pys.SparkContext()
from pyspark.sql import SparkSession
ss = SparkSession.builder.appName("Python - Spark SQL basics").config("Spark.Conf.Options", "random-value").getOrCreate()
Data_A = ss.read.csv("/home/ubuntu/DATA/... | [
"sudarsan.bhargavan94@gmail.com"
] | sudarsan.bhargavan94@gmail.com |
cc88bf77e0a4a702831beb218e67616454076f31 | 92e90aa134e4f95b4289e9687baaafc22511298b | /main/migrations/0002_matrix_user.py | 31d4b6b061e6969d904ca803a45a1f2a098ab718 | [] | no_license | artemchege/Sudoku_app | d9170db183a6500256b19994b6e6b3d958b49a48 | 2e0f7504127f8d2f8f6a6a7ce75fcfbb11b62879 | refs/heads/main | 2023-03-05T13:17:28.360367 | 2021-02-20T13:58:47 | 2021-02-20T13:58:47 | 340,658,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.6 on 2021-02-19 08:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='matrix',
name='user',
field=mo... | [
"elf0@list.ru"
] | elf0@list.ru |
a9e9e39af8ee92b0bba4707c28c6f54219d54710 | 3f327d2654b85b922909925b9f475315d78f4652 | /Backend/lib/python3.6/site-packages/twilio/rest/api/v2010/account/outgoing_caller_id.py | 628e08a85f4247c7f5276900e177aa432bd198b0 | [
"MIT"
] | permissive | brianwang1217/SelfImprovementWebApp | 8db45914027537aee9614f9d218c93cc08dc90f8 | 7892fc4ee5434307b74b14257b29a5f05a0a0dd7 | refs/heads/master | 2022-12-13T15:01:08.595735 | 2018-06-23T04:46:06 | 2018-06-23T04:46:06 | 137,548,289 | 1 | 1 | MIT | 2022-05-25T01:28:29 | 2018-06-16T02:48:52 | Python | UTF-8 | Python | false | false | 15,446 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.... | [
"talk2shreyas@gmail.com"
] | talk2shreyas@gmail.com |
b1b922b2ba0bb38997382c3bc4b6650232546d50 | 5025f0108a1565c4b1cdd9b29f67c0e8a8e29214 | /common/decorators.py | 950c0d35ed8a4597cfde51e7cb2088af7c21f6bb | [] | no_license | Allirey/pet_social_network | 7b35260ef3476822275e4f0f569d1d6877bd7879 | 0281851e7711a5962f038ec5d4f4089ba89a2463 | refs/heads/master | 2022-03-23T13:49:59.525265 | 2020-01-21T20:24:16 | 2020-01-21T20:24:16 | 235,074,880 | 0 | 0 | null | 2022-02-10T14:12:47 | 2020-01-20T10:24:24 | Python | UTF-8 | Python | false | false | 310 | py | from django.http import HttpResponseBadRequest
def ajax_required(f):
def wrap(request, *args, **kwargs):
if not request.is_ajax():
return HttpResponseBadRequest()
return f(request, *args, **kwargs)
wrap.__doc__ = f.__doc__
wrap.__name__ = f.__name__
return wrap
| [
"slavik.1121@gmail.com"
] | slavik.1121@gmail.com |
4f32af36b955e1cb1019be51da1836422aad1cf2 | c9a6ab174375f22485e6151110d7af4b215437b7 | /myapp/admin.py | 644e796386f6ec139917a79f8f1bb7acf1e574b4 | [] | no_license | soyelrana/django-project | 2166210ee4785f33d6b20a50cb13915d48b37501 | ca2aab2516e39a6de2c18f36072d1eaa8b637ad0 | refs/heads/main | 2023-04-22T05:17:55.953614 | 2021-05-07T17:21:50 | 2021-05-07T17:21:50 | 362,413,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.contrib import admin
from .models import Profile
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
list_display = [
'name',
'age',
'address',
'image'
]
admin.site.register(Profile, ProfileAdmin) | [
"soyelrana@gmail.com"
] | soyelrana@gmail.com |
d75f9408e2c8d7576325a067183b8a0208221e8a | 012d343006efb71f506c09853f095044719f272a | /Implementation/Simulation/Security_Sensor/security_sensor.py | d8bff6e36daf92068dea6b4d2cdc94d512a577f3 | [] | no_license | krisod01/CIVIDS | 591b79a1de678ea2423c0333b3dc0d2ecfc2f257 | 2843b67c2f1ab62a3bd55b6b37e6d00f4039f257 | refs/heads/main | 2023-04-06T11:12:28.927211 | 2021-04-24T07:34:59 | 2021-04-24T07:34:59 | 360,902,705 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 13,828 | py | import can
import tensorflow as tf
import numpy as np
import sys
import time
import json
import isotp
import logging
import traceback
import pandas as pd
import time
from queue import Queue
import threading
from pathlib import Path
# ___ _ _ _
# / __| ___ | |_ | |_ (_) _ _ __ _ __... | [
"daniel.aryan@sendify.se"
] | daniel.aryan@sendify.se |
ec7f623c696363ec82e593a0d6aac0e53ec677b5 | 26d450ba94d06ce9ff2ced9e41c2daf6ea011118 | /demo/demo3.py | 49f164c4895737804908e1e03a4f0aff2eb7e256 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Correct-Syntax/ui-style-lang | d0a9ac478dc9c7572d0d663b48eea0c07dd48705 | 5c6dc9f1cd50de35c5745082dd02dc572f794ccc | refs/heads/master | 2023-04-28T20:01:03.866809 | 2021-05-14T14:38:49 | 2021-05-14T14:38:49 | 267,696,517 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | # Demo for UI Style Lang
# ======================
# This demo file (demo3.py) is MIT licensed - (C) 2020 Noah Rahm, Correct Syntax
# Usage:
# It's a custom button...click it!
# This demo is up-to-date
import wx
from uistylelang import UIStylePDC, UIStyleApp, UIStyleFrame
class MainApplication(UIStyleFrame):
... | [
"correctsyntax@yahoo.com"
] | correctsyntax@yahoo.com |
f5e0d036527d0a18a256d5775a335b514809cc4a | 63517d689745e53fca27fc8c90f8f564ccdcb955 | /Project5/Scripts/Nearest neighbour.py | 7fc66f4c1ab436c31b0280e6808f0a4cbcac36d7 | [] | no_license | ethorsrud/FYS4150 | 84888240601b71f68240b8507f39d98e33915cd4 | c88e95d8868a0942b5b03c22faf127f4493b5b86 | refs/heads/master | 2020-03-27T14:14:09.539256 | 2018-12-04T20:10:13 | 2018-12-04T20:10:13 | 146,651,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | import numpy as np
import matplotlib.pyplot as plt
import sys
from scipy.special import gamma
#files = ["histogram_lambda05_alpha05.txt","histogram_lambda05_alpha10.txt","histogram_lambda05_alpha15.txt","histogram_lambda05_alpha20.txt"]
#files = ["histogram_lambda00_alpha05.txt","histogram_lambda00_alpha10.txt","his... | [
"noreply@github.com"
] | noreply@github.com |
54e56d3796c7388eebaad5987d8a272392270aa4 | 98c5f94dc49cea5498bac23f886c8888760d87a2 | /src/python/comp-240/exercises/ex_flask_restful_sql.py | 2a057ed0dbeaba643b4517011b2fe87d2ca38be9 | [] | no_license | ChrisH40/cohort3 | 681eae076e1d689b3cf20439a82ce12373d2e9b9 | f5f59f1fede978da49a8a9f8c752d41bbc71170b | refs/heads/master | 2023-01-23T15:41:10.702917 | 2020-04-22T19:41:44 | 2020-04-22T19:41:44 | 213,471,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from flask import Flask
from flask_restful import Resource, Api
from flask_jwt import JWT
from ex_flask_restful_sql_sec import authenticate, identity
from ex_flask_restful_sql_user import UserRegister
from ex_flask_restful_sql_item import Item, ItemList
app = Flask(__name__)
app.secret_key = 'test key'
api = Api(app)... | [
"56125851+ChrisH40@users.noreply.github.com"
] | 56125851+ChrisH40@users.noreply.github.com |
224a11648f46a15b51e73254d13a096dcaea5a31 | d0de13a312fa24b2e6fbc2a5738df430eae35f65 | /venv/bin/viewer.py | 0ce78e86e62495f9ad309d08c2d0ef8ad3d07d16 | [] | no_license | matthewpdias/ANN | 8ca37087bcc881f5354bb08f6be99ec830782d3e | e7a6a7e661a7762b2bdecf7158a2b2a90ecc213e | refs/heads/master | 2021-01-22T02:17:43.647389 | 2017-02-06T03:27:53 | 2017-02-06T03:27:53 | 81,042,048 | 0 | 1 | null | 2017-02-10T10:01:02 | 2017-02-06T02:58:49 | Python | UTF-8 | Python | false | false | 1,001 | py | #!/Users/matthew/Documents/CSCI_580/venv/bin/python3
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
try:
from tkinter import Tk, Label
except ImportError:
from Tkinter import Tk, Label
from PIL import Image, ImageTk
#
# an image viewer
class UI(Label):
def __init__(self... | [
"matthewpdias@gmail.com"
] | matthewpdias@gmail.com |
f29d8931f35494ef0c4151f2750cae9c27a11bf2 | 786a230e695805b0e4d5d500b149f6738e99dee0 | /totalOccurences.py | 3512763cf6daafa6e176c2e01b2eadca7e26e80e | [] | no_license | WaderManasi/Python-Codebase | cb5490d1a2a690ba22c9d031fe9433587bafa0ee | 6c0641f660486750ed41d03e12c3e07157e70c26 | refs/heads/master | 2023-03-11T04:16:24.801302 | 2021-02-19T19:39:35 | 2021-02-19T19:39:35 | 274,876,826 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | #You are given a string str, you need to print True
# if cat and hat appear same number of times in str,
# otherwise print False.
def cat_hat(str):
#string.count("substring") return total occurences
hat=str.count("hat")
cat=str.count("cat")
if hat==cat:
return "True"
else:
return "False"
def... | [
"manasiwader@gmail.com"
] | manasiwader@gmail.com |
433fcaedd95381877d573aa386ec75557259b8eb | e4170a9fb5c138fc83970445a67e7aba311bf04e | /rssdiscoveryengine_app/home.py | 98b1b7929e7e4ff71120cd27eb0fbf9b8707a1aa | [
"MIT"
] | permissive | quakkels/rssdiscoveryengine | 4e7ca0b200e560fe1cf23c834bfbabd2bf3d5027 | 591255f7f55fa2b1cccf64a147c9cea5e2ffa664 | refs/heads/master | 2023-02-27T10:10:40.393864 | 2022-08-22T17:54:01 | 2022-08-22T17:54:01 | 231,789,506 | 55 | 3 | MIT | 2023-02-15T23:04:57 | 2020-01-04T15:56:11 | Python | UTF-8 | Python | false | false | 766 | py | from flask import (
Blueprint,
render_template,
abort,
request,
flash
)
from jinja2 import TemplateNotFound
from rssfinderasync import rfasync
bp = Blueprint('home', __name__,
template_folder='templates')
@bp.route('/', methods=(['GET']))
def index():
results = None
blog_url = request.arg... | [
"quakkels@gmail.com"
] | quakkels@gmail.com |
dcbfc3f9e5bcbc6b69063cb2f5b4ff1ee2aee38e | e3dc8227b11a0de7f7a21c12b28f4cb7b6d7add1 | /Real_time_identification_1.4.1_tag/module/show_infrared_camera.py | fad12ff36db21396027853484dd6409c3f82a95b | [] | no_license | yt050297/Realtime-Identification | b8d2965e26ac3f405e33da83980ed8f76a289271 | 297b7e4773b3a65d698502db3fccf89aabc0b485 | refs/heads/main | 2023-09-02T20:59:44.490194 | 2021-10-12T07:57:12 | 2021-10-12T07:57:12 | 384,337,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,088 | py | from module.camera_manager import CameraManager
from module.camera_manager import TriggerType
from module.camera_manager import AcquisitionMode
from module.camera_manager import AutoExposureMode
from module.camera_manager import AutoGainMode
from module.imread_imwrite_japanese import ImreadImwriteJapanese
from module.c... | [
"yt050297@gmail.com"
] | yt050297@gmail.com |
df4883c22d406672fbd8142745f81241578024df | b27e46f0475e433b00bd4c082954ce07bb5fc3b4 | /Archary_game/logical_test_Archary.py | 301fb2817be23749e48257460727fea5decb6096 | [
"MIT"
] | permissive | vishalmajumdar95/Python_Simple_Mini_Project_Games | 0a73602166c8007b323e961595e77b283d697f9c | cdef54eaefc6528a2a10984e60abd0872adc56d4 | refs/heads/main | 2023-06-20T20:39:58.228460 | 2021-08-05T06:37:40 | 2021-08-05T06:37:40 | 392,921,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,267 | py | print("\n\t#######---->| Welcome in my Archary game |<----#######\n")
dic={}
for i in range(3):
Team_name=input("==> Enter Your Team Name: ")
player_name=input("==> Enter your Team Members Name (write both name with comma): ")
dic[Team_name]=player_name.split(",")
print(dic)
first,li,new,Round=[],[],[],1
wh... | [
"vishalm20@navgurukul.org"
] | vishalm20@navgurukul.org |
6dabeb942f36eadb2116ad6eda58e2993f5a2e7c | 750bed7bcaa8d5aa9740d1fb3e90df6539356cf1 | /song.py | fbacc454b1fc580782be979374a0fa6b32a43624 | [
"MIT"
] | permissive | imekon/PyMelody | 32a2a2b53fce66053bb44c7ce618877fad45c6e5 | b7f0f1b32444a326fd021ec430eb1dba9b62a241 | refs/heads/master | 2020-03-25T05:58:55.760046 | 2018-08-12T09:34:57 | 2018-08-12T09:34:57 | 143,476,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from track import *
class Song:
"""Song definition"""
def __init__(self):
self.name = "untitled"
self.ppqn = 96
self.tempo = 120
self.tracks = []
self.CreateTrack("Lead", 1)
self.CreateTrack("Pad", 4)
self.CreateTrack("Bass", 7)
self.CreateTrack... | [
"gitlab@imekon.org"
] | gitlab@imekon.org |
e1aba35210170b3381260e1036b4642f8cd26078 | 8380ea516d0671e30a42c84df50c234d8f0d266d | /manage.py | 40134650d65730f0f7f78ef816f848d939fab1ab | [] | no_license | shlee2792/my-first-blog | 393815bf648f29cd342e989005c5f97c4ba4d2f1 | 963271b33750d0976443f1019f1c4dc2bdbcd9ab | refs/heads/master | 2020-06-18T00:26:08.872721 | 2019-07-10T07:40:55 | 2019-07-10T07:40:55 | 196,110,346 | 0 | 0 | null | null | null | 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', 'new.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"shlee2792@naver.com"
] | shlee2792@naver.com |
22f0aa7f1f62cd0cb9c7cbf5e19d78af19b6c71f | 65d213225e32542d2960b3446cb7c3a697a5f8e0 | /second.py | c31ef8e13f2f6d55f0725f203a9f3d91add1cc2c | [] | no_license | CursedCode45/PianoTiles | 50fe78a2342abac376b8a716fef055d875ec0926 | 4b12ce8df6680ab34f645bd6ec81955c8f56c627 | refs/heads/master | 2023-04-03T10:55:20.931228 | 2023-03-18T12:14:33 | 2023-03-18T12:14:33 | 173,635,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import time
import pyautogui
from PIL import ImageGrab
def imageGrab2():
second = (1013, 275, 1014, 865)
image2 = ImageGrab.grab(bbox=second)
width, height = image2.size
for x in range(width):
for y in reversed(range(height)):
if image2.getpixel((x, y)) == (17, 17, 17)... | [
"noreply@github.com"
] | noreply@github.com |
65170729cfeed7ef90b350dfc90db26448c8831e | 32f8cc72ea2d2df2637bebd9a06e18748ca4a2cb | /scooby/plugins/sql/plugin.py | b67e89f39ecddb5b689d1d87e757c8e9ab9500f3 | [
"MIT"
] | permissive | bogdanbatog/django-scooby-profiler | 9463a29a26b4be1d5f3487b67a7f393df065e219 | 6f769fcd84a3860e4a89b3a66229a2f41a35f1b4 | refs/heads/master | 2020-06-11T06:18:49.946055 | 2018-12-21T10:34:42 | 2018-12-21T10:34:42 | 193,874,011 | 0 | 0 | null | 2019-06-26T09:32:13 | 2019-06-26T09:32:13 | null | UTF-8 | Python | false | false | 3,023 | py | import threading
from datetime import datetime, date
from django.db.models.sql.compiler import SQLCompiler
from scooby.plugins_base import Plugin
from scooby.utils import get_stack
def escaped_string(s):
return "'%s'" % (
s.replace('\\', '\\\\').replace("'", "''")
)
def get_escaped_params(params):
... | [
"sj.iitr@gmail.com"
] | sj.iitr@gmail.com |
bba8931a4a62513064eeee14c4e4939dd68002a0 | 40c39470ff16c6e77640b3ecb310666228bec3e1 | /com/obs/models/put_object_header.py | da56c260e18cfb5ceeb6268b4e5a7e337332be78 | [] | no_license | FunctionStage/Markdown2Html | 21e4aaff6053b970a4ae3dec471355a3a28df2ea | 8b8aa6225342febfac7516bf826f7867ba9cda5b | refs/heads/master | 2021-08-29T01:36:02.134874 | 2017-12-13T09:27:43 | 2017-12-13T09:27:43 | 109,985,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from com.obs.models.base_model import BaseModel,BASESTRING, LONG
from com.obs.models.server_side_encryption import SseHeader
class PutObjectHeader(BaseModel):
allowedAttr = {'md5': BASESTRING, 'acl': BASESTRING, 'location': BASESTRING,
'contentType': BAS... | [
"shibaotong@gmail.com"
] | shibaotong@gmail.com |
18f9cdc1721418b3b2061d39edf43d18aa221062 | 8e36d0c36ee302f6082d1ab5d0be81266af58192 | /config/urls.py | c167172ff164f78666cafd65c0569b122fabd798 | [] | no_license | miqueiasazevedo/django-react-app | 48b1dfca1f42be2ed078c7558794f0e152a1a817 | 17ee21addcb9f9cb98f9499cda3a4cc682d6aa3e | refs/heads/main | 2023-08-21T09:24:28.650789 | 2021-10-19T05:33:52 | 2021-10-19T05:33:52 | 418,034,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"miqueias.azevedo@hotmail.com"
] | miqueias.azevedo@hotmail.com |
6a67bbcec114cf1ddd1d2547514c5445d6ead3ac | ff305e7de4d5ddb1db5b413f345eac10196303e1 | /tests/unit/test_connection.py | 3b4f115346e9d9c884b719eb69713610bce27de7 | [
"MIT"
] | permissive | hibobby/pyredis | b52722d4a9876ec315fe1382979cfba554f8d300 | 5cba08815a26d1127514e82d4909c29e8c7ffb49 | refs/heads/master | 2020-06-18T09:55:29.459749 | 2016-09-13T15:08:00 | 2016-09-13T15:08:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,441 | py | from unittest import TestCase
from unittest.mock import Mock, MagicMock, PropertyMock, call, patch
from pyredis.exceptions import *
import pyredis.connection
from pyredis.protocol import writer, Reader
import socket
class TestConnectionUnit(TestCase):
def setUp(self):
self.addCleanup(patch.stopall)
... | [
"stephan.schultchen@shopgate.com"
] | stephan.schultchen@shopgate.com |
3a28f8f33d4492d8f2c8922de5dcebfd6fbd2cff | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/django/contrib/comments/templatetags/__init__.py | f5f7397defa1565158775adfb5cee392fb466f4d | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/django/contrib/comments/templatetags/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
ec4b8fa82a70755efc41b313178065088139a92a | fe6c608b409b139cfdadd13102b7b6f40c3d1f46 | /keypad.py | 254045ca8eb69e95f15d0fa651e6b7c3d9a164d3 | [] | no_license | kevinmcaleer/keypad | da7324187df3752b0bf11bff57768d529023e46a | 4053161f393addb518bfc4cd3c1b20f5e0c43078 | refs/heads/main | 2023-04-25T18:30:06.368814 | 2021-05-18T19:43:53 | 2021-05-18T19:43:53 | 368,648,645 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | # A simple keypad Demo
# Kevin McAleer
# May 2021
from machine import Pin, Timer
from time import sleep
class KeyPad():
# CONSTANTS
KEY_UP = const(0)
KEY_DOWN = const(1)
def __init__(self):
keys = [
'1', '2', '3', 'A',
'4', '5', '6', 'B',
'7... | [
"kevinmcaleer@gmail.com"
] | kevinmcaleer@gmail.com |
bf50837fd80b831d40a6bba91fc419a1019c4bd2 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/Amazon/S3/__init__.py | 905fa3010c0e9c654a3d2c2b1a47f51be344b1f9 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from PutBucketACL import *
from GetBucketLocation import *
from DeleteMultipleObjects import *
from GetBucketWebsite import *
from DeleteBucketCORS import *
from DeleteBucketTagging import *
from GetObjectACL import *
from ZipBucket import *
from DeleteBucket import *
from PutBucketWebsiteRedirectAll import *
from GetB... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
9e2d3cebcf48028ed81634ea26699d80d74e08bd | 74f0c966d09786f447ad60bf837ea342cb405874 | /neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py | 1437e0cd4203167b172302fcb4514f6b1a8a20d2 | [
"Apache-2.0"
] | permissive | mrwukang/neutron | ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e | ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506 | refs/heads/master | 2020-04-11T18:24:09.601969 | 2019-01-02T15:42:05 | 2019-01-02T15:42:05 | 161,997,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,153 | py | # Copyright (C) 2014,2015 VA Linux Systems Japan K.K.
# Copyright (C) 2014,2015 YAMAMOTO Takashi <yamamoto at valinux co jp>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of t... | [
"wukangmr@163.com"
] | wukangmr@163.com |
8dd1449968b7711671043c3b06cf9150057942e1 | 6a4ca53f67478ac40b7381a79b506c22860764b5 | /disambiguation/solr.py | 1865232075b658a0cbe8fea720d9d7ed50246ac0 | [] | no_license | KBNLresearch/europeananp-dbpedia-disambiguation | a63e829eb58469441c14413562c2ff6e3f2eae5f | 4b0a742d4da9673bef11eb748cb9e93f16fb0bbf | refs/heads/master | 2021-01-13T16:14:29.197138 | 2015-02-23T14:07:27 | 2015-02-23T14:07:27 | 28,925,206 | 19 | 8 | null | null | null | null | UTF-8 | Python | false | false | 37,657 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"rene.wiermer@kb.nl"
] | rene.wiermer@kb.nl |
80753a553c22d7c2e674361946fe38b70193bf01 | 1473c3ff7325877b7f5f1407b2826b987f4b4160 | /client_side.py | 0a7ede92c32bc97e52a0b3e87327bb5c988d3cc5 | [
"MIT"
] | permissive | aup8497/Cluster-Mining-Optimisation | 22baa42360cedf8d31de9b9def7cd2a465500474 | fad3c6973e6c29d0bd4d8ead08f48c334ed63873 | refs/heads/master | 2020-03-16T20:25:48.254261 | 2018-05-10T21:54:36 | 2018-05-10T21:54:36 | 132,958,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import hashlib
# importing the requests library
import requests
import json
import time
user_id = 0
public_hash = 'unique_public_hash'
hash_rate = 100000
STATIC = True
# api-endpoint
def request_for_bin_dynamic():
# user_id = input('Enter id')
global user_id,public_hash
# public_hash = input('Enter public key/hash'... | [
"akshayup609@gmail.com"
] | akshayup609@gmail.com |
45f7d6640d54487c65e80d66873f223778594a69 | 467f5a1c898a5784b25efcd7a4c29a0de9404fc8 | /candy/migrations/0008_record_num.py | 91e847a340bfe8ccb4191565ca1176e42d01afbe | [] | no_license | nkuhero/candyPocket | e6fbaf1671ad28a106bbf54e404511fcbc24c564 | a8684cf1a57d58713396cbd87078f8656c89c05e | refs/heads/master | 2020-03-19T20:20:36.662472 | 2018-07-05T07:30:08 | 2018-07-05T07:30:08 | 136,897,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-29 17:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('candy', '0007_auto_20180529_1636'),
]
operations = [
migrations.AddField(
... | [
"nkuhero@qq.com"
] | nkuhero@qq.com |
fc9ccdb35d1c1133a1c88e93c1f342dbb1b6a884 | a515f1f667fb733a50f8a05b5e3912ede151d25a | /students/admin.py | 4fe90520c6750353660502d1c381d53bae364a0c | [] | no_license | MarmaghanM/myproject | cccca5dbc8c6c90965565607f3c8f0bca4771a99 | 48900f77db89b31f6e591ace45e972431c7e1d9d | refs/heads/master | 2022-04-16T02:25:47.939296 | 2020-04-18T07:57:10 | 2020-04-18T07:57:10 | 256,699,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
from.models import *
admin.site.register(Student)
# Register your models here.
| [
"armaghanmajeed29@gmail.com"
] | armaghanmajeed29@gmail.com |
d4e3b2a834052158808ebca9cf91dac01c3c1649 | bcbfc81f72c4c3555244f7eaa465eecc7e08f9b9 | /create.py | c3e083a2062b8acb1a6d41f84fd8a4b60fe52b48 | [] | no_license | Aaron1011/steamedhams_sync | 1a32bd3d8723002e2672ceb30e1285ffb7d63617 | ae164500edc3d642081839a48eb91c312314dca4 | refs/heads/master | 2020-04-10T04:00:42.661561 | 2018-12-07T07:12:41 | 2018-12-07T07:12:41 | 160,785,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | from moviepy.editor import *
import sys
def main():
num_copies = 10
sync_point = 134
delay = 1
base_clip = VideoFileClip('input.webm', buffer_all=True)
clips = []
for i in range(num_copies):
# We want the clip to reach sync_point
# after sync_point seconds have passed
#... | [
"aa1ronham@gmail.com"
] | aa1ronham@gmail.com |
1cccf574691ee52acc509f72d18952c9c844ed34 | 1f3461997c6859832bfa65a564b192966683b606 | /258.各位相加.py | 06692637ad08cd64711252636e0da6dc884ba972 | [] | no_license | kailunfan/lcode | ff58fed1ed4c0b8391666618a6391b9bf4d8e617 | 69cf9087d5ef48aef9126c8279502488e36f97e3 | refs/heads/master | 2023-08-18T18:30:03.485528 | 2023-08-14T01:34:45 | 2023-08-14T01:34:45 | 292,148,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #
# @lc app=leetcode.cn id=258 lang=python
#
# [258] 各位相加
#
# https://leetcode-cn.com/problems/add-digits/description/
#
# algorithms
# Easy (66.26%)
# Likes: 250
# Dislikes: 0
# Total Accepted: 41.6K
# Total Submissions: 62K
# Testcase Example: '38'
#
# 给定一个非负整数 num,反复将各个位上的数字相加,直到结果为一位数。
#
# 示例:
#
# 输入: 38
#... | [
"fankailun@chengfayun.com"
] | fankailun@chengfayun.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.