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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
218dc82bd8eed4a2d5859956054fc24b06364e5a | f8b5aafac15f408a48fabf853a918015c927e6fe | /backup/virtualenv/venv27/lib/python2.7/site-packages/heatclient/tests/test_events.py | e94b7eb9702afaf92195edca367bae7b1ce1b5b4 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | # Copyright 2013 IBM Corp.
#
# 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 t... | [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp |
440767a21b71565073fd0d6b7dba539edf3eac57 | b53ddad98306512938ba30f702fbacf50224ce6f | /app/humans.py | 2ba1265c5137da531662edca8ccb19753299ffa0 | [] | no_license | ashwin2802/Pong | 75636b0a5b254532dfaf91c7e7ea57fbf0b4c20a | 0b20aac72ce041bf4b3cca7989c7975118db8d4c | refs/heads/master | 2020-04-27T23:48:45.451493 | 2019-05-06T10:35:28 | 2019-05-06T10:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,235 | py | # 2 player interface
import pygame
# change the name of this module
from app import players as p
import thorpy
from app import pong
def buttons(screen):
# display for when the game gets over
again = thorpy.make_button("Play Again", func=more)
leave = thorpy.make_button("Exit", func=thorpy.functions.quit_... | [
"ashwins@iitk.ac.in"
] | ashwins@iitk.ac.in |
d265d6e6b53562dd40dc8be2a98d8b64d349b945 | 29043f079cc9895f176af3901bfb41ab9bbb266e | /PythonAutotest/data/dataconfig.py | 98c35281066ea5bb7f8fc610fbffa5db5e64e0f3 | [] | no_license | nanyang1981/PythonAutoTest | 036e7fada3ded3da8b2109db20794a761d0325cf | dc5faaf8d4250aa5e4b8bf763daa7ebe785eac9f | refs/heads/主 | 2020-04-05T11:25:10.493463 | 2019-12-02T06:16:24 | 2019-12-02T06:16:24 | 156,834,040 | 0 | 0 | null | 2019-12-02T06:14:59 | 2018-11-09T08:40:52 | Python | UTF-8 | Python | false | false | 2,114 | py | #coding:utf-8
class global_var:
"""docstring for global_var"""
#case_id
Id = "0"
name = "1"
url ="2"
run = "3"
request_way ="4"
header = "5"
case_depend = "6"
data_depand ="7"
field_depand = "8"
data = "9"
expect = "10"
result = "11"
#获取caseid
def get_id():
return global_var.Id
... | [
"noreply@github.com"
] | noreply@github.com |
1112cad995c7f9cfcf9ea20d70efdbb239b37b36 | 2e26bf9c44f349ee308e63e067d93da654daf69d | /projecteuler/euler036.py | 878cb071e730b422a0ee722e5900f8f5af658ac0 | [
"MIT"
] | permissive | RelativeTech/PYTHON_PRAC | 034e44484d63d50a9c4295aa7e1dc63ef786fb37 | 7fa145dece99089706460466a89901e00eef9d28 | refs/heads/master | 2023-06-04T18:59:45.059403 | 2021-06-07T19:40:10 | 2021-06-07T19:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/env python
"""
Solution to Project Euler Problem 36
http://projecteuler.net/
by Apalala <apalala@gmail.com>
(cc) Attribution-ShareAlike
http://creativecommons.org/licenses/by-sa/3.0/
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one mi... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
21679923cf73909b68dce2ba23adc830fd7375d7 | d3a4815a9295fb293b0e123726055e2ec5e55eb5 | /portfolio/migrations/0015_auto_20190904_1951.py | 5186ad1b82b9890cc80f9b58c963f1c9bc84a906 | [] | no_license | azrshrn/second_chance | 475ec18a1f05282fd06307985b72396ef00d3261 | 77c6e364141ba48ca17cbdd6f468eb350bf80051 | refs/heads/master | 2020-07-27T23:29:23.515372 | 2019-09-06T00:07:11 | 2019-09-06T00:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Generated by Django 2.2.4 on 2019-09-04 11:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0014_student_image'),
]
operations = [
migrations.AlterField(
model_name='student',
name='image',
... | [
"rafizan.baharum@canang.com.my"
] | rafizan.baharum@canang.com.my |
767f4f734546d0a8ebd74beecdd9d5c7aa5d3c4c | 06f8dc1db14a288996d425272051fcffec72a133 | /searching/changed_val.py | 8bde94898ffe483b79a84bef2ce80f81dff0016c | [] | no_license | ek169/python_basic | 3b4e645de2c36f78033277718851764aec62e643 | a47ee67d709bafede38b1db951c867e1abbff3c3 | refs/heads/master | 2021-06-20T13:19:18.614177 | 2017-08-06T16:40:16 | 2017-08-06T16:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | def changed_val(n, start_num, changed_index):
the_list = [start_num]
for addition in range(1, n):
the_list.append(start_num+addition)
the_list[changed_index] = float("inf")
print(the_list)
min_index = 0
max_index = n
while min_index < max_index:
mid_point = (min_index + max_i... | [
"ethan@Ethans-MacBook-Pro.local"
] | ethan@Ethans-MacBook-Pro.local |
8d1ab7912a785809077016e666d282153dd9da31 | 426aed70aa6925105f10c7fcb7b611b277bf8b84 | /python/dgl/distributed/__init__.py | 462e347f48493808c907b3d4968a92bfd18ca25f | [
"Apache-2.0"
] | permissive | hengruizhang98/dgl | 0ce7201ca7380482440f031cb8ced6ca0e8c8dc1 | 195f99362d883f8b6d131b70a7868a537e55b786 | refs/heads/master | 2023-06-10T22:21:45.835646 | 2021-04-13T12:29:43 | 2021-04-13T12:29:43 | 336,804,001 | 3 | 0 | Apache-2.0 | 2021-02-07T14:16:20 | 2021-02-07T14:16:20 | null | UTF-8 | Python | false | false | 1,054 | py | """DGL distributed module contains classes and functions to support
distributed graph neural network training and inference in a cluster of
machines.
This includes a few submodules:
* distributed data structures including distributed graph, distributed tensor
and distributed embeddings.
* distributed sampling.
* di... | [
"noreply@github.com"
] | noreply@github.com |
09c66a1fb5fe1704df6f9cd0259fe6e145a0933b | 66b55a267f249ccafbf41760a5175cf36591d8b4 | /models/ResNetModel.py | 71f851604476d33a34601ffa2b57196c76840c93 | [] | no_license | bloodbee/xray_covid_classifier | 01b5a70ebd23dd80186c45a020e375481a9d2c09 | f415cc73c2027201d595f103c34be3317d7d116e | refs/heads/master | 2023-01-12T02:01:31.879022 | 2020-10-28T16:38:08 | 2020-10-28T16:38:08 | 308,076,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import functools
import numpy as np
import tensorflow as tf
from tensorflow.keras import layers
IMG_WIDTH = 96
IMG_HEIGHT = 96
NUM_CLASSES = 3
def make_basic_block_layer(filter_num, blocks, stride=1):
"""
Generate a block layer
... | [
"mathieu.dufour@whereyoulove.com"
] | mathieu.dufour@whereyoulove.com |
15634fe0c34ded37f2cbee48448c88e148eaad5c | 1026408acb01230465ef0f32342923868a38d069 | /mandalart/migrations/0001_initial.py | f3b10db940c564c258fc8edcfd6c9b0dbc182309 | [] | no_license | LikeLionYU/CrossOff | 218e0b81a48bbbac0e017ab003543272144308a8 | e4080e1390c48dea465c0e12a33814b7f9477255 | refs/heads/master | 2023-07-16T04:26:06.139654 | 2021-08-19T07:22:29 | 2021-08-19T07:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | # Generated by Django 3.2 on 2021-08-11 02:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"jiggy0429@gmail.com"
] | jiggy0429@gmail.com |
cd0446776e6544b0a14b27f255e471514670596c | 29045afdeb5410d3a9c86aa7bef6f8d193278429 | /ui_backend.py | df08967a92b84dd011202b36f1676200c0ebc828 | [] | no_license | Vittorio-Veneto-www/StudentManagement | 54f9f8a4971944d406fce3b05f3c528396623fce | 8c3b64141be6f0f826e32dd6e5bd3db330c89e1d | refs/heads/main | 2023-03-28T09:34:49.792444 | 2021-03-18T11:22:46 | 2021-03-18T11:22:46 | 347,447,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,535 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import TextEdit
class ui_backend():
def __init__(self, core):
self.core = core
self.setup()
def setup(self):
import sys
app = QApplication(sys.argv)
import Ui_gui
class gui(QWidge... | [
"wym19pku@pku.edu.cn"
] | wym19pku@pku.edu.cn |
1eef3862c3aba6b11dbe6f4a7645669b1e528eb4 | ea1574e383f4c1ab9eafe9105d275cd24affcce9 | /source/setup.py | a58e6a4bbf7105a2a77831f0d9b6e99cb740a3eb | [
"MIT"
] | permissive | icaroferre/cpp | f046650958a5a444a1a2ed503b93f0e9edd968a8 | 8d1b467aa54b4e93212b266b22919894e262a888 | refs/heads/master | 2021-01-17T21:05:24.594219 | 2016-07-05T01:34:03 | 2016-07-05T01:34:03 | 62,596,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['Calculadora Paypal.py']
DATA_FILES = ['MainMenu.xib', 'Credits.rtf', 'CPP.icns']
OPTIONS = {'argv_emulation': False, 'iconfile': "CPP.icns"}
setup(
app=APP,
data_files=DATA_FILES,... | [
"icaroferre+bitbucket@gmail.com"
] | icaroferre+bitbucket@gmail.com |
a0fbd58ff8e03c75e3d7e45651cc8acdafbef7c1 | 9a1c446134e8a22a2e6856ebb91033db042f508c | /ecommerce/settings.py | b3f8596c22809fc84349fe165f20df5c761a6216 | [] | no_license | Baal89/alessio-ecommerce | fc49f72a80ee81de39154095c482e56be0090047 | 2025549f8eef4cef78f945d6eec22c363b00b1ff | refs/heads/master | 2021-06-30T14:50:09.825723 | 2020-02-13T20:34:54 | 2020-02-13T20:34:54 | 240,336,123 | 0 | 0 | null | 2021-06-10T22:34:24 | 2020-02-13T18:48:59 | Python | UTF-8 | Python | false | false | 4,851 | py | """
Django settings for ecommerce project.
Generated by 'django-admin startproject' using Django 1.11.24.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"ubuntu@ip-172-31-27-76.eu-west-1.compute.internal"
] | ubuntu@ip-172-31-27-76.eu-west-1.compute.internal |
87ce475887f2cf83da859dbedddb876847fa6054 | a5bb6d81fc9cb3ce9105c4ab6505bb23bb629c2d | /pro/urls.py | 07b06676f90d5dd19d4e3734d926b4e1043147c2 | [] | no_license | MengxiQ/django_pro | a19a309e3cbe07a5fc5444b3d58c8eef7f6454a7 | a5145502d2560f488426e13de16b6280a7a51eb9 | refs/heads/master | 2022-11-24T07:48:59.208205 | 2020-07-31T14:23:08 | 2020-07-31T14:23:08 | 282,918,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | """pro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"1486073356@qq.com"
] | 1486073356@qq.com |
8c3b83d33ccb9923cd38f392fa462b54697237c9 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_day_cq_mailer_impl_cq_mailing_service_properties.py | 224a540ecb8cd7059da3fee3c5ac2c652c422627 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,257 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
da5ef632a7cf8fee5a2e5b4c2148620481985735 | 7a0625ef4c271ed9992a736de7bb93215b7013fd | /leetcode70.py | 69d3a74dd79759a429e6c7c53286866920e7b5a1 | [] | no_license | yuchien302/LeetCode | 6576b93c005ea2275646df7b9547c22683d3b45c | c9a53ef2fc1fd1fea7377c3633689fa87601dba6 | refs/heads/master | 2020-12-11T01:42:36.980414 | 2015-12-03T02:53:51 | 2015-12-03T02:53:51 | 36,424,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import unittest
class Solution(object):
def climbStairs(self, n):
"""
:type n: int
:rtype: int
"""
steps = []
steps.append(1)
steps.append(1)
for i in range(2, n+1):
steps.append(steps[i-1] + steps[i-2])
return steps[-1]
class T... | [
"yc2257@cornell.edu"
] | yc2257@cornell.edu |
49331e90d1b732171e5f1743823b1aed48235a45 | eb24536283ecb83d5abeae9c93aa6db2c64867c9 | /HT1.1.py | d94458a7e2639b260ac9560aea9be459304fcbd8 | [] | no_license | OleksandrMoldovan/HomeTaks | d627ee9ad9551bb31c11458ffc496c5d66d1a13d | 7091a9d19a2043c3fcc97d4c515af5e1e55fb705 | refs/heads/master | 2020-07-03T05:49:12.481606 | 2019-08-16T16:52:50 | 2019-08-16T16:52:50 | 201,808,296 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | ##"""First programm"""
##s= 'Nisl scelerisque justo per hac cras purus lectus maecenas litora facilisi potenti.'
##if len(s)%2 == 0:
## print("Symbols amount is chetnoe")
##else: print("Symbols amount is nechetnoe")
"""The 2 program"""
##i = True
##num = str([0,2,4,6,8])
##s1 = input("Enter the value\n")
##while i... | [
"noreply@github.com"
] | noreply@github.com |
f9debb94a35de55c5446f1dc48f3803c62057771 | fdcb35b433d7831ea5a1f8608d2b5487083b281a | /flask_app/main.py | c4dcc1a966a55ced4753c8599d140cdfbd29762b | [] | no_license | aflugel/03_Classification-SQL-OKCupid | 9e6de31d626149fcd5ab70c225b2dcddbc9f5960 | 6c0c4edc745b473d7d1ff9e3480e597e3852674b | refs/heads/master | 2021-04-27T16:26:11.887755 | 2018-02-21T15:15:15 | 2018-02-21T15:15:15 | 122,300,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | from flask import Flask, request, render_template
from py_sports_fan import fan_or_not
# create a flask object
app = Flask(__name__)
# creates an association between the / page and the entry_page function (defaults to GET)
@app.route('/')
def entry_page():
return render_template('index.html')
# creates an associ... | [
"adf52@cornell.edu"
] | adf52@cornell.edu |
b4f1076d330d64ad8f72de8c917dfe66f72f1073 | 70dd1a05828fcb923130c31480d7a3003c4bd3f8 | /10 week/informatics/Массивы/C.py | 15fe3d697d92a437c680d2572efe06f8e36fcb3c | [] | no_license | itagaev/webdev2019 | 69e4c5a019e2f1f1c4de80e69ce16ddcb079068f | e2312d8a85ae066f652975816732d692a2b8416e | refs/heads/master | 2020-04-19T04:15:48.903665 | 2019-07-01T16:54:08 | 2019-07-01T16:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | n = int(input())
arr = [int (x) for x in input().split()]
cnt = 0
for x in arr:
if x > 0:
cnt += 1
print(cnt)
| [
"tagayev.ilias@gmail.com"
] | tagayev.ilias@gmail.com |
6ece7968fbfd6baa43de117e0023ca678eb58097 | c9da595c13dfbdeb8d45dc1f997464b9e4dde3cd | /SW_academy/d2.py | 3e20dd7c24d63349e826a1ad4d26e5e537ef6357 | [] | no_license | SpookyJelly/SSAFY_daily_works | a10cd20bd3bb465860d326a899035cee46766e79 | 479f8d0c3b126d2bd67908470934b208bdce97c5 | refs/heads/main | 2023-06-29T14:40:01.105755 | 2021-08-03T13:29:10 | 2021-08-03T13:29:10 | 329,216,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | import sys
from pprint import pprint
sys.stdin = open("input.txt", "r")
def squ_sum(squ_row):
for j in [0,1,2,9,10,11,18,19,20]:
squ_sum=sum(squ_row[j])+sum(squ_row[j+3])+sum(squ_row[j+6])
if squ_sum != 45:
return False
return True
T = int(input())
sutoku = []
for num in range(... | [
"zang9412@gmail.com"
] | zang9412@gmail.com |
dcd43c82ed320c62fa992c05e7d3c179dd40a3ce | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/Expected/AcceptanceTests/Validation/validation/_configuration.py | 058eb79f711e66e68abbc33d48dc1d80d856909a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"varad.meru@gmail.com"
] | varad.meru@gmail.com |
b7dcd92c3cb2c03e4847d90b529c9dfb0ffa92fe | b8e0a5869f6daca39f86aceda367a3612d138816 | /OneToOne Relationship/otoapp/admin.py | 334284b568b01f7645c8bf8ec1332bb834f8e9da | [] | no_license | AlokRanjanBhoi/Django1.9-Programs | 57b663ae527bd0290d986a41cb8beb3871776f37 | 152a2be339c610303d4e980571fb8bbd1ed6a6b5 | refs/heads/master | 2020-06-24T15:39:41.515218 | 2019-08-13T01:53:48 | 2019-08-13T01:53:48 | 199,003,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.contrib import admin
from .models import Student,Course
class AdminStudent(admin.ModelAdmin):
list_display = ['name', 'email', 'location']
class AdminCourse(admin.ModelAdmin):
list_display = ['cname', 'cost']
admin.site.register(Student,AdminStudent)
admin.site.register(Course, AdminCourse)
| [
"noreply@github.com"
] | noreply@github.com |
6fa02f0df7c08631ec183d19e8f9dc8a7ded9ce0 | c94f647dbab69cae07c3a3ecefef320ab9eabe79 | /ui_element_db.py | 6703a5b36ae01985cb40d5bc2464c6dc82a09709 | [] | no_license | showonlady/ui_test | 571dff58704e84c0c8e89f21d2f0a4c714e46e5e | 2f9e4baad4082144f282f021ee4e1c13abd0d384 | refs/heads/master | 2020-03-16T15:07:52.888776 | 2018-06-28T08:27:51 | 2018-06-28T08:27:51 | 132,729,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | """
This script includes database elements on UI page
"""
import re
import time
import random
import string
import ui_common_method as cm
import ui_login_logout as ll
flash_list = ["yesFlash", "noFlash"]
node_list = ["nodeNumber0", "nodeNumber1"]
EmConsole = random.choice(["yesEmConsole", "noEmConsole"])
password2 = "... | [
"303677365@qq.com"
] | 303677365@qq.com |
9f34f5b128974477ae5748f0ce76f63bbb69eded | bf102145c1873d30b1595483d64ceb94e6ca752d | /scripts/PostFBX.py | cb6a120ff7f04f429798483a5378529e37cc9cec | [] | no_license | maximefauure/mfaure_Houdini_tools | 9a32e35d256bcb70d534724500be3e53ab59df7e | 731837c83acfa39e633a237f2b79be0d7174e279 | refs/heads/master | 2022-02-11T21:05:41.107493 | 2022-02-01T15:49:46 | 2022-02-01T15:49:46 | 142,627,107 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from shutil import copyfile
from hou import *
import os
inPath = hou.pwd().evalParm("sopoutput")
newPath = hou.pwd().evalParm("sopoutputCopy")
#newPath = hou.hscriptExpression("$EXPORT")+"/"+hou.hscriptExpression("$HIPNAME")+"."+str(hou.pwd())+".fbx"
copyfile( inPath, newPath)
| [
"noreply@github.com"
] | noreply@github.com |
8aa0b4016e82d440ca3696056f79e03f23b463be | afddf2a9a26e2a779d293bd7c76bde68769fd537 | /server/transformer.py | 8aa25c6947f1098224f3534e9fc691b713e66981 | [] | no_license | getChan/ADV | 54b5534cfa01dff49143ec0ce053fa397d4b1c6d | 263ada0fd2241abda5ae8a4a7dbb0f13bff51816 | refs/heads/master | 2020-06-21T22:28:38.155235 | 2020-01-15T07:52:21 | 2020-01-15T07:52:21 | 197,566,824 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,380 | py | import tensorflow as tf
import numpy as np
def get_angles(pos, i, d_model):
angle_rates = 1 / np.power(10000, (2 * (i//2)) / np.float32(d_model))
return pos * angle_rates
def positional_encoding(position, d_model):
angle_rads = get_angles(np.arange(position)[:, np.newaxis],
np.a... | [
"9511chn@gmail.com"
] | 9511chn@gmail.com |
d1a77da2f46d84a5e90b64fd9a100a0ab730d597 | 44cf0bda12c8ca392a7000efa709adc2ac2aff42 | /26_다음_이메일_크롤링.py | cb07d2336b10220b005cf68307343167a7d1fd17 | [] | no_license | swj8905/Shinhan_Basic_Course | a3d0ebe9aa12a70f3da56cf78e7eca39c5a92238 | b59ad0eeaa4ef77bee5d41d504ecd76148dbf9f8 | refs/heads/master | 2023-06-03T07:30:24.585194 | 2021-06-29T09:32:02 | 2021-06-29T09:32:02 | 380,967,321 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | from selenium import webdriver
import time
import chromedriver_autoinstaller
chrome_path = chromedriver_autoinstaller.install()
browser = webdriver.Chrome(chrome_path) # 크롬브라우저 실행
browser.get("https://logins.daum.net/accounts/signinform.do?url=https%3A%2F%2Fwww.daum.net%2F")
# 아이디 입력
id = browser.find_element_by_css_s... | [
"swj8905@naver.com"
] | swj8905@naver.com |
77b07559571793c9805201691dbdf8743fc5fc63 | 382cbdf62b6e27875a3428dc01620f210bb648ed | /swmm_run_3.py | a88c7652279abbaf4eb95fb4c9e1ad10844b35b1 | [] | no_license | amcgarity/SWMM_Python3_Wrapper_Jupyter | 683fe27a4176024f04ec38ec848243a0d4a6d762 | d4e61c93f77483b37a6033ec7d82d6885e43e81a | refs/heads/master | 2020-03-17T16:14:20.119138 | 2018-06-14T14:10:28 | 2018-06-14T14:10:28 | 133,741,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | #from swmm_objects import *
from swmm_read_3 import *
from subprocess import call
from datetime import datetime
from random import uniform
def random_interval(lowFract,highFract):
r1 = uniform(lowFract,highFract)
r2 = uniform(lowFract,highFract)
if r1 > r2:
upper = r1
lower = r2
else:
... | [
"amcgarity@swarthmore.edu"
] | amcgarity@swarthmore.edu |
563181a9f9a7fb2d241badd73c4da9d7f41d4760 | 69a1c47ac5e8f60ac0af76dd2dba4a213a48d0f7 | /chapter4/4.9.bstSequences.py | 03b015bd0b39baff6e510a3ada6620a93e0380e1 | [] | no_license | xshirl/ctci | c49c13e46e7df40ed4cf5ea8a12c555970a12129 | 0487b06a4752656bbfabbcd54b83de0765222245 | refs/heads/master | 2023-01-07T01:18:15.284746 | 2020-11-03T20:02:46 | 2020-11-03T20:02:46 | 232,618,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Node:
def __init__(self, data=None, left=None, right=None):
self.data = data
self.left = left
self.right = right
def bst_sequences(bst):
return bst_sequences_partial([], [bst])
def bst_sequences_partial(partial, subtrees):
if not len(subtrees):
return [partial]
... | [
"xshirl525@gmail.com"
] | xshirl525@gmail.com |
4c30c0dd5a347c57e42d14de6205682da94a44cf | 45670a96e4411af073676504c6eb4f0f0eefc1ec | /EquaOpenCV.py | 408aa82596a7586c40f1865902c2e0803a20d9a9 | [
"MIT"
] | permissive | andresgmz/Scripts-Python | c61d86c0e1ed37f53c5552958b543f2c66294af7 | 1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937 | refs/heads/main | 2023-03-22T16:53:36.086794 | 2021-03-10T00:26:22 | 2021-03-10T00:26:22 | 335,092,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
#from matplotlib import pyplot as plt
from tkinter import filedialog
from tkinter import *
root = Tk()
root.withdraw()
root.filename = filedialog.askopenfilename(initialdir = "/",title = "Select file",filetypes = (("all files",".*"),("jpg files"... | [
"andres.gomez.bravo@correounivalle.edu.co"
] | andres.gomez.bravo@correounivalle.edu.co |
8361438a1cee72c2f72855173f80fe01740cc2d8 | 6ab9a3229719f457e4883f8b9c5f1d4c7b349362 | /leetcode/00007_reverse_integer.py | 9db0a0e2296e3e0688f687c37ad5b73c6f853dd8 | [] | no_license | ajmarin/coding | 77c91ee760b3af34db7c45c64f90b23f6f5def16 | 8af901372ade9d3d913f69b1532df36fc9461603 | refs/heads/master | 2022-01-26T09:54:38.068385 | 2022-01-09T11:26:30 | 2022-01-09T11:26:30 | 2,166,262 | 33 | 15 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | class Solution:
def reverse(self, x: int) -> int:
negative = x < 0
x = -x if negative else x
res = 0
while x:
res = res * 10 + (x % 10)
x = x // 10
res = -res if negative else res
return res if -2**31 <= res and res <= 2**31 - 1 else 0 | [
"mistermarin@gmail.com"
] | mistermarin@gmail.com |
a1a3366adedf7c242f677b714d3ecd33ed37a3df | 7a5da9e60df8c7d47ddc17d9d5b79a9959784834 | /asientos.py | b6e30b811213cc772e416950d2a4b216838f1620 | [] | no_license | Angelooger/Tarea_03 | a5984e588625bb10566ebe539c7a63d0dd4358b5 | 7b9109ec78d5027a287f7df4ae9af570a1dd478a | refs/heads/master | 2021-01-21T11:49:09.677054 | 2017-09-06T02:55:44 | 2017-09-06T02:55:44 | 102,023,611 | 0 | 0 | null | 2017-08-31T16:53:21 | 2017-08-31T16:53:21 | null | UTF-8 | Python | false | false | 956 | py | #ecoding:UTF-8
#Autor: Angel Ramírez Martínez
#Descripción: A partir del número de asientos de cada clase se calcula el total a pagar
# Calcula y regresa la variable totalPago que es el total a pagar a partir del número de asientos de cada
# clase que recibe como parámetro.
def calcularPago(asientosA, asientosB, asi... | [
"angelooger@gmail.com"
] | angelooger@gmail.com |
dfd5ae9b430eb29f110dfdbb776162e391f51464 | a9fb35f21d1e53b4504ec0e9a00c48753e1a4713 | /mape/multiagent/scenarios/simple_trajectory.py | 5bcdbfff4105acdd535c6e9080638ec10b678491 | [
"MIT"
] | permissive | Ankur-Deka/Actor-Residual-Critic | a5043c7dbc5d555cd5bff50b08f07cee43c03290 | af1684b2461689d86223392843a23dd735a20862 | refs/heads/master | 2023-07-27T04:04:27.247502 | 2021-08-23T20:49:41 | 2021-08-23T20:49:41 | 379,146,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,766 | py | import numpy as np
from multiagent.core import World, Agent, Landmark
from multiagent.scenario import BaseScenario
from scipy.optimize import linear_sum_assignment
import inspect
class Scenario(BaseScenario):
def __init__(self, num_agents=3, dist_threshold=0.2, arena_size=1, identity_size=0, num_steps=100, diff_re... | [
"ankur.deka@iitg.ac.in"
] | ankur.deka@iitg.ac.in |
069693fc58d3d9423698b08788681418a889b0d2 | b0c59a68cfedceb9a315b0c02da095dee2cfe274 | /bedrock/cli.py | 470755ebc4c175bec88d016ff04279d97294656e | [
"Apache-2.0"
] | permissive | bridgecrew-perf4/bedrock-cli | 2cd5787edd46ab010a397a1abbe520efdf87eb26 | 86040204476ba425e6a9c14aa712fe0572c62605 | refs/heads/main | 2023-03-16T18:45:59.840008 | 2021-01-23T08:31:05 | 2021-01-23T08:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,653 | py | #!/usr/bin/env python3
import argparse
import sys
import os
from simple_term_menu import TerminalMenu
from .terraform import TerraformSpec
from .backend import BackendSpec
from .config import ConfigSpec
from .blueprint import BlueprintSpec
from .export import ExportSpec
from .utils import read_blueprints, ANSIColors
... | [
"bfortuna@odecee.com.au"
] | bfortuna@odecee.com.au |
7dc214ff91e6c8aabfa076b13ce2cc9f62f45f1b | 68d61c4d3f203e071737ed83c16cddd8eb54c40c | /ae.py | bc10b7580f759ff4e6e4372f35428a942a459ec2 | [] | no_license | ani1512/BEproject | f678181926b25e1ff0adb089f768e71e248ee498 | 74ba2fcd5de5a2cfd4908b981b2864ec10f96d84 | refs/heads/master | 2020-05-03T19:18:59.631301 | 2019-04-06T04:58:15 | 2019-04-06T04:58:15 | 178,782,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 6 20:47:58 2019
@author: anish
"""
#Importing the libraries
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.optim as optim
import torch.utils.data
from torch.autograd import Variable
... | [
"reachanish1512@gmail.com"
] | reachanish1512@gmail.com |
bd00c39f5f92b1800350aca88fd20030d117d2bf | 89e7bedfd3bef53e5f55870271fae9a42b5632d9 | /First_Classifier/venv/Lib/site-packages/mne/channels/tests/test_montage.py | e45d7f4a1de3318ef08116e24f7aadce36bca965 | [] | no_license | DavidAssaraf106/PhysioNet | f66e735175373973b96d0432069a33eddaf2340e | 7383001f4cb8c76fd845c85d6d98adf4b8f99ad8 | refs/heads/master | 2023-02-03T11:14:42.388367 | 2020-12-14T12:30:14 | 2020-12-14T12:30:14 | 321,331,444 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,336 | py | # Author: Teon Brooks <teon.brooks@gmail.com>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
from itertools import chain
import os
import os.path as op
import pytest
import numpy as np
from functools import partial
from string import ascii_lowercase
from numpy.testing import (... | [
"david.assaraf@polytechnique.edu"
] | david.assaraf@polytechnique.edu |
a830f20f718e38ba324359312b4619b9b321624f | c120f714c9228129ea80442a145cb6d1e1a2d396 | /student_project/urls.py | 5b4c98c2ac1569ec7b98e63f563553c2743c5f3f | [] | no_license | davidtoled/University_Django_DI | 2b43795c2e0d34a7fd6c2a63f7362da72a5c8ed9 | b51815a14e7b1d5490f927b15ae37e9e7baeb97d | refs/heads/master | 2020-04-11T08:05:25.672626 | 2018-12-13T16:09:21 | 2018-12-13T16:09:21 | 161,631,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """student_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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... | [
"toled@MacBook-Air-de-David.local"
] | toled@MacBook-Air-de-David.local |
ae43abab1843af657c2ecd836b12f255c6edb94c | 5b0375b6cb7e548048f5bc55b72bfa2f4899aa9c | /Base_convertor.py | 86b069e86953614daefbf70b1872aaee9e49ac17 | [] | no_license | pradeep3008k/Base-Converter | edcf2ddcc78c76609c9f20ef80c1aabd07051dbe | df7928f15238dab91da9344c1eeb937c961afd0d | refs/heads/main | 2023-04-05T14:14:28.950404 | 2021-04-16T11:17:14 | 2021-04-16T11:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | from tkinter import *
from tkinter.font import Font
root=Tk()
root.title("Base Convertor")
root.config(bg="black")
root.resizable(0,0)
def get_in():
answer_box.delete(1.0,END)
a=entry1.get()
p=c1.get()
q=c2.get()
p=int(p)
q=int(q)
n=[]
#now append al... | [
"noreply@github.com"
] | noreply@github.com |
2196e999567f8267acc91cd3027a89e14087c8aa | 4453bc9839d3764680122bca020f443a8ae469d7 | /mne_nirs/visualisation/__init__.py | ba77f55ffdf0b571c2b4cc3cd440d31cf4e76aa8 | [] | permissive | NathalieGou/mne-nirs | a6898cfb15e515fe7c2eed2988f3edbc72d9cf50 | 387e34bef41d7cb4103d0901070c1e54e7f0707e | refs/heads/master | 2022-12-12T18:54:36.911035 | 2020-07-06T03:37:42 | 2020-07-06T03:37:42 | 281,263,780 | 0 | 0 | BSD-3-Clause | 2020-07-21T01:23:39 | 2020-07-21T01:23:38 | null | UTF-8 | Python | false | false | 246 | py | """NIRS specific plotting functions."""
# Authors: Robert Luke <mail@robertluke.net>
#
# License: BSD (3-clause)
from ._plot_nirs_source_detector import plot_nirs_source_detector
from._plot_GLM_topo import plot_glm_topo, plot_glm_contrast_topo
| [
"noreply@github.com"
] | noreply@github.com |
662f9c0350fc256ff85edbbf669b85fffdc976ef | 0d215e91f3d5138b28b6dc198eb9a628cd6c54f6 | /D_WPOD/wPOD/synthetic_test_case.py | a6a5fb0c73397a9d354ba810e39c2575e943aa8c | [] | no_license | adaptive-cfd/WABBIT-convergence-test | 5333fa73516242006c15977a297d58c53de129f0 | d23f27c757c18bbefe189efa0e9a0673578dcd4f | refs/heads/master | 2022-05-18T11:18:05.749273 | 2022-05-14T17:23:32 | 2022-05-14T17:23:32 | 132,459,046 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 8 17:04:14 2020
@author: phil
"""
import numpy as np
import matplotlib.pyplot as plt
import random
from wPOD.run_wabbit import *
from wPOD.wPODerror import *
from wPOD.adaption_test import adapt2eps
import wabbit_tools as wt
import matplotlib.pypl... | [
"philipp.l.krah@campus.tu-berlin.de"
] | philipp.l.krah@campus.tu-berlin.de |
37d96d2b75d79d849ea64299a483404a66079779 | 2eb1be0ca87d16db8a0a485a8aa9fab45ebddd83 | /survey_monkey_api/survey_access_test.py | dbdb7947fe45a3f657a5544afca15907df95fa68 | [] | no_license | iu-cewit/survey-analysis | dd7c1a5116e6ff5015b9bf9a7d253839d6d69e5c | ae6cb53e4a5ef2c70c6bb3531ec5b7ff7711c37d | refs/heads/master | 2020-03-27T04:15:48.667605 | 2016-01-30T00:45:59 | 2016-01-30T00:45:59 | 37,379,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # Testing script for survey_monkey_api.py and survey_access.py
# NOTE: Do not copy api key or access token into any python script! Create a
# text file in a different directory with the api key on line 1 and the
# access token on line 2
from survey_access import *
# ########### #
# Definitions #
# ########### #
local... | [
"nmbrodnax@gmail.com"
] | nmbrodnax@gmail.com |
3ff231a500a42b9c35f4b0c8facd9f0a6afed7f3 | 2118d205db795e2a642a6792e51ace24d0587f6b | /stepladder_be/settings.py | da87247ff425bf716fe08a13deb1e4cb0fc590d0 | [] | no_license | moriie/stepladder_be | 6e0b407bd85a2da126b0873630423d57f41bb068 | 0306f67f4b2652e8c23f710199eef81a3e2afe90 | refs/heads/master | 2022-11-16T07:47:57.131785 | 2020-07-10T04:40:39 | 2020-07-10T04:40:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for stepladder_be project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"jwy5140@gmail.com"
] | jwy5140@gmail.com |
d4e471c26256fa51a4adef16552dc24e84c39280 | d4f5752ae6fc61e9e7abb731e5180da947f91d64 | /lib/python2.7/site-packages/humandetection/msg/_RunDetectionActionResult.py | d993acd365b5fbc2d973e78616ab4ee49a394e1c | [] | no_license | TWOEARS/humanDetectionAndTracking | 8ee41db7ded60856eef367c5ab3aec1e2fa836ad | 43a882cf1bc48cba0c08455f6da9bd0e10a33792 | refs/heads/master | 2021-01-17T19:59:39.987669 | 2016-06-17T08:44:22 | 2016-06-17T08:44:22 | 61,358,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,762 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from humandetection/RunDetectionActionResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import humandetection.msg
import genpy
import actionlib_msgs.msg
import std_ms... | [
"ariel.podlubne@laas.fr"
] | ariel.podlubne@laas.fr |
7b5f4303ef58634df3f1b033769fbb877fdb82f5 | 5c992eef5b4a39e7a2522fc0159e0db7e9660d0b | /backend/migrations/versions/4bba7593ce8e_add_channel_table.py | 8ec5cda7645c7c4f763d8835d43737840ed5a588 | [
"Apache-2.0"
] | permissive | ClassesOver/Stories | 3fa628d7a25abb0af97444346c7bbad916d67e2b | 419eb30b1afe053772be5e3e65b0cd1038eb0c81 | refs/heads/main | 2023-03-15T17:16:30.412294 | 2021-03-12T05:49:06 | 2021-03-12T05:49:06 | 313,478,604 | 1 | 0 | Apache-2.0 | 2021-03-12T05:49:07 | 2020-11-17T01:56:20 | TypeScript | UTF-8 | Python | false | false | 1,671 | py | """add channel table
Revision ID: 4bba7593ce8e
Revises: d2f3d6010615
Create Date: 2020-12-25 11:34:21.721511
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4bba7593ce8e'
down_revision = 'd2f3d6010615'
branch_labels = None
depends_on = None
def upgrade():
... | [
"xiangjun.zhao@hand-china.com"
] | xiangjun.zhao@hand-china.com |
303600ff623cfbd44383faae9c4b2835e9251e51 | 9b9512f0f63ddaca315c3eccb63ff19e884a56fa | /submitted/test.444.py | aa1d522ad0a863685e78384feb6341cde7af26ca | [] | no_license | yashton/compiler | d793cf69c668ee68928ab74af70e17c53ffadeef | 40007da3af04a7ee31380ae29e23dcfbb50a1c8d | refs/heads/master | 2020-08-02T15:43:35.181718 | 2019-09-27T23:04:37 | 2019-09-27T23:04:37 | 211,413,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5 | py | s3=1
| [
"ashton@snelgrove.science"
] | ashton@snelgrove.science |
dbcecb5f9e5598e0d6e09537de9e805f9f605cd3 | 2a091ed8c488c9cf4ca410da54021ee162611443 | /src/manage.py | 55e619a6691c140cb28453897121dda8279fecfe | [] | no_license | abdulazizashurov/image-classification | 4f6217f3d8798b8a7cff910677cc12c5d67c607e | fa37abb55f3f154ecaba1eaaf5531d4136237c00 | refs/heads/main | 2023-06-01T15:15:37.213044 | 2021-06-15T12:56:48 | 2021-06-15T12:56:48 | 377,142,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'whatimage.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"abdulazizashurov@MacBook-Pro-Abdulaziz.local"
] | abdulazizashurov@MacBook-Pro-Abdulaziz.local |
e8557c723ca8e95271cf1129f853ab38a0684047 | 123344bdeb4be2086e9eb88640f5f079b42a142c | /app.py | dde447b28afa5fa0df2d56814daea05495b31c32 | [] | no_license | Deelacole2/Mission-to-Mars | 71e3b300a5f3f7e3ffba707082c9d217dbe3ee96 | 84e2f069fc376da5a483a368008ce19086e0440e | refs/heads/main | 2023-03-06T08:08:53.509132 | 2021-02-24T01:32:00 | 2021-02-24T01:32:00 | 339,190,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
from splinter import Browser
import scraping
app = Flask(__name__)
# Use flask_pymongo to set up mongo connection
app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app"
mongo = PyMongo(app)
@app.route("/")
def index():
... | [
"rogers.d.207@gmail.com"
] | rogers.d.207@gmail.com |
12622690a845c89646fbc910f9bb47d9838151f6 | 065e03ebd9674a8455b37e19bb8f49b5aaf53e53 | /env/Scripts/easy_install-3.4-script.py | 6d58c29589aeba5afc0a1fa706c27db5253a61db | [] | no_license | c0o1er/project1 | ce4f169bf3629122f812661447e07b3012fda92f | 9de1c25c3a217604e1e23fa3266ef8baa4e2c6de | refs/heads/master | 2021-01-20T02:18:58.505331 | 2015-01-23T16:50:16 | 2015-01-23T16:50:16 | 29,742,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!C:\py\project1\env\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==5.7','console_scripts','easy_install-3.4'
__requires__ = 'setuptools==5.7'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('setuptools==5.7', 'console_scripts', 'eas... | [
"c0o1er@yandex.ru"
] | c0o1er@yandex.ru |
26455f7f887f002a25abe4aae6cbde984a2d68c6 | 17381d148b86fc4354d1ac0e4062a35215eafd09 | /paiza/C062.py | d97af758a417b3e2440ff2a2c8de5acb6614538a | [] | no_license | worldyone/workspace | 027a93e1f227eb1c10485f6f2082a92bd98710d5 | 1e3fa21e23d6e91268882c9e480b76c4a3c4920f | refs/heads/master | 2023-03-09T01:21:53.402440 | 2022-09-20T14:47:49 | 2022-09-20T14:47:49 | 174,147,113 | 0 | 1 | null | 2023-02-10T22:53:26 | 2019-03-06T13:07:08 | Python | UTF-8 | Python | false | false | 195 | py | cnt = 0
rcnt = 0
m = "melon"
T = int(input())
for t in range(T):
sushi = input()
rcnt -= 1
if sushi == m and rcnt <= 0:
cnt += 1
rcnt = 11
print(cnt)
| [
"amanohikari142857@gmail.com"
] | amanohikari142857@gmail.com |
6704276cc39ff1540758eb4f1f528e233bc1d334 | 13a59e873d1d430d0ae4277d0e18abcce16e6555 | /Python/NumPy-Common-Code-Examples.py | 204375956ff25788b2bc1ff949947c4ec80de62e | [
"MIT"
] | permissive | sethmh82/SethDevelopment | 2dde8d779b50fa0fb9b99384ab37cb03547f595a | 08f3bd22923b652f9d676ffa2af3dc037eed6d73 | refs/heads/main | 2023-02-18T15:19:06.172872 | 2021-01-20T20:49:49 | 2021-01-20T20:49:49 | 323,753,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 30 11:24:29 2020
@author: SethHarden
NumPy PYTHON CODE EXAMPLES
NumPy is used to work with Arrays
NumPy arrays are stored at one continuous place in memory unlike lists, so processes can access and manipulate them very efficiently.
This behavior is called locality of ... | [
"seth@statisticbrain.com"
] | seth@statisticbrain.com |
d18a1393e573de44b9673ab63a566bbcb5a9eb59 | 9feeb0bceecd3103a66feda952ba80656c6823ac | /parking/parking/urls.py | 2f26e21b23d95a00e8f4e4d58667a7e7ea405f46 | [] | no_license | shaswatsunny1998/smart-vehicle-parking | 15e6fd9f2ca6328e46c3fc3ea4a782bc5f415c5e | a7eb6fcdeaf1cb490375462e2584160fd7f0d1f9 | refs/heads/master | 2020-07-10T18:15:00.353543 | 2019-08-25T18:23:31 | 2019-08-25T18:23:31 | 204,332,924 | 0 | 1 | null | 2019-10-01T18:14:12 | 2019-08-25T18:19:26 | CSS | UTF-8 | Python | false | false | 1,622 | py | """parking URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"shaswatsunny1998@gmail.com"
] | shaswatsunny1998@gmail.com |
115c51fd9c556204dad65f7c1306b41270e698eb | d8e102cd238c2ab5ba61941d18c63c68fcd622b1 | /2_import/39_vista.py | eb1ef88c96a3b68ac159a7ee4249be1b552032c5 | [
"MIT"
] | permissive | wanliu2019/SCREEN | 23ab91535d8c8951f39ed3794b1b4ca2d2393e98 | 273c855a8c9d725dddfee4a15f0a586569a93d54 | refs/heads/master | 2022-12-27T00:58:51.125421 | 2020-10-20T13:31:19 | 2020-10-20T13:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | #!/usr/bin/env python2
# SPDX-License-Identifier: MIT
# Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng
from __future__ import print_function
import os
import sys
import argparse
sys.path.append(os.path.join(os.path.dirname(__file__), '../common/'))
from dbconnect import db_connect
fr... | [
"hpratt111@live.com"
] | hpratt111@live.com |
05a9890e98a35acc493208451b4b32da392979be | f65b180989aca03b82fe4ae8e18ac3e6dd79e758 | /pruned_layers.py | ae79e0fc3bf27986147b5049789ec2ac68606461 | [] | no_license | BradyTaylor1996/590Lab | c4425279caecdbcb2ccfbe5abb1d399af420e7b0 | 3e9a7c47130b91d125623988c594274106663d22 | refs/heads/master | 2020-08-05T02:26:18.408054 | 2019-11-05T06:32:41 | 2019-11-05T06:32:41 | 212,361,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import numpy as np
device = "cuda" if torch.cuda.is_available() else "cpu"
class PruneLinear(nn.Module):
def __init__(self, in_features, out_features):
super(PruneLinear, self).__init__()
self.in_features = i... | [
"noreply@github.com"
] | noreply@github.com |
297222d084e2d45a4781c6014ed99b3640926de1 | d88897deb0af9802c205335181c6e0a2f00e1e5b | /localstorage.py | ae6d69d19b4d26f0aa54a44e878ec1b03a58cb64 | [] | no_license | Eclipsium/WhatsappAutoSend | cb8eac2903a901eac6451c1b6e5f0dce081b2b41 | dca040becb38964595688ca9244d0f9c9173675d | refs/heads/master | 2020-04-03T21:56:08.423581 | 2018-10-31T16:39:02 | 2018-10-31T16:39:02 | 155,586,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | # Created by Florent B. - 31.10.2018 15:07
# Stuck page https://stackoverflow.com/questions/46361494/how-to-get-the-localstorage-with-python-and-selenium-webdriver
# PyCharm
# -*- coding: UTF-8 -*-
class LocalStorage:
def __init__(self, driver):
self.driver = driver
def __len__(self):
return ... | [
"eclipsium@yandex.ru"
] | eclipsium@yandex.ru |
8ce541ecbf4ece2e206295682c206ab2cf359db5 | 3a7c89064d0778bce36edccd122fcc71f48f2160 | /systemoversikt/management/commands/system_telle_koblede_brukere.py | c2c36fd703f6de867e02abb83fb936d7a27c6637 | [] | no_license | AndyNor/systemoversikt | 87199bee18346247f8e28e0a506ca849d575b098 | 003c7aa9e4f16dc2f708a46195834cabf55f5024 | refs/heads/master | 2023-08-09T13:36:02.394633 | 2023-08-09T11:07:25 | 2023-08-09T11:07:25 | 218,380,551 | 2 | 0 | null | 2023-03-08T18:47:01 | 2019-10-29T20:47:13 | Python | UTF-8 | Python | false | false | 913 | py | # -*- coding: utf-8 -*-
"""
Hensikten med denne koden er å fikse tilknytning virksomhet for DRIFT-brukere
"""
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from systemoversikt.models import *
from django.db.models import Q
from django.db import transaction
class Comman... | [
"andre.nordbo@gmail.com"
] | andre.nordbo@gmail.com |
77ff9ab3b4d79c4946379a900be2fcb4a29ca7d3 | d4792ed2061380bb23cec6fcd1c18ea2939490ac | /examples/keras_recipes/antirectifier.py | 4798e2df9b4fff6c10b3d5e9854ee727815d9458 | [
"Apache-2.0"
] | permissive | tcglarry/keras-io | 47e813795204a4fc88512c90168d3f81d2aad8aa | 4f26aead10fd238c98d85fbb6a32679923d79c76 | refs/heads/master | 2022-06-09T09:21:50.376337 | 2020-05-07T21:53:26 | 2020-05-07T21:53:26 | 262,175,145 | 2 | 0 | Apache-2.0 | 2020-05-07T22:53:45 | 2020-05-07T22:53:44 | null | UTF-8 | Python | false | false | 3,072 | py | """
Title: Simple custom layer example: Antirectifier
Author: [fchollet](https://twitter.com/fchollet)
Date created: 2016/01/06
Last modified: 2020/04/20
Description: Demonstration of custom layer creation.
"""
"""
## Introduction
This example shows how to create custom layers, using the Antirectifier layer
(original... | [
"francois.chollet@gmail.com"
] | francois.chollet@gmail.com |
511f8c08b677fee19c7d0a8ab8bd0f61ba2d3acb | 25567edcf0e8ab2de3a4140ce14a33fcad1d2173 | /sync_player/player/views.py | 1a1a6c0ba1157f8aa321f1b4b006da56b1f95000 | [] | no_license | St-Ren/sync_youtube_player | f6492b83fd3a7c231a50182807b71aaef8f33c40 | 1353a4a0a008ed6cc0a0ee742c1fb35e94aa5f8d | refs/heads/master | 2021-05-16T14:40:54.986761 | 2018-01-22T16:46:52 | 2018-01-22T16:46:52 | 118,485,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from django.shortcuts import render
from django.http import HttpResponse
def admin_page(request):
f1=open('123456.txt','w');
f1.close();
return render(request,'admin.html')
def guest(request):
return render(request,'guest.html')
# Create your views here.
def get_url(request):
f=open('video_url.txt','r')
return H... | [
"stephanieren1017@gmail.com"
] | stephanieren1017@gmail.com |
44c56b7babb4f9b8f08de5e547e5d173f72309fe | 16303902855d9a3b18b39e46c58567b16d907c02 | /setup.py | b9e8a6224c7cfcccdc1de8c06c6b1bfffbea86ca | [] | no_license | ConstClub/pyconst | 194f2d1f53113dec9a5178b56905c3a5e3892909 | 863fd2c0617d769f392cab4e1bf33555ee8f011c | refs/heads/master | 2021-01-24T16:52:09.458058 | 2019-10-18T08:23:29 | 2019-10-18T08:23:29 | 123,215,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # -*- coding: utf-8 -*-
from setuptools import setup
version = '1.0.0'
setup(
name='pyconstant',
version=version,
keywords='',
description='Const for Python',
long_description=open('README.rst').read(),
url='https://github.com/ConstClub/pyconst',
author='Hackathon',
author_email='... | [
"brightcells@gmail.com"
] | brightcells@gmail.com |
d3ab792418c649c1753fffa158eebaab31b95ab8 | 59a2149e5cb6b1886b52dfa76b46c0e45be45238 | /backend.py | 860a3bdd35161445faebdcfa355eb98ee2074e9b | [] | no_license | n89nanda/APIGateway | 4a88ac1d7a29d5c5c917429b9e1e8378ccd9add8 | 41d429e488120d9e82aab43fb9253914b8acd31c | refs/heads/master | 2021-01-20T15:44:47.403173 | 2017-04-30T02:42:58 | 2017-04-30T02:42:58 | 65,316,456 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | '''
tasks is a dictionary. This can be modifed by the API's defined in app.py
users is a dictionary containing username and password. If a API method in app.py enforces auth,
the username and password must match, as specified here.
Use hashing when storing and transmitting passwords in Production.
'''
tasks = [
... | [
"n89nanda@gmail.com"
] | n89nanda@gmail.com |
bf4d75330289dadfb10db55ccc7cef5e99b6b05c | 7ce03f6c4fc3210607107cb6949557b2ce78129c | /TrackMe/trackapp/urls.py | 6c4be3672eb34e9107cd676c87baab427eb6fee9 | [] | no_license | ianfhunter/media-tracker | a7311d0dd8e22ca95bee109f4fb95b7b31270334 | bd0a5ddd234785c06346de2670af26c6b3802782 | refs/heads/master | 2021-01-23T06:44:34.850197 | 2015-02-26T11:01:00 | 2015-02-26T11:01:00 | 18,011,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # app specific urls
from django.conf.urls import patterns, include, url
from django.core.urlresolvers import reverse
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^search$', 'trackapp.views.search'),
url(r'^add_item', 'trackapp.views.item'),
url(r'^do_add_item', 't... | [
"hunterif@tcd.ie"
] | hunterif@tcd.ie |
2bc5c3b7f00dfa38d5f5b217488400d7f88be85b | 91ef6ab9391c7c78981b6a36a7daa47b48ac582a | /neupy/algorithms/steps/errdiff.py | fec7e685f5e29365892da5ffeead35a2bc97f9a2 | [
"MIT"
] | permissive | stczhc/neupy | f89505011d78b7ade5800b51057c4c1370dea83a | de09f5abd6667824f14806709de2afa1ac5daa09 | refs/heads/master | 2020-12-07T00:45:07.445414 | 2016-06-11T19:00:33 | 2016-06-11T19:00:33 | 58,636,539 | 0 | 1 | null | 2016-05-12T11:42:01 | 2016-05-12T11:42:01 | null | UTF-8 | Python | false | false | 2,809 | py | import theano
from theano.ifelse import ifelse
import numpy as np
from neupy.core.properties import (BoundedProperty,
ProperFractionProperty)
from .base import SingleStepConfigurable
__all__ = ('ErrDiffStepUpdate',)
class ErrDiffStepUpdate(SingleStepConfigurable):
""" This al... | [
"mail@itdxer.com"
] | mail@itdxer.com |
6d1c82a577174ba581dfefe9fd5878004cf1c33d | 05ae2d651e6adbc4cfea04e2ab8a93c0a9e23aff | /core/roof/roof_props.py | d077cb45445b4acd8b5534a71210700108775101 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thunderpwn/building_tool | 932087b2415607b41d3da374da1eb2d5e10dbb3d | 5aa4a476f93ae1b8fd8240439b3272d8cf33a0b1 | refs/heads/master | 2022-04-12T18:59:47.373480 | 2020-04-11T11:31:24 | 2020-04-11T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | import bpy
from bpy.props import EnumProperty, FloatProperty, BoolProperty
class RoofProperty(bpy.types.PropertyGroup):
roof_items = [
("FLAT", "Flat", "", 0),
("GABLE", "Gable", "", 1),
("HIP", "Hip", "", 2),
]
type: EnumProperty(
name="Roof Type",
items=roof_items... | [
"karanjaichungwa@gmail.com"
] | karanjaichungwa@gmail.com |
5b2f84b1db43fd979317f085fd2c94ea27df9706 | 45880503dade0db4e90d65b433a6de75bde459e3 | /webshop/app.py | f1d612b92a8d14cd1a0538ff4102e0bd547ece72 | [] | no_license | Alone2/informatikWebshop | 4111d3f3dd433db6e1f3c12a29472e22459b9a2d | 8313a49952467c7ee5a9b2482b998456d95dd8a3 | refs/heads/master | 2023-05-12T17:27:33.807042 | 2020-09-04T12:41:12 | 2020-09-04T12:41:12 | 275,103,911 | 0 | 0 | null | 2023-05-01T21:48:22 | 2020-06-26T08:00:22 | Python | UTF-8 | Python | false | false | 5,349 | py | from flask import Flask, url_for, abort, render_template, session, request, redirect, Response
import drinksdatabase
import time
import sys
import drinkshtml
import user
import random
app = Flask(__name__)
app.secret_key = "87zihkjnl"
db = None
CATEGORIES = None
@app.route("/", methods=["GET"])
def home():
logged... | [
"alain.sinzig@gmail.com"
] | alain.sinzig@gmail.com |
9a9bf5eb7378ca32ea82743ce72601beede3ada6 | fc9473283775ea6d8fee26d6f546717219517536 | /datavis.py | 8509f632696249400c3ad062ed0477f2ef2d1e8e | [] | no_license | yratnadilla/Final_Project | f6356a27ee0a73f3e797c2dafaa44ee1d579e7a0 | 28143bf01a4ff7d126f16361e843d5f7899462ba | refs/heads/master | 2022-01-22T06:05:07.946670 | 2019-07-24T01:17:20 | 2019-07-24T01:17:20 | 198,052,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sn
df = pd.read_csv('dataset.csv')
# print(df.head())
# print(df.isnull().sum())
# print(len(df))
df = df.dropna(subset=['genre', 'country', 'actors', 'director'])
# print(df.isnull().sum())
# print(len(df))
# pr... | [
"noreply@github.com"
] | noreply@github.com |
cba4cb0cc371d08ed47fec7e5feb685cd700f669 | 53c1eb6604f9e060bd6c9ce84395ab1a38d58f6f | /exercise/codewar/arara.py | cc30d2059afcc4569d4a2a045cf54c4e10176cbe | [] | no_license | turo62/exercise | 543c684ef3dfe138a5f0d6976b7ff0d9c19553f0 | 3d8d8d8a12bb3885b3015eff0032cd977c02957e | refs/heads/master | 2020-04-14T18:10:31.224244 | 2019-01-03T18:10:55 | 2019-01-03T18:10:55 | 164,008,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Returns arara translation of a number. Wrong solution.
def count_arara(n):
val = ""
temp = 0
temp2 = 0
empty = " "
dict = {1 : "anane",
2 : "adak",
3 : "adak anane",
4 : "adak adak",
5 : "adak adak anane",
6 : "adak adak adak",
... | [
"turo62@gmail.com"
] | turo62@gmail.com |
8e7a604701927520b7bdf8740796cd701ee2f8ff | 5af41887d018111c453096ad74b4cbb88fc18850 | /figures_paper_colored.py | c1024ff913c43a301bb3de7b1ac47e1305804dbb | [
"MIT"
] | permissive | graebnerc/Beyond_Equilibrium | 16301237d42fde8793a91208dee62176b48e32a5 | 31c7b05cdbf7ae3d188eec9c68ccdd74ef16ced0 | refs/heads/master | 2021-01-20T01:12:10.476836 | 2017-03-31T18:33:02 | 2017-03-31T18:33:02 | 77,066,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291,499 | py | """
This file creates all the figures for the manuscript:
"Beyond Equilibrium: Revisiting Two-Sided Markets from an Agent-Based Modeling Perspective"
submitted to the International Journal of Computational Economics and Econometrics.
Authors: Torsten Heinrich and Claudius Graebner
Emails: torsten.heinrich@uni-bremen.d... | [
"noreply@github.com"
] | noreply@github.com |
329443ddbbbd6a27409839e21a3f76659d95e0c2 | b114b48e52e50932788d4ad11525e0f2376836ff | /entry.py | 5e61bd248686d80fc8a1a3c364af72c74384eb13 | [] | no_license | necrox87/python-gtk3-demos | 7a94eaf27f6680f6506c89d3b22bf6ed86c8c33d | 8f1723157baa835236f53fe196db5eedf66c47c6 | refs/heads/master | 2021-01-25T05:27:58.632541 | 2015-08-03T17:27:12 | 2015-08-03T17:27:12 | 40,137,093 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | from gi.repository import Gtk, GObject
class EntryWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Entry Demo")
self.set_size_request(200, 100)
self.timeout_id = None
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
self.add(vbox)
... | [
"necrox87@gmail.com"
] | necrox87@gmail.com |
35635eb89faf27aaf6b222d5aa9191fa76110101 | 68f58451b880b04f9a37fc0ee5ffe986ad7694ea | /qwer/main.py | ba37c21adbd403b36b58853d1fa5194033899af7 | [] | no_license | ekisu/qwer | 97c8f544daf6847830dd26a9de9f70bcb54abbe5 | 8de9fc79e2c45ed4e170965f55d713e37ab1e7ce | refs/heads/master | 2023-06-16T08:25:40.701502 | 2021-07-13T04:48:38 | 2021-07-13T04:48:38 | 383,639,809 | 0 | 0 | null | 2021-07-13T04:38:03 | 2021-07-07T01:25:03 | Python | UTF-8 | Python | false | false | 4,073 | py | import discord
import yaml
from sqlalchemy.orm.session import sessionmaker
from qwer.database.engine import engine
from qwer.domain.entities.command import Command
from qwer.repositories.command import CommandRepository
from qwer.services.domain.command_executor import CommandExecutor
from qwer.services.domain.command... | [
"dts.ramon@gmail.com"
] | dts.ramon@gmail.com |
5fb9b865de31a357778b27aafadd824b0a3980bb | d5bcb615aca1786a97ce3877ceb5a00f727202a4 | /GVF.py | 2044ebb46155c2ab46bb2da3c2c08191d10beb6f | [] | no_license | MDisyak/Robot-Module-3--Horde | 5ad2be4e0776dd86aecb9fe56a76a48298b03a86 | 4fa10a6ae4deee5ef4c44e909e8b8d3e831ce10a | refs/heads/master | 2021-01-20T16:51:05.266949 | 2017-02-25T17:37:46 | 2017-02-25T17:37:46 | 82,833,205 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,779 | py | #Written by Michael Disyak - Feb 2017
#This class represents a general value function and has the ability to
# recieve updates to relevant incoming data streams and learn using TD(lambda) and GTD(lambda) algorithms
# This class is designed to be used in conjunction with the Plotter class and a control file that implem... | [
"michaeldisyak@Michaels-MacBook-Pro.local"
] | michaeldisyak@Michaels-MacBook-Pro.local |
c05080c8abe46893afb77316facf9fc5ca7fa58b | 8dae7f62bd396c5ecd053aebc9fd929fe07e97b5 | /bfs_dfs/boj_2206.py | 85566bd789af8e1657914e7528c7f1bd4b658ce1 | [] | no_license | Donsworkout/boj_algorithm_python | 5bcc1fee5d12a516aea40db316dffccfa3f534b5 | bd26490c0c5b74ee4cacf687ece4555dc0a0a223 | refs/heads/master | 2020-04-14T18:55:11.022105 | 2019-10-12T13:27:38 | 2019-10-12T13:27:38 | 164,037,870 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 2 14:23:44 2019
@author: donsdev
"""
import collections
dir_1 = [(1,0),(0,1),(-1,0),(0,-1)]
def possible(a,b):
if a < n and a >= 0 and b < m and b >= 0:
return True
else:
return False
def BFS():
cnt = 0
wh... | [
"dickings@likelion.org"
] | dickings@likelion.org |
cf77ca57e50183b8944759fb05b138f277ae54d2 | 684b7bbbaa35b1e3dcbb4538b52c66036854c47a | /helper.py | ffc1c117bad421dc5afb89144f29e2977c3ad0af | [] | no_license | Danco74c/anomaly_detect | d2eca9e4305d7f138f5f71631caf9060545d28ef | 513529955032f58290828c53448b47a21de3c982 | refs/heads/master | 2023-01-14T03:18:23.683916 | 2020-11-22T13:34:25 | 2020-11-22T13:34:25 | 305,708,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | from elasticsearch import Elasticsearch
from requests.auth import HTTPBasicAuth
import time
import datetime
import requests
import json
import logging
#aws packages
import boto3
from botocore.exceptions import ClientError
#params
import params
def upload_file(file_name, bucket, object_name=None):
# If S3 object_... | [
"dan@terasky.com"
] | dan@terasky.com |
8b614bb28d06397b323f44585579cf6517a0d577 | 34a95dd5bf5c1339d6a1ba55a5c8085e62152bac | /quantumlounge/http/usermanager/tests/test_login_handler.py | b5397b5198221f8a24d58731b816734e1136e29b | [] | no_license | mrtopf/QuantumLounge | fa082fd34bad54a9ed3dfdcd358a57590d43bfcc | ce9854dc47e7a07c3b59a165c10ee8da61d05db4 | refs/heads/master | 2021-01-19T14:32:50.048076 | 2011-09-29T10:27:10 | 2011-09-29T10:27:10 | 838,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | import simplejson
def test_login(um_client):
r = um_client.post("/api/1/users/login", data={'username': 'mrtopf', 'password' : 'foobar'})
assert r.headers['Content-Type'] == "application/json"
assert r.status == "200 OK"
d = simplejson.loads(r.data)
assert d['username'] == "mrtopf"
def test_login_... | [
"mrtopf@gmail.com"
] | mrtopf@gmail.com |
942af0a44028309d932ff8d33a7de45e4b43c6a4 | e08c5b135d5658a9b694d7db1f587fd980e0bbf3 | /tests/models/model_compare.py | d447cfca365e1bdb2f787a9229da447b8ac8a699 | [] | no_license | karopastal/signal_generator | 7a88ecb90abe5bef06b697f6545451fa5aa7a117 | ec3890622e7ae37393d526a6928c43b3927bb953 | refs/heads/master | 2022-12-10T18:39:21.576894 | 2020-12-15T09:16:04 | 2020-12-15T09:16:04 | 202,517,783 | 3 | 0 | null | 2022-12-08T05:24:44 | 2019-08-15T09:58:21 | Python | UTF-8 | Python | false | false | 2,105 | py | from src.models.deep_ae import DeepAutoencoder
from src.models.sparse_ae_v1 import SparseAutoencoderV1
from src.models.sparse_ae_v2 import SparseAutoencoderV2
from src.models.conv_ae import ConvAutoencoder
from src.models.conv_l1_ae import ConvL1Autoencoder
from src.models.conv_kl_ae import ConvKLAutoencoder
def eval... | [
"tpaskaro@gmail.com"
] | tpaskaro@gmail.com |
3a57437b0409c042bd593844cec953414f2ccc84 | 958ed21b00b2c1961ad7602aa41d0fc0ea98cd9b | /nagios_srv/check_quota.py | 980ad3b4f0149322fd264f2136d42763b37bc51a | [] | no_license | kevmck/IT610_final | ade86924e7d7582f0aa75e09532498cee1221d76 | 0df2dab102cc55fb3982aab206bd17f3369abc83 | refs/heads/master | 2021-08-31T10:59:30.461456 | 2017-12-21T04:03:45 | 2017-12-21T04:03:45 | 114,278,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/python
import os,sys
inp = os.popen("sudo repquota / | grep ubuntu").read()
inp = inp.split(" ")
inp = list(filter(lambda x: x!= '', inp))
current = int(inp[2])
softLimit = int(inp[3])
hardLimit = int(inp[4])
if current < softLimit:
print "User quota OK - currently at " + str(current/hardLimit) + "%... | [
"ubuntu@ip-172-31-44-48.us-east-2.compute.internal"
] | ubuntu@ip-172-31-44-48.us-east-2.compute.internal |
4b596086801cd7ff89f1eff1809dd6adf92880e4 | 9438b792cc2ce12d77c32551874de7b0d81f6109 | /Basics/slicing.py | f7a477cd4ccca3ca716cc9a98f9de73e3e1a19bb | [] | no_license | Mondiegus/Python_learning | cfd90672b412cddb28acdf609ee7be1992a9b13e | 32ab963a905973beeee4050e922ab861e3f904d8 | refs/heads/master | 2021-07-25T04:40:18.891139 | 2020-09-27T14:52:12 | 2020-09-27T14:52:12 | 220,710,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | # tupl = (0, 1, 2, 3)
# lst = [2, 3, 4, 5]
# s = set()
# s.update(tupl[::2], lst[::2])
#
# print(s)
INPUT = [
('Sepal length', 'Sepal width', 'Petal length', 'Petal width', 'Species'),
(5.8, 2.7, 5.1, 1.9, 'virginica'),
(5.1, 3.5, 1.4, 0.2, 'setosa'),
(5.7, 2.8, 4.1, 1.3, 'versicolor'),
... | [
"maciej2.jarosz@aptiv.com"
] | maciej2.jarosz@aptiv.com |
7b05633136ef3baae96c5d6c6c5d28b77d91cb51 | ddfffd3253314855b57c8d7694a0d9039ef8602c | /venv/Scripts/scapy-script.py | 45cae9eca7172e62cde242126d6e75c2130f9840 | [] | no_license | pentestcave/Automation-Tooling | 56389548f90da98764e0b6053ea4801cdb9de417 | 2427b4adbadf8824557da8050d5d4cfa1500b316 | refs/heads/main | 2023-03-06T13:27:00.404120 | 2021-02-08T07:23:29 | 2021-02-08T07:23:29 | 336,987,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!K:\Trainings\Udemy\ZSecurity\Python\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'scapy==2.4.4','console_scripts','scapy'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'scapy==2.4.4'
try:
from importlib.metadata import distribution
except ImportError:
try:
... | [
"solutionvaults@gmail.com"
] | solutionvaults@gmail.com |
b4271e6c5cdb0fabe8dc599741b1e6287210b0aa | 16eba4e87e737463bb8b2bbbeaab1947c24e64a1 | /tree.py | 311135eca36475701430a14a298d99ebf9993292 | [] | no_license | agwe11/Summary | a33e16b7cae989490ef464a7ae2dd61e6effeb81 | 1afa8ad9d4378e36d1812cf1a29696126fa249fd | refs/heads/master | 2020-12-08T15:02:48.741545 | 2020-01-30T18:19:28 | 2020-01-30T18:19:28 | 233,011,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | import json
ID = 2
...: output = set()
...: output_list = []
...: for i in temp_list:
...:
...: output.add(i['desc'])
...: for k in output:
...: output_list.append({'id':ID,'name':k,'parent':1})
...: ID += 1
...: output = set()
...: for i in ... | [
"agwe13@gmail.com"
] | agwe13@gmail.com |
0848ebf005f8452dfbc06816dd99a4d3e9072818 | eaa1cba99caa2943ece4c5d9b8b0b94257b1183d | /lib/config/default.py | 2aa1d090f62ddae6135a4140662c2cde6820574d | [
"BSD-3-Clause",
"MIT"
] | permissive | hongrui16/naic2020_B | 99c53b3e8e3431f5e87e26218a21c1a6d93a5d3d | 9321bdd19e7d2d47ac9c711eb8437cd364e25f44 | refs/heads/master | 2022-12-29T17:23:42.666828 | 2020-10-19T06:49:30 | 2020-10-19T06:49:30 | 305,239,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py |
# ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Ke Sun (sunk@mail.ustc.edu.cn)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future... | [
"hongrui_hust@foxmail.com"
] | hongrui_hust@foxmail.com |
5b5a8d57df84ad3ed367fc75af98e271c0cd1b50 | d79b2467821bf39ab08034c2ff709a23500ad51d | /profiles/models.py | e1a5a1a6509938c9e94cacbc787417f3b09eaddf | [] | no_license | arfin97/Programmers-Practice-Arena-Training-Manager | b0a67a0f8336a3906ff2d1d0d27ea0335eab9e48 | 618e5f77b67f98ff897497e3d2034d36b699a942 | refs/heads/master | 2022-08-04T18:12:19.768728 | 2019-06-01T15:46:22 | 2019-06-01T15:46:22 | 265,854,372 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | from django.db import models
from django.contrib import auth
# Create your models here.
class User(auth.models.User, auth.models.PermissionsMixin):
def __str__(self):
return self.username
# Incomplete
# class Profile(models.Model):
# name = models.CharField(max_length = 100)
# varsity_id = models.... | [
"arfin97@gmail.com"
] | arfin97@gmail.com |
e8d244e1575403819544217a2d429d5ef5a0d1af | 77dcf5ebad9512843742741c20cd412972d3261d | /alien.py | 83eda05822e131264b074b9f2c51b8590a2cbc4c | [] | no_license | crystalDf/Python-Crash-Course-2nd-Edition-Chapter-06-Dictionaries | 5742236d071e16cbb672be7f010f9fbc82033c06 | cc602b56134d63b6baf286e718daf08a2955967c | refs/heads/master | 2023-06-03T09:47:26.659353 | 2021-06-20T12:55:09 | 2021-06-20T12:55:09 | 378,645,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | alien_0 = {'color': 'green', 'points': 5}
print(alien_0['color'])
print(alien_0['points'])
new_points = alien_0['points']
print(f"You just earned {new_points} points!")
print(alien_0)
alien_0['x_position'] = 0
alien_0['y_position'] = 25
print(alien_0)
alien_0 = {}
alien_0['color'] = 'green'
alien_0['points'] = 5... | [
"chendong333@gmail.com"
] | chendong333@gmail.com |
5e71bec9886510fc4c8975a8aa88fc9b8851cd4b | 0c0ca4e80c479247e501ff3dc21ea45809a7296a | /text/new_search.py | bb1f0e8aba7feec139ab5fa1973ea1a3ce50f118 | [
"BSD-3-Clause"
] | permissive | jzhangg85/naturaladversary | ffbed46bb80511f22eff3eb6f076dca62111b3dc | c5599089397612c2122b379abbd6b593e1656836 | refs/heads/master | 2020-03-14T15:05:55.416004 | 2018-05-10T03:58:47 | 2018-05-10T03:58:47 | 131,668,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,826 | py | import argparse
import os
import time
import math
import numpy as np
import random
import sys
import json
import torch.utils.data
import pickle as pkl
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
from search import search, search_fast
from utils i... | [
"russellkunes@rk.qdslie5323pe1ipb1uf0kzpmof.xx.internal.cloudapp.net"
] | russellkunes@rk.qdslie5323pe1ipb1uf0kzpmof.xx.internal.cloudapp.net |
85314157ea8f32c920f1fc5a8c720fd6b98a0d0f | 761d7cd88c48d19eed1e8db124ed2ed8b4d1def8 | /Chapter-1/videocapture.py | 65f0a7a359aab95d54c32923f37150b2cb12b120 | [] | no_license | Keshab23/Computer-Vision | 328db481a27e14d4a896e6b2b57d5f185e29d0b4 | 045005472fcf31db9f490573b407001ed4f4f6b2 | refs/heads/master | 2020-04-11T13:33:59.028706 | 2018-12-14T17:52:59 | 2018-12-14T17:52:59 | 161,821,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import cv2
capture = cv2.VideoCapture(0)
while True:
has_frame, frame = capture.read()
if not has_frame:
Print('Can\'t get frame')
break
cv2.imshow('frame', frame)
key = cv2.waitKey(3)
if key == 27:
print('Pressed Esc')
break
capture.release()
cv2.destroyAllWindows() | [
"skeshabkishor@gmail.com"
] | skeshabkishor@gmail.com |
b705d279be571c6223d3c70e07177e8cb984cc43 | e13cba8d70f72307f01bce464e4b7a5622de9732 | /mdgen/bin/mdgen | 0cc87b33c82b23a4f2e3e313afd7cf9ae4145aa4 | [] | no_license | bennythejudge/learn_more_python_the_hard_way | ec3e1e60a1297eebf94021de6c8155168c18b63c | 1590ede19dae865afc3305b15212e3d0d2865a73 | refs/heads/master | 2021-01-05T08:59:08.912191 | 2017-08-14T22:19:55 | 2017-08-14T22:19:55 | 99,515,509 | 0 | 0 | null | 2018-10-13T20:18:03 | 2017-08-06T21:57:21 | Python | UTF-8 | Python | false | false | 627 | #!/usr/bin/env python
import sys
from mdgen import utils
# get the source directory from args
source = sys.argv[1]
# get the target directory
target = sys.argv[2]
# traverse and build a file list
files = utils.traverse_directories(source)
#print files
targets = utils.discover_md_files(source, target, files)
#print ... | [
"logube@gmail.com"
] | logube@gmail.com | |
5108d4d332d26cbb0746600009754a25e9e21d49 | 9f9fd635037f4dcbc6a17f255d3f8c01cc8860be | /168206229/4.py | a1465a66ed57550dfad9c6f8766d7caf6cce5004 | [] | no_license | 1846169568/168206 | 78f8418e16050c6089544e741f471f2d47d79fda | ef940420094532149ce2c8b5666e2c4649db0b13 | refs/heads/master | 2022-04-30T13:32:39.022850 | 2022-03-21T02:42:12 | 2022-03-21T02:42:12 | 158,561,843 | 2 | 0 | null | 2018-11-21T14:38:33 | 2018-11-21T14:38:33 | null | UTF-8 | Python | false | false | 470 | py | # 选择排序
def getmin(arr):
min = arr[0];
min_index = 0;
for i in range(0,len(arr)):
if arr[i]<min:
min = arr[i]
min_index = i
return min_index
def selectSort(arr):
newArr = [];
for i in range(0,len(arr)):
min = getmin(arr);
newArr.append(arr.pop(min... | [
"noreply@github.com"
] | noreply@github.com |
8af023f96f2067d2dd3d5b9b74c787c13f12de53 | c37aface4bbc3208ab968e79129b33dde1eb61fd | /backend/budget/serializers.py | 072d4849456304f6108dd022d2616fec30ee51d3 | [] | no_license | B-Barnett/BudgetApp | 0ec9774b32279c497400baba92043083e183d3d3 | fc741c4989dd078919e576723988c0342e869263 | refs/heads/main | 2023-04-11T21:29:56.735509 | 2021-05-14T02:38:06 | 2021-05-14T02:38:06 | 365,803,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,004 | py | from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from .models import User, Budget
import bcrypt
class UserSerializer(serializers.ModelSerializer):
email = serializers.EmailField(
required=True,
validators=[UniqueValidator(queryset=User.objects.all())]
... | [
"bbarnett672017@gmail.com"
] | bbarnett672017@gmail.com |
0ccbf4fdb4237ba178830f626e1ceb303750bbef | 955b59c11168fde60b04f8d040dbae808ec7b92f | /node_modules/chokidar/node_modules/fsevents/build/config.gypi | cf753144146feb1769a2980597e89b712424e5e5 | [
"MIT"
] | permissive | mesquitadev/sisac-image | 1de5f80c7c39c0319b8d031314e0a2380f292f01 | fd8fedf2fcb8d85c2720490fefc61198c65e4110 | refs/heads/main | 2023-08-04T17:17:34.501227 | 2021-09-15T02:05:00 | 2021-09-15T02:05:00 | 393,122,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"mesquitadev@gmail.com"
] | mesquitadev@gmail.com |
9e416dd9d02fb2dfe9f230adaee649b8bf5ab6d7 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenMiniMembersHuobanCreateModel.py | e1ea8e7fdf3f890762367a9dcafff368584a3256 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,430 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniMembersHuobanCreateModel(object):
def __init__(self):
self._domain_account = None
self._login_id = None
self._operate_app_id = None
self._type = None... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
ab443ab24b7f89149ef4fcfb7e441860e9d2030c | 5261e3c72259991fbdb9737c4c764eb0686860d3 | /tests/test_docs/test_cli_commands.py | 47dcb09ac7d77549be4329b7f7f7d7f6f3a6308f | [
"Apache-2.0"
] | permissive | eorituz/agents-aea | 45dfb9729718421290c71da91ac4c51f9cc6a608 | 197451196728141a27ec73fd8210c05cb74501f7 | refs/heads/main | 2023-03-24T02:40:27.132664 | 2021-03-23T14:42:58 | 2021-03-23T14:42:58 | 350,744,268 | 0 | 0 | Apache-2.0 | 2021-03-23T14:40:13 | 2021-03-23T14:32:29 | null | UTF-8 | Python | false | false | 2,632 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | [
"marco.favorito@gmail.com"
] | marco.favorito@gmail.com |
faf415b0f474130a3aa5a5eb92d2456426dacaae | 3c79e914d4b379588344151fbd50eb4ac24ce566 | /academic/apps/publishing/models.py | 922a0120019067436e294c22e4fc2d40d4f8098c | [
"BSD-2-Clause"
] | permissive | phretor/django-academic | e58813b7159504c3cb53261f229015351d7a3075 | 864452238056e07056990479396e8446a1bad086 | refs/heads/master | 2020-05-20T13:08:15.230625 | 2012-07-01T10:37:43 | 2012-07-01T10:37:43 | 4,102,703 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,958 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.validators import RegexValidator
from django.template.defaultfilters import slugify
from django_countries.fields import CountryField
from model_utils.models import InheritanceCastModel
from filebrowser.fields import F... | [
"federico.maggi@gmail.com"
] | federico.maggi@gmail.com |
83211c972ed1f41b2f507e538f5004ce2ada03e6 | 9ad30e579b1a83a5dcf843a54ecd9f772950d9b9 | /app/main/forms.py | b411c368966f56982703c828ba66bd4c81dd34a5 | [
"MIT"
] | permissive | dimitri-yatsenko/pipecontrol | 113319c2116c232db558f4db0b3cb90df1f631ab | a8d237e58621db40dde9abbe05f30a283ac42436 | refs/heads/master | 2020-12-03T06:40:29.649985 | 2017-06-28T22:13:58 | 2017-06-28T22:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from .views import session
from wtforms import Form, BooleanField, StringField, PasswordField, validators, SelectField, IntegerField
from ..schemata import experiment
class UserForm(Form):
persons = experiment.Person().fetch('username')
user = SelectField(u"User", [validators.DataRequired()], choices=[(f, f)... | [
"sinz@bcm.edu"
] | sinz@bcm.edu |
c2d04232f2fee8000f273195abf68513597cf3d1 | 85b95c5396b972872c818277ae2732ed1c2361b3 | /SpecialSprites/MousePointer.py | ccfe3019888008caf456638716c103b27b434939 | [] | no_license | mikolka9144/PixCraft_PyGame | 36f7f19f7044eb5dd7ba6844455175daa805570f | 307a5ef90677b68d37e9a214fcaf97157af2977b | refs/heads/master | 2023-02-06T10:16:36.307593 | 2020-12-28T21:51:51 | 2020-12-28T21:51:51 | 325,005,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | import math
import pygame
from pygame import Rect
from pygame.math import Vector2
import Config
import StaticBlocksDescriptions as blocks_types
from SpecialSprites import MouseSprite
from SpecialSprites.SpecialSprite import SpecialSprite
from Sprites.Block import Block
class MousePointer(SpecialSprite):
def __i... | [
"mikolajchajewski@gmail.com"
] | mikolajchajewski@gmail.com |
5c0d778ddc4c3a86b2887c281d5ed86ab79d3ca9 | 93ebbfb7f946fe36975f5e9e10f5154c1cb870b0 | /bin/client_config.py | dc6d92ed2ed4168aa8fea716791da4d22e708706 | [] | no_license | Gatar/Swiadectwomat | ba23ddaa1a747d6622cf332c608980ddbd6ab755 | 504a02b659d80be74168c004b385db56576207ce | refs/heads/master | 2020-03-22T19:44:34.760832 | 2018-07-10T20:23:07 | 2018-07-10T20:23:07 | 140,547,818 | 0 | 0 | null | 2018-07-11T08:48:47 | 2018-07-11T08:48:47 | null | UTF-8 | Python | false | false | 210 | py | class ClientConfig(object):
PUBLIC_KEY = 'None'
APP_NAME = 'Swiadectwomat'
COMPANY_NAME = 'bisingir'
UPDATE_URLS = ['https://github.com/bisingir/Swiadectwomat.git']
MAX_DOWNLOAD_RETRIES = 3
| [
"bisingir@o2.pl"
] | bisingir@o2.pl |
ec48671ee7befd20789b608a4d45177832297995 | 191fd04cfe934d13203bc5473de181314999d5dc | /trq.py | 796b4324c5d61d177dfcdee5e6f3be91f95a990f | [] | no_license | sammyyadav/Fun_with_program | 2f3c78ee248c65334210876687e01e88dd1a0609 | fe6293841ed908f5cd8da4bf7407c5448daf402e | refs/heads/main | 2023-02-24T13:22:03.041650 | 2021-01-30T16:19:29 | 2021-01-30T16:19:29 | 334,456,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,718 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'trq.ui'
#
# Created by: PyQt4 UI code generator 4.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
... | [
"noreply@github.com"
] | noreply@github.com |
274dd5dc24ac046e829d22d694c1c7e7242966a5 | b3ec2fde2c9face5387051701a706fb2475c3578 | /tests/test_pymusicbrainz.py | e75b281d015c5e1579720402de61e81e0e7f85c5 | [
"BSD-3-Clause"
] | permissive | ibmibmibm/pymusicbrainz | 43f457387c4d4e0ea4e3ff87520e08e8ae63e858 | 5e130075aefe37bb0f43b89d123b3b37cbc26ab7 | refs/heads/master | 2021-01-06T20:18:34.244156 | 2020-02-18T22:02:34 | 2020-02-28T11:42:11 | 241,477,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from pymusicbrainz import __version__
def test_version():
assert __version__ == "0.1.0"
| [
"ibmibmibm.tw@gmail.com"
] | ibmibmibm.tw@gmail.com |
ed5be681e86337d9e93da62dc5b4b4cd79708c99 | 6d73534da3f50eca8eb4e5f56f7d8c644f633d56 | /app/tests/test_commands.py | bef8cda988c922e06b39a5461ef71c8629aaa269 | [
"MIT"
] | permissive | victorfmarques/Sled | 5ef79dbafa1c4383302ddacd03f173be157535a7 | 08f62f3ed7e34acad2d7a3b368c59d1c22ed9a1e | refs/heads/master | 2022-12-04T07:44:11.356672 | 2020-08-25T00:38:15 | 2020-08-25T00:38:15 | 288,525,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from unittest.mock import patch
from django.test import TestCase
from django.core.management import call_command
from django.db.utils import OperationalError
class CommandTestCase(TestCase):
""" Test command features """
def test_wait_for_db_ready(self):
""" Test the database connection """
... | [
"victorfmarques@outlook.com"
] | victorfmarques@outlook.com |
72ba6c385460dab2b1036368b0325f806107877f | fe6775ca8c5b42710785e3a923974ae079f92c8f | /秋招/电信/3.py | 05b38997f944a3eb85cdd29b02167a6d0624197c | [] | no_license | AiZhanghan/Leetcode | 41bda6676fa1a25fa19e393553c1148ed51fdf72 | 101bce2fac8b188a4eb2f5e017293d21ad0ecb21 | refs/heads/master | 2021-06-28T10:48:07.865968 | 2020-11-20T09:45:15 | 2020-11-20T09:45:15 | 188,155,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | class Solution:
def func(self, nums):
"""
动态规划
Args:
nums: list[int]
Return:
int
"""
dp = [[0 for _ in range(2)] for _ in range(len(nums))]
dp[0][1] = nums[0]
for i in range(1, len(nums)):
dp[i][0] ... | [
"35103759+AiZhanghan@users.noreply.github.com"
] | 35103759+AiZhanghan@users.noreply.github.com |
d44c40e45b61593670900e333cd8e4e5a506ac85 | 93678bc7879f326e6192eae972d508ad08e8a5ce | /evil_script.py | c50a821692b8b8cb2c3f60fda05cfdfd5594c90b | [] | no_license | 0x7b/libprocesshider | 12b72805160f6b75f893b866b9b6ea0f29170424 | bf0ab9da5293b91b6c9de69541bd2e57aa2f7943 | refs/heads/master | 2023-03-23T14:33:04.339692 | 2021-03-25T08:18:20 | 2021-03-25T08:18:20 | 351,056,461 | 1 | 0 | null | 2021-03-24T11:57:03 | 2021-03-24T11:35:15 | null | UTF-8 | Python | false | false | 409 | py | #!/usr/bin/python
import socket
import sys
def send_traffic(ip, port):
print "Sending burst to " + ip + ":" + str(port)
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.connect((ip, port))
while True:
sock.send("I AM A BAD BOY")
if len(sys.argv) != 3:
print "Usage: " +... | [
"gianluca@draios.com"
] | gianluca@draios.com |
899028c455cd43f91589eed800a3ca07d06eeff3 | f09b32a2ee83c407a53b9e187bbb3fa8893e27c5 | /iiwa_workcell_sensor/scripts/range_to_pointcloud2_converter.py | af6980c1afee0ff51392b95e3a2ee51162a6f9e0 | [
"BSD-3-Clause"
] | permissive | dornbirndevelops/iiwa_workcell | 2a9a5040c2d8f3909e7864a0f9e1916c49e7c0e1 | de146cd0f37a7a844525991ba8331ee1d946bb0c | refs/heads/master | 2022-12-06T06:08:38.684784 | 2020-08-28T09:22:29 | 2020-08-28T09:22:29 | 288,936,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import PointStamped
from sensor_msgs.msg import Range, PointCloud2
from sensor_msgs.point_cloud2 import create_cloud_xyz32
from std_msgs.msg import Header
from tf import TransformListener, LookupException
class RangeToPointCloud2Converter(object):
def __ini... | [
"dornbirndevelops@gmail.com"
] | dornbirndevelops@gmail.com |
a0eacb86bdd5117b166ae3b5df1aa93edf8c2363 | a8e150893c4d450799e305fd4f65d531405ba9b6 | /web.py | 46344d3360c7adaeeeda306eee3b01e411811d9a | [] | no_license | Aquarius888/epg-poc | 305b6dfebe870cdcb9518a20b3c9b9b12b1ff8ae | ec9df157664268b2e0967059f65aa6b81d1e5d0e | refs/heads/master | 2020-06-28T13:19:19.316759 | 2019-09-12T18:28:29 | 2019-09-12T18:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | # import bjoern
import bottle
from bottle import Bottle, template
import json
from time import gmtime, strftime
from datetime import datetime as dt
from datetime import timedelta
import time
import os
try:
from config import settings
except ImportError as err:
print("Make sure settings.py exists in 'config' d... | [
"Pavel_Alekseev@epam.com"
] | Pavel_Alekseev@epam.com |
871f0d67060d51a0f99c1d015b019564e3419060 | 6f4f8a8406f5101653fba51fc595ad572f32829e | /thonny/plugins/cpython/__init__.py | 0ba29cc668058820f6d0ef91495e2cd6139e1351 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | codecopy/thonny | 4664ebe1e19665bb2e4e60134f8112c225a5726c | 36d81fe6a13f79ee7a0bf2a85e8128e610a9b843 | refs/heads/master | 2023-02-17T00:08:17.295990 | 2021-01-07T17:21:25 | 2021-01-07T17:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,238 | py | import logging
import os.path
import subprocess
import sys
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
import thonny
from thonny import get_workbench, get_runner, ui_utils, THONNY_USER_DIR, running
from thonny.common import (
ToplevelCommand,
InlineCommand,
is_same_path,
... | [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
94c48e5e215007b0d4439de04f8f769da3f0762b | a20ae2286d7055de8c533bc954c18b22d2a3cf5a | /sstones/ss_app/migrations/0022_auto_20190125_2146.py | 89a1a1c7637a8511bde7ab64191b1c4ea7b1f968 | [] | no_license | jflynn87/sstones | 695442c2c1745c83a37100d4b163938891afe184 | 3a2548b5457ef6386e808b6d984e376f2c83a254 | refs/heads/master | 2021-07-13T19:04:59.898493 | 2020-06-09T03:07:43 | 2020-06-09T03:07:43 | 139,449,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # Generated by Django 2.0.4 on 2019-01-25 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ss_app', '0021_auto_20190125_2110'),
]
operations = [
migrations.AlterField(
model_name='invoice',
name='principal',... | [
"jflynn87@hotmail.com"
] | jflynn87@hotmail.com |
a88a544ffd2d07eb0de1c4220d463733c1ad7f92 | 3fda3ff2e9334433554b6cf923506f428d9e9366 | /hipeac/migrations/0003_auto_20181203_1702.py | 7b70e8202885094bb723ff32f5c3484853d1a689 | [
"MIT"
] | permissive | CreativeOthman/hipeac | 12adb61099886a6719dfccfa5ce26fdec8951bf9 | 2ce98da17cac2c6a87ec88df1b7676db4c200607 | refs/heads/master | 2022-07-20T10:06:58.771811 | 2020-05-07T11:39:13 | 2020-05-07T11:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | # Generated by Django 2.1.3 on 2018-12-03 16:02
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("hipeac", "0002_au... | [
"eneko.illarramendi@ugent.be"
] | eneko.illarramendi@ugent.be |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.