blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f770460af92c083939a9077de2e0ff05c4d2e287 | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_Mchi-55_Mphi-100_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_230000_21_cff.py | 46e64e91dd2c9553f431c1f2ed047e1d5fbdff6d | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:64595', '1:67002', '1:89900', '1:77078', '1:70987', '1:89308',... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
1b12a7d6ad2c4b6ef67aca576b7ce3ed3d735639 | dbc3e853a1aa22db5d8a58c8dab04108fd82d38f | /order/migrations/0004_auto_20181004_1605.py | 7e690da0f34a3ec30a4a2ac5a5c67bf7ffff7c34 | [] | no_license | izonenav/subul | a6f1baeccec936f91a27ce0ddbb098e13c385b9a | 8128666d4e14878cfb04e7a35eb7e1178c61756e | refs/heads/master | 2022-11-13T04:47:40.943093 | 2020-07-14T02:29:09 | 2020-07-14T02:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Generated by Django 2.0 on 2018-10-04 07:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('order', '0003_auto_20181004_1557'),
]
operations = [
migrations.AlterField(
model_name='order',
... | [
"sugohaseyo93@gmail.com"
] | sugohaseyo93@gmail.com |
63293f3162d18bbda0f7150cfc3e85c652108004 | 04e99e6d9375cd6fe2d0f872539c9f86245466c1 | /60-1.py | a92aa1b5294afbce04f1ec3a739324f0caca20de | [] | no_license | joyce0623/AE401-Python | 5265612e19c0526d54a6236b8817768df3d34b57 | 92f742e93cb1d851d562c962ccb2825ca03b9d74 | refs/heads/main | 2023-03-01T22:08:59.629509 | 2021-02-05T06:06:32 | 2021-02-05T06:06:32 | 334,825,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | score=input('請輸入成績')
score=int(score)
if score>60:
print('PASS')
elif score==60:
print('低空飛過')
else:
print('gg')
| [
"noreply@github.com"
] | noreply@github.com |
8239948750c25d3e8bbbcbdfe375b03ae5d8dc57 | 7fe4daab7282d08933cef12b1bd9dfb4671c3817 | /logging/adv_logging.py | 77bd967eb6e9ed1e6194e30240029aa97d7b1ade | [] | no_license | cheshen1/python_summary | 0055ea34bb7527934e8bf7d45fb923395cb2b4ce | c3e62190202d4c80ca5e9bba4f73cefa003d05ed | refs/heads/master | 2020-03-11T22:45:35.390689 | 2018-04-21T20:39:01 | 2018-04-21T20:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import logging
import logging.config
import json
with open('conf.json', 'r') as fd:
logging.config.dictConfig(json.load(fd))
logger = logging.getLogger('simpleExample')
logger.debug('debug level')
logger.info("info level")
logger.warning("warning level")
logger.error('error level')
logger.critical('critical leve... | [
"shenche@momenta.ai"
] | shenche@momenta.ai |
d3a513e37855de056093224b683e5255b9333014 | 7c278ab8887095e82b074464527c349cc67bad65 | /spider_review/822/show_timeout.py | fc13baf6cb9fe6f57112f92f72b59fa5704304b1 | [] | no_license | Berg1994/project_test | a452f01ffc9b01f7cdda060e84ee80d4aef2e31b | 56ed0a04e4e5ea3a3e60d0aa9db3918818dcfa6d | refs/heads/master | 2020-03-22T16:58:06.179871 | 2018-08-31T01:08:22 | 2018-08-31T01:08:22 | 140,363,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | import urllib.request
response = urllib.request.urlopen('http://httpbin.org/get',timeout=1)
print(response.read().decode('utf8')) | [
"18200353192@163.com"
] | 18200353192@163.com |
fd400b0ea89ea5ce4a711be812d9523550c30172 | 8bba6bc097af5161946ffbaa18d69cf3d3fac44f | /processFile.py | dc872a2e1201513970bf32f3799a4c4834d038cf | [] | no_license | fahimbinkhair/python-for-beginner | 8febf40c205a5a17a3e9e2f707316d0e69df0d4e | db15850e9b88a421ac191c33c05d821917504304 | refs/heads/master | 2021-06-16T06:14:53.427621 | 2021-04-11T12:01:52 | 2021-04-11T12:01:52 | 190,476,364 | 0 | 0 | null | 2021-04-11T12:01:32 | 2019-06-05T22:18:53 | Python | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/python3
from lib import DB
from datetime import datetime
db_conn = DB.DbConn()
sql = """ INSERT INTO student
(name, address_line_1, address_line_2, postcode, when_created)
VALUES
(%s, %s, %s, %s, %s)"""
# open and read the file line by line
lines = open("student.txt", "r... | [
"visionq9@gmail.com"
] | visionq9@gmail.com |
c44711e666d734e379abb3124c353bfc29294675 | 7e62f0928681aaaecae7daf360bdd9166299b000 | /external/DirectXShaderCompiler/tools/clang/utils/check_cfc/obj_diff.py | f89ffd12de55259283b177f26b3af86efdfc3de9 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yuri410/rpg | 949b001bd0aec47e2a046421da0ff2a1db62ce34 | 266282ed8cfc7cd82e8c853f6f01706903c24628 | refs/heads/master | 2020-08-03T09:39:42.253100 | 2020-06-16T15:38:03 | 2020-06-16T15:38:03 | 211,698,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | #!/usr/bin/env python2.7
from __future__ import print_function
import argparse
import difflib
import filecmp
import os
import subprocess
import sys
disassembler = 'objdump'
def keep_line(line):
"""Returns true for lines that should be compared in the disassembly
output."""
return "file f... | [
"yuri410@users.noreply.github.com"
] | yuri410@users.noreply.github.com |
908fc268a280cf50cef0db9a60f38306992badae | e288eda6ddbba137a33f137cbf0b23b003847b4d | /auto/exception.py | 7987b78e9f1cca64b7b817dff19fd232715b7476 | [
"MIT"
] | permissive | awake006/auto | f0e932f86e51d2a624f1ffb30c96edf31a59b77d | 7966115621e342dcac3feab45289358dd7b85cbd | refs/heads/master | 2021-06-24T04:56:16.479874 | 2019-06-14T07:33:10 | 2019-06-14T07:33:10 | 99,061,581 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | class TestCaseNotException(Exception):
pass
class ParameterBuildFailedException(Exception):
pass
class ResponseErr(Exception):
pass
class ReturnFormatException(Exception):
pass
class CaseFailException(Exception):
pass
class CaseRequiredDataException(Exception):
pass
class ParameterFo... | [
"hietel366435@163.com"
] | hietel366435@163.com |
a345bd157f88e5758b1a12545dce0ad7fc4fd07b | 3dbe42f81501c7538741b03d634eefdedcd95e72 | /Homework/hw3_knapsack_&_slicing/hw3_template.py | 5f9ed17771a8f00197483c7903b9b249855a06c2 | [] | no_license | krodrig91/intro-to-prog-python | 195025958bcbeeda0e40c57570ee2729440e2ba3 | 19aeb980c3acbe819368c36c9239e4c19795262e | refs/heads/master | 2020-05-17T02:34:29.787831 | 2015-09-10T01:35:48 | 2015-09-10T01:35:48 | 42,210,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | # Be sure to submit hw3.py. Remove the '_template' from the file name.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' PROBLEM 0
' Implement the function giveChange() here:
' See the PDF in Canvas for more details.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''... | [
"krodriguez@Kelvin-Rodriguezs-MacBook-Pro.local"
] | krodriguez@Kelvin-Rodriguezs-MacBook-Pro.local |
92a0a08e2763650f2669521f631586dc290cc80f | 20109ea82489e7eb55a76812d34ff8ada0b1a4d5 | /scripts/generate_gene_fasta.py | 478f5f65c40c15dfa5dd61a06d36159326f7d16e | [] | no_license | mbhall88/tubemaps_pilot | e8ece81f5ec8f456cc9abb2f34d770de10fcba14 | 31471f2afb390be9340d213cb4e91019b81f69d2 | refs/heads/master | 2022-11-25T22:56:22.222974 | 2019-06-19T13:08:08 | 2019-06-20T05:39:13 | 109,889,266 | 1 | 1 | null | 2022-11-08T22:05:07 | 2017-11-07T20:50:09 | xBase | UTF-8 | Python | false | false | 2,185 | py | """
The purpose of this script is to take a GFF file and a reference genome and
generate a fasta file for each gene in the GFF file - based on the coordinates
in the GFF file. The GFF file should obviously be for the given reference genome.
First argument is the reference genome.
Second argument is the GFF file contain... | [
"mbhall88@gmail.com"
] | mbhall88@gmail.com |
f1e29b62c9a28e72424aa83a0914d9bb39afb379 | 30c43c3ecea184bccfa63a5b94af7553aff26208 | /Scrapy/Maoyan/Maoyan/pipelines.py | 23355ac6f14c0d25fc78006d6ffc63bc226b57f2 | [] | no_license | wangxinchao-bit/SpiderProject | d1f8940b4e7b33e28f93120d18cb4685714bb97f | 771d71e39635840e93bd43dbfe3731c80e7b81b0 | refs/heads/master | 2023-02-24T23:55:08.112114 | 2021-01-30T02:21:18 | 2021-01-30T02:21:18 | 329,494,442 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # -*- coding: utf-8 -*-
import csv
# 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 MaoyanPipeline:
def process_item(self, item, spider):
print('*'*50)
print(item ,'\n')
... | [
"303894637@qq.com"
] | 303894637@qq.com |
eba1f95254ed280e1ccf7b3ad2d9ca703ea47941 | f485dff7fcb036868d6e4053a7a6ccd7f95214bf | /week11/triathlete_v3_111.py | 3cece7689cd808f21dbf758baf8fc6549c695eb9 | [] | no_license | jamesfallon99/CA117 | aa4f851365aafe8a4888c85e1b8b2f571e2c9b2a | 0055ccbbd710453c9574930b361c26fcde2b9036 | refs/heads/master | 2020-06-28T14:26:06.829418 | 2019-08-02T16:41:38 | 2019-08-02T16:41:38 | 200,254,591 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | #!/usr/bin/env python3
class Triathlete(object):
def __init__(self, name, tid):
self.name = name
self.tid = tid
self.times = {}
self.race_time = 0
def add_time(self, sport, time):
self.times[sport] = time
self.race_time += time
def get_time(s... | [
"noreply@github.com"
] | noreply@github.com |
112c208e0ac353fc8cd0be37ffb0547e0eee41a2 | d6a24411501e6a004e3f5357830d9eafb85651e4 | /mysite/stockAnalysis/forms.py | 1245aa4e2c00854ed84e5ce7a64d4d39ac95212a | [] | no_license | kelvonlys/Double-Top-and-Bottom | f38957753ef059362dc86a194eff217adcaa369f | 9ac0e9993e23d20bd542137bd4f685d448bbdc9f | refs/heads/master | 2023-03-10T06:01:09.600940 | 2021-02-20T15:43:39 | 2021-02-20T15:43:39 | 340,569,010 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django import forms
class NameForm(forms.Form):
stockNum = forms.CharField(label='Stock num', max_length=100) | [
"kelvinlys950227@hotmail.com"
] | kelvinlys950227@hotmail.com |
013f2e30cd5d895440421b5907eff3e4fb6a0c0e | 5333649845c6c6dbee1be2cea7250ac97f1c4d91 | /spider/app_spider/app_spider/run.py | 9148e834890f1247d69c3c2bfa1ef507d36fad4e | [] | no_license | shy-shhy/Top5 | 8c9ef21cb7bc73f245cbcfa47156f9fcb5e3aaff | e3b542b7867fc59084a845ff6206f091239e1797 | refs/heads/master | 2022-11-12T10:09:10.483114 | 2020-07-02T10:54:49 | 2020-07-02T10:54:49 | 276,609,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from scrapy import cmdline
cmdline.execute('scrapy crawl score'.split()) | [
"3244567262@qq.com"
] | 3244567262@qq.com |
05534d99c100465e8105af77ff2a572f4486ffdd | 761852e730557bd2c5e4fe2417d7891fc115dd9a | /app/healthcare/migrations/0030_auto_20191020_0029.py | 0de0b082fff306e7dd1b3ea1d81ed6c6a6d51b86 | [] | no_license | ajay2016/ZenWellness | 468810aef2d7298ccfe7961c519a23ed7d355ebb | 94f80b7352523f33dec9cd78157bdd02bb68a31c | refs/heads/master | 2023-06-01T21:55:10.374847 | 2021-06-21T06:47:28 | 2021-06-21T06:47:28 | 378,832,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # Generated by Django 2.2.4 on 2019-10-20 00:29
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('healthcare', '0029_auto_20191020_0019'),
]
operations = [
migrations.RemoveField(
model_name='patientlabtest',
... | [
"ajay.skiva@gmail.com"
] | ajay.skiva@gmail.com |
0c7c403ed0564e6700eb2d19b217eb94edb2927e | 4f9e6b686bc369ea9ba0e712a268bef22727657a | /build/arbotix_ros-indigo-devel/arbotix_controllers/catkin_generated/pkg.installspace.context.pc.py | 9db299a9f026fd7e7a7c15c51f419aef02736ba9 | [] | no_license | YongzheZhang/catkin_make | ce8efd05887b6bbaa6c01294c37a5a939bd29e33 | ad79cc20ef0021b8f8e6ab10d9183044acd151e2 | refs/heads/master | 2020-03-19T07:41:38.271776 | 2018-06-05T08:51:55 | 2018-06-05T08:51:55 | 136,106,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "arbotix_controllers"
PROJECT_SPACE_DI... | [
"jcddyongzhe@gmail.com"
] | jcddyongzhe@gmail.com |
30f98cefec9fc5094ffbd13f37ef7228eb03829c | dd27808508beb837acd99ef4dbe3089b442a5171 | /mrlwebsite/ui/views.py | 0ebcf71a9e90f6a3a94e7f2447f5216f965ffb40 | [] | no_license | ayushmr/mrlwebsite | b18762248dba7f20768d6d2a23abe2a36fb9f297 | 3acca2685558a0f153e8599dea833b52b7ee989f | refs/heads/master | 2022-08-13T19:16:06.009230 | 2020-05-22T11:38:17 | 2020-05-22T11:38:17 | 266,092,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | from django.shortcuts import render
from .models import Master,Countries,ComCountryRelation,RegulatoryParameters,TypeOfParameters,Profile,Commodities
# Create your views here.
from django.http import HttpResponse
from django.db.models import Q
from django.shortcuts import redirect
import xlwt
import csv
from operator i... | [
"ayushmishra08072001@gmail.com"
] | ayushmishra08072001@gmail.com |
9ad54547b06cefe0619d3bd07eaed8a5feaee11f | 4a752714c4b967f7ba0cc25dceacd32791e7d427 | /SchemaPages/schemapages_pb2.py | 74777ad128f2bba30abebbe01d8db769119be2a7 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | shaedrich/schemaorg | 9d734c4c6e14ded1b4d6cdd592d6eff831652358 | 69a0cd2470fcf85daf527097506e4087831289c2 | refs/heads/main | 2023-03-06T06:17:45.384106 | 2020-09-30T19:45:40 | 2020-09-30T19:45:40 | 430,631,313 | 1 | 0 | Apache-2.0 | 2021-11-22T08:54:56 | 2021-11-22T08:54:55 | null | UTF-8 | Python | false | true | 34,111 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: schemapages.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | [
"noreply@github.com"
] | noreply@github.com |
8da6a8f21c3b11a94d0b449b2031f7f8329cc06d | 8ed2a620a7b61a9cef6b059caca4c8c82c792aaf | /training/ocr_training.py | e09d60026ba1a1756f64320e6687121d6d938b47 | [] | no_license | Chappelliu/646project | d2a68ac33af0964d61923fa454f61ef61af5142a | 1bcf7f06427f20d622fd74a411152b8602907f65 | refs/heads/master | 2020-11-24T11:39:17.670142 | 2019-12-15T12:26:11 | 2019-12-15T12:26:11 | 228,128,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | #training alogrithm is modified from ALPR in Unscontrained Scenarios https://github.com/sergiomsilva/alpr-unconstrained/blob/master/license-plate-ocr.py
import sys
import numpy as np
import cv2
import keras
from random import choice
from os.path import isfile, isdir, basename, splitext
from os import makedirs
from s... | [
"noreply@github.com"
] | noreply@github.com |
e109d5583405fbf4abcf7259c341444c299fc477 | d014a0f60ffe2e3e5ca923d7bc3578ecb2c8dd75 | /componentapp/cylinder/migrations/0001_initial.py | ffa39ee44c72b072f82b5e3ba8fbd5e450472aa8 | [] | no_license | shovan777/pressureVessel | d4e625bb1b769659d29face15513ba134b7527bb | 909dd54576d267cd32ea0c0f4e2129e702be6ce7 | refs/heads/master | 2022-12-12T09:13:52.429923 | 2019-04-28T04:11:36 | 2019-04-28T04:11:36 | 151,068,742 | 0 | 3 | null | 2022-12-08T01:21:00 | 2018-10-01T10:05:18 | CSS | UTF-8 | Python | false | false | 492 | py | # Generated by Django 2.1.1 on 2018-10-02 06:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Parameter',
fields=[
('id', models.AutoFiel... | [
"raj.shrestha778@gmail.com"
] | raj.shrestha778@gmail.com |
17e14b24f0f7ce2bfd2f52cc400fc31c5426beef | 2e70365b8639d6414b1ad452371bbf289e032747 | /ex14.py | a3ee00577a788d2b6ecda8d4a22bb2abc6a7426d | [] | no_license | godumuyiwa/learnpythonthehardway | 023e49869ccb3b67b30a0a6392065e4c4925332c | 35c7ad699c2b452c2230ed306d49165b893a0e73 | refs/heads/master | 2020-04-13T16:47:15.958298 | 2019-01-01T19:22:38 | 2019-01-01T19:22:38 | 163,330,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from sys import argv
script, user_name, age = argv
prompt = '---->'
print(f"Hi {user_name}, I'm the {script} script.")
print("I'd like to ask you a few questions.")
print(f"Do you like me {user_name}?")
likes = input(prompt)
print(f"Where do you live {user_name}")
lives = input(prompt)
print("What kind... | [
"ishaqgbo@gmail.com"
] | ishaqgbo@gmail.com |
482797ecc0beecf9ce5e79b621802f66c79379d9 | 6ac2d54a00b484551971f77fddb9042e4671a656 | /src/pyrad_proc/pyrad/proc/process_spectra.py | 18803d319044ec057a04fe797864d06a9fc04591 | [
"BSD-3-Clause"
] | permissive | Guidicel/pyrad | 15f26a9921b75c2e978949f70694d82ab79f7d67 | 95def11a6cb8fa956034bb227e2ad31dbdb1e7fb | refs/heads/master | 2020-11-25T01:36:56.276000 | 2019-12-10T14:31:41 | 2019-12-10T14:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,062 | py | """
pyrad.proc.process_spectra
==========================
Functions to processes spectral data.
.. autosummary::
:toctree: generated/
process_raw_spectra
process_ifft
process_spectra_point
process_filter_0Doppler
process_filter_srhohv
process_filter_spectra_noise
process_spectra_ang_a... | [
"jordi.figuerasiventura@meteoswiss.ch"
] | jordi.figuerasiventura@meteoswiss.ch |
63bbe3a79c758a557d44b17a3559c97ae68c211a | 21400be8b89db652343673086ad74440f2c158cc | /TestAPI/asgi.py | 3aef68716bc5a15ebe04ec79a422c11aeba9ed02 | [] | no_license | terminator-droid/TestAPI | 1e7c890a2b0afdb00fff6240d20581234b2a097b | 33052e6c5742dc39c9fb2e7ffa18a36685b0cca3 | refs/heads/main | 2023-09-05T20:24:45.025790 | 2021-11-11T19:01:28 | 2021-11-11T19:01:28 | 427,109,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for TestAPI project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"ussdanil@gmail.com"
] | ussdanil@gmail.com |
76c6726b4c4b2e498fb2ca77e6c9905dd6660ea3 | ea919ac3f7c91f62fdf849b67edf02a9dc3d034e | /examples/ent-rsvp/backend/src/schema/versions/19e7969c6a61_2021129232023_add_auth_codes_table.py | 36e6b3c14f0cf83cea826f77e26c0e3898c8098a | [
"MIT"
] | permissive | lazytype/ent | ae8e03906c76cad33274452687fdc5a8bcf5e97a | d9729f3bb5c2410021e58dfdac0ef03efb439edb | refs/heads/main | 2023-08-28T17:23:23.532296 | 2021-11-03T20:33:35 | 2021-11-03T20:33:35 | 425,598,003 | 0 | 0 | MIT | 2021-11-07T19:35:12 | 2021-11-07T19:35:11 | null | UTF-8 | Python | false | false | 1,682 | py | # Code generated by github.com/lolopinto/ent/ent, DO NOT edit.
"""add auth_codes table
Revision ID: 19e7969c6a61
Revises: 2a5627d47472
Create Date: 2021-01-29 23:20:23.550366+00:00
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
from sqlalchemy.dialects import postgresql... | [
"noreply@github.com"
] | noreply@github.com |
bb42f667fba2b0c8fc157bfbf14569d44db6c0b9 | 64d7bb916a9db3e5630750a423872cd136947d9a | /ecom_app/migrations/0008_auto_20200805_0100.py | 539b4d2c1a6ae9ce3fcb48222d0edf1e3bcf9803 | [] | no_license | KaiserKamruzzaman/Django-E-Commerce- | 6c979ab29885ef5c97c788857d9b6d4d2ed3ff64 | 93d00568ad78cd6c2a3a0daada6ae28f5ddb9243 | refs/heads/master | 2022-12-03T04:45:34.493236 | 2020-08-24T05:52:15 | 2020-08-24T05:52:15 | 289,840,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | # Generated by Django 3.0.3 on 2020-08-04 19:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ecom_app', '0007_auto_20200804_1928'),
]
operations = [
migrations.RenameField(
model_name='order',
old_name='Customer',
... | [
"38045495+KaiserKamruzzaman@users.noreply.github.com"
] | 38045495+KaiserKamruzzaman@users.noreply.github.com |
394014b3cf84399204151193a86550a25e7cf426 | 8c3bb557767824f2b80f84352d3c9e1fc898467a | /ToDo_project_files/routes.py | dce6179f011fb178c4795a19ee56bc65431c1064 | [] | no_license | shreyanshshah91/Flask_To-Do | 340d20eb55c910df817071babb89c2be310ec071 | 62c56350c694fc053c316006389adcd71594e78c | refs/heads/main | 2023-03-11T04:09:43.438520 | 2021-03-01T17:11:16 | 2021-03-01T17:11:16 | 343,491,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | from flask import render_template, redirect, request, flash
from ToDo_project_files import app, db, bcrypt
from ToDo_project_files.models import User, Todo
from ToDo_project_files.forms import RegistrationForm, LoginForm
from flask_login import login_user, current_user, logout_user
#displays the homepage
@app.route("... | [
"noreply@github.com"
] | noreply@github.com |
cb66827182a2da5d52aff216601272cbf9917ff5 | e88ac5c879326f47fa154baa6f0319240707d10f | /removeDuplication.py | 7f7025b72708bbd54b9efe5b656aee309b29b4e4 | [] | no_license | Clempops/algorithms | af326124379faf402aeb59383965b05ce7ef55f3 | 5576bbd47715c37b7f711ae43e6481d2947afa45 | refs/heads/master | 2020-05-19T09:46:26.502991 | 2015-06-23T19:47:56 | 2015-06-23T19:47:56 | 37,941,161 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | string = 'hello'
def removeDuplication(string):
res = ''
for i in string:
if i not in res:
res += i
return res
print removeDuplication(string)
| [
"clement_muller@hotmail.fr"
] | clement_muller@hotmail.fr |
e50aa6aef1cfcde44c6922636a2032ccbb64594b | 6a250dcf1e1a294d4cb2f467ddb481cd67bc271f | /www/app.py | 821f3a2bd19d208f82e60b9645c2fd7b7ba44ca5 | [] | no_license | czj4093/awesome-python3-webapp | eea7765afdd62d751e6197d8f265fd94f8cb1b50 | 1061542cc3599d1cab6a5f6bcfcc1d639d7ecae0 | refs/heads/master | 2020-05-09T17:03:58.666619 | 2019-04-14T12:46:51 | 2019-04-14T12:46:51 | 181,294,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'chenzejin'
'''
async web application.
'''
import logging; logging.basicConfig(level=logging.INFO)
import asyncio, os, json, time
from datetime import datetime
from aiohttp import web
def index(request):
return web.Response(body=b'<h1>Awesome</h1>',cont... | [
"czj4093@qq.com"
] | czj4093@qq.com |
c749abb0e1a9f27ebd9ec5fcc93d2afaa0b99d41 | a66e0ca90bbc98fef62a24c2826d76a171b3fa6e | /main.py | 652df02a52edda412864bcb4cb2d316ecc5868d2 | [] | no_license | dillondesilva/dingo-bot | 934b8584ffe0a411282e18f94bba81b9e49c0776 | b9ef602291a8f5bd3cee14e127ed79c196d8bf21 | refs/heads/master | 2020-09-16T05:27:43.088390 | 2019-12-31T01:01:18 | 2019-12-31T01:01:18 | 223,667,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #!/usr/bin/env python
import time
import serial
ser = serial.Serial(
port='/dev/ttyAMA0',
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=1
)
while True:
txt = ser.readline()
print(txt)
time.sleep(... | [
"dillon.desilva@geeksdiary.com"
] | dillon.desilva@geeksdiary.com |
e9560659a9ebcc10e180e3d6f2ea34632653e2b5 | 684a7d56589f7b96002646dfc26ba2de52eb7d80 | /source/callback/callback.py | c0fcf24a8585a430d2e0d7670736cac95efafde9 | [
"Apache-2.0"
] | permissive | adewin/lambda-deep-learning-demo | 7a42b935ca1ab1e92a0170bf28c7e526cffa5cb6 | ebbbd63c0abf87a1a4155b17cef145039b7a1ef7 | refs/heads/master | 2020-07-08T13:15:51.476791 | 2019-04-26T21:25:44 | 2019-04-26T21:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | """
Copyright 2018 Lambda Labs. All Rights Reserved.
Licensed under
==========================================================================
"""
from __future__ import print_function
class Callback(object):
def __init__(self, config):
self.config = config
def before_run(self, *argv):
pass
def after... | [
"cl.chuanli@gmail.com"
] | cl.chuanli@gmail.com |
db1709241653d86d91f1534902bd829e968cad18 | 7eb45006096f6bc3560af0ef1e54923e3f6b35d2 | /geofdw/fdw/geocode.py | f1c01490ad83c14ca8ce827e2323ab61ca77db9c | [] | no_license | Vadim0908/geofdw | 51112543fb93cb3b5263b7f876d797343ee03d68 | 629e97d9fea9c235fdc6abc60624498cb2075b20 | refs/heads/master | 2021-01-17T06:35:06.849460 | 2015-08-09T09:37:27 | 2015-08-09T09:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,307 | py | """
:class:`FGeocode` and `RGeocode` are foreign data wrappers for the geopy
geocoding module.
"""
from geofdw.base import *
from shapely.geometry import Point
import geopy
import pypg
class _Geocode(GeoFDW):
def __init__(self, options, columns):
super(_Geocode, self).__init__(options, columns, srid... | [
"bosth@alumni.sfu.ca"
] | bosth@alumni.sfu.ca |
2ff36457c22757394018c77a76b95d9a1928e8d6 | 31d5db91af6591206174fa3e2c862b94bf8d9235 | /getfullscreenimage.py | 22af92b449e968ae352a629bb39d24baf5bf40ba | [] | no_license | gdnyfcuso/ElementPosition | adb2a585688ff9d86168e87bd419ea9681675a28 | 5784f61d1f4cc4cf8a94a56c18759c282783f46b | refs/heads/main | 2023-07-12T16:31:14.521148 | 2021-08-20T07:23:09 | 2021-08-20T07:23:09 | 398,186,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py |
import time
import win32gui, win32ui, win32con, win32api
def window_capture(filename):
hwnd = 0 # 窗口的编号,0号表示当前活跃窗口
# 根据窗口句柄获取窗口的设备上下文DC(Divice Context)
hwndDC = win32gui.GetWindowDC(hwnd)
# 根据窗口的DC获取mfcDC
mfcDC = win32ui.CreateDCFromHandle(hwndDC)
# mfcDC创建可兼容的DC
saveDC = mfcD... | [
"gdnyfcuso@163.com"
] | gdnyfcuso@163.com |
8b9260ba1a175ef2441418fc049795b45fc5084a | a838d4bed14d5df5314000b41f8318c4ebe0974e | /eng/versioning/version_increment.py | 3ac56b45ee4c4c9cd8d2ab2669167b90040d2ab8 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 2,599 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
0ce168ab0aa8130b7f3107d039fdc86989a2f07c | e180e68c468557b186d083869c005c98abdf539a | /Testing Hardcoded format/test8.py | 886890d05c57d885c0e77ab4610ea4ab489df179 | [] | no_license | singhalshubh/Notification-system-Testing-using-selenium | 8a58977d7d63c1216e420363f408826e9bfccf7a | e460e7ceeb63e5eea9a914be0ed84febaebe47c7 | refs/heads/master | 2020-03-21T21:33:03.046748 | 2020-01-17T09:53:24 | 2020-01-17T09:53:24 | 139,069,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | __author__= 'shubh'
import unittest
from selenium import webdriver
class signup(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
def test_unsubscribe_community(self):
user ="admin"
pwd= "sha123#56su"
driver = webdriver.Firefox()
driver.maximize_window() #For maximizing window
dri... | [
"noreply@github.com"
] | noreply@github.com |
d4ebbd0498578f14b876e398a62aab73d0bc638c | 56b6b15d1ceddf544fb7f80b6cbdc4c1b068577e | /stable_baselines_custom/common/mpi_adam.py | 4ad503d1c9f05c27826298da9334279b38ec1ba0 | [
"MIT"
] | permissive | iamlab-cmu/stable-baselines | c83c5a598ed8b37adfc9ecd465bac3cf4b44db6b | 6e9a8b2ad1d690bd9a9611405e4f319a52101540 | refs/heads/master | 2022-09-17T13:13:50.792728 | 2020-05-29T18:57:13 | 2020-05-29T18:57:13 | 266,206,473 | 0 | 0 | MIT | 2020-05-29T18:57:14 | 2020-05-22T21:00:05 | Python | UTF-8 | Python | false | false | 4,558 | py | import tensorflow as tf
import numpy as np
import mpi4py
import stable_baselines_custom.common.tf_util as tf_utils
class MpiAdam(object):
def __init__(self, var_list, *, beta1=0.9, beta2=0.999, epsilon=1e-08, scale_grad_by_procs=True, comm=None,
sess=None):
"""
A parallel MPI imp... | [
"lagrassa@cmu.edu"
] | lagrassa@cmu.edu |
156e3872790dc73bdc64d9acd45216282f9550eb | 2999692f7f535e91f9d9da2d2d4db32b1c271114 | /chapter_3/lesson2_step9_error_messages_for_substrings.py | 5adf19a02d621c9507ba0bab1c323510f86f2ac1 | [] | no_license | Tester5657/stepik-auto-tests-course | aa026eee07fd22a22482a84b95f5a37aaf51eb15 | d97c660f6eb960bf4ee4c133dc901244f9eb49fb | refs/heads/master | 2021-06-27T14:23:46.693036 | 2020-01-29T12:37:18 | 2020-01-29T12:37:18 | 230,717,325 | 0 | 0 | null | 2021-06-02T00:52:44 | 2019-12-29T07:22:07 | Python | UTF-8 | Python | false | false | 335 | py | s = 'My Name is Julia'
if 'Name' in s:
print('Substring found')
index = s.find('Name')
if index != -1:
print(f'Substring found at index {index}')
full_string = "text"
substring = "text2"
assert substring in full_string, f"expected \'{substring}\' to be substring of \'{full_string}\'"
if __name__ == '__main... | [
"Uezdny_gorod12"
] | Uezdny_gorod12 |
db0f1e75164799cda6029b459b5690ad20b51f7d | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractNellietranslationWordpressCom.py | c62296b95129383ec41b43e5473b47f679d163d3 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 574 | py |
def extractNellietranslationWordpressCom(item):
'''
Parser for 'nellietranslation.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'transla... | [
"something@fake-url.com"
] | something@fake-url.com |
f64852dade55046f20d33c1f29c23c4208ccdacc | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/third_party/2and3/flask/json/tag.pyi | b1648dc79877207e7cc04222ee66c11f34502a79 | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 2,037 | pyi | # Stubs for flask.json.tag (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
class JSONTag:
key: Any = ...
serializer: Any = ...
def __init__(self, serializer: Any) -> None: ...
def check(self, value: Any) -> None: ...
def t... | [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
8be2dbc27574f4b50a8b455aa7f1fde1b1d1a032 | 86ae81570cf5ab07e07c40ee3ec41a25ca8b871e | /manage.py | 44acc6d5a44cc7aabe7e1526a6aa4af2a95396a2 | [] | no_license | damscassiani1994/apiusuarios | df0ded67af752ab3165c719d6eb442af9b67d66e | 9603134639d3fb1f9e7d833cc43de6c83039e459 | refs/heads/master | 2021-08-07T08:25:02.612742 | 2017-11-07T22:18:07 | 2017-11-07T22:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api_usuarios.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"damsc1994@gmail.com"
] | damsc1994@gmail.com |
d4403a791ecc88f293464b246c21949eee1a9a90 | 061ff7a2155d206cbe30a4a3c247a0537f263044 | /portal/gradebook.py | e921ee60cf3946e6a938b1e8e2b049a9a6d4ba23 | [
"MIT"
] | permissive | BillSpyro/tsct-portal | 6436eba8104633c0cff9a2c8341253ed829f0dcb | dced1220f04234cc80c1975f960a1470d503cfc4 | refs/heads/master | 2021-05-24T12:25:41.949604 | 2020-05-01T20:33:27 | 2020-05-01T20:33:27 | 253,560,906 | 2 | 0 | MIT | 2020-05-01T20:33:28 | 2020-04-06T16:53:16 | Python | UTF-8 | Python | false | false | 3,736 | py | from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
from portal.auth import (login_required, teacher_required)
from . import db
bp = Blueprint('gradebook', __name__, url_prefix='/portal/gradebook')
@bp.route('/')
@login_required
def gradebook():
if g.users['role'] =... | [
"robloxatme.com@gmail.com"
] | robloxatme.com@gmail.com |
0f646ca51eea59fd4f4fe0e3e10b1824d8c540d9 | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/dp/1140_Stone_Game_II.py | d1ed5925f0f4caf1298bf5358edbaf4abe9af491 | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from typing import List
class Solution:
def stoneGameII(self, piles: List[int]) -> int:
n = len(piles)
A = 0
L = 0
def helper(i, m, cur, turn=1):
if i >= n:
return 0
res = 0
for j in range(1, 2 * m + 1):
if turn =... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
8f250333563f5a706d986bac623086de8c233d7f | a3175746b3304108d261f163c2ff231454ead4cd | /Facebookapi.py | c2c9b2e5d930d1c94c0c8506a28318fe858c9156 | [] | no_license | christianangel15/CodeSnippets | dccc6ecbad8d64a3be490f4199fddf28fa01e595 | f43bdf36efc8055a72447e06e5d3ef10121e1bd1 | refs/heads/master | 2023-02-17T10:31:21.877630 | 2021-01-18T15:21:08 | 2021-01-18T15:21:08 | 267,920,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import facebook
token = 'Your token here'
fbobj = facebook.GraphAPI(access_token=token)
# fbobj.put_object('me', 'feed', message='Posted using Graph API')
fbobj.put_photo(image=open('photo-1522364723953-452d3431c267.jpg', 'rb'),
message='Photo posted using Graph API..Cool!')
print('Posted')
| [
"noreply@github.com"
] | noreply@github.com |
cb9e4681176994e682013a8fd58c66406e38dba8 | fa4829f71092aeb8fd7b66b3c97f3bfa957daf41 | /MyProject/settings.py | f285ba90178060a902613da0bf29622c00f82792 | [] | no_license | bfrost831/DjangoProj_repo | da545c703dc79062252b60ff5a0ec9002278d66e | a93ef915133e63d44896d4737e0d270c1b085e20 | refs/heads/master | 2021-04-24T05:48:47.810489 | 2020-03-25T20:42:51 | 2020-03-25T20:42:51 | 250,087,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | """
Django settings for MyProject project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"brianf831@gmail.com"
] | brianf831@gmail.com |
5490a436cce969d697354cec0600e851e31852cd | 030724b60fb4f8b63953b7401702a98072993e94 | /python/140.word_break_II.py | 2647735c996d2fc35d3f3ac0926b4beba47ec0ba | [] | no_license | MtTsai/Leetcode | 5f51a892b78cf6427ce2b4891a10bc2d4ed4d972 | 21e83294aee779a16a8c1b96089da4a40eb03035 | refs/heads/master | 2021-01-24T17:17:52.909429 | 2019-08-04T06:53:53 | 2019-08-04T06:54:23 | 123,228,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: List[str]
"""
tree = {}
for w in wordDict:
trie = tree
for c in w:
if c not in trie.keys():
... | [
"mttsai@gmail.com"
] | mttsai@gmail.com |
35bacb289cdf03acdbbf11dec16583ce0e68e78e | b10aa7305fa3e1947c949026984aaacc32b9e350 | /sql_datas.py | ede79501b4c23813b40aa860dc2bc49dc3ae17c5 | [] | no_license | MYoung-coder/Pi_flask | a319b9edb5b3df4d4fd31f1b1dd484e7fc3074c0 | 7cf6a51051af7514e2bd44d3da40f4822ece0efc | refs/heads/master | 2020-12-06T21:51:08.420574 | 2020-01-08T12:37:04 | 2020-01-08T12:37:04 | 232,559,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import psycopg2
def latest_row():
conn = psycopg2.connect(dbname="AgroIot", user="postgres",password="950315", host="39.97.186.109", port="5432")
cur = conn.cursor()
str_sql = "select * from dbo.klha_data"
cur.execute(str_sql)
rows = cur.fetchall()
# print(len(rows))
# print(rows[-1])
d... | [
"18331272870@163.com"
] | 18331272870@163.com |
3f953d162b2d1a1d32bc9b8b49129d395aa5a6e9 | 68a66b222a8e81fbbef36e3b26cff16215a21f90 | /fibonacci.py | ec1b4d14a3fd6a21f92b05116541b6d3cd20ba78 | [] | no_license | jeffwright13/codewars | 725fd7d19db4b31f1d4c45fbb21f0e2b8f774425 | 92d16edd1441230e7c4ddc466b893e5ba5929e98 | refs/heads/master | 2020-04-15T15:02:36.704016 | 2016-11-09T18:38:17 | 2016-11-09T18:38:17 | 53,176,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | def fibonacci(n):
if n<0:
return None
if n==0:
return 0
if n==1 or n==2:
return 1
else:
return fibonacci(n-2) + fibonacci(n-1)
def test_fibonacci():
assert fibonacci(-1) == None
assert fibonacci(0) == 0
assert fibonacci(1) == 1
assert fibonacci(2) == 1
... | [
"jeff.washcloth@gmail.com"
] | jeff.washcloth@gmail.com |
f2ceca0732225c696b0d45ea0f94c8dd333138d6 | bc22137812d53cda9c3c056484b10a0619f21184 | /snippets/views/syntaxes.py | d71bf331fe0a7dde00a071ad9ab319f982f11369 | [] | no_license | vovean/code.re | 58edbd7415bd9b5c81d5e5fbd51e01d3c1cdc160 | 425ed18ba11ab487b46b4c20f406084eb3a5342f | refs/heads/master | 2023-04-30T05:35:14.368705 | 2021-05-18T21:26:41 | 2021-05-18T21:26:41 | 343,167,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from django.core.handlers.wsgi import WSGIRequest
from django.http import HttpResponseBadRequest, JsonResponse
from snippets.models import Snippet
def list_syntaxes(request: WSGIRequest):
if request.method != 'GET':
return HttpResponseBadRequest(f"Unacceptable method {request.method}")
retur... | [
"vislovichv@mail.ru"
] | vislovichv@mail.ru |
ee6a5db8a7b96b90ba2f91d343dac58cf8e81c81 | 3a5786a907af3f96d7f3200b94df21f3be4b1211 | /AMDiS_Sandbox2/saves/nonicPressedExt_badShape/evalFinalEnergy.py | 07576f875e14c0371e9f86c0ee4cc93aa8661bba | [] | no_license | nitschke/main | 7635879bba3fb603e23e5678511fcbfcbca13d3d | ecc4db17f46de87c8e7027f0e37031893f9dc5a9 | refs/heads/master | 2021-04-12T04:35:53.825044 | 2017-06-08T15:04:06 | 2017-06-08T15:04:06 | 13,807,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #!/usr/bin/python
import csv
from pylab import *
fn = "finalEnergy.csv"
lineStyles = ['-','--', '-.', ':']
lw = 3;
with open(fn, 'rb') as f:
reader = csv.DictReader(f, skipinitialspace = True)
stretch=[];
press=[];
e2D=[];
e4D=[];
for row in reader:
stretch.append(row['stretch'])
... | [
"ingo.nitschke@tu-dresden.de"
] | ingo.nitschke@tu-dresden.de |
dcd7a41f7881f0548c60d58a4613f7acfb721adb | a002850e2d2f6f183751f2a761d717f6ef97e4f4 | /hello/pages/migrations/0016_auto_20190928_0409.py | 4ec1cb0fd70ea854af225a8f000406ae9b7b54a1 | [] | no_license | dipak122/Hackathon_Project | 73cea235527530503c737b2e1052246b6911e202 | dba65ac0ce6c588865f5b50ccb0d989eda80c39d | refs/heads/master | 2022-12-03T19:08:56.956980 | 2021-04-16T07:17:01 | 2021-04-16T07:17:01 | 210,911,196 | 2 | 1 | null | 2022-11-22T07:38:14 | 2019-09-25T18:15:42 | JavaScript | UTF-8 | Python | false | false | 585 | py | # Generated by Django 2.2.5 on 2019-09-27 22:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0015_auto_20190928_0349'),
]
operations = [
migrations.AddField(
model_name='logtable',
name='opt',
... | [
"dipak717gautam@gmail.com"
] | dipak717gautam@gmail.com |
6fe7f545a1be0fce9b8dd4f94b6d9a90bdcc9aa8 | abaa6a5d1bced4c01f425ed65daced74110a119a | /demos/form/forms.py | 746ade2acd739fd06c5cb6dc29a68700deab5846 | [] | no_license | bigbigrock/flaskstudy | 6fe4d16bfb903757d57915bdfa9a4fac0914b66b | 880208af82bfe672816a9424fe5aff5a1ab3e4c5 | refs/heads/master | 2023-01-30T10:33:32.023378 | 2020-12-15T12:21:19 | 2020-12-15T12:21:19 | 309,948,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | py | from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,BooleanField,SubmitField,IntegerField,MultipleFileField
from wtforms.validators import DataRequired,Length,ValidationError
from flask_wtf.file import FileField,FileRequired,FileAllowed
from flask_ckeditor import CKEditorField
class LoginFor... | [
"1562028916@qq.com"
] | 1562028916@qq.com |
ab6541cecef8408ea284de51aaf882d1b5618307 | 48123b667ed75e550b83e90cf756cce84ed43f76 | /blockchain_davidcoin/Module 2 - Create a Cryptocurrency/davidcoin_node_5003.py | 5b186cfc660db2aa835998769f3252fc608b75eb | [
"MIT"
] | permissive | mrn01/Blockchain_Project | e7ada6d4ca5b1d2c5bb9895738844a6e5b470756 | c91602686331e6917482731b9ad8e2e64fbf640f | refs/heads/master | 2022-11-09T03:10:37.442224 | 2020-06-27T17:34:32 | 2020-06-27T17:34:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,517 | py | # Module 2 - Create a Cryptocurrency
# Importing the libraries
from datetime import datetime
from hashlib import sha256
from json import dumps
from flask import Flask, jsonify, request
from requests import get
from uuid import uuid4
from urllib.parse import urlparse
# Part 1 - Building a blockchain_davidcoin
class ... | [
"noreply@github.com"
] | noreply@github.com |
7292e2f8a9ab85385480226ae620e9a019cf6abf | 5fd449b430afe4c5c05e13b3076aaae3595b9fe4 | /models/planet.py | e0955b80d9044e670a7c3f06e1bf5f01ff1e8ec9 | [] | no_license | perodriguezl/weather_calculator | ff1f542b147c8e0310da28e9ab96df043d98947e | 49786bb5da40ff83bc4e9f41e0c7cc9f85dc3b64 | refs/heads/master | 2020-03-26T07:18:37.889524 | 2018-08-22T02:24:31 | 2018-08-22T02:24:31 | 144,647,727 | 0 | 0 | null | 2018-08-22T02:27:39 | 2018-08-14T00:24:56 | Python | UTF-8 | Python | false | false | 1,264 | py |
class planet():
'''
Planet model -- 6/6 methods expected to be testeables
'''
name = None
speed = None
ratio = None
def __init__(self, name, speed, ratio):
'''
@param self:
@param name: planet name string
@param speed: speed numeric value
@param ratio... | [
"perodriguezl@gmail.com"
] | perodriguezl@gmail.com |
3f743c23fbdbd2148dd3da3c2781d36792943cb5 | 259a933d406fafb661272e82a1db260291ffbe5a | /ex_06.py | 0785a56c4bc089bbbb7a91c9bb34e1483e55538d | [] | no_license | jnassula/exercicios_python | 276d0825ad02fd287f249b1417e4539fb148c397 | b121ac3051a3c843fac9fabcf3c19271e663fadd | refs/heads/master | 2022-11-06T21:31:59.274761 | 2020-06-21T18:08:20 | 2020-06-21T18:08:20 | 273,950,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | valor_h = float(input("Informe o valor da hora: "))
h = int(input("Informe a quantidade de horas trabalhadas no mês: "))
salario = h * valor_h
print("O sálario desse mês é €{0:.2f}.".format(salario))
| [
"zobss.dev@gmail.com"
] | zobss.dev@gmail.com |
acacf18f9a5bb341086503508081cc9a538e6d95 | 943322afb21045fabb6c33bb2f38d3f676ad4403 | /weppy_haml/ext.py | 0d485eb44c4d9c70095c983da9edf415f82f9eac | [
"BSD-3-Clause"
] | permissive | gi0baro/weppy-haml | 673af96899cc2ab7beba5b5085db37d8664ba10f | 1bbcd44290fcf41f9d9c1fc73622b74320c0d8e1 | refs/heads/master | 2021-01-20T10:15:38.356433 | 2017-07-17T12:51:09 | 2017-07-17T12:51:09 | 25,488,086 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | py | # -*- coding: utf-8 -*-
"""
weppy_haml.ext
--------------
Provides the Haml extension for weppy
:copyright: (c) 2017 by Giovanni Barillari
:license: BSD, see LICENSE for more details.
"""
import os
import codecs
from weppy.extensions import Extension, TemplateExtension
from weppy.utils import cac... | [
"giovanni.barillari@gmail.com"
] | giovanni.barillari@gmail.com |
7d087a15abe85b5f42109f936590af5881f4435b | ee699abb42daa4ccaadcd1f4183527fb1439ea52 | /ex17.py | 1ba1ea213d8bdf2db204d993328ecbffcd30a1a2 | [] | no_license | PavelKabenyuk/Python-Example | 316bafaa2f729dd844940a0cb9de4201bcb72779 | a01a063f17b3c548a41801b40815350e10a90ace | refs/heads/master | 2020-07-19T02:37:52.592534 | 2019-09-05T05:02:59 | 2019-09-05T05:02:59 | 206,360,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # ex17
from sys import argv
from os.path import exists
script, from_file, to_file = argv
print(f"Копирование данных из файла {from_file} в файл {to_file}")
in_file = open(from_file)
indata = in_file.read()
print(f"Исходный размер файла {len(indata)} байт")
print(f"Целевой файл существует? {exists(to_file)}")
prin... | [
"pavelkabenyk@gmail.com"
] | pavelkabenyk@gmail.com |
bb71910acae04af227a92320850a5661f4c776dc | b0d616237d9eee802f70880c39141fbb620f3dfe | /ntutm/vocab/doc2vocab_count/standford_vocab.py | 0870dc2c4c4e35e13d6470ca4fc1eca8c15b6f8a | [
"MIT"
] | permissive | m516825/IR_Lab_Package | 6b25e5c92de1eeb8a9f764b66d22a42b727fb2ac | eabb30cd2898b4cdf39b514038fa42d509d67e77 | refs/heads/master | 2021-01-01T05:13:06.856099 | 2016-05-22T09:55:23 | 2016-05-22T09:55:23 | 58,849,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
import vocab
import os
import sys, getopt
from nltk.tokenize.stanford_segmenter import StanfordSegmenter
def count_em(valid_path):
x = 0
for root, dirs, files in os.walk(valid_path):
for f in files:
x = x+1
return x
if __name__ ==... | [
"b01902078@ntu.edu.tw"
] | b01902078@ntu.edu.tw |
22fb865c991fc1bdacb9423fa47687f5a9aef42f | c66aff7b083adee01d265d1bf487ccee3af42488 | /group/group_ug1.py | 524e51c0ca86ba2377402813699123d39b8109d3 | [] | no_license | qinlu520/stats_expample | f9e7a4deff4fbabfdbacf479848e3850960a3805 | 0bf744006f000d91566e84eeea520c4087982b6b | refs/heads/main | 2023-04-19T16:57:48.934366 | 2021-05-13T14:34:24 | 2021-05-13T14:34:24 | 360,178,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import pandas as pd
import numpy as np
index = pd.date_range("1999/1/1", periods=1100)
ts = pd.Series(data=np.random.normal(0.5, 2, 1100), index=index)
# print(ts)
ts = ts.rolling(window=100, min_periods=100).mean().dropna()
print(ts.head())
| [
"qinlu520@126.com"
] | qinlu520@126.com |
26d7045e30f6c04d9c96abe28e2a6fac267874d3 | bcd7ff0ebf80e61b5602d66afd8c43078b28b034 | /Capstone/Merge_LargeData.py | a197d6545e2d12959687d0322267489a96690597 | [] | no_license | prashantkolkur/UCSD | a22e57c6bb0ab90b4278486b722d90df15777ea6 | fc00f68927b850f4c3d7f6678689eb66eb0d11ad | refs/heads/master | 2020-06-21T02:15:12.872352 | 2019-07-17T07:19:14 | 2019-07-17T07:19:14 | 134,093,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,908 | py | # Merge LargeData
#
# After segmentation of smaller image packages this
# script will stitch the initial dataset back together
# Assumes Packages are in the subdirectories of 1fm / 3fm / 5fm
# an expects a de_augmentation_info.mat in the parent directory thereof.
#
# Runs after StartPostProcessing which merges the 16va... | [
"noreply@github.com"
] | noreply@github.com |
117bd3a2e1b64dd036264d6602970ec73d177027 | f2befaae3840bafd181cc712108e3b64caf2696f | /app/portal/horizon/openstack_dashboard/contrib/developer/profiler/urls.py | 78549a3554efe7781a1b9a5f6429ee2ab6cfa203 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-adcaas-openstack | 17d5c408d421dcfe542002e1f850b2d9f29f1663 | 02bd8a606215c0fa08b926bac1b092b5e8b278df | refs/heads/master | 2023-08-28T12:09:54.972191 | 2022-08-12T02:03:43 | 2022-08-12T02:03:43 | 164,592,273 | 4 | 23 | Apache-2.0 | 2022-08-12T02:03:44 | 2019-01-08T07:40:35 | Python | UTF-8 | Python | false | false | 806 | py | # Copyright 2016 Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"a.zong@f5.com"
] | a.zong@f5.com |
3b7da18a374ec699d64dd6dcd89b452ffaab245d | 0b38252762c708ca2e696d671cb8dc36be39a307 | /P75AssignmentProblem/AssignmentProblem_pulp.py | 335b4485496782507c3f8a1e40faa8c801fd4392 | [] | no_license | 84monta/OR | edc8266fe1f8b0d99afd170c0c00eb6a870b2e2c | 23378e06cb4befda81b67336ecc20723d84bddc6 | refs/heads/master | 2023-02-22T02:59:27.314837 | 2021-01-28T09:47:36 | 2021-01-28T09:47:36 | 290,365,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | import pulp
import numpy as np
import random
from itertools import product
import pandas as pd
#ランダム設定 同じ条件で評価できるように
random.seed(1)
np.random.seed(1)
#仕事の数m、エージェント数n
m=10
n=5
#仕事の最大サイズ(調整用)
JOB_SIZE=10
#仕事jの資源要求量
a = np.random.randint(2,JOB_SIZE,size=(n,m))
#エージェントの利用可能資源量
b = np.random.randint(3,JOB_SIZE*2,size=n)
... | [
"84monta@gmail.com"
] | 84monta@gmail.com |
f491af9b118e0a51af1aa743cb5dd99057a5baec | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Tools/scripts/find-uname.py | b6ec1b6d79060cfa6705dab7dfe4c258da21d304 | [
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"ISC"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 1,207 | py | #!/usr/bin/env python3
"""
For each argument on the command line, look for it in the set of all Unicode
names. Arguments are treated as case-insensitive regular expressions, e.g.:
% find-uname 'small letter a$' 'horizontal line'
*** small letter a$ matches ***
LATIN SMALL LETTER A (97)
COMBINING LATI... | [
"jtunney@gmail.com"
] | jtunney@gmail.com |
0c208e72fe41124ae5ee5ec5bb3df1ed79c49f3f | 211d73361b7f67f75a1cb77083a775fc0b219325 | /matrixportal/code.py | 2188f9b9997fc1ae13eb0adb16566e6371bc46b3 | [] | no_license | georgeloyer/pm25 | b1f583be47e3fc11aacfe4835e414cf52f36dfc0 | 73c157e40fa9fa4a00d4bc451590aaad744f144f | refs/heads/master | 2023-01-24T00:17:24.999194 | 2020-12-06T00:57:15 | 2020-12-06T00:57:15 | 300,921,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | # Purple Air AQI Display
# for Metro M4 Airlift with RGB Matrix Shield
# or Matrix Portal
# and 64 x 32 RGB LED Matrix
import time
import board
import terminalio
import busio
from adafruit_pm25.i2c import PM25_I2C
from adafruit_matrixportal.matrixportal import MatrixPortal
def aqi_transform(val):
aqi = pm_to_aqi(... | [
"gloyer@sonic.net"
] | gloyer@sonic.net |
75d39712832c4b0a6402ab7afe9f40d275e8ff25 | 6006480f9a0442143022dccb4241e61dbee71c49 | /chapter3/section3.1/contact.py | db53b089506140a53c878d65b818bab201cfae22 | [] | no_license | riffschelder/train.usaco.org | 2f5c1e177bcb00853b599065dc1bef4c56fe19c4 | 28cab6d80d96f00683b0bb23f47ce7d3c47ead0c | refs/heads/master | 2022-12-20T18:06:31.096633 | 2020-09-27T20:56:55 | 2020-09-27T20:56:55 | 275,011,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | """
ID: riff.sc1
LANG: PYTHON3
TASK: contact
"""
from collections import defaultdict
def main():
fin = open('contact.in')
(low, high, amount_to_print) = [int(x) for x in fin.readline().split()]
last_pattern = ['' for _ in range(13)] # 0..12 inclusive
frequency_of = defaultdict(int) # frequency_of[pattern]
... | [
"riff.schelder@gmail.com"
] | riff.schelder@gmail.com |
b9045576fb2eb6b8ea0bfaff18a617b57d215c9c | c24fa89450cccb48fcd481c3cfa475ee0e412e09 | /UnitTests/rbfUnitTest.py | 82e7e1a5252bc38d63310a3ab622216d36bb4dbb | [] | no_license | PhoenixYanrongLi/CareEcoSystem_ServerCodeNew | e95d1c552cdcc70aac09482dfda63e253e01fcb0 | b627484694863c425483a04391eedc2ec2ec1098 | refs/heads/master | 2021-01-01T04:34:51.858543 | 2016-04-14T17:57:30 | 2016-04-14T17:57:30 | 56,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | """
rbfUnitTest.py is a collection of unit tests that validate Matlab algorithms ported over to Python have the
same behavior
rbfTester is a class that contains all of the unit tests.
setUp imports test data and assigns them to variables.
TtoN is a test that verifies it can find 1s in a matrix.
"""
__author__ = "Bra... | [
"phl_416cat@sjtu.edu.cn"
] | phl_416cat@sjtu.edu.cn |
eeb4a44ac5937539eae4d6286c811973d57f7cf4 | eb8d1b878ea214a135df5cc89b8a8efe14b9010a | /Baskets/__init__.py | 8c574be477d48a4259da9f6b93cae9ecf0d10c5a | [] | no_license | Firexd2/OnlineMarket | 099d7ebb303c224ea081159fe4afc9e11bdc65c6 | 5af3ef8665e4ad61d02891d5ec6fcbe81809c789 | refs/heads/master | 2021-09-16T06:03:59.258112 | 2018-06-17T19:02:22 | 2018-06-17T19:02:22 | 115,608,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | default_app_config = "Baskets.apps.BasketsConfig" | [
"FireDenis@yandex.ru"
] | FireDenis@yandex.ru |
1bb9a75f02fb42a43cefc37c6be027f711841964 | 42fbb1295dfe0eea84507a71bbf8a57107626511 | /test/test_error_response.py | bfb2043ae20e7d6040b1a2edb13bde81e3c240f2 | [] | no_license | joeynebula/ynab_pie | bd6642bcd747869630e837fb02df808e16e0b9cc | c6d3c73309b64d8df4bd70fa9892a2edf22599a9 | refs/heads/master | 2020-03-28T04:48:22.756956 | 2018-09-07T14:38:34 | 2018-09-07T14:38:34 | 147,737,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # coding: utf-8
"""
YNAB API Endpoints
Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudge... | [
"joey.baker@waterfield.com"
] | joey.baker@waterfield.com |
3ed51e8fad3f739ea3d00caaa0b669d8d1d22a02 | 2e9e51d88e6969dd1ca298accda219f4331591b6 | /14_LongestCommonPrefix.py | 1e1d3cbe125d3b771c20a2d6598fd43d09d12ea8 | [] | no_license | juzen2003/LeetCode-python-practice | 88474325868df8829c808ca6897d576959b01c37 | 7d5610667f907d9960f3ea05302fc86451cb0a51 | refs/heads/master | 2021-01-12T01:22:58.105303 | 2017-01-16T08:08:10 | 2017-01-16T08:08:10 | 78,379,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # LeetCode #14 Longest Common Prefix
# Dave Chang
# 2017/01/02
class Solution(object):
def longestCommonPrefix(self, strs):
"""
:type strs: List[str]
:rtype: str
"""
#empty list
if strs == []:
return ""
temp = ""
... | [
"noreply@github.com"
] | noreply@github.com |
48768834b1fef2caf84e039e98d955323a38b991 | 5f300418ce1605eb41276b0a9a79fe5f46fa8198 | /users/schema.py | 8d340c5905761a66ecfbc65fac423793a88a2f5a | [] | no_license | Academia-MagicKode/FastAPI | daaeea85152717a484a32309acf77be92435b53d | 139942870a5ee76a1e29bcbfb5d1262af0b2a832 | refs/heads/master | 2023-05-09T02:03:45.804484 | 2021-05-29T14:37:47 | 2021-05-29T14:37:47 | 371,967,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from pydantic import BaseModel
from typing import Optional
class UserSchema(BaseModel):
username: str
email: str
password: str
full_name: Optional[str] = None
class UserShowSchema(BaseModel):
id:int
username:str
email:str
class Config():
orm_mode= True
class TokenSchema(... | [
"magickode7@gmail.com"
] | magickode7@gmail.com |
86cd6ba4970b1c67cc4bfb02b0ea766a92fceb11 | 6b6308031cb70672edbf69e753b175a66bc80940 | /hel.py | e3c10d3a699db959e3ee55157ab194618f5da51a | [] | no_license | mposypkin/papmanager | bd30a37d9ffde03ded3d88e43442459af8c9cb52 | e5b76d2af52c0a475332b68570489cea0395267a | refs/heads/master | 2021-05-06T05:28:40.116982 | 2018-02-17T21:02:07 | 2018-02-17T21:02:07 | 115,090,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | from tkinter import filedialog
from tkinter import *
import json
import bibprint
root = Tk()
name = filedialog.askopenfilename(initialdir="/", title="Select file",
filetypes= (("json files","*.json"),("all files","*.*")))
print(name)
s = ""
with open(name) as f:
s = f.re... | [
"mposypkin@gmail.com"
] | mposypkin@gmail.com |
4e19590238f7ad5a0154a3fcd149292e9009c141 | 301e7bb7f758dcb97fff090aae92226c75f5ddb1 | /MNIST/mnist.py | 86cb4cfa6afee06f5ece3557fee3e85d5a22d021 | [] | no_license | Ionnia/ML-Python | 860f1c3dc055c292b5330c6cb5ae46dbfa5509f6 | d1fff39d2945b77dfb8d71ce3f9a997fe1331b37 | refs/heads/master | 2020-03-24T12:30:48.925698 | 2018-08-06T01:01:24 | 2018-08-06T01:01:24 | 142,716,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | import idx_decompressor as idxd
import download_mnist as dm
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout
from keras.utils import to_categorical
import numpy as np
# Downloading and extracting mnist dataset
dm.get_mnist()
train_images = idxd.idx_decompress(... | [
"baymakanov@gmail.com"
] | baymakanov@gmail.com |
4221d825e44541bbd9aefe57229a3c8124657c89 | 880d75590e82c74c05616aba471fc63b624dffb5 | /Workshop 5/Excercise_page_149/excercise_01_page_149.py | a7c6147050452128be9a5b4a498876ae19f30069 | [] | no_license | Scaletts/Python | 7591a6ae29e7d8a77072ebe5b8af597d40612b78 | d55a7ab0f8824178aae0e43b4e1b78785773fa1e | refs/heads/master | 2023-08-18T12:34:39.900662 | 2021-10-17T16:19:41 | 2021-10-17T16:19:41 | 402,992,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | """
Author: DuongTruongTho
Date: 09/08/2021
Program: Exersice_01_page_149.py
Problem:
What roles do the parameters and the return statement play in a function definition?
Solution:
The return statement terminates the execution of a function and returns control to the calling function.
Execution ... | [
"duongtruongtho12@gmail.com"
] | duongtruongtho12@gmail.com |
bdd93a2261bd97e02005e332392751213a22294c | 42b799b2ff8283511472b76152a3ca70af445ebd | /Election-Analysis/python_practice.py | e6f102627bbdc95cc7c5460a08a3b849c5810aa4 | [] | no_license | ducluu27/Election-Analysis | 3173a1384cfd784db8bda5dec52bd48a65eeda3c | 68e16c3dd02d29e9eecd22f78c9560c2ce83f48b | refs/heads/master | 2022-12-04T21:36:54.057932 | 2020-08-16T19:26:36 | 2020-08-16T19:26:36 | 286,522,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | counties= ["arapahoe",'denver',"jefferson"]
counties_dict ={}
| [
"noreply@github.com"
] | noreply@github.com |
4fc8d5244e37373fb0ec5effd26f848f88a4864d | 6b5fd328e3aa38acc6ef0b97a8e1e253a42ee385 | /supervised_learning/0x11-attention/10-transformer_decoder.py | a0e62a79e62a999313bab85074fc02f120ef3bd7 | [] | no_license | oscarmrt/holbertonschool-machine_learning | c43251b74b16c50b8ee1853f0644cf80af055d2b | b1d0995023630f2a2b7ed953983c405077c0d5a8 | refs/heads/master | 2023-04-02T23:51:44.545003 | 2021-03-31T17:19:35 | 2021-03-31T17:19:35 | 280,184,789 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #!/usr/bin/env python3
"""Class Decoder"""
import tensorflow as tf
positional_encoding = __import__('4-positional_encoding').positional_encoding
DecoderBlock = __import__('8-transformer_decoder_block').DecoderBlock
class Decoder(tf.keras.layers.Layer):
"""class Decoder"""
def __init__(self, N, dm, h, hidden, ... | [
"oscarmrt@hotmail.com"
] | oscarmrt@hotmail.com |
d2fd7a84f08b247847499681ef0c54a84674c851 | c67c2d26b71638455278149a3771949659cf96b2 | /led-nod.py~ | c1f8f673ac3116274da75e4dcaee88782ffb50d8 | [] | no_license | rafitzadik/rpimove | 71706590367217be865307002af221837827d953 | 3ef53b611c97cc69578477a55feaf01ad2a8c41c | refs/heads/master | 2021-01-23T02:59:10.941143 | 2015-10-29T17:13:36 | 2015-10-29T17:13:36 | 37,815,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | #!/usr/bin/env python
from gopigo import *
import sys
import atexit
atexit.register(stop)
for count in range(0,3):
led_on(1)
led_on(0)
time.sleep(0.2)
led_off(1)
led_off(0)
time.sleep(0.2)
| [
"rafitzadik@gmail.com"
] | rafitzadik@gmail.com | |
863f8f1e4c02e3a6d287a9f3eb7ceadbe731f4d8 | 56207908c6681d3c23e4385d37c560c5bee17664 | /Util/GetKey.py | 3e8858cd82b02ae27a4b432f01d69a1a36ccd70d | [] | no_license | idealegg/Get_Vip_Vedio | 75642459be6eabe6033791995e4724c4685729e7 | 2d57468d7d5a1aa634ecb814d7fbc7f9072e8a9f | refs/heads/master | 2022-10-24T13:23:33.274444 | 2022-10-04T17:35:57 | 2022-10-04T17:35:57 | 164,870,540 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | # -*- coding:utf-8 -*-
import requests
import re
def GetKey(url, addr, host, ref):
ret = ""
textmod={ "url": addr,
}
header_dict = {"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding": "gzip,deflate",
"Accept-La... | [
"452144941@qq.com"
] | 452144941@qq.com |
6e725fc04ccc427d7f62de141bd77b5808e7d874 | 6d31e7b62a9a6438d648becf8708171e2773c49c | /day/migrations/0005_auto_20160911_1719.py | 8aa67e314549f3e44622db9aa2f5747b64a42de9 | [] | no_license | jakeseaton/fop | 74d6e27f3afe9b3652873ca5a987e534f60cc392 | 8d21ab8bfb5916311bebabb267298933c0774bf5 | refs/heads/master | 2020-08-04T16:06:29.365540 | 2016-09-12T01:51:48 | 2016-09-12T01:51:48 | 67,883,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-11 21:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('day', '0004_day_day_type'),
]
operations = [
migrations.AddField(
... | [
"jakeseaton13@gmail.com"
] | jakeseaton13@gmail.com |
f10e035392a68b9897e6aa8a80b0395349d1d82a | bd0fb69648ff4516e8e1ac3840509d22c5e4e6fa | /二叉树/PathSum.py | 3c939ca21d8224a318b9313e770db0c83b73597d | [] | no_license | takenmore/Leetcode_record | d523b997f7e1b80e1841f007e48b6ed84b38e6c5 | 7ebe6f3a373403125549346c49a08f9c554dafac | refs/heads/master | 2022-12-02T04:50:02.000415 | 2020-08-08T05:45:20 | 2020-08-08T05:45:20 | 262,273,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
from typing import List
'''
给定一个二叉树和一个目标和,找到所有从根节点到叶子节点路径总和等于给定目标和的路径。
hasPathSum -> 判断有没有
pathSum -> 记录下路径。
'''
'''
两道 dfs 题 (虽然记录是利用了回溯的思想。)
'''
class Solution:
def hasPathSum(sel... | [
"cjn154@126.com"
] | cjn154@126.com |
492314193bdd779078c2f05799fa7b84b4a5bf04 | ec2b3b8b61cef4e94447ad70e543b690d70050e5 | /static_d-fold_rectangle_tree_variant/core/Util.py | 6418041839b8a9806ad1c275f21645cd3f310f3e | [
"MIT"
] | permissive | bzliu94/algorithms | d6e491f6d3c68c50a37bab504501a73362b9a94d | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | refs/heads/master | 2021-01-17T02:22:26.044478 | 2020-08-02T01:13:59 | 2020-08-02T01:13:59 | 36,104,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import math
import decimal
def comp(a, b):
if a < b:
return -1
elif a == b:
return 0
elif a > b:
return 1
def getDistance(loc1, loc2):
x1, y1 = loc1
x2, y2 = loc2
delta_x = x2 - x1
delta_y = y2 - y1
distance = math.sqrt(delta_x ** 2 + delta_y ** 2)
return distance
# truncat... | [
"bzliu94@gmail.com"
] | bzliu94@gmail.com |
eb1c7cf4cd3827cda705f975119f960bd5605afa | 50bd16c857db1fd7074f7b56df64da3112d18d5f | /backend/patient_hill_19535/wsgi.py | 9666dcb595d33b5dd9464a10f06797968ebb57f2 | [] | no_license | andremcb/patient-hill-19535 | ae2469733bdbfd5577b8942aa9702f77536945c9 | e7dda9549c93511acc11a927ee022708579c5a3b | refs/heads/master | 2023-03-03T23:59:32.449515 | 2021-02-18T21:33:17 | 2021-02-18T21:33:17 | 340,182,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for patient_hill_19535 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('D... | [
"csantos.machado@gmail.com"
] | csantos.machado@gmail.com |
9b5a26ccd793a7f16ec99c306e0fc6f9ee28b36f | 3a634668e9f83116b49b7e742bbba54ea47615ec | /ft_odd_even_analysis_lst.py | 05c47d389e084c85d1c9f6f39a0eaffd815a343c | [] | no_license | Linellian/this_shit_i_always_get_an_f_for | 715583bba3596012433650ee80653808310125a6 | 0254ada959f79ab9a63e46aacedacf0f2ff9f056 | refs/heads/main | 2023-01-10T07:13:50.377162 | 2020-11-13T07:04:02 | 2020-11-13T07:04:02 | 312,498,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | def ft_odd_even_analysis_lst(lst):
ev = 0
nev = 0
max_ev = 0
min_ev = 9999999999999999999999999
max_nev = 0
min_nev = 9999999999999999999999999
sum_ev = 0
sum_nev = 0
for i in lst:
if i % 2 == 0:
ev += 1
sum_ev += i
if i < min_... | [
"noreply@github.com"
] | noreply@github.com |
9098862e6382e92a3078581798a715abbec82bd2 | 2d0209e35956674baf7117dc607887bb7e9a043d | /learning_site/views.py | 10803613ec5b054b0d66a03345740ca853b624ef | [] | no_license | Jaxx0/learning-site | 38cf6068ba1061bd6e9544274ed958ad52501434 | 2fac65357dd78f3a6a2111bed0362b222bdfe84b | refs/heads/master | 2020-07-26T23:19:02.938907 | 2019-10-09T07:35:03 | 2019-10-09T07:35:03 | 208,795,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | from django.contrib import messages
from django.core.mail import send_mail
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from . import forms
def hello_world(request):
return render(request, 'home.html')
def suggestion_view(request):
form = ... | [
"jackson.kitili@gmail.com"
] | jackson.kitili@gmail.com |
562fcf223ee20b63577a6becbc0c7f022bc9c9a7 | 640f7ba8ce3f79e3b41fa972edcabae2f6aa82dd | /deep-twi-bot.py | fe9611554d384ebed1646a084773ea4ca049a303 | [] | no_license | deepthi10-code/Twitter-name-changing-bot | 93a11f3eeb6d1205c667fa8c067ab5030dd341fc | 6f335938497d2eb26d245321df75dfc4c8f8bdb8 | refs/heads/master | 2022-12-04T12:00:12.485453 | 2020-08-25T08:09:06 | 2020-08-25T08:09:06 | 290,146,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import tweepy
import os
def create_api():
consumer_key = os.getenv('consumer_key')
consumer_secret = os.getenv('consumer_secret')
access_token = os.getenv('access_token')
access_token_secret = os.getenv('access_token_secret')
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(a... | [
"noreply@github.com"
] | noreply@github.com |
7ef03c4c91a20c4be8570f7e64d9b0d1855f71c7 | 568d0281cad4cdc7bd5d070b142ca19af781af20 | /uwont/app/models.py | 96d1a11e715d72267e3f326ef8df654accc4acc5 | [] | no_license | robertrenecker/uwont.io | 48502c4a01f73a65780a6389ea1cbdfb8dbf10e5 | 0f22640b19d2933ffd4e8b9a835f62b33b01f619 | refs/heads/master | 2021-01-13T16:34:41.038210 | 2017-01-15T21:57:22 | 2017-01-15T21:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.db import models
from mongoengine import *
class User(Document):
firstname = StringField(max_length=200)
lastname = StringField(max_length=200)
# Create your models here.
| [
"michael.vienneau@colorado.edu"
] | michael.vienneau@colorado.edu |
00c6b32985e34e7e8e39f37029cae2eac5ca2d14 | 4311ed18fbcc2d0f3326658ed22a10f6555c4f26 | /1.两数之和.py | d8a81836c52d34ba7788a27560777161291f7159 | [] | no_license | 823858275/leetcode_python | a5ec6034d5ac3d12c6c5e6415cb85ca7c2b7f5e9 | 136d7f08c9de9259ad1fcdfe902e49dd7f0e4f37 | refs/heads/master | 2022-03-04T12:41:27.604433 | 2019-09-23T10:31:06 | 2019-09-23T10:31:06 | 198,064,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #
# @lc app=leetcode.cn id=1 lang=python3
#
# [1] 两数之和
#
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
dic={}
res=[]
for i in range(len(nums)):
if dic.get(target-nums[i])!=None:
res.append(dic[target-nums[i]])
res.app... | [
"823858275@qq.com"
] | 823858275@qq.com |
5557e6d5a399aec61a87ff8ac49b2592e489890a | f0f66324c82c00e5552e71b3632dc242aa3d7927 | /colors.py | ab75604890fe3511c9c50cf53f5fe4dc9b735d2e | [] | no_license | jcdragon/pi-pong | 43e1e1b8c0e6f5b5e5f99a9fc7197a0ba5f91b26 | f6055515cf793037071be04adf500b0028c778b3 | refs/heads/master | 2020-12-30T09:58:18.972377 | 2017-08-06T19:01:14 | 2017-08-06T19:01:14 | 99,453,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | RED = (128, 0, 0)
GREEN = (0, 128, 0)
BLUE = (0, 0, 128)
YELLOW = (200, 200, 0)
BLACK = (0, 0, 0)
PUKE_GREEN = (53, 67, 3)
BLOOD_RED = (187, 10, 30)
HUSKY_PURPLE = (51, 0, 111)
HUSKY_GOLD = (232, 211, 162)
| [
"legoninjadragon@gmail.com"
] | legoninjadragon@gmail.com |
ced3ffd52e01898a76bf7b8123f468234fec7a3c | a0fcc981869be99e32cae8208c4b00ed1a516844 | /archives/oldMyApp/crud_app.py | 3493557084f2898f0f6af16bafd087842202c8ee | [] | no_license | hmuus01/data-and-the-web | 21f52b24a0cdd45c4ad2af5c5f2896838a2457b5 | a1f512a6af3b458a6ee40848849e06e55d0e5d73 | refs/heads/master | 2023-07-19T18:22:05.730806 | 2019-03-30T00:00:04 | 2019-03-30T00:00:04 | 310,714,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | from flask import Flask, flash, redirect, render_template, \
request, url_for, session , redirect
from flask.ext.pymongo import Pymongo
import bcrypt
app = Flask(__name__)
app.secret_key = 'some_secret'
@app.route('/')
def index():
if 'username' in session:
return 'You are logged in'
return rende... | [
"hmuus001@gold.ac.uk"
] | hmuus001@gold.ac.uk |
6cf5d41c21216e328ea3fa19f931e73221a9c6e5 | a9a7f83e1f9e629fdd07d028e738fbc11ded3a4f | /AutoLogin_@TRUEWIFI_with_chrome.py | 8591f933900b597699ef09f9b6b8f1a2b730dce8 | [] | no_license | StartloJ/AutoWiFiLogin_TrueWIFI | c99af5b9222a4b4a17ba0173f490324f1713c8cc | acecf0cf5daaaaeaf5dc523ab8baab14b7305236 | refs/heads/master | 2021-10-10T17:48:56.182144 | 2019-01-15T04:04:24 | 2019-01-15T04:04:24 | 97,491,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | import os
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
# from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
import time
# def createSession():
# try:
# # binary = FirefoxBinary('/Applications/Firefox.app/Contents/MacOS/firefox-bin')
# # driver = webdriver.Firefo... | [
"lord.tart@gmail.com"
] | lord.tart@gmail.com |
e36cc8ab36ca699d7897499867d918b0505bcf13 | 4f11fd7653a6548764c5e9956d6ce82550082cf2 | /count_factor(codility practice).py | afe77b6c7842f8d84eacddfe4f928ae19771e45f | [] | no_license | prasojojiwandono/logic | fd323a1ae5217ee5e98fecff04080dba659fb10a | 4936531786604274667d8fec60ac724e7ce05fdd | refs/heads/master | 2022-05-05T10:21:24.119078 | 2022-04-14T04:12:29 | 2022-04-14T04:12:29 | 158,405,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | #kodingan ini untuk melatih logic programming
#untuk soal bisa dilihat di tautan berikut:
#https://app.codility.com/programmers/lessons/10-prime_and_composite_numbers/count_factors/
def solution(N):
# write your code in Python 3.6
# write your code in Python 3.6
if N ==1:
return 1
if N ==2:
return 2
a=[]
u ... | [
"noreply@github.com"
] | noreply@github.com |
b56726cb37c89ee4fefdeb060663be2e06bf528e | 992a8fd483f1b800f3ccac44692a3dd3cef1217c | /python 学习/objectives/string.py | 471ed23f6413b8b8c2b45453ef7fb007126efdd6 | [] | no_license | xinshuaiqi/My_Scripts | c776444db3c1f083824edd7cc9a3fd732764b869 | ff9d5e38d1c2a96d116e2026a88639df0f8298d2 | refs/heads/master | 2020-03-17T02:44:40.183425 | 2018-10-29T16:07:29 | 2018-10-29T16:07:29 | 133,203,411 | 3 | 1 | null | null | null | null | WINDOWS-1256 | Python | false | false | 357 | py |
####### string
S="songshanshan"
len(S)
S[0]
S[-1] ## last iterm
S[-3:] ## from last 3 to the end
S[:-3] ## print, except the last three
S + '123'
#string جو´ْ
name="qxs"
age="32"
s="my name is {name}, my age is {age}"
print(s)
##remove empty part
a=' abc'
a.strip()
b='\t\tsss'
... | [
"qxs718@126.com"
] | qxs718@126.com |
6f090196d342d803900a2d3a622859ed3c951b90 | 40b69f48b0aad6fb1fde23b41f34d000236b3136 | /ppdet/data/tools/visDrone/test_output_process.py | 3371b85ea37ac9e809a52ce3a7be3aeaf7f7c48b | [
"Apache-2.0"
] | permissive | TrendingTechnology/AFSM | e88d36d757229dc1266a0ec62d61fd6e48d29649 | 54af2f072071779789ba0baa4e4270a1403fd0dd | refs/heads/master | 2023-01-22T03:28:17.868009 | 2020-12-10T09:47:17 | 2020-12-10T09:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | import torch
from mmdet.models import CenterNetHead
from mmdet.datasets.my_dataset import vis_bbox
from mmdet.datasets.loader.build_loader import build_dataloader
import mmcv
from mmdet.core import tensor2imgs
from mmdet.datasets import get_dataset
def gt2out(gt_bboxes_list, gt_labels_list, inp_shapes_list, stride, c... | [
"zehuigong@foxmail.com"
] | zehuigong@foxmail.com |
ba744cd1b663e1a7434d02b1da7afbc8bb00966d | 0bf3cdca7dcdde6704bf436c6941fab4766ffba6 | /students/K33401/Polyakov_Sergey/pr2/django_project_polyakov/project_first_app/views.py | 826c574ff49e56d0038317dab5f629ddf909f490 | [
"MIT"
] | permissive | spolyakovs/ITMO_ICT_WebDevelopment_2020-2021 | 4ef99309c1662356791662cb77e20896853746bd | b83b609676554afd6cd5d0cf989cda7e0d571000 | refs/heads/master | 2023-03-31T09:27:31.028586 | 2021-04-09T15:37:35 | 2021-04-09T15:37:35 | 298,790,962 | 0 | 0 | MIT | 2020-09-26T10:32:47 | 2020-09-26T10:32:47 | null | UTF-8 | Python | false | false | 2,043 | py | from django.shortcuts import render
from django.http import Http404
from django.views import View
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.edit import UpdateView
from django.views.generic.edit import CreateView
from django.views.generic.... | [
"sergpolyakow@mail.ru"
] | sergpolyakow@mail.ru |
2c26c402ff37f9a9d45c366b9db7c6dce8fd8249 | 930a4bb24a575a85dc569ca5f5fbd262a0db7404 | /investorkopo/views.py | 098c2a3e3d4c2e8f001fe34fcaa7611a1646e6a4 | [] | no_license | difasdfs/dashboardcb2 | 11937480e0c2cf52b41806772c74731567b67ba0 | 6d070e72a3bc2c557c13246bdec280679537d9f3 | refs/heads/main | 2023-07-02T20:48:54.932302 | 2021-08-02T03:55:48 | 2021-08-02T03:55:48 | 344,037,530 | 0 | 1 | null | 2021-06-21T06:09:06 | 2021-03-03T07:20:53 | HTML | UTF-8 | Python | false | false | 3,663 | py | from django.shortcuts import render, redirect
from . import update_struk, update_sales, format_rupiah, kumpulan_struk
from datetime import date, timedelta
from .models import Sales
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
from django.con... | [
"noreply@github.com"
] | noreply@github.com |
a9150869bbc758e33d5796c863d0b70d6994ab50 | 394fad0dbb422a2996a3fe50b204338b665d8efd | /k_fold_Cross_validation.py | 555708793c70d492fe588c8ae1d807a74753168d | [] | no_license | strategist922/semEval_Task6_Text_Classification | 32b0405a6b5cf9aa9fc0919592034f1228ed96ff | 190d5340284b56e3dcae0bd0665538fe54c28dfb | refs/heads/master | 2020-12-05T23:42:00.384463 | 2019-01-17T20:35:28 | 2019-01-17T20:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | import random
import math
import Data_cleaner
import extract_features
import naive_bayes
import logistic_regression
import warnings
import tree_classifier
import svm
import random_forest
import Kneighbours_Clf
# divides data into k chunks and prompts score
def validate(k,data,labels):
list = []
for i in range... | [
"ahmed.morsy1995@gmail.com"
] | ahmed.morsy1995@gmail.com |
5a6a44dc8927d3270bafd0fc1c567851897acc08 | 1056747bc425646e51e1bbbc42fd3ab27b0bed93 | /src/smartcar/scripts/image_resizer_node.py | 242a399684a41979451eadedac67ea5030cb17c0 | [] | no_license | kdshuo/rosProject | 1df71d9c20d9a2dab0e3460d21ce6065c18905bd | 38ddcbbbba13e6589e9a8c67fd959f1af69a5376 | refs/heads/master | 2023-04-24T04:47:23.505565 | 2021-05-10T12:07:09 | 2021-05-10T12:07:09 | 366,025,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
#import sys, time
import rospy
#import roslib
import cv2
#import numpy as np
#from sensor_msgs.msg import CompressedImage
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
NODE_NAME = "image_resizer_node"
#SUB_TOPIC = "/imag... | [
"1670690897@qq.com"
] | 1670690897@qq.com |
50fdcd5dc69bcd6c62fd815ac6c60e63d90605d1 | a0dc7e0c139b727d77781137c53b3ee886a7d7e5 | /crawl_ccass/crawl_ccass/pipelines.py | 6a4244e04425f0cd0d29a28ed0fbee8a5ab55511 | [
"MIT"
] | permissive | easy00000000/crawl_ccass | 313db81578f5defa1c80a31016bea0652276ba8f | d7cad1ed11858c68d680c9a0d83e376f0c9c6a8a | refs/heads/master | 2021-07-11T17:10:15.339568 | 2017-10-14T06:05:46 | 2017-10-14T06:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,719 | 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
from scrapy.conf import settings
from bs4 import BeautifulSoup
import json
import MySQLdb
class Json_Pipeline(object):
def ... | [
"easy0000@foxmail.com"
] | easy0000@foxmail.com |
1d28d5aa54abb9d2cf7d82a6e75c565253701ba1 | 05329cc0ccc814c5204379b2ed5cbe8ee2503879 | /library/python/runtime_py3/test/test_arcadia_source_finder.py | 193336d17a1fc602bf83e4756e8e754cae0f4c79 | [
"Apache-2.0"
] | permissive | wayfair-contribs/catboost | 3d01a5fabf60187b27d7d543409235940fba8abc | 849b66e4c4faf832cd6ee9c39a3022f29d18819f | refs/heads/master | 2023-09-01T09:07:45.153072 | 2021-10-22T11:39:45 | 2021-10-22T11:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,913 | py | import unittest
from unittest.mock import patch
from parameterized import parameterized
import __res as res
NAMESPACE_PREFIX = b'py/namespace/'
TEST_SOURCE_ROOT = '/home/arcadia'
TEST_FS = {
'home': {
'arcadia': {
'project': {
'normal_lib': {
'mod1.py': '',... | [
"say@yandex-team.ru"
] | say@yandex-team.ru |
f6294fd2619f26947669c79bceb7f26f41082eba | 15cf8ab8d96083d84409d88b6db2e66c506084a4 | /Python/CotaçãoDolar e Clima.py | 60bfeaca5fd0ca55420d2ca435914a5b69bff730 | [
"MIT"
] | permissive | ABHISHEK-AMRUTE/Hello-world-1 | 59bea839af5a5e064ede374ac593f47a5f8249d5 | ba8ab6f1a5e6a23a49a2cb17eaa44e616d04ee36 | refs/heads/master | 2020-08-29T10:21:34.438677 | 2019-10-28T08:58:22 | 2019-10-28T08:58:22 | 218,004,701 | 2 | 0 | MIT | 2019-10-28T08:56:58 | 2019-10-28T08:56:57 | null | UTF-8 | Python | false | false | 725 | py | # COTAÇÃO DO DOLAR E CLIMA ATUAL
import re
import requests
import json
rc = requests.get('http://api.promasters.net.br/cotacao/v1/valores').text
cotacoes = re.findall(r'\d\.\d+', rc) # TODAS COTAÇÕES
cidade = str(input('Digite a cidade: ')).strip().lower()
cidade = cidade.split(' ')
cidade = '%20'.join(cid... | [
"noreply@github.com"
] | noreply@github.com |
384d3eda1b59936bccfc0cf7d0b3aee330fae824 | dde079f27589bc5b2141c7522e6b682338510e71 | /Project 1 - Classification/preprocessors/kdd/KDD.py | f97b3287b18ca1f3bc556c8329e3ef83cdbf207f | [] | no_license | gentrexha/machine-learning | 60923d5b944ba950260cfdf1e5f4d3aa399e31b6 | f4bb49acd61a84d81b3883a31ec3dce1bcadfa96 | refs/heads/master | 2022-05-08T05:21:11.705372 | 2020-04-20T11:34:43 | 2020-04-20T11:34:43 | 257,257,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,528 | py | import sys
import pandas as pd
import numpy as np
from sklearn.base import TransformerMixin
from classifiers.config import DATASETS, kdd_data_folder
def split_mdmaud_and_domain(dataset: pd.DataFrame) -> pd.DataFrame:
# split the data from MDMAUD column to three meaningful columns
dataset = dataset.assign(
... | [
"gent.rexha@gmail.com"
] | gent.rexha@gmail.com |
04cf6a286b8a5e7e7fbef16c441136ab4fba3821 | fd4f50ff353ae456e9b9223204cd20b34296cd8c | /code/terra/migrations/0002_delete_feedback.py | c6220e06adcc36ad24aec25eeb628cf1726fefbd | [] | no_license | jaejunha/Terra-Coding | b406dd40a68664d36fee0b48eccb500e2da262d9 | 3f3daa7bbed6baf449e0bd1533ab6d9bd6056820 | refs/heads/master | 2021-09-08T00:24:02.081338 | 2018-03-04T05:04:41 | 2018-03-04T05:04:41 | 103,519,799 | 1 | 4 | null | 2017-09-29T01:25:00 | 2017-09-14T10:33:19 | Python | UTF-8 | Python | false | false | 349 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-27 16:21
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('terra', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name=... | [
"zeroback10@ajou.ac.kr"
] | zeroback10@ajou.ac.kr |
bc7772704aee021e9a6e3fcfb0e66c4fb233f3a4 | 1ae4d3632f788f1a5e8f1e919e3f43b5f53d9ecd | /lesson2 (Variables)/task8/comparison_operators.py | 7336e2dc96cee41c856c334f12f966e7cc43b8d9 | [] | no_license | catharsis96/pythonintro2 | fc1f2dc3380efff92918c4bf9f77615b39380c0a | ac896af08e0835372bd1e6901b99f005bf0bb4b8 | refs/heads/master | 2021-04-29T11:37:30.599143 | 2017-01-02T16:23:48 | 2017-01-02T16:23:48 | 77,846,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | one = 1
two = 2
three = 3
print(one < two < three) # This chained comparison means that the (one < two) and (two < three) comparisons are performed at the same time.
is_greater = three operator two
print(is_greater) | [
"catharsis96@yandex.ru"
] | catharsis96@yandex.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.