blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71364d0e80490815581c647975d2b3ccd944b25c | e04c20092aa7b917360aec8c6a4ba745c43b01cb | /TheHood/wsgi.py | 26b819fb20bdb57cfc41d4b108e82b8589463057 | [
"MIT"
] | permissive | Moses-254-Mugo/The_Hood | ea45e0285568afb1d028e51f8ec9de575ecd8519 | f9075419f1d1e2f5027b26ba2644c74b6264715d | refs/heads/master | 2023-08-25T10:56:26.700867 | 2021-11-01T18:42:06 | 2021-11-01T18:42:06 | 422,486,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for TheHood 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"moses.mugo@student.moringaschool.com"
] | moses.mugo@student.moringaschool.com |
02fa26b9e0df086043b85ec343a517613b75611b | 35fc6f805f97de291436ee52d2ec2ee0562162de | /ppExercise 11.py | e7d863451d4c24860ecc2d654fa365e87ee015da | [] | no_license | drfarre/learningpython | ae62cc7b242457683d09a7dce6ae981e7ba3ab26 | 38708e240330e3d2c369c311482820df8524b7d8 | refs/heads/master | 2020-03-10T17:49:32.177770 | 2018-04-23T19:50:40 | 2018-04-23T19:50:40 | 129,509,456 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import math
def isitprime(n):
if n == 2 or n == 3 : return True, print("Es primo")
if n < 2 : return False, print("NO Es primo 1 ")
if n %2 == 0 : return False , print("NO Es primo 2")
for i in range(3,int(n**0.5)+1,2):
if n%i==0:
return False, print("No es primo 3")
... | [
"noreply@github.com"
] | drfarre.noreply@github.com |
31e8a034979e3d16f32838f9c35fd13b1d519474 | 61cb2bc04357af37ce43e665c943b2763681907c | /scripts/performC.py | cd830ccf7b1fa1c8c4ec956dfb0439bfacca89d4 | [] | no_license | XiaominWuFred/NeuroGRS | ac95662d65ffb21353e5fc56158e3fa3305c9dd4 | 09781bd1eae76384cdce2fdcfaebad7f1fbd53d4 | refs/heads/main | 2023-04-14T10:04:47.152718 | 2021-04-16T00:29:12 | 2021-04-16T00:29:12 | 334,046,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,383 | py | import csv
import numpy as np
def accSapa(row):
acc = row.split('(')[0]
remain = row.split('(')[1]
percentage = remain.split('%')[0]
return float(acc), float(percentage)
def accAssem(num,percentage):
num = round(num,3)
percentage = round(percentage,2)
reStr = str(num)+'('+str(percentage)+... | [
"xiaomwu@umiacs.umd.edu"
] | xiaomwu@umiacs.umd.edu |
37b2e3d95e07aa0990e27d3c02ae008f0db3dda5 | 7470d991d82b4e577df843c25efd02bf90d1cb38 | /butter/splice.py | c5cded3deb06da1e2a3f64f364851d358c6d4502 | [
"BSD-3-Clause"
] | permissive | RIAPS/butter | eccee0f2423b938eaec24fbb92e022dc8a245206 | 17f678043d2ac32e2d98d1a83b55e7e987596729 | refs/heads/master | 2023-05-29T12:21:32.198480 | 2021-06-10T20:25:48 | 2021-06-10T20:25:48 | 278,401,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,773 | py | #!/usr/bin/env python
"""splice: wrapper around the splice() syscall"""
from .utils import UnknownError
import errno as _errno
from ._splice_c import ffi as _ffi
from ._splice_c import lib as _lib
NULL_TERMINATOR = 1 # length of \0 in bytes
def splice(fd_in, fd_out, in_offset=0, out_offset=0, len=0, flags=0):
... | [
"mary.a.metelko@vanderbilt.edu"
] | mary.a.metelko@vanderbilt.edu |
865cb0d36984b1318d80985738529bf318f15a09 | b7e2cca563ef8b1a7f29070bb1c7a8eb3f11d3a9 | /ReinforcementLearning/tic_tac_toe.py | acb97d8cd00d5b560bc25b8cafe05558472c9790 | [] | no_license | ahndroo/Udemy | a0aa9cbfcba710c8b729fba32cc72ae8cc2c83f6 | 0f5678eae17cbb5ed2496f847e1c397108d19d46 | refs/heads/master | 2021-01-19T17:14:38.790027 | 2018-04-13T21:12:51 | 2018-04-13T21:12:51 | 86,938,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,041 | py | import numpy as np
import matplotlib.pyplot as plt
LENGTH = 3; # length of game board
class Agent:
def __init__(self, eps=0.1, alpha=0.5):
self.eps = eps # greedy epsilon
self.alpha = alpha # learning rate
self.verbose = False
self.state_history = []
def setV(self, V):
... | [
"andrew.kirk@outlook.com"
] | andrew.kirk@outlook.com |
1f0e61c90c771060405321abaca52698270d1e36 | 0fa3a670019574ad2d1577b035070058147193a1 | /examples/compare_to_others.py | 5d29a5fcea0ba08bf91a9cccdc1576a67e5ee4ff | [
"MIT"
] | permissive | rubens1287/pairwise | f41cb86b61f1bcd33cf8f4713630bf32ec55ef20 | 1ce95932bb1496eb4fb04988c7d464bc885199fa | refs/heads/master | 2023-04-04T23:52:39.643283 | 2021-04-19T00:32:25 | 2021-04-19T00:32:25 | 359,283,730 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import metacomm.combinatorics.all_pairs2
all_pairs = metacomm.combinatorics.all_pairs2.all_pairs2
"""
Provided to make it easier to compare efficiency with other tools
as per http://pairwise.org/tools.asp
Current iutput is:
3^4: produces 9 rows
3^13: produces 17 rows
4^15 * 3^17 * 2^29: produces 37 rows
4^1 * 3^39 ... | [
"rslo@gft.com"
] | rslo@gft.com |
1eef8e93e8de7612f888f85a4c6212bf86dade5c | 28aa8a2d8d0f4c2e105d567500c626e78997e4be | /site-packages/shinken/objects/service.py | 714093f417ca7feefd04603f2c192dfc2019199e | [] | no_license | kastesh/shinken-2.4.2-replace | c4a7bb4eb182a0f59b70e9eadd5eb259547b8a18 | 7721de0897bfee7b926ab5212e299c237779414c | refs/heads/master | 2021-01-10T08:50:50.355931 | 2016-03-02T11:19:39 | 2016-03-02T11:19:39 | 52,957,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,253 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redis... | [
"k.sh770@gmail.com"
] | k.sh770@gmail.com |
128b801964308dadff32f8c6325cc1579ff1454c | 61e2257ab27b04209ef6439e470717629de06f06 | /Ecommerce/settings.py | dc03744e14c07271f7ce516af0a9fbfd0f70397d | [] | no_license | amey1210/BookGet | a9bdf2607b4839909f503c5e8add7c06911b7a81 | cc005d19d7e98e73d71061c70270d3e617630a62 | refs/heads/master | 2020-04-08T00:33:19.506000 | 2018-11-23T16:41:32 | 2018-11-23T16:41:32 | 158,856,218 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | """
Django settings for Ecommerce project.
Generated by 'django-admin startproject' using Django 2.1.
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/
"""
... | [
"noreply@github.com"
] | amey1210.noreply@github.com |
0843ca751b78db8856ca9d5205d51514773d87fe | f7e511e0dc14d2b23d2bbc1c7023d1efd346829a | /rocon_smartthings_bridge/resources/test_code.py | 29a37746cb2af0f918a643e0d87867d96cdb263d | [] | no_license | robotics-in-concert/rocon_devices | 1f6ffd0968a0cc565a1992b8423e5a497dbd3440 | 614a190cb9f531c3db83c3e3e4650e8a0971c8c1 | refs/heads/develop | 2021-01-10T21:06:25.738755 | 2015-07-28T08:29:35 | 2015-07-28T08:29:35 | 18,580,058 | 10 | 11 | null | 2018-02-19T22:24:08 | 2014-04-09T00:40:15 | Python | UTF-8 | Python | false | false | 2,280 | py | #!/usr/bin/env python
import json
import requests
def load_settings(filename="smartthings.json"):
"""Load the JSON Settings file.
See the documentation, but briefly you can
get it from here:
https://iotdb.org/playground/oauthorize
"""
with open(filename) as fin:
std = json.load(f... | [
"jihoonlee.in@gmail.com"
] | jihoonlee.in@gmail.com |
b2c14211005aacceb7b237f92d39b72c2fba2218 | 93ed8dd9576a397912dad7693d63fc081f7651db | /tests/contracts/test_contract_estimateGas.py | 24f7f4f3f3524f15111d642ecfcfbe6c4ad24f7b | [
"MIT"
] | permissive | XertroV/web3.py | 3cf1a1265aa9225fe0391feb99bf6088ecfd1937 | 1c6ead0c271da7b648d20dba8c880b76b436a03c | refs/heads/master | 2021-01-24T20:25:36.578888 | 2016-07-16T19:00:10 | 2016-07-16T19:00:10 | 64,264,819 | 0 | 0 | null | 2016-07-27T00:46:25 | 2016-07-27T00:46:24 | null | UTF-8 | Python | false | false | 1,476 | py | import pytest
from web3.providers.rpc import TestRPCProvider
from web3.utils.abi import (
function_abi_to_4byte_selector,
)
@pytest.fixture(autouse=True)
def wait_for_first_block(web3, wait_for_block):
wait_for_block(web3)
@pytest.fixture()
def math_contract(web3, MATH_ABI, MATH_CODE, MATH_RUNTIME, MATH_SO... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
d3a52cd97d2d1792cbadfe6f6aac0c69fa2586b7 | 51e64cc09dd5593a4bd4ae47f4546c877ab0f04e | /code.py | dec97557aeb66fa380a73751293ec8097810be4a | [
"MIT"
] | permissive | suyashphatak23/Simple-Face-Detection | 7c0e22f0ed7bb6e4a394627abebce5cf26a7a73d | cc8bc6a9e3ac152c99614e6414fd2f0fb596ad13 | refs/heads/master | 2022-11-12T05:44:48.637562 | 2020-07-03T09:26:32 | 2020-07-03T09:26:32 | 276,311,085 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | '''
Simple Face detector
@author: Suyash Phatak
Date: 30/06/2020
'''
# Importing the required libraries
import cv2
# Loading the face or eye cascade or xml file for face
face_cascade = cv2.CascadeClassifier('face_detector.xml')
# Input image
# To change the image change the below filename and extension ... | [
"noreply@github.com"
] | suyashphatak23.noreply@github.com |
96ccc37d3e8cd2be9c9d931b1c7a8fb3d1694a0d | 37534e6aabfd60b3c3b94074e31c061c66128cb8 | /.venv/bin/pip3 | 02153aba0214f06e0483b4cdafe48451b556adf1 | [] | no_license | ymsk861/group-f | aa7aa0c9ee9d8101edad90e9f23958cf8c1b6784 | 58412f7c4571299d96a4185b792cfeac86e0d696 | refs/heads/master | 2022-12-16T16:51:38.244564 | 2020-09-20T04:54:23 | 2020-09-20T04:54:23 | 293,081,772 | 1 | 0 | null | 2020-09-20T04:38:06 | 2020-09-05T13:30:46 | Python | UTF-8 | Python | false | false | 260 | #!/Users/yamasakishun/Desktop/haitlab/group-f/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yamasaki-shun219@g.ecc.u-tokyo.ac.jp"
] | yamasaki-shun219@g.ecc.u-tokyo.ac.jp | |
2f4acca4d952c98e362de5605247860fb695630f | eccb79e51d0805d5643e4bfb37d8bf771a33d07d | /day19/test94.py | 659856390305d1c1b8922cd7d45cfe04017ee076 | [] | no_license | kkc272104568/python_test | a05d1f07f240f9f82410a3ac283f1766591013b3 | 75ca1e937c830114a6df84d0340c438ce9a01c91 | refs/heads/master | 2020-03-26T13:45:28.831829 | 2020-02-25T09:48:45 | 2020-02-25T09:48:45 | 144,955,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
题目:时间函数举例4,一个猜数游戏,判断一个人反应快慢。
程序分析:无。
程序源代码:
'''
if __name__ == '__main__':
import time
import random
play_it = raw_input('do you want to play it.(\'y\' or \'n\')')
while play_it == 'y':
c = raw_input('input a character:\n')
i = random.ran... | [
"272104568@qq.com"
] | 272104568@qq.com |
31a9497b36cd6a4d54d6959b49c2445df08feb30 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re_test_file/regexlib_3613.py | 7fbb386b0c1adfa1f8ca79e8518568b2dc33d7fb | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # 3613
# <(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>
# EXPONENT
# nums:4
# EXPONENT AttackString:"<>"+"\t"*16+"! _1◎@! _1! _1! _1!\n_SLQ_3"
import re
from time import perf_counter
regex = """<(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>"""
REGEX = re.compile(regex)
for i in range(0, 150000):
... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
1680eee25e123cd65af8e484e82f821ffcef73f5 | 72fd091cf4f9ad8c1a6475a8344bb750889e3b53 | /cars/migrations/0001_initial.py | 6f561308a8ce2a3549922aa1b79b89063e822140 | [] | no_license | petrshirin/example-web-app-for-using-db | abe312ab9dee36e5f53b795a2a0bc7529fa245f3 | c625815525cc8427a6e0fc749afc14f126a90e05 | refs/heads/master | 2023-02-18T08:31:03.842057 | 2021-01-14T14:43:11 | 2021-01-14T14:43:11 | 328,006,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | # Generated by Django 3.1.5 on 2021-01-08 18:02
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
... | [
"p.e.shirin@gmail.com"
] | p.e.shirin@gmail.com |
fab4e484e4788c8cdc5b3d600f1bcd29168b91b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02897/s211396554.py | 103568fcd8071619233fcea4b16b1f438fe3b2be | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | #A
import math
n = int(input())
print((math.ceil(n / 2)) / n)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
26b47d93b9f098125c860638325e4732ca39e0d5 | f1ee253ad14b75c2afcbe01ee09c762f96bed8d3 | /django_mxonline/mxonline/apps/operation/models.py | f1768798737ac34ef587bb853bb55d787a0ba142 | [] | no_license | MengGuoJian/mxonline | 326d0059eb8e1c09ffdaf7d32a7ecf012e28f6a3 | 2835e24e41ea350cef9e164e6aa818aee1a78da4 | refs/heads/master | 2022-11-30T19:25:39.220884 | 2019-06-28T16:52:25 | 2019-06-28T16:52:25 | 194,286,291 | 1 | 1 | null | 2022-11-22T01:22:36 | 2019-06-28T14:23:00 | Python | UTF-8 | Python | false | false | 2,582 | py | # -*- coding=utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime
from django.db import models
from users.models import UserProfile
from course.models import Course
# Create your models here.
class UserAsk(models.Model):
user = models.CharField(max_length=20, verbose_name=u'姓名')
... | [
"1026006639@qq.com"
] | 1026006639@qq.com |
340a571d6e8d98598158064fceab0255ca1fc886 | f19896ff3a1016d4ae63db6e9345cfcc4d0a2967 | /Topics/Topic/Data Structures and Alogrithms (Topic)/Grokking the Coding Interview/14(subrarrays with product less than a target).py | 003b8322ed8eb2534e4c82f9b758bb6c3169aa06 | [] | no_license | Akshay199456/100DaysOfCode | 079800b77a44abe560866cf4750dfc6c7fe01a59 | b4ed8a6793c17bcb71c56686d98fcd683af64841 | refs/heads/master | 2023-08-08T07:59:02.723675 | 2023-08-01T03:44:15 | 2023-08-01T03:44:15 | 226,718,143 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | """
Problem statement:
iven an array with positive numbers and a positive target number, find all of its contiguous subarrays whose product is less than the target number.
Example 1:
Input: [2, 5, 3, 10], target=30
Output: [2], [5], [2, 5], [3], [5, 3], [10]
Explanation: There are six contiguous subarrays whose pro... | [
"akshay.kum94@gmail.com"
] | akshay.kum94@gmail.com |
222aba3bdc6078a2bbd2e01c79d319ab45d44737 | 30dea47f44695f3eeacb8270496cdced39485cbd | /tonedetect/tones.py | b72f95f4783db9396b689fd9cd31df1dc93ba559 | [] | no_license | cheind/py-tonedetect | 67490d9b6f238226486e0cfa2831c4855e079c07 | 662b5d335ba9e830914cc0d0d2a1515f832f743b | refs/heads/master | 2021-01-10T23:36:59.131599 | 2016-10-29T06:52:37 | 2016-10-29T06:52:37 | 70,419,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py |
import json
import itertools
import math
import numpy as np
class Tones(object):
""" A list of tones """
def __init__(self):
self.items = []
def add_tone(self, frequencies, sym=None):
sym = sym if sym is not None else len(self.items)
self.items.append({'f': frequencies, 'sym': sy... | [
"christoph.heindl@gmail.com"
] | christoph.heindl@gmail.com |
ad892533d941d44cbd1f217d430b5ea20d849611 | 676f98bd490e61727e8801bbda542507e6522d5b | /chap4/cross_entropy_error.py | ba6b74717de6799a083916b428f8f678bd194ba6 | [] | no_license | Glico621/DeepLearning_from_Scratch | 8045c65e0a2087f1d0c3a87d90893c36bd88156f | dc2eb3bb3c56b5e0e1f91b0ae4573b6281227aa8 | refs/heads/master | 2023-08-20T11:04:27.295875 | 2021-10-19T03:30:36 | 2021-10-19T03:30:36 | 369,708,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #p91 交差エントロピー誤差
import numpy as np
def cross_entropy_error(y, t):
delta = 1e-7 #マイナス無限大対策 1x10の-7乗
return -np.sum(t * np.log(y + delta))
t = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
y1 = [0.1, 0.05, 0.6, 0.0, 0.05, 0.1, 0.0, 0.1, 0.0, 0.0]
a1 = cross_entropy_error(np.array(y1), np.array(t))
print(a1)
y2 = [0.1... | [
"82133884+Glico621@users.noreply.github.com"
] | 82133884+Glico621@users.noreply.github.com |
281d0127dbb5560633ec0da580a15c81be6ba978 | 24f29f50988c59785011f3bc2645fa5d2a7a7d97 | /wlct/cogs/ladders.py | 333e6289dac1c32fa28dd01d4fe5d125622fc1c7 | [] | no_license | h-shan/wzclot | d1c0c0f83b0b2916e0352c7cc0bfd25775a632d9 | 88d0e57c053a69a212af43f52168e234f41f6351 | refs/heads/master | 2021-01-07T20:17:04.065980 | 2020-02-19T22:44:18 | 2020-02-19T22:44:18 | 241,809,955 | 0 | 0 | null | 2020-02-20T06:25:12 | 2020-02-20T06:25:11 | null | UTF-8 | Python | false | false | 5,329 | py | import discord
from wlct.models import Clan, Player
from wlct.tournaments import Tournament, TournamentTeam, TournamentPlayer, MonthlyTemplateRotation, get_games_finished_for_team_since, find_tournament_by_id, get_team_data_no_clan, RealTimeLadder, get_real_time_ladder, TournamentGame
from discord.ext import commands, ... | [
"brendanflynn@outlook.com"
] | brendanflynn@outlook.com |
232015e79c33abe633a6a6a36a1bb34843158437 | 5aa98c0e9fae69521d28ef3cb5ca9e4aefb0478a | /venv/Scripts/pip3-script.py | 4b872a6d286f41e1b984795022f5834341d27232 | [] | no_license | Ghazan1/portfolio | f5f99b9f819e17d45ebbdbb41aa2e4609c2e5d3d | 1cc41b23721ad99d022f5807cb47ba7e6f0076f2 | refs/heads/master | 2020-04-13T16:36:06.144843 | 2018-12-27T19:00:55 | 2018-12-27T19:00:55 | 163,325,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!C:\Users\Ghazan\PycharmProjects\portfolio-project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"meetghz@outlook.com"
] | meetghz@outlook.com |
5b83bbca055be0745bf5a1b74558a9d27384af32 | 290d98f0a09c3420eecc21e21129196f0f731648 | /time_series_clustering/run_time_series_clustering.py | 10c4627f90aac74bc8f4e768521d720b63c61098 | [] | no_license | bouguerram/newman-research | 8afbe9d12ceee718e9a28172d8bed6cdfd79091b | 0b4b4dbe786da9b3e8a61749f778658b487a04cf | refs/heads/master | 2020-03-22T16:01:24.079566 | 2016-09-22T18:08:18 | 2016-09-22T18:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import numpy as np
import matplotlib.pyplot as plt
# import rpy2.robjects.numpy2ri
# from rpy2.robjects.packages import importr
import kmedoids_minibatch_dist_matrix
import csv
def convert_y_labels_to_positive_definite_interval(data_y):
for i in range(len(data_y)):
if data_y[i] == -1:
data_y[i]... | [
"cschulze@schulze-pc.PFI.LOCAL"
] | cschulze@schulze-pc.PFI.LOCAL |
23cc696455e578661687ff0eb2c8e466a0ecca7b | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_PIL_GifImagePlugin_py.html.py | 1dc887ff9dbe11ce042ec22d45bfd7fc4da3fc41 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251,069 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXX XXXXXXXXXX XXXX... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
c6b54b508c8164b78490f5ffa11a8276d1a9fe2a | e9750bc41b9a3f55907fa6d6a6faebcd5bdaf020 | /stableGroups.py | a6f4251b93a01aeeda20a954001ee65b692dfb9c | [] | no_license | jamesdhope/teaching-lecturing-resources | 4fe8b6997eaa5dd109367d5cb592ee98ff71ceb6 | 18cd42104bd658e9a737b364637eb47bafd9288b | refs/heads/master | 2021-01-16T19:28:10.113669 | 2018-05-18T13:51:54 | 2018-05-18T13:51:54 | 100,172,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | # Author : James Hope
# Date : 13 April 2018
import sys
import numpy as np
debug = False
# Pool Class :: holds engagements
class Pool:
def __init__(self, acceptors):
"""
Construct an array which will hold the engagements. Instatiate each maximum preference number t... | [
"noreply@github.com"
] | jamesdhope.noreply@github.com |
e9e6d1aac73d06c35eb53081c986af7d039a7fc4 | 52102c804996dd30f4248f586e34b575516bf261 | /setup/setup.py | 6bf9f389a3647cc0253c081e8c0675197abd2696 | [] | no_license | Anima879/Voiture_autonome | 895510e975d88562d3b368efb0c761e46ebc60b0 | 21c1a2970a4be09659b839656c047219e4e3ac39 | refs/heads/master | 2020-07-04T18:39:01.860932 | 2019-09-11T09:09:26 | 2019-09-11T09:09:26 | 202,377,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import tkinter as tk
from tkinter import messagebox, filedialog
from setup.create_track import *
class Setup(tk.Frame):
def __init__(self, root, **kwargs):
tk.Frame.__init__(self, root, **kwargs)
self.grid()
tk.Label(self, text="Forme du véhicule :").grid(column=0, row=0)
list_opti... | [
"eloi.mahe@reseau.eseo.fr"
] | eloi.mahe@reseau.eseo.fr |
25ca27d0a43551073e356f08f1bbdcb27e6788b4 | a5185ad8b0d33d3141ecf1f37e1edaf05564e38f | /tools/eval_crnn_ctc.py | 539fa9365bd8f45fc305b2aa4533a9562d3bcea8 | [] | no_license | lyk595/CRNN_CTC_OCR_TensorFlow | 529682833e52c334b53ed2201bb85506028ce0a5 | 703317f4f4b01f6367b952dae327adabf32cdc55 | refs/heads/master | 2022-01-10T13:45:07.338497 | 2019-04-17T12:49:56 | 2019-04-17T12:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,459 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import time
import json
import tensorflow as tf
import numpy as np
from crnn_model import model
os.environ["CUDA_VISIBLE_DEVICES"]="0"
# ------------------------------------Basic prameters-------... | [
"514202874@qq.com"
] | 514202874@qq.com |
abc3821860d6f8d7c15a8cffb45965e0db355334 | d0d416c558bd495a0d5f71c9d12c198d5065a51b | /yolact/utils/timer.py | baeb2470daa41e6553e31e104e3d245640188cef | [
"MIT"
] | permissive | masszhou/YOLACT_masszhou | a007ef55d6cd848c87237d606b26524f536f0e49 | bc4a658674fccaaf0ed545403892c3c3d8816d24 | refs/heads/main | 2023-03-01T23:26:00.632304 | 2021-02-02T14:25:00 | 2021-02-02T14:25:00 | 334,150,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,904 | py | import time
from collections import defaultdict
_total_times = defaultdict(lambda: 0)
_start_times = defaultdict(lambda: -1)
_disabled_names = set()
_timer_stack = []
_running_timer = None
_disable_all = False
def disable_all():
global _disable_all
_disable_all = True
def enable_all():
global _disable_... | [
"zhouzhiliang@gmail.com"
] | zhouzhiliang@gmail.com |
8fbd6c02b72607b5cd55525e6fb33f0ce4082fef | a964f0f3f93a84d5195042d3c1bb2288e8b62161 | /muddery/server/utils/utils.py | a69f6d5ace3c6d1dc5892332ebc02a3c67a0e928 | [
"BSD-3-Clause"
] | permissive | nobodxbodon/muddery | 474433791b75d2f2130e6b758fb3126e2d56230b | 4b4c6c0dc5cc237a5df012a05ed260fad1a793a7 | refs/heads/master | 2023-06-19T19:28:39.252340 | 2021-07-14T15:07:47 | 2021-07-14T15:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,890 | py | """
General helper functions that don't fit neatly under any given category.
They provide some useful string and conversion methods that might
be of use when designing your own game.
"""
import os, re, inspect
from importlib import import_module
from pkgutil import iter_modules
from django.conf import settings
from ... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
58d9f299b2be3ac5b35e101e9d797493adbbab9e | 502fc0002d5575d0a37b4f13706c7072f860033c | /Chapter06/cyclegan/datasets.py | c851a615e497b6d1583f95c8955550f2b29adf88 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Generative-Adversarial-Networks-with-PyTorch-1.x | 665d9364af54d7fd44787d0753400d7625ac8b82 | beee21343078b607f393bbb1321ac49cf17ffb5f | refs/heads/master | 2023-02-10T22:12:08.980700 | 2023-01-30T09:26:20 | 2023-01-30T09:26:20 | 227,829,701 | 66 | 50 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import glob
import random
import os
import torchvision
from torch.utils.data import Dataset
from PIL import Image
class ImageDataset(Dataset):
def __init__(self, root_dir, transform=None, unaligned=False, mode='train'):
self.transform = torchvision.transforms.Compose(transform)
self.unaligned = ... | [
"dineshchaudhary@packtpub.com"
] | dineshchaudhary@packtpub.com |
edf9a1aa2884f4004f8f64b165c1bbdd45947b4e | 021dbfe468381785fb358e5099e49a8d8dff38cf | /simplification/lightls.py | 0fbf9e9dbfe28a077e8eca6c97f0a251b0ceacea | [] | no_license | codogogo/lightls | 742833c9f353bc6ac16cff4b860034df4f426f78 | 38c0cd06efde539b8dda70d1d1ba19f2b72ad256 | refs/heads/master | 2020-03-08T14:22:35.898906 | 2018-04-05T10:26:08 | 2018-04-05T10:26:08 | 128,183,674 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,593 | py | import math
import numpy as np
from helpers import string_helper
class LightLS(object):
"""description of class"""
def __init__(self, embeddings, word_freqs, parameters, stopwords = None, lang = "default"):
self.stopwords = stopwords
self.params = parameters
self.embeddings = embeddings
self.lang = lang
... | [
"gogo.glavas@gmail.com"
] | gogo.glavas@gmail.com |
cb7860ee2b88086961192dfd83a266f4ee32a4b6 | f2e17f6266b2ab9d26cef4980d074fabd004dec3 | /myweb/myapp/migrations/0028_classifiedtext.py | f0584c6b2d349ba5b0760f64f032bb10b169fb59 | [] | no_license | kearron/Sentiment-Analysis-and-News-Classification | ecea59d35a3919367839bc99707b7538502f6859 | f0ecc74750da3d902adcf2e8ad4ad47120e28058 | refs/heads/master | 2021-07-21T09:48:34.979523 | 2021-05-31T05:04:46 | 2021-05-31T05:04:46 | 121,771,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-04 06:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0027_search'),
]
operations = [
migrations.CreateModel(
... | [
"kearon99@gmail.com"
] | kearon99@gmail.com |
84b89e0386fc0b8c715ac49bec238a0e63ddb575 | 6497f1f7739e97ea21ac5f8d6c12c4bb57cfd871 | /setup.py | 749eefe5582e3c33d98d53f2d6dc931d87f42f30 | [
"MIT"
] | permissive | RahmanTeamDevelopment/RefSeqDB | cb2e78b67a4775deb96c4dd95919615ef34cbcd4 | fef8c4ba363fc4f405dd3f2e5613f99613f8ac71 | refs/heads/master | 2021-01-23T00:44:32.097909 | 2017-11-22T16:50:33 | 2017-11-22T16:50:33 | 92,837,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from setuptools import setup
setup(
name= 'RefSeqDB',
version = '0.4.0',
description = 'A tool for creating RefSeq transcript databases',
url = 'https://github.com/RahmanTeamDevelopment/RefSeqDB',
author = 'RahmanTeam',
author_email = 'rahmanlab@icr.ac.uk',
license = 'MIT',
packages=['r... | [
"Marton.Muenz@icr.ac.uk"
] | Marton.Muenz@icr.ac.uk |
f6d005bf620b16a84ee81a39616dfe874307c8e9 | 2d6c22f3b363e62c4020d11bdbfc8542243b6c5d | /scripts/occupancy.py | 7e16c5330e1fc84b3856607f6d3d9bb9a1525afb | [] | no_license | CharlesxrWu/CUDA_gemm | e72ed313f8618427747e698ef11010f75e1346a6 | 95ab0d229082aa05d9a2b0036a30986d92d303f7 | refs/heads/master | 2023-04-01T03:18:52.955425 | 2021-04-14T05:24:55 | 2021-04-14T05:24:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | import sys
from gpu_data import GPU_data
def calculator(Threads_Per_Block, Registers_Per_Thread, Shared_Memory_Per_Block, Compute_Capability):
# cal active warps per SM
Data = GPU_data[Compute_Capability]
Registers_Per_Block = Registers_Per_Thread * Threads_Per_Block
Block_Num_Bound_By_Reg = Data["Regi... | [
"shanbinke@gmail.com"
] | shanbinke@gmail.com |
9e1c74b5b640913e6bc975e144610281b32930ae | 1df7f153a42b7e2fcbf37511ae7829b5101b32f0 | /codetodo.py | 8b8111cf7b28177e6db5e9fcf22cddff14a1ba62 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | marcioweck/codetodo | 6af0bf0e689442bd17525fc5890ebbae2b8615fd | e4cf0ed2adee46926a4d9948e6039106473bb5bd | refs/heads/master | 2020-04-06T04:19:15.880642 | 2016-08-16T12:46:11 | 2016-08-16T12:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,650 | py | #! /usr/bin/env python
from __future__ import print_function
import subprocess
import os
import sys
import re
from tabulate import tabulate
from termcolor import colored
import argparse
from glob import glob
from rglob import rglob
from fnmatch import fnmatch
import multiprocessing as mp
import mimetypes
if sys.stdou... | [
"hello@paulgessinger.com"
] | hello@paulgessinger.com |
61e0018f668d7500563f0938b91dcaa0cfac1aa9 | d404779e9c385899ac0a3eb199190f80cce54658 | /ch5/koch_snowflake.py | edf867a1cd8130f9471b88ff2179424832a905d3 | [] | no_license | pbscrimmage/thinkPy | 8209be55e48a310a73342de7bd34c15a219dfbc0 | 06efa33a29c20c35e793a806d0f063ed2fd8623c | refs/heads/master | 2021-01-23T11:55:45.302599 | 2015-05-12T11:30:48 | 2015-05-12T11:30:48 | 34,089,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | '''
koch_snowflake.py
Author: Patrick Rummage
[patrickbrummage@gmail.com]
Objective:
Write a function that uses koch() to draw a three-sided
polygon of Koch curves, also known as a Koch snowflake.
http://en.wikipedia.org/Koch_snowflake
Note:
Requires Tkinter as well as the swampy package crea... | [
"patrickbrummage@gmail.com"
] | patrickbrummage@gmail.com |
a5e07a5a9d645cf3dae7bb95b442ba124c80d5bb | e92ccaa18e6fd3bc0595db6213dc2621569b2efe | /digitsData1.py | 6756ba17ffa03e9814bc63fc0a48876d2b7d9207 | [] | no_license | wakanak2/python-practice | 4dfc7fa4e362f4a43670541bb1190caae2f9d634 | 75f4795d542553c76dbe1a2d087eb3d0f23909b8 | refs/heads/master | 2022-12-07T18:19:43.399462 | 2020-09-03T12:50:47 | 2020-09-03T12:50:47 | 289,915,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import sklearn.datasets
digits = sklearn.datasets.load_digits()
print("データの個数=",len(digits.images))
print("画像データ=",digits.images[0])
print("何の数字か=",digits.target[0])
| [
"w.koba.0214@gmail.com"
] | w.koba.0214@gmail.com |
3e295f508d6e7221e1d8f8ab587dacf31e01f117 | bff19e9433ea962e912cc2470413572b6a63892d | /message.py | 91e7362bb9b1095aa8ec6459c744c6eeed0c94b0 | [] | no_license | wy-hm/IMS | d83ab2d7f456a99a9727d3c9686335a9857e76d1 | 320e6207ad41ad0f83fc8a9fbca542b79ed22440 | refs/heads/master | 2023-03-16T11:17:06.221980 | 2019-04-10T05:19:19 | 2019-04-10T05:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | from abc import ABC
from utility import MessageType
class GenericMessage(ABC):
""" generic message exchanged among agents """
def __init__(self, auction_id, msg_type):
super(GenericMessage, self).__init__()
self.msg_type = msg_type
self.auction_id = auction_id
class AnnouncementMes... | [
"lampa9559@gmail.com"
] | lampa9559@gmail.com |
9aa00de86b197df4d513d205f46f4cab244ca9b7 | 532bc42753923d61cfffc4fa02483a978e156954 | /CLClone/my_app/migrations/0001_initial.py | 6d0865b23e2a6287d1501de2af09cd515448bd86 | [] | no_license | chasegarsee/Python-Django | 600ab278ef5efe9a5b645b9f63686bd195a22148 | cde6d9dab4eb816b269c86295dc874bf62371808 | refs/heads/master | 2022-12-15T15:42:26.649476 | 2020-02-22T23:27:43 | 2020-02-22T23:27:43 | 242,187,354 | 0 | 0 | null | 2022-12-08T03:40:01 | 2020-02-21T16:50:37 | Python | UTF-8 | Python | false | false | 553 | py | # Generated by Django 3.0.3 on 2020-02-22 17:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search',
fields=[
('id', models.AutoField(a... | [
"chasegarsee@gmail.com"
] | chasegarsee@gmail.com |
8c0deb13652980b813955659659716bcd1001fd7 | d359fe1fb1e3824b9411d86d33e91eeb6325aa93 | /agent_bee_v4_5_3.py | a32d687a32ee0e5c46f53fca0fce39deb945189a | [] | no_license | flynnwang/kaggle_halite4 | 9c14e82899ee3ae469ac1ed47e095ab6635b5b21 | 453ca80a6fec5a346629e21e9449af571f52e5ef | refs/heads/master | 2023-03-18T19:43:59.920892 | 2020-09-16T02:41:25 | 2020-09-16T02:41:25 | 275,327,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,974 | py | # -*- coding: utf-8 -*-
"""
v4_5_3 <- v4_5_2
* grow halite steps = 15 (more aggresive)
"""
import random
import timeit
import logging
from collections import Counter
from enum import Enum, auto
import numpy as np
import scipy.optimize
from kaggle_environments.envs.halite.helpers import *
logging.basicConfig(level=... | [
"wang.flynn@gmail.com"
] | wang.flynn@gmail.com |
e65cbf5b64816e289ebbda33044e7070ef649a39 | a5e591dc09e11e88af56fb5a881fae064fb9c495 | /recruitment/recruitment/doctype/sds/test_sds.py | c6cce9a11e7909f1af24d4e5044701cb9cfd6ede | [
"MIT"
] | permissive | barathprathosh/recruitment | 6b61dd1ee9c0b9d7851b0b3e5bab307f7ee2d1b5 | 9660944856e72288e47960e6802ec97a220a656d | refs/heads/master | 2020-04-29T03:03:51.722972 | 2019-03-15T08:58:32 | 2019-03-15T08:58:32 | 175,794,797 | 0 | 0 | NOASSERTION | 2019-03-15T10:00:32 | 2019-03-15T10:00:31 | null | UTF-8 | Python | false | false | 247 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, VHRS and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
# test_records = frappe.get_test_records('SDS')
class TestSDS(unittest.TestCase):
pass
| [
"abdulla.pi@voltechgroup.com"
] | abdulla.pi@voltechgroup.com |
1c0bbd4904def21b4a63324dbea15faf22ec77eb | 4bf3f5e1400bdd1f0727ead74c88b6dd09a8dc03 | /Leoncmdb/urls.py | 2c829c4da837f40778a10c9d76bba2c0d4ffc732 | [] | no_license | LeonYanwj/LeonCMDB | d913d3066c5968270724c77e8cea8a31247370c3 | bbab2cb11687c342c46a261647ce8afc1913dd8d | refs/heads/master | 2021-06-19T06:39:09.468203 | 2020-07-28T07:41:43 | 2020-07-28T07:41:43 | 201,918,797 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | """Leoncmdb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"1908175252@qq.com"
] | 1908175252@qq.com |
a697dce54965d918f7b330653707e0336ac916cc | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/storage2/filesystems/ext3.py | db6c14a7eb67d5266be90987c0ab7e3c2a861102 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 1,840 | py | """
Created on Aug 29, 2012
@author: marat
"""
from scalarizr import storage2
from scalarizr.storage2 import filesystems
E2LABEL_EXEC = "/sbin/e2label"
RESIZE2FS_EXEC = "/sbin/resize2fs"
E2FSCK_EXEC = "/sbin/e2fsck"
MAX_LABEL_LENGTH = 16
class ExtFileSystem(filesyste... | [
"kenorb@users.noreply.github.com"
] | kenorb@users.noreply.github.com |
3a06d395571c615334aaecec346f30c1be3640f5 | 424dcf9cdc6d564f1af94882ecbea0d9491214d1 | /models/report.py | cf34ae5c6fcca6f153500c7c00c80552a7813a2b | [] | no_license | nzaniela/ratecard | 9780896fb2f8fbc12a7088ce7aa777073f2df5fa | d5f108ff95ea9877803e925cc1a05476f0faa079 | refs/heads/master | 2021-07-06T23:44:40.322101 | 2017-10-01T10:06:57 | 2017-10-01T10:06:57 | 105,432,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from openerp import models, fields
class ir_actions_report(models.Model):
_inherit = 'ir.actions.report.xml'
journal_ids = fields.Many2many(
'account.journal', 'report_configuration_receiptbook_rel',
'report_configuration_id', 'receiptbook_id', 'ReceiptBooks')
voucher_type = fields.Select... | [
"naistechnologies.com@gmail.com"
] | naistechnologies.com@gmail.com |
e2dd3fc6ed5023653573ada2255327ccf464b401 | d694a99c910ce36c8d6981e126548fc91e74046e | /Regression/regression.py | 60bd820898953a66d0998f401bded14011439700 | [] | no_license | YiddishKop/ml_src_adam_compare | 08ac23cf1fb02222da1f04e833e296b1b75ae9af | cfeadebd41f802686828958068c15bcfdfea0be9 | refs/heads/master | 2020-03-25T22:16:19.581690 | 2018-08-09T23:37:31 | 2018-08-09T23:37:31 | 144,213,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | import numpy as np
import tensorflow as tf
from math import sqrt
from keras import optimizers
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, normalization
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memo... | [
"yiddishkop@163.com"
] | yiddishkop@163.com |
e7a36e27e6d971147dc3a9e2f484d56baf29118a | 93ced759b43be7aad6b0fe55fc7752b6db2bf0e8 | /forecast-ml/ml_code/ml_process/ml_core.py | ad066f97da6370281036971c72c038ed207bcb6a | [] | no_license | indrajitkumar/Forcast-ML | f13b2e064fd32ecd24a6fa9a2410c1721edc55a5 | 154312df0e744bbf852146aa7cbe28074b80c89d | refs/heads/master | 2020-09-05T19:39:30.469526 | 2019-11-27T09:51:56 | 2019-11-27T09:51:56 | 220,195,198 | 0 | 0 | null | 2019-11-07T09:15:03 | 2019-11-07T09:09:58 | HTML | UTF-8 | Python | false | false | 3,650 | py | # Libraries
import numpy as np
import pandas as pd
import pickle
from matplotlib import pyplot as plt
from sklearn import metrics
from sklearn import model_selection
#from sklearn import preprocessing
from sklearn.cluster import KMeans
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import L... | [
"noreply@github.com"
] | indrajitkumar.noreply@github.com |
5497665447fb033386b2092a63fbef7149fd845b | dddd89637373f455a476431f4fcb7e17b4e9dd57 | /py/display.py | 85bcfe46e59c909fad72f4b04abaf084a127d399 | [] | no_license | DhirManish/Python | 35304eb47dea61934426fb6fc5094e1a83517cf3 | 10df7245d0964340d6c8d14cf26a9cf8f93ecf5d | refs/heads/master | 2020-06-05T07:09:41.856780 | 2015-03-07T12:53:10 | 2015-03-07T12:53:10 | 20,372,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# display.py
#
# Copyright 2014 Ajay Bhatia <ajay@dumb-box>
#
# 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 Lic... | [
"prof.ajaybhatia@gmail.com"
] | prof.ajaybhatia@gmail.com |
51d3cd83c17924f57928febd4c77f7e11a693a64 | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/test/integration_tests/tests/test_credentials.py | 45c7f9956f3bb90d941ff841ff21f9390cc0aa7a | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
618f9bcd1ac00d548731eda3fafa12277cda04f6 | 6265e456db89ef370b694a39579cf948663254e6 | /share/qt/extract_strings_qt.py | 0b0e92289975c7b8a76e9d798ccdf9e7423af19a | [
"MIT"
] | permissive | greencoincc/greencoin | ebc4a25c785fd72debd9b3db6704463ce651d460 | 74e40729dd2af31351da0ce00572accfd90ea984 | refs/heads/master | 2020-09-26T16:31:02.769967 | 2019-12-06T09:27:21 | 2019-12-06T09:27:21 | 226,291,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt stringdefs so that
they can be picked up by Qt linguist.
'''
from __future__ import division,print_function,unicode_literals
from subprocess import Popen, PIPE
import glob
import operator
import os
import sys
OUT_CPP="qt/greencoinstrings.... | [
"drandrewbullock@gmail.com"
] | drandrewbullock@gmail.com |
2114d60c3df5d390370a9aaff6d8ab17a9d1172a | 5665a5bb81cf43a0eb83195e9413c05e4dd3497d | /iris-ml-app.py | 5006a156a83e106e87c402509c01a3efc3de86e2 | [] | no_license | jeaggo/tc3068 | e25e39df2312304dbd9e308fa94d0953f5f6ff61 | 99c77aed1b36758f2cc505bf99770928dd023aa4 | refs/heads/master | 2022-05-01T08:12:57.007820 | 2022-04-26T22:00:06 | 2022-04-26T22:00:06 | 169,940,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import streamlit as st
import pandas as pd
from sklearn import datasets
from sklearn.ensemble import RandomForestClassifier
st.write("""
# Simple Iris Flower Prediction App
This app predicts the Iris flower type!
""")
st.sidebar.header('User Input Parameters')
def user_input_features():
sepal_length = st.sidebar... | [
"noreply@github.com"
] | jeaggo.noreply@github.com |
e75026675bdaf7c8eed5eec20b6c5393a22dc913 | 51bd3c0135f514d9e90d3b215192e3e02fc713b2 | /MajorProject/venv/bin/pyreverse | d344e34993f8d64b848f6b5f7cc870ec3ea9d74a | [] | no_license | ayush-ray/Consultadd | c843d35fb73f4d9c115667adebf8ea0ef3e17761 | f129c3bc5ab39c68ebbd23f417330fd90cd050dc | refs/heads/master | 2023-08-07T20:09:05.256140 | 2020-07-06T00:20:43 | 2020-07-06T00:20:43 | 276,488,466 | 0 | 0 | null | 2021-09-22T19:23:41 | 2020-07-01T21:45:41 | Python | UTF-8 | Python | false | false | 272 | #!/Users/rishti/Desktop/Consultadd/MajorProject/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"rishti@amazon.com"
] | rishti@amazon.com | |
8654ed8796db644dd4805d8b68137f4e06de7879 | f2b44af5372c6318a941015f64b279ccf9099a18 | /rest130/wsgi.py | 5726a659e41211d23cf13244551e776d53d36061 | [] | no_license | yuansuixin/Rest-Framework-page-view | c459ca54c1998cde4c0fe207ba6464353471cbdf | a8663c09a00ce4f4d055ca96e3132ae0a4ddea54 | refs/heads/master | 2020-03-13T06:58:12.512163 | 2018-04-25T14:09:15 | 2018-04-25T14:09:15 | 131,015,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for rest130 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_SETT... | [
"cyss428@163.com"
] | cyss428@163.com |
ca44774613f769beee533722ed754a97f9cc33ad | 7c5e36ef60fe9134c74d6c790fabb52894958a38 | /implementations/trainDeepFace_torch_otherGroup.py | 511b5179d04c9ecd13ebf72641c95e3d2e20e885 | [] | no_license | tkawchak/MATH597_FacialRecognition | 63c9a7341a05ab6e1e7747674d468b8771aecabe | 93b7e41b001ac7faa1569850f3ba26e0407cdd60 | refs/heads/master | 2021-08-23T14:28:10.776641 | 2017-12-05T05:08:36 | 2017-12-05T05:08:36 | 103,861,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,865 | py | import glob
import unicodedata
import string
import torch
import torch.nn as nn
from torch.autograd import Variable
import time
import math
import random
import torch.nn.functional as F
import os
import random
import io
from PIL import Image
import torchvision.transforms as transforms
#https://stackove... | [
"tkawchak@gmail.com"
] | tkawchak@gmail.com |
7b1fbc5fa287f2e6a697c45a64cc5cd9b9be745d | ed3b4ed46656813573e2f5a90ef5cf1b36a724ee | /Class notes.py | 0cb0fc4b2e492aa8b5e8d41af95b8d4b4a397c71 | [] | no_license | ok6j/CSE7 | 6e4bc739fa4efad98bdda6be76fe2c1717922495 | 62eb5b7ac305f8dcb00fa500084fdec570e6e400 | refs/heads/master | 2021-09-14T23:11:02.273856 | 2018-05-21T23:23:58 | 2018-05-21T23:23:58 | 112,399,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | # Defining a class
class Cat(object):
# TWO underscores before and after
def __init__(self, color, pattern):
# Things that a Cat has
self.color = color
self.pattern = pattern
self.state = "happy"
self.hungry = False
# Things that a cat can do
def jump(self):
... | [
"31050508+ok6j@users.noreply.github.com"
] | 31050508+ok6j@users.noreply.github.com |
12bc9d01f76a0e97ddab25e13875cb929b890d50 | 516157e6e97e1c122e2efeba1ee9d765c88d4ca9 | /fi2.py | 5525f1997a613005f5413fa688c0defcfc2fe1d8 | [] | no_license | AashiqRamachandran/hackers-playground | b2d699d67f66ed06f969089c46a7c3b16e606fc4 | 3cc390d4de536455459b4a2615f662699a6223b0 | refs/heads/master | 2022-11-09T00:40:19.799571 | 2020-07-04T11:14:27 | 2020-07-04T11:14:27 | 245,553,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | from twitter import Twitter, OAuth, TwitterHTTPError
OAUTH_TOKEN = '1262017120717533185-HpXoDfrrKSuCCiInVaXXdnI6hNm1Ia'
OAUTH_SECRET = '6vJSvudVE3kBqZvWr6FiKllWuJzWIGXSHpP6vZURC0ulE'
CONSUMER_KEY = 'HPdeLBBAhcaGuCcN6MKd5fwk6'
CONSUMER_SECRET = 'BzQgSPProiCApnkeuB7dMsRMcOqFgE3xXsDNLnsl1qxsIBJk5s'
t = Twitter(auth=OAu... | [
"noreply@github.com"
] | AashiqRamachandran.noreply@github.com |
f80eb0ee75c7c6f6668996e9f7d6ded968c8c196 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-937.py | 1cb8651f581c5c2f244b40205a24f459938ff392 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,291 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
43eeefacfcf0e69ed91cff1e139d21ea5ca3dcb0 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB3_0303_9.py | 9a0ad63b34e9c15470b38ea93c1c9309344d6602 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,168 | py | DRB3_0303_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.004754, 'I': -0.99525, 'H': -999.0, 'K': -999.0, 'M': -0.99525, 'L': -0.99525, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.004754, 'V': -0.99525, 'Y': -0.004754}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, '... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
fd0e88862a3552ff5a444410f25c478bc09b9ccc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_185/ch21_2019_09_02_16_11_34_126817.py | caeb588b2448887a21cc708aae209b3242a27c36 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | valor_conta = float(input("Digite o valor da conta"))
valor_10 = valor_conta * 1.1
print("Valor da conta com 10% {.:2f}".format(valor_10)) | [
"you@example.com"
] | you@example.com |
962e96893571f492778142b708236e00d56b680e | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/pyobjc-framework-Quartz/PyObjCTest/test_cikernel.py | b0db5ef848f5d457400c0faee426365fabfe1997 | [
"MIT"
] | permissive | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 306 | py |
from PyObjCTools.TestSupport import *
from Quartz.QuartzCore import *
from Quartz import *
class TestCIKernel (TestCase):
def testMethods(self):
self.failUnlessArgIsSEL(CIKernel.setROISelector_, 0, CGRect.__typestr__ + '@:i' + CGRect.__typestr__ + '@')
if __name__ == "__main__":
main()
| [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
48263a798ad30ad427cd58b1e66ad05f0fef9263 | 9ab9123a631260903c242191d04bf452279ba544 | /experiment/draw.py | 92d33584297ac9218e26ce76aecba56642aece1f | [
"Apache-2.0"
] | permissive | peihy/PyEGT | bba58526eb6a275341fd8539250c6009f08c4337 | 9313a6d12ecb5078081c8b2bd05b1c0716f9bd87 | refs/heads/master | 2020-04-13T01:58:51.448074 | 2018-09-19T15:18:10 | 2018-09-19T15:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,718 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
import networkx as nx
from matplotlib import cm
from numpy.random import randn
import collections
import math
def degree_histogram():
G = nx.gnp_random_graph(100, 0.02)
degree_sequence=sorted(nx.degree(G).values(),reverse=True) # de... | [
"shaodan.cn@gmail.com"
] | shaodan.cn@gmail.com |
fafc0ffe23e94a43e1dd908611b6ef8ab622feeb | b4eefdd65750e6437b764a90b380155c43ef886e | /betonreddit/history/urls.py | 2d0143c49267f829b32a5e6e8bbbe8989755b56a | [
"Apache-2.0"
] | permissive | sengv/betonreddit | 9a74682351bc8f33451dace362a850eb16595720 | faee136b0cf0382487bac8d8cb3ffa0051ec0123 | refs/heads/master | 2021-01-22T11:58:29.252973 | 2016-05-30T08:09:41 | 2016-05-30T08:09:41 | 58,032,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.conf.urls import url
from .views import history_main
urlpatterns = [
url(r'^$', history_main, name="history_main"),
]
| [
"padimkj@gmail.com"
] | padimkj@gmail.com |
de0839089f56fdbd89a3d5e3b05d99c0d7a11b20 | 2cc20f40f1d420dd5e933b00622a792bd22b3cc0 | /Dice GAME.py | 2ba8a91b4a78ab4ae601686b519cf6d633c126c1 | [] | no_license | HemantDeshmukh96/Dise-Game | 27b03a665316d8e7fa792b3ccbae608dc9b37875 | edf8e756463239c625c5e0b80c5ababf753e0ed1 | refs/heads/master | 2020-11-25T06:56:49.804445 | 2019-12-17T06:33:42 | 2019-12-17T06:33:42 | 228,548,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import time
import random
key='Y'
print("%76s"%("*"*32))
sleep=time.sleep(1)
print("%76s"%("** WELCOME TO THE DICE GAME **"))
sleep=time.sleep(1)
print("%76s" %("*" *32))
sleep=time.sleep(1)
print("Try out your luck!!")
sleep=time.sleep(1)
print("Select a number between 1-6 and lets see in how many trial y... | [
"noreply@github.com"
] | HemantDeshmukh96.noreply@github.com |
bdbb08709eafee58b0e2298380f07b3701a79bd1 | 605356250c655a7f98d5f1158e0ffc94175de4f7 | /devel/lib/python2.7/dist-packages/pal_vision_msgs/msg/_FaceRecognitionFeedback.py | 463e9865ee7b4e52e18bc66246629867f1f725f5 | [] | no_license | MatthewCallery/msc-tiago-project | 4d3dcf07b7bc6915d2f203bbff46f6c11720ff9f | 8c9e987c45d6152192ba36bb27781e961e7900c3 | refs/heads/master | 2020-11-30T04:17:53.649839 | 2017-07-11T14:38:47 | 2017-07-11T14:38:47 | 96,903,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | /home/mc16766/tiago_public_ws/devel/.private/pal_vision_msgs/lib/python2.7/dist-packages/pal_vision_msgs/msg/_FaceRecognitionFeedback.py | [
"mc16766@it051534"
] | mc16766@it051534 |
ecfab7aad233063a8f80f703890b5e2ac2aaf80f | cff3ba19e4627afa1aa5178c148d9d169163c225 | /learning_logs/forms.py | 102b1adfb08ff65925c328c05764f25b2284d32b | [] | no_license | HarryWang-3/learning_log | f6087fd4ea72122b75eab8e1e1fb4ebfdaeff699 | 35edb263cc07d9da1993499b68191c929a2045ba | refs/heads/master | 2023-06-08T14:42:55.083277 | 2021-06-13T06:12:55 | 2021-06-13T06:12:55 | 376,456,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django import forms
from .models import Topic,Entry
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields = ['text']
labels = {'text': ''}
class EntryForm(forms.ModelForm):
class Meta:
model = Entry
fields = ['text']
labels = {'text': ' '}
... | [
"3150665355@qq.com"
] | 3150665355@qq.com |
707305a90e1834f2ba69595ca2d350f8ce033c35 | 9ae45d9917983d255a2fcfa09bff3d5395734dfb | /OpenCV_contour_retrieval_mode.py | 0a13a1464054b3793646ca8c9de846b25d771cac | [] | no_license | ganzerkim/OpenCV_basic_examples | 88aeeb5f5b8bf0fae4594bea5fd8f640a02fe3b5 | 18d9cfcf6673478c9a82dce7161c32a3fd51fa68 | refs/heads/master | 2021-10-22T03:00:04.839651 | 2019-03-07T15:38:05 | 2019-03-07T15:38:05 | 172,716,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 6 23:47:30 2019
@author: ganze
"""
import cv2 as cv
import numpy as np
img_color = cv.imread('y.png')
img_gray = cv.cvtColor(img_color, cv.COLOR_BGR2GRAY)
ret, img_binary = cv.threshold(img_gray, 127, 255, 0)
#contour Retrieval Mode는 총 4가지
#RETR_TREE,... | [
"noreply@github.com"
] | ganzerkim.noreply@github.com |
df5d39c58929100b51c6e381b7857341c5650f11 | 15082a212458e7cb1ea88fc40e0d954d44d22f31 | /src/posts/migrations/0003_auto_20180624_0135.py | 104e6dff6560f76652722b0bb6df1587d28382de | [] | no_license | stopamusa/trydjango | 85734312a3444b506aeaa35dbf1dce38cc44b956 | 525c4ec1cdce8ba018529e8445b5719a12fc4c5e | refs/heads/master | 2020-03-21T06:45:01.058344 | 2018-06-23T18:58:50 | 2018-06-23T18:58:50 | 138,239,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-23 17:35
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_post_user'),
]
... | [
"31841917+stopamusa@users.noreply.github.com"
] | 31841917+stopamusa@users.noreply.github.com |
65e0291639ebec067e0dcd604abd5aaedb3f2f2f | 38900ad30dbf214a2dcb3f6f2fb1187200cea7f1 | /hero_rpgpreinheritance.py | 2d1794d133dddedf4cfacfde7977ae6850f216cb | [
"MIT"
] | permissive | ahmermalik/hero-rpg | c5ee86f7b753204bd1ff2199c0211b0903688e67 | 09185a4187fda7d2ad766fd366276db7d334c26c | refs/heads/master | 2021-07-05T22:37:07.648804 | 2017-09-25T00:08:18 | 2017-09-25T00:08:18 | 104,235,237 | 0 | 0 | null | 2017-09-20T15:42:41 | 2017-09-20T15:42:41 | null | UTF-8 | Python | false | false | 2,046 | py | #!/usr/bin/env python
# In this simple RPG game, the hero fights the goblin. He has the options to:
# 1. fight goblin
# 2. do nothing - in which case the goblin will attack him anyway
# 3. flee
class
class Hero:
def __init__(self, health, power):
self.health = health
self.power = power
def ... | [
"ahmer9800@gmail.com"
] | ahmer9800@gmail.com |
b2ef089382ce1cb9f95bf36c276ac46473b3e651 | 1abd183f85f4d6e3654af22c1a306c6579502214 | /student/forms.py | 749f213630bf334c2f5d66ecee3d8aabe2cd9399 | [] | no_license | datrix/infs3605 | 81afc443534e87323bb8934d73881ff4dc0e7c9a | 5986b9dceeb13138705f9da9aad0b24271036c17 | refs/heads/master | 2022-07-26T01:43:57.509621 | 2016-10-26T03:19:48 | 2016-10-26T03:19:48 | 68,784,231 | 0 | 0 | null | 2022-07-07T22:53:01 | 2016-09-21T05:46:42 | Python | UTF-8 | Python | false | false | 3,596 | py | from django import forms
from django.views.generic import View
from .models import student
from .models import degree
from .models import enrol, coopPlacement
from django.contrib.admin import widgets
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, Div, ... | [
"sworden9@gmail.com"
] | sworden9@gmail.com |
6595fb71c70fc74783a8cd72a479c17a5a5f438a | c48c1f0dcffe38966b599250f02c202bc961cb34 | /aws/api/S3.py | 0b2b48c33f1e8eab90c69fb27bfabe0976791048 | [
"Apache-2.0"
] | permissive | mikhailadvani/aws-security-test | 503a9412058b88f2deefba3805a72c0b1bc173aa | f751661e4b9a7a2c09c7a0464700e078820cf384 | refs/heads/master | 2021-06-21T22:15:31.318681 | 2017-08-21T18:31:41 | 2017-08-21T18:31:41 | 72,627,142 | 9 | 13 | Apache-2.0 | 2018-08-27T06:35:41 | 2016-11-02T10:03:04 | Python | UTF-8 | Python | false | false | 407 | py | import boto3
import ast
class S3:
def __init__(self):
self.s3 = boto3.client('s3')
def getBucketAcl(self, bucket):
return self.s3.get_bucket_acl(Bucket=bucket)
def getBucketPolicy(self, bucket):
return ast.literal_eval(self.s3.get_bucket_policy(Bucket=bucket)['Policy'])
def ge... | [
"mikhail.advani@gmail.com"
] | mikhail.advani@gmail.com |
dab5d3cfa57ce5c42b986123e0df58c8cfea27fe | 9431070f08eb587e00225b98cf27cf2f1494e519 | /The-Python-Workbook/2-Decision-Making/exercise37.py | 5d3f327186b021de31438f086ae8d1c3a8090701 | [] | no_license | emilianot04/Exercise_Python | 94908fd2612da077717de8907a4b9a39b9de9480 | abc29498f4c7efe1c4e42ad24e3850ad2f330615 | refs/heads/main | 2023-06-24T12:37:02.167480 | 2021-07-21T16:29:07 | 2021-07-21T16:29:07 | 377,550,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | """
In this exercise you will create a program that reads a letter of the alphabet from the user. If the user enters a, e, i, o or u then your program should display a message indicating that the entered letter is a vowel. If the user enters y then your program should display a message indicating that sometimes y is a... | [
"Emiliano@iMac-Emiliano.fritz.box"
] | Emiliano@iMac-Emiliano.fritz.box |
fdfeb9760cd25f62a5213d0e45ce9bdc30e836f3 | f1cb311afbca051b66205c1e4bbe570ed37cfe02 | /src/memberships/admin.py | f236cedfff84ef2e074d9e6ce1e134b48a52cd18 | [] | no_license | defcon1983/Video-Membership-Django | 9eb430450f4980594f885bf3179be66b94614ab4 | 49444d5d0626ac102e596f5e13f9a996dc137706 | refs/heads/master | 2023-03-26T22:05:12.393506 | 2020-06-03T22:31:48 | 2020-06-03T22:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.contrib import admin
from .models import Membership, UserMembership, Subscription
# Register your models here.
admin.site.register(Membership)
admin.site.register(UserMembership)
admin.site.register(Subscription) | [
"shahzaibakash@gmail.com"
] | shahzaibakash@gmail.com |
00525d1b1729de186c4e477e804e3f2aca3d64c8 | 10d9de608a65d9b589248eb0c34fb04aa4f9af3e | /docs/conf.py | e7d970ebb413f9ec2d52d3b219eb47f3fb5e9150 | [
"BSD-2-Clause"
] | permissive | metatooling/sphinxcontrib-editable | 69c27ef35081ab56b3dcc48d43f48b6454e07184 | 5d0cb42d40505d21516b5c6f3b9daa4bf4434b2c | refs/heads/master | 2020-08-07T01:59:29.805596 | 2019-10-08T23:32:34 | 2019-10-08T23:32:34 | 213,251,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.autosummary",
"sphinx.ext.coverage",
"sphinx.ext.doctest",
"sphinx.ext.extlinks",
"sphinx.ext.ifconfig",
"sphinx.ext.napoleon",
"sphinx... | [
"interdoc@cordaz.com"
] | interdoc@cordaz.com |
04b4a536ba96e89e25da1c88e6fb100ff5ea651c | ab8c9c355264d623c1c53b611c88db0b3dd5b9b5 | /begginning_cerv/dictionaries.py | bd5982bab43c5e395fd915bb64adcbcf06256a2f | [] | no_license | cervthecoder/scratch_code | a815f867dc8d0f65cf49af08490c5e5829463534 | de521cd5f4a03aed3eda8f1ee00bb43aca3ade8f | refs/heads/master | 2022-11-18T22:46:18.094857 | 2020-07-15T15:40:22 | 2020-07-15T15:40:22 | 232,979,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py |
monthConversions = {
"Jan": "January",
"Feb": "February",
"Mar": "March",
"Apr": "April",
"May": "May",
"Jun": "June",
"Jul": "July",
"Aug": "August",
"Sep": "September",
"Oct": "October",
"Nov": "November",
"Dec": "December",
}
print(monthConversions["Nov"])
print(mon... | [
"matej.cervenka03@gmail.com"
] | matej.cervenka03@gmail.com |
e1d3416783dbee5d2d2c6dda0278ee13e91866bf | 1e6afcbff258481c5b0f700eb3f4c26a8df05ee1 | /conf.py | 29357b4aac34c415f7299d4f4b6f4afa4c85ff00 | [] | no_license | lacus577/resys | b92f42b0fbb457809d1acca0d09be2c91b8e3989 | 39758ebd61669f7a519bf36e67caccdad9f7cb6e | refs/heads/master | 2022-12-08T22:19:18.154495 | 2020-09-20T05:15:37 | 2020-09-20T05:15:37 | 295,891,580 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | import os
# valid集合比例
valid_rate = 0.2
# 样本采样比例
sampling_rate = 0.05
# 每路召回策略召回数量
itemcf_matching_num = 1000
# -------------------------- 特征 --------------------------
# 正负样本比例
neg_pos_rate = 20
# gbdt+lr baseline特征:
baseline_features_columns = [
'UserCate1', 'UserCate2', 'UserGender', 'UserAge', 'UserComsumpt... | [
"jiatao577@163.com"
] | jiatao577@163.com |
5a3124f99109b12cba535fb69171824dc8d287be | 90c677965e6429bd9d5453943df7275be1cb5b8f | /Week_2.0/Assignment_2.py | 2d787e9d6f22439e07eb2a8718f6a6f2b8e57ec0 | [] | no_license | TASNUBA-HOSSAIN/Python-Assignment-2.0 | 17e2e705f22136f48cc54378aa9873d84b659bcd | e64ae3087591c33232b0dcf140694b18781a895e | refs/heads/master | 2020-04-08T09:53:06.541480 | 2018-11-26T23:04:22 | 2018-11-26T23:04:22 | 159,244,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 23 01:32:33 2018
@author: TASNUBA
"""
## Part 1
gradient_func_x = lambda x: 2*x + 12
gradient_func_y = lambda y: 2*y + 4
X_0 = 3
Y_0 = 3
#initially X_old is X_init, that's the point we start from
X_old = X_0
Y_old = Y_0
#Learning rate to do the shifting of slope
learn... | [
"tasnubahossain99@gmail.com"
] | tasnubahossain99@gmail.com |
628273600b3b177e554c810b42d93f065917c1c4 | 70fd5649bdde3de3f845589f3dbb8282a7ced7b2 | /mbt.py | d26ebbb79891273b4a252776936c5b34a0b2c169 | [] | no_license | VanRitzOwen/ML-Foundations | 7c9c54d48d152e93e3d962f2b63a5c33be7a1074 | 8f31b05828daabba7ac20eed3ec660fcee6f5d16 | refs/heads/master | 2022-11-29T11:11:22.211838 | 2020-08-05T22:37:30 | 2020-08-05T22:37:30 | 285,418,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
from sklearn.ensemble import RandomForestRegressor
from sklearn.pipeline import make_pipeline
from sklearn.model_selection import GridSearchCV
from sklearn.metrics import mean_squared_error, r2_... | [
"zbwen406@yeah.net"
] | zbwen406@yeah.net |
cd0f02b2b7910833b1a04e12120f795ef04b78d9 | 8c322f98385c11965f7820bc6b99546556b4fb63 | /mms_pair/api/serializers.py | 910d17307104fd814fc1c38351c69bebee10b873 | [
"MIT"
] | permissive | mvr-garcia/mb_challenge | e6b723eaa1d57fa870a0b74dce408a85fc7f6f4f | 5c1d36e35693cf3b81a4b51a821b0d9688b1d0e6 | refs/heads/main | 2023-04-06T10:38:58.865855 | 2021-04-12T22:55:07 | 2021-04-12T22:55:07 | 356,965,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | from rest_framework import serializers
from mms_pair.models import Coin
class CoinSerializer(serializers.ModelSerializer):
class Meta:
model = Coin
fields = ['timestamp', 'mms_20', 'mms_50', 'mms_200']
class CoinMms20Serializer(serializers.ModelSerializer):
class Meta:
model = Coin
... | [
"mvrgarcia05@gmail.com"
] | mvrgarcia05@gmail.com |
73c7def96b73ffe9624d1c69ed41988bf8ec96b6 | fe2a3482a3752bfb123182ef0d4e6607b6b169cd | /scripts/pytext/split-extended.py | 7d75259af3f1169033bf3a7e7fbcecb5c762909d | [] | no_license | MANASLU8/VoiceIoT | 4c4fb123081cdcbe06f9e0839c0edea9327b56df | 5d5dd3ed37f8815fe51ea204596676b88447f600 | refs/heads/master | 2022-12-11T13:51:41.440661 | 2019-11-29T15:49:54 | 2019-11-29T15:49:54 | 143,786,995 | 1 | 0 | null | 2022-12-08T06:09:17 | 2018-08-06T21:48:38 | Python | UTF-8 | Python | false | false | 2,346 | py | import json, random, sys
from .. import file_operators as fo, utils
config = utils.load_config(utils.parse_args().config)
data = fo.read_lines(config['paths']['datasets']['pytext']['data-extended'])
test_samples = {}
validate_samples = []
NO_SLOT_MARK = "NoLabel"
# group samples by labels
samples = {}
for sample ... | [
"zeionara@niuitmo.ru"
] | zeionara@niuitmo.ru |
9547ea1f783a6dde9eba4d725d96cbc515750330 | 8680c0fa3cdfeb177d4e32f623e1b24ef9faccc1 | /Improved Lottery.py | ba67943c1c057b951f26cb951f3f9cf7e4bf0a2d | [] | no_license | santiagoprietoar/PythonBasicPrograms | e26ee6365a65c4629c3e90ae05c724590b184472 | 0cdb0435f68e308b05f5dc76f67d2ee25342e58a | refs/heads/master | 2022-12-18T15:28:55.605108 | 2020-09-26T20:24:35 | 2020-09-26T20:24:35 | 296,893,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import random
# This line creates a set with 6 random numbers
lottery_numbers = set(random.sample(range(22), 6))
# Here are your players; find out who has the most numbers matching lottery_numbers!
players = [
{'name': 'Rolf', 'numbers': {1, 3, 5, 7, 9, 11}},
{'name': 'Charlie', 'numbers': {2, 7, 9, 2... | [
"noreply@github.com"
] | santiagoprietoar.noreply@github.com |
cbc6351fd46ad8ea36dc9847027121c21c9f0537 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/pandas/tests/indexes/period/test_period_range.py | 49d34248207919814f02e980ff00b963e21dcdd9 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 3,740 | py | import pytest
import pandas.util.testing as tm
from pandas import date_range, NaT, period_range, Period, PeriodIndex
class TestPeriodRange(object):
@pytest.mark.parametrize('freq', ['D', 'W', 'M', 'Q', 'A'])
def test_construction_from_string(self, freq):
# non-empty
expected = date_... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
820d4e8465a9ca575fe26c9092050f29834c8f99 | 5891051796778cfb44a255248ce38789bfef9e70 | /DjangoLearn/apps/test_django/models.py | 8820b1517c116ec9de6dbc52b1199d2373a5e12e | [] | no_license | Faithlmy/Python_base | cc546a5d86b123e102a69df1227cde9b6e567493 | 5a43557e6375dc9dbe5f6701d7c10e549873a5ab | refs/heads/master | 2021-01-01T17:07:04.097978 | 2018-03-31T16:44:01 | 2018-03-31T16:44:01 | 98,000,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,296 | py | from django.db import models
# Create your models here.
class TbCustomInfo(models.Model):
c_name = models.CharField(max_length=255, blank=True, null=True)
c_name_short = models.CharField(max_length=255, blank=True, null=True)
c_num = models.CharField(max_length=255, blank=True, null=True)
c_type = mode... | [
"lmengyy@126.com"
] | lmengyy@126.com |
a6e8c059df5232f59ffca3ef37f34122a8a96dc7 | ceef1c00e694edf4bd407f6e7e8849abd9226791 | /apps/cm.py | 694830e70599823bc95b56e7c70e00cb4e4c025b | [] | no_license | wyh33200/Dash_Go | 6efaae39c8b15cc595b5e9a7715bb92459a33e38 | ee3ac430558e2e9f6fff0be7bce6486e5455e7b5 | refs/heads/master | 2023-04-21T08:10:26.906933 | 2021-05-10T01:17:31 | 2021-05-10T01:17:31 | 344,755,704 | 0 | 0 | null | 2021-03-05T10:25:36 | 2021-03-05T09:14:09 | Python | UTF-8 | Python | false | false | 1,386 | py | import datetime
import logging
import dash_core_components as dcc
import dash_html_components as html
from sqlalchemy import create_engine
#
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", )
calendar = htm... | [
"18770038017@163.com"
] | 18770038017@163.com |
ade0436e9ac1a8be7232fb44c22733e9d08427f7 | 1a3bf9848f364ea842315bda5342600f26356577 | /Zajecia12 -Python/Napis/gameobjects/vector3.py | be1d015796b8dfbb9e18bca655b1a0a7c4a25e8e | [] | no_license | Forestf90/Grafika | 54fbc71129bb78b43be33b32b5c687b25779daed | 95d82c75eafe93bc5fbc746a2530e51556c48c1d | refs/heads/master | 2021-04-27T00:27:05.928873 | 2018-06-10T21:39:26 | 2018-06-10T21:39:26 | 123,817,040 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,678 | py | from math import *
from gameobjects.util import format_number
class Vector3(object):
__slots__ = ('_v')
def __init__(self, *args):
"""Creates a Vector3 from 3 numeric values or a list-like object
containing at least 3 values. No arguments result in a null vector.
... | [
"michalsliwa96@wp.pl"
] | michalsliwa96@wp.pl |
717bd41fe9b212c3ecf9faf925de10324dd12ab9 | ef48efff7b9022f9745145509193d551f4084376 | /novedades/models.py | f731d1dcb004d9927fff918f8e0a6360dcc718a1 | [] | no_license | ljarufe/incamotors | b5ace5cfb2f5208a31859f06da3e6cf46867b35c | 79926654e286e9fd496bb1be9ce8d03ca218d654 | refs/heads/master | 2020-05-06T12:20:00.996574 | 2013-10-21T16:09:20 | 2013-10-21T16:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | # -*- coding: utf-8 -*-
from django.db import models
from sorl.thumbnail.fields import ImageWithThumbnailsField
class Novedad(models.Model):
"""
Clase abstracta para todas las novedades
"""
nombre = models.CharField(max_length=100)
descripcion = models.TextField(verbose_name=u"descripción")
... | [
"luisjarufe@gmail.com"
] | luisjarufe@gmail.com |
b030b9b1532f3d3f32963e6690b69eb4fbe89b78 | 4aba06fd9cb6cd61dc1f06b7195b588f60670ffe | /0x0E-python-object_relational_mapping/11-model_state_insert.py | cf85f9ea815e7ce1e71c8a106a766fb1e4f5361b | [] | no_license | Uchennaore/holbertonschool-higher_level_programming | b9e71e4d289bcf16ce1adff0706260e474cea727 | 5433662047d967438982d7d2e50b8e5c96855dae | refs/heads/master | 2023-03-17T10:33:00.273768 | 2017-06-27T23:27:07 | 2017-06-27T23:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/python3
from sys import argv
import sqlalchemy
from model_state import State, Base
import MySQLdb
if __name__ == '__main__':
mysql = "mysql+mysqldb://{}:{}@localhost/{}".format(argv[1], argv[2],
argv[3])
database = sqlalchemy.create_engine(mys... | [
"corbincol@hotmail.com"
] | corbincol@hotmail.com |
afcf7aead3f79f4e7a67eb293cca02a727211e47 | 20c42cb2be000dc5b6f33a953e98e4d75c425d45 | /study_code/study_python/using_file.py | ccba9de55a4c183dc8d8ec5ca89c12e3c36c3724 | [] | no_license | lufb/code | ac5e9b056f54baf4f8fb3e955ac71b7c5339d39c | cf72556e77a45030e266dd1ea6e34b17219f3aba | refs/heads/master | 2020-12-18T18:40:49.388650 | 2016-06-15T03:11:07 | 2016-06-15T03:11:07 | 28,075,225 | 0 | 0 | null | 2014-12-17T07:20:56 | 2014-12-16T07:14:11 | C | UTF-8 | Python | false | false | 492 | py | poem='''\
Programming is funWhen the work is doneif you wanna make your work also fun: use
python
'''
f=open("poem.txt","w") # open for 'w'riting
f.write(poem) # write text to file
f.close() # close the file
f=open('poem.txt')# if no mode is specified, 'r'ead mode is assumed by default
while True:
line=f.readli... | [
"1164830775@qq.com"
] | 1164830775@qq.com |
0c5fbf27a5bb0c76633e2b3542dec3778c015070 | 05fd2d51a83c93316cd50bf31a1961f8e6629ce0 | /Salary.py | 790bd4faaa9d69195bd8831b164d7244e1ce3104 | [] | no_license | amberkakkar01/Machine-Learning-Projects | 225e94313bfd305ed1b18718fa07e683e125cbaa | fa78e2f0a041ecdf36706f93a1ffba793e2d5163 | refs/heads/master | 2022-12-01T20:13:13.920117 | 2020-08-11T14:44:42 | 2020-08-11T14:44:42 | 283,111,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | #Load the dataset
import pandas as pd
df = pd.read_csv('Salary_Data.csv')
print(df)
print(df.shape)
#outliars
print(df.isna().sum())
#Genral info
print(df.describe())
#X = df['YearExperience'].values.reshape(-1,1)
X = df.iloc[:,0:1].values
Y = df.iloc[:,-1:].values
print("Feature Data",X)
print("Target D... | [
"noreply@github.com"
] | amberkakkar01.noreply@github.com |
2756828f3761fcc61cdd0cb33462e66e7e043c25 | 38b54f8d36dcacd1d32427306d23ffb7599b737b | /ps4/ps4.py | 93cdef26ddd7cb4c7915d0bf970a80454580e3ac | [] | no_license | qiuyang57/6.00sc-problem-sets | 213c6ebd7bfe5bda41d345597d0f773d5e863577 | 8ff90797fb31855db48062c096d3f62e978d2271 | refs/heads/master | 2021-01-21T13:29:53.262797 | 2016-05-08T15:21:58 | 2016-05-08T15:21:58 | 50,235,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,489 | py | # 6.00 Problem Set 4
#
# Caesar Cipher Skeleton
#
import string
import random
WORDLIST_FILENAME = "words.txt"
# -----------------------------------
# Helper code
# (you don't need to understand this helper code)
def load_words():
"""
Returns a list of valid words. Words are strings of lowercase letters.
... | [
"qiuyang57@gmail.com"
] | qiuyang57@gmail.com |
86e33fe91cf2430565d4221890f6bbe6a320c21e | 19f7e1cbb73d8b6ab818ce36356ae6385881a4b0 | /Helix - Bootstrap/error_progress.py | b7c8e1deb5516f6a1ebe5ba996b4ccb93ee10322 | [] | no_license | DTRobson/SimulationProject | 0d51a9148af9cab1b973e86bd7900b5f80a7006a | fa76ba9de0d72df3d494d19dfc069488f6f1aca0 | refs/heads/master | 2020-07-17T21:09:34.872843 | 2019-09-03T15:13:16 | 2019-09-03T15:13:16 | 206,100,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
b10 = np.loadtxt('bsResult10.csv', skiprows = 12, delimiter = '\t')
b20 = np.loadtxt('bsResult20.csv', skiprows = 12, delimiter = '\t')
b30 = np.loadtxt('bsResult30.csv', skiprows = 12, delimiter = '\t')
b40 = np.loadtxt('bsResult40.csv', ... | [
"noreply@github.com"
] | DTRobson.noreply@github.com |
10ec8a0e3e819daa85adc891d23fc2fe9c11803f | fad866361aa4940369761123a8e5e841a69ad1c3 | /soubory_ukoly_na_procviceni.py | f6cf322a963eefa0495d7908fceb1c9c7c998689 | [] | no_license | libusepoustkova/Pyladies_lekce5 | 0ae83664fee0391f33d9c84d20e74623ea158683 | 157278580197276094c4d932b89b1cf991249fee | refs/heads/master | 2020-08-12T22:37:35.959144 | 2019-10-16T19:01:37 | 2019-10-16T19:01:37 | 214,856,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | """
samostudium:
https://naucse.python.cz/2019/plzen-podzim-2019/beginners/files/
Ukoly:
Otevřete jeden soubor pro čtení, druhý pro zápis.
1.Do druhého souboru přendejte obsah prvního souboru - samozřejmě programem v pythonu
2.Do druhého souboru přendejte obsah prvního souboru ale všechna písmena převeďte... | [
"noreply@github.com"
] | libusepoustkova.noreply@github.com |
d0da70c270dd71617fd4d3449d199f1a9f94549a | 8004cc465359aecb7a1890617646ea5b49f11d9a | /cnn_models/cnn_dropout.py | 4034ce3be9e2c7aad18f0a543a39bd23928ad07f | [] | no_license | jhyang12345/facial-recognition | 661e34d874986943f50b5b9691d186760957b594 | 2f2ba5cfcbd58efbc9de5b9f0bafc7bc640d9c26 | refs/heads/master | 2020-04-06T09:52:20.932793 | 2018-12-13T08:15:25 | 2018-12-13T08:15:25 | 157,360,076 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | from keras.layers import Input, Convolution2D, SeparableConvolution2D, \
GlobalAveragePooling2D, GlobalMaxPooling2D, MaxPooling2D, \
Dense, Activation, BatchNormalization, Dropout
from keras.models import Sequential, Model
from keras.callbacks import ModelCheckpoint
class CNNDropout:
... | [
"jhyang12345@naver.com"
] | jhyang12345@naver.com |
841ec70cff7a6255202feda2d3fa3c674009b94a | a8fac714701a9216b47ef43da8436fa1d0f8fbef | /hansards/apps.py | 5f5e17a8c96b84effbe57b91d76a1e35183497dd | [] | no_license | quiksilv/scrutiny | 8460fae584972c2300cef48dcceb03efbdc5ef62 | a77607b4a6ce932285b00bb4dff5acf82fe45694 | refs/heads/master | 2023-02-09T15:31:14.331617 | 2020-12-31T08:04:11 | 2020-12-31T08:04:11 | 303,297,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class HansardsConfig(AppConfig):
name = 'hansards'
| [
"mark@squarepotato.com"
] | mark@squarepotato.com |
17e2dbb5e0b9a0c021700f1bd2e39ce0b59e032a | ea5bdac57f23d099a35db4dc5b2e4baf5baaa86c | /wxsample.py | f180e7c14a3770075ed9573a5162cf496f5fe7b0 | [] | no_license | codeHeavy/vortex | 2fa29f0cc36188aace1518e7048e7870041d9ec3 | b7befe3deccfd3f0c434c03d903840ea37e9eb08 | refs/heads/master | 2021-01-10T13:10:51.646912 | 2016-03-08T18:38:26 | 2016-03-08T18:38:26 | 52,667,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | py | #----------------------------------------------------------------------
# A very simple wxPython example. Just a wx.Frame, wx.Panel,
# wx.StaticText, wx.Button, and a wx.BoxSizer, but it shows the basic
# structure of any wxPython application.
#----------------------------------------------------------------------
i... | [
"jishnugirish@gmail.com"
] | jishnugirish@gmail.com |
784c097f29c1199560dbfea31ffdbcf228f8ffb2 | ac915c9f40e6c2c9842bcc3a415c0d90acd4475a | /oopbasics.py | 96cd497487020827a7d7d6844144e4be6526c8b7 | [] | no_license | Trietptm-on-Coding-Algorithms/Learn_Python_the_Hard_Way | 230b6bba193663d0c576ba7ebc1abc494ad1bc59 | 0020a6df6170ab8a388fd8cf7c532c0f9ef57321 | refs/heads/master | 2021-01-18T20:07:52.069366 | 2014-01-10T00:30:00 | 2014-01-10T00:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | """
What happened is Python's original rendition of class was broken in many serious ways. By the time they admitted the fault it was too late, and they had to support it. In order to fix the problem, they needed some "new class" style so that the "old classes" would keep working but you could use the new more correct ... | [
"w4rgh0st@gmail.com"
] | w4rgh0st@gmail.com |
d48f823cfcf2710e639e3a772e9a4f1da94ef685 | ba5bfa05ee16ea52300446e3644b176044b43d0e | /Django/mysite/mysite/settings.py | 67799e1794c4f18854a457a526191a8b57158170 | [] | no_license | msrahman07/Tutorials | 6b16b91599b4270571e6f41a1b49fbb1d2535507 | 5b7d92845c0230268ec610f20c1ad6dde34e7877 | refs/heads/master | 2022-11-27T21:02:20.788392 | 2020-08-16T04:33:13 | 2020-08-16T04:33:13 | 275,960,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | """
Django settings for mysite 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 os
# ... | [
"msrahman@sfu.ca"
] | msrahman@sfu.ca |
01e57d80ebc8e6d8e0699129b26fe8a9b7a5b6b4 | e29647acac8d23dfd97deb043b9e3f15f11d264b | /SkipperDispatcher.py | 26af40b828141ac59ce27f704936e93266c8b0ec | [] | no_license | Haerok/SkipperDataGenerator | 62d8e39521943c1e68294344d1f99cf63f5cb08a | f47538504a5561b2480a76c21164bd91ea0bd613 | refs/heads/master | 2020-05-23T23:35:13.341484 | 2019-05-16T09:04:37 | 2019-05-16T09:04:37 | 186,997,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import os
import os.path
import shutil
from SkipperDataGenerator import *
def is_video(extension):
if extension == '.mpg' or extension == '.mxf' or extension \
== '.mp4' or extension == '.ts':
return True
else:
return False
def is_cablelabs(extension):
if extension == '.xml':
... | [
"bdrapeaud@freiflpt0035736.cpgrp.root.local"
] | bdrapeaud@freiflpt0035736.cpgrp.root.local |
1d4c28ff38486b42c667dcc9ccd7c19055dd4de2 | 95337b3ad66453bae38a532e0ca349785f6b7c01 | /lico/licoweb/licoweb/asgi.py | d1e75982ca5788d05ab7f79531a8e1f49a178e87 | [] | no_license | Shanukarn11/licoweb | d4531b8873e4eace5ad03110a22c5cccf9069634 | f70f462c27ac229b1cd1501e4a0f9e46f7835178 | refs/heads/main | 2023-01-15T01:02:59.344617 | 2020-11-17T12:11:02 | 2020-11-17T12:11:02 | 313,603,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for licoweb project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"developer2@bluecrestsoft.com"
] | developer2@bluecrestsoft.com |
2176af9dbac7ee196c5386b09111ef6c992b1ae3 | bea2a9300ab374f55dd10066041be907b7c667ef | /migrations/versions/7cf9963ea300_.py | d2a170bc2f720cb9757b86eaadef2995c8f2bdfc | [] | no_license | Gipnologleha/chinarov | ed6aed7ff16550d00c03d6a8b23ef819a45f320b | fd540eeac54fbd437b197ce4187ae068d083d531 | refs/heads/master | 2022-12-16T17:27:29.255454 | 2020-09-28T12:06:23 | 2020-09-28T12:06:23 | 284,992,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | """empty message
Revision ID: 7cf9963ea300
Revises:
Create Date: 2020-08-31 16:28:15.982609
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7cf9963ea300'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"strider7777@yandex.ru"
] | strider7777@yandex.ru |
7455afa728f6af5d47411cfac7fe64159c81c7f0 | 7e20c4ad991159e46462c1ef6674340d1427452e | /mfr/version.py | 3e33c308c4918e8b00b6d51b698aa58ad76155f4 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | CenterForOpenScience/modular-file-renderer | 2758fa4142251b21a10f0f8f42fdae135dd69497 | 64a04870eb6b358e4ba65dfe275869450868a2aa | refs/heads/develop | 2023-08-09T03:27:20.875353 | 2023-04-17T18:57:47 | 2023-04-17T18:57:47 | 13,421,446 | 37 | 49 | Apache-2.0 | 2023-04-17T18:58:12 | 2013-10-08T18:11:00 | JavaScript | UTF-8 | Python | false | false | 23 | py | __version__ = '23.1.0'
| [
"fitz@cos.io"
] | fitz@cos.io |
e0e17babd741e0e150fdf4822dccc0fc24996bea | 100be61cb2136d89097d929f129e6d69f8590c81 | /image_recognition/from_scratch_neural_network/predict.py | f7bdf42fc0ad3cb913a39e5aee10055c39765e41 | [] | no_license | paulasquin/mosquito-induced-epidemics-anticipation | ee57f1b0dcb3e8cd8cf17c8bc3008bbc7bb72acf | 17a51b0a1d62376a3c9ac54ca07c9f2be957cf81 | refs/heads/master | 2020-04-10T12:41:16.325493 | 2018-12-17T14:11:28 | 2018-12-17T14:11:28 | 161,029,488 | 0 | 0 | null | 2018-12-17T09:01:40 | 2018-12-09T10:50:36 | Python | UTF-8 | Python | false | false | 3,420 | py | import image_recognition.from_scratch_neural_network.dataset as dataset
import image_recognition.from_scratch_neural_network.train as train
import numpy as np
import os
import sys, argparse
from image_recognition.from_scratch_neural_network.tools import *
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as t... | [
"paul.asquin@gmail.com"
] | paul.asquin@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.