blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72ba75ce2f2e77369dead85f3da0cec06c1beb2c | 674fd493bc25fdc1ead8566492d4277fd9bf8244 | /applications/events/managers.py | a2cd2a0d5458ae45a480878dfa58960b04f18a64 | [] | no_license | EddyChavez/prototype_02_backend | af358676e25aa0404f5d9475ef7b22e6e327a5b1 | 643e444d60d21e9b8d4580854d96c72428bbe78b | refs/heads/master | 2023-08-19T10:30:48.641794 | 2021-10-18T14:19:00 | 2021-10-18T14:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from os import stat
from django.db import models
class EventsManager(models.Manager):
def events_by_user(self, idUser):
return self.filter(
create_by=idUser,
).order_by('created')
def filter_events(self, status):
if status == "EN PROCESO":
status = ["EN PRO... | [
"rafalopezrl749@gmail.com"
] | rafalopezrl749@gmail.com |
291abf8f88c116a795691df3fc7b98193a54075b | 37ca96a22cdd6535e49027b55ab59f124ec4cb65 | /train_search.py | d187f196b7cbeed25cf0fe90fac726c0c58ef933 | [] | no_license | sharat910/RL-AI-search | 43b79775c5cae17150d5cd7cf21863c3cfc1f6c2 | 81f3e74e4ff866355c335b308cd422eb4f0c77e0 | refs/heads/master | 2021-01-18T17:38:41.960632 | 2016-10-26T06:25:23 | 2016-10-26T06:25:23 | 71,972,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | from learn import MarkovAgent
from search import *
import numpy as np
simulator = SearchSimulation()
observations = simulator.observations(50000, 15)
mark = MarkovAgent(observations)
mark.learn()
class AISearch(Search):
def update_location(self):
self.location = mark.policy[self.state()]
binary_... | [
"sharat910@gmail.com"
] | sharat910@gmail.com |
6106ff1a423108266fe62c439dfa31cc744ab641 | 9c6ede34ef2027259924a231c805d36b22ab6a76 | /venv/lib/python3.5/site-packages/np_utils/np_utils.py | d55d2a6ae996fc5bd75f8a7ed30c145b93eec021 | [] | no_license | Chanaka-Sandeepa/MultiLevel-K-way-partitioning-FYP | 3810197e367784c500aabc7332c2f24e9117e4d1 | 5becf1456f27f366778e5b8fc08cdbb40626b659 | refs/heads/master | 2020-03-15T21:17:00.624112 | 2018-05-12T04:47:40 | 2018-05-12T04:47:40 | 132,351,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,030 | py | #!/usr/bin/env python
'''Utilities for array and list manipulation by David Mashburn.
Notable functions by category:
Simple utilities and array generators
-------------------------------------
multidot ->
np.dot with multiple arguments
linrange, build_grid ->
alternatives to numpy builtins (arange, mgrid)
... | [
"chanaka.14@cse.mrt.ac.lk"
] | chanaka.14@cse.mrt.ac.lk |
c31df02aecc6248d61fb8d9c39b23b9b0c863788 | 76f99e1fa00ceba393cacda03fa32cd8ed256459 | /orders/migrations/0004_auto_20180112_1501.py | b1fd562db691f08fc0193ec924147711475bb9a2 | [] | no_license | KarmOff/Django-store | 6d3c98f973be8b8f1021c8ecaa5f25988c00c207 | 047eb02a5c647dfcd4596f1a692ce47e3c27962a | refs/heads/master | 2021-05-11T19:08:06.049073 | 2018-01-19T11:01:36 | 2018-01-19T11:01:36 | 117,256,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2018-01-12 12:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('orders', '0003_auto_20180112_1436'),
]
operations = [
migrations.AlterModelOptions(... | [
"Artur69Karmov@gmail.com"
] | Artur69Karmov@gmail.com |
b01bb9a93c3e065d412c21357f12fee77952da54 | 73b67a1afd9bbc6bdba60a97fee5f1e60b2f230d | /gerencia/migrations/0026_auto_20200306_0957.py | 806512ea3a3f51d3080cc6bfdfcfcd2b79c06827 | [] | no_license | redcliver/winneridiomas | fe334c62ecbd0c162a70220032d167fe28439a9b | 49a1ce83ccf1b38171c79fef81dad5953976c78e | refs/heads/master | 2022-05-17T00:15:26.948385 | 2020-11-11T22:38:40 | 2020-11-11T22:38:40 | 201,164,959 | 1 | 0 | null | 2022-04-22T22:04:36 | 2019-08-08T02:46:11 | CSS | UTF-8 | Python | false | false | 2,011 | py | # Generated by Django 2.2.4 on 2020-03-06 12:57
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('gerencia', '0025_auto_20200306_0901'),
]
operations = [
migrations.CreateModel(
... | [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
5bc69a66e1e25bb0ebcee21075727a0653054043 | c6ec292a52ea54499a35a7ec7bc042a9fd56b1aa | /Python/459.py | 63a419e03f6d9073ad6e6bb59b4ae32ab73a6ff0 | [] | no_license | arnabs542/Leetcode-38 | ad585353d569d863613e90edb82ea80097e9ca6c | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | refs/heads/master | 2023-02-01T01:18:45.851097 | 2020-12-19T03:46:26 | 2020-12-19T03:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | class Solution(object):
def repeatedSubstringPattern(self, s):
"""
:type s: str
:rtype: bool
"""
# right = 0
# while right < len(s) - 1:
# pattern = s[:right + 1]
# matched = s.split(pattern)
# if not any(matched):
# ... | [
"lo_vegood@126.com"
] | lo_vegood@126.com |
5df310bf9221554c2aca7755dd316c3973195603 | 0a41cb8c074e0901aa42eae264aea765c7baee7d | /Simpler/UpdateLed.py | ba106c0205850ec62724dfd01ffe0391a00ded75 | [] | no_license | ynaponte/KivyControllerFiles | 8a9f3b8f4feb1f49e18e3d05d048fdcbc8a402cc | cc76cb87d2ff09be84562a9d465abd7f636a6ecc | refs/heads/main | 2023-01-13T14:49:34.998174 | 2020-11-03T21:37:38 | 2020-11-03T21:37:38 | 309,543,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from kivy.app import App
from kivy.uix.widget import Widget
from kivy.clock import Clock
from kivy.properties import ObjectProperty
from random import randint
class PageOne(Widget):
pass
class UpdateLeds(Widget):
led = []
interval = None
def schedule(self):
self.led ... | [
"noreply@github.com"
] | ynaponte.noreply@github.com |
bd30dafc407e1c82193dd1d18ef3bd72b4d9d2f0 | ff8b11f0b25625bd9ebc06fa3b730099d68a980f | /ef/1_waves/setup.py | 6b32d31735d905839f7378d3dcb57173a09f2edd | [
"MIT"
] | permissive | urbanij/misc-scripts | 457f95591039016a45b57e1450b324fbd429b841 | c4e6ee881dfe84342ee6bd34ceea1efe7d222dce | refs/heads/master | 2021-07-18T03:58:10.728238 | 2020-10-14T12:20:02 | 2020-10-14T12:20:02 | 219,166,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #!/usr/bin/env python3.7
# -*- coding: utf-8 -*-
# Sun Nov 3 19:03:45 CET 2019
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules=cythonize('functions.pyx'))
| [
"francescourbanidue@gmail.com"
] | francescourbanidue@gmail.com |
64c75f5e03d677324c18e89c974f373f8d8ecb42 | 23bd05c7101ae976daf24f8589970ac3a386dc84 | /user_data/strategies/flawless_victory_v1.py | d53fb46b9e2940765e0d0f6cb0900fb7ddecfc40 | [] | no_license | laomao323/freqtrade-strategies | 6e0be4afaf1f31321d23b187d59e8c030132e10b | e5c80abebc21e1860637f82708d9ae112eb8aaf7 | refs/heads/main | 2023-08-08T00:02:04.065736 | 2021-09-13T22:57:31 | 2021-09-13T22:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,089 | py | # pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement
# flake8: noqa: F401
# isort: skip_file
# --- Do not remove these libs ---
import math
import numpy as np # noqa
import pandas as pd # noqa
from pandas import DataFrame
from freqtrade.strategy import IStrategy
# ------------------... | [
"noreply@github.com"
] | laomao323.noreply@github.com |
fb71c6bf16123dc1846914ed9bfdd7f72013e8a0 | 0830bb4e6828689a32806854f08e256cbf64289e | /dataframelist.py | aec9e38f83e1fffa5241e6c79cc8bc17da8de026 | [] | no_license | Leesungsup/crawler | 020fed810d9cb8685b7759affcb2ba691a8b8ad5 | 1bb5591c68be49b811ec89d1493d5de08a75be19 | refs/heads/main | 2023-06-01T21:26:54.669295 | 2021-06-21T03:51:14 | 2021-06-21T03:51:14 | 377,062,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
import time
headers={'User-Agent':"Mozilla/5.0 (Windows NT 10.0; Win64; x32) AppleWebKit/536.35 (KHTML, like Gecko) Chrome/100.0.0.7 Safari/536.28"}
url="https://www.transfermarkt.com/spieler-statistik/wertvollstespieler/marktwertetop"
response=requests.... | [
"tmdtjq0116@naver.com"
] | tmdtjq0116@naver.com |
f34efdc01cb5742deab1d57ff3f345a6537d2801 | 0f1373887b8406e4ad29d6b31b028dd7d401b9c0 | /modules/urls.py | b65d660fb3cdaeca6fb8f71aaad86b6b9fd5f0b6 | [] | no_license | leonboxer/GLCNProjectSystem | 8ead467b994b0d4ea6b353cbe009b4789433419a | 1493385b825885884c207062533bd4f025e1dc9d | refs/heads/master | 2022-12-10T16:01:58.502457 | 2021-09-26T02:27:36 | 2021-09-26T02:27:36 | 204,856,426 | 0 | 0 | null | 2022-12-09T05:45:41 | 2019-08-28T05:40:00 | Python | UTF-8 | Python | false | false | 186 | py | from django.urls import path
from modules import views
urlpatterns = [
path('', views.ModuleList.as_view()),
path('<pk>/', views.ModuleDetail.as_view(), name='module_detail')
]
| [
"boxers@126.com"
] | boxers@126.com |
75655d43db3082206db13cc0ffb6a88945bc4805 | d85720bfb3a2a5431a50c595aca2e5fc8452355f | /menu.py | 28dd126114fc556b6adfaff7de2a22449515d39c | [] | no_license | Yangsiyoung0901/python | cdeb4ccc3251e5a0cf54cb8e393661aa6b78fcba | 0cc84630106f4f6380b45fbfcdda03f6b027a78d | refs/heads/master | 2020-11-26T04:02:47.409702 | 2019-12-19T08:52:14 | 2019-12-19T08:52:14 | 228,960,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #랜덤으로 오늘의 점심메뉴를 추천해주는 프로그램
import random
menu=['새마을식당','초원삼겹살','멀캠20층','홍콩반점','순남시래기']
phone_book = {
'새마을식당':'010-1234-1234',
'초원삼겹살':'010-3214-3184',
'멀캠20층':'02-1012-0154',
'홍콩반점':'02-1245-5512',
'순남시래기':'02-2221-2214'
}
lunch=random.choice(menu) #메뉴 요소 중 랜덤 택1 > lunch
print(lunch,phone_book[l... | [
"imsy901@gmail.com"
] | imsy901@gmail.com |
276b13de682e7fc8abe08d6ca8e64ff233e10536 | 1b2dc6bdf22ad1fccdb1656e138886a8d37efaa2 | /app/doxygen_xml_parser/Wrappers.py | 1e7ff972301736a5c7713038102af3b5281c49a1 | [
"MIT"
] | permissive | nlohmann/doxygen_flask | 8217fda51a858c3c1179011149dd7646055d3f08 | 66546d6e30ee688829acd4a10303c1bea9089eba | refs/heads/master | 2023-09-04T18:55:36.681688 | 2019-07-19T17:44:46 | 2019-07-19T17:44:46 | 102,527,012 | 1 | 1 | MIT | 2021-12-13T19:41:59 | 2017-09-05T20:31:25 | Python | UTF-8 | Python | false | false | 13,457 | py | # coding=utf-8
from flask import url_for
from lxml import etree as ET
import logging
import cgi
def get_bool(s):
try:
return {
'yes': True,
'no': False
}[s]
except KeyError:
return None
class CompoundDefWrapper(object):
def __init__(self, element, doxyfil... | [
"mail@nlohmann.me"
] | mail@nlohmann.me |
0b539f420affc000cef29e4210658161094afa7b | cf38a27a8fef18900ee7bd7cc5419272d9d2a4de | /liz/config/common.py | 92f4c1fd6b2e461d0996518a7ec3bee18a5bfee7 | [] | no_license | agconti/chilllizards | 1ac9fd6ff08ba78f38aee163d8f53c60840dd1da | 66c31fd55ca7e08734b9e0d0d46712fe33dfe38d | refs/heads/master | 2021-09-04T20:07:28.235398 | 2018-01-22T02:30:26 | 2018-01-22T02:30:26 | 118,359,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,526 | py | import os
from os.path import join
from distutils.util import strtobool
import dj_database_url
from configurations import Configuration
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
class Common(Configuration):
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.au... | [
"agc11d@gmail.com"
] | agc11d@gmail.com |
f0991a9f4a815a3b8131fbfa4679c7a931fc531f | cfd5892a220ec7702d5c416aa1821d2429480ede | /neodroidagent/utilities/misc/sampling.py | c9a914ed8c446663dffa16c610ac814b7e8edf17 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pything/agent | 611eac80348127b951a72ca76d2ab1f5a7732775 | 71c3bc072a8f3b7c3c1d873757cf5a1dafc3302d | refs/heads/master | 2022-04-28T08:13:27.705296 | 2020-11-17T16:58:46 | 2020-11-17T16:58:46 | 150,600,674 | 0 | 0 | Apache-2.0 | 2019-01-10T11:01:17 | 2018-09-27T14:31:45 | Python | UTF-8 | Python | false | false | 1,521 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 10/02/2020
"""
from typing import Tuple
import torch
from torch.distributions import Distribution, Normal
__all__ = ["normal_tanh_reparameterised_sample"]
def normal_tanh_reparam... | [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
03a5a066bbb6eff71926d235f467c7dd03da0218 | d226abf2608b5c14812533ff562429045353f194 | /grades_assignment.py | ff2f2dd7976fab70b5bb57341d06d31fde0cad1c | [] | no_license | devinitpy/python_tutorials | 5707005c7e3175042290a78b877f2a5b7459e060 | 195dce675947a0a6a79c7257a1276692213ab5b8 | refs/heads/master | 2020-04-06T04:38:16.041137 | 2015-07-29T06:27:13 | 2015-07-29T06:27:13 | 39,877,235 | 0 | 0 | null | 2015-07-29T06:24:48 | 2015-07-29T06:24:47 | null | UTF-8 | Python | false | false | 710 | py | # #importing all data files I will use for this programme.
file_location="C:/Users/emmanuelk.DI/Documents/python_tutorials/Keith_scores.txt"
file_location1="C:/Users/emmanuelk.DI/Documents/python_tutorials/Sophie_scores.txt"
file_location2="C:/Users/emmanuelk.DI/Documents/python_tutorials/Richard_scores.txt"
#separati... | [
"ekisaame@gmail.com"
] | ekisaame@gmail.com |
46f2bd16cb10b53e42475d5e19c7c6a0da817516 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/command_time_taken.py | 4ced6033a2531bec865a6c3223fbaa910ce1dbd7 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,106 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CommandTimeTaken:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9a041f029ecd779e853fc09740d240adebcc1ae2 | be8166e53e174085215de30e3ad4059a7f1f9763 | /PythonT/Server/Control.py | a06c23c94641152f3217c27ec39effcaa761738b | [] | no_license | mvs-training/trung | 6cf5433853f20c8b93fe0ec4d89d2398e39e0c16 | 7ba46e31d8d58b3e1daf00e11838d37bd35fa86b | refs/heads/master | 2020-03-27T06:26:00.772661 | 2018-08-25T15:13:14 | 2018-08-25T15:13:14 | 146,105,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | import socket, select, string, sys
import Server.Model as Model
class controller:
def __init__(self):
self.HOST = 'localhost'
self.PORT = 8000
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.bind((self.HOST, self.PORT))
self.s.listen(5)
se... | [
"noreply@github.com"
] | mvs-training.noreply@github.com |
3f9cae025efa9e851b6361f287bae73e9e7bbf8b | 27ec6383fab15b9060ac33b0115b3d45f455e3a4 | /Base/migrations/0005_auto_20200113_1403.py | 374e5175f9e9f339e534379ad23cc948726e3293 | [] | no_license | rakssoft/avatar | c6374e2674ab835e22f859a1d9e796dcdc5e4c32 | 86bdda0bb2123a284307d7b9a2f41a554437d67b | refs/heads/master | 2020-09-27T07:49:53.890920 | 2020-01-14T11:34:05 | 2020-01-14T11:34:05 | 226,467,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # Generated by Django 3.0.2 on 2020-01-13 09:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Base', '0004_auto_20200113_1320'),
]
operations = [
migrations.CreateModel(
name='IncomeDaily',
fields... | [
"noreply@github.com"
] | rakssoft.noreply@github.com |
82da726ec0069af26f1fdcad9463a9a15815d6fe | bc89b5556006b8b41c2212da1c37cde8da49edea | /utils.py | 20b858d405b0fe9e8da7f2f549df1c80b15cdc5d | [] | no_license | Jie-Yang/kaggle-redhat | 58976648e71782dd95dcae814a5ebee963ffdd0d | 454006edd8a56aec295634ded2db12f7f377affa | refs/heads/master | 2021-01-21T23:16:58.722126 | 2017-06-23T13:25:39 | 2017-06-23T13:25:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 1 16:40:13 2016
@author: jyang
"""
import pickle
import sklearn.metrics as mx
def save_variable(file_name,var):
pkl_file = open(file_name+'.pkl', 'wb')
pickle.dump(var, pkl_file, -1)
pkl_file.close()
def read_variable(file_name):
pkl_... | [
"noreply@github.com"
] | Jie-Yang.noreply@github.com |
7a2a32d84fa42050980475e7b305840050b490e1 | 6dbc3def25692041297b6bcf2ab79eb6a887fc14 | /xncf/plugins/EDPluginControlXAFSDataProcessing-v0.1/tests/testsuite/EDTestCasePluginUnitControlXAFSDataProcessingv0_1.py | 9e7ebaeb0f97b08a803a78ea5e5bcf1ae3570269 | [] | no_license | kif/edna | 6c7bad78639a970c6e7d611777db9234dfeca34d | 49dfb4302eaf8a6a45d3b0c08379b5412e46e443 | refs/heads/master | 2020-12-25T02:39:58.861344 | 2020-02-06T08:41:21 | 2020-02-06T08:41:21 | 3,163,718 | 1 | 2 | null | 2015-01-20T19:27:24 | 2012-01-12T16:39:16 | Python | UTF-8 | Python | false | false | 1,851 | py | #
# Project: PROJECT
# http://www.edna-site.org
#
# File: "$Id$"
#
# Copyright (C) DLS
#
# Principal author: irakli
#
# 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 ... | [
"svensson@4fc0fbde-e734-0410-b98b-b551705f41f8"
] | svensson@4fc0fbde-e734-0410-b98b-b551705f41f8 |
3306555f68d6971cc7605b1369f614e640a6605b | 0d507f0b648f554a477a70ff486271b4bacd53a6 | /userbot/plugins/hack.py | b3c389d133a015176e27c083309c8c414437c22d | [
"MIT"
] | permissive | TestingProjectBot/telegramBot | 9c6801357ac5afe1efb26cb8b80fe5ff10ad0046 | 5ae2a744c7781c10a98e1acd6d5f6109986a516a | refs/heads/main | 2023-01-30T15:08:07.644781 | 2020-12-08T08:48:06 | 2020-12-08T08:48:06 | 319,574,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | """Emoji
Available Commands:
.emoji shrug
.emoji apple
.emoji :/
.emoji -_-"""
from telethon import events
import asyncio
from uniborg.util import admin_cmd
from telethon.tl.functions.users import GetFullUserRequest
@borg.on(admin_cmd(pattern=r"hack"))
async def _(event):
if event.fwd_from... | [
"noreply@github.com"
] | TestingProjectBot.noreply@github.com |
ff4e94ae73fd74d4150fd9341fe136c96a3d2cb6 | 34a5921552537d96d9680f88b94be1706e5c8f1a | /conf/implicit/cse/more_comp_layers.py | 395f27dd62c8a145b1daf4e6c3f0208024e9e3aa | [
"Apache-2.0"
] | permissive | hunterhector/DDSemantics | 11f1a85486349627036626d3b638db39f70030fe | 65235d8897bce403e5d628ed912e516b28254c74 | refs/heads/master | 2023-07-13T05:20:13.211363 | 2023-06-21T21:44:37 | 2023-06-21T21:44:37 | 123,484,643 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import os
c.ArgModelPara.arg_composition_layer_sizes = 600, 300, 300
c.ArgModelPara.event_composition_layer_sizes = 400, 200, 200
c.Basic.model_name = os.path.basename(__file__).replace(".py", "")
| [
"hunterhector@gmail.com"
] | hunterhector@gmail.com |
4a61583ef76f3ca738cf5806520e2a4373f670c0 | 8db311ff0fa5fb0cfb237942939dc91b4f68eb23 | /venv/bin/pyside6-designer | 3d518d31b75a0390da5e68a70db0ba25a640f556 | [] | no_license | kaa-it/intercom_flasher | f9b42cab5a0a5ba71df9069fe77b2b8c592ad053 | 4d2e87953d24c959cf2d3c08a8346c3273ae5093 | refs/heads/master | 2023-02-02T15:50:39.940313 | 2020-12-15T15:48:04 | 2020-12-15T15:48:04 | 320,349,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/akruglov/Projects/Qt/intercom_flasher/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from PySide6.scripts.pyside_tool import designer
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(designer())
| [
"kruglov.it@gmail.com"
] | kruglov.it@gmail.com | |
fd05be2433dd92fa5a3d0cb67a59dc7d15f78299 | 89703798254e1569e8cd214f23d16525f9c872e8 | /empl/wsgi.py | a4f864d9fb19bff43483c10d5d8707f56de5e7e6 | [] | no_license | olfori/Django_employees | e8aad6dc554f22f2cd0e77e137fdd0b462798a0f | 93007e04e24d05027c5ab990dddc03030bf820fe | refs/heads/master | 2020-04-14T16:41:28.676376 | 2019-01-03T15:20:52 | 2019-01-03T15:20:52 | 163,958,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for empl project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"ssimonanomiss@gmail.com"
] | ssimonanomiss@gmail.com |
c5498d07005a661afe511de448fee4df328aa6bd | 176c840586e44360fe79953b901cb2ca53a7a6dc | /aim/db/migration/alembic_migrations/versions/32e5974ada25_add_epoch_column.py | b500baf77ba072727e20eee886396e980fc24c3d | [
"Apache-2.0"
] | permissive | mmnelemane/aci-integration-module | 51dabc41747b2921ad527f0f9aa4cd5b0c69578e | 9cb986dd14ad90d3ff6f39a01d16bcd190c4cbf1 | refs/heads/master | 2020-03-24T03:34:51.535032 | 2018-07-23T16:33:47 | 2018-07-23T16:33:47 | 142,424,802 | 0 | 0 | Apache-2.0 | 2018-07-26T10:18:10 | 2018-07-26T10:18:10 | null | UTF-8 | Python | false | false | 2,766 | 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
# ... | [
"ivarlazzaro@gmail.com"
] | ivarlazzaro@gmail.com |
1d9a781bce445a44d0e8816e829826bd5d73115c | 002f447f937502015bd8bf735a4e0f849fc3cfe7 | /mainform/migrations/0002_questionnaire_author.py | 6b5e580402498168f6c99952304b592416b0b74e | [] | no_license | thinson/DjangoFormInfo | 1e0f2060ab7ed8337967cbae5533fd48de2ec501 | d52672ab9ebe77268cf7849f7cb159485cd2e6de | refs/heads/master | 2020-03-27T12:23:05.908893 | 2018-08-30T12:23:18 | 2018-08-30T12:23:18 | 146,543,442 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # Generated by Django 2.1 on 2018-08-13 09:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('mainform', '0001_initial')... | [
"thinson2017@outlook.com"
] | thinson2017@outlook.com |
d6f912b3f091270a78a90a95d9b1c6f1aac2c9a0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/codewar/_CodeWars-Python-master/solutions/Complementary_DNA.py | 2611fb4f38a1f0dfc695d5497dd2c3816bb8f4fe | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 335 | py | """
7 kyu: Complementary DNA
http://www.codewars.com/kata/554e4a2f232cdd87d9000038/train/python
"""
___ DNA_strand(dna
complements {
'A': 'T',
'T': 'A',
'G': 'C',
'C': 'G',
}
r.. ''.j..([complements[c] ___ c __ dna])
print(DNA_strand("AAAA"
print(DNA_strand("ATTGC"
print(DN... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
e7b2a6f1e16a69349377c1c0e19c56e874444c85 | f431578d4d2f9f4d2bcd7fcab844cc3881202f1c | /text_handler.py | bb546bf1a156cf8dafec703cc577e59b1cc0657d | [] | no_license | Drew-LR/Text-Based-Game | 5fa8ee754fdac4b5e7391d0f8315d4ec43198164 | 77c86e9d60ea74d4f074ade0b3444fc29cbeb4bd | refs/heads/master | 2022-12-20T06:06:52.475092 | 2020-10-01T17:25:21 | 2020-10-01T17:25:21 | 284,114,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,060 | py | from constants import term
import constants
import textwrap
import random
import threader
import inventory
import ui
import maze_map
ui_ob = ui.Ui()
inventory_ob = inventory.Inventory(ui_ob)
maze_map = maze_map.Map()
class Text_handler(): # this class displaying text of various types and handles cases where the playe... | [
"drewransley@gmail.com"
] | drewransley@gmail.com |
0ff93cd631ff28f26b61eba6670ef94028d49afc | 9d31542b9287528bb0e7e0dc8a1fb8b38c0a62e9 | /monitorvm.py | 53ffff554b66e855dd63aff4df59f4d8d5f1d65a | [] | no_license | zzningxp/cloudvirt | 7622f94c43e9a65577fa61ff6a8c391befb54b64 | fbe53ad78b2b920cba0c5b4e3df504ff042458b8 | refs/heads/master | 2021-01-01T03:46:59.538997 | 2016-04-19T07:29:29 | 2016-04-19T07:29:29 | 56,573,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | #!/usr/bin/env python
import logging, time, threading
import libvirt, sys, os, re, time
import libMysqlMacIP, libMysqlInstance, libMysqlHost
from xml.dom import minidom
workpath = '/root/cloudvirt/'
state = ['NoState','Running','Blocked','Paused ','Shutdwn','Shutoff','Crashed']
def sformat(t):
t = re.split("\:",... | [
"zzningxp@gmail.com"
] | zzningxp@gmail.com |
54463866ce0c053f119721f1ea714053f0e17901 | e2c471d57d56620f7ccc8206103eeea77e07d193 | /src/localization/particle_filter_py/particle_filter_py/particle_filter.py | c13334a4eeda8dcf57d72c309c8726ce7687ce2e | [
"Apache-2.0"
] | permissive | anaaamika/Triton-AI-Racer-ROS2 | e4e85516a02b5cc35d5305ec0add4c7e5b1f0d28 | 9fa3f02a97d7f162e9fa3df80849e6fbf09ae517 | refs/heads/main | 2023-09-04T22:56:09.170957 | 2021-11-23T01:28:46 | 2021-11-23T01:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,997 | py | from datetime import datetime
import numpy as np
from threading import Thread, Lock, Event
from dataclasses import dataclass
import time
import math
@dataclass
class ParticleFilterConfig:
initial_position: tuple
initial_orientation_deg: float
max_orientation_change_deg: float = 1.0
max_position_change... | [
"hxue@ucsd.edu"
] | hxue@ucsd.edu |
3c1247ee2f73642684359b613ba0052632fc7de8 | 9fe33427072df81a3f470048d99961283057df12 | /adhoc.py | b57e99fd1f1247e76a4223f1692f2ab8c9a12cdf | [
"Apache-2.0"
] | permissive | AppAdhoc/adhoc_python_sdk | 7971572b278232fe4e4a5981e00aa33758854f66 | 8b60b278ceb79a0106e0b40ab4181fe472d8aa90 | refs/heads/master | 2016-09-01T11:22:37.290977 | 2016-03-10T08:48:31 | 2016-03-10T08:48:38 | 48,989,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | # -*- coding: utf-8 -*-
import requests, json, time
class AdhocTracker(object):
""" Get flags and upload track data.
The methods in this class will request data through network, so they maybe
slow and block the whole thread. Wrap them into async calls or use thread
pooling to speed things up.
At... | [
"wbin00@gmail.com"
] | wbin00@gmail.com |
983ef5482bd7ce1f6da619f472bcfa3272f462b7 | f2aa05d301d021ea29ed921352678c3410b1d0ba | /util/dvsim/Scheduler.py | ad880ec8f189f7c6b0bb4d07cd8aa241b2f9328d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | olofk/opentitan | 87ae932fd8c715e06e05966b0ff1cab1af0294ba | a6f0f3a4c6b80ccfea7bc8462d0797267bef5d22 | refs/heads/master | 2022-05-02T02:46:58.336088 | 2022-03-09T21:19:22 | 2022-03-10T06:38:48 | 220,017,720 | 3 | 1 | Apache-2.0 | 2019-11-06T14:37:15 | 2019-11-06T14:37:14 | null | UTF-8 | Python | false | false | 20,103 | py | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
import logging as log
import threading
from signal import SIGINT, signal
from Launcher import LauncherError
from StatusPrinter import get_status_printer
from Timer import ... | [
"46467186+sriyerg@users.noreply.github.com"
] | 46467186+sriyerg@users.noreply.github.com |
aa42aae2bc21964479baba6496dd8235bea5ce9a | a468f99d707e8dbe418ea516def55ffb008c84cb | /Tester.py | acadd8537246bbffd5c0225b21b471b484c2fee3 | [] | no_license | LightingTom/DynamicRecSys | e5305edd3bf4d4dfdcccbcf50eabd1a23301efd0 | b6ccb11eb2ab325e0a3f647fb3bf561f02fd0644 | refs/heads/master | 2023-04-17T14:06:12.919667 | 2021-05-06T07:50:51 | 2021-05-06T07:50:51 | 363,075,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,476 | py | import pickle
class Tester:
def __init__(self, path):
# Top K
self.k = [5, 10, 20]
self.session_length = 20 - 1
self.pickle_path = path
self.min_time = 1.0
self.i_count = [0] * self.session_length
self.recall = [[0] * len(self.k) for _ in range(self.sessio... | [
"1437711608@qq.com"
] | 1437711608@qq.com |
064c5b01507ed697d177131614a7dceb43b5d02c | dd53e24e5b8cebd27b5e97f08f8c23996e23ab17 | /globalkitchn/globalkitchn/wsgi.py | d3817838af83be8d8a00bef5a7919690342e9eaf | [] | no_license | kenners2082/DjangoBoards | e4c7a5a7adc2b5663b86dd1a36be4c26e4910d39 | a5bcf7aeba0810ce91dc2608818d44f2f15504be | refs/heads/main | 2023-08-15T20:52:25.580620 | 2021-09-15T02:15:35 | 2021-09-15T02:15:35 | 329,095,140 | 0 | 0 | null | 2021-09-15T02:15:36 | 2021-01-12T19:47:52 | Python | UTF-8 | Python | false | false | 401 | py | """
WSGI config for globalkitchn 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"noreply@github.com"
] | kenners2082.noreply@github.com |
d4799c7ea3cf1a34e14ddd2e356a54159e586832 | ef9f72be8896231f0f4b778ea46c45da9c965792 | /python/6/6.3/user.py | c1eb4aa9da70cf7c08a848ac390279360256f0ca | [] | no_license | maxfactory/pythontest | 886c7e95fc16c72c715457d9315b7774a20f4147 | ef2bce720854878b7daabe424833828f51ffbad2 | refs/heads/master | 2021-07-15T08:48:31.225699 | 2020-10-16T09:48:53 | 2020-10-16T09:48:53 | 217,454,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | user_0 = {
'username':'efermi',
'first':'enrico',
'last':'fermi',
}
for key,value in user_0.items():
print("\nKey:" + key)
print("Value:" + value) | [
"caoqianguse@163.com"
] | caoqianguse@163.com |
eb8d213f2b9d729cce8e123798b376f8e774e05c | 9db6ba55baecdb817a6c6cc6a3a7bffa216b1547 | /vulcan.py | 1a814d460463ed340cfe867a74d543852e40e850 | [] | no_license | someonecallsdu/git-try | ec6c1847e9f0e05f84089f993b6dc573f777a0d8 | 5b93d0ddcfe65c8ca6218ed8cc9bc7b2a9d20a8a | refs/heads/master | 2021-08-08T11:45:24.334523 | 2017-11-10T08:27:18 | 2017-11-10T08:27:18 | 110,114,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | print ('checkout dev')
| [
"someonecallsdu@hotmail.com"
] | someonecallsdu@hotmail.com |
d2361a506abd73f1fe23e5ea78b143068b11e033 | 31e02058caaf18935d11f851f242a4d23d22ef5e | /HackerRank/Tutorials/10 Days of Statistics/day0-s10-weighted-mean.py | 05f68de4c50087d926288b18faf27ed5ae6a8263 | [
"MIT"
] | permissive | neiesc/Problem-solving | f140c61912b2274c8a1e3ef2a01cfda92a86c9bf | d3bce7a3b9801e6049e2c135418b31cba47b0964 | refs/heads/main | 2022-11-10T06:58:23.674592 | 2021-01-03T19:14:20 | 2021-01-03T19:14:20 | 16,239,265 | 1 | 0 | MIT | 2022-10-27T00:55:02 | 2014-01-25T20:31:23 | Python | UTF-8 | Python | false | false | 610 | py | #!/bin/python3
# Day 0: Weighted Mean
# https://www.hackerrank.com/challenges/s10-weighted-mean/
def weighted_mean(elements_x, elements_w):
multi_x_w = 0
for idx, x in enumerate(elements_x):
multi_x_w += x * elements_w[idx]
return multi_x_w / sum(elements_w)
def solve(elements_x, elements_w):
... | [
"edinei.esc@gmail.com"
] | edinei.esc@gmail.com |
e11336b93b4a4e7350464463be5234b2c2f4375d | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3534.py | ef2c389031466ff5b8e438a9faa4c72827520dcd | [] | 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 | 13,355 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
1f54eb40326f098e80f4e1b57a7b2e475748d232 | f8981c67954828e4a1a0249fbdcb36d099090cd9 | /Module3/wildcards_characters.py | 537298da4b72aa56027a6645dfbcd28d4fb029b2 | [] | no_license | shreyakapadia10/Using-Python-to-Interact-with-the-Operating-System | fc67a82bc0950c0d9b2faa39f33c25459f72b505 | 57aef8af9137f6df5bdff76f4d138e527b5b6cbf | refs/heads/master | 2022-12-27T18:39:37.837440 | 2020-10-03T07:04:54 | 2020-10-03T07:04:54 | 300,818,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | import re
print("To print string that contain python either uppercase or lowercase 'p': ")
print(re.search(r'[Pp]ython', 'Python'))
print("To search for a string preceeded by any letter: ")
print(re.search(r'[a-z]way', 'The end of the highway'))
print('What if we put " way" in matching string?')
print(re.search(r'[a... | [
"shreyakapadia8@gmail.com"
] | shreyakapadia8@gmail.com |
960b02d93113a8478a13df07a8b43fa798d4637f | 42fd619da18995209ec1e82aacc3b7bf5d7ed4c7 | /function-ex2.py | 846d62d95d8835bb5091687f473e705cedede63d | [] | no_license | deepanshu102/python | 88e73f14931224bdf4f143146c2e10c4bc07d409 | a4e92207a9e6917e685870c1a80afe31e51b544f | refs/heads/master | 2018-10-06T09:18:29.121893 | 2018-06-28T17:46:36 | 2018-06-28T17:46:36 | 135,988,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from fun import *
mylist=[10,20,30];
chn(mylist);
print(mylist,' Id of funtion-ex2 file variable',id(mylist));
| [
"noreply@github.com"
] | deepanshu102.noreply@github.com |
49ad24df495042a2ae0d28f1c7f0ef4b2b30b31a | b82b620b031c23803da64fe1080ec599a44cb486 | /hello.py | 4dbab427f50697c8f953efdf3ebd5210c6bceed0 | [] | no_license | JayakrishnanGnair/hello | e9cf5c2f4740af82ebede305f6b4419f2f8fbe73 | eee1bf9bfe6b4b1407721e1184121dda0a650d1f | refs/heads/master | 2021-01-23T12:54:49.664621 | 2017-06-02T23:54:45 | 2017-06-02T23:54:45 | 93,211,916 | 0 | 0 | null | 2017-06-02T23:52:23 | 2017-06-02T23:52:23 | null | UTF-8 | Python | false | false | 45 | py | print "Hello, World!"
print "This is a test"
| [
"noreply@github.com"
] | JayakrishnanGnair.noreply@github.com |
6e51a0e035259ae12749b91bcec3a581c30c4439 | d8ee60f857a5465ffac606e720b6823ce47ffa67 | /Reddit/scrape_pubs.py | 976111d764545071ddcf71eacdacac01a6af9b73 | [] | no_license | Toruitas/msc-notebooks | 5af26e3343680eb5c4839bab2815b56bc39c648c | b2d8703e098c7277ea1d282e86f0f03e243072be | refs/heads/main | 2023-01-18T19:58:00.136916 | 2020-11-25T20:34:40 | 2020-11-25T20:34:40 | 314,353,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import requests
import pandas as pd
from bs4 import BeautifulSoup
from time import sleep
import sys
sys.setrecursionlimit(10000)
df = pd.read_csv('top_and_controversial_lg_wpub.csv')
data = []
for idx, row in df.iterrows():
print(f"{idx}/{df.shape[0]}")
url = row.url
if data:
if row.publisher ... | [
"Toruitas@gmail.com"
] | Toruitas@gmail.com |
dd7b5f4a5fa3c054402f25acd7d6bf342a0a7fe7 | 5d47ca14816697546bdf739e0fbd9b3dce7b661e | /program_3.py | 94bf5e7c1014ec52d038b0402a482a96ffa680d4 | [] | no_license | julywaltz/crossin_execrise | 16d7a9d269df100378f7dd5a6c1699f0376c9c0b | 5d4db61117ec9642e952fd486fb494605728bd8d | refs/heads/master | 2021-06-20T07:08:52.588565 | 2019-07-13T17:12:14 | 2019-07-13T17:12:14 | 141,291,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,287 | py | # -*- coding: utf-8 -*-
import time
import os
#记录流水账单
def keep_account():
print('\n记账模式')
deals = input("交易对象:")
income = input("收入/万元:")
expenses = input("支出/万元:")
acc_rec = input("应收账款/万元:")
acc_pay = input("应付账款/万元:")
t = time.localtime()
date = time.strftime("%Y-%m-%d", t)
cas... | [
"julywaltz77@hotmail.com"
] | julywaltz77@hotmail.com |
811776c6ebde801e155c4b02771b5ab57c065e12 | 4f214b677e04ca11ac88e326a5a1482853fe74eb | /histreader.py | 18b1f478ce3ce2afabca3af1f938a2c221caf89d | [] | no_license | yschen5812/TradingReminder | 694272a1e48ca169a072e7145944367dafe0527c | d71628d973f7bba57ffa0bc04a391d59012179cc | refs/heads/master | 2021-08-22T15:16:08.874551 | 2017-11-30T14:19:32 | 2017-11-30T14:19:32 | 103,205,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | from datetime import datetime
def readHistoryFile(filename, **kw):
# Read in history.txt and insert into a list
lines = [line.rstrip('\n') for line in open(filename)]
# Remove title line
title = [line.strip() for line in lines.pop(0).split("|")]
# Transform to tuples
def transform(lineStr):
... | [
"herbert5812@gmail.com"
] | herbert5812@gmail.com |
dddd62e1a2a5ee26880e2c9dead2db8f0857be2f | afed1c51431bd391a49de24aa23a83b6f982be34 | /scoreboard.py | 9f468b101a9ee11aaed5dae19e01184f132dc0ff | [] | no_license | nambosaa/Turtle-Crossing-Game | 95a528747a15b6b521f76f57d4085eda1271fd5d | de2e87c7a2f4795fb9b596e44beeb6b0bd2e9ade | refs/heads/main | 2023-02-19T17:13:52.939700 | 2021-01-21T13:11:11 | 2021-01-21T13:11:11 | 331,631,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from turtle import Turtle
FONT = ("Courier", 24, "normal")
class Scoreboard(Turtle):
def __init__(self):
super().__init__()
self.penup()
self.color("black")
self.hideturtle()
self.goto(0, 250)
self.score = 0
self._write(f"Your score is: {self.score}.", alig... | [
"noreply@github.com"
] | nambosaa.noreply@github.com |
f7ab510cb1c97f5fec5a121805cf1cd8526106b8 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/16_Web_Services/d_web_scraping/find_emails_on_a_web_page.py | c0bac65552602fe95aae23397f5a00bb0f1d26c7 | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 172 | py | from webscraping import download
D = download.Download()
emails = D.get_emails(
"http://buklijas.info/", max_depth=2, max_urls=None, max_emails=None
)
print(emails)
| [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
37568095d43af822eddaf9b4f8b2bd33835e8c3f | 0b92d488745f2115e7e209a59796fc4ee4abcd9d | /Python/arphack.py | 4d5c86e6d290e1a17f3bd7755ed0ff6e991b11dc | [] | no_license | alvaromerinog/Proyectos_ASIR | 3d04e7d595bad6aea0da1a44523e31f47cca9954 | 5e7400f93841b20324e6730ed2e1cb9109a88079 | refs/heads/main | 2023-03-18T18:09:34.897665 | 2021-03-09T20:28:48 | 2021-03-09T20:28:48 | 331,705,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | import sys
from scapy.all import ARP, Ether, ICMP, IP, sendp, sniff
def par(arpPac):
print("Esta es la funcion parametros")
print(arpPac[0].show())
return arpPac
'''
def tv(arpPac):
print("Esta es la funcion tiempo de vida")
del (arpPac.ttl)
arpPac.ttl = 257
while arpPac.ttl < 0 or arpPa... | [
"amerino.informatica@gmail.com"
] | amerino.informatica@gmail.com |
b8fa55f03aa0e5bbe18f7d43d5e158413fa2f361 | ffe80f74fc1e36485371ddabde1ad778445acafd | /yolo_object_detection.py | 5aadac5f340b54e7ecebf1553de9fa16807384f9 | [] | no_license | bimap98/how-train-yolov3 | 364e376bc42419faa2a1870908787b60efd095ba | b220afd183564955a89ccd2ec5b987fddd63f5d8 | refs/heads/main | 2023-06-04T17:11:24.465199 | 2021-06-22T03:04:17 | 2021-06-22T03:04:17 | 378,720,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | import cv2
import numpy as np
import glob
import random
# Load Yolo
net = cv2.dnn.readNet("yolov3_training_last.weights", "yolov3_testing.cfg")
# Name custom object
classes = ["hand"]
# Images path
images_path = glob.glob(r"E:\Medium\*.jpg")
layer_names = net.getLayerNames()
output_layers = [la... | [
"noreply@github.com"
] | bimap98.noreply@github.com |
261823b9c0ad5dc32c2dc9390ea4af1c71c7e081 | 3fde7eae5391795834b28dced75d607ec00302d1 | /tests/test_cylinder.py | a6afb1bbcc094cfacf554e3faca3473e8415a69e | [
"MIT"
] | permissive | nlaurance/pyscad | 047c16aa7e57f3e883b886b29d7f96a6dff66efa | 3530285011c757fbfbbb36201b8e40ce4cf16c49 | refs/heads/master | 2021-05-30T18:42:48.377218 | 2016-02-25T18:58:33 | 2016-02-25T18:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from boiler import *
class TestCylinder(unittest.TestCase):
def test_sphere_creation(self):
c = Cylinder(h=10, r=20)
self.assertEquals(c.h, 10)
self.assertEquals(c.r, 20)
self.assertEquals(c.d1, 40)
def test_sphere_scad(self):
c = Cylinder(h=10, r=20)
answer = "... | [
"giles@polymerase.org"
] | giles@polymerase.org |
1168b82b3ae78c45bf4e91cb4ad53489337f34fc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_toggle.py | 2e93442914303f7614638d7c20575bce2970232a | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py |
#calss header
class _TOGGLE():
def __init__(self,):
self.name = "TOGGLE"
self.definitions = [u'a small bar of wood or plastic that is used to fasten something by being put through a hole or loop', u'a key or button on a computer that is pressed to turn a feature on and then off: ']
self.parents = []
self.c... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bb89aeb87de475ad868eff3b12cbb88825dcf736 | 5769295f4a4928ba824c18ead4b35da86899791d | /core/net_normalization_functions.py | e4ad8f10a373b7a6c672e48552dd55866a741391 | [
"MIT"
] | permissive | nikon-petr/kohonen | 0f3e696a5aec33598162b641ca99c52dc3938b35 | c23ae3032c58681040fe023bfa395d1ff9989876 | refs/heads/master | 2021-06-27T12:12:34.882684 | 2020-10-05T19:51:46 | 2020-10-05T19:51:46 | 137,534,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from math import sqrt
import numpy as np
normalization_functions = {
'normalization_1': lambda x: x / sqrt(np.sum(x ** 2)),
'normalization_2': lambda x: x / np.abs(x)
}
| [
"p.nikwv@gmail.com"
] | p.nikwv@gmail.com |
7bb0b23b8bfa4d7c290e5c7bbfbf8ee918fc4df2 | c6f9e3ed414835ece850cf1b4fdc434ce954087a | /teapot/tests.py | acc5cf6eb39cf1f6c11e0f2acac6b973de581d90 | [
"MIT"
] | permissive | freelan-developers/teapot | f1f3fe45e451cbd517277a4e17bbaf31727d9b4e | 3f0c1a1a336eb6ef3f8d7e4519ba43ee0d8fc3bc | refs/heads/master | 2021-01-10T20:51:38.711780 | 2017-08-10T00:27:19 | 2017-08-10T00:27:19 | 12,052,464 | 1 | 2 | null | 2017-08-10T00:27:20 | 2013-08-12T09:30:16 | Python | UTF-8 | Python | false | false | 10,219 | py | """
teapot unit tests.
"""
import os
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from teapot import *
from teapot.memoized import Memoized
from teapot.extensions import parse_extension
from teapot.error import TeapotError
class TestTeapot(unittest.TestCase):
"""
... | [
"julien.kauffmann@freelan.org"
] | julien.kauffmann@freelan.org |
1bcdcc4b3f1ab33491a62eaaa77a02bb8fcf6d60 | 87dd0571c3c5f422900e108bc693d4803f2443b8 | /Shana/RemoveData/Install/comtypes/gen/_5E1F7BC3_67C5_4AEE_8EC6_C4B73AAC42ED_0_10_2.py | cb926ae4a0ccff7ed37db128825b1ec258741364 | [] | no_license | nohe427/MyAddins | 08e42c2dd24501c858f179d2ff134625de71d76d | 8fdb0a0925617ea33a1d8cf24b7805c1c3b1a712 | refs/heads/master | 2021-01-01T20:41:14.652161 | 2015-09-02T22:49:47 | 2015-09-02T22:49:47 | 20,631,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529,668 | py | # -*- coding: mbcs -*-
typelib_path = u'C:\\Program Files (x86)\\ArcGIS\\Engine10.2\\com\\esriSystem.olb'
_lcid = 0 # change this if required
from ctypes import *
from comtypes import GUID
from comtypes import CoClass
import comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0
from comtypes.automation import VARIAN... | [
"anohe@esri.com"
] | anohe@esri.com |
3858f2e9845f36382741bf11e618ff387c6faabf | 2f0afa5e30a4f4d823ed287ffe6dcccdfe77f5d4 | /student_net_learning/models/inception4.py | d134a2ef27be08dd37cd49dcfcbe8375153dfafd | [
"MIT"
] | permissive | Kulikovpavel/MCS2018.Baseline | 2a76119c9439f929ef536e8af671bf5665ebe3e3 | 5a3997bc9e59ea1c2ada3df4c4f036465b38303f | refs/heads/master | 2020-03-18T07:16:35.447283 | 2018-06-06T08:24:24 | 2018-06-06T08:24:24 | 134,442,296 | 0 | 0 | MIT | 2018-05-22T16:17:22 | 2018-05-22T16:17:22 | null | UTF-8 | Python | false | false | 9,043 | py | import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import torch
import torch.nn.functional as F
from torch.autograd import Variable
__all__ = ['InceptionV4', 'inceptionv4']
model_urls = {
'inceptionv4': 'https://s3.amazonaws.com/pytorch/models/inceptionv4-58153ba9.pth'
}
class BasicConv2d(nn.Modul... | [
"noreply@github.com"
] | Kulikovpavel.noreply@github.com |
423e56b566e3b60abab5e63e209b832e13ca062e | 3911b47b7aee41d281b68ef0ce69295d37bdd3cc | /py_test/manage.py | 01d03b6742ac771c0d9a589f43778bfefc7df88f | [] | no_license | ptera-py/hello-world | 42a1e64247b3d1b2e1642f643fe1a1caa0a4c749 | 29b73c229a7ba506de8f9c4494e716af61f92eb1 | refs/heads/master | 2021-01-21T14:24:21.928176 | 2017-06-25T10:33:12 | 2017-06-25T10:33:12 | 95,277,424 | 0 | 0 | null | 2017-06-25T10:33:13 | 2017-06-24T05:18:36 | Python | UTF-8 | Python | false | false | 827 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "py_test.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure ... | [
"noreply@github.com"
] | ptera-py.noreply@github.com |
0506394ed1c9c7b18d7070a7674ac49052ac815d | 0ca9a1a205e103effbadc5b9b115af941e0d4bda | /app/models/__init__.py | daa76339b7fe1bb7ccbff9d7733dcdd6f12167f1 | [] | no_license | tonyjhang/assignment | a75c3de82ea766789730492324d1a406c0e48661 | 2071761155b498905b6c24f0dcc00cf420c86a0d | refs/heads/master | 2023-06-16T10:53:49.750864 | 2021-07-17T21:22:52 | 2021-07-17T21:22:52 | 386,336,591 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | __all__ = ['Task'] | [
"tony40815@gmail.com"
] | tony40815@gmail.com |
6460068358f2fcacd4218fdf5566cc3b6e6cfab5 | e151b609b1c025ba44f76cee8b9fca77897874ae | /env/bin/chardetect | 819e16a0dbff69b885fcfc91736337965edfc31b | [
"MIT"
] | permissive | febycloud/wagtail_project_demo | 3443e60c7c5a5d5f310aab8d94657100ef0dfd94 | 0a72f112133423b08c1a149d527f3366cfad198f | refs/heads/main | 2023-06-01T07:27:15.335185 | 2021-06-03T20:17:23 | 2021-06-03T20:17:23 | 372,946,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/yunfei/Codes/mysite/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fei.yun.unhi@gmail.com"
] | fei.yun.unhi@gmail.com | |
2fa3f47590e6019234b83592cd34fe159dea3314 | 34ef54c04b369a6161c6f8a649868a47122a2d89 | /.venv/Lib/site-packages/pip/__init__.py | 9a8c59275a79c04d45305c4565c9ce5d2d656726 | [
"MIT"
] | permissive | abner-lucas/tp-cruzi-db | f70ad269c50a2db24debd1455daeddaa2ebd3923 | 595c5c46794ae08a1f19716636eac7430cededa1 | refs/heads/bioinformatica | 2023-05-18T23:23:23.458394 | 2021-06-14T02:13:17 | 2021-06-14T02:13:17 | 351,864,250 | 2 | 2 | MIT | 2021-06-13T19:52:18 | 2021-03-26T17:40:20 | Python | UTF-8 | Python | false | false | 366 | py | from typing import List, Optional
__version__ = "21.1"
def main(args=None):
# type: (Optional[List[str]]) -> int
"""This is an internal API only meant for use by pip's own console scripts.
For additional details, see https://github.com/pypa/pip/issues/7498.
"""
from pip._internal.utils.entrypoin... | [
"abnerlucas.cad@gmail.com"
] | abnerlucas.cad@gmail.com |
af604625a32d907fa6f79662e4bb0ff6143c0a53 | f0c973f32b37904b2aaa5ce552213667b8ab93b3 | /dao/weddingDao.py | b66fe188acbad91a3b978f10dc8dcfb42b7c7765 | [] | no_license | cmaiser/wedding | e4ab02c5b6c5b4d5a7281d955a0cbb3468c061d4 | ad06d0c57e979145b9333816ace407c7e258203d | refs/heads/master | 2021-01-11T20:39:46.023455 | 2017-02-23T02:29:20 | 2017-02-23T02:29:20 | 79,162,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def getHouseholds(app, db):
return "weddingDao.getHouseholds"
def saveHousehold(app):
return "weddingDao.SaveHousehold"
| [
"nnagflar@gmail.com"
] | nnagflar@gmail.com |
820ad80f50e7e860221d488214a0da709630f7d8 | 55b6f44ed6c2ebee2e1b2df74b858dcc0b8ef829 | /Test2.py | 77b81783c863f895484029a1748f5b486f168999 | [] | no_license | EmilPBInv/Vell-Assistant | 519e8abc7d6a99ba3453112df83b98915c8ff304 | 954d37378404f2429e75b8e89c6134ff712eb36b | refs/heads/master | 2021-01-19T10:26:56.950348 | 2017-04-11T19:42:08 | 2017-04-11T19:42:08 | 87,868,586 | 0 | 0 | null | 2017-04-11T00:00:26 | 2017-04-11T00:00:26 | null | UTF-8 | Python | false | false | 646 | py | import random
print ("Hi, My name is Vell, I'm your Virtual Assistent")
print ("I'll be asking you some questions, let's begin with the Test!")
name = raw_input("So, Tell me your name:")
if name <= str(5):
print ("Now I know that your name is " + name + ", You know? You have a short name")
elif name >= str(5... | [
"noreply@github.com"
] | EmilPBInv.noreply@github.com |
4b66556b19b45a618e58f7c6a908aa03089b514d | 939d8b5764a671b435fcec3e607c230b6bc2bf61 | /netrino/version.py | 304945faf25c921f6b46894b3c526bb1584cfc8a | [
"BSD-3-Clause"
] | permissive | Vuader/netrino_ui | 129026d448be2475454e244cb96fcc11fd5e3703 | 8037781ad10439deb6f4ea361a4c8a99b942a3d8 | refs/heads/master | 2021-01-22T22:35:21.224468 | 2017-03-17T16:11:53 | 2017-03-17T16:11:53 | 85,557,335 | 0 | 0 | null | 2017-03-20T09:21:28 | 2017-03-20T09:21:27 | null | UTF-8 | Python | false | false | 87 | py | # Do not edit this file,pipeline versioning is governed by git tags
__version__='0.0.0' | [
"dave@myria.co.za"
] | dave@myria.co.za |
16099667053a6a7b0853e7937c52aaf5296651fc | 2b3cfeab7137cbd3692f149c9f2bba91e85980e7 | /day13/run.py | 75d61637559bf8e36e90d34cfdc215ee58c5f17a | [] | no_license | andreypopp/aoc2019 | b87eef49a9fe295e8dd294ff7805dfbfcb75ace2 | 9416cbd4625d8e4367651154cbc141461ef6339f | refs/heads/master | 2020-09-28T17:26:04.258558 | 2019-12-15T08:28:20 | 2019-12-15T08:28:39 | 226,824,293 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,254 | py | # encoding: utf-8
import collections
class Out(object):
def __init__(self, v):
self.v = v
class Inp(object):
def __init__(self):
pass
class Stop(object):
def __init__(self):
pass
mode_name = {1: 'imm', 0: 'pos', 2: 'rel'}
def intcode(code, trace=False):
if trace:
pr... | [
"8mayday@gmail.com"
] | 8mayday@gmail.com |
c47b1fb491e2f73f14b8fa691f35bef8bee9fb72 | 819f64c5e11ad2e5f061450e1a961de914c59382 | /library_backend/library_backend/wsgi.py | 798adf786308fa74fd67b43b841da3a876945220 | [] | no_license | MaticBernik/SP_Webapp | 7804888328302086fb4a53752aa523c36ca63269 | 155e7d0911c48bd8c48aa46eafecdf3b83fcc6cf | refs/heads/master | 2021-01-12T17:26:37.800530 | 2017-01-20T14:43:56 | 2017-01-20T14:43:56 | 71,570,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for library_backend 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"mb2551@student.uni-lj.si"
] | mb2551@student.uni-lj.si |
e6d8f979f7f866f621fee950c6d3549e49215c1f | 58373aa1768d3632f0bdc9c9d6eb1eeac0d76369 | /yamtbx/dataproc/XIO/oxford2adsc.py | e785b61350972638b066509e60e92ec94faac81e | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | keitaroyam/yamtbx | ee3c6e694f3c81277dfaebf7253b159e1f14b413 | 11b27aaff4920f554b4db76e80d0d832cd23809c | refs/heads/master | 2023-07-26T03:42:05.971228 | 2023-07-12T21:00:51 | 2023-07-12T21:00:51 | 46,595,277 | 18 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import sys
import struct
#sys.path.append("/Users/plegrand/work/xdsme/XIO")
from . import XIO
header_fmt = """{
HEADER_BYTES= 1024;
BEAM_CENTER_X=%(beamx... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
befbb425b84a226c38628b952e273897cc8deb0e | 37887a008c984151a7e4d9bd8e50a204a2f71713 | /log-beautifier.py | a376bc7d8df3db0665c7f7415e6f675da6b33e07 | [] | no_license | c0derMo/clash-team-analyzer | 4e4a09be56e3abb5e73a2494f0e13fa3808632b7 | c9fea1740f786f6e3c2b21aa1808b028a5110097 | refs/heads/master | 2021-09-06T20:50:51.169139 | 2021-08-08T18:05:56 | 2021-08-08T18:05:56 | 226,484,052 | 2 | 1 | null | 2021-06-11T17:57:56 | 2019-12-07T09:08:41 | CSS | UTF-8 | Python | false | false | 732 | py | fn = input("Please enter the log path:")
f = open(fn, "r")
foutput = open(fn + "-beautified", "w")
for line in f.readlines():
# Remove all PIP Outputs
if not "Requirement" in line:
if not "pip" in line:
# Remove socket-io posts & gets
if not "socket.io" in line:
... | [
"c0dermo@curryato.de"
] | c0dermo@curryato.de |
3568275339e84528947291319d1b210cad04a5bc | 416b8852908cd9b4a7b1935679ad042eacde4637 | /generate_tfrecord.py | 4ed9cdd31469d73f72b6fdb91ba3e825e03100c5 | [] | no_license | sergemr/invoice-dataset | fad4730359f914d8e5fdab50407e079073ed822a | 4e1017fbec93fd611a69c63ca1b132983cae786d | refs/heads/master | 2023-03-15T09:50:41.315693 | 2019-07-24T07:09:35 | 2019-07-24T07:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __future__ i... | [
"noreply@github.com"
] | sergemr.noreply@github.com |
1786d2c386b3691f0df255671fc444bfd1ae19a7 | 3997edb73ae75d70705e9adf1133254bb02a7460 | /q36.py | 96c23594efdee15ba61491f055055d6382ffe0ff | [] | no_license | raghavkishan/Bio-informatics---python | ad32ad78bfb29462be4c7d9527a4cf154f43ce3a | 1c709caabf7250247362ca6b22fe7e6430e4ba37 | refs/heads/master | 2021-01-13T16:34:25.508809 | 2017-01-16T23:43:20 | 2017-01-16T23:43:20 | 79,165,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from Bio import Phylo
#f = open("test1.txt","r")
Phylo.convert('test1.txt', 'txt', 'a36.nhx', 'newick') | [
"raghav.kishan@gmail.com"
] | raghav.kishan@gmail.com |
9cf7356e60e5df3b6de7c2c5f5a8c773a114fc3e | 941b98ad52ee233897b21037c1121bf159a9364a | /doc/conf.py | d116ceb0c64f83316843c3f71b8d6e3d884bf723 | [
"MIT"
] | permissive | AlekseiCherkes/python-xmlunittest | 176c787a8ddd233e1c408a77392ff2228bc4622d | bd8ee70feb9846bbfafc2e06bb397fd3a36c5b83 | refs/heads/master | 2021-01-12T21:04:23.239947 | 2014-03-04T16:20:38 | 2014-03-04T16:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,860 | py | # -*- coding: utf-8 -*-
#
# Python XML Unittest documentation build configuration file, created by
# sphinx-quickstart on Wed Oct 16 21:42:39 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated f... | [
"florian.strzelecki@gmail.com"
] | florian.strzelecki@gmail.com |
a7644d0abc8abd49bc61ca9bc63fc47c63e7c36d | ec181b840d3462eb43de5682adde38fa3c0ab570 | /towhee/compiler/log.py | 6950a3646110f68fb258227ce966a0e93b6f21df | [
"Apache-2.0"
] | permissive | towhee-io/towhee-compiler | 37fc26ec87fc20710d2e1b653b2d83fad0dfc63f | e9a724169ae96d3ae73db732ae3d8b4e9e3f9b5c | refs/heads/main | 2023-05-23T07:59:11.217347 | 2022-09-13T11:32:23 | 2022-09-13T11:32:23 | 514,104,716 | 6 | 6 | Apache-2.0 | 2022-09-13T11:32:24 | 2022-07-15T02:10:13 | Python | UTF-8 | Python | false | false | 820 | py | import logging
import logging.config
logging.config.dictConfig(
dict(
version=1,
formatters={
"info": {
"format": "%(asctime)s|%(levelname)s|%(module)s:%(lineno)s| %(message)s"
},
},
loggers={
"": dict(level="NOTSET", handlers=["co... | [
"shiyu.chen@zilliz.com"
] | shiyu.chen@zilliz.com |
7ecd4589f801595ec4745947cf55b1548413e189 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_03_23_check_fip_predict/get_pred_plt7.py | 26ea8f6ffa8685c250850a2f96ddcfc189c47aa2 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,763 | py | import numpy as np
from numpy import linalg as LA
import h5py
import functions as rr
import euler_func as ef
import matplotlib.pyplot as plt
def field_std(el, ns, SET1, SET2, SET3, slc, typecomp, plotnum):
"""Plot slices of the response"""
plt.figure(num=plotnum, figsize=[12, 2.7])
dmin = np.min([SET1[s... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
d1dbfb5e80bd870872a98fb673742f1e6a065195 | 3aecba185bd71f62749533c2baf86d8c63dc0866 | /Exams/Python/TravelBuddy/apps/travelbuddy/models.py | b3486125234fb4c4fbffbfa9d5384321d4b9bbb7 | [] | no_license | anniemou/portfolio | ef7788ea346c26e353f31dc054a6fffbda7db4f9 | 31264460608802bf134ab0cadc74d15bc271afad | refs/heads/master | 2020-03-21T04:40:04.009551 | 2018-06-21T05:19:29 | 2018-06-21T05:19:29 | 138,121,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class User(models.Model):
fullname = models.CharField(max_length=255)
username = models.CharField(max_length=255)
password = models.CharField(max_length=255)
created_at = models.Dat... | [
"annie@moumouri.me"
] | annie@moumouri.me |
d91b4e8b7e75b2c1eeb23ba3d5a1a2627ad007fb | dbc9600d4c0fa9a8147a13bd669f1bc48876e4ed | /actualites/migrations/0001_initial.py | 366be6b26759466551760dcc0452671034927891 | [] | no_license | sarsenij/hearthstone-romandie | 9895a01fdb0b7bc5cdc5e6678914a61e06625000 | da828f1257e203065bb99ee7fb6d0dc30f09bb28 | refs/heads/master | 2020-06-03T12:13:12.702947 | 2015-07-18T16:56:13 | 2015-07-18T16:56:13 | 24,370,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Horaire'
db.create_table(u'actualites_horaire', (
... | [
"sarsenij@gmail.com"
] | sarsenij@gmail.com |
d5a1dbfe5182cf6b185eb679e884c7bcc4cde127 | 001ebc62b17790a8ee060478dedcf21875d44c36 | /Project 3: Collaboration and Competition/network.py | e5bf9259ea9c5de6f860c495d4be24a37bf8e38f | [] | no_license | AlekseySyryh/udacity_drl | b9556761e855c402ab66c16b1de4970e76424992 | 02f5c63e8b4f58c4cb35818ebb982812897c0dad | refs/heads/master | 2021-03-09T17:34:55.503431 | 2020-03-10T17:31:32 | 2020-03-10T17:31:32 | 246,363,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | import numpy as np
import torch
import torch.nn as nn
class Actor(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, fc1_units=256, fc2_units=128):
"""Initialize parameters and build model.
Params
======
state_size (int): Dimension of ... | [
"asyryh@gmail.com"
] | asyryh@gmail.com |
6e66048d22115d894ef1fd6644780866c5734623 | 4525a45c920fcf2bf2ce50091c7120c9e5789ca3 | /devel/lib/python2.7/dist-packages/human_navigation/msg/__init__.py | 5d6ec23c37ccafa1f6f167a887eb77ab472dc59e | [] | no_license | HilbertXu/Ultraman_Homework | 36c07ec5d5ea62eba9d0c2b5737cbefacfbacb9d | e5f98f95057d7afe60ee13ce2ae8d7a5ee023b08 | refs/heads/master | 2020-03-21T01:58:31.272327 | 2018-07-03T07:32:40 | 2018-07-03T07:32:40 | 137,972,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from ._HumanNaviAvatarPose import *
from ._HumanNaviGuidanceMsg import *
from ._HumanNaviMsg import *
from ._HumanNaviObjectInfo import *
from ._HumanNaviTaskInfo import *
| [
"hilbertxu@outlook.com"
] | hilbertxu@outlook.com |
d0a101e12083e4ad0bc9e196cf340d5ccfd3a339 | 392824767b4ccb772a33a8f242f2d43a6ced0b80 | /BIL103E - Intr. to Inf. Syst.&Comp. Eng./Course Files/OtherExamples/Bottle Forms/time7.py | 0d1ce4a18fd936aa6029402762fe88040e3873f3 | [] | no_license | yilmazmuhammed/ITU-CE-Courses | 82ec520c3703c91c6eb98be2769a1418ac925b70 | 19f2db633e5fdf6f5ea0c3584a5432f6fb4adf36 | refs/heads/master | 2020-03-11T16:34:51.650985 | 2018-05-17T01:25:24 | 2018-05-17T01:25:24 | 130,121,033 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from bottle import route, run, request, static_file
from datetime import datetime
from pytz import timezone
def htmlify(text,title):
page = """
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>%(title)s</title>
</head>
... | [
"halil_yilmaz1997@hotmail.com"
] | halil_yilmaz1997@hotmail.com |
cde8d095c9b5706e196daa89e8365a6fd0e987cd | fe85f6275011f35ed04475c0796bda490b6fcd1a | /authentication/migrations/0002_auto_20160127_1151.py | 988d1c0826c4dd8790562f6d935ce1b36f52d1c6 | [] | no_license | localboy/gemstore_djangular | c1e2e35e35071c5d37b1c5c7edbc9ce332a8a9b2 | c82e3a0c7496067029bc39d507e00e7358537650 | refs/heads/master | 2016-08-09T22:55:23.955170 | 2016-01-28T10:57:55 | 2016-01-28T10:57:55 | 50,576,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-27 11:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentication', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"jakir@skylark.com"
] | jakir@skylark.com |
e6d992cead87ece7f7dc3da76c892a5f36126dd9 | 45a8cdeb78d26ab4a511681a168bb680673779a6 | /DataStructuresPython/list/09_insertNodeInSortedList.py | b16a0b496af7c4f3e6a76f1155afa87cc613353f | [] | no_license | pymd/DataStructures | ca8c3cf1d704fc1a28f4f895e3724a5487763300 | eef5522d34343489bbd5ab0763e4bad768383741 | refs/heads/master | 2021-05-14T00:38:47.510758 | 2019-05-13T18:57:33 | 2019-05-13T18:57:33 | 116,545,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | from listNode import Node
class List:
def __init__(self):
self.head = None
def getHead(self):
return self.head
def setHead(self, head):
self.head = head
def createNode(self, val):
node = Node()
node.setVal(val)
node.setNext(None)
return node
def addNodeToSortedList(self, val):
node = self.crea... | [
"piyush@qtos.in"
] | piyush@qtos.in |
d3c28dee062084003308c7d1ff56722981d47789 | 2cd11d49f25b4d8a747fb949fc9622e6995df070 | /Widen/LC702_Search_in_a_Sorted_Array_of_Unknown_Size.py | 12ace8649e22a7b9aaa59b5209805d9ff54bd57f | [
"MIT"
] | permissive | crazywiden/Leetcode_daily_submit | 4364b0976b1c5168f0626534533a61bb9a963f96 | 15637e260ab547022ac0c828dd196337bd8d50a3 | refs/heads/master | 2021-11-12T00:24:31.187581 | 2021-11-11T05:56:29 | 2021-11-11T05:56:29 | 211,709,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | """
LC702 Search in a Sorted Array of Unknown Size
Given an integer array sorted in ascending order, write a function to search target in nums. If target exists, then return its index, otherwise return -1. However, the array size is unknown to you. You may only access the array using an ArrayReader interface, where Ar... | [
"yuangao719@gmail.com"
] | yuangao719@gmail.com |
23aaed359da4ac1a3a1025579706ea170de0927c | 7a361d96d303c0e45a86ce8dddbdf7951f6a8f46 | /Exercicios mundo 1/ex045.py | 9558966bcb43447fc19ab4347ddd41437ce2057c | [
"MIT"
] | permissive | prc3333/Exercicios--de-Phyton- | ebbce827bf01ed2faa15afe14f076ccf5c089cbf | a4b54af45f6bb3a89a205b570e1cf1164e505e29 | refs/heads/main | 2023-01-06T08:28:24.472999 | 2020-11-06T19:37:57 | 2020-11-06T19:37:57 | 310,687,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | from random import randint
from time import sleep
itens = ('Pedra', 'Papel', 'Tesoura')
computador = randint(0, 2)
print('''Suas opções:
[0] PEDRA
[1] PAPEL
[2] TESOURA''')
jogador = int(input('Qual é a sua jogada?'))
print('JO')
sleep(1)
print('KEN')
sleep(1)
print('PO!!!')
sleep(1)
print('-=' * 11)
print('Computador... | [
"63015007+prc3333@users.noreply.github.com"
] | 63015007+prc3333@users.noreply.github.com |
3267ee1d0b8aa1a521306abf3a016c0315dc5358 | 3f2d85921f528f6a36f348e31512f3362a5c72c4 | /tablero.py | 8420150016d8fff460afe0334a4f974e7e494fb0 | [] | no_license | feijooso/Reversi | 3c18828fd37ad3374cc0852251ffb170829859ef | 04b734ad19a2e7659e211a99370a56e2f1221683 | refs/heads/master | 2020-12-02T22:22:58.739098 | 2017-07-05T19:07:37 | 2017-07-05T19:07:37 | 96,125,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | def inicializar_tablero():
tablero = []
#Inicializamos el tablero vacio, representamos vacio con guiones
for i in range(0, 10):
tablero.append([])
for j in range(0, 10):
tablero[i].append('-')
#Ponemos numeros para las posiciones
#Filas
for j in range(0, 10):
... | [
"sofeijoo@gmail.com"
] | sofeijoo@gmail.com |
74b11434d93de36248d3f4b98b619a0997f68cd0 | cfad606e24e4f7fcc84d4ad62d905756bbe4610c | /util.py | bd3c9e48c40d0ff01f7dc465c79d2a65adeb858b | [] | no_license | titaristanto/object-detection-experiment | cf2815de7a6b45fddac1d916e28dd991195d6b27 | a55b804a7c57eb4263a744de37befabb51b486af | refs/heads/master | 2022-06-13T04:24:23.103257 | 2020-05-01T06:59:21 | 2020-05-01T06:59:21 | 258,911,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,315 | py | from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
import cv2
def load_classes(namesfile):
fp = open(namesfile, "r")
names = fp.read().split("\n")[:-1]
return names
def prep_image(img, inp_dim):
"... | [
"titaristanto@gmail.com"
] | titaristanto@gmail.com |
be6fafc70eeb36a5277104757f82f7081414f65f | 16448a9beda337e20320f90e5c846830a370052c | /Tipping (Work In Progress)/lib/faker/data.py | 13de816bbfae4c6a3c8554616e3e05772755615d | [] | no_license | rahulraman/sprApi | e8937c82abcbc2941ac31ed35dd6a3d17df89a95 | a3f2cba74127fdc7c70916105b9cb73ebc09ea9c | refs/heads/master | 2020-12-13T04:32:06.733567 | 2017-06-26T06:50:53 | 2017-06-26T06:50:53 | 95,413,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,539 | py | FIRST_NAMES = u"""
Aaliyah Aaron Abagail Abbey Abbie Abbigail Abby Abdiel Abdul Abdullah Abe Abel Abelardo Abigail Abigale Abigayle Abner Abraham Ada Adah Adalberto Adaline Adam Adan Addie Addison Adela Adelbert Adele Adelia Adeline Adell Adella Adelle Aditya Adolf Adolfo Adolph Adolphus Adonis Adrain Adrian Adriana Ad... | [
"anu160580@gmail.com"
] | anu160580@gmail.com |
0592092bfec4a4e56c3c4a0d111730dddc9b52c8 | 36aa8ca505bcfe024db9875fb056ca6570f3504d | /bankOnCube/wsgi.py | cc9f96726036e6f6de11c0c427cbef5d4a492b20 | [] | no_license | shashanj/bankOnCube | 42fec3886b7e5628e47603e7cb0f6fb177e564ec | 865fa104022c8dd2116bf83280bf22c78069537c | refs/heads/master | 2021-01-20T12:38:26.897843 | 2017-05-05T15:25:19 | 2017-05-05T15:25:19 | 90,389,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for bankOnCube 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"shashanks.1903@gmail.com"
] | shashanks.1903@gmail.com |
b909677b5e83bbd0cff9304d935baf8e95ec85cb | d6877d0fd2f4952abc1dd33e84843abbf9cd4266 | /catcollector/settings.py | 760f93cd315cf4f2284ae4294aefe6cfe0e367a1 | [] | no_license | Niki-Sal/catcollector | c5759687501df1986a5cfb83cfab6772fa38a8ad | 56a0e43f1d45ed7e0bd8492cd3230f6cdce8f754 | refs/heads/main | 2023-03-22T10:01:54.615010 | 2021-03-19T23:55:09 | 2021-03-19T23:55:09 | 349,552,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for catcollector project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"ne.salehi@gmail.com"
] | ne.salehi@gmail.com |
950f415ead509a92b7eff8d0d47eddf9a0baa1a6 | acefcaf40c00b20535d6b220f8260ca191b41455 | /Manage_rds/src/ec2.py | 7f625d4c84a5526c8cd5b506e765d549d6b18428 | [] | no_license | jagsrathinam/AWS-RDS-DyDB | 1ccf7731ac9353fc186a6c8937361ff26e2ef095 | 61e200c5fc91f1a29264d04b87bf2d095fda66f3 | refs/heads/master | 2023-01-02T23:20:49.299492 | 2020-10-27T02:08:32 | 2020-10-27T02:08:32 | 307,559,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | RDS_SECURITY_GROUP_NAME = "my-rds-public-sg"
class EC2:
def __init__(self, client):
self._client = client
""" :type : pyboto3.ec2 """
def create_security_group(self):
print("Creating RDS Security Group with name " + RDS_SECURITY_GROUP_NAME)
return self._client.create_security_... | [
"jags.rathinam@gmail.com"
] | jags.rathinam@gmail.com |
b552aadf4e62bf6779d0a14005cec9dd5e27ab42 | 1426210a8eef5b6dd72972110f3ff7b6f561b0bf | /Iterated Prisoners Dilemma/Çetin's Article/Huso/defector.py | 23a6962c9305408db32bf4387846a659900eb398 | [] | no_license | complex-systems-rg/UG-Research | 4d3ead80e0b8a72258875aa997291bf8e1147b88 | 56b7e5d82aaec6c02e652fcc093d50044cec7bf4 | refs/heads/master | 2020-08-11T19:46:42.029503 | 2020-01-18T14:42:53 | 2020-01-18T14:42:53 | 214,617,218 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from player import Player
class Defector(Player):
def __init__(self, M):
super().__init__("D", M)
| [
"canbolukbas98@gmail.com"
] | canbolukbas98@gmail.com |
b62eecba0d0273035f6dab131c786255e939a0d1 | 00418b7f34078382d3eefb16ea3fc21d87a47f27 | /detectZebra.py | 85debcc4fa67cf7d3b17fb9b45cb2b249e5fd5b8 | [
"MIT"
] | permissive | RocketFlash/VisionHack_Evil_Panda | 9ff551e5fda9f5524effbd6b90242cd4ef44f6b2 | 2941c3092e5419765e03c4c1d2eea7f09a80a3d5 | refs/heads/master | 2020-07-18T14:10:09.464972 | 2019-09-04T07:40:21 | 2019-09-04T07:40:21 | 206,260,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | import cv2
import numpy as np
def detect(frame, focus=None):
img = cv2.resize(frame, (0, 0), fx=0.333, fy=0.333)
window = 70
if focus is None:
focus = (int(img.shape[0] / 2) + 100, int(img.shape[1] / 2))
else:
focus = (int(float(focus[0]) * 0.33), int(float(focus[1]) * 0.33))
h, w... | [
"goodraff@gmail.com"
] | goodraff@gmail.com |
793d52993e9cf848f333f484c1f422104fa3175e | 8120975953f5ed704894284048efb25ac5acabfd | /server/apps/wejudge/apps.py | 3631e433d423ea0a659844d3ec833de53919c169 | [] | no_license | DICKQI/WeJudge-2-Dev | 9815b69a56dab13a9aab52bcf75ebfabfc05a8e1 | ded211428adc9506e7a7b9bbaa5d38c4b5c798d8 | refs/heads/master | 2021-08-31T18:20:31.285661 | 2017-12-22T07:22:19 | 2017-12-22T07:22:19 | 115,104,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class WejudgeConfig(AppConfig):
name = 'wejudge'
| [
"lancelrq@gmail.com"
] | lancelrq@gmail.com |
fe12fd29290560b7f198f8787a82bd740c1f3842 | 3be96078a0ff88fa81b188ed71127f1b00ce176d | /Probleme018.py | c97fa453e8e31906b58530aaaa6701f920370667 | [] | no_license | foulp/projectEuler | ad50806b9076bb2d703f3ad290ab502d09e45503 | 0b68ee21645af81fd608188477133c3c6585e0e0 | refs/heads/master | 2020-04-11T17:06:10.089533 | 2019-12-07T00:27:22 | 2019-12-07T00:27:22 | 161,947,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 25 15:42:12 2016
@author: timothee.boulet
"""
grid = [
[75],
[95, 64],
[17, 47, 82],
[18, 35, 87, 10],
[20, 4, 82, 47, 65],
[19, 1, 23, 75, 3, 34],
[88, 2, 77, 73, 7, 63, 67],
[99, 65, 4, 28, 6, 16, 70, 92],
[41, 41, 26, 56, 83, 40, 80, 70, 33],
[41, 48,... | [
"noreply@github.com"
] | foulp.noreply@github.com |
8d0914ad184a024b4c854f6f3e5b98541b067f81 | e07a833ba9cef8d45a7252e592da613c9d47db2c | /lat1.1.py | a079dedae6d102e644e4294d1f1ea1b7266bed5e | [] | no_license | vicky299/praktikum-5 | ab04380cc64f3ffb50835d7edcefde5781774497 | 40d21b11b32e3c2d7842012d350d13e7f9a4950b | refs/heads/main | 2023-01-25T04:23:04.536249 | 2020-11-23T03:45:19 | 2020-11-23T03:45:19 | 315,193,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | #latihan praktikum 1
#no.1
#syarat kelulusan
#tidak ada nilai yang kurang dari 60
#nilai matematika harus lebih dari 70
print("status kelulusan siswa")
print ("range(1-100)")
nilaibindo = a =int(input("masukkan nilai bahasa Indonesian :"))
nilaiIpa = b =int(input("masukkan nilai IPA :"))
nilaimat = c =int(input(... | [
"71803020+vicky299@users.noreply.github.com"
] | 71803020+vicky299@users.noreply.github.com |
a1ef0e7b66211e41d931adde060fde627ca09929 | eb82022c0cfc7c8747661cff9624ad2099fa1c3f | /accounting_report_xls/wizard/hutang_wizard.py | bb9b3c1f5659613139805c836f377e12cff6f17e | [] | no_license | dadysuarsa/Odoo | 8d026a066c390cc8f72805d2672212e61260c1cb | c9becd0c192fa239520ad3e1a11d81f70832eddf | refs/heads/master | 2023-03-11T06:02:06.011575 | 2021-02-26T02:17:37 | 2021-02-26T02:17:37 | 276,346,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,582 | py | from openerp import fields, models, api, _
import dateutil.relativedelta
from datetime import datetime, date, timedelta
from openerp.exceptions import UserError
class HutangReportWizard(models.TransientModel):
_name = 'hutang.report.wizard'
@api.multi
def get_first_date(self):
current_date = ... | [
"dads02_zetti@yahoo.com"
] | dads02_zetti@yahoo.com |
b975c3750ca0bbfcae9452e1509f6b24a1096888 | 0e29ce9ecc89d5b03b4c6c42bfbc26c4dd36d304 | /PHYSNET/physnet_train_gpu.py | 1da55402dd14a1071e39758e57ca862153ea0515 | [] | no_license | Nabeel-Idrees/Heart-Rate-Prediction | a1c2514ee2bca9ff524dea236e2f0c9ca059bce2 | ad69aa411c986226dbf4529e0b8ebe9bfa26afde | refs/heads/main | 2023-05-07T12:06:29.339823 | 2021-06-02T05:39:52 | 2021-06-02T05:39:52 | 372,632,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,731 | py | from __future__ import print_function, division
import torch
import matplotlib.pyplot as plt
import argparse,os
import pandas as pd
import numpy as np
import random
import math
import pandas as pd
from torchvision import transforms
import numpy as np
import matplotlib.pyplot as plt
import cv2
import os
import scipy.io
... | [
"noreply@github.com"
] | Nabeel-Idrees.noreply@github.com |
00522ecd1c7f835b14bb46f0d942b106ca3063e3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2858/60712/247048.py | f997899bee5b991da02d538ae22518f141c9be8c | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | n = int(input())
list1 =[[0]*n]*n
for i in range(n):
list1[0][i]==1
list1[i][0]==1
for i in range(1,n):
for j in range(1,n):
list1[i][j]=list1[i-1][j]+list1[i][j-1]
print(list1[n-1][n-1])
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
a4135bfe3e7c5bb3709e4fb214b305f987be3e8c | 2361f5cff20e21c21f1c6c9cfb006667a3a570ef | /examples/lce_unique_procs/lce_unique_procs.py | 5313d83cc0232195493130f000682f62a695e3c9 | [] | no_license | dmwoods38/pySecurityCenter | 3461166c7adf1e1a8c9fca915618389b840a5b63 | f1ece77dcd3ac3d2928bb43b0635a160715a3b61 | refs/heads/master | 2020-12-26T03:34:54.812497 | 2013-08-20T17:37:30 | 2013-08-20T17:37:30 | 18,523,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import securitycenter
import time
import re
username = 'USERNAME'
password = 'PASSWORD'
hostname = 'HOSTNAME'
days = 7
sc = securitycenter.SecurityCenter(hostname, username, password)
queries = [{
'eventName': 'Unique_Windows_Executable',
'regex': re.compile(r'invoked \'(.*?)\''),
'regex_type': 'single',... | [
"steve@chigeek.com"
] | steve@chigeek.com |
090b124deb2c134c7b672e37da19181c8b1ebe3c | e34aa59a6e70e4030eaa5edf23e4e31dcec37ffd | /typeidea/config/models.py | bd817a30822834a851cb8476541ac24a933a4477 | [
"MIT"
] | permissive | LastDanceG/typeblog | 7d33117f51e201dfeba8ec1649da96b558e1ca82 | fdd043546813866669c004bc8d8aedbfcfa326f2 | refs/heads/master | 2021-06-30T23:36:48.154669 | 2020-03-07T13:19:43 | 2020-03-07T13:19:43 | 241,825,538 | 1 | 0 | MIT | 2021-06-10T22:35:30 | 2020-02-20T07:57:42 | Python | UTF-8 | Python | false | false | 1,974 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Link(models.Model):
STATUS_ITEMS = (
(1, '正常'),
(2, '删除'),
)
title = models.CharField(max_length=50, verbose_name="标... | [
"ail"
] | ail |
5a89157056ad553cc49d533fa22f371d938b8839 | 6abc9b7e59aa2bc77d16bf0579bc2319db4fa20c | /miniverse/mock_token/views_write_api.py | 0036de066f26a40dfd068360e41498f1e2dc79c3 | [
"MIT"
] | permissive | IQSS/old-miniverse | b05823891fafd40a5b12f18894f3dff19404fe37 | daabcad2fbd6cc29cc05f0091f51157e4fe9e46a | refs/heads/master | 2021-01-21T03:15:54.392430 | 2014-06-27T16:05:55 | 2014-06-27T16:05:55 | 19,803,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.views.decorators.csrf import csrf_exempt
from miniverse_util.json_util import get_json_err, get_json_success_msg
from mock_token.models import DataverseToken
from metadata.forms import GeographicMetadataUpdateF... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
68e50a4844cf1bb309f743c78c6d073c42081a57 | fee6a02b8612366aa4d80126988c11d00c78e929 | /server.py | 5d9910f1b2c7cddf9412f14d5c3d755660140f3b | [] | no_license | carriecarrieee/flask-intro | 001ff051a9c2e44348f251db5fa5449238e3dee4 | f4c0b269e9563c7157513ecd42c5b92d2209ea53 | refs/heads/master | 2021-01-19T21:33:39.252861 | 2017-04-18T20:02:22 | 2017-04-18T20:02:22 | 88,665,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | """Greeting Flask app."""
from random import choice
from flask import Flask, request
# "__name__" is a special Python variable for the name of the current module
# Flask wants to know this to know what any imported things are relative to.
app = Flask(__name__)
AWESOMENESS = [
'awesome', 'terrific', 'fantastic',... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
26d70c2e075ff7509fb143a53f1293d16cc6fc4e | 93ba48b23e5dbaca65596e220bad27ccaaa2bb12 | /venv/bin/jupyter-kernelspec | 492d8cbc16da53eb869b640f610a5362e8a7b2c3 | [] | no_license | rachanachikka1998/django-project | 840d644b3c434c0495f77aa6c6521b5c926b55c0 | 65cfab371cf1aa91c90b169b74c5e5fe85f2f074 | refs/heads/master | 2022-12-20T23:32:40.217508 | 2019-07-18T05:56:07 | 2019-07-18T05:56:07 | 194,211,197 | 0 | 1 | null | 2022-12-09T20:56:10 | 2019-06-28T05:23:15 | Python | UTF-8 | Python | false | false | 297 | #!/home/ib_admin/git/django-project/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelspecapp import KernelSpecApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(KernelSpecApp.launch_instance())
| [
"rachanachikka1998@gmail.com"
] | rachanachikka1998@gmail.com | |
39846a662734e9bb893270768da2b0f5b64cfb9f | 8923038046c75b03cfc2a727a1f3c3d8c2f8e451 | /imageup/models.py | 7eee08be7692b94aeaeaca4ef62fa70808a684a2 | [
"MIT"
] | permissive | laucia/imageup | 6a548be1751916f27113ed2c0b1dc0b3afa4c971 | 2636c661bccbf57543d2051f19f71301516a3198 | refs/heads/master | 2020-05-15T23:17:09.890095 | 2014-01-25T15:45:35 | 2014-01-25T15:45:35 | 16,109,919 | 0 | 1 | null | 2014-01-25T15:45:35 | 2014-01-21T17:01:14 | Python | UTF-8 | Python | false | false | 1,338 | py | import os
from django.conf import settings
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.utils.translation import string_concat
from django.utils.translation import ugettext_lazy as _
MEDIA_FILENAME = getattr(settings, 'IMAGEUP_MEDIA_FILENAME', 'image... | [
"lauris.jullien@telecom-paristech.org"
] | lauris.jullien@telecom-paristech.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.