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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acd099225a02f96c7d3c8ff511a976350a843ec3 | 55610cce405fd4f2809bd7d26b4f19b9c2b1d3cd | /make_up/migrations/0002_makeuptask_student.py | 718d9dd7a33b84b0bdd3e99ef57ad00ce51b2c8a | [] | no_license | zzzzty/jtdx | 30d648cf06f259dfb55227a1fb64b74a24afdd85 | 4486d9073416b7df8b93ac47d1b29256a4dff260 | refs/heads/master | 2020-06-07T14:02:02.074749 | 2019-12-26T07:46:40 | 2019-12-26T07:46:40 | 193,014,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Generated by Django 2.2.2 on 2019-07-06 07:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0002_student_nick_name'),
('make_up', '0001_initial'),
]
operations = [
migrations.AddFi... | [
"zzzliusong@163.com"
] | zzzliusong@163.com |
0b48da007baa45e59cf83c9b05f368505db68388 | 3d231cc28740289606b44b358edf33819dc89682 | /Hacker_rank/hacker_rank_average.py | 290785d57b22d2af3125d096199b8cba13fd8684 | [] | no_license | byuvraj/Solution_for_python_challanges | f49f031c89e5bb65a80ae6dd2dfbbb3a0b143e25 | d41e92c5cf93bed3265ff7ec26f8d8d34f149297 | refs/heads/main | 2023-08-18T19:41:59.350427 | 2021-10-14T10:53:09 | 2021-10-14T10:53:09 | 373,757,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | if __name__ == '__main__':
n = int(input())
student_marks = {}
for _ in range(n):
name, *line = input().split()
scores = list(map(float, line))
student_marks[name] = scores
query_name = input()
marks = student_marks[query_name]
avg=0
print(marks)
n_ =len(marks)
... | [
"byuvaj0202@gmail.com"
] | byuvaj0202@gmail.com |
54348e0bd8926ccdffa383c51db801b380d5f575 | 428f2c48d6e9dabc3ac63012d4146b98bc38efc1 | /refresh/refresh/wsgi.py | 5f348f3bcbf706c24a9dad495e9bb99837caa19e | [] | no_license | Arange-code/Django-project | f96d61fcebe0aa93bd311f86fe0a0f539b0b68f5 | 53527d1f442d87f8ac8f37d0c544168670e054cf | refs/heads/master | 2021-02-05T12:29:56.201975 | 2020-02-28T14:31:58 | 2020-02-28T14:31:58 | 243,780,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for refresh 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"you@example.com"
] | you@example.com |
233695bb1c57dade93d46c11765d5914bc3e29e0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03039/s199470028.py | 5afbcf0436e1e2a41276ee67cfaa4072153695af | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from itertools import combinations
def solve(N, M, K):
#A = [(n, m) for n in range(N) for m in range(M)]
r = 0
for x in range(N):
r += x * (N - x) * M * M
for y in range(M):
r += y * (M - y) * N * N
return r
def main():
N, M, K = map(int, input().split())
g1 = [1, 1]
g2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e6c4f39cad3a7e6cc5c02477d45d515ac44f6b5b | 060ff392f361e4141d7d2add4282cd8ec67d055d | /musify/asgi.py | bc02da036c98fd237532dccce5998c699977136b | [] | no_license | omlondhe/ReactDjango-MusifyApp | cfe61d85bccd583a2b7658f33b234869af008143 | 4fe3a18b2a425df0a860dcbb572b3a51227779e9 | refs/heads/main | 2023-02-06T01:54:31.279052 | 2020-12-28T17:51:31 | 2020-12-28T17:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for musify 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"oplondhe@gmail.com"
] | oplondhe@gmail.com |
9918758e1b829eee564875e4744dd8f4094f8f34 | bbefc4e1252b984625bc5b94b244d2e9838e4100 | /neuralnetwork/neuralNetwork.py | e8bd07d938d8993b0597b093db7adf1cad62f94b | [] | no_license | ckethan0429/Machine-Learning | 5a8add0a8c56695b1d874c9f4bc44236b39dcd2d | d6d1b5fb2ceda866e8334a0a6d2a8bf5df864a3c | refs/heads/master | 2020-05-03T13:36:22.147819 | 2019-04-02T11:54:33 | 2019-04-02T11:54:33 | 178,656,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | import numpy
from scipy.special import expit
import pandas as pd
class neuralNetwork:
#์ ๊ฒฝ๋ง ์ด๊ธฐํํ๊ธฐ
def __init__(self, inputnodes, hiddennodes, outputnodes, learningrate, path = None):
#์
๋ ฅ, ์๋, ์ถ๋ ฅ ๊ณ์ธต์ ๋
ธ๋ ๊ฐ์ ์ค์
self.inodes = inputnodes
self.hnodes = hiddennodes
self.onodes = outpu... | [
"oops0429@gmail.com"
] | oops0429@gmail.com |
6aa35f7716f196962697548423b8318a68aeb789 | 981e6d9d34a91852407d45c4b7863779e228a516 | /venv/bin/django-admin.py | 92b413158aeac93a5d38ab2670da12a6bbeeaa4c | [] | no_license | starwayagency/astrolabium_viber_bot | 5062ffcb7b35b3608f9434fd486e5806e9084ae1 | ec4e699bbc32e7275da0f12d77a0ae5cf32d000e | refs/heads/master | 2023-08-18T06:36:43.315701 | 2021-10-24T18:04:31 | 2021-10-24T18:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/home/jurgeon/projects/astrolabium/astrolabium_viber_bot/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'dja... | [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
e9734d05b7e16399760fe649e8c74a4afdef02c4 | c8b5d05ff16d422ec05addb99f208467f01fa373 | /tests/Character_tests.py | c1133329199065c0a91a490c00f3c6fc7b34fcab | [] | no_license | PreslavaKuzova/Dungeons-And-Pythons | 298105ba51ef4a10e35461c3fcef5818d0934b53 | 5629e63a09a34e5e820383da0509cb67147ec19d | refs/heads/master | 2020-05-07T11:05:20.120814 | 2019-04-15T14:37:42 | 2019-04-15T14:37:42 | 180,445,498 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import unittest
import os, sys
sys.path.insert(0, '../')
from Character import *
class HeroTests(unittest.TestCase):
def test_init_value(self):
c = Character(20)
self.assertEqual(c.get_health(), 20)
def test_when_damage_is_taken_and_substract_that_much_from_the_health(self):
c = Charac... | [
"preslava.kuzova@gmail.com"
] | preslava.kuzova@gmail.com |
8677a029b2db44ceafb04e7963b4cf60db2cacb9 | 532fdd01a9080d9980c18a68789b45b207e68550 | /aaltomood/urls.py | ff8e5a84280efce7778b11e53cf5e51f08288ade | [] | no_license | tonipel/aaltomood | 3b85fe73b2b7bdf7eabcb591db33da276506871c | 3ef2fb7ee65a166d1c6e7960b6f492dab951625e | refs/heads/master | 2023-01-05T19:26:23.083041 | 2020-11-07T22:06:14 | 2020-11-07T22:06:14 | 310,659,482 | 0 | 0 | null | 2020-11-07T11:47:03 | 2020-11-06T17:12:37 | Python | UTF-8 | Python | false | false | 913 | py | """aaltomood URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-bas... | [
"toni.pellinen@hotmail.com"
] | toni.pellinen@hotmail.com |
90b90c1af562cd40a9888489a3719f6af2d1acba | eaad714626b105134a8b6d4d6e316a6aab1e436a | /prayas/prayas/urls.py | ff37d21e139ea46ca9594cf2875e381e45598a70 | [] | no_license | pradeeppc/Elearning-Web-App | 967070e130249423b98111de62269ea8e4fd2312 | 49aeb430b5fecccd49d2a9e9332fcd8f138662a4 | refs/heads/master | 2023-03-21T15:28:52.565546 | 2021-03-13T15:16:24 | 2021-03-13T15:16:24 | 149,626,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | """prayas URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"pradeeep765@gmail.com"
] | pradeeep765@gmail.com |
094f154dc9007753efa071553ad662baa9cb66f4 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/enums/types/matching_function_operator.py | 11a366438b14b5a9625600a5fa27c1e72a1abe49 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
13feaddae7e89a0fa743ed4afd4a49c1ec6a1f26 | 1701f11946debbca91708f5bb69c494cfbb4fb7a | /benwillkommen/benwillkommen/settings.py | 2f2127bf772da4463f293c31c43a29727963d930 | [] | no_license | benwillkommen/benwillkommen.com | 4b3f8515c83a51e13023a402dd79d4759baee3b9 | b00041d67f910435cc8b9f5d364e1e282cee9775 | refs/heads/master | 2020-05-18T18:01:54.760330 | 2014-03-16T03:20:44 | 2014-03-16T03:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | # Django settings for benwillkommen project.
#modification for playing w/ git
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysq... | [
"benwillkommen@gmail.com"
] | benwillkommen@gmail.com |
10a528647749bc0baae12598193504377e143439 | f834363c77fed59810549fc61d569ebbaa84de82 | /blog/database.py | 91fa4dfa953ee73949b6df890af45aee99db64dc | [] | no_license | jonnyfram/blog | b77d8aeb5ead1fe7f7659547dc432fb4249d662f | db79ab174978a3517bc8143d046247d96fd32aa2 | refs/heads/master | 2020-04-06T04:17:25.343030 | 2017-07-06T14:37:04 | 2017-07-06T14:37:04 | 95,437,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | import datetime
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, Text, DateTime
from sqlalchemy import ForeignKey
from sqlalchemy.orm import relationship
from . import app
from flask_lo... | [
"jonnyfram@gmail.com"
] | jonnyfram@gmail.com |
c4f1e1e1f8733b767ee1c04540805b7abc0a0d9b | 5329cfea55404d9bbff223d761f06e2ec27c1ab7 | /djangonautic/manage.py | 6b1f7568039bef8fb496997b55bbbb4df8431254 | [] | no_license | rohit1717/articles-django- | c2d6fe202d62b1c3b56bec25f896fced23247f53 | 669e7186cc1b26b70f87ee8c4b782d0743c5bd8a | refs/heads/master | 2022-12-02T21:44:50.231428 | 2020-08-20T17:54:22 | 2020-08-20T17:54:22 | 289,074,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoautic.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"rohitsingh17172000@gmail.com"
] | rohitsingh17172000@gmail.com |
87a8307caea5976b9dea43adb38dbb519f275bcd | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/jakub/nonlocal_averaging/2d_rotation.py | 44dd801a3538e23552901d09a1db0e020abcbe31 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 5,857 | py | from ibvpy.api import \
TStepper as TS, RTraceGraph, TLoop, \
TLine, BCDof, IBVPSolve as IS, DOTSEval, FEDomain, FERefinementGrid,\
FEGrid, BCSlice
from apps.scratch.jakub.mlab.mlab_trace import RTraceDomainListField
from ibvpy.mats.mats2D.mats2D_sdamage.mats2D_sdamage import MATS2DScalarDamage
from ibvpy... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
bf1b684d24bbc4cf5a7179c2bf9f39cda4883aac | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_nextflow_job_request.py | 83b25425a82c6befc3917dc50bb320e6b8812723 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,327 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteNextflowJobRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
574a978e3031c00ce0d37a59ee379800c4f2d854 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/Configuration/Languages/SwigInterface/pygccxml-1.0.0/pygccxml/parser/scanner.py | 967c877a080cf5e421a7027aab7eb78b513ab7b5 | [
"BSL-1.0"
] | permissive | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,301 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import types
import pprint
import xml.sax
import warnings
import xml.sax.handler
from pygccxml.declaration... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
7e5bdb95eceb8d543706dd352ce4101905da500f | 95c71453ed6cc6f9b94f38a3c1655680618d71a4 | /kickstart/DE/EC.py | 477f7b6f874fc7fe1f0ee7f7bd160a909212de3b | [] | no_license | ZX1209/gl-algorithm-practise | 95f4d6627c1dbaf2b70be90149d897f003f9cb3a | dd0a1c92414e12d82053c3df981897e975063bb8 | refs/heads/master | 2020-05-16T14:56:34.568878 | 2019-12-27T07:37:11 | 2019-12-27T07:37:11 | 183,116,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from collections import Counter
def isOdd(n):
return n % 2
def sortl(ls):
sums = Counter()
tmpl = []
for i in range(len(ls)):
sums[i] = sum(ls[i])
for i, j in sums.most_common():
tmpl.append(ls[i])
return tmpl
def rate(lhu,lla):
win = 0
total = 0
for hu in lhu:
... | [
"1404919041@qq.com"
] | 1404919041@qq.com |
cdd78006ece1d3fe85d569ed5cd2713d6c9d3dc0 | b5abb217826b531c8f4c24c74df5620cf89234e0 | /tutorial/quickstart/views/wavsViews.py | 96d52c59b977477927374207b08abe16e53cc95d | [] | no_license | zhwj2015/speech | bedf80c2842b3c344cd1932ba22b71ecaddb84dc | 5155a45b088acaca6988e910927197e2da71f556 | refs/heads/master | 2016-09-06T09:53:05.564149 | 2015-07-08T00:14:27 | 2015-07-08T00:14:27 | 37,200,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | __author__ = 'Administor'
from rest_framework import viewsets
from tutorial.quickstart.models import Wavs, Users
from tutorial.quickstart.serializers import WavsSerializer
from rest_framework.response import Response
import os
from rest_framework.renderers import JSONRenderer
from django.utils.six import BytesIO
from ... | [
"1654339276@qq.com"
] | 1654339276@qq.com |
4450e3282bc9a86c113545d0d5972bb6830b3915 | 25176b716df2bd519703c6e3cbc761d1b8b192c1 | /src/app/interfaces/redis.py | a5133a0dc8d716666dec6fb805c35b0bedf27523 | [] | no_license | kain-jy/python-clean-architecture | 74521d411b1d53f007e80e74c8abe5c64591d321 | a5365818026a6b4da47dae64b099c1de5c8b5005 | refs/heads/master | 2020-04-21T00:03:13.797032 | 2019-02-05T03:22:24 | 2019-02-05T03:24:26 | 169,184,834 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import json
import redis
from .. import usecases
class UserRedisRepository(usecases.UserRepository):
def __init__(self, url):
self.client = redis.from_url(url, decode_responses=True)
def list_user(self):
ret = []
for k in self.client.keys('user:*'):
user = usecases.load_... | [
"me@kain-jy.com"
] | me@kain-jy.com |
2a09d365cb4047774eb081599078201fca564efa | 4d8cfbfe6498d0808eefa8983b07940e006c49fb | /ges/forms.py | 7da85805e7e5201851422ce41a3674ddf51edaf3 | [] | no_license | nikolzp/ges_google | 4b7d18e4fa039a0d4b21e5d71b2a249df958ed2b | fe89f150a624411867877491f127d71eff92bfc9 | refs/heads/master | 2020-03-12T00:59:24.072648 | 2018-04-20T14:43:38 | 2018-04-20T14:43:38 | 130,363,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from django import forms
class GesFilterForm(forms.Form):
max_power = forms.IntegerField(label='ะะพัะฝะพััั ะพั ะะั', required=False)
min_power = forms.IntegerField(label='ะะพัะฝะพััั ะดะพ ะะั', required=False)
max_area = forms.IntegerField(label='ะะฑัะตะผ ะพั ะบะฒ.ะบะผ', required=False)
min_area = forms.IntegerField(... | [
"nikolzp@gmail.com"
] | nikolzp@gmail.com |
8c5c25cee31f3dd1e619b8efc727a8ddf6ab0d55 | 0a3a67da5fe86829b61518827b104e82a887f8a9 | /Create_Insert_Read_Update.py | fbe88c5990a7e7e04aad81215131e7f6927f9e75 | [] | no_license | heeba14/Database_Programing | 080f50520bc24a1d3c1d8791614c90dc27ea449a | b995db179d3edf471429f7d7f0e465392534e02d | refs/heads/master | 2021-04-29T22:53:36.891819 | 2018-02-24T18:09:29 | 2018-02-24T18:09:29 | 121,646,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import pymysql
db = pymysql.connect("localhost", "root", "mysql123", "python")
"""Create Table"""
def create_table():
#db = pymysql.connect("localhost", "root", "mysql123", "python")
cursor = db.cursor()
#cursor.execute("DROP TABLE IF EXISTS EMPLOYEE")
sql = """CREATE TABLE Number (
FIRST_NAME... | [
"heebakawoos93@gmail.com"
] | heebakawoos93@gmail.com |
26f47532449dbed8b39096a83f8cc42ae7de4c34 | 4dbe3b1b2af3ff77e8086ec32ab58dcf47849a3e | /tests/__init__.py | 50530a34b837af8bd1a04e3a510f33988b96846e | [
"MIT"
] | permissive | mnpk/dynamo3 | b83dc700345972ea2336ac8ca842fd9f23edf5c2 | 51eacee60bdf8d058831a9ab3583a2cfe9f91ca9 | refs/heads/master | 2021-01-16T21:54:32.089114 | 2016-04-30T00:53:55 | 2016-04-30T00:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,985 | py | """ Tests for Dynamo3 """
from __future__ import unicode_literals
import six
from botocore.exceptions import ClientError
from decimal import Decimal
from mock import patch, MagicMock, ANY
from six.moves.cPickle import dumps, loads # pylint: disable=F0401,E0611
from six.moves.urllib.parse import urlparse # pylint: di... | [
"stevearc@stevearc.com"
] | stevearc@stevearc.com |
58bf50dfa1ff9df3fb85f9ea8137e332a7d6b16b | 913874feee8362473286fd29a2697958d87098c0 | /testcases/venv/bin/easy_install-3.6 | 6ed6ca7c2fd76d56fa7e9cf006bddac55cf0f8ef | [] | no_license | Linestro/transpy | 2a3d3c011ec746f23bdf5b4c93f1762cc5ac2ae5 | ea1d93df8dd0c1fa77f0d1cbd34efe719d7a20f9 | refs/heads/master | 2020-05-25T00:37:49.305807 | 2019-05-17T19:43:06 | 2019-05-17T19:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | 6 | #!/home/hxzhu/Documents/sdh_mono-master/testcases/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | [
"hxzhu@umich.edu"
] | hxzhu@umich.edu |
9b51264685632fddec2373e3a341f25d8d1d3fc9 | e00fe1e065b448f6f8c0472ed2b8a39991fa7b1b | /Fuzzy_clustering/version2/template/project_run.py | 4188a8c1f9dfdd2d18eda05f8e884d4dcc2f62af | [
"Apache-2.0"
] | permissive | joesider9/forecasting_library | 1a4ded5b09fc603f91fa1c075e79fc2ed06c08a8 | db07ff8f0f2693983058d49004f2fc6f8849d197 | refs/heads/master | 2023-03-29T12:18:22.261488 | 2021-04-01T08:57:08 | 2021-04-01T08:57:08 | 319,906,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | from Fuzzy_clustering.version2.project_managers.project_eval_manager import ProjectsEvalManager
from Fuzzy_clustering.version2.project_managers.projects_data_manager import ProjectsDataManager
from Fuzzy_clustering.version2.project_managers.projects_train_manager import ProjectsTrainManager
from Fuzzy_clustering.versio... | [
"joesider9@gmail.com"
] | joesider9@gmail.com |
20821475d51ca2148fae3ad69aa416f7dfa372ce | 87cb949ba0e4159cf698280f241590442d1ea62b | /airflow_pipeline/extract_entities_debug.py | 607b57a327608e2238f91ebac1d67a81d2d4d50c | [] | no_license | ePlusPS/emr-workflow | 000fea60563be659d4df266b873bea32713c1b9f | f894d353f647feb8c1ce30083d91d5e070b7d6c6 | refs/heads/main | 2023-08-10T07:48:35.904011 | 2020-08-21T00:32:12 | 2020-08-21T00:32:12 | 233,957,297 | 0 | 3 | null | 2023-07-25T15:11:32 | 2020-01-14T23:37:03 | Jupyter Notebook | UTF-8 | Python | false | false | 111 | py | from create_entity_columns import extract_entities
extract_entities('asdf[B-MEDICATION] asdfasdf[B-FEATURE]')
| [
"Morgan.Worthington@eplus.com"
] | Morgan.Worthington@eplus.com |
044b8d3b432a0465426ab35095611881bb8b52c6 | 3fd76a49e0cb7dedd0113abc9fe25d49c96c7610 | /demo01.py | d6d8258fd3c34de89cf6138bf25e91de3f42e6dd | [] | no_license | SnowSuo/python | 4fd51a970139a1eff0097a03534af40e091f3497 | bbf6691efdfaacd93d674160dc2cd3a03f3e9f6e | refs/heads/master | 2021-07-02T09:10:50.063051 | 2018-06-19T12:49:31 | 2018-06-19T12:49:31 | 130,447,868 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | #-*- coding:utf-8 -*-
'''
=============================
่ทๅ่ฑ็ฃ่ฏปไนฆๆฆๅ๏ผๅนถๅฐ่ทๅๆฐๆฎๅทฒjsonๆไปถๆ ผๅผๆไน
ๅไฟๅญ
@copyright๏ผChinasoft international .ETC
@author๏ผSnowSuo
@date๏ผ2018-05-02
'''
#ๅฏผๅ
ฅๆจกๅ
import urllib.request
import re
import os
import json
#่ทๅ็ฝ้กตๅฐๅ
url='https://book.douban.com/top250?icn=index-book250-all'
respons... | [
"yonggang.suo@hotmail.com"
] | yonggang.suo@hotmail.com |
92208027272a6e16363b60e6e399cc6ec08fcbb5 | f3d757f421497e19f2de0d3be21b9ae381511577 | /phoneconfirmation/urls.py | 57e758f3e36f49419e6051dbeed37811f6ed3296 | [
"MIT"
] | permissive | pinax/pinax-phone-confirmation | 526ba350a5bbaaa58f229fad224cf9db41f5bcbc | 102d997db0a7cc00bd862a94987338c25ba24f98 | refs/heads/master | 2023-06-22T15:57:32.364754 | 2019-04-11T23:59:58 | 2019-04-11T23:59:58 | 22,494,944 | 12 | 3 | MIT | 2019-04-11T23:46:54 | 2014-08-01T04:14:23 | Python | UTF-8 | Python | false | false | 369 | py | from django.conf.urls import url, patterns
urlpatterns = patterns(
"phoneconfirmation.views",
url(r"^$", "phone_list", name="phone_list"),
url(r"^confirm_phone/(\w+)/$", "confirm_phone", name="phone_confirm"),
url(r"^action/$", "action", name="phone_action"),
url(r"^get-country-for-code/$", "get_c... | [
"paltman@gmail.com"
] | paltman@gmail.com |
363ece98f426ed769e0ca2315c020c8c4b8a79e2 | 8a18444ba20243cc0d1318efc2c06fbe3c8fbdba | /All_Template_Export/All_Templates_Export.py | 1a54ddb853f88909850fda054c7c5fd77f2f731f | [] | no_license | Aqumik/Zabbix-API | 9157676b03b62e79a22f6c5161a9063137a0fac2 | 6670d58a871a7dc3f3f9dbfe443eff74cce14af9 | refs/heads/main | 2023-02-28T21:45:16.430836 | 2021-01-29T08:20:16 | 2021-01-29T08:20:16 | 334,079,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | # -*- coding:UTF-8 -*-
# @aqumik 2021-1-29 Python3 ๅฏผๅบZabbixๆๆๆจกๆฟ๏ผ่ฝ็ถxmlๆ ผๅผๆ็น้พ็๏ผไฝๆฏ็ดๆฅๅฏผๅ
ฅๅฐๆๅกๅจๅฐฑๅฏไฝฟ็จ๏ผ๏ผ
# ๅ
ทไฝๅๆฐๅฏไปฅๆฅ็ๆณจ้๏ผSSL็ดๆฅไฝฟ็จไบFalse
import json
import requests
class Zabbix(object):
def __init__(self,url,header,user,password):
self.url = url
self.header = header
self.id = 0
self.user = user
... | [
"noreply@github.com"
] | noreply@github.com |
4b7ffa1ba61b1b2c13a7c33cbe25688ed235e748 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.BAX/Mono_16/pdf_to_json_test_Latn.BAX_Mono_16.py | 419f2ec7b49e7c247dfa03dc2764cd5ebdafafec | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.BAX/Mono_16/udhr_Latn.BAX_Mono_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
2516a2bd1fa7c23e64c179adee06fce8c112efc9 | 59b55a64d9340ef6ee7544c47b4c0086bf797236 | /scripts/run_full_image.py | 360a7b0b18a6b2d73edb97934fac0b73b9300056 | [] | no_license | Jeronics/fashion-mnist-test-case | eda3c70d7b5e5113203d39ec5506acd79356148c | 0b15855e7222e17345d20ca946b0d86c2d1ae29d | refs/heads/master | 2022-10-06T06:34:11.643639 | 2020-06-03T08:23:58 | 2020-06-03T08:23:58 | 268,487,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | ############################# IMPORTS #############################
import os.path as path
import pickle
import numpy as np
import torch
import torchvision.transforms as transforms
from models.networks import ProductionCNN2
from utils.application_utils import get_label_and_bounding_box, create_image
from utils.confi... | [
"jeronicarandell@gmail.com"
] | jeronicarandell@gmail.com |
0f0b988db044a90843787fcfa17790f226c36531 | ce1f8877fa9ff084b75bceec4cc7ddf5b3153b07 | /clif/testing/python/imported_methods_test.py | be75ee040777a7e9a8efe35837f737faf0fc1cda | [
"Apache-2.0"
] | permissive | HenriChataing/clif | 034aba392294ac30e40801815cf4d3172d3d44bd | 307ac5b7957424706c598876d883936c245e2078 | refs/heads/master | 2021-01-23T16:25:19.543400 | 2017-09-01T22:18:03 | 2017-09-01T22:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"mrovner@google.com"
] | mrovner@google.com |
2180fbd40a9cda6cf6e7180218f7f525f2c351ce | 664269ec1346b69b1af11d041d5352921ebef060 | /sample-apps/rds/sample-app/src/pymysql/_compat.py | 252789ec4460a3ee383f18f8af26e42ba82b666d | [
"Apache-2.0"
] | permissive | awslabs/aws-servicebroker | 0f288d4da0201a85e99f27bf7d95cc84d30d2f93 | b28f42ad1e5861fd3009a10ad4bd511a384d3943 | refs/heads/main | 2023-08-30T01:09:05.351854 | 2023-07-06T18:09:22 | 2023-07-06T18:09:22 | 125,404,208 | 468 | 165 | Apache-2.0 | 2023-08-30T14:07:12 | 2018-03-15T17:36:28 | Python | UTF-8 | Python | false | false | 481 | py | import sys
PY2 = sys.version_info[0] == 2
PYPY = hasattr(sys, 'pypy_translation_info')
JYTHON = sys.platform.startswith('java')
IRONPYTHON = sys.platform == 'cli'
CPYTHON = not PYPY and not JYTHON and not IRONPYTHON
if PY2:
import __builtin__
range_type = xrange
text_type = unicode
long_type = long
... | [
"jmmccon@amazon.com"
] | jmmccon@amazon.com |
c292ededc8a2ccc3333ba607b656b58dd2f5efe0 | 3def38a9c4e148fbec899d8e6115cdefb61ceead | /.ycm_extra_conf.py | 6cbf0f0a59f53d4b04046f1885363df2db3fdae4 | [] | no_license | shinew/configs | a2a7e8eca6dc25c5f5d097d6e4d11d43f3c2adff | d910c8935c0d302dd80e116c1740b32e22e1b7ce | refs/heads/master | 2021-03-27T15:50:50.334607 | 2018-03-31T00:19:30 | 2018-03-31T00:19:30 | 55,921,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,562 | py | import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Wextra',
'-Werror',
#'-Wc++98-compat',
'-Wno-long-long',
'-Wno-va... | [
"shine.sw.wang@gmail.com"
] | shine.sw.wang@gmail.com |
236c4133d1ff95f11a4ce5df03a7b6a671f566ba | 1ebf1d957e81555baade65fdb57041b914736f3b | /com/ddm/tradingbot/data/provider/yFinanceProvider.py | 692210494e27557bbe045782244c9be7186fb79e | [] | no_license | damenv/trabot | a777204d3459b86e01742db3d59f7ae2be43a283 | 08633722ba1a4a7fbbca162af9308f596196824f | refs/heads/master | 2022-12-17T21:09:21.725391 | 2020-09-19T18:31:16 | 2020-09-19T18:31:16 | 290,363,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | """
Using yfinance library to obtain the stock data
"""
import datetime as dt
import yfinance as yf
import pandas as pd
from com.ddm.tradingbot.data.provider.providerBase import providerBase
class yFinanceProvider(providerBase):
ticker = ""
valor = "yyyiii"
def __init__(self, ticker):
self.tic... | [
"damen1105@gmail.com"
] | damen1105@gmail.com |
bf23ff1ffbc40cacf8ba103e621f8ad641cd675f | 1996a67d2a281706e9c141797e1813fc1b3612a7 | /python/DNaseOverlap.py | b09fff46d97b9d18962c390ab47500ba50aaaf75 | [] | no_license | pjshort/SingletonMetric | 91076a9976cc45a4ddf5f0750b20b7c46b7f1f5a | dc9af500c928b9d5b94aa75bc4b609e3feffe956 | refs/heads/master | 2021-01-10T06:20:49.350579 | 2016-03-07T11:12:25 | 2016-03-07T11:12:25 | 49,203,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | import pysam
import argparse
import sys
import os
def get_options():
""" get the command line options
"""
parser = argparse.ArgumentParser(description="Get CADD scores for set of alleles.")
parser.add_argument("--variants", default="/path/to/input/variants",
help="location of variants in chr\t... | [
"pjshort42@gmail.com"
] | pjshort42@gmail.com |
95abb0d40ff2d7df34f470a31b6ed10e507c4cec | 330e77e53d580a73e883e705b6bc8caca3456194 | /accounts/views.py | 611d57e964b7819e514d81af3de9be2323a30ba3 | [] | no_license | Chandan-97/CyTin | d2995970eade13ec46c7874ecb5c2922328e5367 | e8612124a52a307a44c6833ddefe02b06a50c919 | refs/heads/master | 2020-03-10T11:39:18.188372 | 2018-04-13T04:26:01 | 2018-04-13T04:26:01 | 129,360,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | from django.shortcuts import render, redirect, HttpResponse
from django.contrib.auth import *
from .form import LoginForm, RegisterForm, RequestnewForm
from django.contrib.sites.shortcuts import get_current_site
from django.utils.encoding import force_bytes, force_text
from django.utils.http import urlsafe_base64_enco... | [
"cp564738@gmail.com"
] | cp564738@gmail.com |
81f8e0ee87794f469abaa56ecaa9a35b05cecdf7 | 33d9426e8450cc0c9a0e1f377383c066a2e9b7f0 | /Proceso_De_Todos_los_Datos.py | 25c788d53679b366f83c9b579c2297d6d3ddf05b | [] | no_license | tomasgarcianeuro/Funtions_Neuro | 33d5ffd08b6780357e692a70ebaad81c80de9c96 | 39ce501bf9a68ea96249a8f41c7d2f077a13898e | refs/heads/main | 2023-01-19T20:53:03.778169 | 2020-10-26T14:47:56 | 2020-10-26T14:47:56 | 307,396,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,927 | py | import numpy as np
import matplotlib.pyplot as plt
import pickle
from scipy.ndimage import gaussian_filter as gauss_fil
from os import listdir
# =============================================================================
# NO CORRER_ USADO COMO PLANTILLA PARA DEMOSTRACION A SUB DIR SEGUN CLAUSULA map(lambda arg: ar... | [
"noreply@github.com"
] | noreply@github.com |
758db4b99719e367115109a9db0ff573624e2909 | 928e46c6f6553fe285645c3a61fb8b6ec1c27020 | /website/website/settings.py | ff58740173b0a59efcb0ff5e9dbd86e52d7ae605 | [] | no_license | aureatemandala/The-Pavilion-of-Dreams | 06ab1be2490639cd6f16022e8d76e449f290632f | 7e3dcbabfc304500750273fb5cca5392d1416158 | refs/heads/master | 2022-12-31T10:41:36.345352 | 2020-10-25T13:51:38 | 2020-10-25T13:51:38 | 272,225,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,460 | py | """
Django settings for website project.
Generated by 'django-admin startproject' using Django 3.0.8.
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
#... | [
"original_sin@163.com"
] | original_sin@163.com |
950cf5404ea2b75c9cadf94aa12dfbb274256e43 | 70ad3badf3fa6e2edf1889d8640f25a7ec0d9db1 | /ros_catkin_ws/devel_isolated/rosparam/lib/python2.7/dist-packages/rosparam/__init__.py | 979cdadf5761c2736f68558fa36dbd74e4175656 | [] | no_license | MathieuHwei/OldGaitMaven | 758a937dfda2cf4f1aee266dbbf682ef34989199 | 873f7d9089c5d1c0772bd3447e2b0a31dac68b70 | refs/heads/main | 2023-06-17T18:40:06.230823 | 2021-07-19T23:08:20 | 2021-07-19T23:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/pi/ros_catkin_ws/src/ros_comm/rosparam/sr... | [
"giahuy050201@gmail.com"
] | giahuy050201@gmail.com |
72522674426e18924bfd748a8caddecc1218f247 | 3282960df3031dfdf48dc7f3ac0433faff84b4f6 | /Lista02/Ex005.py | 0b0299ad9dd8756ccbcffe5b2f9f7991d2af5adb | [] | no_license | fillipe-felix/ExerciciosPython | 603120ea05dfcd627ae970f090df5f8072228706 | 119badd286c525397b56d514f8430c93a5eb2c4d | refs/heads/master | 2020-03-23T02:48:26.656961 | 2018-07-15T18:19:08 | 2018-07-15T18:19:08 | 140,993,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | """
Faรงa um programa para a leitura de duas notas parciais de um aluno.
O programa deve calcular a mรฉdia alcanรงada por aluno e apresentar:
A mensagem "Aprovado", se a mรฉdia alcanรงada for maior ou igual a sete;
A mensagem "Reprovado", se a mรฉdia for menor do que sete;
A mensagem "Aprovado com Distinรงรฃo", se a mรฉdia for ... | [
"felipesoares_1993@hotmail.com"
] | felipesoares_1993@hotmail.com |
c7f7d55da80fa96f610e72e41a113d2b31b4f2a4 | cb6ea8cffe592d5ecbae3581c15143836d9714fd | /1. Search/search/searchAgents.py | efaa50237bafa0577d76b28568a39f67d1a9410b | [] | no_license | pswaroopk/pacman-ai | a51d421f6b4ebe1f2f55830a0ef2a1c1f6ae8607 | 64b971d82db73780c5e6c9561666ba86f8ff314a | refs/heads/master | 2020-06-27T22:34:02.231705 | 2017-07-13T03:23:10 | 2017-07-13T03:23:10 | 97,074,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,146 | py | # searchAgents.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley... | [
"swaroopkpydisetty@gmail.com"
] | swaroopkpydisetty@gmail.com |
c32fdb4787b51913dcb94e2128d2912fad182b06 | 3b871bdc672632e72bbdb72f98c914db660829b4 | /Django_Project/Django_Project/asgi.py | 5eb588cf3ef16a21bf99a45c2a9698189ff79917 | [] | no_license | JasbirCodeSpace/Django-Blog-Web-App | b1a58730a17c204fe4c8ad8ab4f3f1d47d5b30e1 | 6af67d03bbec997b972feacb2873efaa542becaa | refs/heads/master | 2022-08-25T23:12:05.591494 | 2020-05-20T07:19:48 | 2020-05-20T07:19:48 | 264,860,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for Blog 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"shikhawat.jasbir@gmail.com"
] | shikhawat.jasbir@gmail.com |
f0c4e325811d89d928a9cf866949779e8aabab87 | 500ab8c56380741f8ec2e794e42deed6ee9c84df | /tests/test_concurrency.py | 6ca2415aabb7f9516b38a70a1155ac504a23764f | [
"Apache-2.0"
] | permissive | antonf/rethinktx | 1686e11edf92a7d778681b5be526e55b9d11af1d | 60bbe10ad46030cbcc7727b479ee5bd2355f1fcd | refs/heads/master | 2020-12-05T16:18:36.610124 | 2017-03-19T23:25:43 | 2017-03-19T23:25:43 | 66,806,377 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,436 | py | # Copyright 2016, Anton Frolov <frolov.anton@gmail.com>
#
# 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 ... | [
"frolov.anton@gmail.com"
] | frolov.anton@gmail.com |
7aa9a5b9b241ba9dc321a5f3fd7bbbd8dc028125 | 4a2b457f13628ebbf3cd379202b5354fa73bf1e5 | /Python_3/Modulo 3/4 - Funรงรตes em Python/Exercรญcio_100_Funรงรตes_para_sortear_e_somar.py | 37bfc675f73b9a65e8824473012ac0d3d6939c9c | [
"MIT"
] | permissive | Jose0Cicero1Ribeiro0Junior/Curso_em_Videos | abb2264c654312e6b823a3a9d4b68e0c999ada3f | b0bb4922ea40ff0146b5a7e205fe2f15cd9a297b | refs/heads/master | 2022-12-19T19:18:53.234581 | 2020-10-23T12:29:09 | 2020-10-23T12:29:09 | 288,749,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #Exercรญcio Python 100: Faรงa um programa que tenha uma lista chamada nรบmeros e duas funรงรตes chamadas sorteia() e somaPar(). A primeira funรงรฃo vai sortear 5 nรบmeros e vai colocรก-los dentro da lista e a segunda funรงรฃo vai mostrar a soma entre todos os valores pares sorteados pela funรงรฃo anterior.
from random import randi... | [
"Jose0Cicero1Ribeiro0Junior@outlook.com"
] | Jose0Cicero1Ribeiro0Junior@outlook.com |
6cf0811024e03797d865654b2f6c18918e1db095 | 31948daa03278629f577fe9f6dcc19b6480604e7 | /Hashtable.py | 1c05fe90bb777f22d4b21f63c636581d14b938f1 | [
"Unlicense"
] | permissive | SpyEyeFamily/DarkSouL_ReaCt0r | 4019d607630457ebb8bd0215dafcd39daee4d772 | 8cde5e03b2120237a345a92b20208efb287b6591 | refs/heads/master | 2020-12-28T20:20:18.755049 | 2016-09-17T23:17:46 | 2016-09-17T23:17:46 | 68,482,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,617 | py | #! /usr/bin/env python
###########################
# Copyrights Please #
###########################
###########################
# My Original Code #
###########################
# WhoAmi :
#https://www.facebook.com/Gods.nd.kings
#https://www.facebook.com/clayteamwhoami
"""
Examples:
-) Make a single Re... | [
"noreply@github.com"
] | noreply@github.com |
1f7a73fb2528f3c82b8b5f1b7691f0bf7f9c572a | 6040ec2771a81654ac41f33ce5c4aa7e66d4e5d9 | /src/ํ์ด์ฌ์ฝ๋(py)/Ch06/code_6_8_2.py | 5b3b1e11fc54f5ace2dfd3b7cd1cebb773201c31 | [] | no_license | jinseoo/DataSciPy | a3462785ae094530141e66ead8de9e6519fbf193 | de6127c0741f8d0cfc989e17ba3a5a65004e5d9c | refs/heads/master | 2023-06-25T19:03:22.086126 | 2021-07-27T09:01:41 | 2021-07-27T09:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #
# ๋ฐ๋ผํ๋ฉฐ ๋ฐฐ์ฐ๋ ํ์ด์ฌ๊ณผ ๋ฐ์ดํฐ๊ณผํ(์๋ฅ์ถํ์ฌ 2020)
# 6.8 ๋ณ์์ ๋ฒ์๋ ์ด๋๊น์ง์ธ๊ฐ, 155์ชฝ
#
def print_counter():
counter = 200
print('counter =', counter) # ํจ์ ๋ด๋ถ์ counter ๊ฐ
counter = 100
print_counter()
print('counter =', counter) # ํจ์ ์ธ๋ถ์ counter ๊ฐ | [
"hojoon1619@gmail.com"
] | hojoon1619@gmail.com |
101f2007b71bc63efbdd759b3ee37b183fdd834e | a7ba18930a3c84dba19ed0f2f580e6c759e1d0b9 | /gru_model.py | fc37a98f6d4c49e8544c9c4da1aca62c9822d342 | [] | no_license | soaxelbrooke/twitter-cs-seq2seq | 4b2dec6badc9f0000702b1fdd0ef17ef91d67d5e | c0ca22273150abf76a4a4e2795b7d7d507268d91 | refs/heads/master | 2021-07-19T09:05:26.667954 | 2017-10-25T10:32:39 | 2017-10-25T10:32:39 | 106,000,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,672 | py | from collections import deque
import torch
from numpy import ndarray
from torch import nn
from torch.autograd import Variable
import torch.nn.functional as F
import random
from torch import optim
from tqdm import tqdm
import numpy as np
from typing import NamedTuple
Seq2SeqConfig = NamedTuple('Seq2SeqParams', (
... | [
"stuart@axelbrooke.com"
] | stuart@axelbrooke.com |
9c4146cf8d2c46ce68c4b555792e4dfbf0abee79 | bb0fc24a46415c6780f734e4d7a6d9a8b203b02b | /musicbot/bot.py | 49fe612d7542a775817784cf3f3f7dee10b9d6a2 | [
"MIT"
] | permissive | EZIO1337/papiezbotv6 | b1880a1f4401737038c97499036e803def801496 | dd93f8ca2d43a76517170bd4ea192524d66fb337 | refs/heads/master | 2021-05-16T14:41:37.671601 | 2018-01-22T23:25:26 | 2018-01-22T23:25:26 | 118,528,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108,261 | py | import os
import sys
import time
import shlex
import shutil
import random
import inspect
import logging
import asyncio
import pathlib
import traceback
import math
import re
import aiohttp
import discord
import colorlog
from io import BytesIO, StringIO
from functools import wraps
from textwrap impo... | [
"noreply@github.com"
] | noreply@github.com |
19ed9b12b8f92747a7d5730dd8e9cfa7b98d1e12 | 6ed0b6576857efc67901790dbf926c558d440bd7 | /backend/manage.py | a6ec92e1ac1e5abe024afe74dc330d67aa5ff4bc | [] | no_license | crowdbotics-apps/test-aline-0721-dev-7964 | dae692cc48e757e0275c853ae975d90de97a1657 | 3104874e1b83a8863942ee6a10c2a8aceb6e52f5 | refs/heads/master | 2022-11-19T23:22:20.735744 | 2020-07-22T15:50:19 | 2020-07-22T15:50:19 | 281,442,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | 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", "test_aline_0721_dev_7964.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b80ac7ea9d7671918a54c63f69fe2187f54ccda5 | 061cc9968cac30ca8c5aff4537c4332ae6ca2600 | /MyCmdb/Users/models.py | 46cebfa4541ab8c771c5ca2c7655830c658532c7 | [] | no_license | zhubingbi/-Company-script | 14ebf83904e54e829ad1ad233d3faa1a8df3acd5 | b5306e5f7214a1a887d65020f48afc88067645ff | refs/heads/master | 2020-12-02T06:38:08.071754 | 2017-11-15T02:46:11 | 2017-11-15T02:46:11 | 96,868,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # coding=utf-8
from django.db import models
# Create your models here.
class Users(models.Model):
user = models.CharField(max_length=32, verbose_name='็จๆทๅ')
password = models.CharField(max_length=32, verbose_name='็จๆทๅฏ็ ')
phone = models.CharField(max_length=32, verbose_name='ๆณจๅ็ต่ฏ')
birthday = models.Cha... | [
"zhubingbi@gmail.com"
] | zhubingbi@gmail.com |
a1b9c909d2e60fb563ed2c58c3bf28e228f2e771 | 751691a21ed1d8c69c35f3cd9b9fd395dc5c1aa8 | /{{cookiecutter.้กน็ฎๅ็งฐ}}/{{cookiecutter.ๅๅงๅappๅ็งฐ}}/custom_viewset.py | 10b0164eb8f5f4fa01443e26d36608d2830e48cc | [] | no_license | mtianyan/cookiecutter-drf-mtianyan | 5899847f46e853a0ec5be9bcbf9e7294ce2b70cd | b1298f6c5b20149db4589ce127b2e6e0392552b6 | refs/heads/master | 2022-12-28T18:26:57.969693 | 2020-10-10T08:29:08 | 2020-10-10T08:29:08 | 275,175,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | from rest_framework import viewsets, status
from rest_framework.response import Response
from utils import change_key
class CustomViewSet(viewsets.ModelViewSet):
def retrieve(self, request, *args, **kwargs):
instance = self.get_object()
serializer = self.get_serializer(instance)
res = ser... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
44a6e5f1f5fda5f40b242e469cc4314b106c8306 | e6b969b7c50de5ae61c4b76ec31a982d16523e46 | /sym.py | 3f88fe9fcc929640105de765ca5654c69c9dd65f | [] | no_license | dlovemore/parle | 7d52dc76716f3f8a5f085aa26277b2c52b98b098 | e949c743b2760079eb3c3eb67198e69562521d20 | refs/heads/master | 2021-01-03T07:04:09.060552 | 2020-10-20T13:01:59 | 2020-10-20T13:01:59 | 239,972,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,418 | py | class Base:
def __init__(self, *args):
self._args = args
@property
def args(self): return self._args
@args.setter
def args(self, value): self._args = value
def __repr__(self):
rargs = repr(list(self.args))[1:-1]
return f'{type(self).__name__}({rargs})'
class E(Base):
... | [
"davidlovemore@gmail.com"
] | davidlovemore@gmail.com |
b5208a1ac2fd56dab09c83af59823316ebe6b71a | 3bd40415aabba9ba705e8e20387d3521a48004eb | /Interview Preparation Kit/Dictionaries and Hashmaps/Hash Tables: Ransom Note.py | ab86513fa9454ca63732fa9788b15f6984fdcd4d | [] | no_license | Narendran36/HackerRank | 7da6f4ffc8a21031d3776c82e8969ca79eca0b06 | f58ce1cfaa383ed8aec8ec10467048f6f8465624 | refs/heads/master | 2022-12-04T04:25:19.062493 | 2020-08-19T19:13:24 | 2020-08-19T19:13:24 | 256,822,744 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/bin/python3
from collections import Counter
# Complete the checkMagazine function below.
def checkMagazine(magazine, note):
if (Counter(note) - Counter(magazine)) == {}:
print("Yes")
else:
print("No")
if __name__ == '__main__':
mn = input().split()
m = int(mn[0])
n = int(mn[1]... | [
"noreply@github.com"
] | noreply@github.com |
43fcc04dae20aad1bf6fb21779872c8b34188828 | bf59fae2a9513c008bab786ea277ff88fe3b335c | /Nemisa_mvp/nemisa_app.py | 43ac793ceefaf0125f2655be72ab8ed312a9f357 | [] | no_license | Simangele101/Nemisa_hack_2021 | 316320c493b67850da4ff2c9295ad51480d9c887 | f56c3a51398090cc33008fde3314fdb130bd62b9 | refs/heads/master | 2023-04-22T19:53:30.902634 | 2021-04-16T16:20:20 | 2021-04-16T16:20:20 | 358,657,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """
Simple Streamlit webserver application for serving developed classification
models.
Author: Rogue byte Analytica.
Note:
---------------------------------------------------------------------
Plase follow the instructions provided within the README.md file
located within this directory for gu... | [
"68602378+Simangele101@users.noreply.github.com"
] | 68602378+Simangele101@users.noreply.github.com |
7126110b6be5e67ec95d040579d17ce5b4278f11 | 0b51bc6c7a98d07880955a31e147c0c15b1e3151 | /tonkho/models/stock_quant.py | da383abe5fd406bbfc64072e6fd0731db111501c | [] | no_license | tu95ctv/duan_mi2 | 72e8bcbad73dfea1b57b69dbfd1c8d48ecebb975 | f1728d99e27fcc18684d50f5719f3dcedcffd755 | refs/heads/master | 2020-04-28T21:30:25.017845 | 2019-07-07T13:25:43 | 2019-07-07T13:25:43 | 175,584,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,283 | py |
# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
from odoo.tools.translate import _
from odoo.tools.float_utils import float_compare
from odoo.addons.tutool.mytools import name_compute
from odoo.addons.tonkho.tonkho_tool import write_to_current_path
... | [
"nguyenductu@gmail.com"
] | nguyenductu@gmail.com |
21f188524361b8fa84956085533990c2bc3dbde9 | dcc25b784213b17015d2080a7623c772d474dc22 | /reproduce/AlphaFold2-Chinese/tests/st/mindelec/networks/test_frequency_domain_maxwell/test_frequency_domain_maxwell.py | 65c3d50f3c3832682e1414cb4e3413c5f6f49489 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mindspore-ai/community | 930c9d9fdbead852e3597d522a72fe5b66bfc005 | c72ce898482419117550ad16d93b38298f4306a1 | refs/heads/master | 2023-07-19T19:43:20.785198 | 2023-07-17T06:51:22 | 2023-07-17T06:51:22 | 250,693,100 | 193 | 10 | Apache-2.0 | 2022-10-29T10:01:40 | 2020-03-28T02:00:02 | Python | UTF-8 | Python | false | false | 5,395 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"deanyuton@gmail.com"
] | deanyuton@gmail.com |
f64233795111df760e19371a35a584413081cff7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/class_def_attr-big-407.py | d189ce0fed43c4a777ecf1f02981982293253209 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | class A(object):
x:int = 1
class A2(object):
x:int = 1
x2:int = 1
class A3(object):
x:int = 1
x2:int = 1
x3:int = 1
class A4(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
class A5(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
x5:int = 1
class ... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
917682f58de05483c2d7dcd124010513ed4badc8 | a1f53b731fd1e3eb1923fb39fcb01477aa45f5c0 | /blogapp/form.py | fb40e9ed2e05b6ad0de2524ac88315822acdc8f1 | [] | no_license | arseni2/djangoblog | 76922d4abd7550bfb8a9b0514eda727699e57e37 | b3b8e1a30c4f2860719d62736571e6aa4d0258df | refs/heads/main | 2023-03-23T07:27:43.091875 | 2021-03-20T22:41:16 | 2021-03-20T22:41:16 | 346,117,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth import get_user_model
CustomUser = get_user_model()
class CustomUserCreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = CustomUser
fields = UserCreationFo... | [
"arc-37@mail.ru"
] | arc-37@mail.ru |
0a7dc15098a11e2585324fc2d0969841cf17bb22 | f77b2c4b5808c360e8644644b0b3dba401ed3682 | /random_games/python_syntax.py | 1c3841b39cc9283bd72db28c63247c12c7a8bb21 | [] | no_license | 616049195/random_junks | 6a29393b7fcdb9b8968ff252446380effd629216 | c616a29b1a0025f3451870ed660e28b81126e97e | refs/heads/master | 2021-01-16T21:00:47.286799 | 2013-11-23T23:42:22 | 2013-11-23T23:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | """
Python syntax...
"""
# list comprehension
## syntax
new_list = [x for x in range(1,6)]
# => [1, 2, 3, 4, 5]
##
## examples
even_squares = [x**2 for x in range(1,11) if (x)%2 == 0]
##
# dictionary
my_dict = {
'name' : "Hyunchel",
'age' : 23,
'citizenship' : "Republic of Korea"
}
print my_dict... | [
"hyunchelkk@gmail.com"
] | hyunchelkk@gmail.com |
0a6cac0a18fbccdf78c9aa59c0e8286c8bfe542c | 4bf45827230011d8417ff797fe97b946921abaa3 | /starfish/core/intensity_table/test/test_synthetic_intensities.py | 6f35cb355c0e13c9e0b699f06bd4270a550c3905 | [
"MIT"
] | permissive | kne42/starfish | 713eb9666c29d89b6d0b25ee36b63761c15de336 | 78b348c9756f367221dcca725cfa5107e5520b33 | refs/heads/master | 2020-04-19T19:41:37.736938 | 2019-07-18T00:14:16 | 2019-07-18T00:14:16 | 168,395,751 | 0 | 0 | MIT | 2019-09-24T02:38:16 | 2019-01-30T18:45:42 | Python | UTF-8 | Python | false | false | 1,665 | py | """
Tests for IntensityTable.synthetic_intensities method.
"""
import numpy as np
from starfish.core.codebook.test.factories import codebook_array_factory
from starfish.core.types import Axes, Features
from ..intensity_table import IntensityTable
def test_synthetic_intensity_generation():
"""
Create a 2-spo... | [
"noreply@github.com"
] | noreply@github.com |
f76e193dc89f82660d667f368bb4936852252bc2 | 29e8e04876b8cf03dd8755ad1d085a755d3f4061 | /venv/bin/chardetect | f3f63f7830033730f7309d96f51b19c34c7b028a | [
"MIT"
] | permissive | haideraltahan/CropMe | 431d213f2163c08579415bf3fc7708366ccd2d78 | 75a111b9d3b2c50c6f2a9a36d21432053f02284d | refs/heads/master | 2020-05-30T07:37:18.713374 | 2019-05-31T20:15:19 | 2019-05-31T20:15:19 | 189,601,563 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/haider/Desktop/CropMe/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"haideraltahan@gmail.com"
] | haideraltahan@gmail.com | |
674a79a4698a5728e4c44718119f31a8b7728fc8 | 11595170c7b0d51505dabb3e330df875a95093c5 | /RPCHitAnalyzer/WorkDir/getFileName.py | 1349eb408ec0595606e17aceead6bf65a29a5488 | [] | no_license | ggrenier/CMSusercode | 61d7e7ee25f7a0a68f48011d8ad798e85ea8a8a8 | a90320daf8be5d1c2b448256b3e3fb0d907eb051 | refs/heads/master | 2021-01-10T11:23:20.668795 | 2016-03-11T13:46:34 | 2016-03-11T13:46:34 | 53,138,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | #special entries for the dictionnary passed by :
#'directory' is the directory where to put file, if not found, it is set to '../Data/'
#'startName' is the file startName, if not found, this is set to 'SingleMu_upscope'
#'extension' is the file extension, if not found, this is set to '.root'
def generateFileName(param... | [
"grenier@ipnl.in2p3.fr"
] | grenier@ipnl.in2p3.fr |
c74d3d817ada2bcf2794d7cffebfb2b3ccbf0e02 | 23a3c76882589d302b614da5f4be0fc626b4f3cd | /python_modules/dagster/dagster/api/snapshot_trigger.py | d9414b7c2318bcc7dc7ca624569ba3ba47f8ef8b | [
"Apache-2.0"
] | permissive | DavidKatz-il/dagster | 3641d04d387cdbe5535ae4f9726ce7dc1981a8c3 | 7c6d16eb8b3610a21020ecb479101db622d1535f | refs/heads/master | 2022-12-20T13:08:36.462058 | 2020-09-14T18:12:12 | 2020-09-14T22:43:26 | 264,703,873 | 0 | 0 | Apache-2.0 | 2020-06-16T09:49:00 | 2020-05-17T15:56:57 | Python | UTF-8 | Python | false | false | 2,276 | py | from dagster import check
from dagster.core.host_representation.external_data import (
ExternalExecutionParamsData,
ExternalExecutionParamsErrorData,
)
from dagster.core.host_representation.handle import RepositoryHandle
from dagster.core.types.loadable_target_origin import LoadableTargetOrigin
from dagster.grp... | [
"prha@elementl.com"
] | prha@elementl.com |
8b5bdf81def59b8f6930c4ce22ec1874049a0005 | 8d91f8867fb5b72ca257d9e7152188914154ccd1 | /pune/controllers/admin/user.py | 4c97fbd2cff00fce7bec04ce0a205ce7b77a0945 | [] | no_license | liwushuo/pune | c6420e9a3f65711cc7a6c578720122e5b7f53eb9 | 23eae59fc3d3515903700740fade1bce8b8d6e12 | refs/heads/master | 2021-01-10T08:10:41.056344 | 2016-04-18T08:45:01 | 2016-04-18T08:45:01 | 53,919,940 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # -*- coding: utf-8 -*-
from flask import render_template
from flask import request
from flask import redirect
from flask import url_for
from flask import abort
from flask import flash
from flask import current_app
from pune.service import UserService
from . import bp
@bp.route('/usrs')
def list_users():
return... | [
"maplevalley8@gmail.com"
] | maplevalley8@gmail.com |
66c87d7d3d6df618eec5985290c9a5d2ba36eb39 | dfaa090887158b35fc19b7274593d78f44658399 | /Django/mysite9/mysite9/wsgi.py | d39d3ab985c3049db075b08a7e9ef7f117e2bb29 | [] | no_license | Artak2033/Homeworks | 429c3f5896b6eea52bc6dc7161916afce5d6bd91 | dbb526ac6ae082b58e58f6204b2106b9ccaf7f58 | refs/heads/main | 2023-05-15T14:39:41.992105 | 2021-06-11T12:40:36 | 2021-06-11T12:40:36 | 365,962,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for mysite9 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_SETTI... | [
"akfartak@mail.ru"
] | akfartak@mail.ru |
2b8a1159ab224c44e934263a6b9f5090c89352a0 | 47901d3483df111fe9b6f146691e58eecfa09c32 | /13/intcode.py | 6254b3853bf9397655b39b018240b3c0a8030a43 | [] | no_license | matus-pikuliak/advent_2019 | 1861ee4da7c01e038c80eeee1e03353f9907447f | 67fcf18f66e53e886f945a5cdd7289b9439483db | refs/heads/master | 2020-09-22T10:05:52.879745 | 2019-12-25T19:59:09 | 2019-12-25T19:59:09 | 225,149,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | class IntCode:
def __init__(self, memory):
self.mem = memory + [0] * 1000
self.pointer = 0
self.rel = 0
def run(self):
while True:
current = f'{self.mem[self.pointer]:05}'
instruction = current[-2:]
if instruction == '99':
bre... | [
"matus.pikuliak@stuba.sk"
] | matus.pikuliak@stuba.sk |
b7c6a2da8d1c2ae74e8a0066ec371a381e31082e | cba3d1dd5b08a703c7e9e68464beb741eacfeb0d | /003_Pandas_tut.py | ca014206033cd06400a9a4ed2d444c451e86699b | [] | no_license | Fizztech0/Tutorials | 480b8973deee83ea19ad197761f5bf1e21c4a169 | dff855b63834507783494543d0c8d3240d0bf145 | refs/heads/main | 2023-06-26T21:51:18.522576 | 2021-07-23T18:53:35 | 2021-07-23T18:53:35 | 388,511,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | # Dataframe is the Object type that Pandas allows to manipulate
import sys
sys.path.append("/Users/SafetyFirst/Library/Python/3.9/lib/python/site-packages")
# import as = dont have to type pandas everytime, but just pd
import pandas as pd
import numpy as np
# together with importing numpy these four lines of code all... | [
"fizzad@gmail.com"
] | fizzad@gmail.com |
52dad76367c862489da289aed0ad49fd4d6a600d | b04279709d7133e310cca957f85d9bed259cfbdf | /application/settings/develop.py | 30811838eae0cccaadbe9f5b7702cc17ecb69d46 | [] | no_license | fujimisakari/otherbu | 7230de39670815d6d72be13aa293f08a128f13d0 | d70a0c21858e5d37a3cf3fca81b69ea7f73af661 | refs/heads/master | 2022-12-10T17:27:15.411751 | 2019-01-02T18:02:46 | 2019-01-02T18:02:46 | 8,172,410 | 0 | 0 | null | 2022-12-08T00:54:53 | 2013-02-13T03:20:05 | Python | UTF-8 | Python | false | false | 76 | py | from .base import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
AUTO_LOGIN = DEBUG
| [
"fujimisakari@gmail.com"
] | fujimisakari@gmail.com |
410f36205d34f73079693b4e026012216b438744 | 459f88ba61bb0200e9906c7ce3c814bdf01bd278 | /py.py | 4080d3abf50fdf5ef84cf5c058bddfcf10ff3ffd | [] | no_license | iamanx17/Advance-python | 3c65104997c748c11ff2e322a8665423ca335b34 | f04baa817667d4d7f628abbefe712f1ea99a3f57 | refs/heads/main | 2023-07-07T21:05:38.981879 | 2021-08-12T13:34:33 | 2021-08-12T13:34:33 | 327,520,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | print('Updating this file from vscode!!')
print('Experiment code 4550')
print('Doing one more change')
print('Lets see what will happen') | [
"32339572+iamanx17@users.noreply.github.com"
] | 32339572+iamanx17@users.noreply.github.com |
2e57626e4bb2e712bdfee4e51a5d28344f6a7fcf | 3b0ee58fb38780c9a6a81e9c22686adf03e8bdee | /publish-events.py | 9c259eb82b6768103ae81ea1072461a26677961b | [] | no_license | gsherwin3/sonic-nas-manifest | 7061a0f3534c34cfceb612976ccfc789e3b0e43e | 4c8fe47374d7a65baecb168b2e9ee654761e295d | refs/heads/master | 2020-06-28T21:03:02.069209 | 2016-10-27T16:22:23 | 2016-10-27T16:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # Python code block to publish events
import cps
import cps_utils
# Create handle to connect to event service
handle = cps.event_connect()
# Create CPS object
obj = cps_utils.CPSObject('base-port/interface',qual='observed', data= {"ifindex":23})
# Publish the event
cps.event_send(handle, obj.get())
| [
"noreply@github.com"
] | noreply@github.com |
8b459ea6c51590e42fb2bdf49298dcfd689e92d7 | 612e80dad0b13450fd647b18301cfe3b7dc707e3 | /SALab2/window.py | 971507b85c93b4f9260fc36895032aa7e453dd5e | [] | no_license | ozhenchuk/SysAn | a44f60367ca47cd10c84d3d02bcd073f3bf4427e | 06d290b1e963794e156c8bc5870103062d92f574 | refs/heads/master | 2020-04-11T20:46:01.557157 | 2018-12-17T06:03:55 | 2018-12-17T06:03:55 | 161,516,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,537 | py | import matplotlib.pylab as plb
import numpy as np
import sys
import time
##import yaml
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot as plt
from iterator import Iterator
f... | [
"noreply@github.com"
] | noreply@github.com |
a87bf5f31c6025305ca0fd7c72b461abad7671a5 | b2075a92c3854c921a95673a3c5ebb424ab08112 | /python/postprocessing/framework/postprocessor.py | 9eb1775d8dbd0f52159a9b31d8202b7f33272466 | [] | no_license | vhbb/nanoAOD-tools | cd2a6305991369948bb9577c5da3c7e4db275c52 | 14bce3dca68288e65b2daefce755d65914a3765d | refs/heads/master | 2021-09-04T21:44:29.892241 | 2018-01-22T12:50:50 | 2018-01-22T12:50:50 | 106,291,673 | 1 | 1 | null | 2018-01-22T12:50:51 | 2017-10-09T14:06:47 | Python | UTF-8 | Python | false | false | 4,843 | py | #!/usr/bin/env python
import os
import time
import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True
from PhysicsTools.NanoAODTools.postprocessing.framework.branchselection import BranchSelection
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import InputTree
from PhysicsTools.NanoAODTools.postproce... | [
"andrea.rizzi@cern.ch"
] | andrea.rizzi@cern.ch |
d8df3e108eb2a60fcac671fff7ece2212a4fd8a5 | f0e11aeb7b5bd96c828cf39728eb2fa523f320df | /snapflow/cli/commands/generate.py | 10a6882c60f47d5c9c2a9a96f8435d9b031bb621 | [
"BSD-3-Clause"
] | permissive | sathya-reddy-m/snapflow | 7bc1fa7de7fd93b81e5b0538ba73ca68e9e109db | 9e9e73f0d5a3d6b92f528ef1e2840ad92582502e | refs/heads/master | 2023-05-01T05:14:08.479073 | 2021-05-21T00:14:56 | 2021-05-21T00:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | from __future__ import annotations
import os
from snapflow.cli.commands.base import SnapflowCommandBase
import sys
from contextlib import contextmanager
from importlib import import_module
from pathlib import Path
from types import ModuleType
from typing import List, Pattern
from cleo import Command
from snapflow.cor... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
56c0e641146ff1f1664bf1b038aae0946cb7f434 | 6dc12a6426b18e1266639f023cc8d356055aed71 | /Treadmillwebsite/apps.py | f2c9786e1c7982839f5423a66e2f67ec567feaf2 | [] | no_license | kiranM235/Treadmill-Website-Django | 6d4e040bed03bfdca06e6fc4c0207dad92c071c2 | 35bb2eb6c19a0b5006f334a761ddfa7c14b4d345 | refs/heads/master | 2023-07-06T16:15:27.272961 | 2021-08-17T07:24:20 | 2021-08-17T07:24:20 | 395,590,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.apps import AppConfig
class TreadmillwebsiteConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Treadmillwebsite'
| [
"kiranmaharjan89@gmail.com"
] | kiranmaharjan89@gmail.com |
e43cfc6aa1633a9191785d3f556f8d0272598293 | 130d5455b1974710515ba4761d3b6780315725df | /core/orm/common.py | 13e75a0a5dfe391691999bb199f9ad9f1d95f29c | [] | no_license | Illicitus/aiohttp-playground | f3711af5aa3ddb5bad4f905b7045f4947684ae70 | d0fdb54b4a35d5714e43f99c6ef1aee3bd37e107 | refs/heads/main | 2023-04-03T06:57:01.488181 | 2021-04-11T18:43:04 | 2021-04-11T18:43:04 | 349,416,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from pydantic import ValidationError
from core.responses.json import NotFound
| [
"honchar.vitalii@gmail.com"
] | honchar.vitalii@gmail.com |
377d8d2bcde9cc96994429bc34f03d2d7d68a11e | 1d8ce00008e6f6cbb7f2728ea7e7b9af28b1a7c4 | /guppe/POO/atributos.py | 23709c67c5114837d0ea26e7fa497e4c92bae1d8 | [] | no_license | HigorSenna/python-study | 05d09e09075dc2eb9c4f790928d68aab0c8a18b5 | 9b1a0c5e487b3cd397f371c7c4648148430e13d9 | refs/heads/master | 2022-12-03T00:16:53.075812 | 2020-08-17T15:54:01 | 2020-08-17T15:54:01 | 285,556,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | """
Atributos
Em Python, por convenรงรฃo, ficou estabelecido que todo atributo de uma classe deve ser PUBLICO, caso queira colocar
privado, รฉ so usar __ em sua declaracao
"""
# Classe com atributos privados
class Lampada:
# OBS: Atributos privados: __nome
def __init__(self, voltagem, cor): # Construtor
... | [
"higorrebjfmg@gmail.com"
] | higorrebjfmg@gmail.com |
655594a78e371613ede21c222f5abad2afe4b62f | 907efd02ac6920adac86571f46b89b05644b1e99 | /apps/courseApp/urls.py | 094d5c188c9aa63976caa218af96e83c4285d180 | [] | no_license | RyanGKist/DjangoCourses | 3f2333fa26dfec5b6fc5492e04f098a26ac1b038 | 877d4f239b930f0089febaffdca870eee325178e | refs/heads/master | 2021-08-14T15:13:42.822507 | 2017-11-16T02:58:13 | 2017-11-16T02:58:13 | 110,915,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$' , views.index),
url(r'^courseAdd$', views.course_create),
url(r'^remove(?P<uid>\d+)$', views.destroy),
url(r'^destroy(?P<uid>\d+)$', views.destroy_data)
] | [
"RyanGKistner@Patricks-MacBook-Pro-2.local"
] | RyanGKistner@Patricks-MacBook-Pro-2.local |
b8930744c4984b31348d1c800cd832c48d9884c9 | 9a42f514882b7c2ae8e444ef8aa7ff9ed0a33b22 | /src/metrics.py | 199d83ebc298db78f56e93abfccd5fa0fea390b3 | [] | no_license | gusriobr/crop_seq_prediction | aa2809d11d73a6c4d278245fd4f5f4444f23139b | 01721b5ff826322723bc8b5ea0ef696b12dfdb07 | refs/heads/master | 2023-01-23T22:21:57.800323 | 2020-12-10T11:21:37 | 2020-12-10T11:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import tensorflow as tf
import keras.backend as K
def f1(y_true, y_pred):
y_pred = K.round(y_pred)
tp = K.sum(K.cast(y_true * y_pred, 'float'), axis=0)
tn = K.sum(K.cast((1 - y_true) * (1 - y_pred), 'float'), axis=0)
fp = K.sum(K.cast((1 - y_true) * y_pred, 'float'), axis=0)
fn = K.sum(K.cast(y_tru... | [
"gusriobr@gmail.com"
] | gusriobr@gmail.com |
b8a72b235685444f3296526d4ae00737b1cc4183 | cba5017525d30f84f4555bc0e10f1f83126f1d4a | /Solar/solarInfo/apps.py | 2fcdc3f23dfa80d2de63c42f6ff03df6ca0ff227 | [
"Apache-2.0"
] | permissive | cycmay/SolarS | 66e97a0de6b459f8bb05b03c2690d9852d92209a | 284bcafa5da210e5c4200d19e46b3fa6bb5acb20 | refs/heads/master | 2020-05-23T18:09:09.760666 | 2019-05-24T15:42:25 | 2019-05-24T15:42:25 | 186,882,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class SolarConfig(AppConfig):
name = 'solarInfo'
| [
"1769614470@qq.com"
] | 1769614470@qq.com |
79ec10a6c2cd2eb5753da2872644f311bf6deecd | f752ca1367a85cf4413d1b0b9403976f2e67f7c7 | /loo.py | 7f506ae5dced5ff197167f82f637ce2d933bc0cf | [] | no_license | raferalston/proverka | 0cb3da2111fae2e6fc53da06aa7b9c74bb90b70d | b28afe8430fee02b3673dffa622cbd9977084fe5 | refs/heads/main | 2023-05-14T22:50:13.031900 | 2021-05-21T13:44:27 | 2021-05-21T13:44:27 | 369,549,662 | 0 | 0 | null | 2021-05-21T13:47:26 | 2021-05-21T13:47:26 | null | UTF-8 | Python | false | false | 175 | py | i = int(input())
s = int(input())
y = int(input())
def loo(i, s ,y):
while y != 0:
s = i / 100 * s + s
y = y - 1
return s
print(loo(i, s, y))
| [
"noreply@github.com"
] | noreply@github.com |
765bf9d191e29765530286712a31e9a39e6d6c5b | 943d7ded0e464e3c3a4475c269eccde305865cf2 | /natural_language_processing/Lemmatization.py | bfa9f27e3706ca4ce2e49bce557898592143df35 | [] | no_license | markikojr/DataScience | ab2d8af362012cf2985ce2c51d618605fd0f9223 | 40e1559ae511dfe8141bbfb17719aea099069b4a | refs/heads/master | 2022-12-14T22:33:06.587191 | 2019-11-25T20:03:27 | 2019-11-25T20:03:27 | 200,712,164 | 1 | 0 | null | 2022-12-08T05:20:21 | 2019-08-05T18:56:22 | Roff | UTF-8 | Python | false | false | 1,356 | py | '''
This program shows some basics about Lemmatization using spacy library
'''
# Perform standard imports:
import spacy
nlp = spacy.load('en_core_web_sm')
print("---------- Create doc1 and apply tokenization, Part-or-speech tag and lemmatization:", "\n")
# Creating doc1
doc1 = nlp(u"I am a runner running in a race b... | [
"marcoscmartinsjr@gmail.com"
] | marcoscmartinsjr@gmail.com |
18dec9909a2f079119d67538333ae4ba3f2c8476 | f3ccbc61c9a968e130536f66ec896393ea2ad463 | /test/tp.py | bed900aab528b53223cc14f5438c94f8c3bb02bc | [] | no_license | rutikatuscano22/Folder3 | 69f563cf1ec0fe71242bcaf99e7cefc44b70068d | 59e5ba5e5c91221625567e629e4daf5601ab97ad | refs/heads/main | 2023-04-16T08:26:36.762625 | 2021-04-28T15:49:41 | 2021-04-28T15:49:41 | 362,525,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | print('sdf')
| [
"noreply@github.com"
] | noreply@github.com |
b731f7bb0a905cd69ba11d5d934cc0ac33f22050 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/simple-cipher/7df478df5b6546c4b554e717f00f4c75.py | 902cdef37788b91c86d3d3b606190688274c6913 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,338 | py | '''cipher.py
created 6 Nov 2014
by @jestuber '''
import string
class Caesar(object):
"""docstring for Caesar"""
def __init__(self):
super(Caesar, self).__init__()
# self.arg = arg
def encode(self,plaintext):
return Cipher().encode(plaintext)
def decode(self,encoded):
return Cipher().decode(encoded)
cl... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
2e5db24847888b7364737d3edcf63f609a59d47b | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/cssutils/css/colors.py | 0c4e4803b12d140e5337d66ce04c6406d01dfd2f | [
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 6,669 | py | # -*- coding: utf-8 -*-
"""
Built from something like this:
print [
(
row[2].text_content().strip(),
eval(row[4].text_content().strip())
)
for row in lxml.html.parse('http://www.w3.org/TR/css3-color/')
.xpath("//*[@class='colortable']//tr[positi... | [
"iabouelftouh@trudoc24x7.com"
] | iabouelftouh@trudoc24x7.com |
30a67ecaa65f58462ea307f9e7814f41c0df1c1a | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/2e033ce6e3a2cdde5174895cadb3b406b2a013729dd641fee2cebd9f7ed97879/cv2/cv2/StereoMatcher.py | 7ab88dbc440f1ef092cd9bd0c28536beb666920f | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | py | # encoding: utf-8
# module cv2.cv2
# from C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2.cv2 as # C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
import cv2.Error as Error # <module 'cv2.Error'>
imp... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
bd60096a6677e31ccf2f53c0600f73f693a5370f | 12c43be8658110886f71bd792653c7f2c7d9b016 | /project/app/apps.py | d85135acda52ac4478cffadffcfcb0eeb6b61525 | [] | no_license | umum253/django-generic-project | 8caf11e19d31766be0e651d979341591020f763c | 60042cf8fea5a0b8ca3defe18fb96e0b5044e6fe | refs/heads/main | 2023-06-29T23:49:27.318825 | 2021-08-06T10:53:03 | 2021-08-06T10:53:03 | 393,347,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.apps import AppConfig
class SampleAppConfig(AppConfig):
name = 'app'
verbose_name = 'ใขใใช'
| [
"fkwpostpost@gmail.com"
] | fkwpostpost@gmail.com |
93b50fe7cb62642f0337d0ffed643cb754d339e0 | db1d9b55ac8e15182336d8fdbfcd5668d908fba6 | /4_flask_restful_hello_world.py | db6e1ce37da625792a32e450fad8340a9a7356f2 | [] | no_license | sangameshBB/apis_with_flask | 573694ac00bc9ddf443df977a119d678edc6e67f | 81c088a048f1445b05ef151a74283778db1ad13d | refs/heads/master | 2022-09-05T23:01:35.623221 | 2020-05-29T14:39:59 | 2020-05-29T14:39:59 | 267,879,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
api.add_resource(HelloWorld, '/')
if __name__ == '__main__':
app.run(debug=True) | [
"noreply@github.com"
] | noreply@github.com |
22ace41fc6d9774b05648c5ecdfc968f4e0cff95 | c3fd71a80fadbf2b567911b2fd3aa2e16f6e5a39 | /jpl/cli/config.py | 416b87bb9928be54d40bddbd87ae709928795d04 | [
"MIT"
] | permissive | thejig/jpl | ae88037e82d414eb096282421d9b5e5231072ae7 | be58184e29588f01e494f218354791516d481f3b | refs/heads/master | 2021-01-05T06:23:48.639782 | 2020-06-12T02:18:17 | 2020-06-12T02:18:17 | 240,913,777 | 0 | 1 | MIT | 2020-02-28T01:08:52 | 2020-02-16T15:19:46 | Python | UTF-8 | Python | false | false | 170 | py | """Configuration for CLI."""
################
# CLICK COLORS #
################
MARK_TO_COLOR = {
"PASSED": "green",
"WARNING": "yellow",
"FAILED": "red"
}
| [
"leonkozlowski@gmail.com"
] | leonkozlowski@gmail.com |
97f69ec49c421509df9b9ef2b9c6785bdb0dafc5 | 9ee327caec1165ff7c70ddb2d792388e5b6be3b5 | /src/utils.py | 3f6760f2bbaa8f8ed1b93a1ca48119143e7a1ec2 | [] | no_license | nicktao9/AgriculturalDiseaseClassification | 62a0f5c1b8301c431e6c4435abcb4dda0897210b | f505aad04b7d421bbb2d2c91f75e02813a2f8dc7 | refs/heads/master | 2020-04-06T18:00:42.357728 | 2018-11-15T09:28:42 | 2018-11-15T09:28:42 | 157,681,631 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,289 | py | import sys, os, time
import visdom
import time,glob
import numpy as np
import cv2,json,shutil
import logging
from tqdm import tqdm
""" Create a new dir """
def create_folder(fd):
if not os.path.exists(fd):
os.makedirs(fd)
""" Visuallizer Module """
class Visualizer(object):
"""
ๅฐ่ฃ
ไบvisdom็ๅบๆฌๆไฝ๏ผไฝๆฏไฝ ไป็ถ... | [
"taolianjie007@163.com"
] | taolianjie007@163.com |
60c9db8974c4fcdaf3f0fc22cf0b0a1ad6083ca1 | 5095a2cbc3fea5b63b6f3cabf4ae1bd930cdb479 | /์๋/16_์จ๋ฐ๊ผญ์ง.py | 68332c98c92b749a3fb174e52d26d5d881b07e15 | [] | no_license | syeeuns/week03 | a198150d94caf772d6421b4adf6d8e28793853db | cf40b994fa285800854bac07b7ef86ad5dbdf35a | refs/heads/master | 2023-02-06T13:13:11.012967 | 2020-12-31T04:14:10 | 2020-12-31T04:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py |
from collections import deque
N,K = map(int, input().split())
Max=10**5+1
queue=deque([N])
D=[[-1]*2 for _ in range(Max)]
D[N][0]=0
T=[K]
z=K
while queue:
v = queue.popleft()
for newv in [v-1,v+1,v*2]:
if 0<= newv < Max and D[newv][0]==-1:
queue.append(newv)
D[newv][0]=D[v][0]... | [
"zeroistfilm@naver.com"
] | zeroistfilm@naver.com |
43d4d44a3129344e934b24556ad12f994123e98b | 114b2f71e553abc33f7774de00391488c74b1563 | /websocket/tests.py | e6715e95a399eef9667284201cceb8de914e38ce | [] | no_license | 279zlj/Autotest_project | 06589305df696b21e05a4f521a56c8170ec7b327 | 60576bfe56d9a4e76a590bfa3176e196d06dbeed | refs/heads/master | 2022-12-14T03:42:49.933047 | 2018-08-28T03:15:53 | 2018-08-28T03:15:53 | 146,384,029 | 0 | 0 | null | 2022-12-08T02:23:10 | 2018-08-28T03:00:05 | JavaScript | UTF-8 | Python | false | false | 3,608 | py | from django.test import TestCase
from client.c_client import Client
# Create your tests here.
import json
import sqlite3
import time
# def save_data(data_response):
# con = sqlite3.connect("D:\Autotestproject\Autotest_project\db.sqlite3")
# cur = con.cursor()
# cur.execute('insert into \
# ... | [
"13414101644@163.com"
] | 13414101644@163.com |
dab6144f837dc47e6411c03a43353b5968913916 | 8659a70b1a210bc0c8eceac7fb6152e42ebec8a2 | /ch4/bmi/13-bmi-plot.py | 19d7c858cfdb98a99c331833e33afb18885b6a0f | [] | no_license | boossiman2/Python_web | 49482575a54fc89b430891140bb48245a62af9e4 | 50b40cacff3613c3b413bd25de23ea8be3a70b7e | refs/heads/master | 2018-11-08T03:30:13.606773 | 2018-08-28T12:33:49 | 2018-08-28T12:33:49 | 41,590,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import matplotlib.pyplot as plt
import pandas as pd
# Pandas๋ก CSV ํ์ผ ์ฝ์ด ๋ค์ด๊ธฐ
tbl = pd.read_csv("bmi.csv", index_col=2)
# ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ ์์
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
#์๋ธ ํ๋กฏ ์ ์ฉ - ์ง์ ํ ๋ ์ด๋ธ์ ์์์ ์์ผ๋ก ์น ํ๊ธฐ
def scatter(lbl, color):
b = tbl.loc[lbl]
ax.scatter(b["weight"],b["height"], c=color, label=lbl)
... | [
"boossiman2@gmail.com"
] | boossiman2@gmail.com |
178b53756b1a7f1ccec51c10e04445888b4f6264 | 6f8e52d3c03d7a4c82a01dbaaca96719d8ad356f | /reader/migrations/0002_article_publish_date.py | 41d8ce661d41cc22b036839a5db6864080b75c60 | [] | no_license | maest/chwlang | 5df4c624e4c703192fdea8b03d1448a959d12368 | 72a81a0aba80af6362fe78dcd37ba972e150bf8f | refs/heads/master | 2022-12-16T22:45:40.865007 | 2019-02-25T19:12:07 | 2019-02-25T19:12:07 | 199,169,668 | 0 | 0 | null | 2022-12-08T01:04:54 | 2019-07-27T13:40:39 | JavaScript | UTF-8 | Python | false | false | 379 | py | # Generated by Django 2.0.2 on 2018-04-15 18:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reader', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='publish_date',
... | [
"b.panait@gmail.com"
] | b.panait@gmail.com |
2358001a8b8e2de4a23fb90ca93ca55a3ac626f2 | a2a9260526e0c2a20cb08bcad693d8bddb47d420 | /lib/python2.7/site-packages/allauth/socialaccount/providers/facebook/tests.py | 854d1c9745eeae47e94d54a3ac1351b41485b93a | [] | no_license | shubh3794/Processing-Payment | 42df51fb0e582d573fbfd030125f27b8c4464263 | 81c0223889a450f4d023d91eb2890e385afd198b | refs/heads/master | 2021-01-10T03:50:38.727002 | 2015-11-25T20:56:41 | 2015-11-25T20:56:41 | 46,883,262 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | import json
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from django.test.client import RequestFactory
from allauth.socialaccount.tests import create_oauth2_tests
from allauth.tests import MockedResponse, patch
from allauth.socialaccount.models import SocialAccount
from... | [
"shubh.aggarwal.37@gmail.com"
] | shubh.aggarwal.37@gmail.com |
51ef9ebcaa98ebc7587f1a24b2cf0e33fca79a0f | 127ed1ba90dcced8cce8366a5139973f1d21c372 | /python/lang/security/audit/insecure-transport/urllib/insecure-urlopener-open-ftp.py | edb25f3b511977c953c437733a648bdd97fd483d | [] | no_license | Silentsoul04/semgrep-rules-1 | f0c53e04b4239555a688bca687340af4736d2514 | 81b81481c0a81e45d3ffba8d60dd98491a1b0446 | refs/heads/master | 2022-12-22T15:41:34.399652 | 2020-09-13T14:59:38 | 2020-09-13T14:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | from urllib.request import URLopener
def test1():
od = URLopener()
# ruleid: insecure-urlopener-open-ftp
od.open("ftp://example.com")
def test1_ok():
od = URLopener()
# ok: insecure-urlopener-open-ftp
od.open("ftps://example.com")
def test2():
od = URLopener()
# ruleid: insecure-urlop... | [
"manhnguyen510@gmail.com"
] | manhnguyen510@gmail.com |
4c5c34eeb833bb131f5c7d69cd376b51d860a327 | 5c760034921788b8d9e92a9c78f210127e4a6f56 | /computeDiseaseVec.py | 1e20bc183c04d65bdf8f75c316df7b041cd6a76d | [] | no_license | DiliSimon/HopHacks19 | 80c6d1a99aa3586a94f5087aa46c0f2beb72ee5d | afd1579e3f4fde8a3abd468f97af67b99588e8bb | refs/heads/master | 2021-02-10T23:36:00.186011 | 2020-03-02T17:22:01 | 2020-03-02T17:22:01 | 244,429,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from defaultlist import defaultlist
dlist = []
with open('disease_list') as f:
for l in f:
dlist.append(l.strip('\n'))
dNum = defaultlist(int)
with open('disease_vector.csv') as f:
for l in f:
dname = l.split('[')[0][:-1]
indexOfDisease = dlist.index(dname)
dNum[indexOfDisease]... | [
"Gtingwen@outlook.com"
] | Gtingwen@outlook.com |
8f3fd56d7fcc53dff4b0a0f3e9943652e4108514 | 9e70af68afebb05e66381e4f6a978eb1b7589c46 | /mywork/testsurface.py | 9c9f460c955f27a1e39564e43c413a7f23928d5c | [] | no_license | OuYangMinOa/space-Physic | cbca14b3948ac204c35327fbb9cc6ab9eb704d76 | e8e6ec7379a8cecb944add6dbbbee213dae1b018 | refs/heads/master | 2022-11-11T08:09:59.844261 | 2020-06-28T20:14:24 | 2020-06-28T20:14:24 | 275,657,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
import numpy as np
from netCDF4 import Dataset
import os
m = Basemap()
m.drawcoastlines()
m.fillcontinents()
m.drawparallels(np.arange(-90,90,30),labels=[1,1,0,1], fontsize=8)
m.drawmeridians(np.arange(0,360,30),labels=[1,1,0,1], rotati... | [
"noreply@github.com"
] | noreply@github.com |
4a47b93956005fbcfc0bdd1b548ae397f80962e4 | ac255a4ddae0644b7599531b69d5cd34c855358c | /yt-corey-schafer/2-strings.py | 193a1f3e3c2c590b987bf78bde4c03a746338470 | [] | no_license | mickosav/python | 23bc992a83324395f88b8e6a6cf7d6a9f42c9f1e | 16c381c9edcdcb29f835d02eac8e15d84c186fa9 | refs/heads/master | 2020-08-25T09:09:33.938495 | 2020-03-10T12:21:06 | 2020-03-10T12:21:06 | 216,989,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | message = 'Hello Micko'
message_multiline = '''bla bla blalalll
hello lsakdjfl '''
print(message)
print(message_multiline)
print(len(message)) # length
print(type(message)) # -> <class 'str'>
print(message[0])
# slicing:
print(message[0:5]) # from (including) - to (excluding)
print(message[:5]) # from start
print(mes... | [
"mickosavovic@gmail.com"
] | mickosavovic@gmail.com |
cde76863a99e655e46b43112532dd7da3bcc13d4 | 1bde0c807f17fc431b04b4b9cb338ee3acd34b7d | /.history/predict_20210713124241.py | 7c01488a87ec48a2cd94cb2965aba58fb29d0d56 | [] | no_license | Harrysibbenga/Pytorch-NLP | cf9d7e6376d5e19929e6703c3342c81c1a128be1 | 6f22f6ac5f2bf37f27ed2d6285f3a154eda4b566 | refs/heads/main | 2023-06-19T22:43:35.513874 | 2021-07-14T19:45:15 | 2021-07-14T19:45:15 | 385,595,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | from model import *
from data import *
import sys
rnn = torch.load('char-rnn-classification.pt')
# Just return an output given a line
def evaluate(line_tensor):
hidden = rnn.initHidden()
for i in range(line_tensor.size()[0]):
output, hidden = rnn(line_tensor[i], hidden)
return output
def pre... | [
"sibbengaharry@gmail.com"
] | sibbengaharry@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.