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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91de9cf160a22a8ed4e613cd2c4972ab7439f865 | 359cb4d3dc4249c9d9c20a632d6a06b82c404cad | /mysql_config.py | 9dd62005b234323f876b7025833d4e03a270f786 | [] | no_license | CUrW-SL/from-old-curw-schema-to-new-schema | 0b275e007d887e8aef3afad1b3ce2415eda7af89 | 5bdb90ac81288b371341f3ad0ee74189c88468db | refs/heads/master | 2021-04-03T04:05:50.693288 | 2018-04-19T06:53:21 | 2018-04-19T06:53:21 | 124,373,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | OLD_DB_CONFIG = {
'host': '',
'port': 3306,
'user': 'curw_user',
'password': '',
'db': 'curw'
}
NEW_DB_CONFIG = {
'host': '',
'port': 3306,
'user': 'curw_new_user',
'password': '',
'db': 'curw_new'
}
START_DATE_TIME = '2018-01-01 00:00:00'
| [
"madumalt@gmail.com"
] | madumalt@gmail.com |
c2284400df2ddfb3b9094bda2309b792de2e3b21 | 514e779523e1f9bcc8efd33b7c7b437833a92b6f | /main/util/xmlUtils.py | 6b544aa5c475cb0126305f81e62a3333f116665b | [] | no_license | fushichenmu/test | db34ca3dd992641b706bd5a01e6e19d6774343e0 | d317f08bd44fe29859c313c96f275512acfd9b65 | refs/heads/master | 2020-09-08T10:58:59.085459 | 2019-11-19T03:44:10 | 2019-11-19T03:44:10 | 221,114,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | import xmltodict
import json
def xml2dict(xml_file,rootTable='xml'):
with open(xml_file,encoding = 'utf-8') as file_object :
all_the_xmlStr = file_object.read()
convertedDict = xmltodict.parse(all_the_xmlStr)
#ensure_ascii 设置为False 中文可以转换
jsonStr = json.dumps(convertedDict,ensure_as... | [
"xinhu519@aliyun.com"
] | xinhu519@aliyun.com |
a1f9e3e7b5b89f5f0a117846b4bfe0908cfe2503 | d7000038b837a00bf7575f4616fa7f555e5afc8c | /Python/ping.py | 09dc3cf03acbd81e2eaf2be5530825d5a2b40028 | [] | no_license | payshangjj/code-repositories | aa39c55ed28573586050d6fca91b61ca3d4b4289 | bbee90553f68e40c25c0bc939836cff0a36d74df | refs/heads/master | 2020-12-25T14:57:58.397251 | 2016-08-24T16:24:11 | 2016-08-24T16:24:11 | 66,099,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | #!/usr/bin/env python
#coding:utf-8
import os
import threading
numlock =threading.RLock() #线程锁 操作在线数时必须要请求此锁
prlock=threading.RLock() #输出锁 子线程在显示器上输出时必须请求此锁(防止输出错位)
zxs=0 #在线数
class pings(threading.Thread):
def __init__(self,num,interval):
threading.Thread.__init__(self)
self.nums=num
... | [
"yulei024@163.com"
] | yulei024@163.com |
92d2163dee74e757b3146c366d4d704400564aae | 6b65a6e495b60bd5610411ed382c7b1cb96d041c | /djangoApi/User/migrations/0009_delete_block.py | 9d9f8794d460dce13231b76cba25bf4a15fd61bf | [] | no_license | garggaurav526/moodflik-api | 04936ac94a26b1b816fc4aed1c825b8382186313 | 77b7953f55533847bb3785fbb3ca9004a6f032db | refs/heads/master | 2023-06-29T23:29:09.903636 | 2021-06-15T15:09:53 | 2021-06-15T15:09:53 | 363,434,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # Generated by Django 3.2.4 on 2021-06-15 12:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('User', '0008_block_blocked_user'),
]
operations = [
migrations.DeleteModel(
name='Block',
),
]
| [
"sm.gauravsingh@gmail.com"
] | sm.gauravsingh@gmail.com |
85133e30be06069297794779f1dc75b826ce7fd2 | 20f5601bcbbc1bf39c42256188ce76cc06b47238 | /manage.py | 23fd73d777219bb52e9e2753a1a94928d0f5b7dc | [] | no_license | Earthman12/Zemax_ZRD_File_Wrapper | a42e5f673cc4b37c206c6fec7e0dfed4a74774c4 | 72f0580eb9a2835444270d02f01ae87a8501178b | refs/heads/main | 2023-06-18T05:57:04.343687 | 2021-07-21T17:59:38 | 2021-07-21T17:59:38 | 388,203,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Zemax_ZRD_File_Wrapper.settings')
try:
from django.core.management import execute_from_command_line
... | [
"dteran@lpl.arizona.edu"
] | dteran@lpl.arizona.edu |
0a889ae77ecf14256767e53fff24bf1655e68788 | ee50502df12ffbffd5312161065fb8fa02085445 | /030.substring-with-concatenation-of-all-words/mine.py | 922e678b787da4f12d950511929c6c4460778919 | [] | no_license | IsabellaHuan/lc-all-solutions | eb08cdf723489b56521fe131bc5c1b4a399897ec | c6a136b0498a85fb38e934b5a4af42f8eef9ce1a | refs/heads/master | 2020-11-24T19:36:15.414404 | 2020-03-23T03:24:22 | 2020-03-23T03:24:22 | 228,314,954 | 0 | 0 | null | 2019-12-16T06:09:08 | 2019-12-16T06:09:07 | null | UTF-8 | Python | false | false | 154 | py | #coding=utf-8
# author: Huan Shuwen
# time : 2019/12/18 下午8:14
# file : mine
"""
NOTICE:
找到连续的所有给定单词组合的其实坐标
"""
| [
"huanshuwen@didiglobal.com"
] | huanshuwen@didiglobal.com |
3edd332be7516c04587484c513e5dbf4f7470e91 | 123ed4d9abce7adee63a9d22839751f21df1ac13 | /bread_crumbs.py | ba7530f0b8923205748ae6119af9e0cc2a2c32f2 | [] | no_license | alexey-kott/data_structures_and_algorythms | 06e2c939fa27fa449b5de9c828d47683696b9cbe | 6fc906025f1e40b5eccecf4a5e3d228dff095a98 | refs/heads/master | 2022-01-05T15:49:55.834642 | 2019-05-13T16:32:48 | 2019-05-13T16:32:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from typing import Dict, List
a = {
'b': 4,
'c': {
'd': 3,
'e': 5,
'f': {
'g': 8,
}
}
}
b = [('b', 4), ('c.d', 3), ('c.e', 5), ('c.f.g', 8)]
def extract(node: Dict, path: str = '') -> List:
paths = []
for key, value in node.items():
if path:
... | [
"aleksey.rautkin@onetwotrip.com"
] | aleksey.rautkin@onetwotrip.com |
0fa8fa2d1973353700ed4feebe10f79b52b7481f | 27ed6d2db4f38cd351b642042341771d93aee121 | /python/medicUI/widgets.py | 89f63dc250a9fceacb72d24418ce995ab37e74c9 | [
"MIT"
] | permissive | wmoten/medic | eab20630e6666372e50d12fa0998ceefc9411e68 | bc2e9ec09e33ce2d0cedd8dc0c17f567208503ed | refs/heads/master | 2020-04-07T09:58:58.947534 | 2018-03-08T05:51:35 | 2018-03-08T05:51:35 | 124,202,109 | 0 | 0 | MIT | 2018-03-07T08:13:48 | 2018-03-07T08:13:48 | null | UTF-8 | Python | false | false | 23,842 | py | from Qt import QtWidgets, QtCore, QtGui
from . import model
from . import delegate
from . import functions
import medic
import os
import re
IconDir = os.path.abspath(os.path.join(__file__, "../icons"))
class ParameterFunctions():
@staticmethod
def SetParmeterValue(param_container, pram_dict):
for pr... | [
"defreturnnone@gmail.com"
] | defreturnnone@gmail.com |
d6e599830cf5eafbff4dbe710bfe7cf85f3b641b | a53a7114bd18bc91534f46e764f10a1907d4b5c2 | /双指针问题/三数之和.py | 05e6045d899f97c6befea289e278da799ab96c0c | [] | no_license | q798010412/untitled2 | ab8f219e820558b84fe70d273106abcff905579b | 24028a60d4cb69c153e6d23d710942c4cc231968 | refs/heads/master | 2022-11-10T01:35:09.468633 | 2020-06-26T04:18:48 | 2020-06-26T04:18:48 | 275,071,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from typing import List
def threeSum(nums: List[int]) -> List:
nums.sort()
res = []
for i in range(len(nums) - 2):
left = i + 1
right = len(nums) - 1
if i > 0 and nums[i] == nums[i - 1]:
continue
sum = nums[i] + nums[left] + nums[right]
while left < righ... | [
"798010412@qq.com"
] | 798010412@qq.com |
bd298e7985f0b09e4222e354e3f0afc394e96595 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/heat-3d/tmp_files/1539.py | 27d7e85b4987f69ec0aa2f1e52f9247dec53052f | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/1539.c')
procedure('kernel_heat_3d')
loop(0)
tile(0,2,8,2)
tile(0,4,8,4)
tile(0,6,... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
9c0fb83c7a4b11f4d980fcbca72defa76f99e0b6 | f5dde423f9c6339076d2927f5e259b45e0171baf | /mdgen/constants.py | c6f3df841b8b1f5464d407808c5417becb6906e5 | [
"Apache-2.0",
"MIT"
] | permissive | parthpandyappp/python-random-markdown-generator | 5ab399d0f06952c082386e7c77355e08858fa180 | cd02ff0991cd35d7bac8455298a7eb676efc46eb | refs/heads/master | 2022-12-20T03:42:13.685124 | 2020-10-05T08:08:31 | 2020-10-05T08:08:31 | 300,171,307 | 0 | 0 | Apache-2.0 | 2020-10-01T06:28:45 | 2020-10-01T06:28:44 | null | UTF-8 | Python | false | false | 559 | py | from os import linesep
MARKDOWN_HEADER = '#'
MARKDOWN_HEADER_ALT = '-'
LINESEPARATOR = linesep
INDENTATION = '\t'
MARKDOWN_BOLD = '**'
MARKDOWN_ITALIC = '*'
MARKDOWN_ITALIC_ALT = '_'
MARKDOWN_HORIZONTAL_RULE_HYPHENS = '---'
MARKDOWN_HORIZONTAL_RULE_ASTERISKS = '***'
MARKDOWN_HORIZONTAL_RULE_UNDERSCORES = '___'
MARKDOW... | [
"ignisda2002@gmail.com"
] | ignisda2002@gmail.com |
f2a797d1c550dbc9843f6fe14e7ad572536407a7 | a24b8446639f2157e2ecbdb7c11eda8e4e4344cc | /Configurations/UserConfigs/2018_AntiIso/ST_t_topConfig.py | 82fbbb685a0a6b4499f198945b017c0e1a347268 | [] | no_license | aloeliger/ReweightScheme | dcebc5651094d8d3da65885c59dae4070983624a | 05c9783fcf8e024fd26a6dbb9b1fbab4aee3c7f4 | refs/heads/master | 2021-12-11T16:10:12.881863 | 2021-08-27T21:02:21 | 2021-08-27T21:02:21 | 215,565,834 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | import ROOT
from Configurations.Weights.CrossSectionWeightingModule.CrossSectionWeight import crossSectionWeight
from Configurations.Weights.MuIDIsoReweightingModule.MuIDIsoWeight import muIDIsoWeight_2018 as muIDIsoWeight
from Configurations.Weights.MuTrackingWeightModule.MuTrackingWeight import muTrackingWeight_201... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
56563a4e5c488b9601edba375fd206aab7e9b771 | b3be33fa7bea97e8bbe787a3665b5c65150abc00 | /week_1/Functions/Local_Variable_Scope.py | 54893ec763630221802c98cef38895f95bc32314 | [] | no_license | sssssh/cmu15-112 | dcef53e27a5628c0d4ea51188074defb4baf8dcc | f2ae6c4536bf0c109171fbfd57bc5ea9eb3abfee | refs/heads/master | 2021-07-12T20:17:26.371761 | 2017-10-18T03:15:55 | 2017-10-18T03:15:55 | 107,097,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def f(x):
print("In f, x =", x)
x += 5
return x
def g(x):
return f(x * 2) + f(x * 3)
print(g(2))
def f(x):
print("In f, x =", x)
x += 7
return round(x / 3)
def g(x):
x *= 10
return 2 * f(x)
def h(x):
x += 3
return f(x + 4) + g(x)
print(h(f(1)))
| [
""
] | |
0c75fb6bf1bbf0e8a76928ce29bf5b4f0a014996 | 6a4ebebbe0d7f81efc4f1749054a2ed7242c0e58 | /setup.py | 345a9c9073ffb87c82e6fbcc413a8d8703519644 | [
"LicenseRef-scancode-public-domain"
] | permissive | skylarker/granary | 6e192ecd2475febb3585728d5ba7afe34742107d | 2fd8ef017588b955e78606242ce582849cfd57ac | refs/heads/master | 2020-12-26T21:35:04.155528 | 2016-04-18T18:15:30 | 2016-04-18T18:15:30 | 56,891,160 | 1 | 0 | null | 2016-04-22T23:43:09 | 2016-04-22T23:43:09 | null | UTF-8 | Python | false | false | 1,868 | py | """setuptools setup module for granary.
Docs:
https://packaging.python.org/en/latest/distributing.html
http://pythonhosted.org/setuptools/setuptools.html
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
"""
import unittest
from setuptools import setup, find_packages
from setuptools.command.test im... | [
"git@ryanb.org"
] | git@ryanb.org |
2b19110914a02de6d4d0e861df33969b3d7063a9 | a82bc1f734089e337f9f96cb42e5b3f0360fede9 | /tests/devices/bmp280_test.py | 7f2d8568bfd2ca23b690a362d01917f8ba0ede16 | [] | no_license | zhaoshenhao/chickadee | ce5e14ca348ff165c52b38d437bdc0aa6f80e8d8 | d78e26ea0250825519a0ca5280bf5805f09deba3 | refs/heads/main | 2023-03-22T08:56:24.566975 | 2021-03-13T04:02:58 | 2021-03-13T04:02:58 | 326,502,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # BMP280 气压,温度,海拔(误差较大)
from bmp280 import Bmp280
import uasyncio as asyncio
import time
async def demo_async():
ds = Bmp280(16, 17)
for _ in range(0,2):
print(await ds.async_sensor_values())
print(ds.get_temperature())
print(ds.get_pressure())
print(ds.get_altitude())
a... | [
"syspole1@gmail.com"
] | syspole1@gmail.com |
918f237882bc12ca5169f08d0b2a86dd2b388b12 | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /Python/__function/functions1/functions1/23 keyword non-keyword argument.py | 9adc44c2843f16255ab0ee092696537a2eac3237 | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 553 | py | #3.keyword arguments: During fn call,using parameter name,passing value
#4.non-keyword arguments:During fn call,without parameter name,passing value
def display(branch,code):
print(branch,code)
display("CSE","05") #non-keyword argument
display(branch="ECE",code="04") #keyword argument (using parameter name)
displ... | [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
ac924d968bdb28866bff06959c39b1bd0944dab0 | 866581782ea07678da08291f034922bd5ae6db77 | /section04_3/section04_3/settings.py | b0dac60e963466c0c9ad98b0a906ebeac25d3446 | [] | no_license | khs50851/git-crawling | ee8967d6d8ba1e70b1be5f872008247f9955d76c | 9d29234f9cb025a05b782995abc54a87048445f9 | refs/heads/master | 2023-02-03T21:54:42.214804 | 2020-12-23T06:22:59 | 2020-12-23T06:22:59 | 320,491,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | # Scrapy settings for section04_2 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middle... | [
"khs50851@naver.com"
] | khs50851@naver.com |
d1cc019f002492e4ca2f30241964186934bb36af | 930309163b930559929323647b8d82238724f392 | /abc108_b.py | c72c059e12f6e5358657caa002cf6e7a6a309c3c | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 162 | py |
x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1
x3 = x2 - dy
y3 = y2 + dx
x4 = x3 - dx
y4 = y3 - dy
print("%d %d %d %d" % (x3, y3, x4, y4))
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
97a54b16689893b027d5f64ac83646f74cec9194 | a92efd5efcbf56db03cbb2c25fa5d89014ca19a6 | /aplicaciones/blog/migrations/0001_initial.py | 6b8852d52e702c870480faef8662818eff19dd54 | [] | no_license | nicopereiran7/django_netflix | 5d0b83db2ce7f9e641408e7c9330bfadd3ca2d48 | b0405059f56f4e66826dd0e53ade3e4cf893f9bc | refs/heads/master | 2023-02-12T12:55:01.022783 | 2021-01-14T16:41:30 | 2021-01-14T16:41:30 | 329,672,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Generated by Django 3.1.4 on 2021-01-12 21:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Categoria',
fields=[
('id', models.AutoFiel... | [
"nicopereiran7n7n7@gmail.com"
] | nicopereiran7n7n7@gmail.com |
b435fe028ef1a1bc1f119e7b49dcf9d535a282ff | 49d0fe764d55de48bc71aa3cba02019ce7ff0abe | /chance/admin.py | 6b678fcc31994555d67f85e40433ec42aaaf39f8 | [] | no_license | benliles/django-chance | 546f800168517c9abeb34547c945537e91fed183 | e43a6b46d55a4159ae5ddf7752cda245eca74016 | refs/heads/master | 2020-05-18T16:32:06.212903 | 2013-07-17T15:52:08 | 2013-07-17T15:52:08 | 4,775,508 | 3 | 2 | null | 2013-07-19T15:20:41 | 2012-06-24T21:26:52 | Python | UTF-8 | Python | false | false | 3,756 | py | try:
from reversion import VersionAdmin as ModelAdmin
except ImportError:
from django.contrib.admin import ModelAdmin
from django.contrib import admin
from django.http import HttpResponse
from chance.models import (Event, EventFee, EventChoice, EventChoiceOption,
Registration, EventChoiceSelection, Ta... | [
"benliles@arch.tamu.edu"
] | benliles@arch.tamu.edu |
c7c1943a417de7573e5aebf77ae57a09db5008a5 | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/LeetCode1.py | 86ca7efb65730bbd49152c8028c24b15a168c256 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | '''
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = ... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
4271c90c8228df812910694cbfa86764743f6aec | 7e71e9002f7a87c0fe559a579cde63e21bd43974 | /datascience_oper_empmst.py | 89a2d09cfe280286d999516e0bdb51141df8a7b0 | [] | no_license | ashish-2412/Employee-Management-and-Salary-Prediction | 0236b0af6a0f1e2fd9fc39c5b9152a8018a3aea3 | 9ad075f39b5ec37e48e70fdf4654908c3713798d | refs/heads/master | 2021-01-02T20:51:10.377009 | 2020-02-11T09:53:35 | 2020-02-11T09:53:35 | 239,795,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,956 | py | # Program name : datascience_oper_empmst.py
# Data science operations on empmst.csv
import pandas as pd
import numpy as np
from datetime import datetime
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
empdf = pd.read_csv('empmst.csv', index_col='E... | [
"ashishbarca@gmail.com"
] | ashishbarca@gmail.com |
0c7109401894b8ab6fa958daf9320f6f6999c573 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03231/s342511104.py | c53bcfef1be5b00fe39ad9752b5ac05a7a1bf748 | [] | 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 | 239 | py | from math import gcd
N, M = map(int, input().split())
S = input()
T = input()
L = N*M // gcd(N, M)
for i in range(N):
if M*i % N == 0:
j = M*i // N
if S[i] != T[j]:
print(-1)
exit()
print(L)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3acd2877be2d35889598ed2111ffaffb3f802be0 | 4b434c6af1d205e33941289211159dfde865e38e | /con.Bmaml.eq/train.py | fdc88d237727a3c3e47393deafa25044993743e3 | [] | no_license | a1600012888/BMAML | 3b2a7f264ed13ef598cc3677d18714c4f8354176 | 4802a917d8061011be9a2b09174598216812cc58 | refs/heads/master | 2020-04-14T19:10:40.363219 | 2019-01-16T17:03:18 | 2019-01-16T17:03:18 | 164,047,888 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,915 | py | import torch
from collections import OrderedDict
from tqdm import tqdm
from utils import AvgMeter
from torch.nn.utils import vector_to_parameters, parameters_to_vector
def TrainOneTask(Task, M, SVGD, optimizer, DEVICE, num_of_step = 3, step_size = 1e-3):
X, Y, Xtest, Ytest, std = Task
X = X.to(DEVICE)
Y = ... | [
"1600012888@pku.edu.cn"
] | 1600012888@pku.edu.cn |
b3c846fd274994e80d10172f9c89491cad92b480 | 6294155b9171145ca18ed027d6364fce97725dbb | /custom_apis/admin_api_views.py | efd0bb4b0554b03550f98f0d7b60a9ca10135b32 | [] | no_license | jiritichy/TCP | 344e12b47ffcbbd9d6100d1681d90f81aba8f591 | 46f69e24f6cab6f8ea3100941bc5dda3806637fa | refs/heads/master | 2023-04-08T10:32:05.093307 | 2021-04-02T08:46:11 | 2021-04-02T08:46:11 | 353,960,076 | 0 | 0 | null | 2021-04-02T08:44:51 | 2021-04-02T08:44:50 | null | UTF-8 | Python | false | false | 914 | py | from django.shortcuts import render
from authapp.models import (
WorkerDetails, JobDetails, User, Categories
)
from django.db import connection
from rest_framework.response import Response
from rest_framework import status
from rest_framework.decorators import api_view,permission_classes
from rest_framework.per... | [
"41832893+maliaditya@users.noreply.github.com"
] | 41832893+maliaditya@users.noreply.github.com |
67b0a46a7d02e459b2ca4a9e9d9c5635591b21bf | b659e99f89cf17ae886857383cb5b708847fe3f1 | /gettingStarted/problem7.py | 8402c5ac64f20f3cd28685736d51b82d10eddaae | [] | no_license | nitheeshmavila/practice-python | bea06cc4b2b9247b926e07fd5a3987552e531242 | f54bf8934a4cf160cdfc9dc43176f1eea3bc7a41 | refs/heads/master | 2021-07-03T17:24:29.450939 | 2021-06-16T08:40:48 | 2021-06-16T08:40:48 | 100,113,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | '''
Problem 7: How many multiplications are performed when each of the following lines(line 1 and line 2) of code is executed?
'''
noofCalls = 0
def square(n):
print(n)
global noofCalls
noofCalls += 1
return n*n
def printCalls():
print('no of multiplications performed:',noofCalls)
print(square(5)... | [
"mail2nitheeshmavila@gmail.com"
] | mail2nitheeshmavila@gmail.com |
08a51725bc857422bfd0211437ee4d92a0c0d3ef | 8655909600b85519b34b2d56bc498303b5f49e6d | /tests/unit/copying_manager_tests/copying_manager_new_test.py | ff5fcdb0014e171c277a16e957d3e6944f4b413f | [
"Apache-2.0"
] | permissive | scalyr/scalyr-agent-2 | 7ba794f7d1a7d80c07a3150c6d20a82b311ac9a2 | 5099a498edc47ab841965b483c2c32af49eb7dae | refs/heads/master | 2023-08-21T12:45:40.711445 | 2023-08-16T12:06:19 | 2023-08-16T12:06:19 | 23,852,161 | 75 | 76 | Apache-2.0 | 2023-09-11T20:44:43 | 2014-09-09T22:18:19 | Python | UTF-8 | Python | false | false | 26,179 | py | # Copyright 2014-2020 Scalyr 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 writin... | [
"noreply@github.com"
] | scalyr.noreply@github.com |
288aa6b6538d62c997475ad87548e3a3c0fc5298 | 8523658161b0899130a9a3c6f272449a8515fddb | /1010.py | 6cea665649ffd6a918dfc5b2f43fe1a2b780ad65 | [] | no_license | juliocmalvares/URIOnlineJudge | 4f3ad32cc171c34a27110c79c81fd71e338bb6d0 | 233b78abcf4dbc22a6cd05ce3cfea841c76e1140 | refs/heads/master | 2020-03-13T09:55:22.494272 | 2018-04-25T20:28:10 | 2018-04-25T20:28:10 | 131,073,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | a = input()
b = input()
prim = [p for p in a.split()]
seg = [p for p in b.split()]
prim[0] = int(prim[0])
prim[1] = int(prim[1])
prim[2] = float(prim[2])
seg[0] = int(seg[0])
seg[1] = int(seg[1])
seg[2] = float(seg[2])
total = (prim[1]*prim[2])+(seg[1]*seg[2])
print("VALOR A PAGAR: R$ %.2f" % total)
| [
"juliocmalvares07@gmail.com"
] | juliocmalvares07@gmail.com |
8ec0d9d19b8d82342da6d1286c1b84ca154226d9 | 99bc8c61bd3c934d702b54566dbe1f6354374ea4 | /gpx2csv.py | 33f4b02cf35727ce1a942ba13e14d0e0e9d62c6d | [
"MIT"
] | permissive | oneandonlyoddo/gpx2csv | e107aa288b3810c35a9a0056348196f758c32901 | 41f7bd14661383350a35df22de1652d1898f379e | refs/heads/master | 2023-01-14T01:01:11.011082 | 2020-11-09T13:20:46 | 2020-11-09T13:20:46 | 311,342,967 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,151 | py | #!/usr/bin/python
# gpx 2 csv
# Jonas Otto - helloworld@jonasotto.de
# Converting GPX files exported from Strava .csv files
# adding Sun Elevation, Azimuth and estimated Clear Sky Radiation
# for data visualisation in Houdini etc.
import csv
from datetime import datetime as dt
from datetime import timezone
import m... | [
"jonas.otto@field.io"
] | jonas.otto@field.io |
82e9dee0741767de9532be152cdc0e12d0ec1f4d | 736f965dd6fde66de8df7df3e84daffba3adae9e | /234_Palindrome_Linked_List.py | 95296a7660f043fd3aeaf021d825588be6d307d3 | [] | no_license | cl2547/my_leetcode | 6982d7a6dc4b2647bf49d30c55bbef2988f67381 | 8531c63ea7501e3fd22c60399550594c7053df85 | refs/heads/master | 2020-03-26T22:52:43.242215 | 2019-01-17T17:53:31 | 2019-01-17T17:53:31 | 145,493,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | class Solution:
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
#naive approach: compare head and tail
if head == None:
return True
temp = []
shouldBreak = 0
while True:
if shouldBreak == 1:
... | [
"cl2547@cornell.edu"
] | cl2547@cornell.edu |
dd70383bd799a8f104e751a763ba69d1a5ff85be | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03330/s307392217.py | de40af9fdc43a32599ce03bad31896ab49cb00ac | [] | 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 | 787 | py | def main():
from itertools import permutations
N, C = map(int, input().split())
change_cost = [[int(x) for x in input().split()] for _ in range(C)]
init_color = [[int(x) - 1 for x in input().split()] for _ in range(N)]
ctr = [[0] * C for _ in range(3)]
for r in range(N):
for c in range... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a9f7f9473b67b88fda721389ce806686a7721fdd | 15c05333389b9cf871087d2c22458654a800f098 | /example/WriteFileExample.py | 3562d5e09380f0ee736c53c9096394cc36fbc38f | [] | no_license | Ratta-Chindasilpa/CP3-Ratta-Chindasilpa | 1646cbe11012d09009e024028aa4e7959f44dd7b | ee07ebdedc6e46220636904e1afbf5254ae9dfb5 | refs/heads/master | 2022-12-25T03:31:23.446207 | 2020-09-23T14:55:32 | 2020-09-23T14:55:32 | 293,116,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | file = open("demo.txt", "a") #เพิ่มข้อความต่อท้าย (append)
file.write("Haha From Next Lecture")
file = open("demo.txt", "w") #เขียนทับไปเลย
file.write("Eiei \"w\"")
'''po = [1,2,3]
po.append(5)
print(po)'''
| [
"70811729+Ratta-Chindasilpa@users.noreply.github.com"
] | 70811729+Ratta-Chindasilpa@users.noreply.github.com |
390906999c1c0e7466b96f59d5a0c7e6cc9ab7d4 | 986d78fdcb40f4ee7db15bafc77070c087d16b63 | /studies/MultiBoomSparMass_v2/point_design.py | f0268c72689269395046cb2711265a992c71d693 | [
"MIT"
] | permissive | hdolfen/AeroSandbox | 8578b5e36b9a4be69801c1c9ad8819965f236edb | 4c48690e31f5f2006937352a63d653fe268c42c3 | refs/heads/master | 2023-01-20T15:36:58.111907 | 2020-11-24T13:11:44 | 2020-11-24T13:11:44 | 313,655,155 | 0 | 0 | MIT | 2020-11-24T13:11:46 | 2020-11-17T15:05:02 | null | UTF-8 | Python | false | false | 1,885 | py | ### Imports
from aerosandbox.structures.beams import *
import copy
n_booms = 1
# n_booms = 2
# load_location_fraction = 0.50
# n_booms = 3
# load_location_fraction = 0.60
mass = 80 * 6
span = 7.3
### Set up problem
opti = cas.Opti()
beam = TubeBeam1(
opti=opti,
length=span / 2,
points_per_point_load=10... | [
"peterdsharpe@gmail.com"
] | peterdsharpe@gmail.com |
f53ed7447917dec09d5d66ad99297a866cab65af | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2018/11/graphics/elex18-all-suburb-map-20181119/graphic_config.py | 006fc1be9c13a6867f9c6636d339a291b2f137a6 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '105w9FOQjFxe2xS_gA8rB6fXNWs-Tlyr4Jgu3icfRJgI'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
a983c342b4e9049da5aaf95545a9a0af1b89c60e | 831431d77d3078d60b3dbab4bd65996de27c03dc | /OrderManagement/views.py | f9e6969c3379c74fcec619e531cc423c65e64dd3 | [] | no_license | anika07svg/E-COOKBOOK | 1406ced774b9224188767e1a9a6e544a813b5b28 | 7e13608235b396b89a8ff51fd5bee2703b5ce7dd | refs/heads/master | 2023-03-31T02:47:23.241107 | 2021-04-04T17:20:04 | 2021-04-04T17:20:04 | 349,135,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | from django.shortcuts import render, get_object_or_404, redirect, HttpResponseRedirect
from .models import Order
from .forms import OrderForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import F... | [
"18101007@uap-bd.edu"
] | 18101007@uap-bd.edu |
a80bc0b7bec454901ca4b3999a54aa41c6aa7bd6 | 857d134efb9478deb5fe883d1365afd983de30eb | /util.py | 4dcbf75d5e23f4f4adcf6af7bffbb0bf1af83b87 | [] | no_license | riznagauri/customer_service_chatbot | 5568154a818521caaf29e6fd2f24567e8eeb5527 | 6c2e4597e3509c15db794338a6317243b9aff93c | refs/heads/main | 2023-02-02T04:38:46.419657 | 2020-12-13T15:15:44 | 2020-12-13T15:15:44 | 319,928,492 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | import torch.nn as nn
import collections
def embedding_size_from_name(name):
return int(name.strip().split('.')[-1][:-1])
def print_dim(name, tensor):
print("%s -> %s" % (name, tensor.size()))
class RNNWrapper(nn.Module):
"""
Wrapper around GRU or LSTM RNN. If underlying RNN is GRU, this wrapper d... | [
"59862776+riznagauri@users.noreply.github.com"
] | 59862776+riznagauri@users.noreply.github.com |
5ff24a90944791e22d0405a2032a3cff6be92e21 | 9ceb65546ca77d7b79893206b31403ebc523c902 | /SiNE/Doc2Vec.py | 90ee3e29f25eb7b28eb47d16096551a43ad5b9f6 | [] | no_license | Ancrilin/machinelearning | 259a925cecb32aa053448275fb3af16e518166e1 | 96ad754a557fe64c6dcd0e171f3c98f3c4fac8cc | refs/heads/master | 2020-08-01T14:58:30.636276 | 2019-11-20T13:21:08 | 2019-11-20T13:21:08 | 173,422,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,881 | py | from gensim.models.doc2vec import Doc2Vec, TaggedDocument
import gensim
import numpy
import csv
filepath = "data/20ClassesRawData_API_cleanTag.csv"
stop_path = 'data/stop.txt'
name = []
label_dict = {}
label = []
title_dict = {}
doc = []
stop = []
with open(stop_path, 'r', encoding='utf-8')as stp:#停用词表
for row i... | [
"1162236967@qq.com"
] | 1162236967@qq.com |
6d839d38862e2800ecd290f48f06e18d971eacd4 | acc307e621c01a98f93be97b8082c82b335f83d8 | /nate/ejercicios/conceptos_en_practica_pt1/tablas_de_multiplicar/invertir_range.py | 4c1a1ae2edc54212d987c11e11ae44db0b5c3247 | [] | no_license | catrielzz/python_practices | ea7496b2aeb12f8f1f0bb3e925c1fd828e3bc066 | ed363093bba79294687e31655c5213b368bd0d3c | refs/heads/master | 2022-04-12T01:22:10.888881 | 2020-03-05T16:21:55 | 2020-03-05T16:21:55 | 161,086,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | numero_tabla = int(input("De que numero quieres la tabla de multiplicar: "))
for multiplo in reversed(range(1, 11)):
print("{} x {} = {}".format(numero_tabla, multiplo, numero_tabla * multiplo))
| [
"estradayoel@gmail.com"
] | estradayoel@gmail.com |
d4e5bd09306a3676f8bc4c9f4595b3b8c8f20ce2 | c9ffdd094500896ac61726bdba581d8d8f1c0939 | /bookify/summarizer/views.py | ff8d79961151ee904bc9a62fc8302ba9919bccb0 | [] | no_license | djm-1/Hacknitp3.0 | abb6a5da4e7be30b7bef8851c8be48f73d877ed6 | 2fa67f5e023a8de143332d77c46211dd04f2a4f0 | refs/heads/master | 2023-02-15T18:57:41.164864 | 2021-01-17T18:50:39 | 2021-01-17T18:50:39 | 329,995,750 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,534 | py | # importing libraries
from django.shortcuts import render,HttpResponse
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize, sent_tokenize
import pdfplumber
import re
import os
import goslate
from textblob import TextBlob
from gtts import gTTS
from .models import Bookify
def index(re... | [
"dibyajyoti.bhs@gmail.com"
] | dibyajyoti.bhs@gmail.com |
e91623921eb5c27af51e43a64196da880e6aa9fd | 195308f855a492098cbea0a102bc55aecfe2b313 | /IMAGENET/imagenet_demo.py | da7c245bfe0490206509e26ecba7641c8aa56fbc | [] | no_license | jonathanhhb/DataScience | 4fcc6ed9493f72839e9c67ce450c412ba864563c | 8568c8b1ddb1cc737c8e314198d7773dfd58fcd0 | refs/heads/master | 2021-06-26T07:33:03.639850 | 2019-05-22T20:11:04 | 2019-05-22T20:11:04 | 114,664,168 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | #!/usr/bin/python
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input, decode_predictions
import numpy as np
import urllib2
import sys
model = ResNet50(weights='imagenet')
response = urllib2.urlopen( sys.argv[1] )
image_from_... | [
"jhb4@cornell.edu"
] | jhb4@cornell.edu |
734bf560f6432a6a310f7a443c030f24bb698856 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/358/usersdata/288/102525/submittedfiles/estatistica.py | 9fdd68752a0b6be1cd5aa630f88df85ada3bc87a | [] | 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 | 817 | py | # -*- coding: utf-8 -*-
def media(lista):
media=sum(lista)/len(lista)
return media
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def desvio_padrao(lista):
soma=0
for i in range (0,len(lista),1):
soma+=((media(lista)-lista[i])**2)
desvio=(soma/(n-1))... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6a8852a241aa4d0975a748a95537d55dd3466a75 | 5b0dcb0a1f578d04b0c195a30ff1a7ccfd29deaf | /tests/import/pkg9/mod2.py | f4b3e265fb51091766734e9cb7f4f9ca064b8b03 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | rk-exxec/micropython | c87ecd8743413c8a65e64fd82cd1910ccaed96c6 | d529c20674131b9ce36853b92784e901a1bc86f4 | refs/heads/master | 2023-08-18T01:18:34.511851 | 2023-08-09T03:19:18 | 2023-08-09T03:22:57 | 136,508,987 | 7 | 16 | MIT | 2023-01-13T20:48:50 | 2018-06-07T17:17:01 | C | UTF-8 | Python | false | false | 19 | py | from . import mod2
| [
"damien@micropython.org"
] | damien@micropython.org |
7545e75a3e19f5e5df2e9714c8b328dc935a65cf | 1dc7111e443e52f788e0ce3c57bb0e89e5ea73dc | /ecocast_celery/tasks/ak_air_quality_task.py | 2926facbdb14eba85d1456589e234c39b38f0fd8 | [] | no_license | myselfub/Ecocast_Celery | b11b65fd414b9371392f60f3f133addf53507324 | f5a52fc566578089fc1d05da1b5a4a0fcddc3dbc | refs/heads/master | 2023-06-01T14:47:31.452540 | 2021-06-13T15:37:43 | 2021-06-13T15:37:43 | 376,572,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,426 | py | import requests
from ..ecocast_conf import logger, psql_connect, psql_select
from ..ecocast_conf import AIRKOREA_HOST, AIRKOREA_KEY, REQUEST_TIME_OUT
""" Airkorea Air Quality Data Task """
def insert_ak_air_quality_list():
""" List of station names to be called to API of the Airkorea's air quality data
A... | [
"myselfub@gmail.com"
] | myselfub@gmail.com |
25e27b9ba8f9eab7e8a7697f65b503252490fbb6 | 950573f2befa010783c5f061983486e18006878a | /modules/methods.py | 393a39d90cb855baa534fd4550ea8244bf221678 | [] | no_license | belousovgm/dmarket_bot | 44ea587b68d9314d71ec739ce92866acfdd71e9b | ace1e98b5b28b2390f9ede9726fdb23f7a2a8ff4 | refs/heads/master | 2023-08-05T22:51:28.965645 | 2021-09-24T17:15:13 | 2021-09-24T17:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from pyti.simple_moving_average import simple_moving_average as sma
from typing import List
from api.schemas import LastSale
def mov_av_5(history: List[LastSale]) -> list:
prices = [i.Price.Amount for i in history]
prices.reverse()
mov_av = [i for i in list(sma(prices, 5))]
mov_av.reverse()
return... | [
"timagr615@gmail.com"
] | timagr615@gmail.com |
8e649d09bcfff639dd293baa38172402faa65ddf | 6d0da4d45bbd162bb30b6818a8a0c9587391c3f4 | /day1/InputDemo.py | 6da6df0cdf22976191cb83af571a916e52ca0bc7 | [] | no_license | chemin233/pythonPractice | 2cab4d7bebf3923486dbac641a49ded38e9ebd3e | a188a0fef63f16739c7d239d18d24c1a31be847c | refs/heads/master | 2021-04-06T20:42:56.360920 | 2018-03-17T08:43:23 | 2018-03-17T08:43:23 | 125,379,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # -*- coding: utf-8 -*-
import keyword
print(keyword.kwlist)
print(r"r'''hello,\n world'''")
| [
"chemin233@163.com"
] | chemin233@163.com |
2d527612149fb4de87f1e28e4faa947f02b7d21c | 407ca85cd6051a50884f38bb0514a6301f8e7101 | /Consolidated/POM/process_igd.py | 95e19baa709e2dfd1c4abcd641e5a4c6d49fe827 | [] | no_license | vivekaxl/MOLearner | 5ae4f40027b814ae5b20aaaeb255d6041505c0b9 | 236bf61e8ee1663eabcd73f355070022f908acfa | refs/heads/master | 2021-01-23T01:12:30.836318 | 2017-04-27T05:54:39 | 2017-04-27T05:54:39 | 85,847,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from __future__ import division
import pickle
import os
from sk import rdivDemo
pickle_files = [f for f in os.listdir(".") if ".py" not in f]
content = pickle.load(open(pickle_files[0]))
problems = content.keys()
prob = {}
for problem in problems:
al2 = pickle.load(open('al2_POM.p'))
al = pickle.load(open('al... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
2a81f7d4b1227f25359095b9287bd11ddefebfa3 | 1e07ebba0d691a53ed9859c4514fa0fa26096948 | /comentario/migrations/0012_auto_20190922_1843.py | 027e4158ca636543dba5ab86d483626db3a0b521 | [] | no_license | frankbriones/fundacion | bf52a9be94348306b55506677c173428cc626fc1 | 9742d244526374aa4bbcb6c338b33a698c751a1d | refs/heads/master | 2022-12-22T12:29:39.106710 | 2019-11-08T00:25:04 | 2019-11-08T00:25:04 | 191,661,945 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 2.1.1 on 2019-09-22 23:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comentario', '0011_auto_20190921_1602'),
]
operations = [
migrations.AlterField(
model_name='comentario',
name='esta... | [
"frankbriones90@gmail.com"
] | frankbriones90@gmail.com |
cb3a507be273487b2929ee7275904ae43f70bfb4 | 55b89a23b7f594cc529e91d1f4251c40ddc5bef1 | /Python Human Readable Date.py | 2d991129d4b20eed9c14f89ae744073d79ed13ea | [
"MIT"
] | permissive | codenoid/Python-Human-Readable-Date | 75b3849e047e30eaddb84ed275e2a7eba5e1348f | 40b6e113c0f5ec64d6bb099cfe9c5e934018b9c2 | refs/heads/master | 2021-01-21T06:39:53.724956 | 2017-02-27T05:02:01 | 2017-02-27T05:02:01 | 83,269,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | from datetime import datetime
# Inspired By Blurbs Framework - Human Readable Date
# Rubi Jihantoro - jihantoro8@gmail.com
now = datetime.today()
date = datetime(2017, 2, 24, 23, 36, 1) #your date
# Language
second = ' Second Ago'
minute = ' Minute Ago'
hours = ' Hours Ago'
ytd = 'Yesterday, At '... | [
"noreply@github.com"
] | codenoid.noreply@github.com |
d59d7dc1df81da166c9d49e6eaa0d44cb787a00c | 23ea8b62ea8823cc2609cccdb49ec6195f9528b0 | /experimentation/alt_hough_lines/alt_hough_lines.py | bdcc5a8d35798e59f51d8ec736fb796bc036aa31 | [] | no_license | ashvath100/computer-vision | 57d16c54b1fcc8e1502c9b387fb9e1a3e5817455 | c3c9b82413818c2603cde5008787a59e60e248af | refs/heads/master | 2020-12-13T01:01:53.553224 | 2020-01-15T13:35:33 | 2020-01-15T13:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import numpy as np
import imageio
import math
import cv2
def rgb2gray(rgb):
return np.dot(rgb[..., :3], [0.299, 0.587, 0.114]).astype(np.uint8)
def hough_line(img, angle_step=1, lines_are_white=True, value_threshold=5):
"""
Hough transform for lines
Input:
img - 2D binary image with nonzeros repr... | [
"47158509+oke-aditya@users.noreply.github.com"
] | 47158509+oke-aditya@users.noreply.github.com |
161618add3f39c9fe876a8d7b56a02309bb09785 | 2c68f9156087d6d338373f9737fee1a014e4546b | /src/vmware/azext_vmware/vendored_sdks/models/tracked_resource_py3.py | 27620df2d70b14816bdf6d808642b7b81ad668c9 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anpaz/azure-cli-extensions | 8b0d4071c49840da9883f13cb0fd1f4515246ee0 | 847fd487fe61e83f2a4163a9393edc9555267bc2 | refs/heads/master | 2023-04-23T17:22:53.427404 | 2021-01-29T17:48:28 | 2021-01-29T18:01:33 | 257,394,204 | 2 | 0 | MIT | 2021-01-28T10:31:07 | 2020-04-20T20:19:43 | Python | UTF-8 | Python | false | false | 1,447 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"noreply@github.com"
] | anpaz.noreply@github.com |
9ae00e78ca2c66a4385108f8f7d493052ee74a6f | 5a38ffc206890a323ec9bc92c7de2369d2650012 | /arquivos-caderneta/printer-scripts/print_pagamento_padaria.py | 37b499b25ea1db00341de588e3447d565169244d | [] | no_license | MBorgesT/Fiado | 2e316b6250b1019e5f99401114e21018a00f515b | b25a32c2b14be2df9279c436770fe54e322fe703 | refs/heads/master | 2021-07-06T15:21:27.034877 | 2020-08-30T21:10:14 | 2020-08-30T21:10:14 | 162,161,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | from escpos.printer import Usb
from unidecode import unidecode
import json
file = open('/home/matheus/arquivos-caderneta/printer-scripts/pagamento.json')
json_data = json.load(file)
printer = Usb(0x0416, 0x5011)
id_pagamento = json_data['id_pagamento']
data = json_data['data']
valor = json_data['valor']
cliente = j... | [
"matheus.borgest@gmail.com"
] | matheus.borgest@gmail.com |
45b9949ae0f0d840c1792793bacd388dbc458e59 | 428ee7363a2ad7d7916159eef595ee909d60eda8 | /tinifycli/display.py | 159775148d2d202861b1e4e03e7ed3e4fb096dc4 | [
"MIT"
] | permissive | pombredanne/tinify-cli | a2dee19e0096306393f039c26885ef4da38e08d9 | 37d1008d306d3f6459e4f6d72297c335a942cc1b | refs/heads/master | 2021-01-24T09:01:15.366205 | 2016-01-10T01:23:56 | 2016-01-10T01:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | # coding=utf-8
''' 显示层 '''
import logging
import Queue
import time
import threading
from . import shared_var
class TinifyCliDisplay(object):
def __init__(self, log_to_stderr=False, log_to_file=False):
self.logger = logging.getLogger('tinify-cli')
hndl = logging.StreamHandler()
if shared_... | [
"aheadlead@dlifep.com"
] | aheadlead@dlifep.com |
feecfc389496c8c1ebf9368e8be2da15764d4830 | 04741556cbaa4f98afea194bc0997723eb06fa49 | /Python/Group(), Groups() & Groupdict().py | 4be0ae3f083124a4cdca9efedf23be66f04f9837 | [] | no_license | maybeee18/HackerRank | e75f619654326e0deae83ee4fe818d20d606bdda | dce488916f643248ea86500e176322a3b9e3b671 | refs/heads/master | 2023-01-21T23:22:07.206264 | 2020-10-05T04:54:45 | 2020-10-05T04:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py |
import re
s = str(input())
m = re.search(r'([a-zA-Z\d])\1+', s)
print(m.group(1) if m else -1)
| [
"n.okroshiashvili@gmail.com"
] | n.okroshiashvili@gmail.com |
cac740ed5390813fac0fa76c84b8190b7170522b | 020d26b74450c807e04540e0fb5777e54986ffe2 | /main.py | 67be3aba2b744de5601d18ea6565376f730b9533 | [] | no_license | GrDaniel/oreilly-playlists-scrapper | 6c85c84b2ecdbeea12fa0d4491b737a3d402d260 | e98c623d6e861ff3df74de3937a1b785ce257fc0 | refs/heads/master | 2023-07-05T16:33:51.626559 | 2021-08-31T21:01:47 | 2021-08-31T21:01:47 | 386,440,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | import json
import logging
from converter import EbookConverter
from downloader import Downloader
from scrapper import OreillyPlaylistScrapper
from uploader import DropBoxClient
from utils import cfg, collect_local_files, PROJECT_DIR_PATH
class BooksSynchronizer(object):
def __init__(self):
logging.basi... | [
"daniells92@o2.pl"
] | daniells92@o2.pl |
5bb25ec3477387e775d0d3cef9989cdcf87ecbe6 | 9f915ea92455e0fd11c462e3ebb124c7e67b6c7d | /simple_crud/create_db.py | 7a8bacf212efa767f3c7641af0cf5a37f6933990 | [] | no_license | twr14152/svedka | a3fa001195f6cad81f91d387a8d3ecb9083c4210 | 0d47f0514bd1f99e8b38df0fc6c6d8286ea84657 | refs/heads/master | 2022-11-15T06:25:09.588524 | 2022-11-11T01:03:17 | 2022-11-11T01:03:17 | 83,989,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import sqlite3 as sql
#connect to SQLite
con = sql.connect('db_web.db')
#Create a Connection
cur = con.cursor()
#Drop users table if already exsist.
cur.execute("DROP TABLE IF EXISTS users")
#Create users table in db_web database
sql ='''CREATE TABLE "users" (
"UID" INTEGER PRIMARY KEY AUTOINCREMENT,
"UNA... | [
"noreply@github.com"
] | twr14152.noreply@github.com |
972dbe05aca9f060b4113b57fd5d6d3ecbf2223b | 337250ba29fc65e7652fb1a22d653770a3421e52 | /src/games/chat/chat.py | 03fc685b5d6c13776ad6ddb59fb7ca56e3358e70 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ollej/GoldQuest | 4dc2e527debc76558f9032bac2f88abb5d8f5f6e | b9913815bd1d1f304c34c3a3cc643b64310e66c6 | refs/heads/master | 2021-01-22T21:32:27.876981 | 2012-12-19T08:35:06 | 2012-12-19T08:35:06 | 1,999,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
The MIT License
Copyright (c) 2011 Olle Johansson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation ... | [
"Olle@Johansson.com"
] | Olle@Johansson.com |
119a6abe72d224b7b326cfdd57b58142becaead7 | 2057b286dd6d894943fd810cc1a17e212c0bab16 | /app/core/models.py | bd99aeba8b162b6a0da4427a7179792e59715e60 | [
"MIT"
] | permissive | Jevra1995/recipe-app-api | 73105fcc064ee01802895762d65fcc76bedca1dc | f5881de5fce0cd25094fbbd5ba040c0f601b2c0b | refs/heads/master | 2020-05-04T07:40:10.111184 | 2019-04-05T12:17:35 | 2019-04-05T12:17:35 | 179,033,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | import uuid
import os
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, \
BaseUserManager, PermissionsMixin
from django.conf import settings
def recipe_image_file_path(instance, filename):
"""Generate file path for new recipe image"""
ext = filename.split('.')[-1]
... | [
"nikola.jevremovic@htecgroup.com"
] | nikola.jevremovic@htecgroup.com |
8795ae563d13e777b07be9c178c3032e7c2d9605 | a1cd3ce533ce070c7c77e6a30a6d0b6a14fc9854 | /vegvisir.py | 45f7a9b1f3a33f4627260be1742b1223784f2dea | [
"MIT"
] | permissive | jelbrek/vegvisir | 12e73cca7fe3a30ea0ff7b420eeb4e6b29e06cc1 | 2ef2d5826665068c88f3de827af8ddf87bba9439 | refs/heads/master | 2022-02-18T05:50:50.081719 | 2019-10-06T06:22:27 | 2019-10-06T06:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,105 | py | #!/usr/bin/python
import os
import json
from app.config import config
from app.core import lldbcontroller as LLDBController
from flask import Flask, request, Response, render_template, jsonify
from flask_cors import CORS
name = "vegvisir"
app = Flask(name ,template_folder="www", static_folder="www/")
app.config... | [
"ichaithu@gmail.com"
] | ichaithu@gmail.com |
14cf9d39ac25408754cded21c849a8148f084381 | 6751b7b958b7c7f08a2c6144a2fbfecf9b2823db | /topo7.py | b6fbffb29beacfbc7281fb98b8468740a445879a | [] | no_license | J0e3gan/Computer-Network-6250-Log-Result | e05f65555cd030ccd85feae95a4aaf99e2b87460 | 6f8f81190ad588d70dd1a3ad70dd26679bfa43f8 | refs/heads/master | 2021-01-17T14:15:07.658439 | 2015-06-15T03:09:25 | 2015-06-15T03:09:25 | 37,440,791 | 1 | 0 | null | 2015-06-15T03:13:18 | 2015-06-15T03:13:18 | null | UTF-8 | Python | false | false | 1,778 | py | # a Star topology centered on Z with a loop around the outside
# +-------------D---------G---------J------------+
# | \ | / |
# | \ | / |
# | E H K |
# | \ | / |
# ... | [
"bpmmhk91@gmail.com"
] | bpmmhk91@gmail.com |
d05bb1fea607c83d07623745d2c57a7194956709 | 7ee2643c586dc542874d4a6fa58f0a1fb3ecd8b0 | /Python Exercises/01.conditionals_1.py | b4860c35a70beb1b2d9beaf2d170b4b3cdbce21f | [] | no_license | chathuRashmini/Python_For_Everybody | de2c0480a6d1157c70bd6730aba3a61a37266369 | 3c22ed094a419ca123b953273d0b7204a5ab9ce0 | refs/heads/main | 2023-04-22T09:35:37.793200 | 2021-05-11T01:49:34 | 2021-05-11T01:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/bin/python
# Task----------------------------------------------------------
# Given an integer, n , perform the following conditional actions:
# If n is odd, print Weird
# If n is even and in the inclusive range of 2 to 5, print Not Weird
# If n is even and in the inclusive range of 6 to 20, print Weird
# ... | [
"noreply@github.com"
] | chathuRashmini.noreply@github.com |
90919708b38f1802fc5b4fd478de24850db54d26 | 2bfdd061bbd594716216402f5058401285352fae | /main.py | e59397fbee31e1a414dae3c4fb6910bff4d53017 | [] | no_license | thelotusflower/openni-file-player | ab4f6ff543c2bd44a1919a71a624335b08bc46a1 | edae9fd231e2728dca7778d52f0e5e8cdcd10287 | refs/heads/master | 2020-03-26T11:30:18.175564 | 2018-08-15T11:44:39 | 2018-08-15T11:44:39 | 144,846,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import gui
import sys
from PyQt5 import QtWidgets
app = QtWidgets.QApplication(sys.argv)
window = gui.Player()
app.exec()
sys.exit()
| [
"noreply@github.com"
] | thelotusflower.noreply@github.com |
b15f982248a07bd81468603028e04993dab62e2c | 948f0a1ccee30084b5e6e9b1043bd1681d2ad38f | /app/1.2.py | 11b5df0c3846432a5436737d1486af287a9799af | [
"MIT"
] | permissive | filangelos/random-forest | 41454e934cf72cf1480cf5c001d569e629f578ac | 0fc7a4f74b1120f3e527e824abc1de1aa32f2b18 | refs/heads/master | 2021-09-09T13:53:30.982028 | 2018-03-16T18:38:36 | 2018-03-16T18:38:36 | 121,535,264 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | # EXECUTION TIME: 49s
# Python 3 ImportError
import sys
sys.path.append('.')
import time
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# prettify plots
plt.rcParams['font.family'] = 'Times New Roman'
sns.set_style({"xtick.direction": "in", "ytick.direction": "in"})
b... | [
"filos.angel@gmail.com"
] | filos.angel@gmail.com |
1c5db695c00805487dc0b8800c680a5d899c3af3 | 31cbea7109013dc56e7393a7553e5a7ac664b45e | /2.first_step_tf/first_step_tf.py | c0e101d923fee67fc4f5ab5768fb9f6f58062381 | [] | no_license | abhishek9165/ml_cc | fdf043f62d3e009402615bb558a3d4d059ea059d | 79adbbac172a35ee4c75b8417284649b51e31297 | refs/heads/master | 2020-03-18T19:26:44.678433 | 2018-06-01T06:22:42 | 2018-06-01T06:22:42 | 135,154,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,672 | py | import math
from IPython import display
from matplotlib import cm
from matplotlib import gridspec
from matplotlib import pyplot as plt
import numpy as np
import pandas as pd
from sklearn import metrics
import tensorflow as tf
from tensorflow.python.data import Dataset
tf.logging.set_verbosity(tf.logging.ERROR)
pd.op... | [
"verma.abhishek9165@innoplexus.com"
] | verma.abhishek9165@innoplexus.com |
c20c901564732be11e80764493ab831d08542a07 | 307e094d52f14a930c56bc2b629881d51647c676 | /src/libpolycrypto/experiments/threshsig/export-latex.py | 4d04e6da32d6fd8d363c12e539a0086a3d81b362 | [] | no_license | tyurek/libpolycrypto-docker | f7ca3be921d2383bf86dfab060d8781a9fa02fdc | d4e61020b699936ed1483601f1d7eb5c91341a8e | refs/heads/master | 2021-02-14T03:33:56.550740 | 2020-04-06T21:15:51 | 2020-04-06T21:15:51 | 244,763,536 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,064 | py | #!/usr/bin/env python2.7
import matplotlib
matplotlib.use('Agg') # otherwise script does not work when invoked over SSH
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter
from matplotlib.dates import MonthLocator, DateFormatter, DayLocator, epoch2num, num2date
import pandas
import sys
import ... | [
"yurek2@illinois.edu"
] | yurek2@illinois.edu |
93b4179de3c328ba26c4fa4e6ac0bc062a52d1fd | fc46f42dde6b4b7d7fc79ef1af6f65719215cc92 | /referencia/lab_rpc/rpyc/main.py | 1ecb47063a2d24a1c47566dda3776182e1ca9f92 | [] | no_license | andrelimabessa/sd217.2 | 47986dc271755ab8691359fae06ef5c2cf2ac540 | 1a98dfc67ac5be0b81f14282aba6d2a6a9a09814 | refs/heads/master | 2021-01-15T23:59:50.910011 | 2017-12-18T02:48:54 | 2017-12-18T02:48:54 | 99,948,047 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | import sys
from rpyc_server import server
from rpyc_client import client
print("Você quer executar:")
print("1 para servidor")
print("2 para cliente")
opcao = input("Opção:")
try:
if int(opcao) == 1:
print("Servidor ativado:\n")
server()
elif int(opcao) == 2:
print("Clien... | [
"andrebessa@gmail.com"
] | andrebessa@gmail.com |
45195cd9a511fdfd4e923e24cec6b203242b4440 | 5d5365a73e81ccf71c73b9d86eb070841f1e0001 | /backend/wallet/admin.py | bee6e39eb2e35074d6224625dcf762cc55d21246 | [] | no_license | crowdbotics-apps/yjjhffhg-22011 | 3c908901c5fa930df11d6af17471a39a7e3b1dd9 | c5649303aef6b69f515c4526df8b43ee82212c12 | refs/heads/master | 2023-01-12T02:01:16.200496 | 2020-10-27T15:36:39 | 2020-10-27T15:36:39 | 307,746,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from django.contrib import admin
from .models import (
PaymentTransaction,
TaskerPaymentAccount,
TaskerWallet,
PaymentMethod,
CustomerWallet,
)
admin.site.register(TaskerWallet)
admin.site.register(PaymentMethod)
admin.site.register(TaskerPaymentAccount)
admin.site.register(CustomerWallet)
admin.si... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
09ffb5881d97e3793dd1a6ca240d478cc0e58790 | 18f33f3ed62229552e92d73022a9ea4e29d892d9 | /bin/py/isup.py | daf88fc2a5ba4298b60002f388f5a0f019fe1206 | [] | no_license | ttaylordev/z | 70997681332b74dce9b444efed25743f5fd71c67 | 6afd06283b6f2f15c409b7ad651b0a3c4ded2fa7 | refs/heads/master | 2020-12-30T17:20:04.690100 | 2016-05-31T14:43:27 | 2016-05-31T14:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright © 2011 Nicolas Paris <nicolas.caen@gmail.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any late... | [
"zac@zacanger.com"
] | zac@zacanger.com |
ffd08081db47a183d721c341ba8da28946c71515 | c451bbc6d0014cf7d251fc79176b5d789bacdf71 | /plasticWM/migrations/0004_auto_20210424_1510.py | 41c33a80ab5ca43db652ead4ccd1932c8fb6d9c3 | [] | no_license | AshwinAnoop/RewardsForPlastic | 58d6a2d781b777c693dac6f270281e599e3fe7e3 | 8a6d6a8c3a93d99f28a1d4b00ad3723676624043 | refs/heads/main | 2023-04-10T14:08:33.402819 | 2021-04-25T17:22:59 | 2021-04-25T17:22:59 | 361,137,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 3.1.7 on 2021-04-24 15:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('plasticWM', '0003_auto_20210424_1453'),
]
operations = [
migrations.AlterField(
model_name='scr... | [
"ashwinka999@gmail.com"
] | ashwinka999@gmail.com |
86cc3320d97d3f645d71865a5d006a4c71317a53 | 952a411236d1052e1e3d67d72cf01a973e8e71e5 | /c6_decesion_tree_create.py | 2f88c11f9f744a59830d6a3a1eb3d8f339e15c79 | [] | no_license | cuidongxu666/machine_learning_review | 698a0854c130f8ee72b7f9ce5595d398be513f6c | 07bdb82f74713707c3f2fb2aaa1fd13f6c983ed9 | refs/heads/master | 2020-09-08T19:35:48.726806 | 2019-11-12T13:49:53 | 2019-11-12T13:49:53 | 221,226,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | #模拟信息熵进行一次划分
from collections import Counter
import numpy as np
from math import log
#根据特征d,阈值value进行划分
def split(X,y,d,value):
index_a=(X[:d]<=value)
index_b=(X[:d]>value)
return X[index_a],X[index_b],y[index_a],y[index_b]
#计算信息熵 基尼系数
def entropy(y):
counter=Counter(y)
res=0.0
#res=1
for ... | [
"1041254428@qq.com"
] | 1041254428@qq.com |
4fc430f6a69948ed46608cd576153baecb1b687a | 10679b5e5f52d8508251a77734d7b6ad3e54598f | /ansible/lib/ansible/modules/network/netvisor/pn_ipv6security_raguard.py | bc2e56eb3a08f979c821245a9795e19830d8fb95 | [] | no_license | rajaspachipulusu17/repo_with_code_refactoring | 25a695d7ecc79283501e74f92addd21d28af043b | f16aa2e2e0a7e85255bade2e686264425c2e68cb | refs/heads/master | 2020-05-18T16:38:15.967389 | 2019-08-06T10:35:08 | 2019-08-06T10:35:08 | 184,531,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | #!/usr/bin/python
""" PN CLI ipv6security-raguard-create/modify/delete """
# Copyright 2018 Pluribus Networks
#
# 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/li... | [
"rajas.pachipulusu@calsoftinc.com"
] | rajas.pachipulusu@calsoftinc.com |
e6e186ddde3a4e473e162348a1c1eb6df3cbbf5d | 567f76818219464714e49fd4ba4bac43494107f1 | /stopwords.py | 433b23f0bef87fbaba89f096b9a69ef8dc9e23ac | [] | no_license | anjalibhavan/termextraction | f9c34113c15859919789cff8dc3bd42ffaa04108 | afe28e6b490156ae3fcf3bb01e2636fdac735c52 | refs/heads/master | 2020-06-01T01:38:40.578265 | 2019-10-01T12:45:18 | 2019-10-01T12:45:18 | 190,580,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | import nltk
import string
from nltk import word_tokenize
from collections import Counter
import os
from chardet import detect
from nltk.corpus import stopwords
import numpy as np
from nltk.util import ngrams
import pandas as pd
import scipy
def get_encoding_type(file):
with open(file, 'rb') as f:
rawdata = f.read()... | [
"anjalibhavan98@gmail.com"
] | anjalibhavan98@gmail.com |
66eb19b40feed309c72cca813f8b9daff434849c | 48c0a0a22a0a43546cc41ec91e07a767645ed45a | /comments/migrations/0001_initial.py | a2ddac3cf7212a2c571e12029ad9675b1552cef4 | [] | no_license | 10256017/django-practice | 56152523e8a482c537a55806328dfc9b3902b0d0 | b600526eb78d0b5c8c3a3e99e5a9c0a210c61a2d | refs/heads/master | 2022-12-10T10:57:39.959739 | 2019-07-18T08:14:25 | 2019-07-18T08:14:25 | 197,117,596 | 0 | 0 | null | 2022-12-08T05:54:39 | 2019-07-16T04:00:40 | Python | UTF-8 | Python | false | false | 563 | py | # Generated by Django 2.2.3 on 2019-07-16 05:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(... | [
"lovehyt121312@gmail.com"
] | lovehyt121312@gmail.com |
30e1a84c06ca00940832ccc37ecb9ec95c660bef | f1c0ce462b185f7b633acb04ee8a85fcda87c748 | /tests/ui/help/test_application_help.py | 937e44be50886b1b7c39936744091d0878f09a36 | [
"MIT"
] | permissive | cole/clikit | 056c5f388043a43971a633470122b291fb51d23f | bdb286672f93e1ff7df1d864fb0751476e034d57 | refs/heads/master | 2020-09-08T12:11:05.287042 | 2019-11-12T05:02:42 | 2020-02-22T22:19:49 | 221,129,623 | 1 | 1 | MIT | 2019-11-12T04:27:10 | 2019-11-12T04:27:09 | null | UTF-8 | Python | false | false | 5,056 | py | from clikit import ConsoleApplication
from clikit.api.args import Args
from clikit.api.args.format import ArgsFormat
from clikit.api.args.format import Option
from clikit.api.config import ApplicationConfig
from clikit.args import ArgvArgs
from clikit.ui.help import ApplicationHelp
def test_render(io):
config = A... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
86b85b4c0923589add18c135d861f660562dc9ff | 5c2a504d630d918ef183a0fc0ad0e8c22052bf75 | /manage.py | 0e889816b0eecc814cfae92267f50913e71b2b97 | [] | no_license | irfanmk08/demopgroject | 15f9ef5205e19d976be0225bc399ed65562b7682 | 0802b5b465aee83491dd17cee98be45a13d0d4bf | refs/heads/master | 2023-02-05T12:26:46.223915 | 2020-12-01T04:23:57 | 2020-12-01T04:23:57 | 316,126,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testpgct.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"irfanmk08@gmail.com"
] | irfanmk08@gmail.com |
a130bec774c892fb9c1a395120872e7e39f4ff02 | 41ea6ff5e61cfa67dbf7000a31faf0e30ab2fcb2 | /python handson/Python for data structure/array_missing_element.py | b820bec134551f0933b98fa065d9aa4f209aec44 | [] | no_license | 12btcse1108/hacker-rank-sol | 576907c58a484264e87817dc6dbb54ac867bf601 | 870b4f0579a19f3b792da95fc0aca6a3d3ae308f | refs/heads/master | 2021-08-16T17:35:52.408782 | 2017-11-20T06:11:17 | 2017-11-20T06:11:17 | 111,369,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py |
# coding: utf-8
# In[16]:
def array_missing(arr1, arr2):
new_arr = []
for item in arr1:
if item in arr2:
arr2.remove(item)
else:
new_arr.append(item)
return ("\t".join(map(str,new_arr)))
# In[17]:
def array_missing2(arr1,arr2):
arr1.sort()
a... | [
"12btcse1108"
] | 12btcse1108 |
5ab2fec2b8f90755f0c2c41cd1c55b6a58f2d869 | ea02eb8c52ef66fe8399516dc0103b95ea1dd7c4 | /leo/lilac.py | 62a481a1484a09dabefd18f739923e60614fee7a | [] | no_license | y010204025/repo | 6c9d9601a14b8d003789bfe8266b1e10e9d41a49 | 074fef70cdccf3c62092a848e88bb27fbabea8d3 | refs/heads/master | 2020-03-23T03:38:57.191796 | 2018-07-15T14:51:38 | 2018-07-15T14:51:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | #!/usr/bin/env python3
#
# This is a complex version of lilac.py for building
# a package from AUR.
#
# You can do something before/after building a package,
# including modify the 'pkgver' and 'md5sum' in PKBUILD.
#
# This is especially useful when a AUR package is
# out-of-date and you want to build a new one, or you... | [
"farseerfc@gmail.com"
] | farseerfc@gmail.com |
65b7349016818ec0fd5b7471e004da12717831be | a02ca4a895214f9daa984019e5614d6f9c4ba9a9 | /HelloTube/urls.py | 0d4ef456157bebd7a3de7e422a2e133a5ef07489 | [] | no_license | zuoxiaotian/hellotube | 49ee45cbdbc7b62f7d81aca0706f8e1761b373a5 | be39307ab6645658400da7e29da6adbde63ae00e | refs/heads/master | 2020-06-07T06:15:15.993834 | 2019-06-20T21:14:41 | 2019-06-20T21:14:41 | 192,946,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from django.conf.urls import url
from HelloTube import settings
from . import view
urlpatterns = [
url(r'^$', view.index),
url(r'^extract', view.extract),
url(r'^send', view.send),
url(r'^create', view.create),
url(r'^download/(?P<name>.+)/',view.download),
] | [
"noreply@github.com"
] | zuoxiaotian.noreply@github.com |
ced5cdbcfa8beb5a466cbf64c8a4e987e956ac19 | 973666c1cbb0ef809b72b3d70e804dd38f67e358 | /xiaoshou/adminx.py | 503079adc415a2bcc717790947d855f786dfefdf | [] | no_license | zqh1107668229/ERP_system | cc9f5bf11487564cb06ba689390a0cb1d0fd6784 | d8b65e3fffef88abf92f049765f386969dc499fc | refs/heads/master | 2020-04-06T18:32:30.744956 | 2018-11-15T11:50:21 | 2018-11-15T11:50:21 | 157,702,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | import xadmin
from .models import Customer,SaleOrder,SaleOrder_Detail,Buy,Buy_Detail,Sale,Sale_Detail
class CustomerAdmin(object):
# 显示字段
list_display = ['customer_id','name','address','phone','PostalCode']
# 搜索
search_fields = ['customer_id','name','address','phone','PostalCode']
# 过滤器
list_fi... | [
"1107668229@qq.com"
] | 1107668229@qq.com |
9d53d0415cfb8d1a302c8be034149c90ae17bada | c6abfc400f2f203fabd2cad69929886a8550fc98 | /dropdown/models.py | 4b6bac51fac32af563c0512fa38b165eb622a0d1 | [] | no_license | Amjad8286/DependentDropdown | 192a4b3252800fc1791ea0918d63e00012507a41 | 745a0fecc508831fa2df56f27aa979ea1d5fa5c1 | refs/heads/master | 2023-07-24T22:15:13.337122 | 2021-08-30T13:27:42 | 2021-08-30T13:27:42 | 400,624,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from django.db import models
# Create your models here.
class Country(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
return self.name
class State(models.Model):
country = models.ForeignKey(Country,on_delete=models.CASCADE)
state = models.CharField(max_length=50)
... | [
"ansari.amjad8286@gamil.com"
] | ansari.amjad8286@gamil.com |
b6cdd4ac57903c57644fd5839156cb699231f3e1 | 82c4b842f806502991d932bf06b3b925b371049a | /iterative_sorting/test_iterative.py | 95bee262e58d74f39c46251aa5c01b2de10b96e1 | [] | no_license | MadisonViaLux/PythonNotes | 9bfdea380d9bfdf9853040aa5550ed6c13f9a927 | 20d83f8b419e1975dde9cf901cadcd175ea8f27b | refs/heads/master | 2023-06-09T06:50:04.794492 | 2020-08-06T19:34:15 | 2020-08-06T19:34:15 | 281,484,506 | 0 | 0 | null | 2020-08-06T19:34:17 | 2020-07-21T19:20:29 | Python | UTF-8 | Python | false | false | 991 | py | import unittest
import random
from iterative_sorting import *
class IterativeSortingTest(unittest.TestCase):
def test_selection_sort(self):
arr1 = [1, 5, 8, 4, 2, 9, 6, 0, 3, 7]
arr2 = []
arr3 = [0, 1, 2, 3, 4, 5]
arr4 = random.sample(range(200), 50)
self.assertEqual(select... | [
"madison.s.mckown@gmail.com"
] | madison.s.mckown@gmail.com |
5c581662b4dd5c362aae88507f12843821c76bc9 | c1ca214c27832c461775737e86c9c150d64d0c84 | /mapreduce/hooks.py | 20a5c757f0762e472112b6e1a1d50c9b93ec3c1c | [] | no_license | agualis/AOS2012 | 348a882a59e518c18d6ccc0af84fdf27e9d04880 | 99af591167514de64bfa2212c0659bd1a941787c | refs/heads/master | 2021-03-12T22:14:23.915585 | 2012-06-23T13:51:30 | 2012-06-23T13:51:30 | 3,416,875 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #!/usr/bin/env python
#
# Copyright 2010 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 o... | [
"agualis@gmail.com"
] | agualis@gmail.com |
afa2880ef7c9ad5d7d0c8b552c93ec596a1567aa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02712/s236119093.py | 71fea111b5f86f505bae1ae0688f57fdca6fed08 | [] | 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 | 144 | py | import sys
input = sys.stdin.readline
N = int(input())
ans = 0
for i in range(1,N+1):
if i%3 != 0 and i%5 !=0:
ans += i
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ffb47844aa469d4c90867e905b871c95d71323e5 | bf7871f516bd9dd5a39bef41d58a3e26072d79bd | /app/reservation/__init__.py | 141b71dc564db5374253b0bdbc10f52bcba5c503 | [] | no_license | patromi/SensoPark.v2 | 11fe193c5d0e7b3b0781c3ee02050abbff6d6904 | ba00b1e22fc1a3efa18302507fca1313c2dea282 | refs/heads/main | 2023-08-05T07:44:11.648847 | 2021-09-26T15:19:36 | 2021-09-26T15:19:36 | 355,197,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from flask import Blueprint
reservation = Blueprint('reservation', __name__)
from . import views
| [
"noreply@github.com"
] | patromi.noreply@github.com |
cbd4dff58fb534940486ad7a745bc32cfa732058 | e268832c9a5ecd465851347fc870ccf92e073309 | /Top_Interview_Questions/48._Rotate_Image/solution.py | 0c0c4d7037d1b48406cc887ceb7c12e888dc1f8c | [] | no_license | hkim150/Leetcode-Problems | a995e74ecca6b34213d9fa34b0d84eea649f57c2 | 1239b805a819e4512860a6507b332636941ff3e9 | refs/heads/master | 2020-12-04T08:06:42.981990 | 2020-10-03T00:20:29 | 2020-10-03T00:20:29 | 231,688,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
# we can first transpose and then reverse the row
if not matrix:
return
l = len(matrix)
if l <= 1:
... | [
"hkim150@illinois.edu"
] | hkim150@illinois.edu |
3b7a1f1b87e2d782ff133914ab7fc7467d0a30b3 | fec00348ab62d9539955f91f707291f8b09ecbd8 | /chainer_/chainercv2/models/irevnet.py | 0a86f6a43e3e4bd058b0b08765e3a0d0aaa6b1b9 | [
"MIT"
] | permissive | raijinspecial/imgclsmob | 192cae6cd5021f8ff951371d641e5f222cfe3068 | c5d3ab207a6304f1343e4394f0467bdc7403a72a | refs/heads/master | 2020-04-08T03:27:05.031453 | 2019-03-08T04:28:13 | 2019-03-08T04:28:13 | 158,976,223 | 0 | 0 | MIT | 2019-03-08T04:28:14 | 2018-11-24T21:47:08 | Python | UTF-8 | Python | false | false | 15,483 | py | """
i-RevNet, implemented in Chainer.
Original paper: 'i-RevNet: Deep Invertible Networks,' https://arxiv.org/abs/1802.07088.
"""
__all__ = ['IRevNet', 'irevnet301']
import os
import chainer.functions as F
import chainer.links as L
from chainer import Chain
from functools import partial
from chainer.serialize... | [
"osemery@gmail.com"
] | osemery@gmail.com |
11a6fcb57a8d8be2f2d2ef039795233e246976d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03346/s839224624.py | 607b47a18949a8482e6d9a712cdca3e6c434dd8e | [] | 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 | 745 | py | import bisect
import heapq
import itertools
import math
import operator
import os
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fd423a0b542b090db684de0a6a6f97329d80eeda | 129ea5d4b576639da63cf94dd3d1adb27422aa03 | /ceshi.py | 77dff77147c176733aea9a6bd577b26228b2cbda | [] | no_license | lianzhang132/bookroom | 55392db40bdf4bfd4d49c33d4dfb60947f954061 | 2bebdbd90be3fc356efdb6514688d1b6c7cb3c48 | refs/heads/master | 2020-07-11T01:29:03.630781 | 2019-08-26T07:21:45 | 2019-08-26T07:21:45 | 204,419,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import unittest
from run import app
import json
# # 可以借助于 urllib,requeset 发送请求
# import urllib
# import requests
# 登录测试
class LoginTest(unittest.TestCase):
# 测试用户名,密码 为空的测试方法
def setUp(self):
app.testing = True
# 调用测试代码之前一定会执行
# 初始化的代码 执行 放在这里
self.client = app.test_client()
... | [
"2327431669@qq.com"
] | 2327431669@qq.com |
1ba0240b2c151da511245d602901fc5f66aeb582 | e91a030ed90ef06fb861729a173d6f77ecf5a3e8 | /prahaApp/places/views.py | 3eda96b75ce36ca323c8915323e2f5b06a88ee8f | [] | no_license | snjope/prahaApp | 0517657fcc08739dd01a504f7f8c75dde44fbca4 | aef953c0f8379898cdbb93bd0088a8cc6298cdbc | refs/heads/master | 2021-05-01T20:26:48.547811 | 2017-01-17T17:17:13 | 2017-01-17T17:17:13 | 79,244,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hei kusipäät. Täällä voi lisätä mestoja.") | [
"joonas.peuralinna@aalto.fi"
] | joonas.peuralinna@aalto.fi |
cb83aa5000ddae05ad0d2cabf7459748dda5da7f | f48e82679edf65792ab06d4f6e332ff3fa232c86 | /apps/characters/migrations/0001_initial.py | 80a01685469bea8dec44b6932e27ea441c663267 | [] | no_license | rofklaw/dnd | ac7d824922cf40ac961ce1042a989b574bb3a033 | 2c861e03bddc1af42cd5ebe4944e23a040a2076c | refs/heads/master | 2021-01-23T06:44:53.064510 | 2017-09-08T22:23:19 | 2017-09-08T22:23:19 | 86,395,166 | 2 | 0 | null | 2017-03-30T23:01:03 | 2017-03-27T23:51:56 | Python | UTF-8 | Python | false | false | 3,110 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-31 19:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('logreg', '0001_initial'),
]
op... | [
"briggs.mcknight@gmail.com"
] | briggs.mcknight@gmail.com |
901fa07849d22ed8b30cf47e067a33598d238cf6 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/api/management/commands/save_blackbuck_data.py | ef02a5eccb3223c25f6cb6c0b3b3b085eb722b2e | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 303 | py | from django.core.management.base import BaseCommand
from api.blackbuck import fetch_blackbuck_data
class Command(BaseCommand):
args = 'Arguments not needed'
help = 'Django admin command to save blackbuck data'
def handle(self, *args, **options):
fetch_blackbuck_data(clean=True)
| [
"mani@myhost.local"
] | mani@myhost.local |
9f2e29e63a60fddec858f933a2b29d20252cd2ff | dd766645d0706f8cd2430288f8dbb8c9026f284c | /weather/forms.py | ff5b7f2543bbefb23bbbbf9ca81b2d09394e387b | [] | no_license | krishnadevkar/Weather-App-Using-Django-and-Python | b465bbef182076277c748cb935bbaaf57df2c70b | 5342cc78d567096d5269ecfec3bf08f91ec6ecf7 | refs/heads/main | 2022-12-26T16:01:57.742725 | 2020-10-13T13:19:52 | 2020-10-13T13:19:52 | 303,709,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.forms import ModelForm, TextInput
from .models import City
class CityForm(ModelForm):
class Meta:
model = City
fields = ['name']
widgets = {'name': TextInput(attrs={'class':'input','placeholder':'City Name'})} | [
"72792579+krishnadevkar@users.noreply.github.com"
] | 72792579+krishnadevkar@users.noreply.github.com |
22b5a918e455a0575dea2511baf43c39ae5f6df4 | 409b77fa3d52e396f45a2126178732cbccfa32ec | /budget/expenses/views.py | eabe7e4ee2059a08d5f3178ed7757f10db4b4384 | [] | no_license | Venkatessankarthitk/montlybudget | 2bd652d7e5f9e0383d73d1c0155dcf6f5845aa2b | 107719c348e382d85a4a94e3f4acab3e5f851659 | refs/heads/master | 2020-03-23T09:37:20.341798 | 2018-07-23T06:15:29 | 2018-07-23T06:15:29 | 141,399,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | import json
import datetime
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.core import serializers
from django.http import HttpResponse
from expenses.models import purchasing_items, expenses_details
from django.core import serializers
from django.views.generic... | [
"noreply@github.com"
] | Venkatessankarthitk.noreply@github.com |
a1ea1cd0c4454fea650614ef561225696796a60d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/model/tag_resource_req_body.py | f43bc9df67f8aa35a1f1ec41372a38258bee7053 | [
"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 | 3,188 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class TagResourceReqBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
28764e6985747a21ef890844cef47baaea2ac122 | 9d77c2434b0e804af2ecaf4a4ea6d99f6ac6d96d | /preprocessing/tf_image.py | b84b4284cb4af7ec6da652d92872d7f69efdf48a | [
"MIT"
] | permissive | UpCoder/ISBI_LiverLesionDetection | cce7c118601548eef8bfeeedfe4f50d88411a7df | e21ce360e55092a16acc4d147a1418a53545d562 | refs/heads/master | 2022-12-12T12:57:50.299718 | 2019-04-03T03:49:43 | 2019-04-03T03:49:43 | 179,206,267 | 8 | 1 | MIT | 2022-12-08T16:02:31 | 2019-04-03T03:49:00 | Python | UTF-8 | Python | false | false | 17,125 | py | # Copyright 2015 The TensorFlow Authors and Paul Balanca. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
"546043882@qq.com"
] | 546043882@qq.com |
373c763944c135c4d62fd1b09bab3072d1e6cd84 | e79888cd68177e7ec5125270cdc52f888e211e78 | /hwichan/chapter06/knock52.py | d96472faf4e538c6afb9d7c120f1e680ac6703fb | [] | no_license | cafenoctua/100knock2019 | ec259bee27936bdacfe0097d42f23cc7500f0a07 | 88717a78c4290101a021fbe8b4f054f76c9d3fa6 | refs/heads/master | 2022-06-22T04:42:03.939373 | 2019-09-03T11:05:19 | 2019-09-03T11:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | import re
import snowballstemmer
def sentence_extraction():
pattern = re.compile(r'''
(
^.*? # 非貪欲
[\.|;|:|\?|!] # . or ; or : or ? or !
)
\s # 空白
(
[A-Z].* # 英大文字
)
... | [
"2mmhwichan@gmail.com"
] | 2mmhwichan@gmail.com |
cbdb2c29d50802280c7f7b520ddb6e0fc8def24b | 04b07645b8f9bf9e7cddf831f97c91fa241f4fca | /exploits/OpenRedirect03.py | a187db31912d6dac1aa834798ad488b412058341 | [] | no_license | kowshik-sundararajan/Assignment-3 | 2248db4c4e93d78c07e9049da02aff1096d19530 | b1c8014315d0e89abf535be024046cbddd186ff6 | refs/heads/master | 2020-03-15T06:21:59.476645 | 2018-04-24T14:17:21 | 2018-04-24T14:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import os
import time
chromedriver = "/usr/lib/chromium-browser/chromedriver"
os.environ["webdriver.chrome.driver"] = chromedriver
browser = webdriver.Chrome(ch... | [
"anusha.anandan@gmail.com"
] | anusha.anandan@gmail.com |
3fb518dd7c6ff02dc92ef2aab9f585d679d2e42e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/HUAWEI-MIRROR-MIB.py | aa7dce312e3994d2b844631d194be929f967ddd7 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 26,682 | py | #
# PySNMP MIB module HUAWEI-MIRROR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MIRROR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:35:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
dd54c49f97d052f3d01d460d92b0d7b59506280b | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /tools/cygprofile/patch_orderfile.py | 071861e53b11cf764d6c45f7196291be77777555 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.1-only",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 16,496 | py | #!/usr/bin/env vpython
# Copyright 2013 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.
"""Patch an orderfile.
Starting with a list of symbols in a binary and an orderfile (ordered list of
sections), matches the symbols i... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
f453a36bcee504e1fc87eb4a16f5709e38556740 | 415a8a4315e6331b2a157de8a1429fe0562729f8 | /python/TryCatch.py | 75b958f68079d3ef596723ff8107b476c5de2643 | [] | no_license | alfaceor/programming-examples | 784690dd1104e4adbdf958e4163b3b462f635881 | abea970a54cfab0eacc5280ae62383495e9e6eeb | refs/heads/master | 2022-05-04T23:14:30.503114 | 2022-04-29T10:11:45 | 2022-04-29T10:11:45 | 36,015,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python
import numpy as np
for i in range(4):
try:
data = np.loadtxt("NoExiste.dat")
except IOError as e:
print "Oops!"
pass
for i in range(5):
try:
data = np.loadtxt("NoExiste.dat")
except IOError as e:
print "NO PASS!"
break
print "Fuck U!!!"
| [
"alfaceor"
] | alfaceor |
afe52020807529d3d426f1f80748977c241334c4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_137/548.py | 6499377835513cc99a4e2110302f4abf9f61a149 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | data = open('minesweeper.txt')
mines = {}
while True:
line = data.readline()
line = line.split()
if len(line) == 0:
break
R = int(line[0])
C = int(line[1])
M = int(line[2])
line = data.readline().strip()
if line == 'Impossible':
mines[(R, C, M)] = 'Impossible'
else:... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.