blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bdc87f3315390e5fc8eb03321ccd018f13499ff4 | a00c8a827cac629e2d6319609090ae74663fe701 | /biu/formats/pedUtils.py | 044d1aac7316d5fe019328c36168e60105012ea3 | [] | no_license | thiesgehrmann/BIU | 78a7278665733eaa5f283296ee8a3cb61c9c7cb6 | c6031b24541ae8b1ee1870c8249f8c4929ff12d1 | refs/heads/master | 2021-10-07T17:11:19.214872 | 2021-09-27T11:44:05 | 2021-09-27T11:44:05 | 145,121,659 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,889 | py | from .. import utils
import errno
import re
import os
import csv
###############################################################################
# TO MATCH THE MERLIN documentation
class Individual(object):
__slots__ = [ '__famID', '__indivID', '__fatherID', '__motherID', '__gender', '__features' ]
def __init__(... | [
"tgehrmann@shark.researchlumc.nl"
] | tgehrmann@shark.researchlumc.nl |
584b62ac1c40023ce693c76df2c3138f396308c1 | aa65d15af356165db479f5357afe78d939a85eb4 | /cs3027/practicals/catkin_ws/src/practical_03_07/a_to_many.py | e0563f319c233cf33c38ac2a15ca2311e2a2ac87 | [] | no_license | KNejad/university_notes | d9de478437452e2f07467798bcb774f049a2cf01 | ee7df9aa39cd9a383558b8205ebad02bbf23a95c | refs/heads/master | 2021-06-06T00:50:37.527538 | 2020-01-19T10:40:32 | 2020-01-19T10:40:32 | 71,895,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,117 | py | #!/usr/bin/env python
import rospy
import tf
import math
from geometry_msgs.msg import Point
from geometry_msgs.msg import PointStamped
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
from sensor_msgs.msg import LaserScan
from std_msgs.msg import Header
class AToMany:
dangerous_obstacles = ... | [
"keeyan@keeyan.xyz"
] | keeyan@keeyan.xyz |
c78f4d355386932cfd24d664e04f52fa4f14df1b | 017c54ec04bd23d04a1a4e3861c6b6ff00dff540 | /ytsearch.py | c9bb1461254a76c4e65244f42148752edff18006 | [] | no_license | Trisert/PythonScripts | 225332e652c372e23ee6040ea4bcf31348fe40ed | 81f07d43e726fa0407f15d4ce87a0de02213911d | refs/heads/main | 2023-07-07T22:26:18.462456 | 2021-08-19T08:17:01 | 2021-08-19T08:17:01 | 304,888,415 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import dmenu
import urllib.request
import re
search_keyword = input("Inserisci cosa vuoi cercare: ")
html = urllib.request.urlopen("https://www.youtube.com/results?search_query=" + search_keyword.replace(" ", "%"))
video_ids = re.findall(r"watch\?v=(\S{11})", html.read().decode())
dmenu.show(video_ids, lines=10)
#vi... | [
"nicolade03@gmail.com"
] | nicolade03@gmail.com |
a165b00639df30ff67b8848e4ad2a89cdbba26cf | e87d89f1dc6dae209bf62a2bae6a4a1bb6684eab | /이지원/0831_ 42576.py | 2d9b0eb4b301a6c443c4cbee6fd6f0a33f6d364c | [] | no_license | youngseok30/codingtest | 291c497a5240c8d1071a7daed32bd59a31488fa5 | 9461bb473a1f8724a2f374e05fd79a6ea30a38da | refs/heads/master | 2023-03-19T04:36:04.233681 | 2020-10-19T02:59:09 | 2020-10-19T02:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # https://programmers.co.kr/learn/courses/30/lessons/42576
# 완주하지 못한 선수
def solution(participant, completion):
answer = ''
dict = {}
for p in participant:
dict[p] = dict.get(p, 0) + 1
for c in completion:
dict[c] -= 1
for key, value in dict.items():
if val... | [
"jiwon.swdev@gmail.com"
] | jiwon.swdev@gmail.com |
8abf522f039d7263cf9a85dd6f5c6d6307cf7568 | 4787babe647fbe4baf200dd6f2826e4b4c264de1 | /data/fetchRegion.py | 82366d9f1579f10b608f0c003f884d05c7b07ce8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | glennhickey/vg2sg | 84611c0f1967e3e06630fa24e51350d24531f56c | 85ca2e8cf0b0e3815281b7adf8a2149a9803d435 | refs/heads/master | 2020-12-24T06:38:52.537300 | 2016-05-06T14:46:33 | 2016-05-06T14:46:33 | 39,136,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,655 | py | #!/usr/bin/env python2.7
#
# FROM https://raw.githubusercontent.com/adamnovak/sequence-graphs/master/scripts/fetchRegion.py
#
"""
fetchRegion.py: Fetch the sequence data, GRC alignments, and gene sets for a GRC
region (like "LRC_KIR" or "MHC") by name.
"""
import argparse, sys, os, os.path, random, subprocess, shut... | [
"glenn.hickey@gmail.com"
] | glenn.hickey@gmail.com |
1da9516b8fceeaee1bfc89b3ac38f7c6d2cd0996 | ee8db8a13134cc19e4be22fa76de7232da777963 | /risers.py | 134eb1be2076ad78ed179f644a876471cec4fac8 | [
"MIT"
] | permissive | sile16/lasercut | 7bee1ed3ef67a486edd6f0eef4f53a11e116c467 | 55f88ffb9a693e2065a897ab469e68ee052459f6 | refs/heads/master | 2020-04-08T00:50:37.630998 | 2018-12-02T05:30:34 | 2018-12-02T05:30:34 | 158,869,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | #p3 size 791mm x 384mm
#sculpteo 940mm x 590
import svgwrite
join_width = 5.9
color_width = 41
color_height = 96.475
panel_width = 940
panel_height = 590
shelf_width = 939
depth = 160
dwg = svgwrite.Drawing('risers.svg',size=(791,384))
stroke_width="0.01"
riser_height = 290
def slot(x,y):
dwg.add(dwg.li... | [
"sile16@gmail.com"
] | sile16@gmail.com |
f5f9386957fc25339a4156a8f9ec345c579c46d1 | e6292e5c2bbf194f51f6ce0b67a5490c9707a011 | /cameraProcess.py | 11942607b34e21eb03280168f95db465644cc090 | [
"Apache-2.0"
] | permissive | daxiangpanda/face_merge | d5536b334638f8cf9f940c2cc61fa89b5a11fa1f | 601e1959412ac05c18a178a853a5214cbf2bc8c3 | refs/heads/master | 2020-04-11T22:02:05.269851 | 2018-12-17T12:00:15 | 2018-12-17T12:00:15 | 162,123,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | import cv2
import core
import time
def fetch_frame(video_path):
video = cv2.VideoCapture(video_path)
success,image = video.read()
count = 0
frame_path_list = []
while success:
cv2.imwrite("image/frame%d.jpg" % count, image) # save frame as JPEG file \
# try:
start = ... | [
"xinzhongliu@sohu-inc.com"
] | xinzhongliu@sohu-inc.com |
75b5bd8ac9fb5f7069eba6b2d14f6f357893d43f | 3ac988c7f21de80e4afe2f0ec86c56e5430647b1 | /out/production/leetcode/python/35.py | 9aa56e79aba3e880a42a3bb67236902ad7f23e97 | [] | no_license | seektruth/leetcode-solutions | 623cf8f87420dc176eecf8df90687a800ab41f2b | 9489c4c71e551958686d222e5617c879fe06d6d4 | refs/heads/master | 2021-01-17T18:15:01.621661 | 2017-07-31T02:26:37 | 2017-07-31T02:26:37 | 62,996,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import bisect
class Solution(object):
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
return bisect.bisect_left(nums, target)
a = Solution()
print a.searchInsert([], 2)
| [
"smiling_man@163.com"
] | smiling_man@163.com |
e29538e65e3f1342c183463884e05200eba1d3f2 | 111396146b5004f6c46ee69b6a7384a77de400fa | /student_register/migrations/0001_initial.py | 408535b0b43fb91601f4d8546b30e9f7200355d7 | [] | no_license | samfubuki/Logiin-and-CRUD-urls-using-django | 81aef1037cd31ae626b92b4d5beb681dbd387374 | 67c3adbc9029e5778cb37d68d38c5884f013e6b8 | refs/heads/master | 2022-08-03T19:55:29.433122 | 2020-05-28T08:35:52 | 2020-05-28T08:35:52 | 267,505,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Generated by Django 3.0.6 on 2020-05-19 12:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Stream',
fields=[
... | [
"pbhardwaj.preet@gmail.com"
] | pbhardwaj.preet@gmail.com |
6a1b9b2699b5d40ab586304e0361f170ab18ac56 | ed8cdcce521b8cab33c66f716c0886e17f035d21 | /.history/public/publicfunction_20191221202740.py | 99378bfc5a5a438a74f015f442e55bdf06ce5ce6 | [] | no_license | deancsdfy/AndroidPerformanceTool_windows | 8ac35729bc651c3af551f090d6788b6ee3f17eb5 | c4906aa9347e8e5eca68dbb7cf2d66a327c70d1f | refs/heads/master | 2020-11-27T20:38:55.014228 | 2020-01-09T15:55:52 | 2020-01-09T15:55:52 | 229,593,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | #coding=utf-8
import os,platform
import subprocess
import re
serialno_num=''
#判断系统类型,windows使用findstr,linux使用grep
system = platform.system()
if system is "Windows":
find_util = "findstr"
else:
find_util = "grep"
#判断是否设置环境变量ANDROID_HOME
# if "ANDROID_HOME" in os.environ:
# if system == "Windows":
# ... | [
"denacsdfy@gmail.com"
] | denacsdfy@gmail.com |
44e6b8f039039cca59ab829d78f56f8e1e0dcf77 | cc5fa752265dcb47ffab721f1a818413b77725d6 | /logger.py | 1c43a16b215da849cefcdbbb353820d733270af2 | [] | no_license | phsm99/keylogger | 9d9602033a72f1c4105facbd60af23a24f9f9b74 | 1090e8a024b19786ae4e1f516ef669073a20d2d2 | refs/heads/master | 2021-01-15T00:44:22.954431 | 2020-02-24T18:59:26 | 2020-02-24T18:59:26 | 242,817,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | try:
from pynput import keyboard
except ImportError:
import subprocess
subprocess.call(['pip', 'install', 'pynput'])
from pynput import keyboard
def write_on_file(string):
try:
file = open('log.txt', 'a+', encoding='utf-8')
except:
print('Erro abrir arquivo de saída... | [
"noreply@github.com"
] | noreply@github.com |
3abf4e446f31266763a2fe710d62337e05dd91a8 | c21faf85627b1cfd96494aac73cc40e5f11ebb46 | /results/test_330.py | 8be1918b363f41265b49b7e3247f2554e04979da | [] | no_license | ekkya/Cyclomatic-Complexity | d02c61e009087e7d51738e60605875741532b878 | 172db2efdd974f5abad964e335552aec974b47cb | refs/heads/master | 2021-08-28T17:13:14.718314 | 2017-12-12T22:04:13 | 2017-12-12T22:04:13 | 112,042,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73,382 | py | """Get the number of each character in any given text.
Inputs:
A txt file -- You will be asked for an input file. Simply input the name
of the txt file in which you have the desired text.
"""
import pprint
import collections
def main():
file_input = input('File Name: ')
with open(file_input, 'r') as info... | [
"ekkya@tcd.ie"
] | ekkya@tcd.ie |
288b5306f323b0024d8bdacbb104e4fef3aef131 | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/VertexAnalysis/python/__init__.py | 33e53c5f468fb19b01b06f042239cab6d2875ca9 | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 216 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/HeavyIonsAnalysis/VertexAnalysis/',1)[0])+'/cfipython/slc6_amd64_gcc491/HeavyIonsAnalysis/VertexAnalysis')
| [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
e429bc43021bd26b4ced08927e9dbec8c65dc8ea | 5e93ffc8068809e2f8ee532ed9bdf0e367ef9742 | /ejer8.py | 59ff40c035ad98ad4bc74b74e89c459b0f73be33 | [] | no_license | Vides99/FP_Laboratorio_6_00368019 | cb9b0f7257537b9ef4aaadb09a4e7b884e064e69 | 0ab61780e52923ad7b18e22cebf6ca0b3d4bed76 | refs/heads/master | 2020-08-10T05:58:52.666540 | 2019-10-16T18:05:49 | 2019-10-16T18:05:49 | 214,276,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | numeroAmultiplicar = int(input("Ingrese el numero del cual quiere conocer la tabla (dicha tabla sera del 1 hasta el 10)"))
for i in range (1,11):
print(numeroAmultiplicar, " * ", i, " = ", (numeroAmultiplicar * i))
| [
"noreply@github.com"
] | noreply@github.com |
a3a78eb8bcaa7274ca583df0322a09926713b306 | 21f4b333d2a3693a665826b083be473eb9c8ea99 | /webapp/DataflowApi.py | 4c67b71536b0198cbc3a0f5f6c5539c7ed8d5f53 | [
"Apache-2.0"
] | permissive | khanhhale/IoTProjectWithPylonCamera | 3e4bdbd58379e6b9e5fea445336a6b6eae4125f7 | cd51315053afc542e22e644d471a97a18509dfc6 | refs/heads/master | 2021-05-11T17:32:38.492614 | 2018-10-26T00:28:15 | 2018-10-26T00:28:15 | 117,800,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | # Copyright 2017, Google LLC All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"khanhl@khanhl-glaptop.roam.corp.google.com"
] | khanhl@khanhl-glaptop.roam.corp.google.com |
2eff8e1f3b21be34329ac979322bd7291501bcac | d5058adfd456aa7950ea5a0c2918f8b6749b7bdf | /Utils/windHelper.py | d4bffa44d786bbfe314afb8c977037e8b7b837e5 | [] | no_license | dxcv/pyLuke | 1f6ae3ffd0ef8afe3d5505324b59ed7e5ed5442c | 99e4e762f00fb20f15aa4835e0ecea433695dff6 | refs/heads/master | 2020-05-29T12:34:18.349194 | 2017-10-12T02:12:09 | 2017-10-12T02:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,470 | py | # encoding: utf-8
# thd
from WindPy import w
import pandas as pd
from datetime import timedelta, datetime
class WindHelper(object):
"""
WindPy20170904更新
在本次修改后, 下面函数结果中的时间Times将只包含日期date:
wsd, tdays, tdayscount, tdaysoffset, wset, weqs, wpd, htocode, edb
常用字段:
close
settle
volume
... | [
"wangluzhou@aliyun.com"
] | wangluzhou@aliyun.com |
5ba6618f5ca4b1f7c28f8cf76de9006dff006b9f | b2f9ff599a4869db733dc5f4fa93c2a47cff9064 | /brainduck/brainduck.py | 6e57bb478fe25d806fe2c45505aa9e98900f76a7 | [
"MIT"
] | permissive | eaybek/brainduck | e9ae7159ee9ad6d21ecc5a3fb5b012cb44a680a5 | f45dea58a39dc543d9bbf9cdc4732cbdd8f7c0ea | refs/heads/master | 2020-07-31T16:43:40.541858 | 2019-09-24T19:15:11 | 2019-09-24T19:15:11 | 210,679,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | class Brainduck(object):
pass
if __name__ == "__main__":
print('It works!')
| [
"eaybek@gmail.com"
] | eaybek@gmail.com |
312796ff98fadf97216ff3c7db06d5b89af9ed2e | cfb01066c08fc4f4b0ab481dc0ff7c6ce2fb9981 | /tests/aggregation/tests.py | e81744df29bd81e34a3ccbb0ab02cadb210194f6 | [
"MIT"
] | permissive | pombredanne/django-aggregate-if | 21a8dc460f73d629b79be0c54356c70d92048780 | 02f43633c620de53aa7b9479523bbba8013a3900 | refs/heads/master | 2021-01-23T01:30:13.182765 | 2013-01-02T23:47:45 | 2013-01-02T23:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,983 | py | from __future__ import absolute_import
import datetime
from decimal import Decimal
from django.db.models import Q, F
from django.test import TestCase, Approximate
from aggregate_if import Sum, Count, Avg, Max, Min
from .models import Author, Publisher, Book, Store
class BaseAggregateTestCase(TestCase):
fixtur... | [
"henrique@bastos.net"
] | henrique@bastos.net |
40d60b41be552dcfd2df4f67bf167172d1075756 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/coral-cnn_ID1064_for_PyTorch/model-code/cacd-coral.py | 45795ac09a7b420de8ae37d8e096ba753a70016d | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 16,909 | py | # coding: utf-8
#
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source c... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
5e83729a2a9084280b3a088b23a69aadbaf7714d | 41110aaf46c098bbe1906587d7e3bf057514355a | /handlers.py | 0b373b1afc01dc7e74178b327068c72d55bb43f3 | [] | no_license | yourboyfriendsdrug/Thursday-22-04-21 | 5a6fd3f2a369df85381534443e33b600295269b1 | ddea534227787447477df6d2d49f1f46092d4691 | refs/heads/master | 2023-04-25T14:48:28.609493 | 2021-05-06T16:19:34 | 2021-05-06T16:19:34 | 360,564,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | from app import bot, dp
from aiogram.types import Message
from config import admin_id, todo, HELP
import time
command = 0
#0 - пользователь ничего не выбрал
#1 - ожидаем дату для добавления задачи
#2 - ожидаем задачу для добавления в словарь
#3 - ожидаем вариант отображения задач
userDate, userTask = 0, 0 #глобальны... | [
""
] | |
e7c0515ee7a896fe25357447cbf5bdfbacdeb236 | 99ca3abf85542ef90f9525fa73e359ef00b3f713 | /raven/migrations/0018_auto__del_field_feed_dead.py | a0ae9474cb55f66144c61be19cd045d6aaa049dd | [] | no_license | achiang/readraven | 408621fe7f6ba33078a089ae3d744c7db587db53 | 56aca6ce21b158e824a6bc62a4bdc867f6f75713 | refs/heads/master | 2020-12-25T12:08:09.479948 | 2013-08-11T21:35:17 | 2013-08-11T21:35:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,452 | py | # -*- coding: 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):
# Deleting field 'Feed.dead'
db.delete_column(u'raven_feed', 'dead')
def backwards(self, orm):
... | [
"alex@chizang.net"
] | alex@chizang.net |
cdb5305e2659c879558f942f3a20592135fbf94c | 27833d78d12746f94af6210a72a7068a7f91e8a4 | /chapter05/s_chapter02/train.py | 30229bb1bd6ac75d11dab98301f35f2b219ab739 | [] | no_license | WuMenghao/DeepLearningDemo | 441b0aedcb07b26ab94c34c0ee026e782514c481 | 3689c50dabfe41e6fd6b1560522704664d0f2e92 | refs/heads/master | 2023-04-05T17:44:37.954880 | 2020-01-06T05:46:07 | 2020-01-06T05:46:07 | 218,517,640 | 0 | 0 | null | 2023-03-24T21:54:28 | 2019-10-30T12:01:13 | Python | UTF-8 | Python | false | false | 7,285 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"tm_wmh@foxmail.com"
] | tm_wmh@foxmail.com |
e6cb1c6ae8c2f5f50118d4848598853900007fbf | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3remoteusageper1year.py | 9f5ceefbfc23a4350dd913a6766bce7204c280e9 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 19,817 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
6ad851cbcd18f3f09636edf8d5926440492921f1 | 56b5bce8ad3d778ab5a6665f49fe920b14c6ba76 | /Python/prime_gap.py | 21fb8a52808a5e371839bfa1be251c3abec13f8f | [] | no_license | oversj96/CodeWarsProjects | aeef268f1eb88856b2f3479fe1f0925b76251569 | f3bd33484c65131b158c931db3deced72901ba6a | refs/heads/master | 2020-07-19T05:44:29.043957 | 2019-09-13T16:12:14 | 2019-09-13T16:12:14 | 206,385,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | def gap(g, m, n):
if(m % 2 == 0):
m += 1
for i in range(m, n+1, 2):
for x in range(2, i+1):
if(i % x == 0 and i is not x):
break
elif(i == x):
for j in range(i, i+g+1):
for y in range(2, j+1):
if(... | [
"45669103+oversj96@users.noreply.github.com"
] | 45669103+oversj96@users.noreply.github.com |
b7615ccb5fb53b5adb5e8d5f5076d4dcafddc37d | 53d1bdf15ac38f23785dc2d12438300a3c4420ef | /tools/accumulate.py | d0a5579de0f8e672b28ffa6d78d9dc57af54bdcf | [] | no_license | sbmaruf/Parallel-data-ted | c69273814b3584544207b681445aba3e1dc2e629 | 4f19ec96042d0b0831a7134bd2385cd7276a2536 | refs/heads/master | 2021-04-09T11:23:54.630315 | 2018-07-05T08:36:48 | 2018-07-05T08:36:48 | 124,411,201 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,579 | py | import os
import argparse
import time
import sys
from collections import OrderedDict
import re
import unicodedata
parser = argparse.ArgumentParser(
description="Accumulate different source of data",
prog=((sys.argv[2] + '.py') if os.path.basename(sys.argv[0]) == 'pydoc' else sys.argv[0]),
... | [
"sbmaruf@gmail.com"
] | sbmaruf@gmail.com |
e0292d766565f016aa318a8a0a0ef6b6fb9bd40d | 16af32261c036caf4a6ef99efadd1418e7256b47 | /5.3 Include Linked List.py | 274ab0fad924090bc69d60d8d3510632eced4a72 | [] | no_license | pperorin/Data-Struct | 6dc6dcb0237bd11207e08b38c79e6ce0e3ec5ad8 | 32d44ff1735a93608e1e71e11d60277ea5c712ba | refs/heads/master | 2023-03-28T19:32:11.895582 | 2021-03-14T18:54:40 | 2021-03-14T18:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | class Node:
def __init__(self, item):
self.item = item
self.next = None
def setNext(self, node):
self.next = node
class LinkedList:
def __init__(self):
self.head = None
self.size = 0 #ไม่มี
def __str__(self):
if self.size == 0:
return 'Empty'
else:
s = ''
cur = self... | [
"zentoa@hotmail.co.th"
] | zentoa@hotmail.co.th |
216030e9904e5756b9d914f34643907bfe0329c2 | 1d8f43fa4a16419ced68d1e56c51cc5dbe36a47d | /src/client/tasks/scheduled_async_tasks.py | 0b7f00e1aa97b2a8d3ba7751fe5455bf83044b75 | [
"MIT"
] | permissive | sebveigli/apex_bot | e6ef4fbd95cf1d55c920d8358f46e1c32c138574 | 8c020d026a02b6072ffd8ace40c38872a3a3160f | refs/heads/master | 2022-12-09T16:41:03.723003 | 2019-06-05T20:28:50 | 2019-06-05T20:28:50 | 176,143,755 | 5 | 1 | MIT | 2022-12-08T05:04:51 | 2019-03-17T18:35:31 | Python | UTF-8 | Python | false | false | 2,736 | py | import asyncio
import logging
import threading
import time
logger = logging.getLogger(__name__)
class ScheduledAsyncTasks():
@staticmethod
async def update_client_presence(client):
from discord import Status, Activity, ActivityType
from db import get_server_db
server_count = 0
... | [
"seb.veigli@gmail.com"
] | seb.veigli@gmail.com |
45ffaf4426419e33898e073ea47511d7dd5e942c | 632d417159013940d612f7364c2a7c5c88b52a56 | /esign/esign_app/migrations/0011_auto_20180119_1323.py | 1a72ae50f09c5a75f3a94acd9845c1324ab2f88a | [] | no_license | cityking/esign | e553d6197f383fab0435dec5805f140592e2fdfc | f88279e3b7f5800bd5ad3a0bd95ebf494078da4c | refs/heads/master | 2022-11-02T20:12:54.927931 | 2018-02-09T03:02:37 | 2018-02-09T03:02:37 | 120,849,522 | 0 | 0 | null | 2022-10-20T20:28:59 | 2018-02-09T03:07:20 | Python | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-01-19 05:23
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('esign_app', '0010_auto_20180119_1322'),
]
operations = [
mi... | [
"cityking@citykingdeMacBook-Air.local"
] | cityking@citykingdeMacBook-Air.local |
3c13a9494db50cdb2c1c7cd79a400736ee486249 | 21aaa5f90d02707194caae5d30ed403527c2480f | /tdmerge.py | c0b03dff9ad496b427c11a8894a2c7cf6520dab7 | [] | no_license | Sharmaraunak/Data-structure-with-python | 3de5d4b14fea6d59dbd67a7f83fe59198e50c168 | 72f26a40e76d739f2d24429583bae101eff16e4e | refs/heads/master | 2020-07-15T11:36:29.460059 | 2019-09-02T18:53:18 | 2019-09-02T18:53:18 | 205,553,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | '''top down merge-sort is an approach in which we divide the array up until last i.e going down to 1 element while dividing
and then callng merge on arr each single unit one time.
In the mergeSort function:
A array in inputted to be sorted
in other function sort
taken start = 0 and end = len(inputted array)
recurse the... | [
"sharmaraunak338@gmail.com"
] | sharmaraunak338@gmail.com |
d54eb87aaa650c747b6eee9277a4894af92f7bc3 | c731a6feafa43252c5f7b48362be97e3d90081ae | /gpxster/urls.py | 8114bb66759482b43844c6824abc40454171c09e | [] | no_license | sgarsztka/gpx | d3d268905b67f62c62eb09284127817dea08373b | bd7fb7da134d1398a10e1b684b019e00c8fab6c7 | refs/heads/master | 2023-03-16T09:41:39.340308 | 2021-03-07T18:13:56 | 2021-03-07T18:13:56 | 298,028,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.urls import path
from . import views
urlpatterns = [
# path('login',views.Login.as_view(), name='login'),
# path('',views.Index.as_view(), name='index')
]
| [
"sbl86al.o@gmail.com"
] | sbl86al.o@gmail.com |
30c6eb75e4a08899cecb9c4a70cb6d59442c7695 | 0cfefe9f94e8c2a963872459d24876f55bc908aa | /model_docsum.py | 0ed50a44994d876e46a757bd50fe3872411dd6a8 | [
"BSD-3-Clause"
] | permissive | wjddn803/TeamAlpha | 7b040821e335d1416d60f82b7e62600052a6063f | ea270f80eb78561048f0d39a0ad30e5be10c79c5 | refs/heads/master | 2020-05-03T19:39:56.414555 | 2019-05-07T03:23:02 | 2019-05-07T03:23:02 | 178,788,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,046 | py | ####################################
# Author: Shashi Narayan
# Date: September 2016
# Project: Document Summarization
# H2020 Summa Project
####################################
"""
Document Summarization Modules and Models
"""
from __future__ import absolute_import
from __future__ import division
from __future__ imp... | [
"zxzxzxzxz803@naver.com"
] | zxzxzxzxz803@naver.com |
21a5bab623131e69766e639509e8c1e67a713fe7 | d9eae6dd43848c50bdecc1fba5b7197c0e91fbf3 | /ituro_website/post/migrations/0016_auto_20170219_1934.py | 7ba2857c8c081fb8ff6bc5083cf79c62174c9b10 | [
"MIT"
] | permissive | Batuortal/ituro_website | 38045c7ad2ffe288fe1bd9ce2a5dd4304251c678 | f63948b99a03245c905a0cc9318e9509c91175e8 | refs/heads/master | 2021-01-01T19:09:41.871036 | 2017-07-27T12:15:19 | 2017-07-27T12:15:19 | 98,529,284 | 2 | 0 | null | 2017-07-27T11:43:52 | 2017-07-27T11:43:52 | null | UTF-8 | Python | false | false | 472 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2017-02-19 19:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0015_categoryentry_path_model'),
]
operations = [
migrations.AlterFi... | [
"celaleddinhidayetoglu@gmail.com"
] | celaleddinhidayetoglu@gmail.com |
4a196cd4f4e92e6b42f9a4e0df6489a41ad1cdfe | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/c8n.py | a152200db7ea0c68b8daebb0c4d24d5fe2909fef | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
c1ac35f44e1b4a931797c9c87f2211e02c94e183 | c121241726b54e75741e48467807d14281fd0dc8 | /tests/__init__.py | 316a1b52b2401b80b87659829eaac537eb53a205 | [] | no_license | zeikomi552/githubapi-python-sample | fe44b7bd12af713cdf51125e42d022ea2f4d0d1e | 70d75fab654e343a20e80a2b391341176276ba1a | refs/heads/master | 2022-12-09T11:07:04.494279 | 2020-09-05T09:19:15 | 2020-09-05T09:19:15 | 286,598,982 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..')) | [
"68983834+zeikomi552@users.noreply.github.com"
] | 68983834+zeikomi552@users.noreply.github.com |
f01a21e3061792d927357110f3970d7c03ba9050 | 8ed86b8e9c451abcb2ce0ddf2f2067c11f3993d8 | /tests/test_osmnx.py | 33ec027e2986a7c620183d88cd5c271556bd3600 | [
"MIT"
] | permissive | surfcao/osmnx | 65830096c21b8353a536f776dfedba7de20eac4c | 51c9addb42425657fa6b11c7442f79f10b9e3e22 | refs/heads/master | 2021-01-19T23:32:40.068378 | 2017-04-19T20:22:01 | 2017-04-19T20:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | """
OSMnx tests
-----------
"""
import matplotlib as mpl
mpl.use('Agg') #use agg backend so you don't need a display on travis-ci
import os, shutil
if os.path.exists('.temp'):
shutil.rmtree('.temp')
import osmnx as ox, logging as lg
ox.config(log_console=True, log_file=True, use_cache=True,
data_folde... | [
"gboeing@berkeley.edu"
] | gboeing@berkeley.edu |
1b2adbb82307321e2b0c0359cdf5b60612158d7c | 58d90b4e18d004db0148dbf9a8b8cf9f56e850aa | /build/lib/more/viz_helper/plot_corr.py | 389bb649238ba3996735d77b65a65d4679a313f1 | [
"MIT"
] | permissive | ngupta23/more | bacd831c6e0ba62dd97977c547f211c995077046 | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | refs/heads/master | 2020-06-18T12:16:40.655308 | 2019-08-26T09:29:19 | 2019-08-26T09:29:19 | 196,301,026 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import matplotlib.pyplot as plt
import seaborn as sns
def plot_corr(data, figsize=None, xrot=0, yrot=0):
"""
corr_mat: Correlation matrix to visualize
figsize: Overall figure size for the overall plot
xrot: (Default = 0) Rotate x-labels
yrot: (Default = 0) Rotate y-labels
"""
fig, axis = p... | [
"mywork.ng@gmail.com"
] | mywork.ng@gmail.com |
3c658b334f17c2ae83c718925f6c72f06ada900a | 9c48cc39d149e20bf0c25fae8029043ab43f8f06 | /recipes/tensorflow/samples/tensorflow/perceptron/samples/tensorflow/scorer.py | d51a992348c28fb52dcbe01c0fd9d4fa5869a858 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DalavanCloud/experience-platform-dsw-reference | b4b6dd363b6fe6ed638db12d7e890af5e4f934dd | 2e0af85a47ec05b7cda77d61954c1cde0a625f5c | refs/heads/master | 2020-04-29T12:36:16.806332 | 2019-03-12T09:55:33 | 2019-03-12T09:55:33 | 176,142,668 | 1 | 0 | NOASSERTION | 2019-03-17T18:26:31 | 2019-03-17T18:26:31 | null | UTF-8 | Python | false | false | 1,518 | py | #
# Copyright 2017 Adobe.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"jlancar@adobe.com"
] | jlancar@adobe.com |
4fafbbfa074b3066c6e1510ea7acc4fff364b959 | 69c62b9e23a350bd97947b58e341d5e031956b2f | /in_progress/377.py | 7f2ae307b9d7b3d6b6f9b9b2f2fc4dfd4b6ef92a | [] | no_license | g-d-l/project_euler | 756fce982d7a3d44f8391bebcf04d2f368223a9a | 00b6c26afd96d5a849fe49ef0048bace1de634b6 | refs/heads/master | 2021-01-10T11:13:15.127212 | 2016-01-05T02:04:56 | 2016-01-05T02:04:56 | 49,035,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | def digit_sum(n):
result = 0
while n > 0:
d = n % 10
result += d
n = n // 10
return result
def no_zero(n):
if '0' in str(n):
return False
else:
return True
n = 9
grid = [[0 for x in range(n)] for y in range(n)]
for i in xrange(111111111, -1, -1):
if no_z... | [
"grahamlustiber@gmail.com"
] | grahamlustiber@gmail.com |
47f0c143537b99ffb3e3284dfa05d57756f3b79d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1_neat/16_1_1_DanielBraithwaite_last_word.py | f312da31370a6413f77cbed11a1a43de2b88ee5d | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 554 | py | def last_word(s):
w = s[0]
for i in range(1,len(s)):
si = ord(w[0])
ei = ord(w[len(w)-1])
ci = ord(s[i])
if ci >= si:
w = s[i] + w
else:
w = w + s[i]
return w
o = open('output.txt', 'w+')
f = open('A-large.in', 'r+')
##f ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
7edd65620a859a56b61c8982fe8c8e7e7b8822cf | e8274f167fd219ef78241ba8ea89e5d5875ed794 | /cloud/quantum/quantum/api/v2/resource.py | 757d20061e74194d59943d327de57d095cd418a3 | [
"Apache-2.0"
] | permissive | virt2x/folsomCloud | 02db0147f7e0f2ab0375faf4f36ca08272084152 | e6fd612dd77f35a72739cf4d4750e9795c0fa508 | refs/heads/master | 2021-01-01T17:26:28.405651 | 2013-10-17T12:36:04 | 2013-10-17T12:36:04 | 13,647,787 | 0 | 1 | null | 2020-07-24T08:25:22 | 2013-10-17T12:10:24 | Python | UTF-8 | Python | false | false | 4,991 | py | # Copyright 2012 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"quan.xu@intel.com"
] | quan.xu@intel.com |
f03153a59de4a234d11b84dcec0f9f4e0910c662 | a67f7ae56ff7fcbd1fe665c77e7efc1ba54b7675 | /TextClassification/testing_cnn_lstm.py | 0acec085b9a00d94499aa2be28bff009a73f4f50 | [] | no_license | thdiaman/deeplearning | a013d16c59932ccfe62d87012613093d3a46e9d3 | 9ddc46b6ad257ad0885d1d5dc8eb64589d618f2b | refs/heads/master | 2021-07-02T02:08:52.778443 | 2019-05-31T23:42:14 | 2019-05-31T23:42:14 | 133,405,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # Import basic libraries and keras
import json
from keras.models import load_model
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
# Load the model, either 'cnn_model.h5' or 'lstm_model.h5'
model = load_model('cnn_model.h5')
# Load the dictionary and the model
wit... | [
"themisdiamantopoulos@hotmail.com"
] | themisdiamantopoulos@hotmail.com |
4b7fd03b0c233030ec89fb538722a130ae795def | e3df9942558c81f89cdc13a519f517bf8d403aa6 | /esm2m/setup.py | 1f93c6100b8f7558ecc7171b69dc3d4503d75b0d | [
"MIT"
] | permissive | ystochel/esm2m | a4de1f8164ada23d4c98f6b10bf121f5f7e9ff71 | 0a133dc69dd72ab8c4c7537632e070bf5a32c9a6 | refs/heads/master | 2022-12-03T13:46:12.202867 | 2020-08-14T01:56:27 | 2020-08-14T01:56:27 | 267,344,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='PEI Summer Internship 2020',
author='ystochel',
license='MIT',
)
| [
"ystochel@flyingfish.princeton.edu"
] | ystochel@flyingfish.princeton.edu |
007692cd016585291035ae82627b954f89929568 | 9be19b8015a1405235e0457756fcfa688f1f6797 | /Chapter-09/mad_libs.py | 0894e7ab2021d351bafc3e2ffabe36841d9fe2da | [] | no_license | SilentCruzer/Automate-the-boring-stuff-with-python | b2b5de6554e0958c143110f4f2bcbc209a8cbb36 | ad561a8cc500a88f38f083be4179345f61fbc952 | refs/heads/master | 2023-02-15T21:03:11.213267 | 2021-01-06T16:49:34 | 2021-01-06T16:49:34 | 323,024,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import sys, re
replace_words = ['ADJECTIVE', 'NOUN', 'ADVERB', 'VERB']
with open('mad_libs_text.txt') as f:
sentence = f.read()
for word in replace_words:
while(word in sentence):
replace = input("Enter an " + word.lower() + ": " )
sentence = sentence.replace(word, replace, 1)
print(sentence)
with open("mad_L... | [
"radithykumar7@gmail.com"
] | radithykumar7@gmail.com |
b93919749d0ffe49d019f0a0385ed8d83d3592da | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /v8/tools/testrunner/local/testsuite.py | f7fa19b20a0b5ce18abe0cd934fbbe12145291b8 | [
"BSD-3-Clause",
"SunPro",
"bzip2-1.0.6"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 12,313 | py | # Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
b100512b577573496e2a4b06b4ecba61f76b9160 | 0cb8f0f422c790e75da3d3e4d277390039a72637 | /assignment1/question.py | f461ff4af675756623bb5336d0721daddea9cf3d | [] | no_license | curow/CS231N | aa62812bb5698e5b10856dd8f700f56bca2e980a | feafeee3081e22cfc23f5643d71f45e0e6e636f4 | refs/heads/master | 2021-09-04T17:44:25.291119 | 2018-01-20T16:57:51 | 2018-01-20T16:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | def svm_loss_vectorized(W, X, y, reg):
"""
Structured SVM loss function, vectorized implementation.
Inputs and outputs are the same as svm_loss_naive.
"""
loss = 0.0
dW = np.zeros(W.shape) # initialize the gradient as zero
# transpose X and W
# X.sh... | [
"TiwazBiu@gmail.com"
] | TiwazBiu@gmail.com |
2c859a6f2acfe8a6f7648e36a4e2293e29ec40bf | a5875775b1ccaf45d18945c719feb398f45dbc93 | /server.py | e0b0f1bf608823e2b2e9b3d6e7072bdac6c76f99 | [] | no_license | bananacatsky/myu | 694541cf9c1872e76307a221231a42d4e36227dd | 2c38c6966d2b7b523a4d05001864298f94143b34 | refs/heads/master | 2020-09-06T22:00:31.225375 | 2019-06-23T23:18:09 | 2019-06-23T23:18:09 | 220,567,879 | 1 | 0 | null | 2019-11-09T00:16:29 | 2019-11-09T00:16:28 | null | UTF-8 | Python | false | false | 1,377 | py | import os
from flask import Flask, request, redirect, url_for
from werkzeug.utils import secure_filename
from flask import send_from_directory
from process import mix
UPLOAD_FOLDER = r'uploads'
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'}
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD... | [
"sknek@ya.ru"
] | sknek@ya.ru |
0331c7d64d9c4561496104cd1e73f30ef345945b | 403a8c7d9ba2956c3f5873d0721921e0d8ae7c65 | /tests/test_cli.py | 13cee7104e6617fae0738f12d22c77060adeb91a | [
"MIT"
] | permissive | kazhala/fzf.aws | b0c83f0ac47f1b2da0d0b064d6a688ba2e69028c | 4abefb2301f7b489b11ed3f0b303faafa5941d5b | refs/heads/master | 2021-07-05T00:50:12.632284 | 2021-05-25T23:09:51 | 2021-05-25T23:09:51 | 242,327,229 | 68 | 3 | MIT | 2021-03-25T23:42:00 | 2020-02-22T11:09:11 | Python | UTF-8 | Python | false | false | 3,065 | py | from botocore.exceptions import ClientError
from fzfaws.utils.exceptions import InvalidFileType
import os
from fzfaws.utils.fileloader import FileLoader
import unittest
from unittest.mock import patch
from fzfaws.cli import main, copy_config
import sys
import io
from pathlib import Path
import tempfile
class TestCLI(... | [
"kevin7441@gmail.com"
] | kevin7441@gmail.com |
b12564d2f5104f58ae800d80cb88bb520d543101 | 6d66e5f112f48db059002f9d2bdd0a81e552ad8c | /orb/core/connection_types/sql/mysql/statements/where.py | cb76e1c1639c88bc1e81d751d8667f5a2bd9755d | [
"MIT"
] | permissive | charblanc/orb | 9fd94bb2fbc172e4c3c6a464d83b5c30b11957dd | 1db49eb7eaee4b4fb8ff1024d6652e84a14c67f9 | refs/heads/master | 2021-01-12T22:22:26.932895 | 2016-08-23T02:33:46 | 2016-08-23T02:33:46 | 66,504,604 | 0 | 0 | null | 2016-08-24T22:33:42 | 2016-08-24T22:33:41 | null | UTF-8 | Python | false | false | 7,392 | py | import os
from projex.lazymodule import lazy_import
from ..mysqlconnection import MySQLStatement
orb = lazy_import('orb')
class WHERE(MySQLStatement):
def __call__(self, model, query, aliases=None, fields=None):
if query is None:
return u'', {}
aliases = aliases or {}
fields ... | [
"ehulser@teslamotors.com"
] | ehulser@teslamotors.com |
0755c19bf2fd59870c1cef2bc3c27174d800d966 | a946b8ef844ded0e6ad361c7a5fb5b5987f071ab | /Tax.py | 68dec46a23058d3e9e08a6f9ac48ec7c71912620 | [] | no_license | Greenteadrinker/Tutorial9_Tax | 79dcb4c88c0ececcf5ca179be27db89654aec1fb | ad14abfd7c18c9766ce5315078f01b6daf397736 | refs/heads/master | 2021-01-24T17:31:53.651206 | 2018-03-19T14:59:59 | 2018-03-19T14:59:59 | 123,231,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | income1 = float(input("Enter the Husband income: "))
income2 = float(input("Enter the Wife income: "))
def singleTaxCal(income1,income2):
#print("Start individual")
BasicAllowance = 132000
MPF1 = min(income1 * 0.05,15000)
#print("MPF1 = ", MPF1)
MPF2 = min(income2 * 0.05,15000)
#print(... | [
"noreply@github.com"
] | noreply@github.com |
536610ba716a9b8715ef45dffd40ac555213c201 | 1dcea2a511f14a43701994f6a7785afd21a20d74 | /Algorithm/61_RotateList.py | ad33302d777bb10f3daee4eb21b7a5bd9a4a46c7 | [] | no_license | lingtianwan/Leetcode2 | 66031e256a2928c6197516f83f14748c52e91b8c | 80a604cc09d5d2d62dd05157d8b829de675e4404 | refs/heads/master | 2021-01-13T11:17:18.238465 | 2017-02-09T01:43:38 | 2017-02-09T01:43:38 | 81,395,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # Given a list, rotate the list to the right by k places, where k is non-negative.
#
# For example:
# Given 1->2->3->4->5->NULL and k = 2,
# return 4->5->1->2->3->NULL.
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class ... | [
"lingtian.wan@gmail.com"
] | lingtian.wan@gmail.com |
8c5369e862b8187fd0b71dc8f0f2dfa62994244e | f9994f66f21f8bbdfd6502b04fd76534a3a3fa62 | /firstpython.py | c663eda1ce15b330c06a4c9f87190d9a5de781a3 | [] | no_license | rishika910/silver-journey | 4681643555e5a5867b58e27ea63426de9c28a8dd | 6125396016a799fac0d0de855f46531e32702fba | refs/heads/main | 2023-07-10T19:12:05.125535 | 2021-08-21T17:36:30 | 2021-08-21T17:36:30 | 398,619,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | # Display output
print("A new file")
| [
"noreply@github.com"
] | noreply@github.com |
1f68ff02a3784d7f3d9469d7701cb42603a1e5dc | a5b3a2e2dc7066ed2ae035bdfb595f1971c550aa | /上课练习2/day8-socket-server/多线程/线程锁—互斥锁Mutex.py | 8551c8a31df7943c2dba9ddfecdd4bc2e12d1549 | [] | no_license | jiaziming/oldboy | bed26a0ea22c80600bbcae61da82055577b2a61a | 746b24a500809a8bce71922a496532ec69de93e5 | refs/heads/master | 2021-01-23T01:33:53.946410 | 2017-07-28T03:27:05 | 2017-07-28T03:27:05 | 86,789,623 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python
#-*-conding:utf-8-*-
import threading,time
def addNUM():
global num #在每个线程都获取这个全局变量
print('--get num:',num)
time.sleep(1)
lock.acquire()
num -= 1 #对公共变量进行-1操作
lock.release()
lock =threading.Lock()
num = 100 #设置一个公共变量
thread_list = []
for i in range(100):
t = th... | [
"jiaziming123@sina.cn"
] | jiaziming123@sina.cn |
0ea731807079336c5edf2453e90cb32ecfc823f9 | 135238dfa1bdd3a577c6b08ebcd478a649c0dce3 | /cfgov/retirement_api/views.py | c3c345a078d858dd6b4b6b3fae311728ad76cb07 | [
"CC0-1.0"
] | permissive | adebisi-aden/consumerfinance.gov | 5e716a03180ba18bac747e5f3e7e47c7774c2dab | 8c0f5afac341823c59f73b0c6bd60592e0f5eaca | refs/heads/main | 2023-08-12T04:13:43.687689 | 2021-09-17T14:24:54 | 2021-09-17T14:24:54 | 407,607,316 | 0 | 0 | CC0-1.0 | 2021-09-17T16:21:12 | 2021-09-17T16:21:11 | null | UTF-8 | Python | false | false | 2,445 | py | import json
import os
from django.http import HttpResponse, HttpResponseBadRequest
from dateutil import parser
from .utils.ss_calculator import get_retire_data
from .utils.ss_utilities import get_retirement_age
BASEDIR = os.path.dirname(__file__)
def param_check(request, param):
if param in request.GET and r... | [
"noreply@github.com"
] | noreply@github.com |
cc6b83a6ac136bf167c42cf0929469a23be292e0 | 57af0aa503918f5586696271856ddf10685a106a | /code/inductive/dataset.py | 4a9c4446b6ac4a4715d7b9d90c12fb2d5d1b8495 | [] | no_license | Linkerbrain/GNN-document-classification | 2a5e7dd527dc1f0694e1e12cd125f2144f4aa1f2 | 7e19408f75510685fc4fa13507532d161460ec7e | refs/heads/main | 2023-04-23T09:20:26.741356 | 2021-05-04T11:33:10 | 2021-05-04T11:33:10 | 357,503,385 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | import torch
import random
import numpy as np
from torch_geometric.data import Data
from torch_geometric.data import DataLoader
from tqdm import tqdm
class InductiveDataset():
def __init__(self, graphs, labels, word_vocab, label_vocab):
# vocabs for later
self.word_vocab = word_vocab
self.l... | [
"lloerakker@gmail.com"
] | lloerakker@gmail.com |
01f689e9ef9e799a2321e60a33ab66011923ddfa | 06f5ed6cec8ae105eb4f47ce87edae7080e1f8a8 | /chirper/settings.py | 532bb3cfa617d0224e85c3e930678260ed80d9a4 | [] | no_license | terenced/chirper | 6a8a9e0923e73e161e7870df08dda08ada2d90b9 | 041036427ca990ccf3f718d37fb6cf27f7f335b2 | refs/heads/master | 2020-04-06T05:24:06.225035 | 2013-10-22T20:44:56 | 2013-10-22T20:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,836 | py | # Django settings for chirper project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
AUTH_PROFILE_MODULE = "chirper_api.UserProfile"
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql... | [
"terry.dellino@gmail.com"
] | terry.dellino@gmail.com |
b01bf0b6ca13eb712951accf540807cec349afc4 | c18a363f25565fe61221dba7987d461d698bc3bb | /testNumba/test_officalWeb_2.py | ac0a0cc70b6493bc463bf5c091914afdab4ae875 | [] | no_license | ijiangpeiyong/ijiang | a1e689707bfcefc29170ae8c85067a76c18a0829 | 66a4da5d38d954a400fe7bf9def796f2bf6bdb6e | refs/heads/master | 2020-04-10T16:05:32.341278 | 2019-01-03T10:45:58 | 2019-01-03T10:45:58 | 161,132,860 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | from numba import jit
import random
import time
def monte_carlo_pi(nsamples):
acc=0
for i in range(nsamples):
x=random.random()
y=random.random()
if (x**2+y**2)<1.0:
acc+=1
return 4.0*acc/nsamples
@jit()
def jit_monte_carlo_pi(nsamples):
acc=0
for i in range(n... | [
"ijiangpeiyong@126.com"
] | ijiangpeiyong@126.com |
66b63ca00a999d2611f9e8483abd97da52d70e28 | 91e8200c790ef77a3f5401def4bbaea408e2cf6c | /Func_tuts/pFa.py | c12818a15b3ac27832cff15fbb32316940072ba0 | [] | no_license | mikel-codes/python_scripts | e3795629c5096d20c41fe3a13714e1519b59c1be | cf1a475c843c8e8e857229fbd3dc52525765f185 | refs/heads/main | 2023-06-23T07:02:59.385491 | 2021-07-24T08:12:49 | 2021-07-24T08:12:49 | 389,036,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from functools import partial #these tools help for customization of function
from operator import add, mul
import Tkinter
addQ = partial(add, 10)
mul100 = partial(mul, 100)
print addQ(20)
print mul100(18)
baseTwo = partial(int, base=2)
baseTwo.__doc__ = "converts to base 10 a binary"
print baseTwo('10001')
root =... | [
"gatez@yahoo.com"
] | gatez@yahoo.com |
59578622e0748a2eea98e10fbb3842e3303d2f6d | aea6e23c484ba615fb7e36752b36f9b018c60ae5 | /Predictor/predictor_helper.py | 6b78585abfb9e4ca1776fee0185d5053633158bf | [] | no_license | Hylian/Hashtagger | d7151796ff4d88fa675911442a4a15434e27d940 | 1322c321b3650f3cd3c6cab591cb0c70bb8ec8a5 | refs/heads/master | 2021-01-01T05:34:52.686700 | 2013-09-15T05:11:39 | 2013-09-15T05:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | import numpy, pickle
from predictor import predictor_func
NUM_FILES = 100
freq = dict ()
words = []
examples = []
cur_example = 0
num_train = 1000
num_test = 1000
score = 0.0
#utilities
def checkChar (c):
return 0 <= ord (c) and ord(c) < 128
def clean (word):
ret = filter (checkChar, word)
ret = ret.enc... | [
"rayli@Rays-MacBook-Air.local"
] | rayli@Rays-MacBook-Air.local |
2b9247f47cc8da5fb98b47c63dc13949cd8cd7e3 | 721459bf299f74db4983916e76bd756f4e338cf8 | /ctpn/main/train.py | e48534c93bf5dd03c2ea497191fec1a9568d4781 | [] | no_license | JACK1416/OCR | a9c515230781790b0d7149851b51d4772285db33 | a839f53158df8c63aa10ca269feabb5db556532f | refs/heads/master | 2020-04-26T08:44:48.554812 | 2019-03-02T10:35:47 | 2019-03-02T10:35:47 | 173,433,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,930 | py | # -*- coding: utf-8 -*-
import os
import sys
import time
import datetime
sys.path.append('..')
import tensorflow as tf
import numpy as np
import cv2 as cv
from nets.ctpn import ctpn
from nets.data_layer import DataLayer
from utils.loss import loss
tf.app.flags.DEFINE_float('learning_rate', 1e-5, '')
tf.app.flags.DEFI... | [
"apple@Macbook.local"
] | apple@Macbook.local |
8be890fee96f1b20a72ee0e5a12994463dacff69 | 77df49e20d8f2e95a349758c92c7cef7afaddb80 | /gameinterface.py | e4fdc718c0b338c1a15f2ad944bf1584c0b98333 | [] | no_license | LarsLKarlsson68/Italian-Dungeons | 7b32b7623e71822fc4f412b93a972455bdf9b1a9 | 0bef22d97d4774b4f5bef4489e17b0833cede4cd | refs/heads/master | 2021-01-15T16:10:12.014995 | 2017-08-08T15:54:32 | 2017-08-08T15:54:32 | 99,709,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,286 | py | # -*- coding: latin_1 -*-
import tkinter
import _thread
import tkinter.filedialog
#import Image
#import ImageTk
class GameInterface(tkinter.Frame):
def __init__(self,xsize=10,ysize=10,tilesize=10):
print("Entering GameInterface.init")
tkinter.Frame.__init__(self,None)
self.canvas = tkinter... | [
"lars.karlsson@oru.se"
] | lars.karlsson@oru.se |
5eeaa7ec503906bf393cfbde66233d04a3698f41 | 6d11f214381fa4ca8c27e779ae988dd47cce322b | /com_donot_use/port8/core_old/schedutility.py | 00df3949f1c94f2edc6d71c18842d3d3ed7ab41a | [] | no_license | myuconnect/Port8 | d4e0d8fd53adb625e3a80f8a44e44095e2f03262 | eb28211b18c0178820ee14e32606ed223761671f | refs/heads/master | 2020-03-19T02:42:21.700013 | 2018-09-12T01:45:24 | 2018-09-12T01:45:24 | 135,512,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,586 | py | from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.schedulers.blocking import BlockingScheduler
from com.port8.core.singleton import Singleton
from com.port8.core.globals import Global
from com.port8.core.utils import Utility
from com.port8.core.error import *
from com.port8.core.infrau... | [
"oracledba.usa88@gmail.com"
] | oracledba.usa88@gmail.com |
817b4cde609c42a165cc9ddc8e3ece7e7f5b8001 | 3ca80a9a55652e21a7c69008842e86ac72f744d3 | /real_python_courses/Python_Dict.py | 53c563d563f4eb3a36a257c673e0ac123587d57a | [] | no_license | pshapard/New_projects | 29ef9f7793e137124d33ca461e3dd686023789c5 | 8cf0e244cde07dd0f750de6a064deba970c0cf7a | refs/heads/master | 2022-02-11T06:13:35.278903 | 2022-01-25T19:21:14 | 2022-01-25T19:21:14 | 253,964,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | #
class PrintThis(object):
def __init__(self):
"""funtion to initialize a class"""
pass
def HashTag120(self):
"""Function to print out 120 hashtags"""
print('#'*120)
printme = PrintThis()
printme.HashTag120()
my_dict = {'color': 'red', 'fruit': 'apple', 'species':'dog'}... | [
"pshapard@outlook.com"
] | pshapard@outlook.com |
c70b7c8d785d5cea2c74ae6cb5e0d76bfb3512c5 | e2b4da672e778ecda0c11677f40da2b20f2bb6a9 | /app.py | 209211213fe131134faa02aa76097db4178df4b7 | [] | no_license | luongtruong77/food_130_recognition | cc183316d09eed4152e1cf951ba28c4334677cb9 | c6a683a953b90d113290630c5825df8fba223cf7 | refs/heads/main | 2023-07-17T22:48:59.299873 | 2021-08-26T00:09:04 | 2021-08-26T00:09:04 | 397,708,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | import tensorflow as tf
import streamlit as st
def load_and_prep_image(filename, img_shape=380, scale=True):
"""
Reads in an image from filename, turns it into a tensor and reshapes into
(380, 380, 3).
Parameters
----------
filename (str): string filename of target image
img_shape (int): size to resi... | [
"tqluong77@gmail.com"
] | tqluong77@gmail.com |
3d60ed7e99f218433773775f5e56aec334e9fb8d | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /tools/parsertools/testbuffer.py | f8f8dd1bfbe81182baf42dae60fe879de314da4a | [] | no_license | xprime480/projects | c2f9a82bbe91e00859568dc27ae17c3b5dd873e3 | 3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226 | refs/heads/master | 2020-04-27T03:51:29.456979 | 2019-04-12T14:34:39 | 2019-04-12T14:34:39 | 174,037,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
class TestBuffer(object) :
def __init__(self, tokens) :
self.tokens = tokens[:]
self.size = len(self.tokens)
self.index = 0
def get(self) :
rv = self.peek()
if rv :
self.index += 1
return rv
def peek(self) :
if self.index >= self.size... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
278269ce0336906a35c4a57f21cb02693fa64334 | 28b098b11832f1f0d06afe498cf76a64a9a90750 | /backend/thejacobblog_24666/settings.py | 53c464969db683b34de86ff561e4bcb4b06f15ed | [] | no_license | crowdbotics-apps/thejacobblog-24666 | 4fa5ca6c37a47bfcfd325a2a421a6ca0f53ad9f6 | d53ba1565a19577f391422d90f41e8ab6a7f9eb0 | refs/heads/master | 2023-03-18T22:33:56.488920 | 2021-02-22T23:34:51 | 2021-02-22T23:34:51 | 341,368,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | """
Django settings for thejacobblog_24666 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
edcfb344971d821721006300334822b6d4a62d2e | 22e36523e8355d5c50b28610b5c280429259087b | /omega.py | 353138bc2ba21684b67f8350d9cdd74257397bbe | [] | no_license | jumdtw/foresttetris | 5a1e9147ae28ab1ec3d9179bcb5cab41be4d488a | 32a5bafe8710277e2d6d867909e76d3a7d9bcb49 | refs/heads/master | 2023-03-01T17:52:40.500749 | 2021-02-18T13:39:53 | 2021-02-18T13:39:53 | 307,649,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,797 | py | import tetris
import copy
import random
import os
import json
'''
学習順序
1,手とる
2,盤面を毎回評価する。その際の 特徴量は各ゲーム単位ですべて保存する。
3,ゲームが終了したら(ゲームオーバーか50ライン消し終わったら)、その保存した特徴量群とスコアを紐づけて保存する
4,1000ゲーム分くらいたまったら、スコアを比較して上位100位を学習させる(もしくは特徴量数で決める)
5,やったね。
'''
class Omegamap:
# 目的座標までの軌跡
# xspinが紛らわしい
'''
aa = {
... | [
"ttnmrm1m3k5g1m3r3k@gmail.com"
] | ttnmrm1m3k5g1m3r3k@gmail.com |
9d1dac5b257b8cede94841ba46f28182fe9012f8 | 5d078b5af750e3d4fc2fc9e5b1c834b0329a34ca | /examples/miniapps/movie-lister/movies/tests.py | f6bfe81febcf3c4a2e6c02b24ab75ff0405b92f2 | [] | no_license | battyone/python-dependency-injector | 683e27be7632165764a5c957fa8dd3dbf546c77a | 53b7ad02759e9ab35a7e7c0c1fab58d523c79f3e | refs/heads/master | 2022-12-19T08:24:33.537046 | 2020-09-14T00:56:13 | 2020-09-14T00:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | """Tests module."""
from unittest import mock
import pytest
from .containers import ApplicationContainer
@pytest.fixture
def container():
container = ApplicationContainer()
container.config.from_dict({
'finder': {
'type': 'csv',
'csv': {
'path': '/fake-movies... | [
"noreply@github.com"
] | noreply@github.com |
7f0416307b8c694260d09aa9e48f3b5b5eef0c40 | 71460476c5f5ebdca719def124f1a0650861fdab | /mint_work/custom/pos_order_history_type/models/pos_sales_multi_report.py | af374a7c0fa77f540ef7d46732c590d9499bb3eb | [] | no_license | merdhah/dubai_work | fc3a70dc0b1db6df19c825a3bf1eef2a373d79c0 | e24eb12b276a4cd5b47a4bd5470d915179872a4f | refs/heads/master | 2022-01-07T11:22:07.628435 | 2018-10-17T13:37:24 | 2018-10-17T13:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Bista Solutions Pvt. Ltd
# Copyright (C) 2018 (http://www.bistasolutions.com)
#
##############################################################################
from odoo import models, fields, api, _
from odo... | [
"asghar0517@gmail.com"
] | asghar0517@gmail.com |
a7afecd37e918863ce882a587b97678ec8755db7 | 8bb349af63c2edb9971069c9af476286499386f5 | /web/commons/util/case_insensitive_set.py | 868801da56fe3019f8357575ab27920523f7b565 | [
"MIT"
] | permissive | chicommons/maps | 061760d3a48c9350bdee9a4bee9b8e4657fce209 | 78044c30d2d88401d2f2188d96ff7e9f18a8430e | refs/heads/master | 2023-08-19T05:21:32.744965 | 2022-10-06T16:37:55 | 2022-10-06T16:37:55 | 236,360,812 | 6 | 22 | MIT | 2023-02-08T00:44:51 | 2020-01-26T19:01:24 | JavaScript | UTF-8 | Python | false | false | 637 | py | from collections import MutableSet
class CaseInsensitiveSet(MutableSet):
def __init__(self, *values):
self._values = {}
self._fold = str.casefold
for v in values:
self.add(v)
def __contains__(self, value):
return self._fold(value) in self._values
def __iter__(... | [
"laredotornado@gmail.com"
] | laredotornado@gmail.com |
739a6fa4db6e93e4f152ee82b688209c95beaf9b | fa39d5a58e0bab026d1f224eebf8e396266ad62d | /codekata/50.power of 2.py | a1970c33d65db91e6d05a4bd000412e47931ce09 | [] | no_license | renugambal/guvi | 23192431b670b2193c2430aab82ea81a543f1c13 | e4b893e941e3cd8fddcf6adbdf076b8927f68b75 | refs/heads/master | 2020-06-03T00:07:44.482826 | 2019-06-26T11:27:11 | 2019-06-26T11:27:11 | 191,355,051 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | z=int(input())
if (z & (z-1)):
print("no")
else:
print("yes")
| [
"noreply@github.com"
] | noreply@github.com |
731842503a086b941ed1861a2f341ed9a8452487 | 8533aeeaeb12248f3f4d8e7bf3ab092bee8eb881 | /build/lib/sedna/server.py | c9272ea052562ead093ccdabf02673ecb442f002 | [] | no_license | Jiakun/all_autotests | 6f5d977590b4a0cc5cef7c3df21758f4f660c987 | cde85988fa008c083afbeb980fa66960dbe3cb23 | refs/heads/master | 2021-01-18T16:47:40.916399 | 2017-04-05T04:14:26 | 2017-04-05T04:14:26 | 86,769,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,034 | py | from time import sleep
import re
from SimpleXMLRPCServer import SimpleXMLRPCServer
from sedna.common import Service
from sedna.sampler import NodeSampler
from sedna.ha.services import ServiceKiller, ServiceCommand, NodeHATest
from sedna.thread import HADaemonThread, HAScenarioThread
from sedna.ha.ha import HAResult, H... | [
"fjkmail@163.com"
] | fjkmail@163.com |
92f14e257307446a72feaa6fa67fe33995f82ff2 | 5b2c50a72bce5c303757e00ea16dfc000120dd7b | /Corte 3/TALLER INTERFACES GRAFICAS DE USUARIO CON TKINTER/main.py | 9bf17604086deb7be282920eadf885139d467484 | [] | no_license | LuisGomez11/Python | 8efe6ae50ef6011b65e605fcf1750442fca61971 | aa9c79cdfae80811fe6a9c3ab06574b1bcecfc86 | refs/heads/master | 2020-04-28T20:36:59.076071 | 2019-05-11T11:06:18 | 2019-05-11T11:06:18 | 175,550,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,554 | py | from tkinter import *
from tkinter import messagebox
lista = []
def guardar():
n = nombre.get()
ap = apellidoP.get()
am = apellidoM.get()
c = correo.get()
t = telefono.get()
lista.append(n+"$"+ap+"$"+am+"$"+t+"$"+c)
escribirContacto()
messagebox.showinfo("Guardado","El contacto ha sido guardado en la agenda")... | [
"luisgomez24g@gmail.com"
] | luisgomez24g@gmail.com |
c34c9a8ff10d27423ec58705c27a4ad422e7a08a | 98897a706b48f40ac34cf6d1722e086bd87043ff | /analysis_everglades/first_unit_lost_script.py | 3c59c74c4714f5be0fe1fa913f493aef13a837fb | [] | no_license | shaunhyp57/everglades | dae28fb1695443fb6bb0a1e7c81d50b320dba400 | e4aab93d7fe8147ed3917605b2755ed429884b84 | refs/heads/master | 2022-04-25T03:07:24.999084 | 2020-04-27T16:32:12 | 2020-04-27T16:32:12 | 238,527,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | import os
import csv
rootdir = 'game_telemetry'
def list_files(rootdir):
Unit_Type_Dict={"[Striker]":1,"[Tank]":2,"[Controller]":3}
list=[-1,1]
r = []
i=0
fileCSV = open("firstUnitLost_target4_randact","w")
fileCSV.write("numberOfTurns"+','+
"winType"+','+"player_0"+','+
"pl... | [
"shaunhyp57@knights.ucf.edu"
] | shaunhyp57@knights.ucf.edu |
f3ddd2dab3b5302c60af59e19d6cc65c0cfc96bf | 31973632967be3dd06db9ac86435665616228b0c | /xtoken_map.py | 6cfce894b796b4f34304dfa89074f750eea51c2a | [] | no_license | tanupoo/penguin | 2d5f2f0dac935856cbc1ca533c6255e14be020b1 | a2911319e2aa31e0550bc36bfda728564d86727b | refs/heads/main | 2023-05-25T17:54:10.608657 | 2023-05-24T00:14:28 | 2023-05-24T00:14:28 | 249,449,058 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py | from datetime import datetime, timedelta
from hashlib import sha256
from random import random
"""
xpath and token map.
- generate token.
- validate token.
- remove token if validated.
- house keeping the map.
"""
class XTokenMap():
def __init__(self, lifetime=7200, limit=1000, hard_limit=1300):
... | [
"github-shoichi@tanu.org"
] | github-shoichi@tanu.org |
5ae1186a482bd5ce72bb88b91a51591fce531a64 | b9b347f7c6807942356856fd145d12bfd890c9ae | /discord_verify.py | 7fd080491dfc34ec12b22abecf63085781e1580c | [
"MIT"
] | permissive | nagjakolsitimang/AAAA | 48411dab8bf708acfc881a5b53d07a58d0166514 | 99190662ea7ebe60f05ddcbdf4aff2cc2647816c | refs/heads/master | 2020-03-20T11:45:28.383784 | 2018-06-14T21:49:40 | 2018-06-14T21:49:40 | 137,411,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,343 | py | import sys
import re
import recaptcha
import requests
import json
import random
import Queue
import threading
emails_q = Queue.Queue()
def debug(text, conf):
if conf['debug']:
print "[DEBUG] "+str(text)
def read_configurations():
try:
conf = json.loads(open('discord_verify.json','r').read())
... | [
"noreply@github.com"
] | noreply@github.com |
1df7189cda9f9e9f78c0932201794628cc7a950a | 5de989040aeebc58047ee43f9f518393b1f4ff15 | /run_app.py | bf9eb34b3468066186f84902e572deb55b784e50 | [] | no_license | bosefalk/WFB-simulation | 5e8750182abeeb29fe7feab6afaef98a725149d6 | 0cb967534b0b805d5a52932fa58712f9974fdc91 | refs/heads/master | 2021-01-19T04:49:59.974014 | 2017-04-29T13:33:15 | 2017-04-29T13:33:15 | 87,400,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from flask_main import app
if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0') | [
"bosefalk@gmail.com"
] | bosefalk@gmail.com |
0d538a63482a65ea73dac9def3fb1b15e7b85c5b | bd3a0f9e15d6258b6cdfd8288b9d31379a941fac | /Medium/ContainerWithMostWater.py | 685ac1b98d20361f356423dc354aec4694912a88 | [] | no_license | denmarktayong7/LeetCode | e9b15a94efd9f93708f6ee6c0bb7ae76bc3983d4 | ca1c4a20320d66d1dea2c96fda456550d94e46fe | refs/heads/master | 2021-07-07T17:10:31.087943 | 2021-03-27T15:54:42 | 2021-03-27T15:54:42 | 233,178,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Solution:
def maxArea(self, height: List[int]) -> int:
bestArea = 0
pt1 = 0 #left pointer
pt2 = len(height) - 1 #right pointer
while(pt1 < pt2):
bestArea = max(bestArea, min(height[pt1], height[pt2]) * (pt2 - pt1))
if(height[pt1] > height[pt2]):
... | [
"noreply@github.com"
] | noreply@github.com |
cf64837efa8aa84185b39f8448f6d16429850db7 | 4523542cf50113daf5ee59f1d59a46309ab99c89 | /anno.py | d1d944f3a0ef4ca92ddfb51b6de52184e5b41636 | [] | no_license | Runsheng/mitovar | 798da8447387092cbf98329cc8ad10948b65bce0 | f514fe0bce7b2bc96e282a5d2e340d36e306ef8d | refs/heads/master | 2022-01-11T12:20:48.080720 | 2022-01-04T03:18:55 | 2022-01-04T03:18:55 | 78,615,609 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,005 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2016/12/9 13:08
# @Author : Runsheng
# @File : anno.py
"""
Try to annotate the assembly of mito scafs, including the tRNA, rRNA and coding genes
Find the tRNA-phe, set it as the start point of the new reference genome.
Get the annotation for rRNA and ... | [
"runsheng.lee@gmail.com"
] | runsheng.lee@gmail.com |
8591255bf99ff7a2d00d56cd1fdc18d76b93e748 | 6004bf293916050951e7706f8c5f51d8c9ba32e0 | /crypto/little_rsa.py | fcdc86763a98829cf06beb1e193de8b2be527ef8 | [] | no_license | fuckualreadytaken/ctf | ecb75ddbd28c9f0cf7ab743c205291cc21d0699b | 76843cdb91f4747ad1b92c30c7c4c1962605aa90 | refs/heads/master | 2021-04-15T19:05:53.325278 | 2018-08-13T14:51:28 | 2018-08-13T14:51:28 | 126,860,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py | #! /usr/bin/env python
# coding=utf-8
import random
import math
def produce_odd(start, end):
return random.randrange(start + 1, end, 2)
def ModExp(n, k, m):
"""This method is use to calculate the big Modular Exponentiation"""
a = list(bin(k))[2:]
a.reverse()
s = 1
for i in a:
if i ==... | [
"365078225@qq.com"
] | 365078225@qq.com |
5ada8331b1e26070ab3d970c083a01aa1ae12d41 | 0f3940f9d8315aa732fc1561b62846daad875ede | /home/admin.py | 0253c0c742fd89ecc52146c27b5d191f6b292b3f | [] | no_license | gokhalevedant06/MoneyManager | 922722aa998ac8370b25f9e99a7fede9306a7a97 | 2b0c8419732582ce4341e6f5a2d0b7b145ffb6ec | refs/heads/master | 2023-07-11T03:02:35.848301 | 2021-08-04T13:41:39 | 2021-08-04T13:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.contrib import admin
from .models import *
# Register your models here.
@admin.register(Choice)
class ChoiceAdmin(admin.ModelAdmin):
list_display = [
'field',
'value'
]
list_display_links = [
'value'
]
admin.site.register(UserInfo)
| [
"mitrajeetgolsangi@gmail.com"
] | mitrajeetgolsangi@gmail.com |
47261b4e4d07ae44fd014d90a146656008612d6a | 775ecc1b24e6039199d4a1ea83088f81f36da3b7 | /lbs5.py | 2377fa53fa53de37990c8468c73a27c35bda1b98 | [] | no_license | arjunreddy8296217721/02royalmechd12018 | 7fd387524c9c8fd22255853d2cb87d57ade1801a | 5e928c90e06eff4a79cc81914e77c21a2f3fd94b | refs/heads/master | 2020-03-27T21:55:53.378310 | 2018-11-16T06:46:47 | 2018-11-16T06:46:47 | 147,187,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | a=1
while a<=5:
print(a)
a=a+1
a=5
while a>=1:
print(a)
a=a-1
| [
"noreply@github.com"
] | noreply@github.com |
1a73540dab8856cd097f7a39a0b4a2a1fb617497 | 2ab6a480af8d6111fc01ffd4f76f72f4dbfa4f72 | /AI_hw2/AI_hw/gernerator.py | 1c8394bde0daee765d6269dac6466dd8194f1518 | [] | no_license | KaivinC/AI_hw2 | f6ed857bb06e442990b20c94cfd00243bbe98715 | e06a7c85e3ca82c291bef3b2c16c4a57be63e91a | refs/heads/master | 2022-04-26T20:24:14.697723 | 2020-05-01T12:42:31 | 2020-05-01T12:42:31 | 260,440,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | import random
import time
# It makes me easier to get neighbors
neighbor = [(-1, -1), (-1, 0), (-1, 1), (0, -1),
(0, 1), (1, -1), (1, 0), (1, 1)]
def Neighbor(BoardSize, x, y):
'''
To get the list of neighbor
'''
Neighbor_List = []
for (dx, dy) in neighbor:
if (x + dx < 0 or x +... | [
"noreply@github.com"
] | noreply@github.com |
df6bb199aa33221b02a071eebb1a06018e2600d3 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /Chapter 3 - Stacks and Queues/linkedlist.py | b949d5439e2e9c0378f1d78a0e7ded42d00de4ba | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from random import randint
class Node():
"""implementation of a simple Node object"""
def __init__(self,data=None,next=None):
self.next = next
self.data = data
def __str__(self):
return str(self.data)
class LinkedList():
"""linked list implementation"""
def __init__(self,l... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
3826faedb660a17079a1d293a80165218ad8d2a1 | f8457d2ef0c0c84591e95d42fc3ab942d238cfed | /twitter_credentials.py | 8b554f293ae68b08a44bfe19bcdd1ff7bad47c60 | [] | no_license | Datalker/Tweet2SQLite | 9f3bad0ca996252d48cd77fa086d52236d5fb0ac | cc5105144486c3555b350ee311412dbbab31342d | refs/heads/master | 2021-01-10T18:01:33.752398 | 2016-03-19T19:45:22 | 2016-03-19T19:45:22 | 54,283,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | consumer_key = 'ZVuGbFzFcgktLeXbaQmlDTO0j'
consumer_secret = 'CONT2Mai0DuBfrOSVHVriYxKkODyX7eVxeV6w60LHFKJSERwU2'
access_token = '4865838237-hAp9s69ti8pmLCA0K2WU5lOgzrt0lWP4Q0nhiav'
access_token_secret = 'HP1xwOePTTDqd4Rrcg0VZSgusudt7YNYJAIhmVVFxTuKX'
| [
"e.arnautov@gmail.com"
] | e.arnautov@gmail.com |
62047532182c60dbc9e4704fc63c57e2cbd5d85b | 7106efbc2e61d82454a6418a40a3c3eb548008f5 | /ascii.py | d74ac79ec1057002773364d31811082caf61c173 | [] | no_license | JunchengL/Picture-to-character-painting_Python | a8251d8ac92c01696887f27709f22a01367d12e7 | c6840734f656377139288efd86f93f520263204e | refs/heads/master | 2020-05-16T14:05:54.959080 | 2019-04-23T21:13:25 | 2019-04-23T21:13:25 | 183,092,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | # -*- coding: utf-8 -*-
from PIL import Image
import argparse
# First, build a command line input handler the ArgumentParser instance.
parser = argparse.ArgumentParser()
# Define the width and height of the input file, output file, and output character
parser.add_argument('file') #Input File
parser.add_a... | [
"juncheng.liu@outlook.com"
] | juncheng.liu@outlook.com |
e043899f8799a5dd3ba3ad36a0203ce5913e99fa | 38e5f0a750b36ea9c945ddc6b36cc9571d3016c5 | /DS.py | 611359ab73a154a69e9bc2d710782bf413465194 | [] | no_license | TahirT/DS_1920_Gr25 | 5ad5221724c587ea182e860212d883f8d3a3d49b | e817f5c81e4f75c2fe4d09c5b8c581871a76b095 | refs/heads/master | 2021-03-04T05:24:14.351244 | 2020-06-07T00:25:23 | 2020-06-07T00:25:23 | 246,010,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import Four_square_cipher
import Vigenere
import sys
import Case
import Create_user
import Export_Key
def Provo():
zgjedhja = input("Deshiron te provoshe perser(PO/JO):")
if zgjedhja.upper() == "PO":
main()
else:
print("----Procesi perfundoi-----")
def main():
print(... | [
"noreply@github.com"
] | noreply@github.com |
263b2d55833a4529dbba4267d5bc84ae71a6716b | 4ffe8c7c314db4a063ef9725264700389155ad08 | /learn_seaborn.py | c1da3ca05377d5bf8739fda3909cd1f9d7c62a4f | [] | no_license | gudengxia/TestOfPQFizz | f3f2ac1bbae75743af891a8a7282e9516529c52d | cb7f60ebf9a62bcfed72b7a5ae37fba71490fec5 | refs/heads/master | 2023-01-14T13:22:52.758299 | 2020-11-16T03:47:11 | 2020-11-16T03:47:11 | 297,596,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
#sns.set()
#plt.figure()
#sb.set_style('white')
#sb.barplot(x=x,y=y,data=dataset)
#plt.savefig('test.png')
#df = pd.read_csv('akcn.csv')
df = pd.read_csv('output.csv')
#df = pd.concat([df1, df2], ignore_index=True)
#print(df)
xx = [i for i in... | [
"gudengxia@foxmail.com"
] | gudengxia@foxmail.com |
cfc1266530244f99a0aa98f70cd55a93e6f8f402 | c3f4aecdd52fa918e40262f20dc97dbe061039ab | /chapter02/hello_world_003.py | 08b99cb179a7e11f38417f6baaff87460a4dc3e5 | [] | no_license | arisskz6/learnPython | 247452d4367d7e07e3d23bd2c7bd50e599e11870 | 017121e8c0e91c4598427a24612f639f7e3ed3c8 | refs/heads/master | 2023-02-12T21:47:47.426296 | 2021-01-14T08:28:36 | 2021-01-14T08:28:36 | 318,468,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | #!/usr/bin/env python3
mesage = "Hello Python Crash Course reader!"
print(mesage)
| [
"arisstz6@gmail.com"
] | arisstz6@gmail.com |
52e1e482c2162cf3c59307ede3a5faa860f7d0fe | 69c92d6528468365c8130257146dda0448992b34 | /shortener/models.py | a617d60bd88120e03a1c7881a9999e6ef2db0a07 | [] | no_license | bhNibir/urlShortener | 5287a75ea055be82711402c345a632d113c69ab3 | 3c8139b3c702ee8ec3516d2f73b8b0bd606626d7 | refs/heads/master | 2020-05-18T00:43:27.717768 | 2019-04-29T12:57:19 | 2019-04-29T12:57:19 | 184,070,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.db import models
# Create your models here.
class ShortenUrl(models.Model):
url = models.URLField()
short_url = models.CharField(max_length=255, primary_key=True)
add_date = models.DateTimeField()
def __str__(self):
return self.url
| [
"biplob.asanibir@gmail.com"
] | biplob.asanibir@gmail.com |
01ef0c75377ed76b68f6d5dd96805ee796ebea24 | 6c0167de6f58f6f281bbe866c02b74d253e72da7 | /genetic-testing/wackopicko/sqli_reflected/wpmock.py | 9f3ece82cda86eb971b8dff85484bf632ebebcce | [] | no_license | S0U1SB4N3/beagle | ed6111873ec25d44d24941a0b65bb6200607e361 | 7f52475ff66509ea2f6b984c3c755cd72713734f | refs/heads/master | 2021-09-28T02:42:35.322134 | 2018-11-13T14:03:08 | 2018-11-13T14:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | import re
class WackoPickoXssReflected:
"""
/**/*.php 3
/index.php 2
/users/login.php 1
"""
current_page = "/index.php"
focus = "" # Focused element
payload = ""
base = 10
# Useful fields
fields = {
"search": "",
"picname": "",
"username"... | [
"info@none.org"
] | info@none.org |
5f8310c28b3faf567c45612da76c07359c89c3b8 | e503aff4954d3a2d23a8b35a13055b71dfe9b2bb | /apps/users/models.py | 6cc43f8aef9f37d062de5fa778dee8c3db4165aa | [] | no_license | llzz-code/guliedu | 8dbf7736b7c66a7370f2c496aa04f5bc228ff618 | 65ef8123666fc50d03227183f848a712aae75742 | refs/heads/master | 2023-04-23T03:16:33.556364 | 2021-05-06T14:01:08 | 2021-05-06T14:01:08 | 364,911,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
image = models.ImageField(upload_to='user/', max_length=200, verbose_name='用户头像',
null=True, blank=True)
ni... | [
"220038123@qq.com"
] | 220038123@qq.com |
4dcd98965902046d08fe0ec9b6ba5083c262834f | 4cd32e547501354579cc5d9e3e51c2b0909aeeb9 | /django_number_place/project/wsgi.py | e4b9070482b55349b12d6a5e50e3d6587c0d41a7 | [
"BSD-2-Clause"
] | permissive | shun-tucorin/django_number_place | a48afc9bd81073a615a80e453a38bbe928a62bed | ab7bdbe565db99aedd54c5ef9ae7a73e71cb28d1 | refs/heads/master | 2021-06-24T12:33:35.229727 | 2020-08-15T04:58:38 | 2020-08-15T04:58:38 | 187,583,061 | 0 | 0 | BSD-2-Clause | 2020-08-15T04:58:39 | 2019-05-20T06:47:11 | Python | UTF-8 | Python | false | false | 444 | py | # coding: utf-8
"""
WSGI config for django_project 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.s... | [
"shun@tucorin.com"
] | shun@tucorin.com |
bbb7b44037265955881795a78d55ac9943a28368 | 77eeea2381bef9e7b24cbe8c5b86943a97f6a8a4 | /1) перменные , типы, преобразование/b) преобразование.py | 46a735fc6e114bb345e943d1c550d9600f3b09ca | [] | no_license | librabrain/geekbrains | 4102dab703bbd817910c2bd3d4c1e4fac6c9b866 | d4b3b4e34baf7eefe63762e0015035530eca221c | refs/heads/master | 2020-06-19T03:02:48.635375 | 2019-08-15T19:19:07 | 2019-08-15T19:19:07 | 196,540,918 | 0 | 0 | null | 2019-08-08T14:29:17 | 2019-07-12T08:31:53 | Python | UTF-8 | Python | false | false | 582 | py | # цифра 1988 преобразовалась в строку за счёт ковычек! была int, стала str
birthday_year = '1988'
print(type(birthday_year))
period = 20
print(type(period))
# преобразовали переменную "birthday_year" в цифру
age = int(birthday_year) + period
print(age)
# складывание двух строк является - конкатенацией. пример, но сн... | [
"azat.znahar@yandex.ru"
] | azat.znahar@yandex.ru |
3ec670a221bf562518bbc440d17e1db559a4596f | 908a4dc5ffb3fdad014e483df88f6573d54ceb06 | /object_test.py | b8d17d4cb7b2d14bf34143250a643d4f648e29b8 | [] | no_license | CullenDolan/supergrid | d702bdcc94746fe2de9c8b0be782da0e9ddc2fbf | a791b7fa48928e264ef4d2bdc1fe0f0963944fdb | refs/heads/main | 2023-03-31T14:56:58.440336 | 2021-04-07T14:55:56 | 2021-04-07T14:55:56 | 334,480,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | from datetime import datetime
class location:
def __init__(self, loc_id, hospital, building, floor, pod, room, created_at, updated_at):
self.loc_id = loc_id
self.hospital = hospital
self.building = building
self.floor = floor
self.pod = pod
self.room = room
self.created_at = datetime.now(... | [
"cullen.dolan@gmail.com"
] | cullen.dolan@gmail.com |
6e18893137c3c85ef8e273ad56b8170fbe604a00 | e2b9873da7723ef8ae505c4286e4eccbf7416315 | /leagueofclass/cadastros/migrations/0013_remove_atividadesprofessor_teste.py | aca869bbd971ba5dda0a5981a69d7e9f85b5439c | [] | no_license | lucaasaragao/LOC_PAS | 94fc50dd429ce2e9ec71cebdd748f3ff9df1ceac | 22939ab9f7b54ddc6355dce11e55e801e9501327 | refs/heads/master | 2020-03-27T17:57:57.824525 | 2018-11-01T05:22:20 | 2018-11-01T05:22:20 | 146,888,554 | 0 | 1 | null | 2018-10-31T21:37:59 | 2018-08-31T12:23:48 | CSS | UTF-8 | Python | false | false | 349 | py | # Generated by Django 2.0.7 on 2018-09-28 04:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cadastros', '0012_atividadesprofessor_teste'),
]
operations = [
migrations.RemoveField(
model_name='atividadesprofessor',
na... | [
"osvaldo_cavalcanti_filho@hotmail.com"
] | osvaldo_cavalcanti_filho@hotmail.com |
949a40f08219de6af67b53382126fda378d6d49a | 118a9f667f9b588128543a3004fe2a5a96800c77 | /data_initializer/stations.py | 7fb10d50691f55e6515b940429950c906fbb6c38 | [
"MIT"
] | permissive | hemu243/ev-charging-station | 976815cb5fdce28213628eddfda880fcdeaa71c7 | 25f34a4e8fc886c9504235af1a69cbfcb57acf73 | refs/heads/master | 2020-03-11T05:06:11.637883 | 2018-04-17T00:11:40 | 2018-04-17T00:11:40 | 129,793,429 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import os
from data_initializer import SingletonClass, csv_reader
class Stations(object):
"""
A class which hold existing stations information like address, latitude and longitude etc..
"""
FUEL_TYPE = "Fuel Type Code"
STREET = "Street Address"
CITY = "City"
STATE = "State"
ZIP = "ZIP"
LAT = "Latitude"
LONG... | [
"hchoudhary@splunk.com"
] | hchoudhary@splunk.com |
5a7ce41b86192e873f4f74e36bf5cb0aca5edb9f | 599529d4f64f35a6248f64473121d61d05c1ef8e | /linkloving_product_multi_selection/controllers/controllers.py | 08f8d8b7e11b2aa8d6ac656df80b30592f9e2a6d | [] | no_license | iverson2937/linklovingaddons | 2670ad16297abfbc94c883afc65b4f2082e7df0c | eea92d44bee76053619be00aa601b1efc4249589 | refs/heads/master | 2021-01-13T09:44:33.002594 | 2017-04-06T07:07:25 | 2017-04-06T07:07:25 | 72,824,679 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # -*- coding: utf-8 -*-
from odoo import http
# class LinklovingProductMultiSelection(http.Controller):
# @http.route('/linkloving_product_multi_selection/linkloving_product_multi_selection/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/linkloving_product_multi_... | [
"357346640@qq.com"
] | 357346640@qq.com |
41198becb05ab22236b9b3bdf21e9420dac201c3 | bf3e0c392b198dee8ca2c0d192ba335634e49841 | /TOS_Pyramid/urls.py | 0e63dc5b8ce10b3f1a1974067f4b5f55350f58b6 | [] | no_license | swolfod/TOS_Promotions | 88b6b652a2697d1f72591c1d24ee0387b564b834 | b856a69f50be4d1339591d2314c04f0186ab8023 | refs/heads/master | 2020-06-14T10:54:44.850828 | 2016-12-19T15:10:48 | 2016-12-19T15:10:48 | 75,193,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | """TOS_Pyramid URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"swolfod@gmail.com"
] | swolfod@gmail.com |
fe248a58af72904eff8d0fedd647865fd6adbf8c | 730e19d657be1021911189976140ab149ecd43ef | /tests/test_tools_supported.py | 95a053c3fe802f02cc02067f90a8bd1cbcafde3d | [
"Apache-2.0"
] | permissive | theotherjimmy/project_generator | f0368e9200d6d0f1c58061111889f5b8077b2766 | 38293572bb67ce86c365f1422ed71f50e98bff44 | refs/heads/master | 2020-05-01T04:28:51.467962 | 2016-05-17T12:29:54 | 2016-05-17T12:29:54 | 59,320,642 | 0 | 0 | null | 2016-05-20T19:23:23 | 2016-05-20T19:23:23 | null | UTF-8 | Python | false | false | 4,421 | py | # Copyright 2015 0xc0170
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | [
"c0170@rocketmail.com"
] | c0170@rocketmail.com |
de3cfa892809354f4a40f6130fb666da36aed795 | e360c04043bf7e1ac7158f508c39f7ea7fa2f9b3 | /Content/migrations/0001_initial.py | 1af820a3032eaed33db1cd27391e50fdb3b08bfe | [] | no_license | kinetiz/testapp | 875253650e54abfa598a4e60b50535b8bc341ce9 | 848f82d2aacb11ef01d3b7f096154626eeab4029 | refs/heads/master | 2021-09-28T23:32:11.949088 | 2019-12-05T13:49:50 | 2019-12-05T13:49:50 | 226,079,949 | 0 | 0 | null | 2021-09-22T18:05:15 | 2019-12-05T10:52:02 | Python | UTF-8 | Python | false | false | 615 | py | # Generated by Django 3.0 on 2019-12-03 14:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='form',
fields=[
('id', models.AutoField(auto_... | [
"thanadon.f@gmail.com"
] | thanadon.f@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.