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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
796dd3e7354d66e1ca0d2af453460dcea123a126 | 7f5980bcd5bd0d9e049295e7cbf1c38df04fb36d | /deprecated/Automations.py | 406838933ffbcf450754338c42de2199d32c73f7 | [] | no_license | menahishayan/Automated-Oven | 0d91f0e2b47b3656ec2822fe522ebdfcbeaa09e5 | 51470c6fceff57903f232422c342409b72d01c49 | refs/heads/main | 2023-05-31T12:17:58.785205 | 2021-07-04T13:31:36 | 2021-07-04T13:31:36 | 361,813,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import json
class Automations:
def __init__(self, dbPath='./db/AutomationsDB.json'):
self.path = dbPath
| [
"shayan1232001@yahoo.co.in"
] | shayan1232001@yahoo.co.in |
02af9acedfd8eb63a76f63c93c109e539acb1fa4 | 0f9f8e8478017da7c8d408058f78853d69ac0171 | /python2/l0064_minimum_path_sum.py | e5eed8adafa9b21abd66ed0af9541fba57e42edd | [] | no_license | sprax/1337 | dc38f1776959ec7965c33f060f4d43d939f19302 | 33b6b68a8136109d2aaa26bb8bf9e873f995d5ab | refs/heads/master | 2022-09-06T18:43:54.850467 | 2020-06-04T17:19:51 | 2020-06-04T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | class Solution(object):
def minPathSum(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
if not grid:
return 0
m = len(grid)
n = len(grid[0])
dp = [[0 for _ in range(n)] for _ in range(m)]
# Initiali... | [
"zhoulu312@gmail.com"
] | zhoulu312@gmail.com |
bbc89e8e7645a694b405dccb4acd25b4f0cc9544 | 84cfe9b0ca7209487231e0725f7ad0d233f09544 | /smv/views.py | e0abea56ca1a13c1798a6cffabfed45f0991342d | [] | no_license | archit-dwevedi/M4Plan | 3eefc12ea447d624bae6f758c3648d7caf825c1a | d162592748ea37bc070b6217365e8601a6ccdd9a | refs/heads/master | 2021-10-26T23:22:04.456014 | 2019-04-14T20:02:17 | 2019-04-14T20:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.contrib import messages
from absenteeism.models import *
from skill_matrix.models import *
from leave_calendar.models import *
from .forms import *
from .models import *
import datetime
def smv(request):
if(req... | [
"dwevediar@gmail.com"
] | dwevediar@gmail.com |
a41ee74e0d74a2f619205675cb265d0c888b3d01 | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/235 - Lowest Common Ancestor of a Binary Search Tree/235_lowest-common-ancestor-of-a-binary-search-tree.py | 863b29d2d3d70572b919bc045ab5e6b412efb394 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 1,554 | py | from leezy import Solution, solution
from leezy.assists import TreeContext
class Q235(Solution):
@solution
def lowestCommonAncestor(self, root, p, q):
# 68ms
if p < root.val > q:
return self.lowestCommonAncestor(root.left, p, q)
if p > root.val < q:
return self.... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
165146e30d5f3fdf5a47e708760346f1f979c67f | 1c0d4b9c57e3eb987cba4ba082e855b4444797a2 | /fresh_launch.py | 8ccf5cb88927ed18aed2cb80a0df5d7664992c7d | [
"MIT"
] | permissive | prasad223/CSE586 | 4b70e5aefc2254d89c343f1d0217210cbbf65ed1 | dfd3bbaa8e1732cb1ae6909cc7e75cc84a912b01 | refs/heads/master | 2021-01-21T03:21:04.699400 | 2016-05-05T12:57:19 | 2016-05-05T12:57:19 | 54,043,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python
import os
from environment import *
apk_path = os.path.join(WORKSPACE, PROJECT_NAME, 'app', 'build', 'outputs', 'apk', 'app-debug.apk')
app_package = PREFIX + '.' + PROJECT_EXT
for i in 5554, 5556, 5558, 5560, 5562:
print "Fresh launch on emulator", i
emu = "emulator-" + str(i)
cmd = 'adb -s... | [
"prasadsjcecs@gmail.com"
] | prasadsjcecs@gmail.com |
9816169c3cf62624bac7d4238f5e8c78629beb72 | 2816fe989f78240e950554b4b1fe680ec62b306a | /crawl/guba/multi.py | c333873535ef956172a687984e6e7b72f7986e17 | [] | no_license | stop1992/python-security | fb4219e4769459e07e51227ba3d47d0c9a88ee98 | b022e73f1f105179136360601c4f5122e9bc4875 | refs/heads/master | 2021-01-20T05:59:47.264360 | 2016-08-02T13:59:46 | 2016-08-02T13:59:46 | 65,118,931 | 4 | 2 | null | 2016-08-07T06:18:41 | 2016-08-07T06:18:41 | null | UTF-8 | Python | false | false | 4,298 | py | #!/usr/bin/env python
# encoding: utf-8
import multiprocessing
import os
from pymongo import MongoClient
from redis import Redis
import re
import time
from clear import drop_mongo
# process_nums = multiprocessing.cpu_count()
MONGO_SERVER = '192.168.1.108'
MONGO_PORT = 27017
MONGO_DB_IN = 'guba_data'... | [
"daitaomail@gmail.com"
] | daitaomail@gmail.com |
ed777a2b20b0c94e0469882347bedeaacedfd55e | 876a1b7b7c898c826b94ff34f3d9a1d22ee5459b | /QUANTAXIS/QAUtil/QAWebutil.py | 8a2a75459233fd85e3744b092b8ba3babacb56ca | [
"MIT"
] | permissive | pm58/QUANTAXIS | 6db63c461d18f13f7340f7d46e42cde3bc3f40cb | 03c526f640f48f4a153e9c4e0e27f74ccd18a345 | refs/heads/master | 2020-04-27T08:17:42.227150 | 2019-03-09T05:56:05 | 2019-03-09T05:56:05 | 174,165,118 | 5 | 0 | MIT | 2019-03-09T05:56:06 | 2019-03-06T14:55:39 | Python | UTF-8 | Python | false | false | 1,967 | py | # coding:utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2016-2018 yutiansut/QUANTAXIS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | [
"yutiansut@qq.com"
] | yutiansut@qq.com |
7abdb85b4f5ecf93d8696b1a86d6ce317207a57e | f71415d51b9257e4cf6562a6b3c5e7596ff76daf | /mysite/settings.py | 4b6dea8414c93ebdf4cd133733447271f0478692 | [] | no_license | myromeu/fantastic-fiesta | effabb2df4dc8db7c674142038ef6ddb6bc82270 | 46ca55d3ff03563f2786ac5b913e2f25b13cdb68 | refs/heads/master | 2021-01-10T06:56:33.130626 | 2016-01-26T20:52:46 | 2016-01-26T20:52:46 | 49,889,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"myromeu@ya.ru"
] | myromeu@ya.ru |
8e990b308f624c1525603f9ab92945fda7fb8ce2 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /test/functional/wallet_implicitsegwit.py | 553ce7367502b4851bea035523dbb7026ed2072f | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet implicit segwit feature."""
import test_framework.address as address
from test_framework.te... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
87da898bd08cdfef60ac23b93bfa4e87e4b7567d | 4587c4b6e381f0ac97a15fbf8f163d1bd9dbca8d | /codes/utils.py | 4c404d23805fd827f4b8294d3c1f5afe3e51ce5d | [] | no_license | shoukreytom/live-share-code | b514d2aadaa6716d5cbd7c6811823635102dc2f8 | 19f1b1cd1e93414a08bc47c5c141cbf34e65f8be | refs/heads/main | 2023-07-29T00:03:49.026302 | 2021-09-28T20:59:55 | 2021-09-28T20:59:55 | 368,343,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from random import randint
def generate_share_key():
code_list = [str(randint(0, 9)) for _ in range(6)]
return "".join(code_list)
| [
"shoukreytom01@gmail.com"
] | shoukreytom01@gmail.com |
06229e6afb5087b342f48ced5e2d41a803b865c3 | 30b084acbe36d02e85d756e4580f0e845dab65c9 | /setup.py | 4f793631bb4105c6c26c9395bfc1f42ed30854ef | [] | no_license | JavanTang/py2aliyungdb | 47757ae9aacd4496a4fd4dda2733fc11c0ac5548 | c62b985d04e1cb00c8f63f881a4ade1d2ed0eaa6 | refs/heads/master | 2022-12-03T01:48:53.163098 | 2020-08-17T05:40:46 | 2020-08-17T05:40:46 | 288,082,092 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | '''
Author: JavanTang
Data: Do not edit
LastEditors: JavanTang
LastEditTime: 2020-08-17 11:04:35
Description:
'''
from setuptools import setup
setup(
name='py2aliyungdb', # 应用名
version='0.0.1', # 版本号
packages=['py2aliyungdb'], # 包括在安装包内的 Python 包
author='JavanTang',
author_email='tzfjobmail@gmail.... | [
"tzfjobmail@gmail.com"
] | tzfjobmail@gmail.com |
14bff795b6ed2d74c4775d4f3bc0e738dffaa06b | 97eb29b4fbb55ca3c4b3f4ce6b5b9432eb73efdd | /DjangoEnv/bin/django-admin | 6a8820ebbc2b8895471291d8eddffd3f81122a90 | [] | no_license | Gephi-2017/ProjectDjango | ced8a5c8547b0366319b756def3ff7baa3c14226 | 33969fddf4abe2a19629ce1657d04e6cbdd82d74 | refs/heads/master | 2020-03-17T00:50:11.012635 | 2018-05-12T09:12:28 | 2018-05-12T09:12:28 | 133,131,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/home/shree/ProjectDjango/DjangoEnv/bin/python
# -*- 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())
| [
"slshruthi17@gmail.com"
] | slshruthi17@gmail.com | |
955b93a0198bf45f36553fa170bdc6effb0bec4b | 765b558714acf20438ff717e57beadd9890fe1be | /galcon/galcon/migrations/0012_auto__del_group.py | deba6a67510de5e53a6da62f87851a001cc0d21d | [] | no_license | marky1991/galcon_clone | 279cf4ec6adb266f5afabc0a0a61435a52a60119 | 12923b001d593c75934e99ed201627d8767462c2 | refs/heads/master | 2020-06-06T20:24:03.684856 | 2013-09-06T15:52:45 | 2013-09-06T15:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,810 | 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 model 'Group'
db.delete_table('galcon_group')
# Removing M2M table for field admins on '... | [
"marky1991@gmail.com"
] | marky1991@gmail.com |
0d3b899d072571d9b6f47263ee86838fd0b208a6 | 6ecc1d05bbd9ca2c1d21322faef076c1f28454db | /chrome/browser/ui/webui/chromeos/login/DEPS | 52acfb6a38a1c062632e3dbccf09ecbcc162ff4b | [
"BSD-3-Clause"
] | permissive | pandareen/chromium | 0e3a9fb92bb9ad027d5b3482a6b03d0bb51c16a1 | 3ea799335afb5178c519f9e12db8b31390375736 | refs/heads/master | 2023-03-14T05:47:29.433132 | 2018-06-27T07:21:08 | 2018-06-27T07:21:08 | 138,843,522 | 0 | 0 | null | 2018-06-27T07:09:52 | 2018-06-27T07:09:52 | null | UTF-8 | Python | false | false | 863 | specific_include_rules = {
# TODO(mash): Fix. https://crbug.com/770866
"core_oobe_handler\.cc": [
"+ash/shell.h",
],
"oobe_display_chooser\.cc": [
"+ash/display/window_tree_host_manager.h",
"+ash/shell.h",
],
# TODO(mash): Fix. https://crbug.com/678990
"signin_screen_handler\.cc": [
"+ash/... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
dcbc15d24ae14bff864146e04855549fd69c3bd4 | 029529c28784dc73362dfb38d29d16cbbba3ac98 | /odx_crm_lead/models/insurance_premium.py | 8d33f341e78187ce5b465199992165476b8c3d84 | [] | no_license | linux8a/odoo_13 | 4a99e3ccaf7956c33501e7c1be79e84f6d763f95 | 19bbcecee21bbd8b4298df899dc4f3f47dff63ea | refs/heads/master | 2022-12-21T07:48:09.968327 | 2020-10-04T06:12:54 | 2020-10-04T06:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,007 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, api
class InsurancePremium(models.Model):
_name = 'insurance.premium'
name = fields.Char('Name')
insurance_company_id = fields.Many2one('res.partner', 'Insurance Company',
domain=[('is_insurance_comapny',... | [
"ashifpk1@gmail.com"
] | ashifpk1@gmail.com |
9b27fd8e4dbd66e5d9c1bd4174439f8c73cf96dc | fc6909db970d6894e8e2a097e10e7c17ddbaece2 | /tutorials/frontend/from_pytorch.py | 503f64a4e7d90d3d7da7adecd125320c11a3b2aa | [
"Apache-2.0",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | yagnasrinath/incubator-tvm | e631f9b91943f6780082cebbbe2c26666c3abaf8 | 8b2476fa87cda205daf4bd17d7d58e07a259043c | refs/heads/master | 2021-01-09T12:50:17.506603 | 2020-03-15T09:54:29 | 2020-03-15T09:54:29 | 242,306,771 | 0 | 0 | Apache-2.0 | 2020-02-28T23:20:14 | 2020-02-22T08:29:20 | Python | UTF-8 | Python | false | false | 5,825 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | yagnasrinath.noreply@github.com |
91b9e1b36fadf5d38e7788326e49195823ae4444 | 957563c6d08819967813063a193619b7df7f0050 | /mbof/migrations/0010_auto_20160303_1142.py | 5840ed33e44677751ee650c027ae7832c5cc6e5b | [] | no_license | jlost/hacks_mbof | 0c44657448c58c35b2443f285e2e0aa107980431 | 9bfe464e2842a09d2974103b5e8b5be15bd5d1cc | refs/heads/master | 2021-01-21T07:45:59.878779 | 2016-03-04T16:13:27 | 2016-03-04T16:13:27 | 53,062,453 | 0 | 0 | null | 2016-03-03T15:43:03 | 2016-03-03T15:43:03 | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-03 16:42
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mbof', '0009_auto_20160303_1131'),
]
operations = [... | [
"its-jlost@adsroot.itcs.umich.edu"
] | its-jlost@adsroot.itcs.umich.edu |
3064cd6f1c55c75609f9e92b45a1a1caa35e25ed | 4e3c8b2cd89828e5f8d902d9d731e81c6dd33d55 | /2015-16/Meeting_1/Minecraft-master/pyglet/gl/cocoa.py | 0e6ce34ee5ff2ff4e4b66fc6a25ca5c7a73492ca | [
"MIT"
] | permissive | momja/Code-Club | c2a2c670545a8a77913b0a15078848e3f520bfe1 | 410c5ffbdae48aa69a170e80642405928e9cb6d5 | refs/heads/master | 2020-09-25T23:45:16.805921 | 2017-10-03T22:05:13 | 2017-10-03T22:05:13 | 66,742,298 | 64 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,931 | py | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from pyglet.gl.base import Config, CanvasConfig, Context
from pyglet.gl import ContextException
from pyglet.gl import gl
from pyglet.gl import agl
from pyglet.canvas.cocoa import CocoaCanvas
from pyglet.libs.darwin.cocoapy imp... | [
"mjomdal@gmail.com"
] | mjomdal@gmail.com |
45b49213838540d4cfa9b40c36aa8caf8d58558d | 38445323b49947266d72645ec973b02e96879eed | /harshad number.py | 8a99c9850563a0ad3ee51f2ed7074159f804f964 | [] | no_license | pooja-pichad/loop | 2d9989b472a2fbacf0a85da06d869016b2d74083 | 47dafba1253da98f98c8fa389e13283ce1e14dee | refs/heads/main | 2023-04-22T02:58:49.274211 | 2021-05-22T07:13:39 | 2021-05-22T07:13:39 | 369,741,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # harshad number :
# it is take any number and add this two digit number and check the
# addition value is divisible bye this two digit number then it is divisible then its harshad
# number then it not divisiblr then it not harshad number
# forEx; 43
# 4+3=7
# 7/43
# num=int(input("enter a num... | [
"noreply@github.com"
] | pooja-pichad.noreply@github.com |
fdf19265fb0e3cb327ccb42c022c93c96051ef51 | 59db30b968d025fcdf2a01eaad0a93fc5477a5fe | /src/smads_core/interface/robot_sensor_interface.py | 169f5182c24a6bc7086184020b58c5a3b4ae1305 | [
"BSD-3-Clause"
] | permissive | UTSMADS/smads_core | e727b7ecb3d45b93c55eed2dabd82eacd6d952e1 | 546b6bf6d3e31f226664a25153a2a931ce4b5035 | refs/heads/master | 2023-02-19T02:30:31.693606 | 2021-01-15T19:07:12 | 2021-01-15T19:07:12 | 279,627,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | #!/usr/bin/env python3
import rospy
import sensor_msgs
from nav_msgs.msg import Odometry
from sensor_msgs.msg import LaserScan
from smads_core.client import RobotClient
class RobotSensorInterface:
def __init__(self, client, mutex, poll_rate=10, robot_prefix="smads_platform"):
self.client = client
... | [
"maxsvetlik@gmail.com"
] | maxsvetlik@gmail.com |
e0eb2aa256dc0a8e392bfc9cb168920d0555df1b | 5f04fccd92eb698fa76ab972c01188d699125a50 | /ourdesign/wsgi.py | 3b753904a90607efbaaae48b7d70cb0ba37388e5 | [] | no_license | ourdesignspvt/ourdesign | 9dbc8b2b7e2dd7b3019b699a19cb6aa80c3a65a7 | cf9d8a3115d024c251d91b421510e1c4b8682c8a | refs/heads/master | 2020-04-05T17:16:37.610982 | 2018-11-11T06:20:49 | 2018-11-11T06:20:49 | 157,052,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for ourdesign 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"ourdesignspvt@gmail.com"
] | ourdesignspvt@gmail.com |
42cc2d6e0d7d6b565e6ce9d80f133c7f719e9115 | b05cbedbcda2efd5e3722a52f309e7987b618de0 | /Logging.py | 23054220361b751acad1e9d24757b7a8507dd4df | [
"MIT"
] | permissive | bwhetherington/Gompei-Bot | ef32100a690e1af9be94511b33373e56cf186f72 | a6c03c7a5a190fc63a96d0e4ab2529c3ba484dcb | refs/heads/master | 2023-06-30T03:11:23.221088 | 2020-07-29T05:33:08 | 2020-07-29T05:33:08 | 286,293,970 | 0 | 0 | null | 2020-08-09T18:26:09 | 2020-08-09T18:26:09 | null | UTF-8 | Python | false | false | 15,221 | py | # TODO: Implementation
# IDEA: Track which invite a user joined off of
import discord
import json
import os
from datetime import datetime
from discord.ext import commands
def module_perms(ctx):
return ctx.message.author.guild_permissions.administrator
def parse_id(arg):
"""
Parses an ID from a discord mention
... | [
"samuelcurrid@gmail.com"
] | samuelcurrid@gmail.com |
1922476617a16ac1492b7ae020e4478f854a244c | 97db962c17f91f6ca5da71a5a301094277d26a8e | /setup.py | ddd05323c9f71b1b4c9a1e80868e6267655cee53 | [] | no_license | citrix-openstack/osnotify | 0a510457e3663092a6a6d8e575019a5052c896e5 | 2feca02a843fed93a9d36254d7e896ba95107a9c | refs/heads/master | 2020-05-17T01:04:23.088988 | 2013-03-01T17:34:37 | 2013-03-01T17:34:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from setuptools import setup
setup(
name="osnotify",
version="0.0",
packages=["osnotify"],
entry_points={
'console_scripts': [
'osnotify-proxy = osnotify.scripts:proxy',
'osnotify-subscribe = osnotify.scripts:subscribe',
'osnotify-publish = osnotify.scripts:... | [
"mate.lakat@citrix.com"
] | mate.lakat@citrix.com |
b18dd172330c48b377b607fcc29c58bb6995b0b6 | 5334a6e60851087f4eafc1eaf6c2f06c1ac91c7f | /6th_tests/code.py | 5402a3cd76704b72e8520b4951cd453b1b52ee18 | [
"MIT"
] | permissive | zkhodzhaev/fiz_analysis_fitting | fa591f1db02757a09f3ec652a262c499d98386d6 | 1f02d825485e41c7571e62c84719bcd60b711848 | refs/heads/master | 2021-10-26T04:53:26.833652 | 2019-04-10T17:50:04 | 2019-04-10T17:50:04 | 180,633,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | #!/usr/bin/env python
# coding: utf-8
#Zulfidin Khodzhaev/ zulfidin@inbox.ru
"""For this to work, first 2 lines are deleted,
because the number of column is less than number columns
Example:
Reading Grams weight
2019:4:3
"""
import pandas as pd
import numpy as np
import datetime
import matplotli... | [
"noreply@github.com"
] | zkhodzhaev.noreply@github.com |
ed3a646a75a5bb898ae2f02208dd96258d05759e | da63ecb7ba6afc40731b3b4268f21ed03c882b1b | /src/main/java/jython/toolbar.py | 6c8644b14d882416e83a6e22550ee55dfc5a6d9e | [] | no_license | neopsis/jython-interpreter | 5622dfe58769a3abac6c87119e4f4b581701a03b | 85e6e448acee46dc24deb775f232f8a5d30071a5 | refs/heads/master | 2021-01-09T19:03:00.943500 | 2020-02-22T23:04:38 | 2020-02-22T23:04:38 | 242,421,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | """
toolbar.py Contains utility classes for toolbar construction
author: Carlos Quiroz
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 any later version.
T... | [
"robert@neopsis.com"
] | robert@neopsis.com |
40be0ddf55f39cfcc4482a4bd777e333af9190e2 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/distiller/CWD/pytorch/mmrazor/tests/test_models/test_losses/test_distillation_losses.py | 77233b81fce0cffa1c0bce23a3ba60bdeed31133 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 8,154 | py | # Copyright (c) OpenMMLab. All rights reserved.
from unittest import TestCase
import torch
from mmengine.structures import BaseDataElement
from mmrazor import digit_version
from mmrazor.models import (ABLoss, ActivationLoss, ATLoss, CRDLoss, DKDLoss,
FBKDLoss, FTLoss, InformationEntropyLos... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
25c53610cddc7f13a5edb9ef2f6bd7a082359139 | 25b96157297c6ee9d1a7faf4b0e85051aaf11591 | /preprocess/features/Interval.py | 0c27eb3b7f36d772c935063ab3fe285700051d3c | [] | no_license | notem/reWeFDE | 07ae4088d8d60bbd4a5fdde334cec9e0a4b7f0b0 | 6fe576db1c470f33ffd158c52cf1130c96351f8e | refs/heads/master | 2023-01-02T18:05:06.907759 | 2020-10-30T15:31:32 | 2020-10-30T15:31:32 | 179,397,367 | 18 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | # inflow interval (icics, knn)
from features.common import X
def IntervalFeature(times, sizes, features, Category):
if Category == 'KNN':
# a list of first 300 intervals (KNN)
# incoming interval
count = 0
prevloc = 0
for i in range(0, len(sizes)):
if sizes[i] >... | [
"njm3308@rit.edu"
] | njm3308@rit.edu |
9905b137698c4c8f41b452623054c57528b70709 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ddoscoo/aliyunsdkddoscoo/request/v20200101/DeleteAsyncTaskRequest.py | 55e30bb35da17abec88db8989a885f42142441d6 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,620 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
8fd5e717b4d06d2f26535413e07fae832635769d | 72e463c26daf79b7d380db59a58849e3cd095a7e | /week7/day1_api.py | f7bcb6d95489339333501141914115cb6d9975ba | [] | no_license | tdhuynh/tiy_class_notes | dcc5454af63ca888cfdb99e85f4370cabce88f88 | a254d77f52cc438476d80ff58bfa9759de7826fa | refs/heads/master | 2020-04-15T12:19:30.045552 | 2016-11-09T14:30:06 | 2016-11-09T14:30:06 | 68,213,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | import requests
# result = requests.get("http://swapi.co/api/people/")
# # print(result.text)
# json_result = result.json()
# # print(json_result)
# # print(json_result["name"])
# for person in json_result["results"]:
# print(person["name"])
# result = requests.get(json_result["next"])
# json_result = result.... | [
"tommyhuynh93@gmail.com"
] | tommyhuynh93@gmail.com |
1984950eeeabd376b7d534bbc788f09949c9ea71 | f3416956f9bfc7af870867e2fe8644f08d513b23 | /combine/contest_20150310a/data_prep/prepare_pgmodel.py | 18a14ff2cbcfdb41cfe5e56133323bb4b304d6ed | [] | no_license | dsjoerg/blundercheck | a71012c0d3ded929599d191d4f73dcb14f94030a | 04fb39ba0dd1591b387f573f767973518b688822 | refs/heads/master | 2021-01-18T18:35:21.992359 | 2015-03-24T18:11:11 | 2015-03-24T18:11:11 | 27,928,453 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,108 | py | #!/usr/bin/env python
from pandas import *
from numpy import *
from djeval import *
import csv, code
import cPickle as pickle
from sklearn.externals import joblib
GAMELIMIT=60000
NUM_GAMES=100000
def shell():
vars = globals()
vars.update(locals())
shell = code.InteractiveConsole(vars)
shell.intera... | [
"dsjoerg@gmail.com"
] | dsjoerg@gmail.com |
1b4a03e0afdaba82763c5ba5b2a63532512388f7 | f38dbe8bcfea76701a6e2759f47b74df07d89a38 | /제01일차/operatorTest01.py | 0aed32af7552d9df0245cce0943e667d632a4751 | [] | no_license | wooowsol/start-Python | 1cd742114d18a2a6639d26d4588f8b64eb40b378 | 8129d85b20dd48ed35f3e3e048f3af8664124e55 | refs/heads/master | 2023-01-23T11:21:02.495162 | 2020-11-22T14:48:23 | 2020-11-22T14:48:23 | 312,837,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # operatorTest01.py
# + = * 기호들을 연산라고 합니다.
# 변수 su는 연산의 대상이 되는 것(피연산자)
su = 2 + 3 * 5
print(su)
su = (2 + 3) * 5
print(su)
# =는 대입 연산자라고 합니다.(우선 순위가 꼴찌)
# 비교(관계) 연산자 : > >= < <= ==(같음) !=(다름)
# 연산의 결과 물은 반드시 True 또는 False가 된다.
# 제어문(if, for 구문 등등)에서 많이 사용되므로 중요!!
a = 10
b = 20
result = a >= b
print(result)
res... | [
"71619744+wooowsol@users.noreply.github.com"
] | 71619744+wooowsol@users.noreply.github.com |
b20b0b8aafd7085cbf29263b494a5e85bcf65b65 | 41d3442bed584a40dbff035ee808c844b0b47f3e | /scoring/evaluator_vocabulary.py | 71429f34645ac0710eafa9fe5d7ea689451b19e4 | [] | no_license | konstantinschulz/alpaca | 8e55b9b24a4c7c5db9ecfb041488ee34c9a43bb8 | baa500ebb1e7ce92fe34a7c0b7ea65479a510567 | refs/heads/main | 2023-08-25T05:26:09.271704 | 2021-10-27T13:57:39 | 2021-10-27T13:57:39 | 375,756,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | import logging
import re
from collections import defaultdict
from pathlib import Path
import pandas as pd
from testing import test
from parsing.webpage_data import WebpageData
# modify profanity score gradient given this upper limit
MAX_PROFANITY = 3
# multiplier for emotion intensity per words ratio to ... | [
"Konstantin.Schulz@dfki.de"
] | Konstantin.Schulz@dfki.de |
8e71cd84c2bbcff8e95707bae8659fcf81742ad1 | 9fccc0a13c381288d7e3df08a8cb628832e35564 | /rmotr_todo/assignment_4/fixtures/url_overrides/test_able_to_add_items_to_existing_list.py | 49419211e1aed89f402e64ffe713d4e4ef493d38 | [] | no_license | ine-rmotr-projects/wdc-w1-todo-lists | aa2321879a44ed679f0141037c1744f5f130bdb3 | d1a4c291368a7c0d5c9e7de0578705c75d50fea8 | refs/heads/master | 2021-06-18T07:41:06.156750 | 2018-04-06T18:15:14 | 2018-04-06T18:15:14 | 201,114,300 | 0 | 0 | null | 2021-04-20T18:41:26 | 2019-08-07T19:23:56 | Python | UTF-8 | Python | false | false | 279 | py | from django.urls import path
from assignment_4.fixtures import views
urlpatterns = [path('', views.home, name='home'),
path('lists/new', views.new_list, name='new_list'),
path('lists/<list_id>/', views.view_list_doesnt_add_items, name='view_list')] | [
"jason.symons@gmail.com"
] | jason.symons@gmail.com |
307b39b476091ab984dde86e503be570839f4667 | 77a7508c3a647711191b924959db80fb6d2bd146 | /src/gamesbyexample/countingquiz.py | 8b3131533dd87c5a56493d1814d27b3cca90f27e | [
"MIT"
] | permissive | surlydev/PythonStdioGames | ff7edb4c8c57a5eb6e2036e2b6ebc7e23ec994e0 | d54c2509c12a5b1858eda275fd07d0edd456f23f | refs/heads/master | 2021-05-22T21:01:15.529159 | 2020-03-26T07:34:10 | 2020-03-26T07:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | """Counting Quiz, by Al Sweigart al@inventwithpython.com
Use multiplication and subtraction to count the number of stars shown
as fast as possible.
Tags: short, math"""
import math, random, time
def main():
print('''Counting Quiz, by Al Sweigart al@inventwithpython.com
Use multiplication and subtraction to... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
7979017666ab0ad68c04d752577df8dbe5fcfd11 | 8f273f7499eaf8ad432928714d51cf88a76b0323 | /pa/img.py | f797e9e8412bd1fb6c7feac69156e84f93e71bd4 | [] | no_license | FanNotFan/Python_momgodb | 4abce4a60da36d582947620d604c9cb463722aa5 | 20dc48e38db546b09950af6a2a1bf79578d8a44a | refs/heads/master | 2020-04-28T14:21:16.113631 | 2018-07-13T09:12:39 | 2018-07-13T09:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # -*- coding: UTF-8 -*-
# python读取网页的库
import urllib.request
# 正则表达式有关模块
from bs4 import BeautifulSoup
import re
import os
def getHTML(url):
page = urllib.request.urlopen(url)
html = page.read()
return html
def getImag(html):
reg = '<img class="BDE_Image".*?"(.*?)"'
pattern = re.compile(reg)
... | [
"y1wanghui@163.com"
] | y1wanghui@163.com |
c4ef0a5ad842febae7dc7d0f6b86210f665d8c52 | 71b7b6d84a61f514b038fac7741e6d16973fcaa9 | /devel/lib/python2.7/dist-packages/object_manipulation_msgs/msg/_GraspHandPostureExecutionFeedback.py | 239a1161abae63cd1fec56383bbec0f1c7153957 | [] | no_license | YiKangJ/perception_driven_ws | 15c02e523f1a708fe63b216d73019c8c2bde97a1 | 0a0f8fcbe3f5fed26439f449999b85f1e38c0f70 | refs/heads/master | 2020-04-01T19:47:48.372111 | 2018-10-18T06:17:57 | 2018-10-18T06:17:57 | 153,571,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | /home/jyk/perception_driven_ws/devel/.private/object_manipulation_msgs/lib/python2.7/dist-packages/object_manipulation_msgs/msg/_GraspHandPostureExecutionFeedback.py | [
"jinyikangjyk@163.com"
] | jinyikangjyk@163.com |
a9d9e1b1168497075525714a3c133139ddf2971d | f3e01cec9dafab76911743281b9078d71a3f1201 | /python/example/client_threading_demo.py | f123e755238ccc556cb00f1dff62de7f6992a4fd | [
"Apache-2.0"
] | permissive | yinzhiyan43/harpc | ec31c765e6e31cd4cbd86dbd7583e8244b49667c | 0ca4e4e72bdea0d539852438b2e782cc9d87b83b | refs/heads/master | 2020-12-31T02:49:09.794181 | 2015-10-27T07:59:47 | 2015-10-27T07:59:47 | 47,240,224 | 2 | 1 | null | 2015-12-02T05:55:33 | 2015-12-02T05:55:33 | null | UTF-8 | Python | false | false | 1,719 | py | # -*- coding: utf-8 -*-
import threading
import logging
import time
from tutorial import TutorialService
from bfd.harpc import client
from bfd.harpc.common import config
threads = 15
req_num = 10
data = []
error = 0
for i in range(0,10240):
data.append(chr(i%64 + 32))
test_msg= ''.join(data)
logging.basicConfig... | [
"dongsheng.fan@baifendian.com"
] | dongsheng.fan@baifendian.com |
1bf2158bc437ca181fbc66a1c3e55214a6f792ff | 7ed9b1d87012cd11ecc1625cadbea861223e82c5 | /plugins/devices/FakeCamera.py | cfad8329be69fc9640b4f45f25b6f0e84cc7df71 | [] | no_license | dsblank/pyrobot | 577bdcb1cd68777b76aaada11ff3d3c3c5231c38 | d9c19947767a97980ec31d2096ec157bafa55f0d | refs/heads/master | 2021-01-21T21:19:48.788998 | 2019-04-01T03:55:06 | 2019-04-01T03:55:06 | 94,819,207 | 2 | 2 | null | 2019-03-30T17:03:32 | 2017-06-19T20:43:18 | Python | UTF-8 | Python | false | false | 174 | py | from pyrobot.camera.fake import FakeCamera
from pyrobot.vision.cvision import VisionSystem
def INIT(robot):
return {"camera": FakeCamera(visionSystem = VisionSystem())}
| [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
38ad82c1a122a32358a5cad4b79af8911d55b7e9 | fae68b144a7020d9731896cab5d62a97ce25ae91 | /image_augment.py | f40bdbedcb9a6163c36e3ee0a6dea31f1c328f5f | [] | no_license | brandon-castaing-ucb/SecuriBot | a3dc41591fe66dd51e99374cd9bc1661f49487e5 | fcd70e6f9c35fef9332b6c9a1adfa9002fcf9fa4 | refs/heads/master | 2023-07-24T23:21:42.365678 | 2020-01-21T03:38:58 | 2020-01-21T03:38:58 | 220,586,158 | 0 | 0 | null | 2023-07-06T21:47:10 | 2019-11-09T03:30:21 | Python | UTF-8 | Python | false | false | 3,726 | py | import sys, os, re, traceback
from os.path import isfile
from multiprocessing.dummy import Pool
from augmentations.fliph import FlipH
from augmentations.zoom import Zoom
from augmentations.blur import Blur
from augmentations.noise import Noise
from augmentations.translate import Translate
from skimage.io import imread,... | [
"bcastaing@berkeley.edu"
] | bcastaing@berkeley.edu |
27a6f1c6036145a7c8adf46f99b0c810c9572c18 | 89ddb1c0bd5793964cde9cdf1bb7c622c0662f29 | /strategies/betray.py | 1bb7cbea0d23bc1d1fcf8ad76530b97136f8dbf8 | [] | no_license | evelinag/iterated-prisoners-dilemma | c48958e2e3153f634137fbdca5a13c0ce7a2d664 | b339d69923515cce1184fad7b83fde6a0c5f9f36 | refs/heads/main | 2023-02-27T13:18:53.725466 | 2021-02-11T08:59:14 | 2021-02-11T08:59:14 | 337,871,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | #!/usr/bin/env python
import sys
while True:
inputs = sys.stdin.readline()
# Always betray the opponent
print("B\n")
sys.stdout.flush()
| [
"evelina@evelinag.com"
] | evelina@evelinag.com |
c76e7b57a50d1595e23179c5dde7838452d683e2 | 95789a6503101b98548570f48e80ae12b964fff1 | /rango/views.py | 5fb1ab348828e249de3637bdc7da82f5648f0859 | [] | no_license | NikolayBorovenskiy/How-to-Tango-with-Django | be7a2d0b8354f17e1ec98a7bc5714ea00b386f7a | f04c9e534c84de2b8885dbaaa5144f4d748c33a0 | refs/heads/master | 2020-05-14T15:49:32.317274 | 2015-08-09T06:46:07 | 2015-08-09T06:46:07 | 39,078,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,340 | py | from django.template import RequestContext
from django.shortcuts import render_to_response, render, redirect
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from rango.models import Category,... | [
"nikolay.borovenskiy@gmail.com"
] | nikolay.borovenskiy@gmail.com |
8a8b8ba79006a28316ef9aa505f79d5b02b4b33a | 2481cde6506743565dff2b405a2396daf208ab3e | /src/ranking/management/modules/algorithm_yandex.py | 704ac764e959da19a6154d23d666eb6a1279c8cb | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
import re
from ranking.management.modules import yandex
class Statistic(yandex.Statistic):
def get_standings(self, *args, **kwargs):
standings = super().get_standings(*args, **kwargs)
if re.search(r'\bfinals?\b', self.name, re.I):
if 'medals' not in standing... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
b540488509bc29117e14bf470b82eaab0f677a68 | 4c3ffe142d476c81d6886fa568646485996bddfe | /sms/texts/filters.py | 76fcb316cafd4da793b92bff35eac139a4c71fb0 | [] | no_license | mosesju/sms_django | 5c62e8fa83451ca7689289acb13acc8fddc9d5c4 | 64825c7b05c5a74242141a0479acd379ca1655e8 | refs/heads/master | 2022-07-26T10:33:10.502713 | 2020-05-16T08:36:26 | 2020-05-16T08:36:26 | 261,977,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | import django_filters
from .models import Text
class TextFilter(django_filters.FilterSet):
class Meta:
model = Text
fields = '__all__' | [
"e.julianmoses6@gmail.com"
] | e.julianmoses6@gmail.com |
dd921655e2403677d6faea4bd90156830e7665ee | 1c49952502f7684b5692011b8d9cc4d57886953c | /src/svdslow.py | 7fe28d82fb270d8fc713da9fd202b1298b77ee50 | [] | no_license | mokayy/KDDCup2011 | a5f027ec776aceaafb575076f3445956ed8c2484 | 7390b024d46b2bdb239189c1c9a0d0952915694b | refs/heads/master | 2021-01-14T12:31:35.573557 | 2011-08-09T20:30:22 | 2011-08-09T20:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,359 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# vim: ts=4 sts=4 sw=4 tw=79 sta et
"""%prog [options]
Python source code - replace this with a description of the code and write the code below this text.
"""
__author__ = 'Patrick Butler'
__email__ = 'pbutler@killertux.org'
user_t = 'int, int' #ncount, sum
track_t =... | [
"pbutler@killertux.org"
] | pbutler@killertux.org |
d134d707422b4f7133ac34d32cd47be72a95a753 | f0801ad1a4e4097a7026cca8767e88fe74036ea7 | /main/migrations/0001_initial.py | d9a3a1b77e612221874098a8914764b504ec1400 | [] | no_license | meadhikari/django-crm | 4ca446e020f07c50286a4d6debb5ecbf275abb39 | 944319ed0ead8aa1911b8ba2d66b390411972f35 | refs/heads/master | 2021-01-19T13:42:17.014964 | 2017-02-18T19:32:39 | 2017-02-18T19:32:41 | 82,411,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-18 09:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"salik.adhikari@gmail.com"
] | salik.adhikari@gmail.com |
14878d495a08c0d015f2c65e2bc704123e4d4d3d | f5049260eb609e77be212b0d77dc32f283a2a498 | /Hobbies/Hobbies/wsgi.py | 1392c7d4c178e46636e80bcb034eb978499490d5 | [] | no_license | MrKreg/HobbiesProject | 35a6726c1be5d8044a1c170df1d43d5f631ffcdf | d13eeca5deec2d24500ac0a014efa77531f66b54 | refs/heads/master | 2020-04-13T15:50:04.938191 | 2018-12-27T22:51:25 | 2018-12-27T22:51:25 | 163,301,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # +++++++++++ DJANGO +++++++++++
# To use your own Django app use code like this:
import os
import sys
# assuming your Django settings file is at '/home/myusername/mysite/mysite/settings.py'
path = '/home/MrKreg/HobbiesProject/Hobbies'
if path not in sys.path:
sys.path.insert(0, path)
os.environ['DJANGO_SETTINGS_... | [
"taras.sheketa@gmail.com"
] | taras.sheketa@gmail.com |
20820d2999c8256213b38a1a0ee968ca846d22ce | 5242b58f4cfe6cb82834fa859a6a81e88033cc08 | /utils/login_required.py | 52a8ffbe3fd82e3b2c27641048af9dea82e8303b | [] | no_license | CollinChiang/ChatApp | 06a8128e986141e49221d6bdc270bc62475ef46e | bd1b25c53fde390ba4695e49e98e1d64ce1637e2 | refs/heads/main | 2023-07-07T16:59:38.681747 | 2021-09-08T02:59:31 | 2021-09-08T02:59:31 | 402,828,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from flask import redirect, session
from functools import wraps
def login_required(func):
@wraps(func)
def decorated_function(*args, **kwargs):
if session.get("user_id") is None:
return redirect("/login")
return func(*args, **kwargs)
return decorated_function
| [
"46460223+CollinChiang@users.noreply.github.com"
] | 46460223+CollinChiang@users.noreply.github.com |
8646a1f6a167a9781784fe5d0fd498c804a04f66 | bcc4f3188c6744530d8b05c47a83288bf520346e | /config.py | d8e673f496cdbc0b36766e3b8328a24a56db291d | [] | no_license | MikeSoft007/DukkaINC_ | deb31389e349b78bf4b3ee5e151686e013b6e57c | 100358cc9d8ad92481b21280b2ccb33481269713 | refs/heads/master | 2023-06-26T12:18:24.358905 | 2021-08-02T22:57:47 | 2021-08-02T22:57:47 | 391,277,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# creating a configuration class
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
MONGO_URI = os.environ.get('MONGO_URI') | [
"mekpenyong2@gmail.com"
] | mekpenyong2@gmail.com |
8a97071f6de0931196876b2e68bc90a3e6b3f411 | 6acdc11c60e874e85adba173abb90f279049ab89 | /coding.py | 38bacad180c9b8b5d530c8e109dc4a1c43653658 | [] | no_license | bala977/balaji | 3ce9123709b1be1a24b8fd2235405e9a9be68382 | ba73e7591e7c86daef86081a15a19760dcac16b8 | refs/heads/master | 2020-06-11T16:58:56.256340 | 2019-08-05T10:03:27 | 2019-08-05T10:03:27 | 194,030,685 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #B
N1,P2=input().split()
if (int(N1)-int(P2))%2==0:
print("even")
else:
print("odd")
| [
"noreply@github.com"
] | bala977.noreply@github.com |
fc155d1aea9ba0987c0503f3f248de84efbb9d67 | 359f7a903c35baafa372fd6f245a7390933d5c6b | /phygeograph/phygeograph/model/kddwei.py | 3fbd27d185978d7f9e05fc0f35a786a92f88559f | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | phygeograph/phygeograph | dd7c870ab32f941b372bfec4d532406389b8ae6f | a96ecbae25cd3c785685a840a079aafb30b4a1d4 | refs/heads/master | 2023-08-02T08:23:56.914452 | 2021-09-27T01:54:57 | 2021-09-27T01:54:57 | 409,607,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | import torch
import scipy.spatial
def knngeo(x, y, k, batch_x=None, batch_y=None):
r"""Finds for each element in :obj:`y` the :obj:`k` nearest points in
:obj:`x`.
Args:
x (Tensor): Node feature matrix
:math:`\mathbf{X} \in \mathbb{R}^{N \times F}`.
y (Tensor): Node feature matr... | [
"phygeograph@gmail.com"
] | phygeograph@gmail.com |
0e6e154633b3d4ca832a232c20e7f1a4740450f6 | e3c9877255b7591e3b12d12644fd13518a45b855 | /account_rbi/controllers/controllers.py | 0f31ed1992e8bac15980770a8ca0307391448360 | [] | no_license | fadynoor/rbi | c445e7a53462c104b1c59ebc19291d0293a3bb43 | ba956c42618cae7ad70f2ce22d10caa0847d7499 | refs/heads/master | 2022-12-26T17:18:00.448927 | 2020-09-25T10:40:25 | 2020-09-25T10:40:25 | 278,926,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class AccountRbi(http.Controller):
# @http.route('/account_rbi/account_rbi/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/account_rbi/account_rbi/objects/', auth='public')
# def list(self, **kw):
# r... | [
"fady.noor@gmail.com"
] | fady.noor@gmail.com |
ff00a04615743bcd931d99ee7f9a21cade5d3410 | 3ea3f46bd4d7231c5eb5c1e1c02625f5290cac76 | /heart/migrations/0003_auto_20170317_1846.py | 0573637431da4546fd61ccdbdfb05f3edf19ea1b | [] | no_license | moonclearner/simpleDjangoProject | 0340b0a744651bcc9dbd7a52b12c4827d40a7a5f | 51fc70d4c499aa64e82a6f02c913f44c45cad323 | refs/heads/master | 2021-01-23T01:41:25.481027 | 2017-04-11T14:29:09 | 2017-04-11T14:29:09 | 85,927,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-17 10:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('heart', '0002_auto_20170317_1841'),
]
operations = [
migrations.AlterField(... | [
"718857460@qq.com"
] | 718857460@qq.com |
b506ffdba484cd5f343426bd1f96c751004ba9fa | eaeb685d13ef6c58364c5497c911f3e2f8c49a43 | /Solution/922_Sort_Array_By_Parity_II.py | 09d03afec572e8518220ff839a03cf91f98b8253 | [] | no_license | raririn/LeetCodePractice | 8b3a18e34a2e3524ec9ae8163e4be242c2ab6d64 | 48cf4f7d63f2ba5802c41afc2a0f75cc71b58f03 | refs/heads/master | 2023-01-09T06:09:02.017324 | 2020-09-10T02:34:46 | 2020-09-10T02:34:46 | 123,109,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
ret = [0] * len(A)
pos_e = 0
pos_o = 1
for i in A:
if i % 2 == 0:
ret[pos_e] = i
pos_e += 2
else:
ret[pos_o] = i
... | [
"raririn.sandbag@gmail.com"
] | raririn.sandbag@gmail.com |
cd7628ee316b36ef515d2a007cfa5fcc404713c9 | 83ca25974495f197a737b9f8c0b591a61a1fe595 | /moviebooking/movie/urls.py | 44ef0db5c5e8803fd20b16e931cdde89158ef3e0 | [] | no_license | ShazibHK/Django_MovieBooking | 0d6b044353348ee5d00a3cc274b3c670566b5e9d | 64abe1e34958b100c4d94adede71a66f5d61e40a | refs/heads/main | 2023-07-12T23:26:08.137343 | 2021-08-24T17:03:01 | 2021-08-24T17:03:01 | 399,532,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='movieIndex'),
path('', views.autocomplete, name='autocomplete'),
path('home_page2.html/', views.search_content, name='search_content'),
path('login/', views.customerLogin, name... | [
"mca.1919@unigoa.ac.in"
] | mca.1919@unigoa.ac.in |
aee96f6de4e6fd2ecd47ec453c188c2895fc41c9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/173/usersdata/268/81652/submittedfiles/moedas.py | b3b9d67c5c88d783592b6b36e092be5012cfea8b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
a=int(input('Digite o valor de a: '))
b=int(input('Digite o valor de b: '))
c=int(input('Digite o valor da cédula: '))
w=0
x9=0
while(w<c):
duvida= a*w
comprovacao= (n-a*w)
if (comprovacao%b)==0:
print(duvida)
print(b*(comprovacao/b)
if ((comprovacao%b)!=0) :
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b5097dc639ce1b85de30e5898a505721e3bb28f1 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Deal Capture Examples/FPythonCode/MiniFutureInsDef.py | f25b228e0539ca28ceaaee4e44dc3bd4a628ca06 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,795 | py |
from __future__ import print_function
import acm, ael
def SetUpMiniFuture(definitionSetUp):
from DealCaptureSetup import AddInfoSetUp, CustomMethodSetUp
definitionSetUp.AddSetupItems(
AddInfoSetUp( recordType='Instrument',
fieldName='MiniFuture',
... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
a3836b9cc28eb0e6ec8bf9fd09847553c55d5a49 | 1b77f2c085e7c6c80359dc3ecee07ccbe3ffe502 | /tests/__init__.py | b076850ce129f3f11bca9048433050d239b6a19e | [] | no_license | hecttormendoza/front-odoo | 93c1e55ebbd09d999f5bd681ce1af627f3f81454 | 88350ca4867de19decaca078aac54744fc8226a3 | refs/heads/master | 2020-03-26T22:12:23.878965 | 2018-08-22T19:08:57 | 2018-08-22T19:08:57 | 145,440,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | from . import test_tour_teachers
| [
"hecttormendoza@gmail.com"
] | hecttormendoza@gmail.com |
b41041bcfcd4a8b7be11c744db2facf36c93d6c6 | 1acaf9a72cc49c0b707695c7131c94963312807a | /TOPfilter/StringSettleV7.py | fdfcddb30096b52f136abfa7cf8240378371bdca | [] | no_license | wblyy/Music_MetaGrabber | df201fd6e46467324567c3a08f68bc491902bcda | aed99b62c159bcc9ee982825f33ffbf58c6665ea | refs/heads/master | 2016-09-05T10:52:35.747895 | 2014-12-23T07:50:46 | 2014-12-23T07:50:46 | 26,156,496 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | #-*-coding:utf-8-*-
#V7根据甲方需求的xls从QQ的更多json中拿歌,实现批量拿取批量入库,下一阶段再整合百度已有的歌单进行去重
#可以将甲方的需求看做一个二维数组
import urllib2# 使用库: urllib2
from mydbV1 import MydbV1
dbV1 = MydbV1.instance()
QQ_boundary=[
[1,179],
[2,344],
[4,94],
[5,355],
[6,86],
[7,95],
[9,306],
[12,263],
[13,170],
[14,55],
[17,18],
[18... | [
"wblyy0911@gmail.com"
] | wblyy0911@gmail.com |
1aeb85afcb4a936df8b77f6a86713552f468588e | 200633e6583244f7b2c4d10464880c6e44e9003e | /Assignment3_ Ziyuan_Guan/seq_gram.py | 624f4ed36b407dd6b688acae52233fa120b0f8bf | [] | no_license | Chesterguan/BigData | 859a3f1f4b355cf848d53b030844e0c7c869964c | 9465ef27542b4cd1842c8f2213f1532878d21701 | refs/heads/master | 2021-09-11T14:29:26.254631 | 2018-04-09T01:28:53 | 2018-04-09T01:28:53 | 125,310,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import keras
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.layers import Embedding
from keras.layers import LSTM
import numpy as np
import copy
import random
import h5py
import csv
datas = []
labels = []
with open('train.csv... | [
"ziyuan.guan@ufl.edu"
] | ziyuan.guan@ufl.edu |
40895ed0380296e8484501ac5322c0acb1c93e90 | 692b7a9f0902ce86c4a32582b309d20d12df1631 | /tcp_tests/fixtures/rally_fixtures.py | 45e828a31aa7814ed0a0d1c64ce4827b7d137660 | [] | no_license | dis-xcom/tcpcloud-devops-env | 10bee9ab3dc722a5fd4ed116bbe7d09439e3a6e4 | 9d3b4530458513157b3662089288f7d85c656226 | refs/heads/master | 2021-01-11T04:29:27.164184 | 2016-10-18T10:39:00 | 2016-10-18T10:39:00 | 71,150,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"dis@srv09-kha.kha.mirantis.net"
] | dis@srv09-kha.kha.mirantis.net |
e6565fbb7fe151f4adbf8fb13de191e7f9e51300 | fed0e0bed42f6297aa6b92c4af9be15edf363535 | /models.py | 194d40065f650d67baf95c691d68177479af81b8 | [] | no_license | djwilder316/learningflask | 7d99572f77a8b4af39c845d4cf6e70a6132e5d58 | 2cbe4a0b37d2f274353e4806dc3e917467a73d9e | refs/heads/master | 2020-03-28T16:12:14.056789 | 2018-09-17T20:22:24 | 2018-09-17T20:22:24 | 148,669,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | from flask_sqlalchemy import SQLAlchemy
from werkzeug import generate_password_hash, check_password_hash
import geocoder
import urllib
import json
db = SQLAlchemy()
class User(db.Model):
__tablename__ = 'users'
uid = db.Column(db.Integer, primary_key = True)
firstname = db.Column(db.String(100))
l... | [
"djwilder316@gmail.com"
] | djwilder316@gmail.com |
01f8f0584f0144c40fc052b2a100e5205895b8a8 | 0a484912bc857c037144f5f2ab8b56374eddb7ec | /image_upload/settings.py | 64d3fa84ef4ff0a4f2b23136e488e9356b320351 | [] | no_license | jeslin01/circleci-imageupload | fbb83c7363dd18c664ced390e8bb5a5f0b1fb0ff | 99183a323ca3204c7ab3d769d1133bfc143fc3f7 | refs/heads/master | 2022-12-12T22:43:30.167594 | 2019-03-30T06:39:08 | 2019-03-30T06:39:08 | 178,416,081 | 0 | 0 | null | 2022-12-08T04:55:16 | 2019-03-29T14:02:07 | Python | UTF-8 | Python | false | false | 3,547 | py | """
Django settings for image_upload project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import ... | [
"ashish.g@synsoftglobal.com"
] | ashish.g@synsoftglobal.com |
b3589abd67feb9c0e4a4504c8763190db14f3597 | c08721ea0ab07fbf866b0612d315fed770a4e260 | /docs/source/conf.py | 5d8789ab32ae4f9a3d934bae3cd3c78ab84299bf | [
"MIT"
] | permissive | gunnarx/pyfranca | 84262c7f760eeeb60285fae401ff4f3d9b1d6f67 | d986e4b97229f9673d8349b2de77c541a9377faf | refs/heads/master | 2022-05-03T13:07:35.027609 | 2022-04-12T07:51:30 | 2022-04-12T21:15:10 | 88,442,258 | 3 | 1 | MIT | 2022-04-12T21:15:12 | 2017-04-16T21:00:37 | Python | UTF-8 | Python | false | false | 9,369 | py | # -*- coding: utf-8 -*-
#
# pyfranca documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 13 03:43:16 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"zayfod@gmail.com"
] | zayfod@gmail.com |
2d80f7c9fbbe827f590fe956913c72d4b5e11451 | 0ce587a8932592fd989e0be9bf3ee65469875078 | /quantdsl/syntax.py | 6b91619504be69797bc17073add5820c3e8cf245 | [
"BSD-3-Clause"
] | permissive | caiorss/quantdsl | 98bdb73426a874e49ee71b7f030b528c4d479e02 | eaf72f5656628530e51a3ef4d0e83a903c55b86b | refs/heads/master | 2021-01-17T21:26:14.519914 | 2014-09-17T21:25:38 | 2014-09-17T21:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,662 | py | import ast
from quantdsl.exceptions import DslSyntaxError
class DslParser(object):
def parse(self, dslSource, filename='<unknown>', dslClasses=None):
"""
Creates a DSL Module object from a DSL source text.
"""
self.dslClasses = {}
if dslClasses:
assert isinsta... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
6dbabae65ed075a12913a12e8af2019751371a24 | fdd2ed32e45ca3dcc978cf7e5af76d2afd8cb9f9 | /87.py | ecdbdd1ab3aee85a6e5da158c4511eb5ef0c7440 | [] | no_license | Narendon123/python | e5295e5b71867fd6a90d080c01e2db6930659f95 | cf0b3dd4ff4eb4d6d44f061b45d00baa25de5a38 | refs/heads/master | 2020-05-31T06:06:19.230781 | 2019-07-11T12:51:25 | 2019-07-11T12:51:25 | 190,134,515 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | w=input()
w=w.split()
a=int(w[0])
b=int(w[1])
i=1
while(i<=a and i<=b):
if(a%i==0 and b%i==0):
gcd=i
i=i+1
print(gcd)
| [
"noreply@github.com"
] | Narendon123.noreply@github.com |
d3c0c2506005e3610ea98dcccd01620e15a319f2 | 31ac0d992ebe3f8e40e31d48cb79a1708fa51b8f | /blogging/migrations/0003_auto_20200328_1255.py | 3a322781d46d6500db0d4bb8226bf21c4773ac24 | [] | no_license | franjaku/django-blog | 78a94f8a56d7083fbf43a084561619530f9d933b | 9da7dd0525519cfa378dcca834b62297f046cb46 | refs/heads/master | 2021-04-23T03:36:19.730623 | 2020-04-09T06:30:53 | 2020-04-09T06:30:53 | 249,895,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.1.1 on 2020-03-28 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogging', '0002_category'),
]
operations = [
migrations.AlterField(
model_name='category',
name='posts',
... | [
"kulyckyf@umich.edu"
] | kulyckyf@umich.edu |
399c43ffe2bee74fd813a3ea733be816e7ba391b | f6f8323999c8ec13e14f9354a64f9a393f7ec032 | /volc/volc.py | 2c14c090661353f004dce8a2ee943c14611263a2 | [] | no_license | jrybicki-jsc/rusty | 8a3b0776428eca61f9a82af139df0bae7aedb923 | d6e1ef23f3abc2ca366d9f64e57efaff601eabbd | refs/heads/master | 2022-12-19T06:35:35.765175 | 2020-10-03T08:32:31 | 2020-10-03T08:32:31 | 267,676,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | import sys
import math
import random
import pygame as pg
pg.init()
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
LT_GRAY = (180, 180, 180)
GRAY = (120, 120, 120)
DK_GRAY = (80, 80, 80)
class Particle(pg.sprite.Sprite):
gases_colors = {'SO2': LT_GRAY, 'CO2': GRAY, 'H2S': DK_GRAY, 'H2O': WHITE}
VENT_LOCATION = (... | [
"j.rybicki@fz-juelich.de"
] | j.rybicki@fz-juelich.de |
8c4e0732907c0a50c71b4fd46d7db075c8ad46a5 | 760fbdca58de7e2fb146ec60905ded7497b1812b | /ibm_whcs_sdk/insights_for_medical_literature/tests/integration/test_search_typeahead.py | ee752832dabdf1753e9150dd069ef924defa1b65 | [
"Apache-2.0"
] | permissive | dmansjur/whcs-python-sdk | c5d28742cefc65e19a7eb5de0027fe9f59b1e689 | 110a847c91d5779df91c6562394bde557ee132e5 | refs/heads/master | 2021-05-26T21:49:44.515561 | 2020-04-07T17:17:36 | 2020-04-07T17:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | # coding: utf-8
# Copyright 2018 IBM 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 applicabl... | [
"dcweber@us.ibm.com"
] | dcweber@us.ibm.com |
a0556965cb02a37c5455038729b9fc1ee24bf7c7 | 27d2a191da28364cc921b097957f9e5b46514a2b | /res_net fusion/l.py | 13455f6fea3a09e34d0792c255814b1af2957a98 | [] | no_license | yesichao/works | 18513504150199a1eca48e861e452039da737d0f | 9c47ed1a26a205b135deeaa5fa70a350823ff88b | refs/heads/master | 2021-06-30T02:33:05.914134 | 2020-12-18T04:57:39 | 2020-12-18T04:57:39 | 204,428,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | import warnings
import wfdb
import os
import numpy as np
import operator
from utils import *
os.environ["TF_CPP_MIN_LOG_LEVEL"] = '2'
warnings.filterwarnings("ignore")
data_path='D:/python/bwl res_net/MIT-BIH'
DS1=[101,106,108,109,112,114,115,116,118,119,122,124,201,203,205,207,208,209,215,220,223,230]
DS2=[1... | [
"noreply@github.com"
] | yesichao.noreply@github.com |
72627daf23c16323fb9cc7908b77948306504c43 | dee83fb6b0bd496b01dd0c216ee6e1a62012abe3 | /users/views.py | ddbf99c3ca818a3722abba0e5c78294208027386 | [] | no_license | RJustinePanopio/ems_proj | 82f56112ba3abf9e5548376b4deed92db04c0d47 | 4ea38eebc1fa4738c845570e96f8055238f2ed4a | refs/heads/master | 2020-04-04T18:00:33.016146 | 2018-11-08T04:04:53 | 2018-11-08T04:04:53 | 156,146,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import CreateView
from .forms import ParticipantCreationForm
class SignUpView(CreateView):
form_class = ParticipantCreationForm
template_name = "signup.html"
success_url = reverse_lazy("login") | [
"20anime15@gmail.com"
] | 20anime15@gmail.com |
286e6fc6fadb3b6f3acf790a8ff9b86949ce9f42 | c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b | /.svn/pristine/28/286e6fc6fadb3b6f3acf790a8ff9b86949ce9f42.svn-base | 906aef8455f144197811b24c002a226a851f74cc | [] | no_license | feitianyiren/TaskCoach | 7762a89d5b521cfba0827323a9e8a91d1579810b | 0b7427562074845ac771e59e24a750aa5b432589 | refs/heads/master | 2020-04-08T04:56:35.491490 | 2016-01-12T13:29:03 | 2016-01-12T13:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,438 | import patterns, time, copy
import domain.date as date
class TaskProperty(property):
pass
class Task(patterns.ObservableComposite):
def __init__(self, subject='', description='', dueDate=None,
startDate=None, completionDate=None, budget=None,
priority=0, id_=None, lastModificationTi... | [
"hieronymus_schweiz@yahoo.de"
] | hieronymus_schweiz@yahoo.de | |
8a33374b9c01ded55865a5c9464ca843e32074d6 | 37220d7b60d682eb1abf40326d061485581aab36 | /ajax/urls.py | b06af246996089bc8452ee5a25eabcdc705623a1 | [
"BSD-3-Clause"
] | permissive | lautarianoo/LautAvito | 547fba9a0bb3a65aac6132e00382a8876bca4a28 | 106dcb6f04230af2540bd3883c85713828cd051c | refs/heads/master | 2023-06-24T11:08:17.889875 | 2021-07-26T17:30:08 | 2021-07-26T17:30:08 | 377,897,865 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.urls import path
from . import views
urlpatterns = [
path('get_districts', views.get_districts, name='get_districts')
]
| [
"neonchick1"
] | neonchick1 |
d7b6cc4e3530d46233da220faa7ff26f21edad7d | c761eca92ffd77f0473d5b8a211167965531f662 | /redash/__init__.py | 89c355dba1073b93ee4027093d3cbca47d0b076a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | solutionrooms/testredash | 777cd1a7e24abcbf9de866e34f36d3530f1b68bd | 8decda0b55defd24fa627b24e7c5fcd377062617 | refs/heads/master | 2021-01-20T11:14:31.950310 | 2016-06-23T21:49:08 | 2016-06-23T21:49:08 | 61,838,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | import logging
import urlparse
import redis
from flask import Flask
from flask_sslify import SSLify
from werkzeug.contrib.fixers import ProxyFix
from werkzeug.routing import BaseConverter, ValidationError
from statsd import StatsClient
from flask_mail import Mail
from redash import settings
from redash.query_runner im... | [
"jon.scott@solutionrooms.com"
] | jon.scott@solutionrooms.com |
474ab03160c08cfcd303d16a89320616f916a642 | 099ff999f3d80e8b6e47b85bda30b2499c442bfe | /gcp_hpo/smart_search.py | b3d85010e21db971af388784f4ceb38cc430242a | [
"MIT"
] | permissive | lucasiscovici/DeepMining | 7c0e32e83f03c83be7863316f669a0df1774b00a | db0a30a2cea7a525355f5d6246ccd07d4dfe4ce5 | refs/heads/master | 2020-04-30T08:32:44.756945 | 2018-07-03T18:25:05 | 2018-07-03T18:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,979 | py | """
Hyper-parameter optimization through randomized search, GP-based, and GCP-based.
"""
# Author: Sebastien Dubois
# for ALFA Group, CSAIL, MIT
# The MIT License (MIT)
# Copyright (c) 2015 Sebastien Dubois
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and asso... | [
"sdubois.sebastien@gmail.com"
] | sdubois.sebastien@gmail.com |
2bd347367d16337128c24e338d3460b3fa8647c9 | ebc4394518b59bab29fe23452c23918f3b3d93b7 | /agriculture/crop-yields/plot_topography.py | f950da826979b1eaf89377b64a22ee42afcaa3c5 | [
"MIT"
] | permissive | gkilleen33/rs-economics | a1673f041d66cf04db0d38940da230def05edeb8 | 4b1149925695c9fe801d22912d28a4c022ba9079 | refs/heads/master | 2021-07-05T05:16:12.753945 | 2021-06-12T18:49:22 | 2021-06-12T18:49:22 | 243,337,981 | 3 | 1 | MIT | 2021-03-20T22:55:33 | 2020-02-26T18:40:34 | Python | UTF-8 | Python | false | false | 2,283 | py | # -*- coding: utf-8 -*-
import ee
ee.Initialize()
###############################################################
# ENTER USER INPUTS HERE
###############################################################
plot_boundaries = ee.FeatureCollection() # Upload plot boundary data (e.g. using the Google Earth Engine consol... | [
"gradykilleen@gmail.com"
] | gradykilleen@gmail.com |
713482388b498523e139b006bdf1fc3b83d5e35b | 74a188c3470cba0d69c437fe1c1b93e63d8327b8 | /part1/lesson25_part1_demo/vacancies/models.py | 802551eb9eb98c818666f208309d34bf0b98c3c2 | [] | no_license | skypro-008/lesson25 | 81aa8155409ed600eab1aea0c454632a2822f051 | 2d2c91879cde763743a22477e813218e00cb5a76 | refs/heads/master | 2023-08-28T15:46:25.400658 | 2021-09-20T15:26:45 | 2021-09-20T15:26:45 | 407,803,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.db import models
class Vacancy(models.Model):
text = models.CharField(max_length=1000)
| [
"aalmukhametova@gmail.com"
] | aalmukhametova@gmail.com |
49c119a4c7491a7b5b8bcf0c18b0dbbd7e0c9b34 | 19ac8aa8ee916cef99ddc85b6565c4d6fbe40749 | /FunctionsAndFunctionalProgramming/functionalFizzing.py | 953c863c737f9d99921591c2b75d1cc537db621e | [] | no_license | Darrenrodricks/IntermediatePythonNanodegree | 53570bb1b97d9d10d6e6bd19d3a1f8f654a1cfe9 | 5e597fbe147c23b694fc9b354797e443f0a87a67 | refs/heads/main | 2023-06-25T18:54:38.962503 | 2021-07-28T17:15:44 | 2021-07-28T17:15:44 | 389,006,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import helper
"""Generate an infinite stream of successively larger random lists."""
def generate_cases():
a = 0
while True:
yield helper.random_list(a)
a += 1
if __name__ == '__main__':
for case in generate_cases():
if len(case) > 10:
break
print(case) | [
"noreply@github.com"
] | Darrenrodricks.noreply@github.com |
e02f4a0c5b78cca43171902e5b8212d0c9bf443a | 2fe18f4babd857381c2251f1c2437ccdae234dd8 | /bookmarks/bookmarks/settings.py | 273af7e947825b97a57cf7f7558397f12874a3f2 | [] | no_license | Akhtyrtsev/bookmarks | 62f23d87c9442aaa2f56c73dd52ddbf8e456f7e1 | c8c52f1a9d4674a7187ad2408af7c090424a9738 | refs/heads/master | 2020-07-03T23:17:44.547699 | 2019-08-15T12:27:04 | 2019-08-15T12:27:04 | 202,083,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.2.4.
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/
"""
import os
... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
9a3303167a28af09eda1b153ab50bdbab82cba7b | c91ef1310c905771477f11d5694b4991926152c5 | /mysite/blog/tests/test_views.py | 224c3168e12e378d809035801e136169f1eb3e36 | [] | no_license | Yuichi-kawasaki/python-blog | 248388ca142294eb937718801b8a02825f614c05 | 3f91618c0ebdb29cbfaab32d56fd727b39040879 | refs/heads/master | 2023-05-12T16:18:57.617116 | 2021-05-30T07:54:36 | 2021-05-30T07:54:36 | 372,155,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,674 | py | from django.test import TestCase
from django.urls import reverse
from ..models import Post
class PostListTests(TestCase):
def setUp(self):
"""
テスト環境の準備用メソッド。名前は必ず「setUp」とすること。
同じテストクラス内で共通で使いたいデータがある場合にここで作成する。
"""
post1 = Post.objects.create(title='title1', text='text1')
post2 = Post.objec... | [
"jiv.yu1.kawasaki@gmail.com"
] | jiv.yu1.kawasaki@gmail.com |
0eb114fa558bb9e5f5e7d4a9501ddd53fa14a7b6 | a0dde47bec13e16d9e39ff6a5d321770d6fa8c80 | /app/conf/index.py | d31cac1eb0bb44104073fe9304d41982934896cb | [] | no_license | siddharthpanda99/FlaskService | 4ed397155ee1be1f8ce681b333d0291eed2c3cd0 | c93414eb4a77239802c0f662df7602ad02a6e7de | refs/heads/master | 2020-06-14T15:39:55.028554 | 2017-07-29T03:26:40 | 2017-07-29T03:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | from __future__ import print_function
from __future__ import unicode_literals
from flask_cors import CORS
from flask_httpauth import HTTPBasicAuth
from auth import configure_auth
from cache import configure_cache
from mongo import configure_mongo
from pubsub import configure_kafka
from subscribers import register_sub... | [
"b96705008@gmail.com"
] | b96705008@gmail.com |
0a454a6e9c041f2defd78711ff6565bca268f9b5 | f9c16bd4969d10f5f860205dcab5035f075209b8 | /pigat/spiders/pigat_cms.py | 69f32d5b523516e7007243342e349e05a4cd4963 | [] | no_license | cracer/pigat | 3ec3c64560846032e0f8d1645e21a9c1e99dc33d | 9a9082db8bd7f79d8960bc1e19b312093c32855b | refs/heads/master | 2022-12-29T13:20:34.469470 | 2020-10-14T05:23:46 | 2020-10-14T05:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,594 | py | import time
import json
import zlib
import requests
import scrapy
import pymongo
from bs4 import BeautifulSoup
from pigat.items import PigatItem_cms
class pigat_ip(scrapy.Spider):
name = 'pigat_cms'
def start_requests(self):
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100... | [
"1205613989@qq.com"
] | 1205613989@qq.com |
93997a040bba25b98298ab1d27859cb7599ddd00 | 911790a1b0b9cdc0e2348e9cd849a68e9be67cab | /video_frame.py | 1a22f6848953516cfa2bb7d2aa04aff0a866fc9a | [
"Apache-2.0"
] | permissive | ANDROID564/pc_cyber_lab | 9dbff546e049b2e6ed5feb5f2c7aea18d0e8b322 | 704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef | refs/heads/master | 2020-05-25T04:03:23.566675 | 2019-05-20T11:41:12 | 2019-05-20T11:41:12 | 187,619,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | '''
Using OpenCV takes a mp4 video and produces a number of images.
Requirements
----
You require OpenCV 3.2 to be installed.
Run
----
Open the main.py and edit the path to the video. Then run:
$ python main.py
Which will produce a folder called data with the images. There will be 2000+ images for exampl... | [
"noreply@github.com"
] | ANDROID564.noreply@github.com |
195624fb20c54ced15a65be4c1af7cb329cc3b1c | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/contrib/staticfiles/testing.py | 754bd296574e9e20066c857e41043e1bb11bfcc3 | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.test import LiveServerTestCase
class StaticLiveServerTestCase(LiveServerTestCase):
"""
Extend django.test.LiveServerTestCase to transparently overlay at test
execution-time the assets provided by the staticfiles app2 finders. T... | [
"jcmloiacono@gmail.com"
] | jcmloiacono@gmail.com |
d5f638b16f492c7594a3fcea541c45e8aae9fab2 | 2435099201902a12689621baba62f7799a260ae3 | /backend/red_frost_25038/urls.py | 990009da86771f717c4f523d324c2d500dcb88a5 | [] | no_license | crowdbotics-apps/red-frost-25038 | eab0bada99927f8f7d76f4866bbcf042be762a0d | cfb48c84f707a558d0cf6405f5057371bdcb2778 | refs/heads/master | 2023-03-30T10:07:45.116090 | 2021-03-15T15:46:25 | 2021-03-15T15:46:25 | 348,029,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | """red_frost_25038 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b79f48e5eac894729b2be9ba8b6dd039868089e1 | 97c3ee99b694e2bae1d84d13d2311bc4430f362d | /firmware/rm5.py | 90f51a071b63a1e0dfb3ee22f8b749c41a674c50 | [] | no_license | Technonautes/technotireuse | 2d9df1ae4aa0b42143ea4c541e6792e4ee436d38 | 3ac7edf5837842347d26b7f72a47ce5f128ef962 | refs/heads/master | 2020-04-20T17:11:17.117830 | 2013-02-24T00:04:13 | 2013-02-24T00:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from serial import Serial
s = Serial('/dev/ttyUSB0')
while True:
s.write(chr(0) + chr(29) + "\n")
print s.read(4)
| [
"gabe@squirrelsoup.net"
] | gabe@squirrelsoup.net |
29c5c69336a38d9dcf6b6df89d61cecd8ee4bc24 | 2a1885f175d863e425682e4fd697fe2a1bdfb2a1 | /memberactivityapp/migrations/0001_initial.py | 3d680bf25b4f0bbff2c202bfb9009133269ea547 | [] | no_license | Anshum4512501/fullthrottle_work | 133a7da214e7c80e690fb50c3af7c74f57c579ad | 8a076b7c61377e585f06bd314bccd9eb476c87d8 | refs/heads/master | 2022-11-28T23:36:54.771044 | 2020-08-12T10:04:04 | 2020-08-12T10:04:04 | 286,205,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # Generated by Django 3.1 on 2020-08-08 11:26
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Members',
fields... | [
"anshum45@gmail.com"
] | anshum45@gmail.com |
3038e558ef979265c039fb7fa0e2bd16093e2d0d | 2bda7591991e5be48f36fb22d562cc843d03ba73 | /src/main.py | b63f314209ff76f19897c5e34ac3e29a47039d39 | [] | no_license | julflore000/Thermo-Final-Project | b95857a1d35480f934fb5747d7fa8fe4f57eb852 | 8930a4126e6cc7e9348a55af8bba3904116eae23 | refs/heads/main | 2023-02-02T19:05:58.586166 | 2020-12-12T00:47:25 | 2020-12-12T00:47:25 | 316,055,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,467 | py | import pandas as pd
import numpy as np
import csv
import matplotlib.pyplot as plt
import math
import datetime
import seaborn as sns
def calculateEnergyGenerated(startDate,endData,keepRes = False):
""" generates the ROR electricity plant for a start date to an end date
start and end dates: must be in datetime fo... | [
"52216279+julflore000@users.noreply.github.com"
] | 52216279+julflore000@users.noreply.github.com |
4dfd9b395dbd48e56d02530c1187d3870308bd63 | 39f2d8e5e16cdb173e0c46c79fadee87db040cb3 | /spiderDigikeyMain.py | a2728dcd8e11cb264a3aa603fb266c31d6b61378 | [] | no_license | afrunk/spiderClock | 3345723c2604cfedf6d6adae97e86c405728012b | e046c2477c27e1ce772b9e6d5c169e1973c9e28f | refs/heads/master | 2020-07-06T19:46:08.025145 | 2019-08-27T14:18:19 | 2019-08-27T14:18:19 | 203,121,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,871 | py | # 爬取的时候需要修改的地方
'''
- 表名:
- get_html_sensor() 函数中更新链接状态
- read_all_urls() 获取链接存入数据
- get_images_new() 获取图片链接
'''
import requests
from bs4 import BeautifulSoup
import pymysql
import os
import time
# 链接数据库 切换时候修改db即可
db = pymysql.connect(host='127.0.0.1',
port=3306,
user='roo... | [
"afrunk7@gmail.com"
] | afrunk7@gmail.com |
c4e5fb6ae2eebc51f64b8a0e86de608c5e28fba1 | c3cfcf8cd82626cb66019499471c7532b8559026 | /KNN/KNN.py | 4e13b46a68ac605c00ab5e9d2ec8105bfeeb9e2d | [] | no_license | shyheng/Machin_Learning | de7ee6d0e8f50789a7f065a2f0eb0fd7e4130a80 | 03d92c9935f2366bf571068cd133fe3734f5c183 | refs/heads/main | 2023-01-24T12:23:59.224756 | 2020-11-21T16:30:52 | 2020-11-21T16:30:52 | 314,854,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | import csv
import random
#读取
with open('Prostate_Cancer.csv','r') as file:
reader = csv.DictReader(file)
datas=[row for row in reader]
# 分组
random.shuffle(datas)
n=len(datas)//3
text_set=datas[0:n]
train_set=datas[n:]
# print(text_set)
# KNN
# 距离
def distance(d1,d2):
res=0
for key in ("radius","te... | [
"shy2210278285@aliyun.com"
] | shy2210278285@aliyun.com |
251660ad7fcbe5e0382b980fc9d1abb986e30e43 | 33de81c7970f12926cbc4dc3cce3655898afcd55 | /collatz.py | 4a6b9437737fe827db6f9916e369ea19762cf5cb | [] | no_license | HazelIP/pands-problem-sheet | b62fcad87315ad5991b8dd1ffe7f9a55f1a6c92e | c13a58fbdb65e4f1e7a2efeef43ff4ba92688f00 | refs/heads/main | 2023-04-13T15:59:26.968861 | 2021-04-07T05:20:28 | 2021-04-07T05:20:28 | 334,283,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | # This program ask user to input any positive integer and outputs successive values of the below calculation
# At each step calculate the next value by taking the current value
# if the input is even divided by 2, if odd x3 +1
# end program while output = 1
# Author: Ka Ling Ip
def main(): #create a function called ma... | [
"g00398581@gmit.ie"
] | g00398581@gmit.ie |
d920e145be21cf8acf22577c83cf9016cdd89833 | e95c988f578064830c34708d11b16b4f0e72d468 | /src/calculator.py | 00ca1ab20a12d76f12c26c294ae027ff7dfcfd7b | [] | no_license | shishirajm/date_calculator | 780b002f0183b7fac3719a5f9c4e669909f347e6 | 5e0297a02da400ed20701fc26dea658ee79118a4 | refs/heads/main | 2023-03-11T12:34:15.882215 | 2021-02-27T18:09:09 | 2021-02-27T18:09:09 | 342,792,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from src.date import Date
def get_dates_diff(date1, date2):
try:
log(date1)
log(date2)
d1 = Date(date1)
d2 = Date(date2)
return d1 - d2, ''
except Exception as e:
log(e)
return -1, e
def log(msg):
print(msg)
| [
"shishirajm@gmail.com"
] | shishirajm@gmail.com |
fc9b8add7d7714e6e622faf7435163e9b948f206 | e04455817ed6a9497cb8b661a6d5780f211e4dd7 | /meetup_app/app/scheduler.py | 3aa6acbfbab76a55afdf75eda3a98ae44ec459cd | [] | no_license | smkukorea/meetup | 942dba2f3e302d3dbdc666acada365a88fe788d7 | c5bafd8e66484a6d2f371a91d0f4c88ec55ecc29 | refs/heads/master | 2022-12-13T12:10:51.856093 | 2020-01-15T21:49:46 | 2020-01-15T21:49:46 | 233,226,539 | 0 | 0 | null | 2022-12-08T07:02:47 | 2020-01-11T12:14:04 | HTML | UTF-8 | Python | false | false | 3,700 | py | from app.models import Event
from datetime import datetime, timedelta
class Schedule:
def __init__(self, event):
dates = event.dates.split(",")
self.days = [datetime.strftime(date, "%a") for date in (datetime.strptime(date, "%m/%d/%Y") for date in dates)]
self.dates = [datetime.strftime(dat... | [
"smkukorea@gmail.com"
] | smkukorea@gmail.com |
6a3525a5768ae1cca9acf1b58bac76069208d3a9 | 1de26609eb6a84da6e431425ea76241dc54a270b | /旧的版本/0.76/o2oPrinter.py | 46de58383f53d7025a103c411706110d78c215b4 | [] | no_license | ZUXING/o2oPrinter | de3e56a2a6cdd7632f113f42a5aff6b7f7606f2c | 269a46e6188037c067529129ba5f2b1ca64d7d98 | refs/heads/master | 2022-12-23T06:41:17.348453 | 2020-09-19T15:08:09 | 2020-09-19T15:08:09 | 279,644,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import os
import win32api
import win32event
import win32process
import win32con
import win32print
#Version 0.76
#ChenGuanglin Software Studio & ZUXING
print("Codename:o2oPrinter")
print("在线打印机开始工作")
from win32com.shell.shell import ShellExecuteEx
from win32com.shell import shellcon
recvFilePath = 'o2oPrint\\'
while ... | [
"zuxingv@foxmail.com"
] | zuxingv@foxmail.com |
440d156989c7d14212ee7acec2a615fa1d0d34cc | f75f9c0e7192170a5846c0b726b10e645d5812b7 | /tests/test_models.py | 845a6eaf73b1e3765e21211184bc835c50c73de7 | [
"MIT"
] | permissive | mzbotr/betfair.py | 6feff7250fec38c31ef9c89fc15a057c935d7274 | dca804a4eaf999af54c53589e9559409fae26d6f | refs/heads/master | 2021-01-21T06:02:35.902807 | 2015-06-15T04:05:51 | 2015-06-15T04:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # -*- coding: utf-8 -*-
import pytest
from enum import Enum
from schematics.types import StringType
from betfair.meta.types import EnumType
from betfair.meta.types import ModelType
from betfair.meta.models import BetfairModel
def test_field_inflection():
class FakeModel(BetfairModel):
underscore_separa... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
d4275b4c2da2fb0801bf73f1f333a1a8ad719ed9 | 6bd9d9366351cf2aa57a4fd23d0ed6a56b5270c7 | /Day6Noran.py | 7c4964125902231ac5a73cf92f9c5ccfcd4ad267 | [] | no_license | NoranAB/100daysofcodes | 671f6bfaf5c657f3d779843b5d05a33aa1bf28e0 | c716563f7388ff7cfd2044a0f6097178bc08705b | refs/heads/master | 2020-07-10T10:19:41.417762 | 2019-11-21T05:19:23 | 2019-11-21T05:19:23 | 204,239,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #Example1
x = int(2) #x will be 1
y = int(3.6) # y will be 2
z = int("4") # z will be 3
print (x)
print(y)
print(z)
#Example2
x = float(2) # x will be 1.0
y = float (3.6) # y will be 3.6
z = float ("4") # z will be 4.0
n = float ("4.6") # n will be 4.6
print (x)
print(y)
print(z)
print(n)
#Example3
i = str ("sl") # i... | [
"noranoz41@gmail.com"
] | noranoz41@gmail.com |
f86e5caae131e7fb0503f683c8c5ebdba4847ccf | 2c40670b2f745eeac43c6f0b2c60581c36a30302 | /models/product.py | 4c0758320d0bc7da138e82cbd2aa89399b924b71 | [] | no_license | minsiang97/aroparts | a193beff24677c4ae43614e04d1b997d99014fca | f504017aa0cd2587a50dee1c4eaae39a6c46f515 | refs/heads/master | 2023-02-20T21:34:35.634658 | 2021-01-26T06:36:11 | 2021-01-26T06:36:11 | 321,933,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from models.base_model import BaseModel
from models.category import Category
from models.sub_category import SubCategory
import peewee as pw
class Product(BaseModel):
name=pw.CharField(unique=False, null=False)
chinese_name = pw.CharField(unique=False, null=True)
description_line_1=pw.TextField(null=True)
... | [
"ongminsiang@gmail.com"
] | ongminsiang@gmail.com |
da2379011ed33e44d8e763b226628d29407fa4b1 | 8111f7c7118c04357ff94678f3ec0fa0506337be | /Mysite/static/data/script/mysql_test.py | 0c4fc75e406f1f44e389708b13ae9b5d3a19034c | [] | no_license | Riners/Data-Visualization | 3b7ba0ef0d4aad8d5e97d18d41ebb3b62a65d6d8 | 3c308d06840c8a205afd7b25f186efffe9584403 | refs/heads/master | 2020-03-21T11:12:54.584843 | 2018-06-24T16:50:48 | 2018-06-24T16:50:48 | 138,494,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | import pymysql
pymysql.install_as_MySQLdb()
db = pymysql.connect("193.112.0.249", "root", "Admin@123", "mysite", charset='utf8' )
cursor = db.cursor()
cursor.execute("SELECT VERSION()")
# data = cursor.fetchone()
# city = ['BJ','CD','GZ','HZ','GL','HF','LZ','NC','NJ','SH','SJZ','SZ','TJ','TY','WH','WLMQ','YN'... | [
"920113448@qq.com"
] | 920113448@qq.com |
14c96d4d72ae9dfe1358798816a363a197cb1919 | f8c6ae3401bba7521019a91dec17984a1500670c | /models/imagenet/resnet.py | 0f1e99f68b6cca2af2cf00e9498ecc7716324d78 | [
"MIT"
] | permissive | rs9899/Parsing-R-CNN | a9b10d164ff632d510734156fdcc003b799899f2 | a0c9ed8850abe740eedf8bfc6e1577cc0aa3fc7b | refs/heads/master | 2022-11-18T01:57:53.461316 | 2020-07-20T11:14:58 | 2020-07-20T11:14:58 | 277,079,950 | 0 | 0 | MIT | 2020-07-20T10:38:16 | 2020-07-04T09:34:04 | null | UTF-8 | Python | false | false | 15,079 | py | """
Creates a ResNet Model as defined in:
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. (2015 CVPR).
Deep Residual Learning for Image Recognition.
Copyright (c) Yang Lu, 2017
"""
import torch
import torch.nn as nn
import models.ops as ops
from utils.net import make_norm
class BasicBlock(nn.Module):
expans... | [
"priv@bupt.edu.cn"
] | priv@bupt.edu.cn |
8d635e9d142e94d2d614b952b1484d4895c00490 | 930481737a3dae878d4db0f6ead9e43c710ccb8a | /QAMedicalKG/answer_search.py | 224afe8aebdf0c3643099cbe5a2634355f87bec5 | [] | no_license | zhoujx4/Knowledge-Graph | 9ccd544955d1e69ea7b748d31e9626d5a2928510 | 6759c380f368a915cf292fe90bf6d421e9a427a8 | refs/heads/main | 2023-04-16T21:53:40.759374 | 2021-04-21T10:41:09 | 2021-04-21T10:41:09 | 360,130,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,221 | py | from py2neo import Graph
class AnswerSearcher:
def __init__(self):
self.g = Graph("http://localhost:7474", username="neo4j", password="2012051171id")
self.num_limit = 20
'''执行cypher查询,并返回相应结果'''
def search_main(self, sqls):
final_answers = []
for sql_ in sqls:
q... | [
"zhoujx@gzsendi.cn"
] | zhoujx@gzsendi.cn |
169d1b34052601f7372457060040c76fbb71fe6b | 498d65615aeba1f7399344a32a23514e057fb30e | /decode_verify_jwt.py | 224caf0f4e6b9ae7531dc23017880f0ac6b66eee | [] | no_license | gautamamber/Blog-Serverless-chalice | 54fd128f76a3e918a170225bb49ded0874089a61 | e1735c5bb617bdb9720b5ecf847ea32833d7e5bc | refs/heads/master | 2020-08-04T15:17:44.405145 | 2019-10-02T14:33:32 | 2019-10-02T14:33:32 | 212,181,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | from urllib.request import urlopen
import json
import os
import time
from constant import Constants
from jose import jwk, jwt
from jose.utils import base64url_decode
region = 'us-west-2'
userpool_id = Constants.COGNITO_POOL_ID
app_client_id = Constants.COGNITO_CLIENT
keys_url = 'https://cognito-idp.{}.amazonaws.com/{}... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.