blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39c3c80ceae7377e686b90a301996ca2e2f148c4 | 1c1cea1d20599326bf9d1d7cc173fe7b2b25eacc | /forms.py | ac83f8fbc004a267a51f3afed41a0bfeb9e5c273 | [] | no_license | nancydhanuka/NANCY-07-31 | 2a042454448544d59b13a6f0e8509192f17e0ab7 | bbd710df9f7ff0fd3cbb64ca99deeca1b6cb4e53 | refs/heads/main | 2023-07-01T00:07:40.658017 | 2021-08-03T10:27:13 | 2021-08-03T10:27:13 | 392,266,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.forms import ModelForm
from app.models import TODO
class TODOform(ModelForm):
class Meta:
model = TODO
fields = ['title', 'status', 'priority']
| [
"noreply@github.com"
] | nancydhanuka.noreply@github.com |
8ea476877ae1734190ba4101cdc1c9b848edb21f | dd9093109a636f68703fd43970526b1f016d61dc | /GP/python/restapi/open_restapi.py | 5c2717e45e72c46ab296ff79261c786291a222e1 | [
"MIT"
] | permissive | Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018 | 66b639c395fe7bc85ff28bcac6dfae143d291b59 | afb8f9153edc04bd81335b177ff45d895bcfc711 | refs/heads/master | 2020-03-18T18:03:28.291894 | 2018-06-12T16:09:55 | 2018-06-12T16:09:55 | 135,068,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,264 | py | #-------------------------------------------------------------------------------
# Open source version
# special thanks to geospatial python for shapefile module
#-------------------------------------------------------------------------------
from __future__ import print_function
import urllib
import shapefile
import s... | [
"calebma@bolton-menk.com"
] | calebma@bolton-menk.com |
ec4463cf20a2f83c632703cc8a7283095b474336 | 993f18c21402d7a4ff21ddb7ff2ec6c80e466f20 | /onnx/reference/ops/aionnxml/__init__.py | e3f999338b6c99221d365ccc5f53f06fb9824265 | [
"Apache-2.0"
] | permissive | onnx/onnx | 10d3916803c7babff89ec0fa9045127bcccad376 | 8a475b34cb3875df311a46f57571646498f5bda7 | refs/heads/main | 2023-08-18T18:50:03.388353 | 2023-08-16T22:18:46 | 2023-08-16T22:18:46 | 102,692,863 | 16,164 | 4,150 | Apache-2.0 | 2023-09-14T17:10:38 | 2017-09-07T04:53:45 | Python | UTF-8 | Python | false | false | 96 | py | # SPDX-License-Identifier: Apache-2.0
from onnx.reference.ops.aionnxml._op_list import load_op
| [
"noreply@github.com"
] | onnx.noreply@github.com |
cc2bf787e9341a68a4c761a4428127720805e64d | fd21a967aed662b031df7bc5bd60110d03990626 | /src/main.py | 8362505052af66ca9db0cbcf052ab80532525b32 | [] | no_license | thongchaic/micro-nfd | 918778c03f34f6d8e62667b747cfbecf2478dc33 | 17006c8f8ac2ad9bc653e87b9fa396c99dc6a73f | refs/heads/master | 2022-05-18T23:32:22.328195 | 2022-03-29T03:04:50 | 2022-03-29T03:04:50 | 173,733,823 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import time
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect("PNHome2","st11ae58*")
while not wlan.isconnected():
print(".",end=" ")
time.sleep(2)
print("")
print(wlan.ifconfig())
#---------- MQTT Face Test ------------
# from config import *
# from mqtt import MQTTx
# mqttx... | [
"thongchai.c@srru.ac.th"
] | thongchai.c@srru.ac.th |
25447401b0a48442b6dbfc35cebb615b3e2125f5 | 518ed159ee612b9803c7e803e0387a2736c56621 | /tests/test_datastructures_and_algorithms.py | d45ced04b9f9449afc1935d5d22d8b54dc36992d | [] | no_license | varskann/datastructures_and_algorithms | dd87b33bfda64d87a5dd609bc5514034ffa3bf5b | bc7b8c011c9c7d2cd6ed682aeff5a34281ec925e | refs/heads/master | 2022-12-24T17:19:16.268396 | 2020-10-10T17:59:37 | 2020-10-10T17:59:37 | 261,686,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py |
import unittest
import random
from datastructures_and_algorithms import __version__
from datastructures_and_algorithms.sorting import (
# bubble_sort,
insertion_sort,
# selection_sort,
# merge_sort,
# quick_sort,
# counting_sort,
# bucket_sort,
# shell_sort,
# heap_sort,
# bri... | [
"varskann1993@gmail.com"
] | varskann1993@gmail.com |
4b36ebd122bbedafa7627a174eb6304b860e00fe | 163d2a1b586ebfdaca649dca24d90b7ec13ee191 | /InvestingCalculator/wsgi.py | e473ef9b58491129c0787d03a97c76cad5762ed0 | [] | no_license | JackOfSpades93/InvestingCalculator | fb044588f795ef797509928d052133d7a437a517 | 686f04ead1981b9e242918ae4580203cfe0d3235 | refs/heads/master | 2020-04-27T00:48:20.659902 | 2019-03-18T22:28:19 | 2019-03-18T22:28:19 | 173,946,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for InvestingCalculator 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"nikola.m.pajic@gmail.com"
] | nikola.m.pajic@gmail.com |
5d929b16d5c67f55577c60f658bda8046fe985f0 | 54156856a1822a4cd6a7e9305369b5fa33b503ac | /python/text-mining/parse.py | fc2f64343cb2507eaf50b24c5c18f3019cc365cc | [] | no_license | takasashi/sandbox | cafd903e7e376485c7fec05f0b4293078147c09f | a23d85258b5525498b57672993b25d54fa08f189 | refs/heads/master | 2023-07-09T04:37:28.532448 | 2021-08-09T06:11:30 | 2021-08-09T06:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from bs4 import BeautifulSoup
import sys
import re
import glob
import pandas as pd
def parse_html(filename):
path = glob.glob('./' + filename)
for p in path:
name = p.replace('.html','').replace('./html\\','')
html = open(p,'r',encoding="utf-8_sig")
soup = BeautifulSoup(html,"html.par... | [
"ya-nakayama@dts.co.jp"
] | ya-nakayama@dts.co.jp |
13009baf812cd8747ff405145799588fa9fb1406 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/errors/types/query_error.py | 8758e1728e679b9b1207402920a2e48a6a25d5ba | [
"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 | 3,253 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
d159310ef0ff2d8f75269bdd0f556d93d36cf5c1 | f0e70c8ee39417bef53ef2f1a889cd73b22966f7 | /bin/wheel | 324defac44224e2e4fda7d86225fcd0804525ea1 | [] | no_license | karanrajpal14/trydjango19 | 571afd89e6ea04d3121beb6361a5e6db5ca82e89 | 3161ae7d7a6b3fba12097eee2ad5d303509e76a4 | refs/heads/master | 2021-01-01T04:09:43.085143 | 2018-12-12T23:10:21 | 2018-12-12T23:10:21 | 97,134,874 | 4 | 0 | null | 2018-12-12T23:10:22 | 2017-07-13T14:56:35 | Python | UTF-8 | Python | false | false | 246 | #!/home/karan/djangoSandbox/trydjango19/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rajpal.karan73@gmail.com"
] | rajpal.karan73@gmail.com | |
8001d4fa73f74c0d4037b2bed3d37e8000f64e96 | 64bec0e82c378ef354019bfea06ab304e619e5f7 | /ctreesize.py | d6b495ff7bf1d7ad4b0240614825a934592de8e0 | [] | no_license | bitboulder/ctreesize | c22cee50d5693097d2deb133c91acddefa05e2f7 | 9e03a69ed91ba340ad4ee87478af76fed8681dff | refs/heads/master | 2022-03-04T04:18:37.334148 | 2022-02-25T22:11:57 | 2022-02-25T22:11:57 | 124,260,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | #!/usr/bin/python3
import sys,os,stat,time
scant=[None]
def getsize(fn,dev):
t=time.time()
if scant[0] is None: scant[0]=t
if t-scant[0]>5: print(f'scan {fn}'); scant[0]=t
st=os.stat(fn,follow_symlinks=False)
if st.st_dev!=dev: return 'm',0
if stat.S_ISDIR(st.st_mode) and not stat.S_ISLNK(st.... | [
"git@bitboulder.net"
] | git@bitboulder.net |
a7623bdd86f659222995dad7c72c82bf0c690b75 | a74d7a4923c574352c5ac460a5aebf46a5dcf6cb | /emm/migrations/0005_emailemm_email_register.py | 405d04dc1ea0d9cd0a8ca79bb019766afae4e460 | [] | no_license | mehranj73/chatrbaazan-api | 14c6e827991e90419b35a0590838c2078560ecf7 | 06bc6150742203122e51a34cdcd6096a2bc8d126 | refs/heads/master | 2022-11-15T10:02:08.123093 | 2020-07-07T04:12:38 | 2020-07-07T04:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 2.1.2 on 2018-12-28 08:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('emm', '0004_emailregister'),
]
operations = [
migrations.AddField(
model_name='emailemm',
name='email_register',
... | [
"mohammad.chavoshipor@gmail.com"
] | mohammad.chavoshipor@gmail.com |
b831d480884a51f5ae6e2ffcc8bdaf3d2e02df62 | af8c32bcf9ecc73d6cc6589df04845ba118ed99b | /config/urls.py | 70aadf413d0018110a3f29020b1fed3f389e1fc2 | [] | no_license | HWANHEE-CHO/LOTTO- | cdd7a7fd2584b605cdf4fcd4b7d297e8ab00946d | 9cd05b924a41ee3a5c16047a9e8b5e859d601809 | refs/heads/master | 2022-11-16T15:35:37.732133 | 2020-07-13T12:54:58 | 2020-07-13T12:54:58 | 279,301,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"jofunny0806@gmail.com"
] | jofunny0806@gmail.com |
4d1556ec62f03f0b2553808405980cd2708ac556 | ef58a8ce16062634c23fb3cb2f438f840f605506 | /Alarmy/pages/urls.py | 8f6dedb5253f38ec7c1b16a7ef488cc86b6360cd | [] | no_license | 0phir123/Alarm_Project | 6ba1f64fe19084d3657ca2540095bba15a60fd92 | 6af3832b5feda70df5a4c00a2de72374f9dffeb3 | refs/heads/main | 2023-01-28T11:39:21.954113 | 2020-12-13T12:51:09 | 2020-12-13T12:51:09 | 317,360,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('setup', views.setup, name='setup'),
path('live', views.live, name='live'),
path('history', views.history, name='history'),
] | [
"ophirackerman@gmail.com"
] | ophirackerman@gmail.com |
d9110c9e87ca680036fa2e00802e8ef74ebef654 | 6c1d4ce1ebb64e31e588eb36f2ad041826b3259f | /yin.py | 7adcb7e5945d699c6f5c0beebfb89fb375c2dcba | [] | no_license | rciurlea/yin-python | 94a3d7856872850bb3d02b3772a3685ec1458654 | f9848f4910d0d1e138ba008a0a1f19d475da843c | refs/heads/master | 2021-05-16T01:51:17.045046 | 2016-12-08T22:07:49 | 2016-12-08T22:07:49 | 75,975,480 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import matplotlib.pyplot as plt
from scipy.fftpack import fft
from scipy.io import wavfile
import numpy as np
fs, data = wavfile.read("../A1_bass.wav")
print(fs)
fig = plt.figure()
g1 = fig.add_subplot(221)
g1.set_title("Original signal")
g1.plot(data)
g2 = fig.add_subplot(222)
g2.set_title("FFT")
s = fft(data)
k ... | [
"raduciurlea@gmail.com"
] | raduciurlea@gmail.com |
d416731300608f3b546494aadbd07331952f61b3 | 1186ed4136970a645e199ae06f9f6821335c725a | /is_square.py | dea37da04e7197977e434899fcaf5483f0c66a96 | [] | no_license | guillermovillois/codewarskata | 99b1e7b924e19c5f7caed1928c24ea9b970c457c | 27912220229111c318189833a2c2c18c063f58f7 | refs/heads/master | 2023-01-29T12:46:13.564880 | 2020-12-10T00:12:42 | 2020-12-10T00:12:42 | 279,054,817 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import math
def is_square(n):
print((math.sqrt(n)).is_integer() if n >= 0 else False)
is_square(-1)
is_square(0)
is_square(3)
is_square(4)
is_square(25)
is_square(26)
| [
"guillearg@gmail.com"
] | guillearg@gmail.com |
fa58a4efa4c4fe58faca8564195e27e9fddaf694 | 7a4f4bdcebba72bec54b256e673c4baf677f6d35 | /hchamster/apicli.py | 549b60c647dc583f9d7f193a99edd1c304157665 | [] | no_license | sbutterfield/dz-trailhead-hamster | dac760906bc55e49c3044fc257b3c518ee3c93bb | fb68e61c3ec753f1d9d0b253a36a3375ad12625f | refs/heads/master | 2020-06-07T16:26:07.085330 | 2015-09-14T21:40:42 | 2015-09-14T21:40:42 | 42,480,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | import cmd
import json
import pydoc
import sys
from requests.exceptions import RequestException
class ClientCmdWrapper(cmd.Cmd):
prompt = '>'
output = sys.stdout
APIExceptionClass = RequestException
def __init__(self, client):
cmd.Cmd.__init__(self)
self.client = client
def out... | [
"sbutterfield@sbutterfiel-ltm.internal.salesforce.com"
] | sbutterfield@sbutterfiel-ltm.internal.salesforce.com |
e9557b16c01f54bbd1938e26ee427711d04cfb8f | baf34f490b280bd17c7f7b85878114710175d96d | /tools/validators.py | c0c6187e79e4b76f9dd2a61a6f6ce92ffad0b488 | [
"MIT"
] | permissive | Emanueluz/esquer.dev | 87077627ca5eb5142b2c172a197615791fd8313d | a0887739fe860abb7c9600d62e43fa06fe6a2b63 | refs/heads/master | 2022-10-05T14:23:12.633292 | 2020-06-07T12:48:22 | 2020-06-07T12:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from django.core.exceptions import ValidationError
def humanize_bytes(num, suffix='B'):
for unit in ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z']:
if abs(num) < 1024.0:
return "%3.1f%s%s" % (num, unit, suffix)
num /= 1024.0
return "%.1f%s%s" % (num, 'Yi', suffix)
class FileSizeValidato... | [
"yanorestes@hotmail.com"
] | yanorestes@hotmail.com |
511e0012395b2dcc8fc4a3cc90692fb6d2bea9f9 | 81bac1dd76d9201e7553276644c7258120b9ef35 | /src/PSI19J_M4567_2219112_RenatoVentura/Python/MailSender-deprecated.py | ee3a2000794db66f65c4e1cb2f287bb2a11e497e | [] | no_license | RenatoCapelo/PSI19J_M4567_2219112_RenatoVentura | 4718ffd3e89c02c0663b23c270057183dcae9d5d | 6974876892f5a2134619dac23da14c53c8b3b1a5 | refs/heads/master | 2022-12-10T01:44:09.025616 | 2020-06-24T05:41:53 | 2020-06-24T05:41:53 | 262,025,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email import encoders
import os.path
#abre o ficheiro criado com o email do cliente atual
path=os.getcwd()+'\\Files\\TEMP\\email.txt'
path1=os.getcwd()+'\\Files\\TEMP\\recibo.tx... | [
"renatocapelo2003@gmail.com"
] | renatocapelo2003@gmail.com |
828fb6837333b51d2803d136222e3410221cc11f | 0222444bde1aa3b16e787af39025c8af6351855a | /docs/conf.py | a4927db04b524154e573a5e4b37a2375a9f3998c | [
"MIT"
] | permissive | talaurence/phconvert | 5eb45b594459b3921a13d6c30e5d74c2f1ca0d63 | 23eb44f155967d406e5b0393fdc82270faafa97a | refs/heads/master | 2021-07-06T04:07:17.041757 | 2021-05-05T15:18:42 | 2021-05-05T15:18:42 | 55,850,064 | 0 | 0 | NOASSERTION | 2021-05-05T15:18:43 | 2016-04-09T14:55:00 | Python | UTF-8 | Python | false | false | 10,278 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# phconvert documentation build configuration file, created by
# sphinx-quickstart on Mon Oct 26 09:06:48 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | [
"tritemio@gmail.com"
] | tritemio@gmail.com |
64f2cdf0dbe3a981cafde5c59231c7f2167c5b7a | bfeab956008aae4be649d92a9037c81ba8e7e7ff | /linguist/utils/__init__.py | 9bcf503d969457d401fe16a59dba66df94f54c55 | [
"MIT"
] | permissive | pombredanne/django-linguist | c5ea56dc42ce7dedabf260ea47d628cdb820b187 | 4df12514a25aa1f669e7809010b42cbe0fa5cb66 | refs/heads/master | 2020-12-25T21:00:58.126054 | 2015-12-08T08:34:11 | 2015-12-08T08:34:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # -*- coding: utf-8 -*-
from .i18n import (get_language_name,
get_language,
get_fallback_language,
get_real_field_name,
get_fallback_field_name,
get_supported_languages,
get_language_fields,
... | [
"gilles@gillesfabio.com"
] | gilles@gillesfabio.com |
b67319a271d923790927e483e58fe947902af3ae | a50fc03c5de39fb321f07016ef64e13d98fa7c50 | /MyDB/data/make_labels/work_flow.py | 287d933be1953d53aad6cc87108bf26781f58287 | [
"Apache-2.0"
] | permissive | PKQ1688/text_detection | a94c435b3e2ee962b7489a094438ad052d7e7655 | e306b003f2e8eb9f8d07fc95d2d9def14fa8b38c | refs/heads/master | 2022-11-21T18:09:49.430313 | 2020-07-29T08:44:50 | 2020-07-29T08:44:50 | 246,490,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | # -*- coding:utf-8 -*-
# @author :adolf
from data.make_labels.make_border_map import MakeBorderMap
from data.make_labels.make_shrink_map import MakeShrinkMap
import numpy as np
from data.data_utils.clockwise_points import order_points_clockwise
import cv2
import os
# img_path = '/home/shizai/data2/ocr_data/rctw/imgs... | [
"zhutaonan@i-i.ai"
] | zhutaonan@i-i.ai |
a4435c31fc18e70c3db7ebaab03e5abd46722666 | 780869a6c3e7c986945a74b821a2e5c516be66d1 | /tensorflow/models/rnn/ptb/utils/train_utils.py | 88a45b9c5a20d7f199bbb15f60079f6be5386c04 | [
"Apache-2.0"
] | permissive | ehasler/tensorflow | 3159615ebc9b275d21818b7fc95b0bb24b35e072 | 407ac9f1fdf203ebce8a69f61003c7536b9831de | refs/heads/master | 2021-01-24T00:15:57.503460 | 2018-10-14T20:45:54 | 2018-10-14T20:45:54 | 58,624,159 | 3 | 0 | null | 2016-05-12T08:44:42 | 2016-05-12T08:44:42 | null | UTF-8 | Python | false | false | 5,942 | py | import os
import time, datetime
import pickle
import logging
import numpy as np
import tensorflow as tf
from tensorflow.models.rnn.ptb import reader
def run_epoch(session, m, data, eval_op, train_dir, steps_per_ckpt, train=False,
start_idx=0, start_state=None, tmpfile=None, m_valid=None, valid_data=Non... | [
"ehasler@sdl.com"
] | ehasler@sdl.com |
7ea5ff8329c041e70598b5838b3b5ef768c4e455 | 41f98451dffd4a8719a39ec5c0291e4812e89e59 | /td_cours/td_2_structures_iteratives/td_2_ex_8.py | 2dc44faf6fa8722ada0faf27830904a25f5637b1 | [] | no_license | mbagrel1/isn | 742926de4989ea28b9c4f1b6538ac04d6f34eef0 | 480e60efa51d886810c7c7616c839ad9f3b2ec14 | refs/heads/master | 2020-05-18T19:53:29.186118 | 2019-05-12T11:14:00 | 2019-05-12T11:14:00 | 184,618,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py |
for j in range(10):
for i in range(10):
print"*",
print""
| [
"mariebagrel54@gmail.com"
] | mariebagrel54@gmail.com |
69d3cf3c96f1905addc6826c757457774cb149a7 | ad64f8e2c5a4fc69635b611633485979582bc36d | /assignment1_1516/import random.py | 974537d09aae6b8f28c38f769c47f39d9e3b8b83 | [] | no_license | lmtoan/CS231n-Vision | 043311b8b575d1499b0f648d7c9e429300b6544a | eb279313ac106c1f902785dc6448e3d9f30969c5 | refs/heads/master | 2021-01-22T12:17:32.279242 | 2017-07-07T01:12:08 | 2017-07-07T01:12:08 | 92,711,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | # In this exercise you will:
# - implement a fully-vectorized loss function for the SVM
# - implement the fully-vectorized expression for its analytic gradient
# - check your implementation using numerical gradient
# - use a validation set to tune the learning rate and regularization strength
# - optimize the loss func... | [
"toan503@gmail.com"
] | toan503@gmail.com |
dbaaa1701c1acb8b04a70efa04149df90accf89c | a81de210ce63a5a27dcbc4f94e1fa61b3efb80bc | /python/textbook practice/Quiz 6.py | dd9d8c3b33487f471a0c1aa74e8080c39f47ed51 | [] | no_license | tawseefpatel/ECOR1051 | 49b0ea2aeeeaa5361f4aea43d7fb88b0287d0568 | 95fcfda71372ba5a40285412afebc01d442fadd0 | refs/heads/main | 2023-01-19T11:18:05.096798 | 2020-11-25T00:20:17 | 2020-11-25T00:20:17 | 315,773,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | '''
number = 5
while number > 0:
number -= 1
print (number)
number = 5
while number > 0:
print (number)
number -= 1
my_list = [1,2,3]
i = 1
while (i < len(my_list)):
print (my_list[i], end="" )
x = "abcdef"
i = "a"
while i in x:
x = x[:-1]
print(i, end = " ")
... | [
"noreply@github.com"
] | tawseefpatel.noreply@github.com |
099191a387f359b22686f65ddf6594ebab14d15c | a0a3655ae754907b34e5614aa902ec037df94803 | /tests/mnist_test/conv_mnist_test.py | 11fe54a10a0414eb32be727e4c3249a2618cf218 | [
"MIT"
] | permissive | Elvin9/Neo | e7aaf1649b5355451765549d7e07ea3d76639233 | 6d3bdd874d662da3c0c72cb72b7ad1de70248468 | refs/heads/master | 2021-09-07T10:48:12.729152 | 2018-02-21T20:20:09 | 2018-02-21T20:20:09 | 92,592,140 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | import numpy as np
import matplotlib.pyplot as plt
from mnist import MNIST
from lib.layers.convolution import Convolution
from lib.layers.linear import Linear
from lib.layers.pooling import MaxPooling
from lib.layers.rectifiers import ReLU
from lib.layers.reshape import Reshape
from lib.layers.softmax import SoftmaxCro... | [
"alonh34@gmail.com"
] | alonh34@gmail.com |
989288d0198252872b26e33b9a60fb0a61198338 | 6c6c56bccc8fa0dabefb78b613acab5946cc2f26 | /utils/utils.py | 195daa08a44b8f7aec924e42e05bc4ac27ed90f6 | [] | no_license | Andryyyha/Graduate-work-SSU | c486f653e8ebb008748d2c35f5a9b14187f229b0 | f9cd13b838acf0f1ab725f548301d71e79238452 | refs/heads/master | 2022-10-04T05:53:55.871890 | 2020-05-27T16:33:00 | 2020-05-27T16:33:00 | 261,755,187 | 0 | 0 | null | 2020-05-27T16:33:01 | 2020-05-06T12:42:26 | Python | UTF-8 | Python | false | false | 771 | py | import argparse
import os
import boto3
def parse():
parser = argparse.ArgumentParser()
parser.add_argument('--local_path', help='where to place data in local server', dest='local_path')
parser.add_argument('--bucket_name', help='S3 bucket name to copy data', dest='bucket_name')
return parser.parse_arg... | [
"noreply@github.com"
] | Andryyyha.noreply@github.com |
a77be4de1b89a6536dd1fae6405943f316e66ced | 9d20cb488dfdcdb3899f7bb4013e8e6535246fe0 | /buildLookup.py | 46a779231dd495f06810c3cdf1ebde91dbdbfdd7 | [
"MIT"
] | permissive | jwacooks/library-link-network-demo | 81e27b61447a20af8a020d02d177824a112dcd38 | 9df8d5bb96cee28d87e34fec1d9dc915190405b9 | refs/heads/master | 2021-01-11T23:08:52.178209 | 2017-05-12T11:56:18 | 2017-05-12T11:56:18 | 78,551,088 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,937 | py | #!/usr3/bustaff/jwa/anaconda_envs/py3/bin/python
## buildLookup.py
## Jack Ammerman
## January 10, 2017
## run this from a working directory
## import required modules
import requests
from urllib.request import Request, urlopen
import sqlite3
import time
import json
import os
import gzip
# first we get the latest jso... | [
"jwa@mugar130-dhcp198.bu.edu"
] | jwa@mugar130-dhcp198.bu.edu |
81e5ec8fca445ad471171e4393ce65e8c6bd36eb | 10917c41ffcc43514dfbcba30430d14537a2c09b | /Django Assignment 1/blog/urls.py | 767b84b2b47adcdd95fa8228f05f43ebaef92988 | [] | no_license | Zaymes/Insight-Training-Assignment | 0de58844ea62325969221b8f99452fd209f2b3de | a638e9079767709251f2f0d775e006bf3d597adb | refs/heads/master | 2022-11-21T09:25:15.010254 | 2020-07-23T15:55:17 | 2020-07-23T15:55:17 | 280,874,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.urls import path
from .views import render_landing_page, render_detail, render_blogs_list
urlpatterns = [
path('', render_landing_page),
path('bloglist/', render_blogs_list),
path('detail/<int:blog_id>',render_detail)
]
| [
"zaymesshrestha@gmail.com"
] | zaymesshrestha@gmail.com |
c4815c625e377f25d145ac7422a819c5392f1c76 | 58dcf482d6704224d259d0d2992c0d6bde4c59a4 | /hoodwatch/migrations/0001_initial.py | d2eecfd1eb7cecf2831b4f43fe962c6bd73c9a10 | [
"PostgreSQL"
] | permissive | jkitsao/hoodwatch | 744a23e391b822f8f3bb2e0756d9d006554b4d60 | ebef759506d7f8286a647f88490f5e14f6387f43 | refs/heads/master | 2023-01-03T16:19:56.623658 | 2020-11-03T10:35:02 | 2020-11-03T10:35:02 | 309,639,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # Generated by Django 2.1.7 on 2019-03-26 07:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"kitsaojackson22@gmail.com"
] | kitsaojackson22@gmail.com |
a73a454bce44d8e2fe6be77725df8e99a19f1d22 | adda97d38aef2a1f8ac71ee9bc2334db90520a34 | /entity_finder.py | 9b0acf95de2414f880153a537070c098115a2295 | [
"MIT"
] | permissive | jianantian/entity_recognizer | d95fa9599f3b5ec024a5784db626db00e7ba683d | bcd02c4f46ec290a7710f7cefef66e17dc97a020 | refs/heads/master | 2021-01-12T00:18:01.895736 | 2017-01-19T04:11:26 | 2017-01-19T04:11:26 | 78,703,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | import get_tutor
""""""
from pprint import pprint
def tagger(sentense, dic):
"""用 dic 中的词来匹配文本中的实体"""
n = len(sentense)
bool_mark = [False] * n
tag_list = []
for i in range(n, 0, -1):
for j in range(n - i + 1):
if bool_mark[j] is False and bool_mark[j + i - 1] is Fa... | [
"noreply@github.com"
] | jianantian.noreply@github.com |
c970668ee9d13930e662701f9264a1f3549c7dbb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/77/usersdata/232/41242/submittedfiles/exercicio24.py | 3eac611f36a389948a2e0b1b66783af935b9b375 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite o valor de a: '))
b=int(input('Digite o valor de b: '))
if a>b:
for i in range (1,b,1):
if (a%i)==0 and (b%i)==0:
print(i)
else:
for i in range (1,a,1):
if (b%i)==0 and (a%i)==0:
print(i)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
45560bcfdad58ec31e5118b87faa6efd52192614 | 8f645c181c728b12b27d67c2311a10268ebe8beb | /basic/def10_flag.py | d4bd0d2644106dc178436ad1aa340fe5c20c589f | [] | no_license | hyerin315/GDT_study | 7cd60cc91c64ae80b28d0fcefb41fa31b556c33d | 83b55676700f0167a3ba7e0f29e5506325d0058d | refs/heads/main | 2023-07-15T21:25:15.715978 | 2021-08-23T12:42:29 | 2021-08-23T12:43:31 | 389,624,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import turtle
t = turtle.Turtle()
def draw_f(radius, color):
t.left(270)
t.width(3)
t.color("black", color)
t.begin_fill()
t.circle(radius/2.0, -180)
t.circle(radius, 180)
t.left(180)
t.circle(-radius / 2.0, -180)
t.end_fill()
draw_f(200, "red")
t.setheading(180)
draw_f(200, "blue... | [
"lhl9603@gmail.com"
] | lhl9603@gmail.com |
61eda42c116a4310ef446e15ebcff8be9e3242ea | fea6479c640bca267db8c01d6f61a230e2edc8c4 | /src/skext/metrics.py | f69966676db992b36c9744281f4b4c881fec20c7 | [] | no_license | jbjorne/DiMSUM2016 | 643c4129d911d03e40d67d1282743241bf8924b8 | 884011792b4511aa34da533c7fe57fc18709ed77 | refs/heads/master | 2021-01-10T08:56:07.700649 | 2016-02-21T16:12:59 | 2016-02-21T16:12:59 | 52,537,965 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | from sklearn.metrics.classification import _check_targets, confusion_matrix
import numpy as np
"""
Balanced Accuracy Score from https://github.com/TTRh/scikit-learn/blob/balanced_accuracy_score/sklearn/metrics/classification.py
"""
def balanced_accuracy_score(y_true, y_pred, balance=0.5):
"""Balanced accuracy cla... | [
"jari.bjorne@utu.fi"
] | jari.bjorne@utu.fi |
bcb38196d0ba27ef8d4ab117560ed31814daeacc | 59eabe50899083334931c54e4cdb39dff0587215 | /apnaBuddy/committee/migrations/0001_initial.py | 1bf4b04d8372eacf3a66131662cec6442be8e511 | [] | no_license | M-A-N-Y/apnaBuddy | 33309cb833f9e14b8760b6d0f3cccf81b0dab136 | 0bf894b3825a13f92349f5ac0e80180891828115 | refs/heads/main | 2023-01-29T19:02:15.376072 | 2020-12-13T17:21:38 | 2020-12-13T17:21:38 | 318,951,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | # Generated by Django 3.1.3 on 2020-12-06 12:02
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Committee... | [
"yashpatel19@users.noreply.github.com"
] | yashpatel19@users.noreply.github.com |
bbdba525d199606ba340c0a5217998203f805593 | df6c141f5fb53c093b75da13275576728d40cb6c | /tests/core/parse/test_parse_delimited.py | 0259f7b44c53a32886d111e2a8987d9e7d35ef1b | [
"MIT"
] | permissive | conormancone-cimpress/mygrations | 3adee758dc5b9f8c0abb3e097a7d7146042696bf | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | refs/heads/master | 2022-04-03T20:55:54.892085 | 2020-02-18T11:31:24 | 2020-02-18T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import unittest
from mygrations.core.parse.rule_delimited import rule_delimited
class test_parse_delimited(unittest.TestCase):
def get_rule(self, name, separator, quote, literal):
return rule_delimited(
False, {
'name': name,
'separator': separator,
... | [
"cmancone@gmail.com"
] | cmancone@gmail.com |
2d2a5a61e1d80605185c3610110c4d5266d6ad6a | 4f7f8d1267bc2f88a5e62db9217a1f510aa2355d | /blog/urls.py | cba2b060bfb8e5aaf5b4073f67f85a97ba7f8dd8 | [] | no_license | anas4488/Blog_App | 27cf98fcce95e05e707ed9e03d04ffc8a501ba03 | c67a4f4eeaf6854608d9f66a5ab7ec8435e7590b | refs/heads/main | 2023-07-03T12:23:20.006659 | 2021-07-30T18:14:54 | 2021-07-30T18:14:54 | 358,335,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.urls import path
from . import views
from .views import (PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView
)
urlpatterns = [
path('', PostListView.as_view(), name='blog-home'),
path('user/<str:username>', UserPostListView.as_view(),... | [
"anassayed63@gmail.com"
] | anassayed63@gmail.com |
20532f69277dd715738c649a686226aa8495c99f | 858dc8025ebe61aee29917a530f2a2e70fc0eded | /Problem3L3.py | 8a0f9104e34af9e64ad626f2ee3488b786842cca | [] | no_license | canyoufeelme/U4-L3 | d128360284253ee731f5010ff9c45107e3ce556b | 14e05db87b0928466c90e84c167325c5e4747d14 | refs/heads/master | 2020-04-20T21:50:14.487421 | 2019-02-04T17:46:54 | 2019-02-04T17:46:54 | 169,120,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | for x in range(-5,6):
y = -2 * x ** 2 + 4 * x - 3
print('(' + str(x) + ',' + str(y) + ')')
| [
"noreply@github.com"
] | canyoufeelme.noreply@github.com |
4afd9db3c20c78f65e28ad0120b567483c62503a | 6c6fd06edd2cb7b6a1c25990bdb64f842b89cb5e | /Double_slit_orange1.py | 7f9e43b142a4e381b9852d5c56062b3e5bc0a464 | [] | no_license | steveLim0928/Diffraction_Animation | 8833b11d0b57f089a306f177fa5dc620da11389c | 00d6b9d3adae118582f494e6870c5d90da936e86 | refs/heads/master | 2020-05-14T15:06:11.164176 | 2019-04-18T03:04:12 | 2019-04-18T03:04:12 | 181,845,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,968 | py | import DS_Colour_gradient2
import Tkinter
# functions for the animation items
# gap function
def barrier(canvas, gap_size, gap_width):
global width, above_gap, below_gap
width = gap_width / 2
above_gap = 170 - width - 2 * gap_size
below_gap = 170 + width + 2 * gap_size
canvas.create_rectangle(250,... | [
"noreply@github.com"
] | steveLim0928.noreply@github.com |
f2371f9dde81ea8197eea23b216630c67d818e85 | e984812ab56f50a14979d72222e3a6e011789324 | /python/LambPlot/plotConfiguration/WH_SS/Full2017nanov6/aliases.py | bc1ec4edbc864bc2f4c9a200c17c2cae143dbd7c | [] | no_license | LambdaFramework/LambdaNano | b3348addb299d48d60a0f5a8516acdd732c6f5c1 | fa50e69dace802dcc07fa3e0f977f49e879a8809 | refs/heads/master | 2021-07-06T07:17:06.130973 | 2020-12-07T21:30:40 | 2020-12-07T21:30:40 | 208,898,103 | 0 | 2 | null | 2019-10-04T08:16:01 | 2019-09-16T21:06:42 | Python | UTF-8 | Python | false | false | 10,866 | py | import os
import copy
import inspect
from samples import samples
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # ggH2016
configurations = os.path.dirname(configurations) # Differential
configurations = os.path.dirname(configurat... | [
"siew.yan.hoh@cern.ch"
] | siew.yan.hoh@cern.ch |
a862bef63fd8cf5de6ff633adffa400604f085e3 | 697e0bd275a475d04f43f739ac3ddcbd5296efb0 | /src/Character_Detection/train_characters.py | b31e44962cb0bf19489c91b4ff275268c5d717f4 | [] | no_license | edgarmkhitaryan/Plate-Detection | 610b2fca47ab06dc6750eef8924d26619ca177af | 903808d880735f4083136f9bf97ff2a2a8e88059 | refs/heads/master | 2022-12-31T05:28:37.151454 | 2020-10-25T11:14:43 | 2020-10-25T12:48:57 | 307,061,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import glob
import numpy as np
from os.path import splitext, basename, sep
from keras_preprocessing.image import load_img
from sklearn.model_selection import train_test_split
from tensorflow.keras.preprocessing.image import img_to_array
from sklearn.ensemble import RandomForestClassifier
import pickle
# TODO: RUN WHE... | [
"edgarmkhitar777@gmail.com"
] | edgarmkhitar777@gmail.com |
9e504d7dd66ccd0575bff95f0a206ed6d2fc0710 | aafff9731c4fdc6d8256cb8b346da2225a7366e4 | /codeplus/src/배열돌리기_Q16935.py | 6af16d0bacec11c0c87ecb5282b0dd569515d1f0 | [] | no_license | omakasekim/algorithm_log | 11b4ed50036de6979d349aaad1e44b6d0cb3d739 | d8cbdf4ac8d31b6609a441ba6263071a69a530fc | refs/heads/master | 2023-07-15T19:08:21.432587 | 2021-08-28T11:18:25 | 2021-08-28T11:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | def operation1(a):
n = len(a)
m = len(a[0])
ans = [[0]*m for _ in range(n)]
for i in range(n):
for j in range(m):
ans[i][j] = a[n-i-1][j]
return ans
def operation2(a):
n = len(a)
m = len(a[0])
ans = [[0]*m for _ in range(n)]
for i in range(n):
for j in ra... | [
"noreply@github.com"
] | omakasekim.noreply@github.com |
eaa935ac6cd13601e232500f22e476bf6d40241e | 67be2ca55026ef51478cec5c01b97cdab64c7cb1 | /pyqtdemos/mytest8.py | f9139f3c236c47cf578a715d7635c7e481dd578f | [] | no_license | piglite/vsgit | fd28430226d2c71ea4ca80df7ee1b0fe2c6960eb | 00113cba7bf7d3ec5b061b785d7f32deb224b482 | refs/heads/master | 2020-03-24T22:41:58.992345 | 2018-09-16T01:30:17 | 2018-09-16T01:30:17 | 143,094,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | #QWebView calling JavaScript
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtWebChannel import *
class MyObj(QWidget):
def __init__(self):
super().__init__()
def getstrvalue(self):
return '100... | [
"piglite@vip.sina.com"
] | piglite@vip.sina.com |
852d199f7c12251bdf4ba41ed58b38bd84b0baef | 576f54f16b5022263607ba2678a29fdca9975871 | /kyu 6/Calculate String Rotation.py | 05ca8fe80c33652acd904b881cbe62d70a786fd5 | [] | no_license | hussein343455/Code-wars | 5861abef3a1212289a83c351a86d161a62613b13 | b108941a23c8751e034277f43c7d38ae9458265f | refs/heads/main | 2023-05-31T11:04:14.582347 | 2021-07-01T07:31:19 | 2021-07-01T07:31:19 | 317,313,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # Write a function that receives two strings and returns n, where n is equal to the number of characters we should shift the first string forward to match the second. The check should be case sensitive.
#
# For instance, take the strings "fatigue" and "tiguefa". In this case, the first string has been rotated 5 chara... | [
"noreply@github.com"
] | hussein343455.noreply@github.com |
322de3c8b7f98c12cae9b2187ed1f5534871c3d7 | 8111ac3e8bf94a149dcd20625e2eae3acb398b60 | /6.py | 6be4db561a01e077e69c97403ef615361c59ff04 | [] | no_license | ParkKyungWan/0506homework | ab66ab5923728ac63eb3ad941b510baba034564d | f9d3203fb52e11eaa79f4a7e19e9634155b0d142 | refs/heads/master | 2022-06-10T16:40:59.204261 | 2020-05-06T15:41:40 | 2020-05-06T15:41:40 | 259,236,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | n = int(input())
제곱의합 =n*(n+1)*(2*n+1)//6
합의제곱 = n*(n+1)//2
합의제곱 *=합의제곱
print(합의제곱-제곱의합)
#1~n 까지 i^2의 합 = n(n+1)(2n+1)/6
#1~n 까지 i 의 합 = n(n+1)/2 | [
"pkw8117197@gmail.com"
] | pkw8117197@gmail.com |
c0eda41227ed6365f7984d500065a66cfb9ad2b5 | fe20c7d7589c2eab11b5c04468a5035421b292cc | /pipenv/vendor/tomlkit/items.py | 781e2e984322a3656460516be735af5ba0fead2b | [
"MIT",
"BSD-3-Clause"
] | permissive | Anthonymcqueen21/pipenv | 0043181731f49b4cbb1b5e37b9820d9902ca9aae | 3ce8d7c6bb8007f93f011bd0a7c32b3e977d379f | refs/heads/master | 2020-04-04T22:32:57.421827 | 2018-11-05T14:41:05 | 2018-11-05T14:41:05 | 156,327,730 | 2 | 0 | MIT | 2018-11-06T04:53:11 | 2018-11-06T04:53:11 | null | UTF-8 | Python | false | false | 29,080 | py | from __future__ import unicode_literals
import re
import string
from datetime import date
from datetime import datetime
from datetime import time
import sys
if sys.version_info >= (3, 4):
from enum import Enum
else:
from pipenv.vendor.backports.enum import Enum
from ._compat import PY2
from ._compat import d... | [
"dan@danryan.co"
] | dan@danryan.co |
7ad6c6d321f2fae141385b3cf7783ebcb1fe5905 | a94a7dc3fb7dde091cdfe07092af75d73699265a | /runcase.py | e7cf4731be5aaaee9889b98d92d5891cf50ed6f2 | [] | no_license | accelerate-123/helloworld | 013fe5b342a1aa4d0558cd93b533580170704d42 | bffa573f19c6ca57dcf0f0d2ff3043b8ddf386ff | refs/heads/master | 2020-12-02T07:48:25.652321 | 2017-07-10T05:40:34 | 2017-07-10T05:40:34 | 96,728,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!/usr/loca/bin/python3
# -*- coding:utf-8 -*-
from HTMLTestRunner import HTMLTestRunner
import time,sys
import unittest
sys.path.append('./case')
test_dir='./case'
discover=unittest.defaultTestLoader.discover(test_dir,pattern='test*.py')
if __name__=='__main__':
now=time.strftime("%Y-%m-%d %H_%M_%S")
filename='.... | [
"accelerate_123@126.com"
] | accelerate_123@126.com |
e1d9f332e66ae0e57e5d025aa4fcc983d194afbf | f43fe0f97b65a39c0d540bb50dd82347650efae9 | /auctions/migrations/0005_auto_20210318_1117.py | 49244cc188f583c782a84860227b0849ab5e7c71 | [] | no_license | vkpoladi/CS50wProject2 | 3dede1c9c01f05c0c0ce541b8c008d08a36014a4 | c074e3a24fbc094fe6e3d267ed1fdab86a06a1e3 | refs/heads/main | 2023-03-22T02:20:56.822452 | 2021-03-19T17:26:21 | 2021-03-19T17:26:21 | 348,515,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Generated by Django 3.1.7 on 2021-03-18 16:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0004_auto_20210317_2142'),
]
operations = [
migrations.RenameModel(
old_name='bid',
new_name='bid_entry',
... | [
"vkpoladi@seas.upenn.edu"
] | vkpoladi@seas.upenn.edu |
96e148bc4a0214e66c46be3fb70e8b07f9f28a1b | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /tools/misc/dedup.py | b45b5fdcaa724397e39049fcdfd692a60aaaf159 | [] | no_license | xprime480/projects | c2f9a82bbe91e00859568dc27ae17c3b5dd873e3 | 3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226 | refs/heads/master | 2020-04-27T03:51:29.456979 | 2019-04-12T14:34:39 | 2019-04-12T14:34:39 | 174,037,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | #!/usr/bin/python
class Deduper(object) :
def __init__(self) :
self.lines = {}
self.count = 0
def addLine(self, line) :
self.count += 1
self.lines[line] = self.count
def getLines(self) :
lineListWithIndex = [(index,line) for line,index in self.lines.items()]
... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
92be6a90a8d08a32eb2364b4a4ced824a6662da4 | c8eefec424480eff04f246514a157543b44c5f67 | /pakcinemas/wsgi.py | dfcefff80b35712ba358beb47020ce2fa390be9a | [] | no_license | AhmerArif/pak-cinemas | e99ac82b2be14be3cacbb0293816c8da7b6af8c3 | d7a6c201ec6f08d59de59b7b38b1f5e8df67d767 | refs/heads/master | 2020-05-19T12:52:48.649315 | 2013-10-10T21:27:35 | 2013-10-10T21:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | """
WSGI config for pakcinemas project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION... | [
"ahmerlaptop@ubuntu.(none)"
] | ahmerlaptop@ubuntu.(none) |
2be1afee1fd974763e3f74064719560ce147d969 | ccaaba3fce27ce0a53cb5af47fd5e2fce95692c2 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/spanner/v1/spanner_v1_client.py | bb097a3ac7a0b375bd29fb4aca373d5ec9734f7e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/deep-learning | f45d47df924709c43e9d114704e94cd7a703d2e1 | 071be96019c2eab2bf440e718e29bd63508c107e | refs/heads/master | 2022-11-26T01:11:33.969725 | 2019-12-17T06:24:36 | 2019-12-17T06:24:36 | 282,428,497 | 0 | 0 | null | 2020-07-25T11:16:57 | 2020-07-25T11:16:56 | null | UTF-8 | Python | false | false | 59,062 | py | """Generated client library for spanner version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.spanner.v1 import spanner_v1_messages as messages
class SpannerV1(base_api.BaseApiClient):
"""Generated client librar... | [
"justwjr@ucla.edu"
] | justwjr@ucla.edu |
001fc0ab71eba219ff3cef87e39357535da4f5e5 | 6e1f19c716a67cb29c71344abe09e0db0cb7eb92 | /MovieBox-backend/node_modules/fsevents/build/config.gypi | 07e98e45849d4d2ffc8516fecada89c22c57d483 | [
"MIT"
] | permissive | oneariaaa/MovieBox | 52691d076b15f06bc14b6883eb3a6e3dd565660e | f31d99adbd5d6ea45427a5e643efa92bde30db01 | refs/heads/main | 2023-04-29T03:31:50.629517 | 2021-05-20T04:20:57 | 2021-05-20T04:20:57 | 369,076,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"59942516+oneariaaa@users.noreply.github.com"
] | 59942516+oneariaaa@users.noreply.github.com |
bc63d9df8de275c7b55a3f2cf7c6c7e7545a3856 | 159ae5e0d6725fcfc629638fc5f6a1c5a0f99e4d | /job_analytics/urls.py | 93c32e885db4063e58c912b2d65673da4c150ffb | [] | no_license | sVujke/django-job-analytics | 535e0fa6c23a78e5db275f39c0726cb91e8199dc | 82eb929ed0f6b4724526ffb06ef10a45a85ad7e6 | refs/heads/master | 2021-01-20T21:06:47.635782 | 2016-08-27T13:15:03 | 2016-08-27T13:15:03 | 65,421,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | """job_analytics URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"stefanvujovic93@gmail.com"
] | stefanvujovic93@gmail.com |
85d23f3f9de6899cecf478845516c358199726c2 | 3314928b8713f5ed414c9021870757ea611ecdb7 | /naru4app/views.py | dfea39b604326620edd260187a7d4bbcd61cd26f | [] | no_license | narayanmore/more | 33f6cd592e75e0c06f50cfc19a0eebd7df1d02ca | c853be09a7200d3c25e9934b7071c79e0b3f6e22 | refs/heads/master | 2023-08-04T16:49:20.820122 | 2021-09-08T04:32:05 | 2021-09-08T04:32:05 | 404,036,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_protect
@csrf_protect
# Create your views here.
def info(request):
res=render(request,'naru4app/naru4app.html')
return res
| [
"narayanmore2019@gmail.com"
] | narayanmore2019@gmail.com |
481366b4ed79ce490dd3f6c4e8e0913f760fd9bb | b96d4479c86b971a23d20854000aecd6e1f8ce0a | /audit/mixins.py | 1c261b7a7072d808856ef448bae880fab709c7f9 | [] | no_license | dbsiavichay/invenco | 0eb3d74e8403dbed9d4d9459bd25c8ae107368fe | 11e06d1ae694f9ffc158400fc63f4b81f1807875 | refs/heads/master | 2022-11-29T21:08:05.075194 | 2019-07-23T14:06:51 | 2019-07-23T14:06:51 | 92,068,624 | 1 | 0 | null | 2022-11-22T01:15:08 | 2017-05-22T15:22:30 | JavaScript | UTF-8 | Python | false | false | 864 | py | # -*- coding: utf-8 -*-
from django.contrib.contenttypes.models import ContentType
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
from django.utils.encoding import force_unicode
class AuditMixin(object):
def save_log(self, user, message, ACTION):
log = LogEntry.objects.create... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
808d060c64c007cbf5ccbed2a10e6f19c169a93e | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.56/3/1569573341.py | 7861b0d7864d83874341994b8d4a4c9183986b35 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import functools
import typing
import string
import random
import pytest
def leap(jahrzahl: int) -> bool:
'return True if the given year is schaltjahr and false if not'
if jahrzahl > 1582:
if jahrzahl % 100 == 0 and jahrzahl% 400 != 0:
return True
else:
return False
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
cc3f3bdd7b7d3c7b6073fc600dab76adaa827007 | 0dd881b86146eff46a99e3100a12addcb5b1bde9 | /No701 Insert into a Binary Search Tree.py | bf808a212bff8626fffb83d0862a468224faf119 | [] | no_license | BaijingML/leetcode | 8b04599ba6f1f9cf12fbb2726f6a1463a42f0a70 | 0ba37ea32ad71d9467f73da6f9e71971911f1d4c | refs/heads/master | 2020-03-22T05:07:17.884441 | 2020-01-10T12:13:54 | 2020-01-10T12:13:54 | 138,399,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def insertIntoBST(self, root: TreeNode, val: int) -> TreeNode:
if not root:
return root
if val < root.val:
... | [
"2670871693@qq.com"
] | 2670871693@qq.com |
cf95ce202e330888c87c53b32e9ff1b79992c185 | 2fd585acfd13f930fccc95a813d49cf2c0973708 | /jupyterhub/jupyterhub/singleuser.py | c90972b5f48bda573b1a4c616938f143826a0c8c | [
"BSD-3-Clause"
] | permissive | deep9c/deepcloud-react | b0c4b681593e33e07146e26aec0e6eaf545a8c6a | 6d2e60fdd2eb83f22ca0672cb92dd63bf9acf8ba | refs/heads/master | 2020-12-02T21:08:55.881229 | 2017-08-28T04:44:39 | 2017-08-28T04:44:39 | 96,262,296 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,781 | py | #!/usr/bin/env python
"""Extend regular notebook server to be aware of multiuser things."""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import os
from jinja2 import ChoiceLoader, FunctionLoader
from tornado import ioloop
from textwrap import dedent
try:
... | [
"deep9c@gmail.com"
] | deep9c@gmail.com |
ab2368e353ecfb086908d5635656a7bd22fb9cbb | 5f67c696967456c063e5f8a0d14cf18cf845ad38 | /archiv/_python/py4inf/xml1.py | e71260c5a8b2930fed02fa39bbc048217dc8cb67 | [] | no_license | wuxi20/Pythonista | 3f2abf8c40fd6554a4d7596982c510e6ba3d6d38 | acf12d264615749f605a0a6b6ea7ab72442e049c | refs/heads/master | 2020-04-02T01:17:39.264328 | 2019-04-16T18:26:59 | 2019-04-16T18:26:59 | 153,848,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import xml.etree.ElementTree as ET
data = '''
<person>
<name>Chuck</name>
<phone type="intl">
+1 734 303 4456
</phone>
<email hide="yes"/>
</person>'''
tree = ET.fromstring(data)
print('Name:',tree.find('name').text)
print('Attr:',tree.find('email').get('hide'))
| [
"22399993@qq.com"
] | 22399993@qq.com |
47bb6c33763721610d5039c1a435da29df7e37a6 | 267b32b5e6c20ee6e9efd8a2eca1ed49bbeec0c2 | /tests/test_generator.py | 9ba48798bd33e702f6a591a987a7c36496b91298 | [] | no_license | sanakthiri90/Firstpipeline | 97ace99755ff90d1646d7f76f96da015713ea29d | 866c48ca1828d6a1fac6eef20fe346200ffbf0db | refs/heads/master | 2023-06-16T13:11:49.054769 | 2021-07-15T15:10:54 | 2021-07-15T15:10:54 | 386,329,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py |
import unittest
import os, sys
dir_path = os.path.dirname(os.path.realpath(__file__))
parent_dir_path = os.path.abspath(os.path.join(dir_path, os.pardir))
sys.path.insert(0, parent_dir_path)
from buzz import generator
def test_sample_single_word():
l = ('foo', 'bar', 'foobar')
word = generator.sample(l)
a... | [
"sanatest90@gmail.com"
] | sanatest90@gmail.com |
798f3f01c4700bce6254f9f04ab637fc0da7fffc | 01b77be351755b7f2b49d40744751cf22f3953cf | /tools/json_schema_compiler/schema_bundle_generator.py | c587bbc3f8acca52f8b482df00250a9f5101e28e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | bwahn/Havana | 4159876f98850fbfe873ccaaa3dc38739537e9f3 | 5e8bc991ea7e251e98efb6e54e0b8573e5503aa6 | refs/heads/master | 2020-05-31T21:40:08.597468 | 2013-09-03T15:40:14 | 2013-09-03T15:40:14 | 12,556,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,060 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import code
import cpp_util
import json
import os
import re
# TODO(miket/asargent) - parameterize this.
SOURCE_BASE_PATH = 'chrome/common/extensions/ap... | [
"BW@BW-PC.(none)"
] | BW@BW-PC.(none) |
7923e0d4e6524bc8d6329971c1e892fc33f5efa7 | ea99544eef7572b194c2d3607fa7121cb1e45872 | /apps/support/migrations/0003_auto_20190407_1007.py | abf7098fd524718ce25631fdde2aa89a1d5d749a | [] | no_license | ash018/FFTracker | 4ab55d504a9d8ba9e541a8b682bc821f112a0866 | 11be165f85cda0ffe7a237d011de562d3dc64135 | refs/heads/master | 2022-12-02T15:04:58.543382 | 2019-10-05T12:54:27 | 2019-10-05T12:54:27 | 212,999,035 | 0 | 0 | null | 2022-11-22T03:58:29 | 2019-10-05T12:53:26 | Python | UTF-8 | Python | false | false | 470 | py | # Generated by Django 2.2 on 2019-04-07 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('support', '0002_customersupport_user'),
]
operations = [
migrations.AlterField(
model_name='customersupport',
name='st... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
71cf4903d88e0badc4a53fd95106d5533ca2406c | 1dc086115cca625bc7fbf527e33c903fe6144e37 | /chris_ulanowicz/assignments/django/courses_assignment/apps/courses/urls.py | 0865f7dbe4202609a51367bc0a33a027650885ef | [] | no_license | CodingDojoDallas/python_march_2017 | cdf70587dc6f85963e176c3b43057c7f7a196a97 | 31f9e01c011d049999eec4d231ff1a4520ecff76 | refs/heads/master | 2021-01-17T14:34:33.601830 | 2017-05-15T20:05:02 | 2017-05-15T20:05:02 | 84,091,494 | 4 | 14 | null | 2017-05-15T20:05:03 | 2017-03-06T15:49:18 | Python | UTF-8 | Python | false | false | 359 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^courses/create$', views.create),
url(r'^courses/destroy/(?P<id>\d+)$', views.destroy),
url(r'^courses/delete/(?P<id>\d+)$', views.delete),
url(r'^courses/edit/(?P<id>\d+)$', views.edit),
url(r'^course... | [
"src3collector@gmail.com"
] | src3collector@gmail.com |
b6e0e7ca8e024e12ae9b8422efd43203de6fbeb3 | 960c9e901cf42a6dcafd68ec8f92d0a70a56e426 | /config/routes.py | 108d7b664765e93d3d139083e87b0325b3d3e4ce | [] | no_license | Appmunki/Penny_Backend2 | bbff373a7f53628ae28d9605ecb4e57210461a42 | 239e4836f5f177bf93056629bdfb84d099087794 | refs/heads/master | 2021-01-15T10:41:19.270664 | 2016-03-30T19:38:29 | 2016-03-30T19:38:29 | 55,091,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from app.controllers.login_handler import LoginView
from app.controllers.logout_handler import LogoutView
def init_app(app):
LoginView.register(app, route_base='/login')
LogoutView.register(app, route_base='/logout')
| [
"deon@appmunki.com"
] | deon@appmunki.com |
77e62b1f7d636ec0a44364c49c21e7b0f313eeec | 20b2af5e275469261d95d4441303d567b5c03bba | /tools/mate/mate/lib/calibration/calib_motion_generator.py | 5740801c98d05b32e1b5f3905d2a02c8aaa8d162 | [
"BSD-2-Clause"
] | permissive | humanoid-robotics-htl-leonding/robo-ducks-core | efd513dedf58377dadc6a3094dd5c01f13c32eb1 | 1644b8180214b95ad9ce8fa97318a51748b5fe3f | refs/heads/master | 2022-04-26T17:19:00.073468 | 2020-04-23T07:05:25 | 2020-04-23T07:05:25 | 181,146,731 | 7 | 0 | NOASSERTION | 2022-04-08T13:25:14 | 2019-04-13T09:07:29 | C++ | UTF-8 | Python | false | false | 2,362 | py | '''
Generate head motion parameter set for the Nao.
__author__ = "Darshana Adikari"
__copyright__ = "Copyright 2018, RobotING@TUHH / HULKs"
__license__ = ""
__version__ = "0.2"
__maintainer__ = "Darshana Adikari"
__email__ = "darshana.adikari@tuhh.de, darshanaads@gmail.com"
__status__ = "Alpha"
'''
import json
import... | [
"rene.kost.951@gmail.com"
] | rene.kost.951@gmail.com |
301498f89b89d64d5a6b050f084e33d3e27e9569 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/CyberSportUnitsListView.py | 37f7802efad2cd66a095df4f913fd0d67f3ec9e6 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,519 | py | # 2017.02.03 21:49:44 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/CyberSportUnitsListView.py
from UnitBase import UNIT_BROWSER_TYPE
from gui.Scaleform.daapi.view.lobby.rally.rally_dps import ManualSearchDataProvider
from gui.Scaleform.daapi.view.meta.CyberSp... | [
"info@webium.sk"
] | info@webium.sk |
6f54db2c2a27bbbed45e99f0ba3dba1447988b22 | b9571f2d565e16143fb79407ef57cea92227aaa1 | /basic/3psychopy-color-gamma.py | 6f33d18b35f70097fdda04a06464080377752252 | [
"MIT"
] | permissive | Mrswolf/psychopy-tutorials-for-BCI | a7cc152847fec51bf207d4e7bb59122bc3db9a08 | 3fdb8152af136d30839be24821c658dd31bca6ea | refs/heads/master | 2020-08-31T01:46:52.567986 | 2019-10-30T14:45:32 | 2019-10-30T14:45:32 | 218,549,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # -*- coding: utf-8 -*-
"""Color and Gamma.
"""
| [
"swolfforever@gmail.com"
] | swolfforever@gmail.com |
aa41d99275e2e0189aec98d2e3588354341bd5e2 | ec7051574393f7d8669448792060aa8da231bab1 | /gis_3ban_2/settings/base.py | ab5d85a64d43a721ff4b723989709a120874549f | [] | no_license | lapera00/gis_3ban_2 | 3fdc02f0ba40b405cc63b09db8fdeedda681f178 | 4b824b6e44c0d9e4c1ecb84a99530dc41741af72 | refs/heads/master | 2023-08-14T09:57:08.292889 | 2021-10-07T00:23:39 | 2021-10-07T00:23:39 | 382,190,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | """
Django settings for gis_3ban_2 project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
... | [
"pelor7317@likelion.org"
] | pelor7317@likelion.org |
410054c7d49eb4fa18c33fc8e799b007a006b702 | 873257c67e1bb2756053f88c4f9331d14c00424b | /NGC5257/RotationCurve/Bbarolo/12CO21/test2/run3/pyscript.py | fabc02448b4e0be15da32c400bb493e108e642fd | [] | no_license | heh15/Arp240 | 64058dd9c84653e3a7035e5ee088c55a6b4119e3 | cae7bf59ebaaa9f69d2204a1be522f4c0b76d7f7 | refs/heads/master | 2020-08-27T12:14:36.002105 | 2020-06-19T00:42:34 | 2020-06-19T00:42:34 | 156,797,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,701 | py | import numpy as np
import os
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from matplotlib.colorbar import ColorbarBase
from astropy.io import fits
from astropy.visualization import LinearStretch, PowerStretch
from astropy.visualization.mpl_normalize import ImageNormal... | [
"heh15@mcmaster.ca"
] | heh15@mcmaster.ca |
f00fe9f24b7f590fb1a7de3a9fae4f9da18bf2ff | 21e1d00c48c1732cc44af077572299831b93ffc2 | /1000_PROBLEMS/SimplePythonPrograms/Problem-13.py | 414ab5620f03a8d4311ccd9c1a6e407e2cce8267 | [] | no_license | GolamRabbani20/PYTHON-A2Z | 7be72041407e4417359b3a610ced0919f3939993 | 7c89223f253aa559fa15caacb89c68e0b78ff915 | refs/heads/master | 2023-05-09T00:43:03.012963 | 2021-05-26T07:56:56 | 2021-05-26T07:56:56 | 317,953,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #Python Program to Count the Number of Digits in a Numbe
x=int(input("Enter a number:"))
s=0
while x>=1:
rem=x%10
s+=1
x=x//10
print("Total number of digits:",s) | [
"mdgolamrabbani96@gmail.com"
] | mdgolamrabbani96@gmail.com |
9a6f256bed44c5265b614f51eff8c016ab948741 | 491c0c055332597e6d66d1bf410cb8f4608946f9 | /main.py | 0a8ca3dc4611a985602faceac7596e35b24878d1 | [] | no_license | Avanta8/Tank-game | 087400213fa766fdb58833f9e69bac5c22d6e9c8 | 9eb3bce1f15ea8a37f9c7d24a868d20da9389613 | refs/heads/master | 2020-03-29T03:49:36.314199 | 2018-09-19T19:40:21 | 2018-09-19T19:40:21 | 149,502,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import play
import screens
class Main:
def __init__(self):
self.scenes = {'spsurv': play.SpSurv(controller=self),
'start': screens.Start(controller=self),
'play': screens.SelectPlayers(controller=self),
'sp': screens.SpMenu(... | [
"noreply@github.com"
] | Avanta8.noreply@github.com |
9f7de23d2807fd9f36a23de0445e73de3b8608b5 | 3c05b3e18366734b5be9f0380d58c85f61168147 | /streams/blocks.py | 8dd3a19c9a6dc8248cc00a6c62691053a6cde6f9 | [] | no_license | codersofcolour-sites/vos-foundation | 13dc70a475660d6cfa6c34a261dcdeef2c3db102 | 2a218059bd215882089758e7ecc1d006f7acd539 | refs/heads/master | 2023-03-06T19:36:22.122936 | 2021-02-15T06:13:13 | 2021-02-15T06:13:13 | 283,852,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | from wagtail.core import blocks
from wagtail.embeds.blocks import EmbedBlock
from wagtail.images.blocks import ImageChooserBlock
class goFundMeBlock(blocks.StructBlock):
gofundme_page_link = blocks.URLBlock(help_text='Add gofundme donation page link.')
class Meta:
template = 'streams/gofundme_block.html'
i... | [
"aabdulmajeed.isa@gmail.com"
] | aabdulmajeed.isa@gmail.com |
eedcd517d04a328181858d3f52962dc429bf3e65 | e8bd4f75277be0f781e230f89e421e89291e48d9 | /tests/undefinedTests.py | c199bbc1294805e509ce5286639a8781383a2c3b | [
"Apache-2.0"
] | permissive | softitova/rubymine-is2018 | 34b1a1e70b58acd3d169124c9190236c2faf284a | 7cd9ed62eb61d7bd5d60ab68d36c817042cecd7b | refs/heads/master | 2020-03-12T07:23:13.445089 | 2018-04-24T18:31:30 | 2018-04-24T18:31:30 | 130,505,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | a = 0
b = None
if a + 1 == b:
pass
# -- false --
if 1 - 1 + 1 == 2 - 2 + 1 and False and True:
pass
if not True:
pass
if True and True:
pass
if True and False:
pass
if not True and True:
pass
if not (False or True):
pass
# -- true --
if 1 - 1 + 1 == 2 - 2 + 1 and False or True:
... | [
"sof_titova@rambler.ru"
] | sof_titova@rambler.ru |
04995a89bb003a2f3c864ebc85612b418f361465 | 7c5bb905d57fcccad25a84f64fc75addb6c1f5b5 | /app/migrations/versions/98932c1ae504_.py | 51768fb745d63e675f66b739fc72dde3c371464f | [] | no_license | wtachau/todo-server | aeb7d2f2bfd6ae0baa1be58855893fbc96ed1597 | da4ac0c7ecf40c0b317720d9656ba9ad4fbcee9f | refs/heads/master | 2022-02-20T08:11:24.727992 | 2017-12-31T00:59:39 | 2017-12-31T00:59:39 | 112,114,934 | 0 | 0 | null | 2019-10-21T15:37:48 | 2017-11-26T20:39:58 | Python | UTF-8 | Python | false | false | 3,118 | py | """empty message
Revision ID: 98932c1ae504
Revises:
Create Date: 2017-12-09 19:16:41.843080
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '98932c1ae504'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gener... | [
"wtachau@gmail.com"
] | wtachau@gmail.com |
710e4cf5413495a98e9d6559762587b1da1f940b | a340397d168ff0f263a849ba4912ba6d1dd76784 | /glucometer.py | 8849764112673eb220721a3aa823cc17ad6a3d80 | [] | no_license | praveenydv/Inter_IIT_techmeet2018 | 9e8da464abc61e1a77f31e36cbc54de281bb92fd | f26d0087ac7c83acb1e8d18380a2e0fb7567a7a1 | refs/heads/master | 2020-04-15T23:39:03.880152 | 2019-01-11T17:24:07 | 2019-01-11T17:24:07 | 165,112,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import serial
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import numpy as np
import scipy
from scipy import signal
from drawnow import *
arduino=serial.Serial("/dev/ttyUSB0",timeout=1)
plt.ion()
data1 =[]
data2 =[]
maxdata=0
mindata=1023
time=1
x=[]
y1=[]
y2=[]
count=0
def makefig():
plt... | [
"praveenmeerpur7@gmail.com"
] | praveenmeerpur7@gmail.com |
2ddac020006bd61bfc6a0f3bcf0f6cf0d27ae7ba | 9b08ef5e918be3464c4433a93e605583b8ef805b | /TitanicSurvivorPredict/src/main.py | 3f2d352f0fcc89c44253ed4b0431925f133af621 | [] | no_license | b-bad/Pattern-Recognition-homework- | 25143f178a638712db2ee2ee6c202a45af7f1d21 | 7df8e7770b6fbfd8e27185475893b39872c79b42 | refs/heads/main | 2023-08-22T16:00:02.076827 | 2021-10-10T06:42:14 | 2021-10-10T06:42:14 | 410,556,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # 要添加一个新单元,输入 '# %%'
# 要添加一个新的标记单元,输入 '# %% [markdown]'
# %%
from naive_Bayes import NAIVE_BAYES
import pandas as pd
import numpy as np
# %%
train_data = pd.read_csv("../data/processed_train_data.csv")
train_data.head()
# %%
train_label = np.array(train_data["Survived"]).tolist()
train_data = np.array(train_data[[... | [
"515554152@qq.com"
] | 515554152@qq.com |
fe25676d6ab56aed8451a266acbdfdb8045015b9 | f070aae7dc6b67c16365a9d9f07aaaebab68d7bf | /todo/urls.py | f321d682e4f6c33e5da486c1257725f43b134c8b | [] | no_license | ibrahimrahimi/todo_app | cad47aabe07a966232c14bfc5fe916990f48b7ef | 4a12d09025d2e3b0b868ff167e167834c129487b | refs/heads/master | 2020-03-11T14:54:37.935356 | 2018-04-18T13:49:08 | 2018-04-18T13:49:08 | 130,068,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url('index', views.index,name='index'),
url('signup/', views.sign, name='signup'),
url('', views.home, name= 'home'),
url('addtask', views.add_task, name='add')
] | [
"38061603+ibrahimrahimi@users.noreply.github.com"
] | 38061603+ibrahimrahimi@users.noreply.github.com |
a2dce625a2f9f2cd0e30411bdbfc7ec2277792d5 | 601b8aa76cc86c159c2736107d0779e31a2a7c56 | /datacube/utils/__init__.py | c3cf7fd4d9f2b1a4b74d75f432eb6ed7d1a339a6 | [
"Apache-2.0"
] | permissive | PhilipeRLeal/datacube-core | 531b7156b777fa4b631b6af163f65473055a58d9 | 81bed714f2e5cb30a2492f1b0cf3397b79141c3a | refs/heads/develop | 2022-12-13T20:36:52.188166 | 2019-10-16T01:08:03 | 2019-10-23T02:45:40 | 217,332,524 | 2 | 0 | Apache-2.0 | 2022-12-08T01:08:59 | 2019-10-24T15:29:47 | null | UTF-8 | Python | false | false | 1,712 | py | """
Utility functions
"""
from .dates import datetime_to_seconds_since_1970, parse_time
from .py import cached_property, ignore_exceptions_if, import_function
from .serialise import jsonify_document
from .uris import is_url, uri_to_local_path, get_part_from_uri, mk_part_uri
from .io import slurp, check_write_path, wri... | [
"37929162+mergify[bot]@users.noreply.github.com"
] | 37929162+mergify[bot]@users.noreply.github.com |
b3ca451e8e658218a201dc1ecdc916337585cd7d | 53a7643811aa67c201821c41dcfae24a738e3709 | /PythonStudy/ex3.py | 8922a6f515927bb07dfb7b53cf784926b43d77f0 | [] | no_license | Baobao211195/python-tutorial | 50f39cc4c68c22cbb3cea011a37277785911fa10 | 1a15bbdbaafe5c01d773a24241b67a5f4a454ceb | refs/heads/master | 2023-03-15T17:22:13.258356 | 2020-01-05T14:47:53 | 2020-01-05T14:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | print(" i will now count my chicken")
# in va thuc hien bieu thuc 30/6 roi + 25
# o day vs python 3 mac dinh kieu gia tri la float
print("hens", type(25 + 30 / 6), 25 + 30 / 6)
print("oanh", 100-25*3%4)
print("now i will count the eggs")
print(3+2 +1 - 5 +4 % 2 - 1 / 4+6)
print("is it true that 3 +2 <5 -7 ?")
print(... | [
"oanhmrphamvan@gmail.com"
] | oanhmrphamvan@gmail.com |
625050230a56a5db973d2df08df0e229b8966776 | 41d82f1a4403e1349741963150dab653c72e8283 | /revisitop/compute.py | 8d2607805900a37e7fc9e82ae8057ee330d9e829 | [
"MIT"
] | permissive | LiuinStein/DOLG-instance-retrieval | 2dbd56166f44e1d16093f323dbdfcd5644d9062e | 790ae8cabfb00852bd7e49eab04c62120fe81d5b | refs/heads/main | 2023-06-29T20:43:17.461400 | 2021-08-03T09:45:28 | 2021-08-03T09:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | import numpy as np
def compute_ap(ranks, nres):
"""
Computes average precision for given ranked indexes.
Arguments
---------
ranks : zerro-based ranks of positive images
nres : number of positive images
Returns
-------
ap : average precision
"""
# number of ... | [
"547559398@qq.com"
] | 547559398@qq.com |
d674de047e942bbe36a6772eba088fa30005216e | 5fd61b128497575aba66cdd815e02417abf58a72 | /third.py | 3d0d92c12baeae94f054a6026695e16bcbc2132b | [] | no_license | siddhi-lab/siddhi_fromrepo | bd2e24505318ce08527cd5e41b128aed52f663cc | d24c8a70013a953b29fb3644b0006f6b6f0491d9 | refs/heads/master | 2023-04-01T08:58:14.337603 | 2021-04-09T21:09:50 | 2021-04-09T21:09:50 | 356,393,223 | 0 | 1 | null | 2021-04-09T21:09:51 | 2021-04-09T20:40:25 | Python | UTF-8 | Python | false | false | 17 | py | changed by swati
| [
"siddhi@gmail.com"
] | siddhi@gmail.com |
d781d5997441ee6c69829260ba75c376f48d5d57 | f5c1eb4e36c7bcece1080d71a57d4ee65b3c9818 | /models/review.py | dfce0d4494ef1241d1ce21bebb7907e86ddb9a25 | [] | no_license | mahdixabid/AirBnB_clone | c951acae9be46abca0160d4676aabdb38e74aa80 | 0c6270dd32e836b4cd7d9d9d4677d57b96ba994d | refs/heads/main | 2023-06-20T10:40:57.914179 | 2021-07-11T23:11:28 | 2021-07-11T23:11:28 | 384,458,046 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python3
"""
Review Module
"""
from models.base_model import BaseModel
class Review(BaseModel):
""" Review class"""
place_id = ""
user_id = ""
text = ""
| [
"noreply@github.com"
] | mahdixabid.noreply@github.com |
c28ad0ec744ae8ead4f31b08e8f521f68d9bf767 | efcc03cc28ac8244c1820ea961c8918d93d51680 | /Programs/PrintChar.py | 430c871f3efdaa94d0b05476335456c0c6898a5d | [] | no_license | DhavalLalitChheda/class_work | 2e2d2569f4b87de62e03eb8c07372b63432f3216 | a21a25d420ccf841a51d68f9123627a4b3285214 | refs/heads/master | 2021-05-03T07:42:34.304002 | 2018-02-07T02:58:18 | 2018-02-07T02:58:18 | 120,554,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | temp = input("Please enter a valid string: ")
index = len(temp) - 1
while index >= 0:
t = temp[index]
print(t)
index -= 1
| [
"dhavalc@uw.edu"
] | dhavalc@uw.edu |
7b634ac49720a83500d5c3d4ae8744731cfb46a0 | 59074f5f46c46ae74ad8ddea1d4cd7bd4e7ed06e | /vis_utils/simple_3dviz/tests/test_lines.py | 4ef5d87643a24ee31f5dfe4a4c41d372dcfe5746 | [
"MIT"
] | permissive | mbaradad/my_python_utils | 0fed19abe2ec8aef706b10e36d220ca99144674d | 721c4f3461ea6898d4bd7f86bc8fdebdd3f934e8 | refs/heads/master | 2023-08-21T13:05:53.019546 | 2023-08-14T19:28:49 | 2023-08-14T19:28:49 | 122,513,270 | 0 | 1 | null | 2023-02-07T20:54:46 | 2018-02-22T17:43:47 | Python | UTF-8 | Python | false | false | 495 | py |
import unittest
from cv2 import imwrite
import numpy as np
from simple_3dviz import Scene, Lines, Spherecloud
from simple_3dviz.window import show
class TestLines(unittest.TestCase):
def test_line(self):
points = np.array([[-0.5, 0.5, -0.5],
[ 0.5, 0.5, 0.5]])
color... | [
"mbaradad@mit.edu"
] | mbaradad@mit.edu |
cdde3cd4774156e8bc0eec5a73d9ce677aa6a345 | d12d1952d00c652083fd9d147e979df3a8d21014 | /index/migrations/0002_category_created_at.py | d958749359774f3c514afe79990759ed1f43b2d0 | [] | no_license | lemeshkoborys/k-art | 645a11275136df1238d3591a56e4f921ee32dcf3 | 510d0204cb68b0166ace245d446dfcd2cff0e04a | refs/heads/master | 2020-04-23T23:05:35.991369 | 2019-10-20T15:55:22 | 2019-10-20T15:55:22 | 171,523,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.2.5 on 2019-09-11 12:07
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('index', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='category',
n... | [
"lemeshko.borys@gmail.com"
] | lemeshko.borys@gmail.com |
3c52e7181ad0980c7ee4399392099fb884c48ba7 | a4a719e0141431d74e0a44e51a75de8327eda5a2 | /client_topology.py | 62eadafd6aebcaf0ec31e958cd22a4040e9ffa4b | [] | no_license | hundeboll/riddler | d9287be69f68299a07b01fc7047cf33dc6d10af9 | b82409855f4cd3a66f50a7d3e716e529b7b5d7d6 | refs/heads/master | 2021-01-02T09:38:00.140908 | 2015-05-11T20:39:39 | 2015-05-11T20:39:39 | 2,820,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | from PySide.QtCore import *
from PySide.QtGui import *
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
import matplotlib.pyplot as plt
import threading
import networkx as nx
import riddler_interface as interface
class NetworkGraph(object):
def ... | [
"martin@hundeboll.net"
] | martin@hundeboll.net |
d987894a3e4a7cb4cc1bbb4f3b166234897248ef | a92f3f51faba2f99dd418b43ab26525999994cd2 | /pprint_json.py | 8134a0be6f25a610639d0a9fb0f29b5b79b97fe6 | [] | no_license | rhcarvalho/typokiller | d4435995a9df1ab6db01bc41c7600ffe1f43d9f6 | e76b6471edd1ecc7fca670868b6bef9247bf1fc1 | refs/heads/master | 2020-05-17T07:55:42.544317 | 2017-03-05T15:09:59 | 2017-03-05T15:11:45 | 30,670,499 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | #!/usr/bin/env python
"""Quick and dirty command line helper to pretty-print JSON streams."""
import json, sys, collections
for line in sys.stdin:
print json.dumps(json.loads(line, object_pairs_hook=collections.OrderedDict), indent=2)
| [
"rhcarvalho@gmail.com"
] | rhcarvalho@gmail.com |
8908b8fa2ff41232d3c5815f01602cb3f2583d83 | 3003f19da2acca7acd95ecc23bea942d379ba91a | /First Week/Intermediate RPG.py | c4e1569bbb5d1145f99f551511f8cb6b5024298d | [] | no_license | s4fv4n/FantaCode-Training | 4c7b76882c355a5346d7fcadeda6179178a748c0 | 877ee8941bd29b06d989cc18976f44fb5097fa0d | refs/heads/master | 2020-04-03T01:52:29.075324 | 2018-02-04T14:26:33 | 2018-02-04T14:26:33 | 154,941,098 | 0 | 0 | null | 2018-10-27T08:10:33 | 2018-10-27T08:10:33 | null | UTF-8 | Python | false | false | 4,810 | py | import random
class Player:
name = ''
playerclass = ''
weaponname = ''
weapondamage = 0
hitpoints = 10
armorpoints = 0
exppoints = 0
def __init__(self, playername, classnum):
Player.name = playername
if classnum == 1:
Player.playerclass = 'Knight'
... | [
"zaad100p@gmail.com"
] | zaad100p@gmail.com |
4d00a92665d503a391ba2c6d9695fc807d185ad4 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch1712.py | 6fe76d7f548707cc2b35f37252628da0f72d23fc | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | BIG5 | Python | false | false | 1,116 | py | #!/usr/bin/env python
# -*- coding: cp950 -*-
# 載入wx模組
import wx
class myApp(wx.App):
def OnInit(self):
frame = myFrame()
frame.Show()
return True
# 定義myFrame並繼承wx.Frame類別
class myFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(
self,
None,
-1,
... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
9e1f01d3285bcc4f9dd8f689b7b39a32a83c2739 | b680c20eab57a0209167b1c313b43321e87e136c | /db.py | 930b43791116324bb1be7a0b81bd3dbd14344583 | [
"MIT"
] | permissive | enterlineconnor/ufc_events_discord | 4789e75b600dd19d504e47202d1c2a1f5af5ea71 | 7cc8e63dccaa0f39e3c4980504ab57cc4e2ca745 | refs/heads/main | 2023-07-16T15:16:02.793236 | 2021-09-07T02:20:03 | 2021-09-07T02:20:03 | 403,719,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import os
import creds
username = creds.db['username']
password = creds.db['password']
db_name = creds.db['name']
def backup_db():
os.environ["MYSQL_PWD"] = password
os.system('mysqldump -u '+username+' '+db_name+' > '+db_name+'.sql')
os.environ["MYSQL_PWD"] = 'token'
def load_db():
os.environ["MYSQ... | [
"enterlineconnor@gmail.com"
] | enterlineconnor@gmail.com |
817c3491a58e23cb778b7447be4db10d51e8b35a | 572236666850ab79611ed3b6da3aee3704f35afa | /leetcode/012/code01299.py | f80ad4123c95246d28fd005c3472c5d8540d2f42 | [] | no_license | denamyte/Python-misc | c9eee55232329299b7d12357579920c6517dbdd0 | 66fc2a9804868ad2408f1cfa3116b0901a950083 | refs/heads/main | 2023-08-18T12:33:40.256174 | 2021-10-23T21:54:28 | 2021-10-23T21:54:28 | 322,969,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | from typing import List
class Solution:
def replaceElements(self, arr: List[int]) -> List[int]:
"""
https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side/
"""
max_el, last_el = -1, -1
for i in range(len(arr) - 1, -1, -1):
max_el = ma... | [
"denamyte@gmail.com"
] | denamyte@gmail.com |
a4b4cf7d907ae028a1c2e6372fe13bc2ba30a25d | 6a58240cdfcacec18fbfc2a08d75288092cc6da1 | /data/HASOC/utils.py | 2c38470bf232fc56e074adaf1ac1d1e25942c2f5 | [] | no_license | airKlizz/germeval2021toxic | 132ae9de11bb85c79acbff3a756f8608e32a385a | 1be57a15509a76b1551c871e73619241499257fe | refs/heads/main | 2023-08-18T04:25:42.387320 | 2021-09-14T12:10:18 | 2021-09-14T12:10:18 | 369,182,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import pandas as pd
DATA_FILES = [
"data/HASOC/english_dataset.tsv",
"data/HASOC/german_dataset.tsv",
"data/HASOC/hindi_dataset.tsv",
]
df = pd.concat([pd.read_csv(DATA_FILE, sep="\t") for DATA_FILE in DATA_FILES])
print(df)
TEXT_COLUMN = "text"
LABEL_COLUMN = "task_1"
texts = df[TEXT_COLUMN].values.to... | [
"remi.calizzano@gmail.com"
] | remi.calizzano@gmail.com |
36126e676274f9bcf5632c6d396e9a8a43f02355 | 6295f7eb2a9a2032ef25137c43df378109f4d352 | /BlogProject/blog/forms.py | 63008ce342eb1f043153f019845f372806d546a1 | [] | no_license | yuvraj23/blogrepo | d2a30e435ddb60afd63dafab32aa35738538aa57 | 75acc2c858946b7b20b6f9c83fc1ced64dcba778 | refs/heads/master | 2022-04-27T19:08:53.270617 | 2020-04-28T05:47:06 | 2020-04-28T05:47:06 | 259,543,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from django import forms
class EmailSendForm(forms.Form):
name=forms.CharField()
email=forms.EmailField()
to=forms.EmailField()
comments=forms.CharField(required=False,widget=forms.Textarea)
from blog.models import Comment
class CommentForm(forms.ModelForm):
class Meta:
model=Comment
... | [
"yuvraj23@github.com"
] | yuvraj23@github.com |
da40eb8e7b8ddba55463d0faecbcba56f30e5d28 | b6e5e0298cd6375680aa6866d16ce19ba4844973 | /example1_3.py | c2dad97954e7b01db7a88cc1768edcf2c7d58373 | [] | no_license | cdsss/tensorflow-tutorial | ad54c37691606adcea9beef481d72e58b9709b31 | 04fde913a9c6b090e9d42373268bb652a3e766d6 | refs/heads/master | 2020-03-28T12:34:20.445202 | 2018-09-11T12:19:57 | 2018-09-11T12:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import tensorflow as tf
# 创建一个变量,初始化为标量0
state = tf.Variable(0, name="counter")
# 创建一个op,其作用是使state增加1
one = tf.constant(1)
new_value = tf.add(state, one)
update = tf.assign(state, new_value)
# 启动图后,变量必须先经过初始化(init)op初始化
# 首先必须增加一个初始化op到图中
init_op = tf.global_variables_initializer()
# 启动图,运行op
with tf.Session() as... | [
"noreply@github.com"
] | cdsss.noreply@github.com |
4c61dc4049fbcbe1c334683d41d0f02f25b646c1 | 87c69454346b1550da7da37f1b7ebfe5468b587c | /shell/python/python_projects/Python/Python/Script/odbchelper.py | d3820462852810dc2915741d3302aa20468b3052 | [] | no_license | hnlylmlzh/cs | 4305ae18d35d7fe774ae0ece263a68bea882ab6a | b45154053d46c3b3b1e912946d1acaa65e99089b | refs/heads/master | 2022-03-20T17:45:10.202053 | 2019-04-15T08:54:05 | 2019-04-15T08:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | def buildConnectionString(params):
"""Build a connection string from a dictionary of parameters.
Returns string."""
return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
def foo(debug = 1) :
'derermine if in debug mode with default argument'
if debug :
print 'in debug mod... | [
"sunyongjie1984@gmail.com"
] | sunyongjie1984@gmail.com |
9e80fc4a53ffcdc8226d7e22ad2bb7d1296a5022 | 19a1d406adc94d2907d35d601b505819e9a6df85 | /venv/bin/pip3.8 | b02f532e6092365cb5695cd4a610fbb4092fe623 | [] | no_license | AllanTumu/PythonUnitTestFramework | 8847c4b815febeb06cf5d62d045ea16bd8c36a73 | f755e888a3374180995eb7c2b58e6b3447481f05 | refs/heads/main | 2022-12-31T23:22:29.124939 | 2020-10-17T20:36:50 | 2020-10-17T20:36:50 | 304,901,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | 8 | #!/home/mea/PycharmProjects/PythonUnitTestFramework/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"allantumu1962@gmail.com"
] | allantumu1962@gmail.com |
dcfc35268ae1680c850da8c45eafe904726a95e9 | 5683e0be45bbd4c0eff0bc143e1fabb39e3dd2d1 | /data/management/commands/approve_chus.py | 43a7c66e3a6249109bcb4bc6c3b554e25b6dd116 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | permissive | SteveWaweru/mfl_api | be1e6b24a039553447dc6fdc23b588c4a6756a8f | 695001fb48cb1b15661cd480831ae33fe6374532 | refs/heads/master | 2023-05-29T04:27:35.421574 | 2021-10-27T06:07:10 | 2021-10-27T06:07:10 | 205,343,934 | 0 | 5 | MIT | 2023-05-15T00:38:30 | 2019-08-30T08:54:14 | Python | UTF-8 | Python | false | false | 397 | py |
from django.core.management import BaseCommand
from chul.models import CommunityHealthUnit
def approve_chus(chu):
chu.is_approved = True
chu.save()
class Command(BaseCommand):
def handle(self, *args, **options):
def approve_community_units():
for chu in CommunityHealthUnit.objects... | [
"steviewez@gmail.com"
] | steviewez@gmail.com |
fbee8c798cd7d44f148b6dfc4cb1800c034eff07 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sobriety.py | 5a609ca90c82239903ee659ab33783e0970f8b7f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py |
#calss header
class _SOBRIETY():
def __init__(self,):
self.name = "SOBRIETY"
self.definitions = [u'the state of being sober: ', u'seriousness: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.j... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
880d76a8841eb36314d7ac8abc2a8bd719d0e369 | 6da4aea43b527ba0e5958b8bad6afbbba361dd83 | /flight_schedule.py | a57346cd0ed0a48ae1adbcd63386a757649cfc3a | [] | no_license | COMPPHYS-ICONE/comp-phys | 5454046d9c3ada8bd8c7720ead988562b1770a6c | f042e09164670d695e3aacc15558e2123ad9ea97 | refs/heads/master | 2018-12-29T00:12:28.086055 | 2015-12-17T15:51:15 | 2015-12-17T15:51:15 | 41,516,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | '''
Prints out a flight schedule, first by flight, and then by time
'''
airports = {"DCA": "Washington, D.C.", "IAD": "Dulles", \
"LHR": "London-Heathrow", "SVO": "Moscow", \
"CDA": "Chicago-Midway", "SBA": "Santa Barbara", \
"LAX": "Los Angeles","JFK": "New York City", \
... | [
"iccone@usfca.edu"
] | iccone@usfca.edu |
3b3f261c7cc9dce7dfbc252591b1adb15492ff3c | 8f0122dee4648543fddd4a82729015cba0e02823 | /src/main/recognition/client.py | be922d8d758d8164866bde90a8c45301ae0e5126 | [] | no_license | katanik/PiCaptcha | 6f5cb8b4f001e4945e310fddba0a0f4502d71fb3 | 87a8f6ff03afeb6cf8bc0c36da896eec3aaedf97 | refs/heads/master | 2023-05-07T15:01:40.367151 | 2019-01-18T10:05:27 | 2019-01-18T10:05:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/image_classifier'
# prepare headers for http request
content_type = 'image/jpeg'
headers = {'content-type': content_type}
img = cv2.imread('test.jpg')
# encode image as jpeg
_, img_encoded = cv2.imencode('.jpg', img)
# send... | [
"kostyleva.viktoriya@gmail.com"
] | kostyleva.viktoriya@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.