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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98c2b0e2a3629f3f493cfe7dfd981519a328d543 | d245277858c8708399a3dd6b9b4bc5122687d79c | /petselect/views.py | 5516153370a34a4c1cda3190ade1db699e925516 | [] | no_license | mandjo2010/DjangoPetSite | a86b5c27f6ef852abe1e2a63bbec9d0ebf11e71c | f23c666fa0fe74d67270820554ffdc6e89d8490c | refs/heads/main | 2023-05-09T10:21:12.356722 | 2021-06-03T12:49:54 | 2021-06-03T12:49:54 | 373,504,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.shortcuts import render, get_list_or_404
from .models import Pet
# Create your views here.
def index(request):
return render(request, 'petselect/index.html')
def resp(request):
pet_objects = get_list_or_404(Pet, size=request.POST['size'],hair=request.POST['length'])
return render(reques... | [
"37101160+mandjo2010@users.noreply.github.com"
] | 37101160+mandjo2010@users.noreply.github.com |
070d24b806b45b302d7014e3e0647b91d9d81da1 | 7bdb0e12359162c5dd2bddc58d2ca1d234fb29d2 | /trunk/scripts/checkelf | 729b1da344b294ea0061299870a64f31cd7ab8db | [] | no_license | hitaf/Pardus-2011-Svn- | f40776b0bba87d473aac45001c4b946211cbc7bc | 16df30ab9c6ce6c4896826814e34cfeadad1be09 | refs/heads/master | 2021-01-10T19:48:33.836038 | 2012-08-13T22:57:37 | 2012-08-13T22:57:37 | 5,401,998 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 24,414 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2010 TUBITAK/UEKAE
#
# 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 2 of the License, or (at your option)
# any l... | [
"fatih@dhcppc1.(none)"
] | fatih@dhcppc1.(none) | |
1c5d5d7bebf798ac0d2783572f1523e21e3ce33f | cc9987a95181509a846b181eac73c45c8f4f42f5 | /№ 22.py | 95923ae37fb6011104ad2357a9291e2c1eeb2473 | [] | no_license | Andrey0563/Kolocvium | edd3c3f6e561f12c5d3dcf7f7d9cf8184be9fb9c | 89f6338d95ec129d611c93588427161885b60a43 | refs/heads/master | 2022-04-23T07:09:27.938320 | 2020-04-24T09:24:15 | 2020-04-24T09:24:15 | 258,462,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | '''
№22
Знайти добуток елементів масиву, кратних 3 і 9. Розмірність масиву - 10.
Заповнення масиву здійснити випадковими числами від 5 до 500.
Дужак Андрій 122-Г
'''
import random
import numpy as np
a = np.zeros(10, dtype=int)
s = 1
for i in range(len(a)):
a[i] = (random.randint(5, 500))
if (a[i] % 3 == 0) and ... | [
"duzhak.a55@gmail.com"
] | duzhak.a55@gmail.com |
2844bab25d2c4c18c2dbdb61312346678f2d8927 | 3bf6240364e10c7a26ca791d24604576e474ac3e | /datas/generate_file_list.py | 0f0fdb9188f26914fe7601085db23e6a726b68e5 | [
"MIT"
] | permissive | anoop3495/FPCC | d2d5aa364d6f4f07af8bf760db0033adc5d93161 | a9c7777f6d1d34bca1109ed6e45f533d47a2f5e2 | refs/heads/main | 2023-08-13T09:30:02.377067 | 2021-10-15T07:17:46 | 2021-10-15T07:17:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import os
root_dir = 'ring_train/'
note =''
for txt_name in os.listdir(root_dir):
note = note+'./datas/'+root_dir+txt_name+'\n'
f = open('./ring_train.txt','w')
f.write(note)
f.close() | [
"noreply@github.com"
] | anoop3495.noreply@github.com |
25e6d88820fd6c1d178d7fec93d980777b6c3945 | 56e1d915b1270e38248bb0e0241622eff71d9cf9 | /src/detection/backgroundsubtraction.py | 602c9313924825fbe5e6e8e3dc17e72326014fef | [] | no_license | Lichor8/evc | 608d7c3f350257b66c2a897f5f2a3c4aaa76f108 | 53bebcef6221304b3331fa7d1420f0189061c104 | refs/heads/master | 2020-04-05T14:36:18.966653 | 2016-08-31T14:30:43 | 2016-08-31T14:30:43 | 57,280,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # import OpenCV functions
import cv2
# import Numpy functions
import numpy as np
def backgroundsubstration(img):
# blur image using a gaussian blur
imgBlurred = cv2.GaussianBlur(img, (19, 19), 0)
gray_image = cv2.cvtColor(imgBlurred, cv2.COLOR_BGR2GRAY)
hist, bins = np.histogram(img.ravel(), 256, [0,... | [
"r.j.m.v.d.struijk@student.tue.nl"
] | r.j.m.v.d.struijk@student.tue.nl |
24ed85e52192f65dabbeb56095c065db2b08ad37 | 4778739e509fbf9c15843c8e13e2610c1181cbbb | /LemurAptana/LemurApp/migrations/0008_auto_20170924_1611.py | fcbea5fb139bd479b6e078b67d5c1b9ac783de32 | [] | no_license | wiltzius/btp-lemur | 2d37966eb2f1d6505e55a73c87e0f036e58bd75e | 2b0807b0927cfa74f810f043822e046baca41946 | refs/heads/master | 2023-01-27T11:41:08.059836 | 2021-08-22T21:24:27 | 2021-08-22T21:26:09 | 48,426,943 | 0 | 0 | null | 2023-01-24T17:37:38 | 2015-12-22T10:54:55 | Python | UTF-8 | Python | false | false | 716 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('LemurApp', '0007_auto_20170704_1446'),
]
operations = [
migrations.AddField(
model_name='order',
nam... | [
"tom.wiltzius@gmail.com"
] | tom.wiltzius@gmail.com |
3aab8ef592b608c26c031f3b0124134f697aa9ac | 3573e68315d56d4f124fa57db9b13364e0d415e8 | /artists/admin.py | f5c2f22daaaeb08f09cf0c68bceb203aefe29e50 | [] | no_license | LBwaks/Turn-Up | 5993bdf5190518400e6fddc7152c51cd95acf85d | 7c5b29be8a51e7711571b395591b7f00b68971ce | refs/heads/main | 2023-08-13T03:09:07.555964 | 2021-10-09T08:27:54 | 2021-10-09T08:27:54 | 375,811,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | from django.contrib import admin
from.models import Category,Artist,Comment
from django.utils.html import format_html
from django.contrib.auth.models import User
# Register your models here.
class ArtistAdmin(admin.ModelAdmin):
def ImageThumbnail(self,object):
return format_html('<img src="{}" width="60... | [
"obwakuvictor@gmail.com"
] | obwakuvictor@gmail.com |
ac1a60a332b0c4dafbac6de937ce385aa43dde89 | d64928a9c7ab07b04a5074b4f7bee51c3efec9cd | /cic/sitemaps.py | ef82ecb4e400fd6d97a5c544eb7db5c5bc0db71c | [] | no_license | Disabel/cic | 7110a8ac36c6e0c8a576c741766c5b8701bbc7b2 | d2d67757c10f07a862769bfec9c9b4a20a9bf052 | refs/heads/master | 2021-01-22T21:32:03.139858 | 2015-07-28T17:08:58 | 2015-07-28T17:08:58 | 37,287,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | #-*- encoding: utf-8 -*-
from django.contrib import sitemaps
from django.core.urlresolvers import reverse
from cic.apps.calendarium.models import Event
from cic.apps.homepage.models import conferenciaslista, cursoslista
class StaticViewSitemap(sitemaps.Sitemap):
priority = 0.5
changefreq = 'daily'
def items(self)... | [
"restonjd@gmail.com"
] | restonjd@gmail.com |
6fe16bcff5ab82547a2b9e865b8a3018ae5b6745 | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /Validation/Configuration/python/mtdSimValid_cff.py | 0279b8c25a91a7aca5c19feb0e430ade01179cbe | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | Python | false | false | 620 | py | import FWCore.ParameterSet.Config as cms
# MTD validation sequences
from Validation.MtdValidation.btlSimHits_cfi import btlSimHits
from Validation.MtdValidation.btlDigiHits_cfi import btlDigiHits
from Validation.MtdValidation.btlRecHits_cfi import btlRecHits
from Validation.MtdValidation.etlSimHits_cfi import etlSi... | [
"massimo.casarsa@ts.infn.it"
] | massimo.casarsa@ts.infn.it |
d49b62de24437009d7264a5f6e1a2eb02c3ad94f | fcfc39c121b9e2501ee9350f9010e61c8d07ee1c | /0x06-python-classes/5-main.py | e26d7de3e31e7289d868bc7d5faec252f106fd02 | [] | no_license | Brandixitor/holbertonschool-higher_level_programming | 042a6a433ef045af04acb2864521fffd9725a66e | 6bfa61eeb7915690c4a18be64635d79799589117 | refs/heads/main | 2023-04-19T03:13:43.208570 | 2021-05-12T11:33:43 | 2021-05-12T11:33:43 | 319,438,555 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/python3
Square = __import__('5-square').Square
my_square = Square(3)
my_square.my_print()
print("--")
my_square.size = 10
my_square.my_print()
print("--")
my_square.size = 0
my_square.my_print()
print("--")
| [
"noreply@github.com"
] | Brandixitor.noreply@github.com |
c5c30d977f4815f994c1540f77d247bd180c6649 | 1693b5ef0ca727d2d7accccd757400afca81dc12 | /tests/conftest.py | 94d39104ad4ce38d3b85fa8da630c335a2f7b00a | [
"Apache-2.0"
] | permissive | ghas-results/baklava | 8230f67fbd100842a52f7928edd1a40944d52088 | 0e029097983db6cea00a7d779b887b149975fbc4 | refs/heads/master | 2023-07-13T05:01:09.438209 | 2021-08-18T00:55:53 | 2021-08-18T00:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | import pytest
def pytest_addoption(parser):
parser.addoption(
"--slow", action="store_true", default=False, help="run slow tests"
)
def pytest_configure(config):
config.addinivalue_line("markers", "slow: mark test as slow to run")
def pytest_collection_modifyitems(config, items):
if config... | [
"code@matthewmadson.com"
] | code@matthewmadson.com |
e79e521415686e367a6d4822f711d78ae71bf53d | ca738d4e1d2a6585b7dcfb9362487141b47018c2 | /WVWebsite/app/admin.py | 432976f35ab488346c695ae60ac4f573345c6d2f | [] | no_license | Tyler-Irving/water-valley-website | 599a631e6ce3fd2e9b638d93891a79352a783f8b | c0954e959f94b56b4202fffce0a316c3d09b2ffe | refs/heads/master | 2021-05-21T04:25:53.256861 | 2020-04-06T20:12:25 | 2020-04-06T20:12:25 | 252,542,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from WVWebsite.app.models import Post
class PostAdmin(admin.ModelAdmin):
pass
admin.site.register(Post, PostAdmin)
| [
"dbooker@basecampcodingacademy.org"
] | dbooker@basecampcodingacademy.org |
de2510471dcc3c7505344e3a7e818cbbcf6cc2d8 | 8ef6d93635d67f01600ae97aae27709bb85035e8 | /deepmdp/experiments/utils.py | f9a2d308fb60c4ed98372863585e3c5321d00482 | [] | no_license | MkuuWaUjinga/DeepMDP-SSL4RL | fcb44cbd570599aeee4e65ec1c9a78fe1fbfd312 | 75a555ce0a89e1c76da12ebd6a351425aae8b69c | refs/heads/master | 2023-01-29T22:41:51.783948 | 2020-12-13T18:57:20 | 2020-12-13T18:57:20 | 268,063,389 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,227 | py | import numpy as np
from visdom import Visdom
from collections import defaultdict
import torch
import pprint
def show_agent_playing(policy, env):
obs = env.reset()
env.render()
for i in range(1000):
action = policy.get_actions(obs)
print(action[0])
obs, rewards, done, env_infos = env... | [
"adrian.ziegler@student.hpi.de"
] | adrian.ziegler@student.hpi.de |
e1e220fec8096178af970a98f1e7322006888673 | ecd681443b6b053c3e9a2a9517f61ad9a3b67d84 | /5.1 Read and Write txt files.py | a421a696bb682e6532b67dfcf979d9d253247f8d | [] | no_license | EchoZen/How-to-Automate-The-Boring-Stuff | 636f8e79b7aa2f351bb6e8cfcc24d38f40077b4f | 22be3f3d57eac6c04f3f0a77379d340056e78d4e | refs/heads/master | 2022-09-12T21:15:42.563326 | 2020-06-01T07:56:16 | 2020-06-01T07:56:16 | 258,112,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # plain text files, readable to humans
# binary files stored in binary format. Unreadable to humans
# meatball_file= open(r'C:\Users\zchen\OneDrive\Documents\Spaghetti\meatball.txt')
# print(meatball_file.read())
# meatball_file.close()
# Have to reopen the file to reread
# meatball_file= open(r'C:\Users\zchen\OneDriv... | [
"zoe9955@gmail.com"
] | zoe9955@gmail.com |
8c91fe451ed5c1c240a26195a0cd2ad3ca3d65aa | 8dbe9c94291ac7ebd4630af6ec83c245d3b3ae5e | /captcha/seleniumAlertHandle.py | 8d74645e9b4da15d72ea69053f0c81fdf22dd713 | [] | no_license | stooorm521/SeleniumChromium | 2c4940f2480bb895f07092fb80e91aaf9bc66263 | 7ad118075c8aea05ad6959d09da522865bddc385 | refs/heads/master | 2020-03-14T05:10:06.215797 | 2018-05-03T00:02:38 | 2018-05-03T00:02:38 | 131,458,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# 弹窗提示
# 当你触发了某个事件之后,页面出现了弹窗提示,处理这个提示或者获取提示信息方法如下:
from selenium import webdriver
# 导入 ActionChains 类
from selenium.webdriver import ActionChains
driver = webdriver.PhantomJS()
alert = driver.switch_to.alert() | [
"Storm@ShijiedeMacBook-Pro.local"
] | Storm@ShijiedeMacBook-Pro.local |
013028572404cabae09a58b6d63b8a83b2a48bc5 | 0c9a1c936f45f801b6816bd34b4271e764e71d5c | /Site/content/urls.py | 64ffe17c544616a2562cd5e2cec4c4e4bdcb5be0 | [] | no_license | tomwhartung/hello-django | 7c7b89568901dd816a931d049fccb32cd6a58c34 | 6fb8ce136214282604bd960135ad00ac136ebed1 | refs/heads/master | 2020-04-09T21:50:43.780514 | 2018-12-07T02:26:30 | 2018-12-07T02:26:30 | 160,613,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | """ urls.py for our content app
Purpose: define the urls for this app
Author: Tom W. Hartung
Date: Fall, 2018.
Copyright: (c) 2018 Tom W. Hartung, Groja.com, and JooMoo Websites LLC.
Reference:
https://docs.djangoproject.com/en/2.1/intro/tutorial01/#write-your-first-view
"""
from django.conf.urls import *
from .... | [
"tomwhartung@gmail.com"
] | tomwhartung@gmail.com |
1f6d0891079a9ec92081eec98735c407084836d5 | f3c04b6dc0ffa9fabb51ae7c36c0b3b616f5f858 | /Algorithms/Sorting/CountingSort2.py | 33689236fa78d743c56ffd31d110f4b98c131c59 | [] | no_license | woosanguk/solve-at-day | 31f49e93678986c2dd4cc8f05b2487ee7501ec49 | f7626b939301b74d245c2ba3249fbcf468236926 | refs/heads/master | 2021-09-25T05:54:08.580502 | 2018-10-18T21:50:32 | 2018-10-18T21:50:32 | 107,080,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | """
https://www.hackerrank.com/challenges/countingsort2/problem
"""
def counting_sort_2_solve(n, arr):
ret = sorted(arr)
for v in ret:
print(v, end=" ")
if __name__ == "__main__":
counting_sort_2_solve(6, [2, 4, 6, 8, 3, 3]) | [
"baofree.uk@gmail.com"
] | baofree.uk@gmail.com |
4096758bfd741d35031827d668c50d99f31c7233 | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /A_Basic/String/L0_2696_Minimum_String_Length_After_Removing_Substrings_L0.py | e32d35c6e1bffda7f50b78e26d421076f1c6ad3e | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 267 | py | """ https://leetcode.com/problems/minimum-string-length-after-removing-substrings/
simulation
"""
class Solution:
def minLength(self, s: str) -> int:
while "AB" in s or "CD" in s:
s = s.replace('AB', '').replace('CD', '')
return len(s) | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
6d647e3ce89d17c123d228ce25d537ea905ee166 | cd541adb8fed73f65039d90f0eaa2670f290423c | /main.py | a175754b485a13516ad9833fa341ef3ff4e6e5a8 | [] | no_license | sakakendo/stamp | 8273ba9e5a05eb34123d7c6dbb376091c3bc5dac | e659e748df5ab38a5a4a04776e75c36a5f7b9790 | refs/heads/master | 2022-12-23T21:42:16.397037 | 2019-01-07T13:48:18 | 2019-01-07T13:48:18 | 159,841,025 | 0 | 0 | null | 2022-12-08T01:29:34 | 2018-11-30T15:16:47 | Python | UTF-8 | Python | false | false | 7,590 | py | import dotenv
import linebot
import os
import requests
from flask import Flask,request,session,abort,render_template
from linebot.exceptions import (
InvalidSignatureError
)
from linebot.models import (
BeaconEvent,MessageEvent,TextMessage,TextSendMessage,
)
from icecream import ic
HOST="https:... | [
"sakakendo0321@gmail.com"
] | sakakendo0321@gmail.com |
5b84cdd2fb0832be94ee1cec8730e00d015a8e0e | 6f810ca045a09f20436e3ee68198bf040e77af42 | /download.py | d431e749e42dc1ac1afb2076df42f092005d125d | [] | no_license | JF1HNL/python-google-drive | e138921a89fd0c57763332f5c9305daf99735695 | cf0facf7c5c332056a41fc4bbd13f0877d99a8d3 | refs/heads/main | 2023-08-06T09:26:09.636901 | 2021-10-12T06:01:37 | 2021-10-12T06:01:37 | 414,626,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import pickle
import os.path
import io
import sys
import const
import os
import shutil
# すでに持っているものはfile.bakに動かす
if os.path.exists("files.bak"): shutil.rmtree("files.bak")
os.rename("files", "files.bak")
os.mkdir('files')
# pip install --upgrade google-api... | [
"kimossan88@gmail.com"
] | kimossan88@gmail.com |
572c7c49a77f8d71065050b761f16bddd06eb5cb | 6430380f56756bf87e2effff228e6bcfe6afe7c2 | /main.py | 015e848fca69d6624d52e3cf77252ea6ffa7b286 | [] | no_license | isadorasophia/doenota-ocr | 88b838bc88bf7bd7338b366acfd71b67443be31a | 530cb79d2fa2c2e6be43aea42a9736213ec059c7 | refs/heads/master | 2020-12-26T11:16:21.297287 | 2015-07-27T06:21:46 | 2015-07-27T06:21:46 | 36,196,257 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | import base64
import os
import shutil
from scripts.DB import *
from scripts.extractData import *
from scripts.ocr import *
from scripts.imgProcess.process import *
rawDir = "./assets/raw/"
processedDir = "./assets/processed/"
resultsDir = "./assets/results/"
extension = ".jpg"
class ReceiptModel():
def __init__(se... | [
"isaecia@gmail.com"
] | isaecia@gmail.com |
e20b88fab5a94a1ec78321d0824e0826437788a3 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/azure-firewall/azext_firewall/vendored_sdks/v2020_07_01/v2020_07_01/operations/_load_balancer_frontend_ip_configurations_operations.py | 1a4bb634cfcdb033cf8038a3525aee6d107280e4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 9,049 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
34cdafd1ad626fcbfa47442dca32c33c62656ae3 | 3031edd9b94418ed4f82d717d388e13ca3f7edae | /fairseq/trainer.py | de08ae06d4afeba43e157dfbc8a96e6bf00bd391 | [
"BSD-3-Clause"
] | permissive | apeterswu/fairseq_mix | a591dc5f9a5c288eeab00f6ab63e42ca3d1a13ec | 0f96d323d32edfdef19773f812970a76e618aad2 | refs/heads/master | 2022-11-12T11:31:23.447737 | 2020-06-27T06:55:44 | 2020-06-27T06:55:44 | 273,871,786 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,817 | py | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
"""
Train a network across multipl... | [
"apeterswu@gmail.com"
] | apeterswu@gmail.com |
e7ed619d855ed3ca7538ebe2d7d47d1c47031add | cde9efb6423c41f54dafa3bf2b99ebd818e31752 | /time_domain/conv-tasnet/main.py | 318b2cdd0e9648800988150fb2df501c5a997520 | [] | no_license | yihliang831209/Multi-frequency-Resolution-Singing-Voice-Separation | 2f9cbf285cf094d5bd5a4be699d8b01be9f8439e | 6f601088b176bc3a8df2cb6dd6dcae9faf08e6d8 | refs/heads/main | 2023-09-05T16:49:35.050402 | 2021-11-21T12:00:14 | 2021-11-21T12:00:14 | 403,480,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,352 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 13 23:10:08 2020
@author: User
"""
from torch.utils.data import Dataset
import matplotlib.pyplot as plt
import scipy.io as sio
import torch
from torch import nn
from tasnet import ConvTasNet
from utils import sizeof_fmt
import numpy as np
import timeit
from torch.utils.t... | [
"dennis831209@gmail.com"
] | dennis831209@gmail.com |
0064d0360a4012673cf16f4dc981aed3b3ff00fc | 78727ed093b7100b98c240c101658abdddaa389a | /Sender.py | 65fc4fd1baee255dd44fd2c9bf788e8876d3083c | [] | no_license | jaddu14/Sending-Email-using-python | 25310252e187adcd91115a6f302391e15d678005 | 852ffeffdda7774c78d7a9879bba0a349f1dbc09 | refs/heads/master | 2022-12-10T22:22:39.431592 | 2020-09-05T06:27:38 | 2020-09-05T06:27:38 | 293,016,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import smtplib, ssl
smtp_server = 'smtp.gmail.com'
port = 465
sender = 'sender's Email'
password=input("Enter your password: ")
reciever = 'Reciever's Email '
message = """\
Subject: Hi There!
Form: {}
To: {}
This message was sent from python!
""".format(sender, reciever)
context = ssl.create_default_context()
... | [
"noreply@github.com"
] | jaddu14.noreply@github.com |
dd0e4f44ae509c2378d22627339e5524827ad6b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03417/s919026589.py | d737142c20505a6298fc5efd4de10b7ec76a329f | [] | 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 | 162 | py | N, M = map(int, input().split())
if N==1 and M==1:
ans = 1
elif N==1 or M==1:
ans = max(N-2,M-2)
else:
ans = N * M - ((2 * N + 2 * M) - 4)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
db77dc9ad45dda920738725edb3829bb32791983 | 3aa0293df2d31cdb2cfe52c82274e3f0f5c88e3e | /Courses/1402-craftingqualitycode-coursera/code/a1_bh.py | 463544e0332e39cfe13318ba5e69add1cb5459de | [] | no_license | BruceHad/notes-dev | 4641ba7ea4d8880cd745f62d8f34afe084774418 | ff1ebfe2294472e38edaccca981cc467c78dcbc9 | refs/heads/master | 2016-09-01T05:16:29.383267 | 2016-04-18T18:51:23 | 2016-04-18T18:51:23 | 54,989,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | import math
def num_buses(n):
""" (int) -> int
Precondition: n >= 0
Return the minimum number of buses required to transport n people.
Each bus can hold 50 people.
>>> num_buses(75)
2
>>> num_buses(0)
0
>>> num_buses(1)
1
>>> num_buses(49)
1
>>> num_buses(50)
... | [
"bahadden@gmail.com"
] | bahadden@gmail.com |
883c00b68de3119a7cfade048fa15b921c0e8df6 | 92333037243c4c7a808d26657df8fe5e764217b0 | /PartialFunc.py | 23606b069450754645a3c68d7f6c98649384dc37 | [] | no_license | dragonOrTiger/pythonDemo | 0aab11c7ce758963621d2c4675802640cdc932e0 | 26de12da050c6eadf4e62ca67d193650c3d5c648 | refs/heads/master | 2020-04-06T07:12:27.875226 | 2016-08-25T10:22:46 | 2016-08-25T10:22:46 | 65,807,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | #在介绍函数参数的时候,我们讲到,通过设定参数的默认值,可以降低函数调用的难度。
#而偏函数也可以做到这一点
#int()函数可以把字符串转换为整数,当仅传入字符串时,int()函数默认按照十进制转换
print(int('12345'))
#但int()函数还提供额外的base参数,默认值是10。如果传入base参数,就可以做N进制的转换
print(int('12345',base=8))
print(int('12345',16))
#假设要转换大量的二进制字符串,每次都传入int(x,base=2)非常麻烦
#于是我们想到,可以定义一个int2()函数,默认把base=2传进去
def int2(x,base=2):
... | [
"shiyongjie@neusoft.com"
] | shiyongjie@neusoft.com |
ee3af8353dcbf249ff2c3045064b1b52bce07d6f | 10c42f1e6486b02997ceaeb3e70d091012b72a80 | /scipy/integrate/odepack.py | 7bb4c1a8c9be375df855abe6e1b30ca9711f2607 | [
"BSD-2-Clause",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"Qhull"
] | permissive | andyfaff/scipy | 453a9c9b6f7e6f3d0d00ead85288928df0634131 | 5e136d908a50f18a7a99d0d6645d5cae957dc737 | refs/heads/main | 2023-09-01T15:48:52.494964 | 2023-08-26T12:51:14 | 2023-08-26T12:51:14 | 17,390,686 | 2 | 5 | BSD-3-Clause | 2023-09-10T23:57:03 | 2014-03-04T04:46:50 | Python | UTF-8 | Python | false | false | 545 | py | # This file is not meant for public use and will be removed in SciPy v2.0.0.
# Use the `scipy.integrate` namespace for importing the functions
# included below.
from scipy._lib.deprecation import _sub_module_deprecation
__all__ = ['odeint', 'ODEintWarning'] # noqa: F822
def __dir__():
return __all__
def __ge... | [
"noreply@github.com"
] | andyfaff.noreply@github.com |
cd4915a01e980729f996c998d8289b62a7becfeb | db6901abe45c8b1cf3f38d9749141cc9213de2e7 | /devel/lib/python2.7/dist-packages/mavros_msgs/srv/_FileOpen.py | 2c90d75a855a86d367cb75e4c249be5ff2e3e364 | [] | no_license | amilearning/MAV_competition_mavros_ws | e95f5f66dac995538c9a682ec243deebf81b451a | 303a5272fd47e1a0382c8f769623d7cfddb1ebe3 | refs/heads/master | 2023-06-24T11:25:47.592856 | 2021-07-20T16:17:34 | 2021-07-20T16:17:34 | 387,848,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/hojin/drone_ws2/mavros_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/srv/_FileOpen.py | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
089dcf86fe7a83420b58a8349209e3c75495d1d3 | 82555a905d550196b01099f3b8d83aff29595eb5 | /app.py | 1e54cf82f1bae2349da38cb5510fc0c08e666d79 | [] | no_license | epickiller1011/epickiller1011.1 | 3f08842bb241049a79f32322b26a522e532a7dcf | 97fd099f7a3125e05e6c559c5beabbff3b8f2b01 | refs/heads/master | 2022-07-29T13:41:02.862632 | 2020-06-20T16:59:06 | 2020-06-20T16:59:06 | 273,740,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | from __future__ import division, print_function
# coding=utf-8
import numpy as np
from keras.backend import clear_session
import keras
from keras.applications import vgg16
from keras.applications.imagenet_utils import preprocess_input, decode_predictions
from keras.preprocessing import image
from keras.prepr... | [
"noreply@github.com"
] | epickiller1011.noreply@github.com |
0f179f35be6cbb8dbba9f08f2848157a749982de | 7abc9f8a20cd4de325e96bf38bd26e59da573b45 | /commands/main_menu.py | 3cf89e4e86fef0c1d7c685f484659a35894b5196 | [] | no_license | tamkovich/Finagram | 38c691d27f1a556ded354b009b12b60a61c6b558 | 9d33248e0328891f2c353e8745853b8bc6dfd2f5 | refs/heads/master | 2020-04-03T22:47:54.034175 | 2018-12-01T07:09:12 | 2018-12-01T07:09:12 | 155,609,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from logic_application.bot_talk import VARS, COMMENT_VARS
import command_system
def menu(*args, **kwargs):
message = '*FinGram* - это Ваш персональный консультат, который обьяснит как открыть, ' \
'сопровождать и в случае неудачи закрыть ИП. \nРобот поможет Вам определится с ' \
'выбор... | [
"jaselnikpromise@gmail.com"
] | jaselnikpromise@gmail.com |
a63847d16a5659cf9848a8ac2931d97697e9e4bc | 6d233ad2059a941e4ce4c5b5ee3857b8a4a0d212 | /Everyday_alg/2021/06/2021_06_07/fei-bo-na-qi-shu-lie-lcof.py | 848b7cc8f43e8e03c8af76b43b1a7696200a53d7 | [] | no_license | Alexanderklau/Algorithm | 7c38af7debbe850dfc7b99cdadbf0f8f89141fc6 | eac05f637a55bfcc342fa9fc4af4e2dd4156ea43 | refs/heads/master | 2022-06-12T21:07:23.635224 | 2022-06-12T08:12:07 | 2022-06-12T08:12:07 | 83,501,915 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # coding: utf-8
__author__ = "lau.wenbo"
"""
写一个函数,输入 n ,求斐波那契(Fibonacci)数列的第 n 项(即 F(N))。斐波那契数列的定义如下:
F(0) = 0, F(1) = 1
F(N) = F(N - 1) + F(N - 2), 其中 N > 1.
斐波那契数列由 0 和 1 开始,之后的斐波那契数就是由之前的两数相加而得出。
答案需要取模 1e9+7(1000000007),如计算初始结果为:1000000008,请返回 1。
示例 1:
输入:n = 2
输出:1
示例 2:
输入:n = 5
输出:5
"""
class Solutio... | [
"429095816@qq.com"
] | 429095816@qq.com |
af0f71bfb54ec732cacdeb845dee774901d59bc0 | 7e195dcc670a4c7d55028dcd149813dcc9ecdefa | /Lab 3.1.py | 2a1f82e803f3a488f4d65da26538b1b871dfa12e | [] | no_license | 1201200309-AlvinChen/DPL5211 | ca7b3a986cd23d0ea4ed4719210bdb2933223bd5 | cc0d34b4a859fcae409f14f93780bf51f4775069 | refs/heads/main | 2023-08-12T23:48:31.229792 | 2021-10-11T03:04:36 | 2021-10-11T03:04:36 | 403,466,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # Student ID : 1201200309
# Student Name : Alvin Chen
# if (cur_balance < 0) {
# printf("Your balance is insufficient")
# }
# printf("Thank you for the payment")
cur_balance = 30.12
if cur_balance < 0:
print("Your balance is insufficient")
| [
"noreply@github.com"
] | 1201200309-AlvinChen.noreply@github.com |
b531d1908021e047584bcc73db34af36af58b774 | beac1893280e28fca6c2ca53cd1138e708512bc5 | /project/bin/pip2.7 | a90d97ae525c9809382e73bf8321a4789b44f7d0 | [] | no_license | istanfield09/eventful | 9cc325d239c206a2c9b605270cd1fb2836590196 | f10866bba0de8861e0585195b309b55b3be61865 | refs/heads/master | 2021-01-01T06:18:27.134407 | 2015-03-26T18:43:36 | 2015-03-26T18:43:36 | 32,719,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | 7 | #!/Users/ianstanfield/Documents/Development/eventful/project/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ianstanfield@ians-air.attlocal.net"
] | ianstanfield@ians-air.attlocal.net |
b1b73b9a0bfada0331cb730c5b4dad4d2661af38 | a343b3414127943e9c4de4e1db62858af19a059e | /CodeUp/CodeUp_6028.py | 439bb0903e2c6ce50ee1b62eb4541281b215f289 | [] | no_license | axg1/Algorithm_Study | 9b4b69906452ab17d36c89e484dc38e3c503e3ff | 08c7fa49e322fc49fc3d26355b19d33ab0a5350a | refs/heads/main | 2023-06-18T08:15:15.781372 | 2021-07-08T12:18:05 | 2021-07-08T12:18:05 | 373,360,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | a = input()
a = int(a)
print('%X'%a) | [
"axg1@naver.com"
] | axg1@naver.com |
f39c3a11e241c378954b5aae955f8025560a05d0 | fe38e0cd229059d828dfd593baee3816fb0f334d | /leetcode-python/MEDIUM_739-daily_temperatures.py | dbd0dc89c812bf088925595ff8a99b98799deb27 | [] | no_license | shyam81295/CODING | 4de03a9690dadd5330b2fddf7030949260a93202 | 5933e63675a21a68b07a7e852f2db5caf6169743 | refs/heads/master | 2021-06-03T18:51:00.708220 | 2020-12-06T23:35:15 | 2020-12-06T23:35:15 | 102,181,335 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # calculate index of next greater element
# O(N) time, O(N) space complexity with stack
class Solution:
def dailyTemperatures(self, T: List[int]) -> List[int]:
ans_list = [-1]*len(T)
stack_list = []
if T:
i = 0
stack_list.append(0)
# doStuff only when there i... | [
"noreply@github.com"
] | shyam81295.noreply@github.com |
ac057b9330fe9a10dbaf5923c186c29de9d12341 | 0f0623da91fb2cdfc1202c744b24c24a58918b66 | /polls/migrations/0001_initial.py | 47f94a311aa6dbc4aa12f003c9bbb327b7ec3859 | [] | no_license | lakipiece/django | 647e090c14b30ce0ce1e7e43071f3c7649441831 | f89ccb285cef5795b37681c4cf2ab86930bb25f4 | refs/heads/master | 2023-01-24T10:53:21.299039 | 2020-11-26T02:01:15 | 2020-11-26T02:01:15 | 314,436,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | # Generated by Django 3.1.3 on 2020-11-20 03:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"root@ip-172-31-47-121.ap-northeast-2.compute.internal"
] | root@ip-172-31-47-121.ap-northeast-2.compute.internal |
8eae46bddf63d355abb394a8602f8e03f3b9d72c | 06da2c3905690ce7f42fdd1ed923ce29a29e6c91 | /pathfinder.py | d8c550d095e8d3d45ebbe303ecd2ddb191562d12 | [] | no_license | SUJU16/scripts | eada4c5d399e68a8388c367514d34de939100fc6 | 5da3cd932ebb138ca5ebe9d4b8228e5846f66fce | refs/heads/master | 2020-06-21T14:49:29.285086 | 2016-11-27T04:41:46 | 2016-11-27T04:41:46 | 74,783,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | from sets import Set
import googlemaps
from datetime import datetime
import json
import sys
import time
gmaps = googlemaps.Client(key='AIzaSyD-EkE2N4ULYVKqvd3RpHiy-gQeAVT2fNo')
def log(s):
pass
#print(s)
def cost(time, count):
#print(time, count)
#print(1.0*time/(count*count))
time = time/60.0
return time/(cou... | [
"henri.nurmi@kapsi.fi"
] | henri.nurmi@kapsi.fi |
e0a234336de31c9505d7dc85a013051f71da125f | 27f31099ad52e9f6f06f2065f93e78b6d30911e5 | /hpcMpi/scripts/hpcMpiIntegralPar.py | c457988b133b3b4364ed98bb6349dbc41fa989ee | [] | no_license | CamilleINGOUF/M2_HPC | 2034c6bc69248d25ecaeb8a3c0cf2e7c91271676 | 2824f4c8b1f1df0fdd588d21cadce854b59559c9 | refs/heads/master | 2020-04-15T21:06:21.166035 | 2019-01-30T15:54:50 | 2019-01-30T15:54:50 | 165,020,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | #!/usr/bin/env python3
import hpcMpi
import sys
import time as t
from mpi4py import MPI
import numpy as np
if __name__ == '__main__':
# parse command line arguments
step = 1e-3
if len(sys.argv) == 2:
step = float(sys.argv[1])
# compute
comm = MPI.COMM_WORLD
worldRank = comm.Get_rank... | [
"ingouf.camille@gmail.com"
] | ingouf.camille@gmail.com |
b8dda302ffc3569085e0ac3b118d55dea1cf3154 | 644bcdabf35261e07c2abed75986d70f736cb414 | /python-project/Vrac/courbe_dragon.py | df72ad3ecea41d031fe9489c5ff00c20c9b27aca | [] | no_license | matcianfa/playground-X1rXTswJ | f967ab2c2cf3905becafb6d77e89a31414d014de | 67859b496e407200afb2b1d2b32bba5ed0fcc3f0 | refs/heads/master | 2023-04-03T11:56:15.878757 | 2023-03-24T15:52:37 | 2023-03-24T15:52:37 | 122,226,979 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def pliage(k):
#Ne pas toucher ce qui précède
#Les valeurs pour les variables en entrée seront automatiquement données
#Ecrire ci-dessous en n'oubliant pas d'indenter
| [
"noreply@github.com"
] | matcianfa.noreply@github.com |
06ef47958aa2a2e49563063f380eaad5995c45f6 | 8f757fcec669701eb86cb155868b7c450b7eddc0 | /tools/input_company_info.py | 0276c247fe529a539a7b892eb56ecef14f874df0 | [] | no_license | NIT-WATER/Frank-Yue-Job-push | 2c25a051a79658db90b996f85bcb4f41a6ad0745 | 0a79841e66e142f67d2f8881bbd85c2544be9677 | refs/heads/master | 2022-12-01T01:46:32.506194 | 2020-07-12T14:41:11 | 2020-07-12T14:41:11 | 279,064,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import json
import time
import sys
import os
sys.path.append("..")
from common.test_tool import *
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='')
parser.add_argument('--company_name', default = '', help = 'Company name.')
parser.add_argument(... | [
"715339137@qq.com"
] | 715339137@qq.com |
66f7615f781cb69b7a6ac36da6c6ded2f25397a0 | d7878b992d055b8b9849f68ccf2ea47e7e418995 | /models/server_db_access.py | 5eed3ef1bb3d586ea992d4e3aadcea53d57a5818 | [] | no_license | Rk85/Http-Request-Response-Builder | b455c0c59227680a54663c84c2d11f407f8ca3d9 | 6a0673c9772fd5088236a9fd2c8842bde179b7bc | refs/heads/master | 2020-06-03T05:23:58.736467 | 2014-08-15T12:59:17 | 2014-08-15T12:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | from db_tables.db_base import session
from db_tables.http_response import HttpResponse, HttpSubResponse
from db_tables.http_request import HttpRequest, HttpSubRequest
from db_tables.http_tests import HttpTestResults, HttpServerTestFailureReason
import logging
logger = logging.getLogger()
def get_response(request_uri=... | [
"rachandkrishnan@gmail.com"
] | rachandkrishnan@gmail.com |
c296acbae8c58bc200be0034fe92cec6a634c534 | 310185d697d397ed4f531d46bb1ae357886ddd80 | /exercise8/exercise8.5.py | ab1ba56686ab11b41e6fb5e2bf8f745bda49e56f | [
"MIT"
] | permissive | srfunksensei/think-python | 70d42d4afe63164588fb83bf70d7140d801824dc | a17fc81b316cd2e873b169e0090eae620442df99 | refs/heads/main | 2023-06-09T05:21:11.815623 | 2021-07-06T06:34:33 | 2021-07-06T06:34:33 | 371,041,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | def count(word, search_letter):
"""Encapsulate this code in a function named count, and generalize it so that it accepts
the string and the letter as arguments"""
letter_count = 0
for letter in word:
if letter == search_letter:
letter_count = letter_count + 1
print(letter_count)
co... | [
"sr.funk.sensei@gmail.com"
] | sr.funk.sensei@gmail.com |
9fc75b5bc0a6ff682cb73bb15f0b3b63e2544b95 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2067/60829/272898.py | edaae49580762e8667a986c59a9230d43349ee36 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | def r(s):
a = {1:'I', 5:'V', 10:'X', 50:'L', 100:'C', 500:'D',1000:'M'}
sum=""
while not s==0:
for i in range(0,7):
if a[i]
return sum
print(r(int(input()))) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
014312742a246a4737c55570b56317fca91f7717 | f433f7c884729e697ae110fa5a795dcc04449e42 | /Code_tianyu/AA_ddpg_iLQR - control/iRELAX.py | 4c8314f5755f78bbd0e863ed083e4c93313f7a14 | [] | no_license | hzm2016/iLQG | f05fbf98543f2a016cee1ced1e6562b65748a262 | 5b3d5712ece14cbe6aefda00535c65149c27d313 | refs/heads/master | 2020-06-01T17:04:37.135285 | 2019-06-08T07:38:23 | 2019-06-08T07:38:23 | 190,858,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import numpy as np
from iLSTM import BATCH_MANAGE
from iENV import Env_PeginHole
import time
import winsound
NUM_DEMON = 10
if __name__ == '__main__':
# 主程序
env = Env_PeginHole() # 初始化机器人环境
env.connectRobot(False)
batchm = BATCH_MANAGE(s_dim=4, a_dim=3)
process = env.reset_demons... | [
"houzhimin@houzhimindeMacBook-Pro.local"
] | houzhimin@houzhimindeMacBook-Pro.local |
746fd79298ca8f4cf4fd7b55c2319bb2bea32863 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Route/test_c141124.py | f446a2cce896243072511568369a8b51bcdd2464 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,220 | py | import pytest
import time
import sys
from page_obj.common.rail import *
from os.path import dirname, abspath
from page_obj.common.ssh import *
from page_obj.scg.scg_def_policy_route import *
from page_obj.scg.scg_def_interface import *
from page_obj.scg.scg_def_obj import *
from page_obj.scg.scg_def_ifname_OEM... | [
"15501866985@163.com"
] | 15501866985@163.com |
6f309cdf64481250d7b27e4de0d32d8524694c66 | f3cd8af6df7f87088d7d25233bcef25cf1f9672c | /constant.py | eaeebe66e48b65bbb1209063ebd91187685fb282 | [] | no_license | cash2one/rankScript | 9a8c16e63e53082944b3eaff2d8ec286ef5f3e65 | ea906c069b6a8a799616e605bb8ab3464d96a71b | refs/heads/master | 2021-05-06T02:01:36.125795 | 2017-12-01T06:33:28 | 2017-12-01T06:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | # encoding=gb18030
lib_path = "/search/odin/taoyongbo/rank/beta/scala_spark/lib"
jar_path = "/search/odin/taoyongbo/rank/beta/scala_spark/"
java_jar_path = "/search/odin/taoyongbo/rank/java_spark/"
local_featurePoi_path = '/search/odin/taoyongbo/rank/featurePoi/'
local_city_featurePoi_path = '/search/odin/taoyongbo/ran... | [
"mvplove123@163.com"
] | mvplove123@163.com |
ab5bca1d1cb2f0d736bed26afdb88348a6e30d93 | 32003ce9b76266c44372d1732dd91ea961e3d745 | /hras/wsgi.py | 205e5a49c6c2b8f160fd44e370226f58c8cd7a5c | [] | no_license | mansimishra007/MySpace | 20cf1464652065d70caacc0c7cd3379af993f7e2 | 5ce502ee46b5175563050027775c5f078741649c | refs/heads/main | 2023-04-04T11:33:54.564119 | 2021-04-10T17:48:43 | 2021-04-10T17:48:43 | 356,621,714 | 0 | 0 | null | 2021-04-10T15:27:05 | 2021-04-10T15:27:05 | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for hras project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"43030745+divyanayal@users.noreply.github.com"
] | 43030745+divyanayal@users.noreply.github.com |
436b83fd99158f794f2f21a55805f8b6fdea2b36 | 4e9e4b2aa28113e307c87cd6c777d7498fd85b0a | /tests/connections.py | 5f0828fe45657e3d6e695afb80fd28f3b936e88a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"MIT"
] | permissive | kuychaco/CCF | b0608e4f241a1c0dfa1c3f72021b4b4d786e0e02 | e11acde3be6a7d2213fe5b406b959bb5bb64361d | refs/heads/master | 2020-12-23T05:14:45.012959 | 2020-01-29T17:49:12 | 2020-01-29T17:49:12 | 237,045,643 | 1 | 0 | Apache-2.0 | 2020-01-29T17:45:36 | 2020-01-29T17:45:35 | null | UTF-8 | Python | false | false | 3,246 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
import sys
import os
import infra.proc
import infra.e2e_args
import getpass
import os
import time
import logging
import multiprocessing
from random import seed
import infra.ccf
import infra.proc
import json
import cont... | [
"noreply@github.com"
] | kuychaco.noreply@github.com |
c9da4ced89196a0e15b9976948e8446af1aa9be2 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/config/ConfigImpact.py | 01f09b71d0f53fa8cd618594fad9815d0d10bb79 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,898 | py | """This module contains the general information for ConfigImpact ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class ConfigImpactConsts():
CONFIG_STATE_APPLIED = "applied"
CONFIG_STATE_APPLY... | [
"test@cisco.com"
] | test@cisco.com |
463b99799fdcd59cd3be2436f5ecda106f900404 | 5d95fec0ae2757089170f1f667e14e0fe39c8a63 | /contacts_and_people/migrations/0024_directory_plugin.py | 2e743e60d8c1e72009d9117f2ad3e2f9043693a3 | [
"BSD-2-Clause"
] | permissive | smurp/Arkestra | da3d1c4955f3bbbbcc139dea617851ffc199a200 | 599a561cb5dc2296901bb67344a816ee45cd91cd | refs/heads/master | 2021-01-18T10:34:14.857750 | 2012-03-14T11:23:28 | 2012-03-14T11:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,869 | py |
from south.db import db
from django.db import models
from contacts_and_people.models import *
class Migration:
def forwards(self, orm):
# Adding field 'EntityDirectoryPluginEditor.levels'
db.add_column('cmsplugin_entitydirectoryplugineditor', 'levels', orm['contacts_and_people.entity... | [
"daniele@apple-juice.co.uk"
] | daniele@apple-juice.co.uk |
50cba92bdbcf88d85873297617f28e1165a12621 | 6f33381dcb19a042d916b4a452f9cb7438729798 | /jabba/test/test_util/test_convert_path.py | 73d2fca353a41f8c194a165553d65881bb8dbaf4 | [
"MIT"
] | permissive | puppetlabs/jabba | 8308adf5be9ba25efb414f384bf3568854be55e2 | 71c1d008ab497020fba6ffa12a600721eb3f5ef7 | refs/heads/master | 2023-06-13T09:17:49.274408 | 2017-06-30T11:02:27 | 2017-06-30T11:02:27 | 185,443,592 | 0 | 1 | null | 2019-05-07T16:54:03 | 2019-05-07T16:54:02 | null | UTF-8 | Python | false | false | 862 | py |
import unittest
import sys
import os
sys.path.append("../")
sys.path.append("../../")
from jabba import util
class TestConvertPath(unittest.TestCase):
def testThrowsForAbsPath(self):
with self.assertRaises(Exception) as context:
util.convert_path('/abs/path')
self.assertTrue('Canno... | [
"rebovykin@gmail.com"
] | rebovykin@gmail.com |
8d3721f1d76e4f50f9c62bed191c61ec0ef6f49c | d547e16fcea3a1dce5a935b001e2095e5708de33 | /WTF/WTF.gypi | 0b396fc1fb565bf4835580948a0a52587dc2ec90 | [] | no_license | rognar/webkit-wince-5-6-7-2013-mobile- | a9c963257a56d606fdd2a226e9001fd49e644958 | 1a7fde35a7da9eacfbfc7fd88de13a359408affc | refs/heads/master | 2022-04-11T01:02:02.992600 | 2020-04-10T20:23:55 | 2020-04-10T20:23:55 | 254,726,862 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,969 | gypi | {
'variables': {
'project_dir': ['.'],
'wtf_privateheader_files': [
'wtf/ASCIICType.h',
'wtf/AVLTree.h',
'wtf/Alignment.h',
'wtf/AlwaysInline.h',
'wtf/Assertions.h',
'wtf/Atomics.h',
'wtf/BitArray.h',
'wt... | [
"krybas@tau-technologies.com"
] | krybas@tau-technologies.com |
b80b9886cbd796c8119c949ece1f263ff06defb9 | 981a006a2c63082e36e67d0a273d89698c910cb9 | /classy_vision/hooks/torchscript_hook.py | 96956fac1078b77e4da1465e1ce4997e90c8b78b | [
"MIT"
] | permissive | elrach/ClassyVision | 8d3aa5e431868dc3f657efa395ec7d67a72df0d2 | ac2993df04dcb85d1ad85cc020da1ac9cfa28066 | refs/heads/master | 2022-12-23T10:22:11.757461 | 2020-09-12T06:20:38 | 2020-09-12T06:23:14 | 295,558,705 | 0 | 0 | MIT | 2020-09-14T23:05:00 | 2020-09-14T23:04:59 | null | UTF-8 | Python | false | false | 3,384 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import torch
from classy_vision.generic.distributed_util import is_primary
from classy_vision.generic.u... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b766b397400af50688bf8558c7a4d5c3081c81db | 22ac0c3ac59bdde3349ffb7cfbf820bfafa1c7c0 | /Chapter6.py | d2c5320b75fa53f8fdef0e7665fdd2b823366e13 | [] | no_license | OneHandKlap/Data-Structures | ae3aa105b732b37b22c5be31eefc3184b6f33a06 | 8e5ed038d9f9bd1e988aada6cb90221b621ac8d6 | refs/heads/master | 2020-07-23T01:02:07.712731 | 2019-12-04T23:46:20 | 2019-12-04T23:46:20 | 207,393,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | def bubble_sort(arr):
for i in range(len(arr)-1):
swapped_items=False
for j in range(len(arr)-1):
if arr[j]>arr[j+1]:
swapped_items=True
arr[j],arr[j+1]=arr[j+1],arr[j]
if swapped_items==False:
return arr
return arr
def recursive_... | [
"a.aboud10@gmail.com"
] | a.aboud10@gmail.com |
1c8de7cb1a7641f7811f665200cec89318684979 | b883baf9a5214f97e6ebee484db5f9750f9fd864 | /bin/gifmaker.py | 41861e385902f8566e50763f7e7e4f031de31a0f | [] | no_license | alsi3dy/New | 6298c316c45349f2755b3352a6ebf7daff74f0fe | 9f6dcba307206b9390b7003671e45eeb6b299fe5 | refs/heads/master | 2021-01-02T08:35:19.412607 | 2017-08-06T15:03:01 | 2017-08-06T15:03:01 | 99,021,474 | 0 | 0 | null | 2017-08-02T16:46:41 | 2017-08-01T16:24:44 | Python | UTF-8 | Python | false | false | 681 | py | #!/Users/soudalrashed/Development/Mah_Shed/New/bin/python3
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
# Copyright (c) Secret Labs AB 1997. All rights reserved.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for informat... | [
"soud94@gmail.com"
] | soud94@gmail.com |
52a3708a8f2f489b24828448c92b3339daaf2c86 | 18920960453ac1113918fab9e78818850f2fe106 | /bin/rst2html.py | 3d7c8777005bdf778192f7ecec4e2d34e0ca90da | [] | no_license | rinalnov/test-serverless-web | 59bb549cbaa88809ecbd57e7f564b85b5bd3b591 | f5838ccda079785e3ecc7f8261fb5d8a6ad30981 | refs/heads/develop | 2022-11-30T09:44:13.012418 | 2018-06-26T07:19:01 | 2018-06-26T07:19:01 | 138,563,002 | 0 | 1 | null | 2022-11-28T04:39:17 | 2018-06-25T08:07:08 | Python | UTF-8 | Python | false | false | 664 | py | #!/Users/rinalnov/Documents/Learning Project/Flask-Serverless/flask-sample/bin/python3.6
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML.... | [
""
] | |
cfcf58ffedee1d956c388e1a38f003912fe3ebb0 | 0c08a15045b24b56bdb42dff5cf210f9bee6827f | /bin/rst2latex.py | 149ac2bb90e4c238ee73533db64356ab743a06e9 | [
"MIT"
] | permissive | squadran2003/family-album | 205d6f4a7256e466506d796d7da37a0eeff65fe3 | eae75987e4786255269ecee2482d715ae2229db2 | refs/heads/master | 2022-12-05T00:19:29.629432 | 2019-01-20T13:10:22 | 2019-01-20T13:10:22 | 165,837,569 | 0 | 0 | MIT | 2022-11-22T03:23:44 | 2019-01-15T11:15:38 | JavaScript | UTF-8 | Python | false | false | 829 | py | #!/Users/andreascormack/Desktop/family-album/bin/python3
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
... | [
"cormackandy@hotmail.com"
] | cormackandy@hotmail.com |
99f0f020c8daa526cd6880b5c7e6c9353f21974e | 59f35ab81cb00b7ef38bbbcd4d910c98b9024bfc | /os_splitting/os_connector.py | fa284dda4faed735b4f4dc5bfabe737b395e01ae | [] | no_license | apcrumbleton/Openstack_exercises | 0a1dcaadbe094b410edb2f4b695c1a2ae632e03c | 10253d79c42c61ef8fa7b1b03653e053b093b763 | refs/heads/master | 2021-06-14T06:14:42.112088 | 2017-05-07T07:23:30 | 2017-05-07T07:23:30 | 75,179,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | ../os_connector.py | [
"a.p.crumbleton@gmail.com"
] | a.p.crumbleton@gmail.com |
0a788d2fa281b70172a82ea0316ce99ec1723664 | 36cf8716e59832d9a53833789e928400ab007bcd | /tk15.py | 86be6a47c0213bf69449e4d09219a89f85e64b6b | [
"MIT"
] | permissive | visalpop/tkinter_sample | f4fc751aa4e652371b23075d2c8aef4baf3fafec | 15474250431727e2b24b6f6aebc654c36ccf8d87 | refs/heads/main | 2023-02-25T16:05:50.004039 | 2021-02-03T00:34:56 | 2021-02-03T00:34:56 | 332,957,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # -*- coding: utf-8 -*-
# tk15.pyw
import tkinter as tk
root = tk.Tk()
root.geometry("300x270")
ms_dict={}
for bw_int in range(1,6):
bw_str=str(bw_int)
ms_dict[bw_str]=tk.Message(text="borderwidth="+bw_str,relief="ridge",bd=bw_int)
ms_dict[bw_str].pack()
root.mainloop() | [
"vkkulathunga@gmail.com"
] | vkkulathunga@gmail.com |
c29b80a7634d228e3b483a5e45f45b0ae4c31382 | 0f05dbc813c8868d2d81989655ea73dc4b891687 | /myenv/bin/django-admin | b3b5d1f8c84140fcaee2734112eb24bacf4889e6 | [] | no_license | cristianacmc/Motogirls | 69787a67bbfd67605230c8e1504feccc3749a913 | 436d207bf8adcdf49d3425a331fae3cb29ac0983 | refs/heads/master | 2021-01-10T12:41:40.659670 | 2015-10-13T00:50:18 | 2015-10-13T00:50:18 | 43,902,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | #!/home/cristiana/moto/myenv/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"cristianacmc@gmail.com"
] | cristianacmc@gmail.com | |
29994c4e89e904cba2ed6c68dd3447b5dd75056f | da8422d2c8e58dfc987cf5ef27d46528940144f6 | /clap/groups/groups/zabbix.py | 7394d821bddc666a90f6345fbe24ef9b3ae59c8e | [] | no_license | MatheusFerraroni/opm-mo833 | 9d5bfd4fa662b3783e8f38d7a2b47fb81dd4a760 | 1b8d1de70bfb15d1dbab25c3a2040bd08ae41858 | refs/heads/master | 2022-11-10T12:38:57.804758 | 2020-06-26T16:28:03 | 2020-06-26T16:28:03 | 266,851,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | playbook = 'roles/zabbix.yml'
actions = ['setup', 'pause', 'resume']
| [
"matheussanches531@gmail.com"
] | matheussanches531@gmail.com |
292d6373b7cb870c9d07724363112b448af7861b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_073/ch18_2019_09_03_18_23_34_599532.py | e7e7fc4a92c25b12a4d9cd23ac9b3be334cf68c1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | def encontra_cateto(h,c2):
c1=((h**2)-(c2**2))**1/2
return c1 | [
"you@example.com"
] | you@example.com |
72fde0b5cb7ccf36f125e4ab4d51e343281998ef | a20aa57231a60a0f50ce31c8d88a566b3323bf13 | /09-About_Dictionary.py | 97d987cc989ad3f2960d686703bed71c49826700 | [] | no_license | nirupam1sharma/Python-3-Beginner-to-advanced | d2f7eb43332c52b6241bbafecd5936b5a04385a1 | 1147c4698aaf3a9a71ee6f4c6122b6e139050de0 | refs/heads/master | 2020-04-06T10:55:37.426504 | 2018-10-07T11:35:48 | 2018-10-07T11:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | '''
### All about Dictionary ###
Dictionaray store value using key (key:value).
We can access value using key.
Dictionary use Curly braces.
'''
# 1-Create Dictionary
print('\n1-Create Dictionary')
dicts={'name':'narsi','age':20}
print(dicts)
# 2-Access Dictionary Using key
print('\n2-Access... | [
"noreply@github.com"
] | nirupam1sharma.noreply@github.com |
13ad4fa649a533c1adb98e8b27579c61a6e295e3 | 7813c391a020a013a9f97cb9cb150ea499175d2b | /demo_pointcloud_alignment.py | 82c5a810dc665d4eac9c6127c41e62de8644c973 | [] | no_license | feixh/tensorflow_se3 | 02d19ae90d8c2cd4afac96f63692d2e9b7d3e16c | baa1cc40b32b076afd6f461f41cdb09dbc0222a9 | refs/heads/master | 2021-03-27T10:51:48.077985 | 2018-01-16T20:57:10 | 2018-01-16T20:57:10 | 117,741,015 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import so3
import cv2
import numpy as np
import tensorflow as tf
NUM_POINTS = 100
if __name__ == '__main__':
w_gt = np.random.random(3)-0.5
Rgt, _ = cv2.Rodrigues(w_gt)
Rgt = Rgt.astype(np.float32)
src_pc = np.random.random([3, NUM_POINTS])
tgt_pc = Rgt.dot(src_pc)
# problem: given two sets o... | [
"hzhsfxh@gmail.com"
] | hzhsfxh@gmail.com |
13a0982b336fcf323545e33e93c902c4b1e0bd81 | eed77d9eee4636984a5d92681e86ad1894a3e124 | /regresi_prabowo_suara_sah.py | 307306a0112d456e47e439aa525769cc1a250dbb | [] | no_license | haditiyawijaya/uasdatamanajemen | 555d4a9f8dc1a471bc4a2ec361a9fde5c82e825d | 9a6542e689694cf7b2d13cf31720cc4a6523ac5f | refs/heads/master | 2020-05-26T19:39:03.961633 | 2019-05-30T19:37:58 | 2019-05-30T19:37:58 | 188,351,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | # import libraries
from bs4 import BeautifulSoup
#import urllib.request
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import csv
import time
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#from sklearn.model_selection import train_test_split
#from sklearn.l... | [
"noreply@github.com"
] | haditiyawijaya.noreply@github.com |
8479567e4fa7714fb6f47bca0f6a11fbd51f4fe9 | 20a1f277a55b9e4a49c0d5e112a1e16aa46a1fb9 | /Legacy/Cripto/CriptoQLearning/Functions.py | 63b499477c5e70c1b921f7a7b9714f34e2bcea55 | [] | no_license | richimf/CryptoBot | dec76d3ad90fdb59336966d826cc60bcb803510e | 5ced039fef469263935e95ff78201ee69fb908b1 | refs/heads/master | 2021-07-16T19:39:04.682510 | 2021-07-12T21:04:43 | 2021-07-12T21:04:43 | 137,505,888 | 2 | 4 | null | 2021-07-12T21:35:01 | 2018-06-15T15:48:10 | Python | UTF-8 | Python | false | false | 866 | py | import numpy as np
import math
# prints formatted price
def formatPrice(n):
return ("-$" if n < 0 else "$") + "{0:.2f}".format(abs(n))
# returns the vector containing stock data from a fixed file
def getStockDataVec(key):
vec = []
lines = open("/Users/richie/Documents/GitHub/Botcito/Cripto/CriptoQLearni... | [
"richimf1@gmail.com"
] | richimf1@gmail.com |
d659cca83103609b2a36ee1ddf6450e694eef02f | b0fa1b5780b4b7b9f6f8a00d87b2510170869f08 | /ejemploAPI/drf_cliente/cliente/cliente/wsgi.py | 5c1e5e4e4d6a000c13d2dd1ad3f1c2106cb768d7 | [] | no_license | eduardoo12/Floreria | 847862978bc5b32626182f42bf556b24dae80839 | 5faea73dda5795145a769db66abbba675eedead0 | refs/heads/master | 2020-11-25T02:56:48.877730 | 2019-12-16T20:13:39 | 2019-12-16T20:13:39 | 228,465,179 | 0 | 0 | null | 2019-12-16T21:02:51 | 2019-12-16T19:59:33 | Python | UTF-8 | Python | false | false | 391 | py | """
WSGI config for cliente 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('DJANGO_SETTI... | [
"eduardo@gmail.com"
] | eduardo@gmail.com |
8cf58fb81bf473b64f505c995d4245d0f542b663 | 219e1268f04a6d59424875d1620254b6bd2741e2 | /LeetCode/reorderDataInLogFIle.py | 60731bca8d8dec5a18b9d734c15335c8bee75772 | [] | no_license | dixitomkar1809/Coding-Python | 227c68a9bdc724254a53621586126b3755803849 | 7134780687acfc2934562d8c7582fd33dfbefdf1 | refs/heads/master | 2023-06-21T10:29:29.022764 | 2021-07-10T06:20:40 | 2021-07-10T06:20:40 | 181,409,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Author: Omkar Dixit
# Email: omedxt@gmail.com
# Link: https://leetcode.com/problems/reorder-data-in-log-files/submissions/
class Solution(object):
def reorderLogFiles(self, logs):
"""
:type logs: List[str]
:rtype: List[str]
"""
digilogs = []
letterlogs = []
... | [
"omedxt@gmail.com"
] | omedxt@gmail.com |
b9f2613506f9f76036bddc00829fcfdfb4cafe30 | 5c2e4266abf6d2be9102d5309bf94071a1eae1db | /02 高级语法系列/cp 多线程/06.py | 2bdc2499e1e3cb5239f77ca5b790e5f4c7513dbd | [] | no_license | 13834319675/python | 8176d5da47136b9b3ec290eaa0b699c6b1e7a8ab | 3e6f04670f6f01006f827794865488dd40bca380 | refs/heads/master | 2021-07-11T18:29:12.894401 | 2021-07-05T08:29:27 | 2021-07-05T08:29:27 | 171,112,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import time
import threading
def fun():
print("start fun:")
time.sleep(2)
print("end fun")
print("main therad")
t1 = threading.Thread(target=fun,args=())
t1.start()
t1.join()
time.sleep(1)
print("main therad end") | [
"1134876981@qq.com"
] | 1134876981@qq.com |
52dff1d463cb00883aea69550a2c3cac3fd31e95 | f05e792af806f1069238aae3ce966a3268708f41 | /PythonCodingClub/GameStructureExample/ShooterGame-move_player_and_enemy_to_modules/data/tools.py | a9479c2abb9f66aa8e9d6e9f1aeba37dec1fa915 | [] | no_license | MaxT2/EWPythonDevelopment | 9de608e32f319132b85e0ea4a1548872d2c90b55 | 6154b85a0b35438bb51944eddc742684469e6b60 | refs/heads/master | 2020-06-18T12:10:56.381449 | 2019-07-11T18:39:04 | 2019-07-11T18:39:04 | 196,299,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
import pygame as pg
def load_all_sfx(directory, accept=(".wav", ".mp3", ".ogg", ".mdi")):
"""
Load all sfx of extensions found in accept. Unfortunately it is
common to need to set sfx volume on a one-by-one basis. This must be done
manually if necessary in the setup module.
"""
effe... | [
"tristen@payne.org"
] | tristen@payne.org |
55e33d80c842504ade1b753e4c296116b4c26c25 | d8f2f28c21a94d60c2b693adac350c0e46cf24b5 | /lesson3/2.py | 2afa289bec1966f3fc78f7eecf7a707a5bb6cc2b | [] | no_license | tima-akulich/z25 | fdf3c5a2053e72cfaa95bf44eb39dd5b37328180 | 3ddf8c3f1ecdb311560ae1ecf788e2ab9927f10a | refs/heads/master | 2020-12-22T14:34:38.148212 | 2020-03-17T21:30:15 | 2020-03-17T21:30:15 | 236,825,874 | 0 | 18 | null | 2020-03-17T16:07:40 | 2020-01-28T19:47:25 | Python | UTF-8 | Python | false | false | 140 | py | size = int(input('Size? '))
for i in range(1, size + 1, 1):
for j in range(1, size + 1, 1):
print(i * j, end='\t')
print()
| [
"tima.akulich@gmail.com"
] | tima.akulich@gmail.com |
40db9717fb022a9b59fcac40c81d809493753a5a | faf50edfb415f2c5232d3279cf9b6d3684d1bb39 | /distributed_lsh_alessandro_de_palma/python-implementation/distributed_SLSH/worker_node/tests/parallel_test.py | 7cc52db65cb82eb7ac959db9d79db9fc26a0537d | [] | no_license | ALFA-group/EEG_coma | aff66ed15f597bdde8583e11bec7d33210bab224 | c2e65ab1d6491378c71520bc75827f8c1374715d | refs/heads/main | 2023-04-23T18:42:17.519875 | 2021-05-04T21:22:09 | 2021-05-04T21:22:09 | 364,260,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | import unittest
import numpy as np
from worker_node.SLSH.hash_family import *
from worker_node.SLSH.lsh import *
from worker_node.SLSH.slsh import *
from worker_node.SLSH.selectors import *
from worker_node.node import *
from worker_node.query import Query
class TestParallelSLSH(unittest.TestCase):
def test_para... | [
"shash@mit.edu"
] | shash@mit.edu |
82fa4b250629b57299d3bfdfa298bfd60a767c52 | ec376cf212d72f3948ce4865224220d5bb6c1272 | /virtual/bin/wheel | 0791479aa5a0d30d177e56d25d221744f79837f1 | [
"MIT"
] | permissive | Okalll/Awwwards | 9812909b90dc0e53e691e59aaeb49e6797b5bcf7 | dd69fc817d38e5f31cbd07072bc03dca22e4772f | refs/heads/master | 2020-04-29T10:53:00.296680 | 2019-03-22T12:33:34 | 2019-03-22T12:33:34 | 176,077,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/moringa/Desktop/Awwards/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vivieokall@gmail.com"
] | vivieokall@gmail.com | |
506b07b13e22fc685409b43f2e14969ae5cad757 | 7af49ced7975f2d0ba0c808811317a96f90214b1 | /test/test_add_contact.py | 500daa243cd64c9720d806a2e92492b702ffe3ca | [
"Apache-2.0"
] | permissive | alexanderpython/python_training | 928d58aaa65901b05b3e86b8396cf9929fbebbf3 | 91d2983b415e72621bf993b56dcc78a8f6ee4b51 | refs/heads/master | 2021-01-18T21:07:45.069457 | 2016-05-19T06:29:27 | 2016-05-19T06:29:27 | 54,002,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
from model.contact import Contact
def test_add_contact(app, db, data_contacts, check_ui):
contact = data_contacts
old_contacts = db.get_contact_list()
app.contact.create(contact)
new_contacts = db.get_contact_list()
old_contacts.append(contact)
assert sorted(old_contact... | [
"alexander.giderman@rtlabs.ru"
] | alexander.giderman@rtlabs.ru |
08c98de0c8c4d30deef7b09ca462266129253a38 | ec8c572ea9ef5b996937c996607113bd91312b77 | /app.py | 66401fc9512f2f505082c4ce18f26aa2233b0669 | [] | no_license | muktadadariya/Student_Info | 9a04aaab4477d6fcc844b789f75404567c17f6f5 | 05b87bf0571f3f6f8b4356ee3a18a3956a35be64 | refs/heads/master | 2021-06-12T13:25:40.929957 | 2017-03-06T22:30:43 | 2017-03-06T22:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | from flask import Flask
from flask import jsonify
from flask import url_for
from flask import abort
from flask import make_response
from flask import request
# Import the service which servers the data.
# This could be a service which loads the data
# from database or files or some website.
from data_provider_service ... | [
"muktadadariya17@gmail.com"
] | muktadadariya17@gmail.com |
7ba696c05f0211fee7f37099c1ef2ff16ce0398c | d05a1106b60b61d86bd65039f77b044e412ec5d9 | /iq/card_2.py | 26e022b1e7bfb0dfc9ecad70dc1c38d237c601f5 | [] | no_license | MagorokuYohei/hoby | fdbe762d24cc19dec04d7cd9caed3482f3992503 | 41cdb32e0a4d116dffa4d6f66900ad9f2763deee | refs/heads/master | 2021-01-17T15:15:39.538230 | 2016-06-09T08:11:21 | 2016-06-09T08:11:21 | 47,348,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | #-*-coding:utf-8-*-
def f_numm(num,card,digit, target, sa, check, ans):
if digit >0:
for i in range(0, len(card)):
if card[i] == 0:
continue
numr = num + int(card[i]) * digit
sa_ = abs(target- (numr + digit-1))
if sa_ <= sa:
pp... | [
"magorock329@gmail.com"
] | magorock329@gmail.com |
db7cd87f6156047ade312c1eb7720efa2e1edf24 | d4943cd895f644b1027396d1a6c3c432812506fd | /tools/hintsDatabaseInterface.py | 642eac3b5a5d0cfb19c50f1e8dddb127c24b69ac | [
"Apache-2.0"
] | permissive | mhaukness-ucsc/Comparative-Annotation-Toolkit | 3b7049d09c0f9c3f3362270f0fb0ac50849226af | 1cc2c0e4fabccc2977c15b531d86ae6cadaddfe0 | refs/heads/master | 2020-09-26T07:51:27.969135 | 2019-12-05T23:47:59 | 2019-12-05T23:47:59 | 226,208,115 | 0 | 0 | Apache-2.0 | 2019-12-05T23:38:24 | 2019-12-05T23:38:24 | null | UTF-8 | Python | false | false | 5,949 | py | """
This module interfaces with the hints database produced for Augustus, providing a SQLAlchemy ORM access to it.
"""
import sqlalchemy
from sqlalchemy.pool import NullPool
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import sessionmaker
def reflect_hints_db(db_path):
"""
Reflect the d... | [
"ian.t.fiddes@gmail.com"
] | ian.t.fiddes@gmail.com |
ea0460949c6583b934516dffd930f670f4c2e055 | cfb6cc1b52dc080db0d9dd9b5f1fac2989a8eb30 | /CodePackages/NLTK/nltk5.py | dd2d7b51948693583df223170e4668eef5c5f2c4 | [] | no_license | MansMeg/TextMiningCourse | 114c4987b65b1d18583eb75dfb68d3d2eafb2d44 | 28101c03347bd161e1a959653bcadbbcddb88f3b | refs/heads/master | 2020-04-06T06:36:23.523987 | 2015-11-30T09:01:31 | 2015-11-30T09:01:31 | 46,229,834 | 0 | 1 | null | 2015-11-15T18:20:18 | 2015-11-15T18:20:18 | null | UTF-8 | Python | false | false | 274 | py | import nltk
from nltk.book import *
text7.generate() # Generates text using trigrams
# POS
myText = 'This is my text, and I will now try to tag it'
myText = nltk.word_tokenize(myText)
nltk.pos_tag(myText)
nltk.parse.viterbi(myText)
nltk.corpus.brown.tagged_words()[1:10]
| [
"mattias.villani@gmail.com"
] | mattias.villani@gmail.com |
40a667cbffa250f6cc7c1eaa714e24382ef94089 | 7c37351bd33a568593f7d64d8d8cc8359ce7c14e | /setup.py | 0275ca5b503c4335406186df99acb4fc8473af6a | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | Vultaire/r21buddy | 972d37bac465666a770c77d1c6bfd1d035549d8d | 8df66abae1392aad8cecbb1200e7e221f2d0e280 | refs/heads/master | 2020-11-26T21:07:56.231757 | 2013-12-22T10:41:49 | 2013-12-22T10:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from distutils.core import setup
import py2exe
version = "1.1a"
setup(
name="r21buddy",
version=version,
author="Paul Goins",
author_email="general@vultaire.net",
url="https://github.com/Vultaire/r21buddy",
description="Utilities for preparing StepMania songs for use with ITG R21.",
downl... | [
"general@vultaire.net"
] | general@vultaire.net |
a1e9785f8535dbd31030f2f419aab901bc6263f2 | 5f03110f82c52fc733155c0ef23aba201f052645 | /Project 03/lessThanFifteen.py | 8188a5391431e8311073e6bab507c999b7bae172 | [] | no_license | Tc-blip/SSW555 | b7f0757182d4a8f1dfc87d1b937311b8b6dd8291 | 4d2511e5bcbf0c4d8799a189e320823fbe6644b1 | refs/heads/master | 2020-07-29T04:32:51.195643 | 2019-11-22T04:33:52 | 2019-11-22T04:33:52 | 209,670,726 | 0 | 0 | null | 2019-11-21T17:38:23 | 2019-09-20T00:18:31 | Python | UTF-8 | Python | false | false | 415 | py | # US15
# There should be fewer than 15 siblings in a family
def check_lessThanFifteen(familyList):
for key in familyList:
family = familyList[key]
if not lessThanFifteen(family.Children):
print("US15 Error: There should be fewer than 15 siblings in a family")
def lessThanFifte... | [
"kmorel@stevens.edu"
] | kmorel@stevens.edu |
8b2cfc5dddc6b71ee66f957ad9063e973d145ee0 | 1e6442422003a6c01cf3416bba435635afc3aefa | /servo.py | 1de9f37796fed92fb36e67974cb50c0cc7051811 | [] | no_license | AdamJankowsky/Python-OpenCV-Brick | 75844f7c18454ff8ce421b6d2ec3cffa5c117c37 | 4aa13ea5e6b2121b2efd70d957fce7ed26706ab2 | refs/heads/master | 2021-01-25T06:44:55.628036 | 2017-06-07T07:00:59 | 2017-06-07T07:00:59 | 93,601,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
pwm = GPIO.PWM(18, 100)
pwm.start(5)
def update(angle):
duty = float(angle) / 18.0 + 2.5
pwm.ChangeDutyCycle(duty)
print(duty)
time.sleep(1)
| [
"adam1jankowski@gmail.com"
] | adam1jankowski@gmail.com |
a7a1301f8c3edae61b48482aff4606502e7fa296 | 92f9b13b6cd1845dbcd411366028908c777a3342 | /0x07-python-test_driven_development/100-matrix_mul.py | 4f02fa300b7ce1225a46eb9e6e35de4fc0167eea | [] | no_license | zamu5/holbertonschool-higher_level_programming | 0013656f8fa25d02cffd1c3048dc7706ff4054ae | cde6e8ff1f91161a22af204bedefa679f266aada | refs/heads/master | 2020-07-22T21:54:52.802829 | 2020-02-13T21:18:41 | 2020-02-13T21:18:41 | 207,341,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | #!/usr/bin/python3
"""
Module have function that multiplies 2 matrices
"""
def matrix_mul(m_a, m_b):
""" Function that multiplies 2 matrices"""
if not isinstance(m_a, list):
raise TypeError("m_a must be a list")
if not isinstance(m_b, list):
raise TypeError("m_b must be a list")
if not... | [
"szamu5@hotmail.com"
] | szamu5@hotmail.com |
778ce290573ccced508c29000d2287491acc0e4f | 6aa9deea03c2b015dcd582250b4aabdecb8800e9 | /home/views.py | 948bba873c2febe93e028bd68e00ca2adb5a783a | [] | no_license | bopopescu/ajairahouse.com-jokes_sharing | 4cab67dbebeb0fcba70160ec2299577785207bcb | b7c18d86b0ed7cff3e2e444bf637c10711f3f56b | refs/heads/master | 2022-11-21T14:11:04.685535 | 2019-03-23T14:16:08 | 2019-03-23T14:16:08 | 281,797,551 | 0 | 0 | null | 2020-07-22T22:42:13 | 2020-07-22T22:42:12 | null | UTF-8 | Python | false | false | 1,440 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.paginator import Paginator,EmptyPage,PageNotAnInteger
# Create your views here.
from bangla_jokes.models import Bangla_Jokes
from engineering_jokes.models import Engineering_Jokes
from fci_troll.models import Fci_Troll
from funny... | [
"zanjarwhite@gmail.com"
] | zanjarwhite@gmail.com |
847a9195867cbaec223c2dfb9fa5f43d284ff356 | 526015b36e11cfd6e61dc1d97a746b50d4ac5d16 | /django2/core/exceptions.py | e1a7294b1eb3309cb3f045e5a26075d7b10dd511 | [] | no_license | NAveeN4416/django2 | e81d4b15332ff0ed2bf8923ec89ccd5c890e2302 | ff11855931ff2e8db22fc4217f595297b651008a | refs/heads/master | 2020-03-24T21:48:03.402544 | 2018-08-03T12:25:36 | 2018-08-03T12:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | '''
Extend Every New Class with APIException
e.g : class newclass(APIException):
def newdef():
pass
'''
# Import Requirements Here
from rest_framework import exceptions
# Write Your Exceptional Classes here
| [
"noreply@github.com"
] | NAveeN4416.noreply@github.com |
35944045acc6c2b875eb53c6576ecbe7f8eca5dc | 4fc9753b439a67c56836b2103f5ce76c89f31be5 | /pi_detect_drowsiness.py | 27df8e35a682e13216dc8f126e3c923e84ed7d6a | [] | no_license | shivanshxyz/raspberryPi_drowsiness_detector | b060b9badf67aba33bc4d0a6788fced0b3520b55 | 0e79f31ce2347f95b147a2f8256a388378bdfa03 | refs/heads/master | 2022-03-08T10:44:13.367877 | 2019-11-06T08:39:05 | 2019-11-06T08:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py |
from imutils.video import VideoStream
from imutils import face_utils
import numpy as np
import argparse
import imutils
import time
import dlib
import cv2
def eucdDistance(ptA, ptB):
return np.linalg.norm(ptA - ptB)
def eye_aspect_ratio(eye):
A = eucdDistance(eye[1], eye[5])
B = eucdDistance(eye[2], eye[4])
C = e... | [
"noreply@github.com"
] | shivanshxyz.noreply@github.com |
29e68387ee087791c377c5ec97c551c1d24fc445 | 97c18798ed2bb8bf0ea8924a640a7eb018212065 | /[0803]Algorithm/4880.tournament.py | 0d301ab96b1cbada83e968695dace8b9f29d7d79 | [] | no_license | kanamycine/surely-kill-algorithm | 21a8899f522f44659107f2556eea3bc48b343cc9 | 7fb2345b29dc0e2ddc3df9933c806a41ed2cd409 | refs/heads/master | 2022-12-20T06:12:05.442990 | 2020-09-18T11:40:11 | 2020-09-18T11:40:11 | 285,782,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | def win(x, y):
if (lst[x-1] == 1 and lst[y-1] == 3) or (lst[x-1] == 1 and lst[y-1] == 1):
return x
elif (lst[x-1] == 2 and lst[y-1] == 1) or (lst[x-1] == 2 and lst[y-1] == 2):
return x
elif (lst[x-1] == 3 and lst[y-1] == 2) or (lst[x-1] == 3 and lst[y-1] == 3):
return x
return y
... | [
"jinyeong5320@gmail.com"
] | jinyeong5320@gmail.com |
a466ea4b737b166d6abccb080b97565bbf2f7466 | 37688136300295e3b696ff1559ddabce9ce07ff1 | /task1/mnist_cnn_doublefilters.py | 5e84977a89cbf7bda77083d4b616d89e3138e5b9 | [] | no_license | singhsukhendra/dlcv04 | 94fbe113925ca1c903cefd649d4e6b6258f8b267 | 6330d3a16f0d1d311fe0f52f3581f52c2f426ddf | refs/heads/master | 2021-06-01T12:33:41.618038 | 2016-07-08T11:41:00 | 2016-07-08T11:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | '''Trains a simple convnet on the MNIST dataset.
Gets to 99.25% test accuracy after 12 epochs
(there is still a lot of margin for parameter tuning).
16 seconds per epoch on a GRID K520 GPU.
'''
from __future__ import print_function
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.datasets im... | [
"miriambellver93@gmail.com"
] | miriambellver93@gmail.com |
d4c7c353e91b037420622af404ad3ab1c31461d8 | 496861be33a083db8c341a390f5d63eb0998b4e7 | /python/81. string.py | d498af1b347ffa8c866de5b1da3e49f38625a0f7 | [] | no_license | kay30kim/Algorithm | 95cebd21593c121d2eb6e1f219a3e94511bf31cf | 19fcc965599860e827a30d4c026858022dcd9590 | refs/heads/main | 2022-07-01T18:12:28.272575 | 2022-06-15T15:42:22 | 2022-06-15T15:42:22 | 231,189,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | msg = input('임이의 문장을 입력하세요 :')
if 'a' in msg:
print('당신이 입력한 문장에는 a가 있습니다.')
else:
print('당신이 입력한 문장에는 a가 없습니다.')
print('당신의 문장 길이는 <%d>입니다.'%len(msg))
txt1 = 'A'
txt2 = '안녕'
txt3 = 'Warcraft Three'
txt4 = '1234'
ret1 = txt1.isalpha()
ret2 = txt2.isalpha()
ret3 = txt3.isalpha()
ret4 = txt4.isalpha()
print(... | [
"kay30kim@gmail.com"
] | kay30kim@gmail.com |
9be78fa258a64498a991c13cdde69c5cc3228fef | 25d69136cadc3755200160f9005ed17bb13409b8 | /django_1.5/lib/python2.7/site-packages/django_extensions/management/commands/runserver_plus.py | 8899a6b6870c2383c8d5658efe06f91fd1097d88 | [] | no_license | davidmfry/Django_Drag_and_Drop_v1 | 4cc89e767c11313451c77dee6cd206a5ee724b8d | 5ec9c99acb127c04a241eb81d3df16533b4ce96f | refs/heads/master | 2016-09-03T06:52:52.925510 | 2013-08-12T21:48:33 | 2013-08-12T21:48:33 | 12,006,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,983 | py | from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django_extensions.management.utils import setup_logger, RedirectHandler
from optparse import make_option
import os
import sys
import time
try:
from django.contrib.staticfiles.handlers import StaticFilesHandler
... | [
"david.fry.tv@gmail.com"
] | david.fry.tv@gmail.com |
aa0461d343da384009a3c190199d8085afa3e58b | ad325aa7ca5c022d6cb1d358b3bdd86af480b962 | /CTFEZ.py | 73469bfa6ff9227cc5209ca2071cd850efe68008 | [] | no_license | JHCISC/CTF_Tools | 3b30360cabee479ce390dd6010288a8a4df459e3 | 983b3adcc6603803afa65ebcfcf2ed5e169bf52a | refs/heads/master | 2021-01-12T16:43:07.421318 | 2016-10-20T07:53:57 | 2016-10-20T07:53:57 | 71,437,666 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,131 | py | # Filename: CTFEZ.py
import base64
import math
def asciitrun():
b = input("请输入ascii待转换: ")
bres = [int(x) for x in b.split(' ')]
res = []
for m in bres:
res.append(chr(m))
print(''.join(res))
def bintrun():
a = int(input("请输入?进制:"))
b = input("请输入待转换数字: ")
br... | [
"noreply@github.com"
] | JHCISC.noreply@github.com |
0760d6ed7c77bdaf8bfe485e2f157d1e310e2723 | eb188b2a3aa86925ee0d74dab8995752cf8ff5f9 | /brief/migrations/0001_initial.py | a7e1bf41b2c6c251911d480afd0f4ba60f26bd54 | [] | no_license | ecugol/kbrief | 8ecb6e36cfda80788aa4186c770404daf06e49a2 | b2809265cbeea6dec51a6eb23e192526f7ed0456 | refs/heads/master | 2020-05-20T12:23:09.011401 | 2012-01-08T13:50:45 | 2012-01-08T13:50:45 | 3,109,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,740 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'AudienceType'
db.create_table('brief_audiencetype', (
('id', self.gf('django.d... | [
"ivan@klice.ru"
] | ivan@klice.ru |
6099f8d85b4c661f98e66830fd3da213e1c8c05b | 8d7d3f2446ff92108621e6c782f3df84bda5bff4 | /part3_classification/classification_template.py | 1fa77b50121fd2c7c6f1e6a2a1553e5e4fffe8aa | [] | no_license | Jintram/machinelearning1 | d9f3c53268b696ae10d8984212b57cd8cc202f0e | a249d7571e1c7066454bff4de3cb8220275d2a9b | refs/heads/master | 2020-03-29T15:42:23.002960 | 2018-09-24T08:49:13 | 2018-09-24T08:49:13 | 150,076,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | # Classification template
# Setup location of our datafile
datapath_root = "D:/Work/Udemy/Machine_Learning_Datasets/"
datapath_section = "Part 3 - Classification/Section 16 - Support Vector Machine (SVM)/"
datafile = "Social_Network_Ads.csv"
import os
os.chdir(datapath_root+datapath_section)
# Importing the librarie... | [
"wehrens@amolf.nl"
] | wehrens@amolf.nl |
9be16b69242655c2579d12cdd35bd3ded4cbaf2c | d1134559f971c31044868aea44a7b5ba212ab6cf | /lib/vkmini/exceptions.py | a8fd80b4a220675b60fa91244ed128b41e7b8fc2 | [] | no_license | jhauy/ICAD-Longpoll | 5e4dcf6df0b9647957aa4d4208b52218d567b074 | 52f3f2cdc931684c17bd372ec0f31c123df5b97e | refs/heads/master | 2023-07-17T19:29:49.256415 | 2021-08-29T17:42:01 | 2021-08-29T17:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | class VkResponseException(Exception):
def __init__(self, error: dict):
self.error_code = error.get('error_code', None)
self.error_msg = error.get('error_msg', None)
self.request_params = error.get('request_params', None)
class NetworkError(Exception):
code: int
def __init__(self, c... | [
"Elchin751@gmail.com"
] | Elchin751@gmail.com |
13323fbc9543c69d56f34f0da842c481b56225a4 | 86adf136169bc4ab5bdfec5a32d7532f05b80e92 | /postfeed/migrations/0004_auto_20200408_2332.py | 7d7b75be87601a39bdf7078324c817a6831cc1fa | [] | no_license | idfinternship/project-c | 57865cb80a2a929ec7525194a479d92ce74ac1af | a8509f4f43d91df9e7d144f2bc507e024a92918b | refs/heads/master | 2022-09-21T11:27:22.618524 | 2020-06-04T14:28:14 | 2020-06-04T14:28:14 | 240,582,349 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # Generated by Django 3.0.4 on 2020-04-08 20:32
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(setting... | [
"mantuxas001@gmail.com"
] | mantuxas001@gmail.com |
63cb45673d7d8aba28560d316bac8bffee48e68a | 272b7fe305ed45aac9907810b4754ce67eacdd00 | /proxypool/spider/crawler.py | 3eb983f2aa57a2bd8ff9f07444e2c0cbbc0d0453 | [] | no_license | huichen90/visual-proxypool | 1dad83931d52150a7ebf98075d2643e923c70ae9 | 53b269961246997c7fb6797b1996c4107168344f | refs/heads/master | 2021-04-15T13:42:49.788361 | 2018-03-21T02:38:07 | 2018-03-21T02:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,399 | py | import re
from proxypool.spider.utils import get_page
from pyquery import PyQuery as pq
from proxypool.log.save_log import add_spider_log
from proxypool.common.setting import *
class ProxyMetaclass(type):
def __new__(cls, name, bases, attrs):
count = 0
attrs['__CrawlFunc__'] = []
for k, v i... | [
"Garfield_lv@163.com"
] | Garfield_lv@163.com |
811fbe2a011ea54189f0ce944a3b227c27f9d69e | b6132d5e45ae5194a85658359f04cd5d89872676 | /LeetCode/LRU Cache.py | bd44b3e85a168f49be83009d9ba403c2be48de87 | [] | no_license | OscarZeng/Data_Structure_and_Algo | e59c42a3b82c78094dc8d78d1c439109da985f12 | 08ff466c7f01a3ab8d01b26a18591b9a8efacdb7 | refs/heads/master | 2021-07-25T20:33:20.685146 | 2020-09-16T13:35:51 | 2020-09-16T13:35:51 | 217,005,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,144 | py | #Basically the same own solution with change the side of latest
class DlinkNode:
def __init__(self, key= None, value = None):
self.prev = None
self.next = None
self.key = key
self.value = value
class LRUCache:
def __init__(self, capacity: int):
self.Cache = {}
... | [
"zenghaonus@outlook.com"
] | zenghaonus@outlook.com |
8144e2d5a1590843bfff997bf5bbab02ae5b5b95 | 774b74e8a928def669934cd08ad6603cbe8fbefb | /learning_templates/basic_app/urls.py | d77a4e09e4f681f8853b2e2a3c0906fb2d19764b | [] | no_license | VipulGupta910/django-deployment-example | c02a07f673ab5e0e70c3ff65bf85e8304c70d051 | 0555a15ac1e8b03b18e32402947c6462446d54fb | refs/heads/master | 2020-03-23T00:04:42.882658 | 2018-07-13T13:07:25 | 2018-07-13T13:07:25 | 140,842,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.urls import path,include
from basic_app import views
#TEMPLATE TAGGING
app_name = 'basic_app'
urlpatterns = [
path('relative', views.relative, name='relative'),
path('other', views.other, name='other'),
] | [
"vipulgupta910@gmail.com"
] | vipulgupta910@gmail.com |
5638846bdd0417fd4dea73978fae51c6f38e750a | 2d74faff3a6491e2cb26fc7b935c36b58c6989a8 | /init.py | 3cd2291f208134fd6c188b0677de214dca0da1a2 | [] | no_license | ivojnovic/AHP | d5d5570e41f07524a7fb6623266ce63c4d97dd88 | 318e518987701324cebca9f4d3b31e19075a70c9 | refs/heads/master | 2020-12-23T23:42:38.018098 | 2020-02-08T10:24:47 | 2020-02-08T10:24:47 | 237,312,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | import tkinter as tk
from tkinter import ttk
import numpy as np
from PIL import ImageTk, Image
class ERP:
def __init__(self, ime):
self.ime = ime
lista_svih_sustava = []
lista_svih_kriterija = []
lista_odabranih_sustava = []
odabrani_sustavi = {}
odabrani_kriteriji = {}
odabrani_sustavi_po... | [
"noreply@github.com"
] | ivojnovic.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.