blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f51071d12e02b45ba50607bc276a85e47ac54b4 | 671b7430e866fdb67b5234c08a195ac394ce636c | /ml/mltuts/11-outliers.py | 8d4a6ce6a0230a95d30acde1d5c8b8ce0b12ef3f | [] | no_license | ranedk/tuts | 6c84ec3bcb2042c4ee29249a3ad91ccf5bb2723e | 7bdcdd6207ca5bfd8c6e181f6f384a57c1778546 | refs/heads/master | 2023-08-07T11:36:00.490950 | 2023-07-30T09:21:50 | 2023-07-30T09:21:50 | 180,953,486 | 1 | 2 | null | 2023-05-02T00:29:10 | 2019-04-12T07:22:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,591 | py | import numpy as np
import pandas as pd
# import matplotlib.pyplot as plt
df = pd.read_csv("data/Salary.csv")
# To check distribution (histogram with 20 bins)
df['Salary'].hist(bins=20)
# The distribution of the data doesnt look normal
# Ways to normalize: log, sqrt, cube root
df['Salary_log'] = np.log(df['Salary']... | [
"ranedk@gmail.com"
] | ranedk@gmail.com |
99b4530d9de437b92c524eb5dacc65c526cb7780 | 469569104ec4c17e14cf7789f2a7c1b7e165e4be | /myenv/bin/celeryd-multi | abfacae72490d7b771098239492a578c68b0a5e4 | [] | no_license | ArushiSinghal/Energy_portal | d7acbfdc378335cb7467768055391c522c366451 | 83b166cacf6b78b86e978724ce518d8a6ff3d54f | refs/heads/master | 2022-12-14T22:50:48.910099 | 2017-03-10T09:22:31 | 2017-03-10T09:22:31 | 83,199,262 | 0 | 1 | null | 2022-11-22T01:05:48 | 2017-02-26T10:06:28 | Python | UTF-8 | Python | false | false | 253 | #!/home/simran/evs/myenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from celery.__main__ import _compat_multi
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(_compat_multi())
| [
"singhalsimran0@gmail.com"
] | singhalsimran0@gmail.com | |
9e20c44700047479c01f6cdeb7fbfcafb618f3b9 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_meta_response.py | 17beda5d5d2fc1bd79e8b76d4ed6bfa0f640b853 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,451 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowAssetMetaResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
01f03677c1c199afc3763b2adf640bf22524e264 | 8e69eee9b474587925e22413717eb82e4b024360 | /v2.5.7/toontown/coghq/CashbotMintLavaRoomFoyer_Action01.py | b7cfc755c82949fc1587ac270f73a11b84148d12 | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,037 | py | from toontown.coghq.SpecImports import *
GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '',
'parentEntId': 0,
'cogLevel': 0,
'farPlaneDistance': 1500,
'modelFilename': 'phase_10/models/cashbotHQ/ZONE18a',
'wantDoors': 1},
1001: {'ty... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
400aae5cd47147d9b4310c759e23ff7db6ffa555 | c61ab3f95fca96c418f97463f2fbe7dcea42bf30 | /venv/Scripts/easy_install-script.py | d0d10e9ff49f95fc9aa2dea1aa02fc874c0172b7 | [] | no_license | Devilins/Labs_4_kurs | 42a3e2553762f09c8ff954c8cab463bc4d5e7099 | 3522e105a992c9ff56345ae61304f5f0d99b6972 | refs/heads/master | 2020-09-26T19:43:49.567028 | 2019-12-06T19:40:44 | 2019-12-06T19:40:44 | 226,329,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!C:\Users\Alexandr\PycharmProjects\Labs_4_kurs\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"krivovalex4@yandex.ru"
] | krivovalex4@yandex.ru |
ab60af3ff7bcccdcbad6c642b7178894e8e9f40f | 9f8b5b5b84b2d27b392d04c0d823e8c94e2465da | /gravtools/constants/__init__.py | dbb075b547eb4199bb5424a86376c4047321ada1 | [
"MIT"
] | permissive | JWKennington/gravtools | 55f31e64100592a433fc67c520edae7578907711 | 188229ed2061958012cf7338a5eebd2ef0a399cc | refs/heads/master | 2020-09-07T10:33:51.068154 | 2019-11-11T06:10:36 | 2019-11-11T06:10:36 | 220,752,808 | 0 | 0 | MIT | 2019-11-11T06:10:37 | 2019-11-10T06:49:48 | Python | UTF-8 | Python | false | false | 110 | py | """Flatten the constants package"""
from .merger import MergerParameters
from .observatory import Observatory | [
"jameswkennington@gmail.com"
] | jameswkennington@gmail.com |
bcf64e30397c858e6d836ba934690acae6d3ab38 | 4ab14cba7b27d58ae8f6e01525141db9d9044e36 | /GMMSegmentation.py | 0c067edff0c53e6510771b936692b231ff2c4897 | [] | no_license | bairlie/FinalYearProject | 86b70b3ad40cf8cdd915b45c5707c7e2c0fbfaed | 59e7ef5a96dc4e13800b88210e4359d3f1f48811 | refs/heads/master | 2021-04-29T17:40:11.537548 | 2018-04-29T12:59:32 | 2018-04-29T12:59:32 | 121,675,849 | 0 | 0 | null | 2018-04-29T12:59:33 | 2018-02-15T19:57:48 | Python | UTF-8 | Python | false | false | 827 | py | import cv2
from pylab import *
from sklearn.mixture import GaussianMixture
from PIL import Image
def segViaGMM(pil_image, segCol1, segCol2, startX, startY):
pil_image = pil_image.convert('RGB')
im = np.array(pil_image)
im = im[:, :, ::-1].copy()
width, height = pil_image.size
newdata = im... | [
"bennairlie@138-38-242-110.eduroam.bath.ac.uk"
] | bennairlie@138-38-242-110.eduroam.bath.ac.uk |
1b1728e77103b12b30fe66b7557a05d11ef55045 | 493c5a13f60cc44ebc8876a3feebbad0154ce14d | /env/bin/pip | 7203cbfb4765077a348777dc3a1cc98317f09569 | [] | no_license | rubeendaw/heroku-django-ruben | 27736047db6608a2ea23234613a432ad0e65a893 | 57d32d61e9547a10468e4e9fd754aeefe098a37c | refs/heads/master | 2022-07-01T00:44:32.226904 | 2020-02-19T22:45:03 | 2020-02-19T22:45:03 | 241,742,444 | 0 | 0 | null | 2022-05-25T04:11:36 | 2020-02-19T22:41:15 | Python | UTF-8 | Python | false | false | 273 | #!/home/rubeendaw/Documentos/Servidor/backend_django/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rubeendaw@gmail.com"
] | rubeendaw@gmail.com | |
30e99cd125126168a62391d1dd2870494f66f8d3 | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_optimize11.py | 419bdafcf7b28b46a1cc0c98248bc2b40b67c8d9 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 2,279 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
488aafc76cbbeaf3ce2a1a63768193c39aec5aae | 3d5139c1f312413cd7f5627c2d22b1d2da2c773f | /projects/task.py | e4c053ad62691fdbbc27aa562f80e5882e31fdb3 | [] | no_license | sammasamadhi/CMDB_platform | 0a3d6f6afd1624933b5700d09dd1de582e0dfb6a | 05f5c189b7de5f4fe9ea5a62fc2e3516c2150fad | refs/heads/master | 2021-06-07T23:04:59.849957 | 2016-11-24T10:00:17 | 2016-11-24T10:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,988 | py | #^v^! coding: utf-8 ^v^!
__author__ = 'Alex hao'
import models as projects_models
import hosts.models as hosts_models
from django.db import transaction
from django.utils import timezone
from backends import ansible_project_task
from CMDB_platform import settings
import threading
class Task(object):
def __init__(s... | [
"75898234@qq.com"
] | 75898234@qq.com |
bf8cf478cf2fd74650e5a0f3ce59c2b7ffb105dc | 8c30809325a4e18d7036e8b16ee16d7ae5b327fa | /app.py | 37f7bb2ccb0fdc3efdbbbd492e76763ba21763fb | [] | no_license | ZedJcel/lynis-autofix | 6629db093ccbd9be49e7a199b51485ed652d8960 | 0175f36efe69948ff88055dd557f2f7eb3cb40a4 | refs/heads/master | 2023-05-24T21:09:40.245478 | 2018-01-08T12:57:07 | 2018-01-08T12:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | import json
import logging
import platform
import sys
import shlex
import time
import os
import re
import subprocess
from StringIO import StringIO
from pprint import pprint
## Logging stuff
datum = time.strftime("%d-%m-%Y-%H-%M-%S")
logging.basicConfig(filename='%s-log.log'%(datum) ,format='%(asctime)s - %(name)s - %(... | [
"chuck@tonec.nl"
] | chuck@tonec.nl |
40610b49d91d37083e53372dbc1a725ab4284308 | 949598c3ac05f7e7393fb4125464ecd6544915cc | /howmuch/article/forms.py | cdb57637f04eebd2e158ba7d81de9fef08f98433 | [] | no_license | UncleMario/howmuch | 6a3f9c06b80f83afa8c4910f172ca18d54892aab | 0758171be7a70d654174b8f133db2201b45af1b7 | refs/heads/master | 2021-03-24T12:30:41.864048 | 2013-03-30T05:46:45 | 2013-03-30T05:46:45 | 9,137,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | from django import forms
from django.forms import ModelForm, Textarea, TextInput, Select
from howmuch.article.models import Article, Assignment
QUANTITY_CHOICES = (
(1,'UNO'),
(2,'ENTRE 2 y 5'),
(5,'ENTRE 5 y 10'),
(10,'MAS DE 10'),
)
class ArticleForm(ModelForm):
class Meta:
model = ... | [
"kayethano@gmail.com"
] | kayethano@gmail.com |
93f01551fc71c691ab7c4d7b49966cb6e2af604c | e4200b764d0b4ffba65180e54cf84b30ee84efcc | /selfdrive/boardd/boardd_setup.py | f987c7aa29e08bc7bdd5e335dc38ac0c14730201 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | kegman/openpilot | c9ba96a72d905956f02c684e065091e023942883 | 54a8614b5a6451154817a4c6c86141c96103ae47 | refs/heads/kegman-0.7 | 2022-05-22T17:07:16.656336 | 2020-01-23T16:40:55 | 2020-01-23T16:40:55 | 229,979,925 | 105 | 212 | MIT | 2022-03-13T05:47:51 | 2019-12-24T17:27:11 | C | UTF-8 | Python | false | false | 1,019 | py | import subprocess
from distutils.core import Extension, setup
from Cython.Build import cythonize
from common.cython_hacks import BuildExtWithoutPlatformSuffix
from common.basedir import BASEDIR
import os
PHONELIBS = os.path.join(BASEDIR, 'phonelibs')
ARCH = subprocess.check_output(["uname", "-m"], encoding='utf8').... | [
"8837066+kegman@users.noreply.github.com"
] | 8837066+kegman@users.noreply.github.com |
922a4a657e71d843671559e6538adec352da9514 | e7e196631cd84f68d9a6b9cce8a497b5661968c9 | /combat.py | 3eaf0dd166a25032bbb1a3cb04cd06d2b46fd5be | [] | no_license | alabecki/Imperialist-Bastards | 5a3abb9b9702b7b7691fca3262ea4857ed5657c6 | 47e80288b6292bd65044e1cb4491498d7434637d | refs/heads/master | 2020-12-30T12:11:19.437915 | 2018-02-28T15:44:05 | 2018-02-28T15:44:05 | 91,410,823 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,939 | py |
from player_class import Player
from technologies import*
from human import Human
from AI import*
from minor_classes import*
#from AI_foreign_affairs import*
from random import*
from pprint import pprint
from copy import deepcopy
def calculate_number_of_units(player):
count = 0
count += player.... | [
"noreply@github.com"
] | noreply@github.com |
d0c640d81a44dfb8f33f28efc689acec9b3b0984 | 1ea5bc7b29b13166dc722816304f9b05eef7b6c9 | /utils/utils_multiWOZ_DST.py | 218764be1dea032f61c53ae8cfd590b46cc8902c | [] | no_license | yuya0430/history_extraction | a31d9cb356fb1d87ab8518383c7b325814e9c35a | fa574f46c550ce6af766a4b8205899db0178483a | refs/heads/master | 2023-03-19T01:56:51.947770 | 2021-03-12T12:22:45 | 2021-03-12T12:22:45 | 346,677,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,991 | py | import json
import torch
import torch.utils.data as data
import unicodedata
import string
import re
import random
import time
import math
import glob
import torch
import torch.nn as nn
import torch.nn.functional as F
from utils.config import *
import ast
from collections import Counter
from collections import OrderedDi... | [
"yuya0430@slp.nitech.ac.jp"
] | yuya0430@slp.nitech.ac.jp |
2b43c163f93eb4de5e42d1ac901eb0746bdf8560 | 5999393c996612e303c13ec525ff77a73c2803af | /blog/admin.py | 127981512aa33c37de038669e22da78e76a9c06a | [] | no_license | keeeboooo/my-first-blog | 7623f48da0725dbb6d68fcf77d0d357f30804e43 | 2c2add8ee690b33b0c6028e4638a184efd4f85ee | refs/heads/master | 2023-08-21T22:52:39.552305 | 2021-10-20T03:06:27 | 2021-10-20T03:06:27 | 374,272,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from django.contrib import admin
from .models import Post, Comment#, Rogin
admin.site.register(Post)
admin.site.register(Comment)
#admin.site.register(Rogin)
# Register your models here.
| [
"keisuke_onepiece@icloud.com"
] | keisuke_onepiece@icloud.com |
31d6541de7c09f85091fbf2e239202c78dfb15bb | a0f1970da405d05797807a4baa96e5ef1f891608 | /python/icp_test.py | efc3583db053e84bd1e0c3a523da003f78dfca47 | [] | no_license | B-urb/generic_object_tracking | 3e042000fdf24f69df46ca3231e53ff73c9e853e | 324bab0b37532d9f0bf571c934505f66df54a3c8 | refs/heads/master | 2023-05-05T17:11:23.291990 | 2021-05-16T23:09:05 | 2021-05-16T23:09:05 | 367,958,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | import pyrealsense2 as rs
import numpy as np
import cv2
import open3d as o3d
from datetime import datetime
import matplotlib.pyplot as plt
import time
from app.tracking_object import TrackingObject
from sklearn.cluster import KMeans
def main():
#out = cv2.VideoWriter('./data/output.avi', -1, 20.0,(1280, 720))
... | [
"bjoclurban@gmail.com"
] | bjoclurban@gmail.com |
3f95ed6087c4acea580d8a19ca0f731e1e49c8bd | 84109b3edcf5171493c98d2d50a38f3e63dcc1af | /imap-filter/MailFilter/Condition.py | 722ca84ad9fb862e9f2418a9793e216fc0f8c71e | [] | no_license | josterpi/python | 2ce665e2330e68a571a9fe085fb6551270970c3a | fe6920764511837bf9694984e61c25c8f48a9e18 | refs/heads/master | 2021-01-23T15:51:06.424206 | 2009-09-20T17:29:44 | 2009-09-20T17:29:44 | 312,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py |
from Predicate import Predicate
import email
class Condition:
def __init__(self, subject, predicate, object):
SUBJECTS = {'Subject' : self.subject,
'Sender' : self.sender,
'To' : self.to,
'Cc' : self.cc,
'To or cc' : self.toOr... | [
"josterhouse@gmail.com"
] | josterhouse@gmail.com |
dd3e935fc5be1a0d0f88c73d2c306de12fb40f71 | db05b94cf771785f573866fa7093fab4cee840b5 | /load_model_and_predict.py | 420f4c7fc0154f673f6308600f3831d8b6a8f38f | [] | no_license | InformationExtractNJU/BertBilstmCrf | 3757a8767b98947d5f40e906b5703bafd1920120 | 6665228880cc346f3746f64fa75020abcf1dd4a2 | refs/heads/master | 2020-11-29T06:56:08.112389 | 2020-03-06T10:24:30 | 2020-03-06T10:24:30 | 230,051,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,520 | py | import os
import codecs
import re
import random
import string
from tqdm import tqdm
import pandas as pd
import numpy as np
from zhon.hanzi import punctuation
from sklearn.model_selection import train_test_split
from keras_bert import load_trained_model_from_checkpoint, Tokenizer
from keras_contrib.layers imp... | [
"zhuwk3@mail2.sysu.edu.cn"
] | zhuwk3@mail2.sysu.edu.cn |
72b7bb7acba687c0f6f14413cd6d43962e8a3351 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/common/Lib/encodings/iso2022_jp_ext.py | 79e0c5be45183dd71284af4365cf20ec67ea90b1 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 964 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/encodings/iso2022_jp_ext.py
import _codecs_iso2022, codecs
import _multibytecodec as mbc
codec = _codecs_iso2022.getcodec('iso2022_jp_ext')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class ... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
4437c2c917c441f1c78f609a916e6a8e0ffee660 | 95472c40c7fe6c4c64d0e9582ab764fea26c0457 | /DS/Graph_AdjacencyList.py | ef752333ad01f19d6a6e1d685de22c6e5dd64043 | [] | no_license | vinay10949/DataStructuresAndAlgorithms | a156627de3e0186866ad7bcbcac9aef4690aa20b | 88d35ad74c464438a2c8d6a1570741c39a539267 | refs/heads/master | 2023-02-20T23:47:28.128680 | 2021-01-22T10:14:42 | 2021-01-22T10:14:42 | 273,527,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | class Node:
def __init__(self,v):
self.vertex=v
self.next=None
class Graph:
#initialize matrix
def __init__(self, size):
self.V=size
self.graph = [None]*size
def add_edge(self,s,d):
if s==d:
print("Both vertices are same")
return
node=Node(d)
node.next=self.graph[s]
self.graph... | [
"vinay10949@gmail.com"
] | vinay10949@gmail.com |
f691dfe6a51e168f138b493fc932ca5d154d959c | 4c429fb781600413c1a960fbba6e4a2661a6b6ab | /visio/hauptprogramme/asciio_layout_v2.py | a8a5e225e016993ed55cd2c249610c74144531c1 | [] | no_license | dasteihn/visio | fd66fc6d60f58d010a8badb4b7d62e23923d3b12 | 17d8d023bf984cb2f3d2f655da2384092e38e28d | refs/heads/master | 2020-04-11T13:04:38.825275 | 2018-12-14T15:30:28 | 2018-12-14T15:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,792 | py | from asciimatics.effects import Print, Clock
from asciimatics.renderers import BarChart, FigletText, Box, ColourImageFile
from asciimatics.scene import Scene
from asciimatics.widgets import Frame, ListBox, Layout, Label, Divider
from asciimatics.screen import Screen
import sys
from pathlib import Path
import json
n... | [
"stanner@posteo.de"
] | stanner@posteo.de |
0add16aff9187e8e1d1558f3a79633831144f1cd | f1d35bfae9cee1376e24903a88a3d04d3d1a31b1 | /django_react/settings.py | e850a1c0332e73bdc2fe925897554a113176f5c6 | [] | no_license | joigmz/django-react-integration | 9fbe0b2c2123c9907dd39d1171329c1e5e70567e | 74f8c2df391a96a6d0fbee21a554a680ee6c5e52 | refs/heads/main | 2023-07-05T21:53:02.439892 | 2021-08-15T05:30:51 | 2021-08-15T05:30:51 | 396,192,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | """
Django settings for django_react project.
Generated by 'django-admin startproject' using Django 3.1.5.
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... | [
"57118197+jose-izam99@users.noreply.github.com"
] | 57118197+jose-izam99@users.noreply.github.com |
06432ae0fe02ed8472ccb420e0ebb19fbf85e794 | 9f3e0a7f3886237a6eaaa9479e9f8244a68d2bc5 | /bdc/bdc/__init__.py | 4e8cd24b90085d1240895dd9bb85399fd5111507 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | databricks/build-tooling | e5ff02d3a9ccd967d5e3a49141118a2b7860f84d | 5869096b94696b43d382ad788474a3fc52cf8acf | refs/heads/master | 2023-08-26T15:45:42.736301 | 2018-09-12T23:10:29 | 2018-09-12T23:10:29 | 150,157,911 | 0 | 3 | null | 2018-09-24T19:35:18 | 2018-09-24T19:35:18 | null | UTF-8 | Python | false | false | 83,728 | py | #!/usr/bin/env python
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from builtins import (bytes, dict, int, list, object, range, str, ascii,
chr, hex, input, next, oct, open, pow, round, super,
filter, map, zip)... | [
"bmc@clapper.org"
] | bmc@clapper.org |
8137af58f166a6d22239abbc40893487c9bdbcd3 | b5926d11c69478742f9524d8a2533dcc5c88d57e | /图片处理/照片自动剪裁/get_img_from_baike.py | dad29b8596db6272df3c94a7e7c86b17b498555e | [
"MIT"
] | permissive | simoooncao/CourseDesign0000 | af0526f7b1c561d377f9164ae050acd2deb5168c | 3d510bb9787a9cd690e4e77b361cdafdd6ddaa66 | refs/heads/main | 2023-01-20T03:21:45.617368 | 2020-12-02T13:47:07 | 2020-12-02T13:47:07 | 317,871,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import requests
from bs4 import BeautifulSoup
def get_img_from_baike(star):
headers = {
'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'
}
response = requests.get('https://baike.baidu.com/search/word' , params = {'word' : star} , headers... | [
"noreply@github.com"
] | noreply@github.com |
0007be916107d3d43c886de09370af6c919edac6 | 37e84c832b4016b7e5b4fa6f99da00977cf010f7 | /datayes/stocks_lifecycle.py | 9c4d260ad28c77496db2287ec4da531e2d7c0c95 | [
"MIT"
] | permissive | CoderDream/python-best-practice | 24e4a09e778cc6d0ce846edf1e7b4fb66c536b0e | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | refs/heads/master | 2020-08-14T13:57:16.309356 | 2019-10-28T09:20:03 | 2019-10-28T09:20:03 | 215,180,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from pandas import DataFrame
from dataapiclient import Client
import json
client = Client()
client.init('cae5c4acc4ad4ccb93a8aaac4b8adb04363feaa9852c34d14ddd2248613b09b3')
url='/api/equity/getEqu.json?field=ticker,secShortName,listDate,delistDate&listStatusCD=L,S,DE,UN&secID=&ticker=&equTypeCD=A'
code, result = client.... | [
"coderdream@gmail.com"
] | coderdream@gmail.com |
90472ae1500003128c099c82b18c65cd294fb594 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_67/run_cfg.py | b7a42574ec89cfa3b75f992ff17c74f8999faf28 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_m... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
c47949e80dc18da7c3ae83d53109b924756a3750 | cc31fef8092e4ed996a8f54e199558be15fd4d0e | /adzerk_decision_sdk/models/user.py | 7edda0d54021679bb351d6aaf83243be7629f391 | [] | no_license | Sandy4321/adzerk-decision-sdk-python | 1519683aeef1357b72386d62f66e89c4246ae6b6 | d92d86d26710ada4cdc9a0e5a142f8907bbb80a6 | refs/heads/master | 2023-03-12T14:24:13.198840 | 2021-01-22T20:57:03 | 2021-01-22T20:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | # coding: utf-8
"""
Adzerk Decision API
Adzerk Decision API # noqa: E501
The version of the OpenAPI document: 1.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from adzerk_decision_sdk.configuration import Configuration
class User(object):
... | [
"CrshOverride@gmail.com"
] | CrshOverride@gmail.com |
b3712377d76d579b8ddb217ced898b5037e49fdf | 931110410da99d69ee262a8ad6cf964a9e9e6a92 | /codes/city_cells.py | 42e343f18850b155cf3658914cad2c1882c8d029 | [] | no_license | azspark/DRIVER_TRAJECTORY_ANALYSIS | d20c188a82f6f8c68db64f5db3309d320123129b | ab3f63896e7a1de71e8d92ef9a0ddfc0df59da7a | refs/heads/master | 2022-08-28T17:57:17.330223 | 2020-05-31T17:39:04 | 2020-05-31T17:39:04 | 263,628,824 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from .cell import Cell
from .utils import Engrider
import numpy as np
import matplotlib.pyplot as plt
class CityCells:
"""Index, control and update the cell information"""
def __init__(self, trajectories, geo_range=None, div_number=None):
self.update_info(trajectories)
def _init(self):
... | [
"zz1254657569@gmail.com"
] | zz1254657569@gmail.com |
d82811fa7169c6fd818b1953a4e1c0085072e58f | 51d504622c8bde5096d954bf9b38789d48ba4ff7 | /Python/flask_mysql/db_connection/first_flask/friend.py | 8002c4e32a64bc2978ac466a35b0e0c2d1c09ecc | [] | no_license | BLee1126/Dojo-Assignments | 36c8fb2294c5cd6a04c065415aae12225c0eb483 | d40d8f6569b1f504d1785d8f34d27c58eab406c8 | refs/heads/main | 2023-07-10T16:00:30.863709 | 2021-08-20T16:42:10 | 2021-08-20T16:42:10 | 368,209,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | # import the function that will return an instance of a connection
from mysqlconnection import connectToMySQL
# model the class after the friend table from our database
class Friend:
def __init__( self , data ):
self.id = data['id']
self.first_name = data['first_name']
self.last_name = data[... | [
"blee1126@gmail.com"
] | blee1126@gmail.com |
8293596737e9fa47b9ba92989e1082e5de3679f7 | 096d6ae171eb86fb864a667bfe11af5fcec0ad9e | /happy/cli.py | f2e7dd2b34006e096ddaa435c4ebce0303f82f4a | [
"MIT"
] | permissive | msabramo/happy | 3a3196898aad95624836499b6d2e584c45fefe7d | 7b582b039f78b6536c0f275a1412c3e570eec800 | refs/heads/master | 2023-06-09T13:58:44.315107 | 2015-02-16T03:17:49 | 2015-02-16T03:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | """
The command-line interface for happy!
"""
import json
import os
import subprocess
import sys
import click
import happy
def _infer_tarball_url():
"""Returns the tarball URL inferred from an app.json, if present."""
try:
with click.open_file('app.json', 'r') as f:
contents = f.read()
... | [
"joe@joefriedl.net"
] | joe@joefriedl.net |
9e72a2f8ab1adc2e387356b9dca2d04e223e20f5 | be0232a12312400d92f33c7eb2723b425be1c00b | /polestar/apps/ship/admin.py | 4d7a6a8c87476e7ffb5de28d67831215fb2bbda7 | [] | no_license | eddumpy/PS | e53add572d2403e289f60a1a7d34730c63279ca0 | b9595872f76e73c13b603245f0226f378d05de62 | refs/heads/master | 2020-05-15T18:05:51.166882 | 2019-04-27T15:28:23 | 2019-04-27T15:28:23 | 182,417,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Ship
admin.register(Ship) | [
"eddumpleton@gmail.com"
] | eddumpleton@gmail.com |
8be394afa029f9465ec9e58d8ef925a43b7461c5 | 6204b534860e35bed2f52923538b7e50f6fc4a20 | /tests/context.py | 3a17d2ee1d10159e00ed94d4b9c5c7af16d285f7 | [
"MIT"
] | permissive | brian-mclaverty/plepy | 7d73b4257c9365ab039be82338293fbc84e4e0ef | 4c39d8723633045737ef2a5f793dbfb7403ab857 | refs/heads/master | 2022-12-15T13:56:15.919883 | 2020-09-03T21:01:06 | 2020-09-03T21:01:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
'..')))
import plepy | [
"monshapiro@gmail.com"
] | monshapiro@gmail.com |
30c452b548f2ff28109da3212b07745400c34990 | 8f8d1b973bf396501442c89151558994088e5681 | /recognition/views.py | 5a9b41bca78b5f52a95fae4414ee09e21b0c495e | [] | no_license | minwoo9629/capstone_design | 0968f9fe1fb23791004ba109f0cc3ae76ad7c0a2 | 01109d454c7bc283151929d7b678e9198d8c2358 | refs/heads/master | 2022-12-09T08:37:43.481372 | 2020-11-25T05:22:22 | 2020-11-25T05:22:22 | 245,607,259 | 1 | 1 | null | 2022-12-06T20:22:16 | 2020-03-07T09:53:26 | JavaScript | UTF-8 | Python | false | false | 1,976 | py | from django.shortcuts import render
from .recognition import detect_face, test_detect
from django.contrib.auth.models import User
from student.models import Student
from lecture.models import Lecture
from attendance.models import Attendance, facial_attendance
from datetime import datetime
from time import strftime, tim... | [
"smw123123@naver.com"
] | smw123123@naver.com |
2b267595d14127e4b06d71f257952e8fbf9f49f2 | b1bd0990ced7a25bf016123a3063f1ba2a3d3ed9 | /util/perf.py | b88cbd3d7223b88d6268a9cfc9ad3b7e47ded370 | [
"MIT"
] | permissive | sbirch/webtalk | f0ee38a81062ee0f798cccdb3bfe870e517f9409 | 72ee81ff50bc9fe586f4007cc7213313694cf962 | refs/heads/master | 2020-05-03T12:44:56.021937 | 2013-12-30T19:17:44 | 2013-12-30T19:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import time
timers = []
def tick(label=None):
timers.insert(0, (label, time.time()))
def tock():
label, st = timers.pop(0)
elapsed = (time.time() - st)
if elapsed < 1:
elapsed = '%.1fms' % (elapsed*1000.0)
else:
elapsed = '%.2fs' % elapsed
if label != None:
print '%s took %s' % (label, elapsed)
else:
... | [
"andrewkov@Andrews-MacBook-Air.local"
] | andrewkov@Andrews-MacBook-Air.local |
c40c6e259e4a638842d4f24d9fb439d03fa4f511 | 6551182069743e16c45b651696f71d8be26fc68a | /main/migrations/0010_stocks_price.py | 4dea1f420477f03725ef214d0bb4b757521dda6d | [] | no_license | srx64/ms105_shp_exchange | cef7c986eb078f64ff4f13dd206cb811040757e2 | 8218ee7309e8513cdb041efe7f6afaae70e09695 | refs/heads/master | 2023-07-04T23:24:16.976337 | 2021-07-13T19:47:57 | 2021-07-13T19:47:57 | 381,255,257 | 86 | 5 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.7 on 2021-05-06 23:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20210424_0954'),
]
operations = [
migrations.AddField(
model_name='stocks',
name='price',
... | [
"dasha.mishkina117@gmail.com"
] | dasha.mishkina117@gmail.com |
1a84d01eee6ca1ccaf632175d9d562efed8e789b | 10b7d40e5c6e35e0755e2431d83ace861ede295e | /pocket_change/rest/__init__.py | 7b0ccd6cf21e47601e762648923be675f2e227f2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | samdfonseca/pocket_change | ddeef5bfe2dc94dca99701affd0911f098a32182 | cb8a92603e1bee0eb096806f36223998cd22d5e1 | refs/heads/master | 2021-01-16T18:50:31.695270 | 2015-06-19T04:16:01 | 2015-06-19T04:16:01 | 32,945,228 | 0 | 0 | null | 2015-03-26T18:36:30 | 2015-03-26T18:36:30 | null | UTF-8 | Python | false | false | 63 | py | from flask import Blueprint
api = Blueprint('rest', __name__) | [
"silas.ray@gmail.com"
] | silas.ray@gmail.com |
b056870a8e5ec22e1ecf472c5da304f774d3f3a8 | 6abfac6f7eaf411bea02af907efa63375142ee29 | /build/industrial_core/industrial_robot_simulator/catkin_generated/pkg.develspace.context.pc.py | ebfed93b24688382e39e775a9e55f060904cf22d | [] | no_license | PorkPy/catkin_ws | 4e20b0baf12386f2b26f8a24e15faed35f799c00 | 31c24379ee9f5121c06d9cf163b8e83235955a01 | refs/heads/master | 2020-04-22T21:18:58.715283 | 2019-02-14T10:25:17 | 2019-02-14T10:25:17 | 170,670,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "industrial_robot_simulator"
PROJECT_S... | [
"dommckean@gmail.com"
] | dommckean@gmail.com |
d0548a4d828307ef22b8dfcec338d3734dfdbd6a | b7b6777bcd86311ebe36187e4bdc206b2f0a4fed | /Capstone/dashboard/views.py | af798f99e48eb8e752cb9681529e22432b06bc62 | [] | no_license | zhenyul1/Capstonedashboard | c980584a5e9a37c8bb2061eefc09f7b8106991aa | 8dce277150ccf95dde47794e7b04e4299c24113e | refs/heads/master | 2020-03-16T04:11:34.768478 | 2018-05-09T16:43:55 | 2018-05-09T16:43:55 | 132,505,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,203 | py | from django.http import JsonResponse
from django.shortcuts import render
from datetime import datetime, timedelta
import requests
import ast
from collections import defaultdict, namedtuple, OrderedDict
def home(request):
context = {}
# get machine list and parse the input to dics
response = requests.get("... | [
"zhenyul1@andrew.cmu.edu"
] | zhenyul1@andrew.cmu.edu |
60970ab65f2384908efc1c74b7fa6fdefbaadf46 | b6a48f9a6158bcb7e6fc75e5eacaef19250fc4c5 | /cosmos/ingestion/ingest/process/detection/src/torch_model/model/utils/config_manager.py | c5af72c9c0d77749c41e4e4151ac91a4091dc749 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | UW-COSMOS/Cosmos | dcde3be6534e411a20fcf1ff36e422fc8af2ac8a | 5ed4a4c149e03773690668437d2f93aa532453c6 | refs/heads/master | 2023-09-01T18:03:20.525760 | 2023-08-31T13:56:21 | 2023-08-31T13:56:21 | 159,849,583 | 39 | 14 | null | 2023-09-13T14:39:45 | 2018-11-30T16:24:59 | Python | UTF-8 | Python | false | false | 1,242 | py | import yaml
class Struct:
def __init__(self, **entries):
for key, value in entries.items():
value2 = (Struct(**value) if isinstance(value, dict) else value)
self.__dict__[key] = value2
class ConfigManager:
"""
Basic config singleton for easily accessing config parameters
... | [
"ankur.goswami12@gmail.com"
] | ankur.goswami12@gmail.com |
6ad5bd78dfb8022244345b015e8ec44e4942cb9f | 0953f9307b506255e3b310193d8e33706974e73d | /helloworld.py | 6e3f8f51ceab2ea43232064d2e18dc5a95202a89 | [] | no_license | ginda/appengine | be80cf8febcbcf8ebc933171ddfa5e662c4187df | 8d7c9ddb79dc86faa24ea334cc8461b7b6687c95 | refs/heads/master | 2021-01-10T19:04:41.343256 | 2011-09-11T15:25:26 | 2011-09-11T15:25:26 | 419,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | import myClass
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
#class is now external
class MainPage(webapp.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/html'
x = myClass.myClass()
self.response.out.wri... | [
"gh@gh-Latitude-E6410"
] | gh@gh-Latitude-E6410 |
681a5ed2c794eb4e09f40f31941d9a53eb066735 | 8e38235e128a78e0126fb4c492d4d33a94a35257 | /main.py | 5362268192559938c000099d64885db04d8909dd | [] | no_license | dioNode/siliconAirApp | add7a7ee88812eb85e4d335827dedf45075ad747 | eee3a7bb86969672f64d6865e9310e57a3f0c260 | refs/heads/master | 2020-03-28T16:46:04.367037 | 2018-09-29T06:52:15 | 2018-09-29T06:52:15 | 148,726,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | from PriorityANN import PriorityANN
def main():
priorityANN = PriorityANN()
while True:
command = input("What would you like to do?\n [C = Build CSV from current flights to train] \n [E = Evict passengers from flight] \n")
if command.upper() == "C":
print("Generating CSV")
... | [
"dion.lao@uqconnect.edu.au"
] | dion.lao@uqconnect.edu.au |
97c3730c522f14d3e70b194878b0d860135c6b52 | def06466dadf32385b083615e46a07188ef841c2 | /web_app/primes/primes/wsgi.py | 4839f01dfbebfa726790474ac354f5d2b5730dc8 | [] | no_license | ChillarAnand/just-queue-it | ead51fa0fa14bca6276c452b32a8d4e382e37f95 | c58a214507b429d8854a1049e4b5ed6377435a82 | refs/heads/master | 2020-05-23T14:05:38.511931 | 2015-02-19T21:42:34 | 2015-02-19T21:42:34 | 31,038,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | """
WSGI config for primes project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` s... | [
"anand21nanda@gmail.com"
] | anand21nanda@gmail.com |
82562838b8c6c45b78ce1a65f030dff267405be8 | 28a5cbfff030bf21d82dc28177d94b76d2801714 | /ex04_hangman/exo4.py | b579d781cc4cda750f9062587bd1d74b2620fce6 | [] | no_license | dayana-18/hi-python | ba544bb8c71bc098b6887ec703a57c20cd00fd39 | 3673578c8b7e917d38240148cba275497c359274 | refs/heads/main | 2023-08-03T16:43:09.113955 | 2021-09-23T21:56:51 | 2021-09-23T21:56:51 | 409,200,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import random
#choisit un mot au hasard du fichier words.py
words = open('words.py').read().strip().split('", "')
word = random.choice(words)
print(word)
#l'utilisateur a 12 chances pour trouver le mot
for i in range(0, 12):
user_choice = input('letter :')
#parcours du mot
for letter in word :
if ... | [
"dayrz18@gmail.com"
] | dayrz18@gmail.com |
6abe2aa5eb03d998411e585d09fff339547d1c02 | a3b281e38dedeffb306614fd16699f1bb12a4ed3 | /extplugins/weaponlimiterbf3/weapondef.py | ede1c7005569fa8faee7b55e656944e97d9444f8 | [] | no_license | ozon/b3-plugin-weaponlimiterbf3 | c17820a629ae6d252753fe7c38b825e09fa0b26e | d913d001cb34adf24cbea6c546528b13d36b76e2 | refs/heads/master | 2020-05-17T00:57:17.636611 | 2014-02-14T00:47:28 | 2014-02-14T00:47:28 | 2,986,901 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 23,689 | py | WEAPON_NAMES_BY_ID = {
'AEK-971': {'type': 'assault rifle', 'name': 'AEK-971'},
'Weapons/AK74M/AK74': {'type': 'assault rifle', 'name': 'AK-74M', 'kit': 'assault'},
'AN-94 Abakan': {'type': 'assault rifle', 'name': 'AN-94', 'kit': 'assault'},
'Steyr AUG': {'type': 'assault rifle', 'name': 'AUG A3', 'kit... | [
"rootdesign@gmail.com"
] | rootdesign@gmail.com |
03710aad4caae02e3b37f38eb9379396d049d532 | f5171500752e258406718a0d2f33e027e97e9225 | /Simulators/BEsim-vs/AppGenScripts/sobelTester.py | f6523f41eb1e0624d3a046d3d7a7f7aaef7af9a4 | [] | no_license | UFCCMT/behavioural_emulation | 03e0c84db0600201ccb29a843a4998dcfc17b92a | e5fa2f1262d7a72ab770d919cc3b9a849a577267 | refs/heads/master | 2021-09-25T17:55:33.428634 | 2018-10-24T15:55:37 | 2018-10-24T15:55:37 | 153,633,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import re
import csv
import highGen
import appGenerator
import os
proc=[2,4,8,16,32]
dim=[2,2,3,4,6]
rows=[320,480,640,800,1024,1280,1600]
cols=[240,320,480,600,768,1024,1200]
#proc=[4]
#dim=[2]
#size=[128]
operation=["Sobel"]
os.system("sobelInputGenerator.py")
for op in operation:
for procIndex in range(len(proc)):
... | [
"aravindneelakantan@gmail.com"
] | aravindneelakantan@gmail.com |
a2de12fa9022f2658a10c58f120c7721ea5711ff | a97f789530412fc1cb83170a11811f294b139ee8 | /疯狂Python讲义/codes/04/4.2/indent_error.py | a5376f270c8bc4c43ab4de3efb842b2239fcf796 | [] | no_license | baidongbin/python | 3cebf2cc342a15b38bf20c23f941e6887dac187a | 1c1398bff1f1820afdd8ddfa0c95ccebb4ee836f | refs/heads/master | 2021-07-21T19:23:32.860444 | 2020-03-07T11:55:30 | 2020-03-07T11:55:30 | 195,909,272 | 0 | 1 | null | 2020-07-21T00:51:24 | 2019-07-09T01:24:31 | Python | UTF-8 | Python | false | false | 166 | py | s_age = input("请输入您的年龄:")
age = int(s_age)
if age > 20:
print("年龄已经大于20岁了")
print("20岁以上的人应该学会承担责任...")
| [
"baidongbin@qq.com"
] | baidongbin@qq.com |
2e2165a60eee1738d27216e3431329a016dd2989 | aa75e0ccf5808737b3a29d21769f6de90d01033a | /kaoshi/6.py | 104f58cb98f90046e9f536657e57c9a41488c8f3 | [] | no_license | clarkkentzh/python | 1b2a740433bca7d73b50bd6b266d2051640b57b0 | 7fb850d0aa1d614fa1aa5a4d8368a461771410fb | refs/heads/master | 2021-07-02T05:04:34.873232 | 2017-09-20T08:14:20 | 2017-09-20T08:14:20 | 100,256,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #coding=utf-8
import math
st = raw_input()
lists = st.split(" ")
rows = int(math.sqrt(len(lists)))
k = 0
list1 = []
list2 = []
for i in range(rows):
list1.append([])
for j in range(rows):
list1[i].append(lists[k])
k += 1
def fun1(lists):
for i in lists[0]:
list2.append(i)
del... | [
"clarkkent.z@outlook.com"
] | clarkkent.z@outlook.com |
848d2f480bd397f153f5c878357136984965741b | 970c31bbfaa5d6c9b2c4c60e9958a0ec6c002bf7 | /config/jupyter-password.py | 135fc4063f12ed050d09aec67a3316962e263884 | [
"MIT"
] | permissive | nyugoh/machine-learning-container | 2a0be540383ad382c1684febd29aae4ec172095d | 7d8a310cee304a8c6cddeebb5b3f9ff09a9b4955 | refs/heads/master | 2021-01-25T14:23:33.089705 | 2018-03-03T14:23:21 | 2018-03-03T14:23:21 | 123,692,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from notebook.auth import passwd
import os
jupyter_config = os.path.expanduser('./jupyter_notebook_config.py')
line = "==========================================================================="
print line
print "Setting Jupyter additional configuration"
print line
print "Please set a strong password"
pwhash = passw... | [
"nyugoh@gmail.com"
] | nyugoh@gmail.com |
d4c60b7b753d2ae5a08ffb5223c250db055a3bfe | 0cc37ea66fff1ff87fd6b01c9ea66e0392faaf1d | /centroid3.py | 471e03ca973b40dcf02c381a88dc616ad219a11e | [] | no_license | pratheeknagaraj/ssp_other_projects | 2062093930644cd90f533cf5a1948d6959f0c5e7 | 5d5e932e152b60e93424bc5ebfcee6fa9ca24fba | refs/heads/master | 2020-11-26T17:04:25.607261 | 2012-12-10T11:08:48 | 2012-12-10T11:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | '''
Pratheek Nagaraj
July 1, 2011
Image Processing and Centriod Project
2. Programming Actvity Part (c)
This program will process an image file and find the centroid of the object
'''
#Import Packages
from visual import *
from numpy import *
from math import *
import pyfits
import numdisplay
def ce... | [
"pratheek.nagaraj@gmail.com"
] | pratheek.nagaraj@gmail.com |
9b8ce594f608bd4ca62109570db9828ca5bfef0a | 149f6abbc2b62d9e0c71ebc8c14643a7d6313a75 | /Validaciones/valida_PoC.py | 2b4d6a1d861f385615b29129067a723c084a9d83 | [] | no_license | mcvalenti/ARXCODE | b2c7dc9cd25674fae932f9a3b339c10fcf1ae5cf | 51cd3c159ee7a9e0b909e46eb6fcb684ff52cb86 | refs/heads/master | 2021-01-17T09:27:01.373266 | 2018-08-29T19:44:59 | 2018-08-29T19:44:59 | 68,813,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,052 | py | '''
Created on 30/06/2017
Se transcriben los datos de la bibliografia
(Lei Chien ) a fin de validar que la formula
y los metodos que se utilizan para el calculo
de la PoC son correctos.
@author: mcvalenti
'''
import numpy as np
from datetime import datetime
from scipy.integrate import dblquad
from CDM.cdmParser imp... | [
"mcvalenti717@hotmail.com"
] | mcvalenti717@hotmail.com |
307eb8a2de903b6a21d1b1e3a272603dad316992 | f0e75512dbeabd273e28a97016cdc1e51d26b7c4 | /FPT/migrations/0025_auto_20210128_0147.py | 3cc23f11f913e8b8aa7fb262fc2f9b8c88aeddea | [] | no_license | khoa03052000/FPT-Trainning-System | 339041b533d1acd2ef82750262d7cf6573604f85 | 21411aa387c20e2151316c062c3b964a12d5e168 | refs/heads/main | 2023-02-25T16:26:08.442087 | 2021-01-15T11:12:18 | 2021-02-01T05:10:10 | 329,796,901 | 0 | 0 | null | 2021-01-15T03:47:27 | 2021-01-15T03:17:50 | null | UTF-8 | Python | false | false | 951 | py | # Generated by Django 3.1.5 on 2021-01-28 01:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('FPT', '0024_auto_20210127_1021'),
]
operations = [
migrations.AlterField(
model_name='trainee',
name='dot',
... | [
"khoahtgcd191049@fpt.edu.vn"
] | khoahtgcd191049@fpt.edu.vn |
2d35ba558e65b2aa0a4c270411cd0a7207189d72 | 9cf434b6ee59ab22496ee031fb4ab145bbaff1a2 | /tranque_v1.8.4_source/backend/src/targets/migrations/0025_threshold_kind.py | 9da935043934aadd20fada38b72528d8345ff01b | [] | no_license | oliverhernandezmoreno/SourcesOH | f2ff1a5e3377f0ac1fb8b3153d99d0ee703700b7 | 5d9ca5ab1caceafd4d11207139c9e56210156ef8 | refs/heads/master | 2023-01-05T02:51:25.172103 | 2020-08-27T14:39:34 | 2020-08-27T14:39:34 | 64,422,812 | 0 | 1 | null | 2022-12-30T17:25:10 | 2016-07-28T19:33:44 | JavaScript | UTF-8 | Python | false | false | 402 | py | # Generated by Django 2.1 on 2019-06-04 19:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('targets', '0024_target_remote'),
]
operations = [
migrations.AddField(
model_name='threshold',
name='kind',
... | [
"oliverhernandezmoreno@gmail.com"
] | oliverhernandezmoreno@gmail.com |
3876214b0e807bb05f2093c7352f8a9df05e35b5 | 76e2190fd9d18a25645bc6c19a2d7c08d2b7a065 | /crawler.py | b4a4f3086ec24704840fc9c8170b7969b5e600d3 | [] | no_license | crubalcaba/subsbot | 655f5b624ae0207c8b9ce766af72830b42b72d30 | 9a9d760b624ddde037651cc7b5ecd88f902e8cc9 | refs/heads/master | 2020-04-16T22:40:48.035041 | 2019-01-12T21:52:13 | 2019-01-12T21:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import requests
import re
class Episode:
id = 0
name = 'no name'
subtitles = []
def __init__(self, id, name, subtitles):
self.id = id
self.name = name
self.subtitles = subtitles
def __str__(self):
return f'[{self.id}] -> `{self.name}` -> {self.subtitles}'
class ... | [
"akiel@aleph.engineering"
] | akiel@aleph.engineering |
6a24d87959255b844418cf43580ce215287ee4be | b9e388d2cb2b96a2286030eee9501e22e4081a5e | /yolo3_verification_code_recognition/train.py | 9925a8b849a96206b6e939d4d1588044b810444d | [
"MIT"
] | permissive | quicklysnail/yolo3-simple-application | d61bcd0fc140d3cdcb9c4b96145cd887ec274ea8 | eb7a776fe190ef0df0ea6f1f1eeefeeea73aa224 | refs/heads/master | 2021-10-25T09:07:06.843744 | 2019-04-03T09:40:17 | 2019-04-03T09:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,391 | py | """
Retrain the YOLO model for your own dataset.
"""
import numpy as np
import keras.backend as K
from keras.layers import Input, Lambda
from keras.models import Model
from keras.optimizers import Adam
from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
from yolo3.model import p... | [
"819078740@qq.com"
] | 819078740@qq.com |
df0ff49589c0a9d5fc891039c4e7a9daaa4b2b3a | bc2e9f69a78b6ad372bf7c3ea52498d5a877f45c | /Project1/Modularize/ditk.text_similarity.var_siamese.py | 6497209496becc676fea4065257a62307181d257 | [] | no_license | Parthdbz/csci548-project | ab2b45344eed9f84833f82cd1f3335fcb2f4069e | 332e2705307a0c8c61ffb6b9bbb22b1c0305affc | refs/heads/master | 2020-05-04T20:18:55.279288 | 2019-04-04T06:11:57 | 2019-04-04T06:11:57 | 179,432,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py |
class var_siamese(ditk.text_similarity):
# Any shared data strcutures or methods should be defined as part of the parent class.
# A list of shared arguments should be defined for each of the following methods and replace (or precede) *args.
# The output of each of the following methods should be defined... | [
"noreply@github.com"
] | noreply@github.com |
76365823d072d54826924eb954f54f08ee1178c8 | 616c3c02be31b9ae4d06bd7c5a8d4a2e7c446aa1 | /401.二进制手表.py | c1394764a8ed4675d2bc74aff7690c1c59620be7 | [] | no_license | L1nwatch/leetcode-python | 8b7c47c04ee9400d50d8b0764a544a0463df8f06 | 0484cbc3273ada25992c72105658cd67411c5d39 | refs/heads/master | 2023-01-11T14:53:15.339276 | 2023-01-11T05:24:43 | 2023-01-11T05:24:43 | 194,516,548 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #
# @lc app=leetcode.cn id=401 lang=python3
#
# [401] 二进制手表
#
# @lc code=start
class Solution:
def readBinaryWatch(self, turnedOn: int) -> List[str]:
result = list()
for hour in range(12):
bin_hour_1 = bin(hour).count("1")
for minute in range(60):
if bin_hour... | [
"watch1602@gmail.com"
] | watch1602@gmail.com |
2b657faad4e21d51fb84c11930db76c245c17871 | bfd7b57fd2f5df4a96691d92d4187d9b226c447e | /allInformation_id.py | b779b66e40ffdc3b525024ed40bdfc5f7f10ee9a | [] | no_license | 3AM-dev/GetData | 1d0eab1f3a243ed06086d236078b524bf0679c67 | b6d2b6c11b4d04fd95c6f6eb1e91de47c74d6ea1 | refs/heads/master | 2023-06-09T06:22:05.302209 | 2021-07-04T11:56:19 | 2021-07-04T11:56:19 | 382,832,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | '''
作用:通过id获取所有的数据信息
版本:21/5/14修改了原来的部分,行头整理完毕
'''
import pandas as pd
import numpy as np
from pymatgen.ext.matproj import MPRester
import csv
# path = r'D:\机器学习--孙老师\data\5.12\Ti+Cr\12.csv'
# data = pd.read_csv(path)
# print(type(data))
# data=data.values
# data_num=data.shape[0]#id的个数
# data=data.tolist()#二维数组转一维数组
... | [
"977725368@qq.com"
] | 977725368@qq.com |
b37cde0f2e69f7b1f6aae3518ce11961dc698a7b | 133b62fc8c68b56ff0512284c5846ee94043327f | /nets/try_out_ms_net.py | 277e1f45fc2cf117eb536237453204f622927368 | [] | no_license | deanpospisil/v4cnn | 87c41d1eb5afeeaaec12350d53cb01c276277103 | b0532e9083eb023c2247e5b53833229e7e6eb740 | refs/heads/master | 2020-04-15T13:10:53.447804 | 2020-04-07T17:24:01 | 2020-04-07T17:24:01 | 56,346,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 13 16:21:25 2017
@author: dean
"""
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 29 15:06:13 2017
@author: dean
"""
from pylab import *
caffe_root = '/home/dean/caffe/' # this file should be run from {caffe_root}/example... | [
"dean@sarus.biostr.washington.edu"
] | dean@sarus.biostr.washington.edu |
0a7695a450556600a09b319b421f2220e47917a5 | 4f0cbdfe4b44c6a01dd7029900ee612f1466bda7 | /test.py | 3d26c742e9c6ea7a7cc37e23e677720cbf3aa83d | [] | no_license | dazedfunc0/testSpacy | 4d43ceb1dda54fb7aed5d0385f9416b997d0ecb6 | 72058f15e93e7754c9dff38a79ac2abba4e3fa2b | refs/heads/master | 2022-12-05T02:19:34.099739 | 2020-09-04T14:46:09 | 2020-09-04T14:46:09 | 292,871,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import spacy
from spacy import displacy
from spacy.lang.en.stop_words import STOP_WORDS
nlp = spacy.load("en_core_web_sm")
text = nlp('''Kraftwerk is a German band formed in Düsseldorf in 1970 by Ralf Hütter and Florian Schneider. Widely considered as innovators and pioneers of electronic music, they were among the fi... | [
"gsakhvadz3@gmail.com"
] | gsakhvadz3@gmail.com |
4870aa6fd357ecf7b67f52f9708a5a396f00d244 | 9112e89dc3840f6ff73a7c253c796b4530dbfb4d | /locationpro/wsgi.py | dd2581a58c2e92646ef18c938d4c71e342586984 | [] | no_license | RedAakash/DjangoLocationRESTApi | 0aa55315878b716e3bf249c79932750d95666969 | 5134a02fbaa5cdec3519d47db7ddd08ec78250e3 | refs/heads/master | 2021-09-24T20:49:14.764460 | 2019-12-24T21:09:30 | 2019-12-24T21:09:30 | 230,003,625 | 0 | 0 | null | 2021-09-22T18:17:57 | 2019-12-24T21:07:56 | Python | UTF-8 | Python | false | false | 399 | py | """
WSGI config for locationpro project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"akash@goognu.com"
] | akash@goognu.com |
8cc8e89134bba8cf346a36513c1e8a98f5c17c5b | f501c7310fa3ca46a58e44b81556d7826acfd67f | /modules/ApplicationControl/appman_gui.py | f1543d5d4e06442605c846c2bc2c5341aae7db56 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | shiva16/BCI | 7917ce910e6c8451fcbcc5cbe37866a08dd0cca7 | 00f97305481c62068ef4572c379721e8622518a7 | refs/heads/master | 2020-05-20T19:27:48.789782 | 2013-10-02T21:30:53 | 2013-10-02T21:30:53 | 37,503,971 | 1 | 0 | null | 2015-06-16T02:46:03 | 2015-06-16T02:46:03 | null | UTF-8 | Python | false | false | 30,056 | py | #!/usr/bin/python
import os
import appman
import confman
import subprocess as sp
from argparse import ArgumentParser
from ConfigParser import SafeConfigParser
from PyDragonfly import Dragonfly_Module, CMessage, copy_from_msg, copy_to_msg, MT_EXIT, MT_KILL
from time import sleep
import threading
import Dragonfly_config... | [
"emd@.(none)"
] | emd@.(none) |
f5230e1e1563a7726f439fe2228a5b66f1ec575e | 896da6e62703afc5cbeca27969bf9d3a813b2605 | /yodlee/models/field.py.7a29849846499503f4369b73ee04c454.tmp | 342dd9c3e8f1a7fffef53b5f91a0183f39c7ea8a | [] | no_license | webclinic017/yodlee_client | 4d150f74c8c2255b096f3765c3772c6fb0bcbe81 | 7cbf79d3367fd13da375bf7134718bae51b4e8fe | refs/heads/master | 2023-08-04T01:51:17.850386 | 2021-09-22T21:29:34 | 2021-09-22T21:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,683 | tmp | # coding: utf-8
"""
Yodlee Core APIs
This file describes the Yodlee Platform APIs, using the swagger notation. You can use this swagger file to generate client side SDKs to the Yodlee Platform APIs for many different programming languages. You can generate a client SDK for Python, Java, javascript, PHP or oth... | [
"jordan-hamill@hotmail.com"
] | jordan-hamill@hotmail.com |
3d45c93d651f9f216389e7eb639666305b5005ab | 712358ba6c93ccc4251b1385792a1b50e2d4a5e9 | /main.py | cbce87ec5ed95465fe57b8603b9772dfed4cf86c | [] | no_license | JW312k/GTest | 4e8fb0429336d3e090b08b2d4b64f84cecec0d75 | 3998bbc61d7fae38b27ca6ac492caeb3b4718119 | refs/heads/main | 2023-02-15T05:34:06.737966 | 2021-01-05T23:55:56 | 2021-01-05T23:55:56 | 325,429,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import tkinter
root = tkinter.Tk()
tkinter.Label(root, text = "Hello World!").pack()##fdsafds
root.mainloop()
#abcde | [
"noreply@github.com"
] | noreply@github.com |
1180c2df653973dfeb4478f34ad3c39fd22cab39 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/workflows/v1beta/workflows-v1beta-py/google/cloud/workflows_v1beta/types/__init__.py | 66aec79fe2b77723f73afe591aafa1edbbb647c0 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
45bf48ffd215e02b0acf52e2a9c28c2383657a7c | 3ed85ff2d80d1e562e8dfccf3f197ae2c4719a29 | /login/migrations/0002_auto_20181219_0937.py | 21f84eb22870a139d1a58203018928d3c471812f | [] | no_license | zhoubin0422/mysite | 2d78ebdb25a83a0d4132edb8c0c6d96abba08145 | d2d4343c868d2c113813436e84e860adc2552e34 | refs/heads/master | 2020-04-12T10:03:57.872486 | 2019-04-16T05:21:59 | 2019-04-16T05:21:59 | 162,417,639 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | # Generated by Django 2.1.4 on 2018-12-19 09:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('login', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ConfirmString',
... | [
"wanwu@iMac.local"
] | wanwu@iMac.local |
d72980cb2fe713c566d88566215d5efb3856abaa | f724c102966787cad1c588a77908a5c922aab4f0 | /catalog/migrations/0002_bookinstance_borrower.py | de65debcb893f64f2c3fb3ee65d5b2e77ab6cc7d | [] | no_license | erbilsilik/local-library | c198de959dfacd03aebc30cde021219abbafa235 | 2f3da157a7db0a2fc591de42e45fbfbd34b939f1 | refs/heads/master | 2020-04-17T13:23:29.554042 | 2019-01-20T19:46:53 | 2019-01-20T19:46:53 | 166,613,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # Generated by Django 2.1.5 on 2019-01-20 02:01
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),
('catalog', '0001_initial'... | [
"erbil.silik@kolayik.com"
] | erbil.silik@kolayik.com |
faff0c419d4ae3f2cdb59c26b7f93ca5fb1e738d | f1f23eb040142d8aa4f443a8142e00ad7827655d | /app.py | eac87fa47c133c1204fc03b3a824eb71311948ed | [] | no_license | xfoxawy/Simple-Flask-Restful-Api | 66cc5adc04bff480382c4f9d0a3811e7c4a348d0 | 1f08cac21b00bac1b3c8221aa5bc39700db58c9a | refs/heads/master | 2021-05-03T06:47:02.770571 | 2016-09-22T00:47:04 | 2016-09-22T00:47:04 | 68,850,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,832 | py | from ConfigParser import ConfigParser
from os import path
from flask import Flask, request
from models import db, User, Achievements, Statistics
from flask_jsonschema import JsonSchema, ValidationError
from flask_migrate import Migrate
from custom_exceptions import AlreadyExists
from helpers import respond
from simple_... | [
"xfoxawy@gmail.com"
] | xfoxawy@gmail.com |
6ca15290a3c7833d6b943fbf62dcac382d49c0ca | e820ca03c4aaa4b6e3f6690d63cfe88849730c18 | /experiments/examples_complexityTestByOptimization/test_basicFeatures.py | 1704ccc5044ce22bac654c1ed250f14fa45c7c1a | [] | no_license | milan-rybar/inspiration-triggered-search | 00a90c8089d6b7d771cfe9249c7f059f692ebdc2 | 45ffa8ca1e5689dabae4eeaa1034d0125867610b | refs/heads/master | 2021-01-21T21:40:09.524218 | 2016-04-12T19:42:15 | 2016-04-12T19:42:15 | 42,721,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | #!/usr/bin/python
import sys
sys.path.append("../../scripts/")
from ITS import *
import os
import timeit
import cPickle
def loadDb(filename):
return cPickle.load(open(filename, 'rb'))
# settings
jobID = 0
workingDirectory = ""
def runExperiment(image, imageIndex, trial):
printMessage = "image in... | [
"kontakt@milanrybar.cz"
] | kontakt@milanrybar.cz |
024ba811a9a4912ee7e3a9bb618fa97c3b813238 | 7567ed407980771b907d179b705b3cad8606e108 | /python/python_and_functions/currency_convert.py | e2f0c639dc78996931dbff51342b65b14b21726d | [] | no_license | ocb-dev-04/projects.personal.cv | 211679ffb78fda1af9d4636d0ffe04c8b434b33c | 93638cff84cc1d0e31d3b897881552b48311f10b | refs/heads/master | 2020-04-17T23:27:35.121485 | 2019-01-23T05:34:32 | 2019-01-23T05:34:32 | 167,036,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | # currency convert
# a currency converter that asks for a quantity of money,
# asks for the currency for which it will be exchanged,
# gives the option to enter the value of said currency
# and launches the result
# dolar function
def dolarF():
print ("What is dolar price?")
global Dprice
Dpric... | [
"42700726+ocb-dev-04@users.noreply.github.com"
] | 42700726+ocb-dev-04@users.noreply.github.com |
58270a7c262944cd188186aa67ab970c20b93094 | 7bb9f2e6e8993c6104c1109c1c2714e331c09ac2 | /toolbox/workload/forms.py | e1b7346061cdb45ffd663c20b22b963dac2ebc2f | [] | no_license | oinopion/toolbox | 6a775156cb20660f2d92e1d825e4cbabc9df3be7 | a8df57ee6f2343aaaa512703da74dae5fa3d4cfd | refs/heads/master | 2021-01-19T18:32:54.484006 | 2011-12-22T15:00:48 | 2011-12-22T15:00:48 | 3,033,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # encoding: utf-8
from django import forms
from django.forms import fields
from toolbox.workload.models import Assignment
from workload.grid import date_range_inclusive
class AssignmentForm(forms.ModelForm):
beginnig = fields.DateField(
widget=forms.DateInput(attrs={'class': 'date-picker'}))
end = fiel... | [
"tomek@hauru.eu"
] | tomek@hauru.eu |
ae475c352c3eb1b9ae6b620daca1c2efa721b298 | 051393bec70541a8780382bcdbf8b0bc8e048862 | /index.py | bc3f48625426f88f3f7a4b1c02f2f00e87deb37c | [] | no_license | ptq204/CS419-ImageRetrieval | dfb0eb974edd9ebeae71349d77d4fe0785876ee5 | 08276aec1bbc2875f6d2f73b600e847be6fe6e40 | refs/heads/master | 2020-11-30T15:32:19.918800 | 2020-01-04T04:32:55 | 2020-01-04T04:32:55 | 230,430,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | from image_processing.clustering import Cluster
import argparse
import glob
import cv2
import numpy as np
import csv
from collections import defaultdict
import pickle, pprint
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-b", "--bovw", required = True,
help = ... | [
"quyenpt3@vng.com.vn"
] | quyenpt3@vng.com.vn |
c7a7e5e435b04371bd70f14f21f4ee9042776921 | baaa3a4d6cc9f9e465726ba11647ca9a3e431a7e | /IN1000/Trix 8/rorbu.py | 3a078705eb9f12b50d3fe290938296e121a276a1 | [] | no_license | MehCheniti/Python | 671d430868e1b8eeafabd7ecb1cf6684ab5c6858 | 1e1dc38dc874e03cb248664ff48f3cb2d497c6e5 | refs/heads/master | 2022-05-28T03:05:31.336202 | 2022-03-11T19:55:46 | 2022-03-11T19:55:46 | 206,413,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | from gjest import Gjest
class Rorbu:
def __init__(self):
self._gjester = []
def nyGjest(self, gjestObjekt):
self._gjester.append(gjestObjekt)
for gjester in self._gjester:
gjester.underhold(1)
def fortellVits(self, heltall):
for gjester in self._gjester:
... | [
"mehdiwx91@hotmail.com"
] | mehdiwx91@hotmail.com |
91aca319ba44c8ce8d330c73d614813e76cc844f | 4e0a4ce19538edf645e073d15c478f074b890748 | /src/problem036/solution036.py | 64c31501ce501d4ab0aaabd68fbbcce7e9b6b0d0 | [] | no_license | smilliken/projecteuler | d0d4aa9a48a64573e94b057ba7e0e554adb0adf2 | 1faf00f9bf49e989a4f05140a50e2dcb4c66cccb | refs/heads/master | 2021-01-19T06:25:36.794876 | 2015-10-28T22:55:03 | 2015-10-28T22:55:03 | 1,786,272 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def main():
print(sum([n for n in xrange(1, 1000001)
if str(n) == str(n)[::-1] and bin(n)[2:] == bin(n)[2:][::-1]]))
if __name__ == '__main__':
main()
| [
"scott@deltaex.com"
] | scott@deltaex.com |
328177def650b351652fbc6438abfbe85888e7bc | eb0cf6fdfbf36623e058f609b12eea291a3629eb | /comment/views.py | 473efdb1b1021ed4a98efb2d53bb56d48bf82505 | [] | no_license | spygg/liusblog | a6a951bb021cb1a4e39558487048ffe2da18b453 | 7a4cae60575ab321ad24b2ded35b5070fae879fa | refs/heads/master | 2021-01-20T11:00:59.128494 | 2018-09-29T14:23:07 | 2018-09-29T14:23:07 | 83,941,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | # from django.shortcuts import render, redirect
# from django.contrib.contenttypes.fields import GenericForeignKey
# from django.contrib.contenttypes.models import ContentType
from comment.forms import CommentForm
from .models import Comment
# from django.urls import reverse
from django.http import JsonResponse
from co... | [
"behindmeisyou@gmail.com"
] | behindmeisyou@gmail.com |
c33f29d71bbf135ea10ec41aa87c6f4a64b32f7e | 62179a165ec620ba967dbc20016e890978fbff50 | /tests/torch/modules/seq2seq/seq2seq_base.py | ebe3e13913b31bd5beac08c8b2640c3364faf5eb | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 3,173 | py | # Copyright (c) 2023 Intel Corporation
# 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 writ... | [
"noreply@github.com"
] | noreply@github.com |
1fe3e745416e5576ce7054c230de3a7a3ec43e8c | e809e86044044c1b40877f25629244443323bc14 | /7.py | 77af4f1947b5fb48b6d612e2d1c99a5ecf3b5ab7 | [] | no_license | LHR13/Holiday | 0f13e2c81096a476310435c6ef7e739105e1ba7c | 307e02cb1a6ff8bced2b18f864753ce99957dd39 | refs/heads/master | 2020-04-17T07:03:43.577724 | 2019-01-31T13:46:02 | 2019-01-31T13:46:02 | 166,351,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | a=[1,2,3,4,5]
b=a.copy()
print(b)
| [
"1309184697@qq.com"
] | 1309184697@qq.com |
03756a7acb99e8907d2bf21186f702c06e303a3b | 731c136992f98cab61508b9e5661afbd491962b6 | /Sort/Sort.py | 2f1338d9504c5dc5d5304e321cc3d067484b1d45 | [] | no_license | yangze01/py_LeetCode | c311235dbe1053c68694aea04fe29296ccb3a6e2 | 2b7213d00e2e482379a2f160b0d8e267a7951599 | refs/heads/master | 2021-01-20T06:03:53.852486 | 2017-12-08T01:30:26 | 2017-12-08T01:30:26 | 101,479,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,980 | py | #coding=utf8
import sys
"""
算法复习开始: 八大排序算法
"""
def bubble_sort(list):
"""
冒泡排序
:param list:
:return:
"""
length = len(list)
# 第一级遍历
for index in range(length):
# 第二级遍历
for j in range(1, length - index):
if list[j-1] > list[j]:
# 交换两者数据
... | [
"858848101@qq.com"
] | 858848101@qq.com |
fb02e325830bbbcc9b696029cfd80d733729e0f4 | 7e835e6323d5f03ad5ca6e97ad74858905a58afd | /models/efficient.py | 2715aef7632c8432400d58aece54ba3e9ba2ff7a | [] | no_license | shatalinra/dnn-watermark-detection | b43c67c2fe5c0e00e0fe4c7be48bc317b124e00d | 02d5d24767ce4929b05737cf3f53f197148a0f9a | refs/heads/main | 2023-06-09T18:04:54.952359 | 2021-07-04T05:03:17 | 2021-07-04T05:03:17 | 371,747,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | import tensorflow as tf
import logging
from pathlib import Path
backbone = tf.keras.applications.EfficientNetB0(weights='imagenet', include_top=False, input_shape=(224, 224, 3))
backbone.trainable = False
class StopIfFileExists(tf.keras.callbacks.Callback):
"""Callback that terminates training when certain file e... | [
"shatalinra@gmail.com"
] | shatalinra@gmail.com |
52e3890295583481ef97f847efae1012461483f2 | 37b79725b9bdeeeea097c50de242af8c78223d52 | /ansible/roles/db/molecule/default/tests/test_default.py | 0869703afead515317c4812b3edc5a6f149e839e | [
"BSD-3-Clause",
"MIT"
] | permissive | Otus-DevOps-2021-06/pawsy-foxicute_infra | c5a5d18e974e667d15399e6bb56919ef227f8a86 | af850b598086bfe3049aefcb3f7e6db8bbd257fc | refs/heads/main | 2023-06-11T03:31:15.806332 | 2021-06-25T12:09:31 | 2021-06-25T12:09:31 | 377,172,266 | 0 | 0 | MIT | 2021-06-25T12:09:33 | 2021-06-15T13:27:32 | HCL | UTF-8 | Python | false | false | 922 | py | """Role testing files using testinfra."""
def test_hosts_file(host):
"""Validate /etc/hosts file."""
f = host.file("/etc/hosts")
assert f.exists
assert f.user == "root"
assert f.group == "root"
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.Ansi... | [
"wily.mister.fox@gmail.com"
] | wily.mister.fox@gmail.com |
522be82d7acccbcab57ccd20f972dcc97a489fd3 | c44379e9a48a5f8eea6b73e205871d0965b18abe | /Digital_Recognizer-Keras.py | c15d34912ddfd221daf7c04450ce89e67b228dbe | [] | no_license | mehdi-saeedi/Machine_Learning_Py | 4d1f69238dc5319b498a89b5e298577b31e6b556 | 55316cac316187a5e137a9e3d0b0f468155502c7 | refs/heads/master | 2021-08-05T22:38:30.159524 | 2017-11-01T14:14:23 | 2017-11-01T14:14:23 | 106,041,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | # Create your first MLP in Keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.preprocessing.image import ImageDataGenerator
import numpy
import pandas as pd
from sklearn.model_selection import train_test_split
from keras import optimizers
import matplotlib.pyplot as pl... | [
"32145191+mehdi-saeedi@users.noreply.github.com"
] | 32145191+mehdi-saeedi@users.noreply.github.com |
7d83694389e19e9af3efec1f4b2681bc8a1a7b4c | 3dabf0a2da69806a0299d0c5d93d9ac4255b3868 | /VNL/PythonScripts/Scripts/ProjectionPlotter.py | 44c7ac1bbddfb5ab449aa4bae89ed500112e6f99 | [] | no_license | rwiuff/Nanomechanics-for-graphene-membranes | b55945f95d87e2aad95aa695d79d3a93d11f0214 | b7360f43ea7e7e0dcedc5f910636a81e5dc1eb2e | refs/heads/master | 2021-09-12T15:47:21.866702 | 2018-04-18T07:04:55 | 2018-04-18T07:04:55 | 104,201,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,835 | py | # =====================================================================
#
# By Frederik Grunnet Kristensen, Christoffer Vendelbo Sorensen
# & Rasmus Wiuff, s163977@student.dtu.dk
#
# Script for creating projected mode plots and trendlines
#
# =====================================================================
# ----... | [
"rwiuff@gmail.com"
] | rwiuff@gmail.com |
6c7f03635b074646f1d5fd9c357980c3721e9310 | b7ac30f1c28718a07fbf6353513453314b86ee63 | /app/models.py | 84332c05e43fa21bb8e983d81c242f63f8226cb8 | [] | no_license | yash2608-code/booklib | 568b358b3d4fb2b9ce88aba4c58a7c5b14ffadd8 | 4bdaeb4e7bd00bc044efb80bd4cff93c1a7fb7ce | refs/heads/master | 2023-06-12T20:32:10.569970 | 2021-07-01T06:52:43 | 2021-07-01T06:52:43 | 379,820,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from django.db import models
# Create your models here.
class Seller(models.Model):
fname = models.CharField(max_length=255,default="Firstname")
lname = models.CharField(max_length=255,default="Lastname")
email = models.EmailField(unique=True)
passwd = models.CharField(max_length=225,default="Password"... | [
"yashpoojara268@gmail.com"
] | yashpoojara268@gmail.com |
45a933ae54870562a49b7ca56df522e6a7a24a32 | fc561c26499cdb93b612fef9cfbd133348b27012 | /madlibs.py | e477a047bd7c6457a13e7ca15b91021fb710d8ac | [] | no_license | pollardk123/lab-05-js-py | 1db44340ae2ba25227cd854359c8e85203465871 | c3b00c5b771469bd367c0500c5af87509bf9d418 | refs/heads/main | 2023-08-22T04:50:09.244308 | 2021-10-07T01:59:28 | 2021-10-07T01:59:28 | 413,547,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | noun = input("pizza")
adjective = input("ridiculous")
adverb = input("slowly")
verb = input("running")
print("On a tropical island" + str(noun) + ",")
print("Underneath a" + str(adjective) +" lava moon.")
print("hangin'" + str(adverb) +"with the hula dancers, ")
print(str(verb) + "questions cause' they all got answers... | [
"pollardk836@gmail.com"
] | pollardk836@gmail.com |
2823bede91bf3a0573ff1ded78288e184fb2f586 | 758d17014e8200bb127fdb0a7e1c9a1e235efb33 | /tests/integration_tests/test_suite.py | ca0b9e89765d37c69e79b75b93247ea4388986a9 | [
"MIT"
] | permissive | mohsinkhansymc/mindsdb | 4de9a0fcc9c4c7693c5bd223a73b52d2ee7002b9 | 84376b50a9ea2fa695f5288479170cd73e147fae | refs/heads/master | 2020-07-22T00:47:19.395496 | 2019-09-09T03:46:10 | 2019-09-09T03:46:10 | 207,019,270 | 0 | 1 | MIT | 2019-09-07T19:57:32 | 2019-09-07T19:57:31 | null | UTF-8 | Python | false | false | 1,462 | py | from run_example import run_example
from generated_data_tests import *
import multiprocessing
import os
# Run the CI tests
os.system('cd ..; cd ci_tests; python3 full_test.py')
# Run the example datassts
datasets = [{
'name':'default_of_credit',
'sample':True,
'expect_accuracy_above':72
},{
'name':'i... | [
"jorge.torres.maldonado@gmail.com"
] | jorge.torres.maldonado@gmail.com |
23f2a6b0b4e2f106262cc73d2106fbdca425701e | 58072d424233d2ccbd0cefd4275fa4fba05e6d6c | /exercises/exl.py | 1bdb4bb38accc354c5adb812765b5a5e92c3d039 | [] | no_license | nvalladares/python-work | c98588588ad70dc11a21a5ddfb7606b65c8b35df | df08c2ff14a0a61ecd42ba67f623f33a10481e8d | refs/heads/master | 2021-01-10T05:48:44.253637 | 2015-11-08T05:59:52 | 2015-11-08T05:59:52 | 44,711,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,191 | py | # ------ Exercise 1
# print "Hello world!"
# print "Hello again"
# print "I like typing this."
# print "This is fun."
# print 'Yay! printing.'
# print "I'd much rather You 'not'."
# print 'I "said" do not touch this.'
# print "Cats are awesome!"
# print "cats are better than dogs!"
# -------- Exercise 2
# A comment, t... | [
"nvalladares120@gmail.com"
] | nvalladares120@gmail.com |
6e0e35a66e1e9f4a715acf41a8f04081eec0fb17 | 74aabb616e81cada88a96e74aa87ef276478d534 | /libs/functions/generate_api.py | dba15c7110e007c290b7272ef62049feb890f4b9 | [
"MIT"
] | permissive | mbachtell/covid-data-model | b0362b6b6666c86f06a8e388201b32e81e7f2ad3 | 695cb7fbbedc2f5e97a22fefc44f99db8e88f588 | refs/heads/master | 2022-04-21T16:43:48.257096 | 2020-04-14T05:20:05 | 2020-04-14T05:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | from datetime import datetime
from api.can_predictions import (
CANPredictionAPIRow,
CANPredictionAPI,
_Projections,
_HospitalBeds,
)
from libs.datasets import results_schema as rc
from libs.constants import NULL_VALUE
def _format_date(input_date):
if not input_date:
raise Exception("Can't... | [
"noreply@github.com"
] | noreply@github.com |
7374152c465ffef2efce65bb95b73399c51a8efa | 984680c2d4b4ecf65fb1228d6c80ea8efc774979 | /store/tests/test_urls.py | b420ae77023f1412246328095c458bc328772dcd | [] | no_license | NeoVic2006/Summit_project | ba37da2e9d98e3823b40801def303c077b204bc1 | bb6a87a950e251b83d44296b0d230317ec43056c | refs/heads/main | 2023-07-22T08:48:00.981271 | 2021-08-30T22:34:23 | 2021-08-30T22:34:23 | 396,090,417 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from django.test import SimpleTestCase
from django.urls import reverse, resolve
from store.views import Categories, CategoryUpdate, CategoryDetail, CategoryCreate, Products, cart_summary, cart_add
class TestUrls(SimpleTestCase):
# path('', Categories.as_view(), name='list_category'),
def test_list_categor... | [
"NeoVic2006@gmail.com"
] | NeoVic2006@gmail.com |
8f50db5e80b2f43463b2b5b774b8d15a91d726a6 | e213657e54a2d1b84fdb26a195045f2617972a5b | /scripts/Chizulum-Nnodu.py | 1f1cd9400e8664ad37364a02a4c05c6f9c0c6dfa | [] | no_license | Wenykeny/internship_hngi7 | 0bb9d1dcad7a5d87009a630052fc90497eab3f87 | 4bd38eab2333ee094c90bf8e9e0d555d0cac92bb | refs/heads/master | 2022-10-02T02:11:48.175312 | 2020-06-05T17:03:41 | 2020-06-05T17:03:41 | 268,345,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def intro():
print("Hello World, this is Chizulum Nnodu with HNGi7 ID HNG-01348 and email cin2@students.calvin.edu using python for stage 2 task")
intro();
| [
"moisesnt2@gmail.com"
] | moisesnt2@gmail.com |
0667f97fb57c8c12e435d2f0e0d28df739385605 | fcf3c983043273c4e57ac33330efaa0a9e5643a2 | /model-optimizer/mo/front/mxnet/extractors/utils_test.py | 070d5323122452347c77478d42a838fab10ae476 | [
"Apache-2.0"
] | permissive | p3tromyz0n/dldt | e7ab259848c90fdffd1395eaf5cf53ecd2b1e2f3 | 669bee86e580cbbc8ef40b440ab195ba2cbf5142 | refs/heads/2018 | 2020-05-15T13:03:47.748654 | 2019-03-14T10:13:27 | 2019-03-14T10:13:27 | 158,445,061 | 0 | 1 | Apache-2.0 | 2019-04-19T15:24:15 | 2018-11-20T20:07:50 | C++ | UTF-8 | Python | false | false | 6,599 | py | """
Copyright (c) 2018 Intel Corporation
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 wri... | [
"44090433+openvino-pushbot@users.noreply.github.com"
] | 44090433+openvino-pushbot@users.noreply.github.com |
57604a15ec5e0ce185af0e028d6b12c25ef35e93 | 78ab40c6e97f102be445b98fd8c3f908cf6f1609 | /tests/get_config.py | 517b3d63936cd46cf1b06f5351bc9133825982b0 | [] | no_license | meaqese/AutoImporter | a058ac4cc36de15d1711a41f381d34ee6b96a1e5 | bee28800503d5f471dd2415ba8e146e95dc2df62 | refs/heads/master | 2023-04-22T02:21:08.420179 | 2021-05-05T15:08:10 | 2021-05-05T15:08:10 | 290,337,456 | 0 | 1 | null | 2020-08-26T02:51:39 | 2020-08-25T22:30:46 | Python | UTF-8 | Python | false | false | 403 | py | import autoimporter
from pathlib import Path
from pytest import raises
def test_main():
config = autoimporter.get_config(Path('../sandbox/config.yaml'))
assert config == {
'import': ['blocks/*/**', 'blocks/*'],
'destination': 'styles.scss'
}
def test_file_not_found():
with raises(Fil... | [
"meaqese@protonmail.com"
] | meaqese@protonmail.com |
a4ce1a8fed608f1f033770d83238d074c118d376 | fbb7f9695b96c984fa2f43c4a9650fff6b09dcac | /src/main.py | 99a2c68105d4eecee391e97dc85d3fb6557ff128 | [
"MIT"
] | permissive | aevear/Stonktastic | db5b685d599ff46062f1d3a5cf7f7c1c0f4754e1 | 69a7b33c29492c8d76f5bec892eefb6606c2eaab | refs/heads/main | 2023-02-25T21:13:26.607786 | 2021-01-31T17:38:01 | 2021-01-31T17:38:01 | 329,738,692 | 3 | 1 | MIT | 2021-01-20T16:49:49 | 2021-01-14T21:28:10 | HTML | UTF-8 | Python | false | false | 1,947 | py | """
.. module:: main
:synopsis: Runs stonks backend with options for partial runs
.. moduleauthor:: Alexander Hahn <github.com/aevear>
.. moduleauthor:: Kody Richardson <github.com/aevear>
"""
import sys
from stonktastic.config.config import maxHistory, stockToOpt
from stonktastic.databaseCode import initializeS... | [
"xan.hahn@gmail.com"
] | xan.hahn@gmail.com |
389e956262735deadbff885eaace35377b9672fa | cbcbb04be207839cab8d26d352f64cc505a5eec9 | /virtual/lib/python3.6/site-packages/virtualenv/create/creator.py | 45075dae96cf5208adec66636979324cfeb1a046 | [
"MIT"
] | permissive | Antony-me/perfect-pitch | 8c61b7d6de1d00fddff5c2feea0293eb85ea8f92 | a2de0adaa3a22844390627459796b823e4ac8e71 | refs/heads/main | 2023-01-10T23:25:46.931458 | 2020-11-02T20:34:52 | 2020-11-02T20:34:52 | 308,002,503 | 0 | 0 | MIT | 2020-11-02T07:58:34 | 2020-10-28T12:01:00 | Python | UTF-8 | Python | false | false | 8,501 | py | from __future__ import absolute_import, print_function, unicode_literals
import json
import logging
import os
import sys
from abc import ABCMeta, abstractmethod
from argparse import ArgumentTypeError
from ast import literal_eval
from collections import OrderedDict
from textwrap import dedent
from six import add_metac... | [
"antonymunyasia993@gmail.com"
] | antonymunyasia993@gmail.com |
5083bd67060492a1bf8d4c3a8b2f3127faed1128 | be5e162e547ab24e6dde59d5d3ffec483c285e62 | /PostingsReader.py | 5ea7735d253c6b26b5d84413de33bc3e92953965 | [] | no_license | chrisb66110/BackEndRI | e0eb8eb3db61a9cdaf70e4c7b7cddc24a7972221 | 29fb176fcfac04e376ed7ed4ffe09b342807d529 | refs/heads/master | 2020-06-04T11:15:21.240049 | 2019-07-02T05:17:41 | 2019-07-02T05:17:41 | 191,989,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | import re
class PostingsReader:
def __init__(self, docName):
docName = str(docName)
self.fileName = './DocumentosProcesados/postings/' + docName + '.txt'
# Se lee el archivo .wtd
self.file = open(self.fileName, "r")
string = self.file.read()
self.fileLines = string.s... | [
"christofer.rodriguez@ucr.ac.cr"
] | christofer.rodriguez@ucr.ac.cr |
cb25979d06470980fc05da61a37f53a1a344aef2 | 2c5dc3bd95c6d2fbf0868defeb1c1f52608902fa | /Assignment 6/1.py | d6524fe78bd41c9fc121510756f2788c74ff0860 | [] | no_license | MohamedZakariaa/Python-MySQL | fe6745a3c8e9702976d6fc50e6cb9c6491dab285 | a18fe472d8cbf7662162f0731f13715425257ab9 | refs/heads/master | 2022-03-11T09:37:42.085525 | 2018-05-04T17:07:16 | 2018-05-04T17:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import mysql.connector
connection = mysql.connector.connect(host='localhost',database='python_mysql',user='root',password='aaditya')
cur = connection.cursor();
itemcode = input("Enter ItemCode > ")
itemtype = input("Enter ItemType > ")
description = input("Enter Description > ")
price = input("Enter Price > ")
reorde... | [
"noreply@github.com"
] | noreply@github.com |
9fd480bd7227b91fc716c94c68a0e585dde1809c | 4d27b9bbe4a6360db7fdb792c95c50b355411496 | /Admin/migrations/0003_feedbackandcomplaints.py | 0258c2fffa0b1980239a14cebd6627b672f53c03 | [] | no_license | Urmila29/Artist-Hub | f9d17448c2f858b8702aaf3054ae5d5d3ed40ce1 | ca7e5557e1060e911b0c408afe9d1a2c24d2cf49 | refs/heads/master | 2023-09-02T23:03:07.575336 | 2021-11-17T10:07:27 | 2021-11-17T10:07:27 | 427,591,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # Generated by Django 2.0 on 2021-11-11 11:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Admin', '0002_aadmin_otp'),
]
operations = [
migrations.CreateModel(
name='FeedbackAndComplaints',
fields=[
... | [
"sanurmi0129@gmail.com"
] | sanurmi0129@gmail.com |
f68979d9dc09bccdf5c7da0eb41b1131d065d623 | b415c705d572d40e00c577319c0b5c0129ffbdc4 | /pyGame/game_functions.py | 0a7d072e05340842a7a5f27a0e8357bb7f2d181f | [] | no_license | soulding/get_python | 6b839f63372e4b479c086251c8507a7f3c3dcb0f | fe5c52b7afd7f32f696d8c618285f124562d8b68 | refs/heads/master | 2020-04-16T02:00:13.239531 | 2019-02-12T03:53:56 | 2019-02-12T03:53:56 | 165,194,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,135 | py | import sys
from time import sleep
import pygame
from bullet import Bullet
from alien import Alien
def check_events(ai_settings, screen, stats, play_button, ship, aliens, bullets):
'''相应按键和鼠标事件'''
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
elif event.type == pygame.KEYDOWN:
ch... | [
"dzy0112@163.com"
] | dzy0112@163.com |
6e52d10b29499aa35b90812a85ffec4595d8550c | 1ed647263e9be7b8cd5fb06905121840f96f0a04 | /app.py | 8148f9b59f32b8f3bf4eecded141c7d3f55586fd | [] | no_license | JesNatTer/flask-blog | f595a73ce4e1bb3f0645d39f7c4d0782aa57cf19 | bcb80854ebac47e4218444dfe8d7e6a77ebe43b0 | refs/heads/master | 2023-06-24T05:14:58.511603 | 2021-07-30T12:05:25 | 2021-07-30T12:05:25 | 390,381,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,036 | py | import hmac
import sqlite3
import datetime
from flask import Flask, request, jsonify
from flask_jwt import JWT, jwt_required, current_identity
from flask_cors import CORS
class User(object):
def __init__(self, id, username, password):
self.id = id
self.username = username
self.password = ... | [
"jessenterblanche@gmail.com"
] | jessenterblanche@gmail.com |
18b6822b158feb02278f7ca0e91fdab621f5ee7b | 305b6376dfd2efaf77befcd0f250c45d1abc78cd | /implementations/stargan/datasets.py | c65141102f0010abc251c13a0c5abf92bfd84203 | [] | no_license | Liuhongzhi2018/Pytorch-GAN | 3a8d0355e452de5569c3eca62e67e751e2b33101 | c18f1c1b91fc59d5e4828f36060259e92baa6a6c | refs/heads/master | 2020-11-25T17:57:48.072967 | 2020-06-07T15:57:43 | 2020-06-07T15:57:43 | 228,781,769 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import glob
import random
import os
import numpy as np
import torch
from torch.utils.data import Dataset
from PIL import Image
import torchvision.transforms as transforms
class CelebADataset(Dataset):
def __init__(self, root, transforms_=None, mode="train", attributes=None):
self.transform = transforms.C... | [
"liuhongzhi_006@163.com"
] | liuhongzhi_006@163.com |
4bf01b7ae1c62134c913b6119a7902635486c910 | f44c9ab8a25c5f4a2811fc1e77a59cdce2fe588c | /analysis/check_audio_problems.py | 790ab272d5f3822830562109658a06f5fe559128 | [] | no_license | vejmelkam/StimPackC | 645e1137ef057379971054778cf45f7a9d89ed07 | b82dbbf267073017be3202996906fd0fe900e89e | refs/heads/master | 2021-01-10T20:39:14.301366 | 2011-08-24T17:39:54 | 2011-08-24T17:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | #!/usr/bin/env python
import sys
import string
# read lines from log file
f = open(sys.argv[1], "r")
lines = f.readlines()
f.close()
# find number of instance of "dropping buffer"
found = 0
for line in lines:
if string.find(line, "dropping buffer") >= 0:
found += 1
print("\n **** check audio problem... | [
"devnull@localhost"
] | devnull@localhost |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.