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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a7766941efa012d89c2958bfeb926bb7c046d52 | 990d7daa0a9346b54da35f498ed35ea04630325e | /todo/filescanner.py | 719985034a697f834816231383fa089811442be5 | [
"MIT"
] | permissive | jiahwa/pycookbook | 233a65b50011a2ae34d791922b5237edbe45ec6f | 300b36a0f47fea5614d2767c6c7b1edc44f8254a | refs/heads/master | 2023-07-03T22:21:27.571948 | 2021-05-12T15:58:50 | 2021-05-12T15:58:50 | 361,984,323 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | #!/usr/bin/env python3
# Scan directory and files in a folder | [
"yujahua@163.com"
] | yujahua@163.com |
33c449dc19c9effe47b503bea32359f5b42fb142 | f652cf4e0fa6fbfcca8d94cec5f942fd8bd021a0 | /mbuild/__init__.py | bac5509ac8b9754a7fb64e88b372b76f045f4dc3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Jonestj1/mbuild | 83317ab3a53f40ff6c9c69f6be542b8562602eee | 411cc60d3ef496fa26541bb0b7ea8dcf8c7449e4 | refs/heads/master | 2021-01-20T19:45:11.563610 | 2017-02-13T18:16:12 | 2017-02-13T18:16:12 | 32,886,030 | 0 | 0 | null | 2015-03-25T19:24:50 | 2015-03-25T19:24:50 | null | UTF-8 | Python | false | false | 339 | py | from mbuild.box import Box
from mbuild.coarse_graining import coarse_grain
from mbuild.coordinate_transform import *
from mbuild.compound import *
from mbuild.pattern import *
from mbuild.packing import *
from mbuild.port import Port
from mbuild.recipes import *
from mbuild.formats import *
from mbuild.versi... | [
"christoph.t.klein@me.com"
] | christoph.t.klein@me.com |
f4ce8f53f1aca56beb69d6797ab8c460039bae5e | 30250c5cf9b235b3d5eaa79418dc5bff94a78f16 | /chapter1/ex2.py | 5421de949add76c934d496fb301b874e5f7e5a40 | [] | no_license | jeckt/py_computer_vision | 0d121c07fb7c1564a25437905441b4a3edff5868 | 02007c2dae1e66436614583125164ab004f2e220 | refs/heads/master | 2023-07-22T14:02:10.297714 | 2019-08-24T13:38:25 | 2019-08-24T13:38:25 | 163,026,202 | 1 | 0 | null | 2023-07-06T21:31:51 | 2018-12-24T22:09:26 | Python | UTF-8 | Python | false | false | 910 | py | #!/usr/bin/env python
from PIL import Image
from numpy import array, zeros
from scipy.ndimage import filters
import matplotlib.pyplot as plt
image_file = '../data/sf_view1.jpg'
def unsharp_masking(image: array, amount: float) -> array:
"""Sharpen image by subtracting the blurred version from original."""
if ... | [
"steven.nguyen89@gmail.com"
] | steven.nguyen89@gmail.com |
f95aaa24aa81978b09838def7e11466bbd207ccd | eb2d683106f2a2ee6d266dd7f8fcdb4f86adb8fb | /datas/PY_gal.py | 965ade949ac6fdc78f2e7b6ed621377afd9b8f38 | [] | no_license | minicloudsky/PythonCode | 2fb001d524c8e59eefa66f476a1119ff27e7df36 | 298a6db80a74a3b5f7d75f6037306e9e06ffa092 | refs/heads/master | 2023-02-07T18:25:04.753928 | 2020-12-20T03:27:07 | 2020-12-20T03:27:07 | 106,422,450 | 0 | 0 | null | 2020-09-26T03:27:31 | 2017-10-10T13:41:28 | Python | UTF-8 | Python | false | false | 31 | py | import pygal
hist = pygal.Bar() | [
"1397991131@qq.com"
] | 1397991131@qq.com |
9ed35fcd21c9aa5b1e8ce9c53b2cc1c8ba77be02 | 5c5ba0cbdc972b56a3ac7664f68a74fe382c645a | /uri/5 - Mathematics/1240/Main2.py | ae4ddbd9b873cf229b0b689dc40261a5fec8f4ea | [] | no_license | humbertodias/challenges | 91e090b70ed65269ff94f0b8d4096526d3545ba3 | b832d55491b4d5c840b0bb25b931aef8f04f5784 | refs/heads/master | 2020-04-05T14:03:38.384606 | 2019-01-29T12:28:13 | 2019-01-29T12:28:13 | 94,749,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | nTests = int(raw_input())
for test in range(nTests):
a, b = raw_input().split()
if len(b) <= len(a) and b == a[-len(b):]:
print 'encaixa'
else:
print 'nao encaixa' | [
"humberto.dias@techne.com.br"
] | humberto.dias@techne.com.br |
8893df317f1c158e4400b4b8eb0be1430d608747 | 130e13bfad23961739613f78a7f3e59c67d28cac | /utility/resnet.py | e5a80a23b027647809fcf951058e2e1ada2ab564 | [
"Apache-2.0"
] | permissive | dashmoment/aic_scene | 981a0faca39b2079203d24a961a491905f0f2ca9 | 3e68c03f032b3979feb17b550a953e5aafc970c1 | refs/heads/master | 2021-07-12T05:47:35.491495 | 2017-09-29T09:53:54 | 2017-09-29T09:53:54 | 103,190,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,689 | py |
import skimage.io # bug. need to import this before tensorflow
import skimage.transform # bug. need to import this before tensorflow
import tensorflow as tf
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.training import moving_averages
from resnet_config import Config
import datetime
imp... | [
"dashmoment1017@gmail.com"
] | dashmoment1017@gmail.com |
7d568b30a9b1659b10f29e17dce48c20cdbf1df4 | ad0ed2d0df90f199123f8f9739069f56f3ba94fc | /nyktools/nlp/preprocess/normalize.py | 08ca22ac92ea7dfaf88e2dad409eb8216bdf07da | [] | no_license | nyk510/scdv-python | ca864f636dafede22e38c36cffe2dcec04420a9b | 4a2847a71f3334728a370a2c21d3dc33aa7c976a | refs/heads/master | 2020-04-23T22:18:37.336289 | 2019-05-06T23:29:35 | 2019-05-06T23:29:35 | 171,497,361 | 19 | 2 | null | 2019-05-06T23:29:36 | 2019-02-19T15:21:54 | Jupyter Notebook | UTF-8 | Python | false | false | 2,713 | py | # encoding: utf8
"""
文字の正規化
参考: https://github.com/neologd/mecab-ipadic-neologd/wiki/Regexp.ja
"""
from __future__ import unicode_literals
import re
import unicodedata
def unicode_normalize(cls, doc):
pt = re.compile('([{}]+)'.format(cls))
def norm(codec):
return unicodedata.normalize('NFKC', codec... | [
"takamail53@gmail.com"
] | takamail53@gmail.com |
34a49514631f4c2a3f2a4838151015eaf9e585bd | 4310528fa617bf1fd498535858bd02e40eb45834 | /venv/bin/chardetect | d96617745d60258c4f42d9cd534d3c546cfa432b | [] | no_license | lgergelyo/DHT11 | d6f38df38e57b5ac6b2570373a18f6879a859852 | b531722281f29fdaa954bd89fb4333ec49346362 | refs/heads/master | 2020-07-11T08:11:29.105044 | 2019-08-26T14:14:50 | 2019-08-26T14:14:50 | 204,485,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/gergely/PycharmProjects/DHT11/venv/bin/python
# -*- 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())
| [
"leandrotecnico@terra.com.br"
] | leandrotecnico@terra.com.br | |
5431788db52ee1985fa4417126ac5ea35bb35d38 | 1ecab9b2b5444eeb65724a3fbf7c4c2c6839bf89 | /python/hands-on/flask-03-handling-routes-and-if-for/Flask_if_for_structure/templates/app.py | bf4fe2da510401ad66d690a1471a5a29e1b05a90 | [] | no_license | emine-arc/aws-workspace | 5eb0186b4efad04f781b9647813a27f7f4e9e569 | 52e019b29b7ea5762ec2da6efa3bdd65165d63a8 | refs/heads/main | 2023-07-16T10:07:27.190351 | 2021-08-17T21:50:38 | 2021-08-17T21:50:38 | 378,922,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # Import Flask modules
from flask import Flask, render_template
# Create an object named app
app = Flask(__name__)
# Create a function named head which shows the massage as "This is my first conditions experience" in `index.html`
# and assign to the route of ('/')
@app.route('/')
def head():
first = 'This is my... | [
"emineulu.90@gmail.com"
] | emineulu.90@gmail.com |
6924e385d074e1dca2913f29af37d6c8dacc6fea | df373e0104ccdfc64dc80cd149d30f93776aa539 | /realtime-recs/test/rts_snopes.py | 19a12f58fb3c716e58fcffa9d3ff0c252a03307c | [] | no_license | btdlin/myPyUtils | ac0de295cc554dc6e837eeeddad4d1bb94c2907c | 374dc82a10c40122aa70a3765c30e6fefd700498 | refs/heads/master | 2022-10-02T07:31:11.210530 | 2017-04-28T17:05:38 | 2017-04-28T17:05:38 | 70,423,536 | 0 | 0 | null | 2022-09-23T21:02:54 | 2016-10-09T18:49:54 | Jupyter Notebook | UTF-8 | Python | false | false | 1,707 | py | import pytest
import recs_client.request as req
import bt_rts.thrift.gen.filters as recs_filter
from recs_client.client import RecommendationsClient
# rts_host = 'localhost'
rts_host = 'realtime-recs-k.magic.boomtrain.com'
# rts_host = 'rts.aws.boomtrain.com'
PORT = 7070
TIMEOUT = 20000
RECSET_ID = 'fakedb0c-c5c6-4515... | [
"dlin@boomtrain.com"
] | dlin@boomtrain.com |
44de918735615f54fa3ed81459dc21cfb153772b | 2ac39acf13c1cd636c25e6742040888775f27fe4 | /examples/B_basic_platform/bsp01_1plat4gw_noAuth_noDemo/gateways/gw_004/utils.py | c8637987346a9a531a179ed948f92a7f0f26bf47 | [
"MIT"
] | permissive | N5GEH/n5geh.services.rvk_simulator | 07edbc60a60a699eac5501eb1c34bdfadd777aa8 | 4a2c2882ddfedd7fcb260be3a86b9088f29b17c6 | refs/heads/master | 2022-12-03T13:18:09.685975 | 2020-08-05T09:12:04 | 2020-08-05T09:12:04 | 285,237,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,280 | py | import os
import sys
import math
import json
from datetime import datetime, time, timezone # , timedelta
import requests
########################################################################
def rho_fluid_water(temp_in_C, p_in_MPa, calc_option):
""" returns density of the fluid water in kg/m3 """
#if((temp_... | [
"stephan.wiemann@tu-dresden.de"
] | stephan.wiemann@tu-dresden.de |
3a737b07b660fdd6fd6585b09adff68d0c33286b | b8c3b9046a15f4babb563cc7415c08f8a9a0824b | /Python-API/extension/artifact/src/hana_ml_artifact/generators/cloudfoundry.py | 9a0ccb1f4677e017312b624df7f2560cdb173cec | [
"Apache-2.0"
] | permissive | SAP-samples/hana-ml-samples | f0832fa843b5dd268e8b0869d7cb3746b27bfd8d | 72b512b05fe2c238c09e20027e3ae3cfcd976771 | refs/heads/main | 2023-08-30T23:46:12.374019 | 2023-08-24T16:20:47 | 2023-08-24T16:20:47 | 192,615,699 | 83 | 57 | Apache-2.0 | 2023-07-20T16:45:20 | 2019-06-18T21:36:03 | Jupyter Notebook | UTF-8 | Python | false | false | 728 | py | """
This module handles generation of all Cloud Foundry related artifacts based on the provided
consumption layer elements. Currently this has not yet been implemented
"""
import os
from ..config import ConfigConstants
from ..hana_ml_utils import DirectoryHandler
from ..hana_ml_utils import StringUtils
from ..sql_pr... | [
"ronald.kleijn@sap.com"
] | ronald.kleijn@sap.com |
4b3aa7a1ee58238dd8a25b2a149447be16633036 | 64267b1f7ca193b0fab949089b86bc7a60e5b859 | /slehome/manage.py | 1cb83a303a492fa808560a2831d6104bd01a8931 | [] | no_license | hongdangodori/slehome | 6a9f2b4526c2783932627b982df0540762570bff | 3e558c78c3943dadf0ec485738a0cc98dea64353 | refs/heads/master | 2021-01-17T12:00:34.221088 | 2015-02-06T13:44:00 | 2015-02-06T13:44:00 | 28,847,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "slehome.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"chungdangogo@gmail.com"
] | chungdangogo@gmail.com |
69a014db23b4a930536b7973c0705de46b955c44 | 937f935c79e4fe8d879068e228f281f0b671c509 | /Daily_Coding/Stock/TwoPoint.py | f7f07e6496dadc60e1abc00d0309059735e940a6 | [] | no_license | ho2921ho/HomeWork | fa31e257c357fb41bd050510d4454e4ef170a7f9 | 605b0fd5562c35fc4f07ed2645c05c9497586703 | refs/heads/master | 2020-05-05T06:45:13.285060 | 2020-03-08T07:40:49 | 2020-03-08T07:40:49 | 179,800,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,736 | py | import datetime
import os
from bs4 import BeautifulSoup
import pandas as pd
s= str(datetime.datetime.now()) + 'TwoPoint_updated'
isfile = os.path.isfile('log.txt')
import requests
if isfile:
with open('log.txt', 'a') as f: #파일이 있으면 마지막 행에 추가
f.write(s+'\n')
else :
with open('log.txt', 'w') as f: #파일이 ... | [
"ho2921ho@naver.com"
] | ho2921ho@naver.com |
63f3621bd4a4a064b8f0a341a57fda5cb30c9c39 | 8f6b811c6e5b916be33a12262476b1be115095e5 | /datacube_ows/legend_utils.py | 52ce01a4dd61324db67f2d69341647252c901cf9 | [
"Apache-2.0"
] | permissive | ricardogsilva/datacube-ows | 811ac78e8d8e8b7bdcf6e7f5d126ddae14e6815f | ca984e808be45b333964a79e8cb1c644173ef876 | refs/heads/master | 2023-03-24T04:42:10.857167 | 2021-03-19T02:23:42 | 2021-03-19T02:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import io
import requests
from PIL import Image
def get_image_from_url(url):
foo = requests.get
r = requests.get(url, timeout=1)
if r.status_code == 200 and r.headers['content-type'] == 'image/png':
bytesio = io.BytesIO()
bytesio.write(r.content)
bytesio.seek(0)
return Ima... | [
"paul.haesler@data61.csiro.au"
] | paul.haesler@data61.csiro.au |
13a944d83d6cf902c75ad98a5ab8f111f384ec2f | 0e07267a48d49c794568dad5d5f1c9c35d5dc142 | /DataStoreApp/StoreApp/migrations/0029_remove_varification_balance_company.py | 256c7ba160a6995cb02d3ed30c23b17d37c01462 | [] | no_license | devpriyanka92/django-folder-subfolder | d8e1fdcb5dec3f3e95693e9888a3c04f46f14f0b | 7f84a41d9f612c82a0619258de7b020bed6887ef | refs/heads/master | 2023-04-27T14:25:43.861423 | 2019-06-08T11:32:16 | 2019-06-08T11:32:16 | 189,363,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # Generated by Django 2.2.1 on 2019-06-08 06:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('StoreApp', '0028_chart_of_account'),
]
operations = [
migrations.RemoveField(
model_name='varification_balance',
name='compa... | [
"0"
] | 0 |
edccbbf77490969f81283113c6a1c31b1f11e883 | c6c5fd379461384130c958b77f3fe6939722d525 | /parse.py | 17242ed7c1f036d4cfac0e50225b42cd927a71f1 | [] | no_license | thetobysiu/witcher-books-processing | 9fdc94cf81d7972ba485e4a84ce38c931227ab8e | f6fa72557366aa232ead135fc9f688ba222da19b | refs/heads/master | 2023-05-05T20:48:50.056377 | 2021-05-31T20:21:23 | 2021-05-31T20:21:23 | 262,867,378 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | # SIU KING WAI SM4701 Deepstory
from ebooklib import epub
from bs4 import BeautifulSoup, NavigableString
def parse_book(path):
book = epub.read_epub(path)
spine_list = [x[0] for x in book.spine]
chapter_list = []
for i, x in enumerate(spine_list):
if 'chapter' in x or 'epilogue' in x:
... | [
"thetobysiu@gmail.com"
] | thetobysiu@gmail.com |
76ac2d60a69c2c9463da4ae6c4547c5b867dd6e8 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/topology_association.py | 7832c4a1904ba784c50b3cf5aae97796eb260dd0 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,586 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
f91e304a783327df3d4912005c11b12d3bf3a797 | 4683079af4abcf271ad2b2f15a1f5052b22b3576 | /music/apps.py | 89af84c8e588dd5cd7cd10280e18e3225c5cbe37 | [] | no_license | AbdullahNoori/music_site | 21fb3a9d547d026393798b8af8d3be4a9fefa416 | 6f16f9c9bb40aabdfdae6e433f918002864210b4 | refs/heads/master | 2022-07-15T15:53:13.178544 | 2020-05-13T07:53:54 | 2020-05-13T07:53:54 | 257,746,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.apps import AppConfig
class MusicConfig(AppConfig):
# name = 'music_site'
# label = 'my.music_site' # <-- this is the important line - change it to anything other than the default, which is the module name ('foo' in this case)
name = 'music'
# default_app_config = 'full.python.path.to.your... | [
"nooriabdullah86@gmail.com"
] | nooriabdullah86@gmail.com |
51a153a9f8b9fdfc05f3a13e0a66841449824427 | ee073b76054e7f5dc9a2c7f974e13d43f0981129 | /fantasy_data_golf_api/models/player.py | 78ca5d331638b23873e46874b8c0e3647a76fe7b | [] | no_license | jamesanglin/fantasy-data-golf-api | 5fc016f72dbcdb11b2c6b7055939a5bb7f9603b7 | c71db07d97364d514e224d576227a495826d1912 | refs/heads/master | 2022-08-01T23:51:04.685641 | 2020-06-02T05:13:31 | 2020-06-02T05:13:31 | 268,706,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,267 | py | # coding: utf-8
"""
Golf v2
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
cla... | [
"jamesanglin@gmail.com"
] | jamesanglin@gmail.com |
7e8c77d3385ca946f3378e6d8630de594f140c6d | 1a73c18b0e450d6806cc9d1240e6d4f9ab1d6b80 | /views/forms/DetalleVentaProductoForm.py | 2d58855add909974239563f72da051596b62b110 | [] | no_license | DELTAxK2/misiontic-ecommerce | 7995081475708ce996e89673e819d62a1c8f4023 | 42196ce11856c8e5ec758a2d234eb1200ffcda67 | refs/heads/master | 2023-08-23T23:46:18.857204 | 2021-10-28T19:00:01 | 2021-10-28T19:00:01 | 422,978,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #Importación de clase Flask para desarrollo de Formularios
from flask_wtf import FlaskForm, form
from wtforms import StringField, FloatField
from wtforms.validators import InputRequired
class DetalleVentaProductoForm(FlaskForm):
compra = StringField('Codigo Venta', validators=[InputRequired()])
producto = Str... | [
"jiliar.silgado@gmail.com"
] | jiliar.silgado@gmail.com |
e95dacfb42b2aee9c6d787b4be4f205a9f109d6f | fbea457c552b3d96fafa61a697e347aced584938 | /Code/1.3 The society of mind.py | bedf4bb8f312e94b0b478686e2890eb1f4ca13a6 | [] | no_license | ATajadod94/The-Soceity-of-mind | 946f6589e92c821d68b9e0c9fe5bdf63e4fc31f5 | 3a9125036475ef41487b567d079545349412cc4d | refs/heads/master | 2020-03-19T04:49:43.697491 | 2018-06-04T00:46:26 | 2018-06-04T00:46:26 | 135,871,692 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | class Mind:
# A society of mind
def __init__(self):
pass
def __str__(self): ## Consciousness (?)
pass
def __getitem__(self, key):
pass
print(""" In doing this, we'll try to initate how Galielo and Newton learned so much
by studying the simplest kind of pendelums and... | [
"atajadod94@gmail.com"
] | atajadod94@gmail.com |
58957c35d431c5e25d5dc8ff897cc048088a54f1 | 7627b1d16fa40064376c5854d3a4a5ed113919b8 | /Gym/Pong/QLearning/QLearning.py | 08c6d1e24288656af9bd8a67134e1adf600235a1 | [
"MIT"
] | permissive | z-Wind/Reinforcement_Learning | 68e17fed8f5d739c6845bd14da47997234ed1835 | e89257e5a152be5c4350e95a7faf62d66de3d45a | refs/heads/master | 2020-06-04T13:40:57.512988 | 2019-08-28T12:24:25 | 2019-08-28T12:24:25 | 192,045,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,573 | py | import torch
import torch.nn.functional as F
from torch.distributions import Categorical
import numpy as np
from Gym.models.QLearningBase import QLearningBase
class QLearning(QLearningBase):
def __init__(
self,
device,
n_actions,
n_features,
learning_rate=0.01,
gam... | [
"zpsyhapcst@gmail.com"
] | zpsyhapcst@gmail.com |
a1053de4ca6cfcb987fa1c71b11fec49dce526d3 | ace029249e56decdc82770645cbe1904a1af8ec7 | /django/django_orm/semi_restful_tv_shows-addvalidation/apps/semi_restful_app/migrations/0001_initial.py | 857cc7500841a537e5ce0ddf4b3f63d066f25139 | [] | no_license | CoraleeZ/Python-Stack-All-Assignments | 1579e17d447afc0a56be6628db39ba13d6e2e1b3 | 993f4f3ed7ff8a22b8c4275cda037f7f925cb161 | refs/heads/master | 2022-11-08T06:17:31.668026 | 2019-03-24T02:59:29 | 2019-03-24T02:59:29 | 177,363,963 | 0 | 1 | null | 2022-10-15T01:50:04 | 2019-03-24T02:55:36 | Python | UTF-8 | Python | false | false | 1,202 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-02-20 01:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"helloqyzhang@gmail.com"
] | helloqyzhang@gmail.com |
5e3a0bcff7612094ba4a82324dc5a8bad44c8d0a | 1d96e514bfb16a3dff847179411fac2ee7f663c2 | /djangobayes/models.py | 09ce57bc9449c734af42e54277cadce65d916d3a | [
"BSD-3-Clause"
] | permissive | waylan/django-spambayes | e1c63b0fce1983f9523202cbbc40028ea8f998c3 | b5cae1ddbcb0ec180a5952fba6301d23fb0e0814 | refs/heads/master | 2016-09-05T13:06:47.300848 | 2009-07-31T01:01:19 | 2009-07-31T01:01:19 | 32,111,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.db import models
class Bayes(models.Model):
""" Spambayes training storage used to score new messages. """
word = models.CharField(default='', primary_key=True, max_length=100)
nspam = models.IntegerField(default=0, null=False)
nham = models.IntegerField(default=0, null=False)
def __un... | [
"waylan@localhost"
] | waylan@localhost |
e70f5b95d63446c623427ca8d4f551caadfa965a | b9bab8e92273968c2ae4f74b0128fa1080eb6b81 | /ejemploListBox.py | 95807722f15dd94b783ed799e9cf74eecc5ca05a | [] | no_license | querola/MasterEnPython | c124a6b5c2c76227a55d6f6a97d05b0ec610a1e6 | 88e0929ae6f87bfae1a317f093bfee30a8916866 | refs/heads/master | 2022-12-24T23:17:11.028046 | 2020-10-09T03:32:28 | 2020-10-09T03:32:28 | 290,673,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | class Application(ttk.Frame):
def __init__(self, main_window):
super().__init__(main_window)
main_window.title("Lista en Tcl/Tk")
# Crear una barra de deslizamiento con orientación vertical.
scrollbar = ttk.Scrollbar(self, orient=tk.VERTICAL)
# Vincularla con la... | [
"38117134+DesarrolloProsis@users.noreply.github.com"
] | 38117134+DesarrolloProsis@users.noreply.github.com |
ffd91bb863c0a3f67d1d3ed0d36bcd76c48916d4 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-1270.py | d68c3965a130f64994c9d66a570265f0edd9655d | [] | 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 | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
85d834c6ffb98c628f5f3832e33b699ffa6b03f6 | 5266c1c30ce25473efafbb1d3e6ff68cbf537a70 | /https_scanner.py | 8c73eb084247a05c42b8315f70aa71cad5129204 | [] | no_license | oskar456/https_scanner | ce1f86d5746c9f2b23c3658b4ddae7abf2bcf790 | 83b07dd2a053d6663fbeb9d954aad6a5847706b1 | refs/heads/main | 2023-02-12T18:56:59.003686 | 2021-01-07T15:33:31 | 2021-01-07T15:33:31 | 327,653,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,586 | py | #!/usr/bin/env python3
import ssl
import socket
import urllib.parse
import csv
import time
import requests
import click
def get_remote_tls_cert(hostname, port=None, timeout=1):
"""
Connect to a hostname. Return parsed peer certificate as dict.
Raise ssl.SSLError on TLS error
Raise ssl.certificateerr... | [
"ondrej@caletka.cz"
] | ondrej@caletka.cz |
9658794868bb500886ae279d410e71aa61e17c1c | 798b443753f516fa1cedbef21edbd36675913554 | /drf_learn/manage.py | 57c92d016bfe6c488170b4910ed886208dbb1611 | [] | no_license | itachiuhia/Django | 65b9cd55b6e2e46411936e24f2764bc1d946b3fd | 59a5147424a765da0fe407ae865133e7b3f9871a | refs/heads/master | 2023-05-07T00:35:17.425092 | 2021-05-31T18:13:18 | 2021-05-31T18:13:18 | 372,581,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'drf_learn.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"06harshgtm@gmail.com"
] | 06harshgtm@gmail.com |
bd5ad957aadb6a3319671d4d11f3b2f6e224f63f | 3552d35a4408055635807b4d3351570be7a5dafa | /Apps Course/appsday/iplapp/forms/FormModule.py | 7e78ae1f36531b3c4d69be3a500f167ec101f2ae | [] | no_license | ramyasree0299/summer2019_GNITS_ramyasree | 0d54f65b8a752091df03e8f3faa3208e88036a07 | bd408c0caf86bd9116acf6b85d7bb8fd062ae0f5 | refs/heads/master | 2020-06-01T23:16:56.196222 | 2019-06-23T13:04:08 | 2019-06-23T13:04:08 | 190,962,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | from django import forms
from iplapp.models import *
class Login(forms.Form):
username = forms.CharField(
widget=forms.TextInput(attrs={'class':'input','placeholder':"Enter username"}),
max_length=50,
required=True
)
password = forms.CharField(
widget=forms.PasswordInput(attr... | [
"ramyasree0299@gmail.com"
] | ramyasree0299@gmail.com |
025cd837c4188459a5639cc8311534e8858f7425 | cd55730b3e9a1bbd2a4eb9ea6121fc852e27907e | /eddie/build/lib.linux-x86_64-2.7/eddietool/common/Directives/disk.py | 0d3f9a53074c9eabd75af17e5ec6d93d95f13b8e | [] | no_license | dimasajipangestu/belajarpostgres2 | f07ed6788fdba9788a7c7624532aeb89dc17b3e4 | f7f5edd58527a3ad98497b994f5d1b6d4c2c8b25 | refs/heads/master | 2022-08-18T09:31:10.338810 | 2020-05-21T02:35:34 | 2020-05-21T02:35:34 | 256,105,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,467 | py |
'''
File : disk.py
Start Date : 20041005
Description : Disk directives
$Id: disk.py 893 2007-12-09 07:08:16Z chris $
'''
__version__ = '$Revision: 893 $'
__copyright__ = 'Copyright (c) Chris Miles 2004-2005'
__author__ = 'Chris Miles'
__license__ = '''
This program is free sof... | [
"dimasajipangestu@gmail.com"
] | dimasajipangestu@gmail.com |
9d12616142be20ad53a5fa9e6862a9f66b5626b8 | f43e3bfb859b73817c792648e5e338b75071064d | /playstore_dataset/playstore_dataset/pipelines.py | 39485b60964282adbddf406b3d0ffb0b2667e36c | [] | no_license | Geothomas1/Playstore | 413f6f051bbea8ec994ce10d6e07f81bf221363d | 95c7d7116a7bb91f1eb1c5b179c91cf9a7b9c456 | refs/heads/main | 2023-06-09T04:22:46.630544 | 2021-06-29T07:08:49 | 2021-06-29T07:08:49 | 352,473,028 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class PlaystoreDatasetPipeline:
def proc... | [
"geothomas@cet.ac.in"
] | geothomas@cet.ac.in |
ab3726a128bf6e82b2a8b03c10eca815d0e34c4b | ff8a30a0639e287b6e8cb6d80ad94d8e2b0f4e5d | /Main.py | 9d6a6bb37ab73a22677a4a69aefa5255701bb01e | [] | no_license | Cisplatinum/Portfolio-Management-Application | 39ef2f0257c4f788436b77d289468289faa4c49a | ec49c75ee4893123a1761368c2754ef10a16d2a4 | refs/heads/main | 2023-06-04T13:57:06.148070 | 2021-07-02T16:00:26 | 2021-07-02T16:00:26 | 382,375,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,517 | py | import sys
import PullStock
import StockFetcher
from PyQt5.QtWidgets import *
from PyQt5 import uic
import matplotlib.pyplot as plt
import numpy as np
from mpl_finance import candlestick_ohlc
from matplotlib.dates import date2num
from CustomExceptions import *
import utility
# Loading UI files
Ui_MainWindow, QtBaseCla... | [
"enochwyx@gmail.com"
] | enochwyx@gmail.com |
494209f5626eff8613f8403f2084829f49a30c87 | 1554150a9720ebf35cd11c746f69169b595dca10 | /package_package/package/model/fuzzy_number.py | b64b535dfc851ec40ee6a38917dddbbf78b72a3a | [] | no_license | andrewili/shape-grammar-engine | 37a809f8cf78b133f8f1c3f9cf13a7fbbb564713 | 2859d8021442542561bdd1387deebc85e26f2d03 | refs/heads/master | 2021-01-18T22:46:51.221257 | 2016-05-31T21:15:28 | 2016-05-31T21:15:28 | 14,129,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | import numpy as np
almost_equal = np.allclose
class FuzzyNumber(object):
def __init__(self, number_in):
"""Receives:
number_in num
"""
method_name = '__init__'
try:
if not self._is_a_number(number_in):
raise TypeError
except Type... | [
"i@andrew.li"
] | i@andrew.li |
b15b73a96e30b59f460adead2595d610fe456d8f | e3b1b5d3679e6aa226b9b31679ca02311347e83a | /Cursoemvideo/Exercícios/exer27 - Primeiro e ultimo nome.py | 4238e8f4b428c1f35a652c33bbc47686537612c9 | [
"MIT"
] | permissive | Vith-MCB/Phyton---Curso-em-Video | 27e33779c62e09dd4f0d2b5cafb0bf870ed19a31 | d13a2150df022b9712b3b3136e9afc963864403c | refs/heads/main | 2023-08-14T08:10:17.904239 | 2021-09-21T23:39:44 | 2021-09-21T23:39:44 | 380,555,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | m = 3
if m < 5:
nota = ('Reprovado')
print('Você está: {}'.format(nota)) | [
"vitorriblacerda@gmail.com"
] | vitorriblacerda@gmail.com |
fc12090da50ccd0cefe1a9e3e7c52f49e85ba1bc | d704b44080fa83e73f109c381a67564c92d6f7e5 | /math_helpers/pkg/ct_math/algebra.py | a80713979bc5f62c9ce45c5b878bad5dc8142a8f | [] | no_license | ct155105/ct_python_helpers | 3384bb147c4ba4bc07ea04838303a9e8d8b20107 | 9531818889860e469836d3020e5c26879184a716 | refs/heads/main | 2023-06-17T13:36:39.801191 | 2021-07-12T04:52:30 | 2021-07-12T04:52:30 | 378,555,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py |
def get_average_of_list_values(list: list) -> float:
'''Sums the values in the list, then divides by the list length
Args:
list: A list containing number values
Returns
the mean for the values in the list
'''
total = 0
for val in list:
total += val
mean =... | [
"cteuschler@corbus.com"
] | cteuschler@corbus.com |
e5c53766c994f5d150cd47187531f1339035c92b | 065acd70109d206c4021954e68c960a631a6c5e3 | /shot_detector/utils/collections/sliding_windows/__init__.py | dbbbfbf2e08e76dc001cf31e3d17b64c790ba048 | [] | permissive | w495/python-video-shot-detector | bf2e3cc8175687c73cd01cf89441efc349f58d4d | 617ff45c9c3c96bbd9a975aef15f1b2697282b9c | refs/heads/master | 2022-12-12T02:29:24.771610 | 2017-05-15T00:38:22 | 2017-05-15T00:38:22 | 37,352,923 | 20 | 3 | BSD-3-Clause | 2022-11-22T01:15:45 | 2015-06-13T01:33:27 | Python | UTF-8 | Python | false | false | 347 | py | # -*- coding: utf8 -*-
"""
Different kinds of sliding windows
"""
from __future__ import absolute_import, division, print_function
from .base_sliding_window import BaseSlidingWindow
from .delayed_sliding_window import DelayedSlidingWindow
from .repeated_sliding_window import RepeatedSlidingWindow
from .sliding_w... | [
"w@w-495.ru"
] | w@w-495.ru |
ebd3055702b48d01a852f1d2990a3c2a1360099f | 0fafc39902f8d0c303e7db70fdc75c108053479b | /tipo_numerico.py | 4aa66a8b8624c7e4397841e4511581ee943aa48b | [] | no_license | vaniele02/CursoPython | 2b3d75047d3d205a3a8d07fd9f8d825682795993 | c65d3b8b74a31ac12c7ecac9935d67e5d35a5046 | refs/heads/main | 2023-02-12T14:41:23.830018 | 2021-01-06T17:43:29 | 2021-01-06T17:43:29 | 327,381,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | """
Tipo numerico
"""
num = 1_000_00
print(num)
print(float(num))
| [
"pizzol.vaniele@gmail.com"
] | pizzol.vaniele@gmail.com |
f2b31712ee4e7decb111a9478e940eb641d7752b | e8cb133a8764ef2419e6923564bf50a7bbc15d37 | /Parse_Blast_for_Bed_ExonIntron.py | ed97f0e3b3b9dc435ec97db36b99694ab2568aea | [] | no_license | sidonieB/scripts | 04f69a450e730d47cebc8996db5815c6f7cf2ed9 | 76143c60e24d1db9936e9780952515833c4aa2e6 | refs/heads/master | 2021-11-27T20:20:26.463723 | 2021-11-25T11:15:29 | 2021-11-25T11:15:29 | 146,630,598 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,887 | py | ###########################################################################################################
# Script to sort blast results depending on if good hits and make bed with matched ("exons") vs non matched ("introns") regions
# Version 1
# 1 September 2019
# Originally written by Sidonie BELLOT (s.bellot... | [
"noreply@github.com"
] | noreply@github.com |
a9297cfbbfe53a5bdce5b575f72cd5880abbafce | 2154d0221e29a86850a1b83e4302f6e3e3f7fa5d | /thread_example/simple_thread_example.py | 6f5917fe97dff2fcaaacbf683f71542762a6a5f6 | [] | no_license | aaqqxx/simple_for_life | 3b8805c6791da6a3a7f42c069dc1ee7d2b8d3649 | 9ad6d61a56216d04250cd89aeaeda63c11942d0a | refs/heads/master | 2020-04-04T09:18:59.396540 | 2015-04-28T11:22:55 | 2015-04-28T11:22:55 | 20,906,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # coding:utf-8
#!/usr/bin/env python
__author__ = 'XingHua'
"""
"""
import time, thread
def timer():
print('hello')
def test():
for i in range(0, 10):
thread.start_new_thread(timer, ())
if __name__ == '__main__':
test()
time.sleep(10) | [
"aaqqxx1910@gmail.com"
] | aaqqxx1910@gmail.com |
e188feec171d020b831ecb7e8ca6d5e6af11717c | 4fe257ebf57e74f25135f0b90a5b51395c45d199 | /events/migrations/0001_initial.py | c17c9311e73446c304a7b81ed405a82685c870fe | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | fleaplus/timeclock | aafbb6f1fd8507b2353ec6ff859607bf680e65ae | 084dada0f2230ee3feb25ec699319fbb0fba83b2 | refs/heads/master | 2020-04-30T04:24:03.131142 | 2015-06-22T20:37:49 | 2015-06-22T20:37:49 | 37,560,337 | 1 | 1 | null | 2015-06-23T19:12:42 | 2015-06-16T22:56:18 | JavaScript | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(serial... | [
"fleaplus@gmail.com"
] | fleaplus@gmail.com |
58a2722318a9e6da0bc6cdecc4436f4123ff8309 | fd90c9f7eef79bbaed9b12107706f925220fecb2 | /runner1c/commands/load_config.py | 38df7b99f40f2bce15e3151f9c11afb544afca60 | [
"BSD-2-Clause"
] | permissive | vakulenkoalex/runner1c | 334bed9a9a558123f8f43e197dff0ecea56f1d98 | 062a3edc4bd8089cae248d1877373f78535578f4 | refs/heads/master | 2023-07-22T09:20:11.245247 | 2023-07-17T13:12:01 | 2023-07-17T13:12:01 | 116,858,870 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | import runner1c
import runner1c.exit_code as exit_code
class LoadConfigParser(runner1c.parser.Parser):
@property
def name(self):
return 'load_config'
@property
def description(self):
return 'загрузка конфигурации из исходников'
def create_handler(self, **kwargs):
return L... | [
"vakulenko_alex@mail.ru"
] | vakulenko_alex@mail.ru |
0b8e1b2e46404eb0e75e5cb5b0a7e4a73c2fb600 | c2e0dded1c67cb8c7a1e721853fedda3d22addef | /2016/04-1.py | c8a21bb48db7ae2c75a35269ff882681e61d92ce | [
"MIT"
] | permissive | LK/advent-of-code | 8b60b96b88581956b8a2257d1a8e1308c34ee421 | fc9ba3315608bc3b20ebb2c1212145f970b888d6 | refs/heads/master | 2020-06-15T06:11:25.165683 | 2016-12-21T05:55:17 | 2016-12-21T05:55:17 | 75,320,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import collections
import operator
total = 0
line = raw_input()
while line != '':
idx = line.index('[')
checksum = line[idx+1:-1]
secid = line[line.rfind('-')+1:idx]
line = line[:line.rfind('-')]
line = line.replace('-', '')
c = collections.Counter(line)
chars = sorted(c.items(), key=operator.itemgetter(1), r... | [
"lenny.khazan@gmail.com"
] | lenny.khazan@gmail.com |
9009efdfe35f109ffbf2ed9bc2895223798d906d | 2f42c6d1fddccc481354148393b9b44165826c04 | /test/FsrAnalysis/PmvTreeMaker_cfg.py | 19afc0d561fe2b2cedabc88728d5afeb0336515a | [] | no_license | senka/MultiBosons | 2ef3dc86e9f0a90f911557638fe79631fef0b3d2 | e8413aa280d85376a2f6dfe300bf52b78b4da437 | refs/heads/master | 2021-03-12T20:15:44.118577 | 2013-11-20T21:21:01 | 2013-11-20T21:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,460 | py | import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
import FWCore.ParameterSet.Types as CfgTypes
import PhysicsTools.PythonAnalysis.LumiList as LumiList
## setup 'analysis' options
options = VarParsing.VarParsing ('analysis')
## register customized options
options.register("j... | [
"senka.duric@cern.ch"
] | senka.duric@cern.ch |
2166bbe2b5f956dda5de32511416df93133ed943 | c694ccdb024e425b42bc48c1c864a0117c6d8f36 | /advanced python/inheritance/demo.py | ed8dd9f7a77c728c955aa2962dcb6be8c71541ea | [] | no_license | shilpageo/pythonproject | bea79449a4311ed801cce826b6c3821aef00d674 | 5f5d40c5182b48167fbb456a53250e6d510c0709 | refs/heads/master | 2023-04-30T13:18:22.251978 | 2021-05-19T08:05:47 | 2021-05-19T08:05:47 | 368,791,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #person child parent student
#child & parent inherit person
#student class inherit child
class person:
def m1(self,name,age,gender):
self.name=name
self.age=age
self.gender=gender
print(self.name,self.age,self.gender)
class parent(person):
def m2(self,job,place,salary):
... | [
"shilpageo98@gmil.com"
] | shilpageo98@gmil.com |
bce0803449986455b0f915778f2a2087a5e29298 | 577c178a0751d9df22f05e69061c3333119b6639 | /chat_utils.py | f8eb4057d9b0b71e583f36428a47b1453f94b24e | [] | no_license | ANPULI/Final-Project | 9affbef48aa32d816c8f9222b7e89cdea8d01e40 | 386968a3fb9d21a7316706e5d5031c18898dc244 | refs/heads/master | 2021-01-20T13:50:24.404571 | 2017-05-07T12:30:29 | 2017-05-07T12:30:29 | 90,529,436 | 0 | 1 | null | 2017-05-08T09:14:18 | 2017-05-07T11:57:45 | null | UTF-8 | Python | false | false | 2,163 | py | import socket
import time
M_UNDEF = '0'
M_LOGIN = '1'
M_CONNECT = '2'
M_EXCHANGE = '3'
M_LOGOUT = '4'
M_DISCONNECT= '5'
M_SEARCH = '6'
M_LIST = '7'
M_POEM = '8'
M_TIME = '9'
#CHAT_IP = '' #for Mac
CHAT_IP = socket.gethostname() #for PC
CHAT_PORT = 1112
SERVER = (CHAT_IP, CHAT_PORT)... | [
"al4902@nyu.edu"
] | al4902@nyu.edu |
1de34b116eaca67d495ae641e5e1605cf01e5040 | 9950a3b32a6199e6cecfa1ee31ba856c7ed8b95a | /TP_reconnaissance_faciale_avec_OpenCV/venv/Scripts/easy_install-3.8-script.py | d40d87e6d9d94e4e481e2310e01a0a702f6f4f62 | [] | no_license | EDU-FRANCK-JUBIN/ia-fun-tp-Aerowiel | f5703e60c7844888548dc8168a291c9c091bee0a | 81d739a983eacadd8a64f9c90ed1a85b18b1c818 | refs/heads/master | 2021-01-03T23:29:24.126484 | 2020-03-26T08:40:51 | 2020-03-26T08:40:51 | 240,281,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | #!C:\Users\flo_c\OneDrive\Bureau\DeepLearningM2\TP1b\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__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'(... | [
"florian.pendaries@hotmail.fr"
] | florian.pendaries@hotmail.fr |
2d1144b4328f1dbe5f4d42775ae065a09aa4efe8 | 10dbd181f66eac8a95c699a233b67896f1d86855 | /faculties/tests.py | e90d5de9d01a0b96291dd52b01eb01c194cb8f43 | [] | no_license | chrisjluc/uniq-backend | 0bda917ac28dd203775b4db5bd612ef084394ca6 | 1b52f86a2f10f2cddc63f9351f05df9c0b23be33 | refs/heads/master | 2021-01-22T10:50:59.445166 | 2014-10-04T17:36:22 | 2014-10-04T17:36:22 | 19,684,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | from .models import *
from schools.models import *
from uniq.testing.testcases import MongoTestCase
from django.conf import settings
from rest_framework import status
class FacultyTests(MongoTestCase):
sId = None
fId = None
def setUp(self):
s = School(slug='s', metaData__yearValid=settings.CURRENT_YEAR)
s.sa... | [
"chris.luc.dev@gmail.com"
] | chris.luc.dev@gmail.com |
d500aa3f98ecceb40c6a0582fb2a7f7a0c747b78 | 7cf9967f153e3723cdbcfbd8ebb07e91adbe0210 | /views.py | 2d56e8e34a88dae8299a6adf6d55f5103f525fbb | [] | no_license | Groskilled/flasktaskr | ec01b5d5962ba68cb9611c533efa239b483f7653 | f8cc6c1d69bbdcf326fc6e0feec69cd08f242e00 | refs/heads/master | 2022-12-16T12:07:26.311673 | 2020-09-07T17:14:30 | 2020-09-07T17:14:30 | 293,538,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | import sqlite3
from functools import wraps
from forms import AddTaskForm
from flask import Flask, flash, redirect, render_template, request, session, url_for, g
app = Flask(__name__)
app.config.from_object('_config')
def connect_db():
return sqlite3.connect(app.config['DATABASE_PATH'])
def login_required(test)... | [
"adam.wybierala@gmail.com"
] | adam.wybierala@gmail.com |
bdc158529692c885b2e550c6b091ca4223bf58c6 | 679c4e4c0527bd4f36d1d6861ddcec4e1db394f5 | /config.py | 94be7a92fadcb6de32931b156ba3fc501704ee7b | [] | no_license | yangify/dollback | 97269d5b48e3006944b0ab5645e9d2db208c5fa5 | f2bfb37104aac33fdcc1702a1a0a66f1fc5212ce | refs/heads/main | 2023-06-17T15:22:14.436745 | 2021-07-13T07:14:23 | 2021-07-13T07:14:23 | 362,321,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | # CELERY
CELERY_BROKER_URL = 'amqp://localhost:5672'
# DECOMPILER
DECOMPILERS = ['apktool', 'jadx']
APK_FOLDER_PATH = './resources/apk'
SOURCE_CODE_FOLDER_PATH = './resources/code'
LINK_FOLDER_PATH = './resources/link'
APKTOOL_COMMAND = 'java -jar ./tools/decompiler/apktool/apktool.jar d <INPUT_PATH> -o <OUTPUT_PATH... | [
"hong.yang.code@gmail.com"
] | hong.yang.code@gmail.com |
16b6e6b1b55c62455ce9853d34789e374b444548 | eec99bf43da49bd00f7a9bd04f2f6a8245d5d33b | /app.py | b5921b13eb09c07c2a341ef35a6564d59904e6e8 | [] | no_license | Pazoles/Geocoder | 88ad9194f21d7c94755d834257de5855f690f3f8 | 8b80bd68e2de2a381843e1bb729e68459b710504 | refs/heads/master | 2021-01-17T13:08:48.664070 | 2016-07-06T15:38:17 | 2016-07-06T15:38:17 | 56,185,477 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | from flask import Flask, make_response, request, render_template, redirect, url_for, send_file
from census_geo import chunketize, geocode
from io import StringIO
app = Flask(__name__)
#app.config.from_object('config')
@app.route('/geo', methods=["POST"])
def geo_post():
file = request.files['data_file']
... | [
"pazoles@gmail.com"
] | pazoles@gmail.com |
e1b81cb223846f4d96ab1576e3fe332878928f01 | e347ab2874921ac8af1115ffb005ec5910ae8007 | /venv/Scripts/pip3.6-script.py | 3e7943e87e0e161265f42f08e4a20004d8e43bea | [] | no_license | Nash-Git/linkedListSearch | ff29a9df57dc233c36b83d7276b5065341685c8a | d9d6dd8b796bc4fd3fbce5a68322ccfc897c2bc4 | refs/heads/master | 2020-03-27T10:55:45.830869 | 2018-08-28T13:51:55 | 2018-08-28T13:51:55 | 146,454,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!C:\Users\asifn\PycharmProjects\searchLinkedList\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"asif.nashiry@gmail.com"
] | asif.nashiry@gmail.com |
5020986750ba000c101d3daa6a4f0bf93cd120bc | f8ac82a3e8a7dc3632edfd2812dc7e347ce5be9f | /RTS/3.1-Aperture_Phase_Efficiency/spiral_holography_scan.py | b65da559b383d5191664b58d3e6f9a993b942317 | [] | no_license | bongani-ska/https-katpull-katpull4git-github.com-ska-sa-katsdpscripts | af3cd569e9f3ec1c1ab341d35c2780b9b6833bfb | b44cbdcca02b497c4b100839ccdfc4813c793b35 | refs/heads/master | 2016-09-06T08:52:24.645635 | 2015-02-18T05:57:43 | 2015-02-18T05:57:43 | 31,056,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,933 | py | #!/usr/bin/python
# Perform spiral holography scan on specified target(s). Mostly used for beam pattern measurement.
#
# to run on simulator:
# ssh kat@monctl.comm
# kat-start.sh (may need to call kat-stop.sh, or better kat-kill.py, and possibly kill all screen sessions on kat@monctl.comm, and possibly kat@proxy.mo... | [
"ludwig@ska.ac.za"
] | ludwig@ska.ac.za |
83d54729d3675a348d081a2a13660746e43a5464 | dc95bde612acd19a37e6cf49143124307e98b8cd | /appdaemon/apps/telegram.py | e594f94527485270341e7970f26d19980d931a3f | [] | no_license | kf-nz/Home-AssistantConfig | 5741b06edf1fb2c7f043adb64cc2cf1f19945df1 | 11448d8571376c04e733aca15bef2a12a1ee24f5 | refs/heads/master | 2023-01-27T11:38:08.374457 | 2019-09-21T23:00:55 | 2019-09-21T23:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | import appdaemon.plugins.hass.hassapi as hass
#
# Hello World App
#
# Args:
#
class Telegram(hass.Hass):
def initialize(self):
self.listen_event(self.update_homeassistant, event="telegram_command")
def update_homeassistant(self, event_id, payload_event, *args):
assert event_id == 'telegram_c... | [
"kyle@tai.net.au"
] | kyle@tai.net.au |
1173c8ddeab00743e7c147ed16286408edcf1937 | 2e14fd220d111ff9ff45c2ebd125e63a08e3ae47 | /data-science/machine-learning-A_Z/classification/random_forest_classification/random_forest_classification.py | 0206c3bfa905ec2124b2ba3a8f9f54eef6716bc2 | [] | no_license | Mohan-Sharma/machine-learning | b02e8c2fd619e8887164fc4d9f60adc394840b72 | f9431e592666c7f2507ef12583fa4de3f117be75 | refs/heads/master | 2022-05-27T22:43:29.087717 | 2020-05-05T07:37:05 | 2020-05-05T07:37:05 | 257,939,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 5 12:55:49 2020
@author: i504180
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomFo... | [
"mohan.sharma@sap.com"
] | mohan.sharma@sap.com |
d7a205af7c090cc3e0e1c409c325c99e1b889c37 | 02ebf3d3d9db7753322a0fbf4cc25dd4903ee4da | /dbtools.py | 74e92d01cf9b40052a9f76498d08d32d351396c3 | [] | no_license | Bocoul/ctrlm | 8aab9da15d0a9cda2b5a0c6c6ff89d6082f0c5be | a5f14009e937ff9b0955b4316f403839b133e509 | refs/heads/master | 2022-12-01T17:03:24.551562 | 2020-08-13T16:06:49 | 2020-08-13T16:06:49 | 284,099,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | def db_copytable(filename, table1, table2):
import sqlite3
with sqlite3.connect(filename) as conn:
cur = conn.cursor()
res = cur.execute(
"""
INSERT INTO "{}" ("rae", "code_postal", "commune", "code_insee", "siren", "voie")
SELECT DISTINCT "rae", "code_postal... | [
"36362851+Bocoul@users.noreply.github.com"
] | 36362851+Bocoul@users.noreply.github.com |
a62371ca75488a425afb243b46919e2ed99b0abe | a5acb5af0dd0395e8a09d457b331d4a602d1eae9 | /ot_myprojectdir/wsgi.py | 4bd78880a90bd3226f6b368802d28f04b8a5b83b | [] | no_license | jfialkoff/otter-template | ead588cf8cae7ccbbeae04c6e3bd3c80afd07ecf | 4a9d264523fd3cb0563eb48e8582a0be0e92bc43 | refs/heads/master | 2021-01-10T09:09:44.266463 | 2015-09-28T21:22:11 | 2015-09-28T21:22:11 | 43,175,877 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | """
WSGI config for ot_myproject 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.7/howto/deployment/wsgi/
"""
import os
from dotenv import load_dotenv
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
... | [
"joshua.fialkoff@setaris.com"
] | joshua.fialkoff@setaris.com |
760b340e2f8abb38ffacf015872fcfc244ffc73f | 6efc6135853f755bc5be3c22c566f91d07ccc481 | /venv/bin/pip3 | 4791c26014041b412328bb07c6268102029e707d | [] | no_license | MurrayWheten/python-pi-example | c9f7696aa176ab81b08ede34ba4cb8bf8ac413e0 | 3c1f977167af21a9615a7081a75bef0793546d9f | refs/heads/master | 2020-12-13T13:46:40.015964 | 2020-01-17T02:15:36 | 2020-01-17T02:15:36 | 234,435,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | #!/home/mwheten/PycharmProjects/py/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"mdwheten@gmail.com"
] | mdwheten@gmail.com | |
ce0841fb8cde5566b298cf3cd88ce6d77815d66a | 27207ea32a47d8c39a7385c2720ea10bdb16496b | /rc4/rc4.py | f537376dbabc9dfb5615d81dd48518a91988f30e | [] | no_license | Nabagata/CryptographyLab | 150f80d3173f9ae9b83b73a7876f0139220c906e | 12a4df700cc2980d3a520f21dd8b3917bf063e57 | refs/heads/master | 2020-07-03T23:02:34.972228 | 2019-11-19T09:52:55 | 2019-11-19T09:52:55 | 202,080,155 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | import argparse
import itertools
def initialize_K(key):
K = []
key = itertools.cycle(key)
for i in xrange(256):
K.append(key.next())
return K
def initialize_S(K):
S = range(256)
j = 0
for i in xrange(256):
j = (j + S[i] + K[i]) % 256
S[i], S[j] = S[j], S[i]
r... | [
"ngsaha234@gmail.com"
] | ngsaha234@gmail.com |
5574b3d53d3f227568d2b1bcaeb0b90fef882412 | a84f9a0736268b638dedc6e90cf4c520c6b97df8 | /precision_recall.py | de30480e4bb8ef8b39ee683cea111bb506b626a5 | [] | no_license | bhushan-ncsu/FakeNewsIdentifier | b4185fa687def0ed4d736c58d3edd5c87572ca71 | aec55e19c41ad22d8e08de56a18a71eaf7556b1b | refs/heads/master | 2021-05-09T03:18:52.928629 | 2018-01-28T14:30:12 | 2018-01-28T14:30:12 | 119,237,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | import pandas as pd
from nltk.corpus import stopwords
import nltk
import re
import os
import random
from gensim.models.doc2vec import LabeledSentence, Doc2Vec
import pickle
from sklearn.naive_bayes import MultinomialNB
from sklearn.naive_bayes import BernoulliNB
from sklearn.metrics import precision_recall_curve
from s... | [
"bdeshmu@ncsu.edu"
] | bdeshmu@ncsu.edu |
4e815bc0306f5511a443e68cd4a3e4f5159d45bc | 39d9ee62dbc96a1436129e36493d391533b48b09 | /run.py | 6e76244194a00546858bc0698f1d4435c5c8959f | [] | no_license | vinitjogani/third-umpire | d5d6ca1e6e596d1319291fdf2b43b71025dab0a1 | 9180a935fdfc40004d2aff3fa260ca40c9388f12 | refs/heads/master | 2020-09-04T08:12:37.282647 | 2019-11-30T04:12:09 | 2019-11-30T04:12:09 | 219,685,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | import detection.classical.color_thresholding as module
# module.main() | [
"vnjogani@gmail.com"
] | vnjogani@gmail.com |
facabddc9959acc022e7ca8ea3b0dfe0e6ee7b59 | 861be85635ca28151d10b4a0665aac9e22c438d1 | /Class and Object/classstudent.py | 56165bf5d1b3c0c1fee2c9395b93fa6c627ca599 | [
"MIT"
] | permissive | tdkumaran/python-75-hackathon | a6e35af00612bb4e68c70f2d2be86ee9827561c8 | ce931147f4b465aa7e54c140d78e2d4a6c4e3634 | refs/heads/master | 2020-04-11T10:57:09.097907 | 2018-12-16T13:32:59 | 2018-12-16T13:32:59 | 161,731,825 | 0 | 0 | null | 2018-12-14T04:32:53 | 2018-12-14T04:32:53 | null | UTF-8 | Python | false | false | 551 | py | class Student:
def __init__(self, name, rollnumber):
self.name=name
self.rollnumber=rollnumber
def setage(self,age):
self.age=age
def setmark(self, mark):
self.mark=mark
def display(self):
print("Name of student:",self.name)
print("Roll number of student",... | [
"tdkumaran99@gmail.com"
] | tdkumaran99@gmail.com |
23ecfe711e32da50fdcecb401ba0d0e90a8e159d | 19dda8b9ef951a3c640733a300e9c35e451c14e9 | /traphing/utils/file_system.py | 6ba60a8fb5081878d9217429c352ef5cdc9633e9 | [] | no_license | manuwhs/traphing | b47236e390cdbc7bd8f64a6341d8582754b4cd8f | 505b6680246bffce2e8bb82225d1eac20bddf5a2 | refs/heads/master | 2020-07-29T20:33:53.865869 | 2019-11-17T14:38:13 | 2019-11-17T14:38:13 | 209,950,140 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | import os
import shutil
from os import listdir
from os.path import isfile, join
from distutils.dir_util import copy_tree
import sys
def add_system_path(path, position = 0):
sys.path.insert(position, path) # Adds higher directory to python modules path.
def create_folder_if_needed (folder):
if not os.path.... | [
"https://manuDTU@bitbucket.org"
] | https://manuDTU@bitbucket.org |
bfb3b361ec398b391182456a6bd989a301674c53 | 26c566ee03a6b6752dc81a719c4eb237bf5e5c32 | /from_senior/bladder_dwi_2d_model/main.py | 9ef52811196719a0588e6dbcd413e4ea1e8f2b98 | [] | no_license | Zopek/bladder_old | 44c091b951e667aa1fe9f2b0dae158b3725bf2cd | 0f34b848c7c024f2ff9f91bef268002264433e19 | refs/heads/master | 2020-04-05T21:18:17.093834 | 2019-02-28T07:49:46 | 2019-02-28T07:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,091 | py | from __future__ import print_function, division
# import time
import torch
import torch.utils.data
import torch.utils.data.sampler
import torch.nn.functional
import os
import random
import numpy as np
import sklearn.metrics
import traceback
from bladder_dwi_dataset import BladderDwiDataset, MyPreprocessor, MyAugmentati... | [
"lethe-@sjtu.edu.cn"
] | lethe-@sjtu.edu.cn |
7ee23ab6019177bfce14a770291e1f269179d551 | 7b15cccdef7243668d2d2af1ad1816f1d168e014 | /bloque 6/funcion_resta.py | 7394193e946fc5ce29c6bdf61683f51b1690e1de | [] | no_license | sandroormeno/taller-de-python | 3fd4bac9c3832286f19c8dbe0d3f37cbfd6a0813 | fdd6d699f8a7aac1b9d77f051dcd78ddb090f725 | refs/heads/master | 2021-06-03T17:19:57.542322 | 2020-09-08T23:00:32 | 2020-09-08T23:00:32 | 148,956,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | def suma(numero1, numero2):
print("Resultado : " + str( int(numero1) - int(numero2) ) )
print("Programa para restar valores")
num1 = input("primer valor: ")
num2 = input("segundo valor: ")
suma(num1, num2)
| [
"noreply@github.com"
] | noreply@github.com |
3922747c24aeae6863311beb748f65358b035f73 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D95A/DIRDEBD95AUN.py | 5415a9c13741232f73c37ae3b49aa4c18660d498 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 4,507 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD95AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 1},
{ID: 'BUS', MIN: 0, MAX: 1},
{ID: 'RFF'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
9e27d7965e88ac8fc06892f207d612fc3ddb0151 | d2e0e9d7f6cdd7421e132dbb6805e62c57b2be1a | /Practice/Day_003/reduce_ex.py | e1ab0179aec8d80e0a055b516df2179aab6fdf0c | [] | no_license | zzid/Cloud_MSA_Multicampus_Education_First_phase_python | 349a1bd22ffbfc90b6221f1b2933fe9477f10f03 | acf0b644e16b71562b8e72e0d4a10a7719139bb4 | refs/heads/master | 2022-12-11T16:14:22.926014 | 2020-09-10T04:14:10 | 2020-09-10T04:14:10 | 279,503,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # reduce
from functools import reduce
arr = [1,2,3,4,5,6,7,8,9,10]
result = reduce(lambda x,y : x+y, arr)
print(result)
result = reduce(lambda x,y : x*y, arr)
print(result) | [
"931010dy@gmail.com"
] | 931010dy@gmail.com |
134016a9c11a280367d93a1d7339504e86ae4cb0 | ee1724a6bc8b7ae8efeaae14fd3c93cb3d371aac | /arcgis_marketplace/fields.py | 80b51cbec7ce48da4e7982397e4da9789cb75834 | [
"MIT"
] | permissive | waffle-iron/arcgis-marketplace | 159ef928c115bb8bc27b81b614dbd7ea4eb3864a | e6c06bbde717f8a07c649d3d5db9f4dd929fe0f3 | refs/heads/master | 2021-01-22T03:30:24.605645 | 2017-05-25T08:35:23 | 2017-05-25T08:35:23 | 92,382,669 | 0 | 0 | null | 2017-05-25T08:35:21 | 2017-05-25T08:35:21 | null | UTF-8 | Python | false | false | 637 | py | import os.path
import zipfile
from django.db.models import FileField
from . import validators
class CompressField(FileField):
default_validators = [
validators.validate_file_extension,
validators.validate_zip_compression
]
def pre_save(self, model_instance, add):
file = super().p... | [
"dani.pyc+github@gmail.com"
] | dani.pyc+github@gmail.com |
13a95e0835eddd0fa3db784494dd57177d13927b | 8fcdcec1bf0f194d23bba4acd664166a04dc128f | /packages/grid_control_update.py | d21546c84a97777c2b4b0811e15519a89314cefb | [] | no_license | grid-control/grid-control | e51337dd7e5d158644a8da35923443fb0d232bfb | 1f5295cd6114f3f18958be0e0618ff6b35aa16d7 | refs/heads/master | 2022-11-13T13:29:13.226512 | 2021-10-01T14:37:59 | 2021-10-01T14:37:59 | 13,805,261 | 32 | 30 | null | 2023-02-19T16:22:47 | 2013-10-23T14:39:28 | Python | UTF-8 | Python | false | false | 1,227 | py | #!/usr/bin/env python
# | Copyright 2014-2017 Karlsruhe Institute of Technology
# |
# | 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
... | [
"stober@cern.ch"
] | stober@cern.ch |
bbf4965b241b4632e2d4a349b3869fba4cb9831f | ca23b411c8a046e98f64b81f6cba9e47783d2584 | /poem/core/models_test.py | a0db94e4d47fae13658d07b17e82bce15a3e7851 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pdybczak/google-research | 1fb370a6aa4820a42a5d417a1915687a00613f9c | 0714e9a5a3934d922c0b9dd017943a8e511eb5bc | refs/heads/master | 2023-03-05T23:16:11.246574 | 2021-01-04T11:30:28 | 2021-01-04T11:30:28 | 326,629,357 | 1 | 0 | Apache-2.0 | 2021-02-01T12:39:09 | 2021-01-04T09:17:36 | Jupyter Notebook | UTF-8 | Python | false | false | 9,686 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7db0bf2f99225efd2ff0ee2f98dde116115ffc7f | 6ede2868ca8295e00fd9b99aa9d3923a1e7e063b | /deep_learning_keras/ch03/cifar10_predict.py | 881339732908a79b51a5b6578e7eceadb3b0c9a5 | [] | no_license | takuya-teramoto/python_test | 229771d4dc72a31fcd184b495e662864af7760e3 | e7b7a4b633948610f1b66a6ed8ee6a0ddae7346a | refs/heads/master | 2022-12-17T22:33:42.133478 | 2021-08-11T11:48:59 | 2021-08-11T11:48:59 | 184,420,995 | 0 | 0 | null | 2022-11-22T02:42:38 | 2019-05-01T13:34:37 | Jupyter Notebook | UTF-8 | Python | false | false | 900 | py | from pathlib import Path
import numpy as np
from PIL import Image
from keras.models import load_model
model_path = "logdir_cifar10_deep_with_aug/model_file.hdf5"
images_folder = "sample_images"
# load model
model = load_model(model_path)
image_shape = (32, 32, 3)
# load images
def crop_resize(image_path):
imag... | [
"t.teramon23@gmail.com"
] | t.teramon23@gmail.com |
0817e8833e06cdbb3dc7357bbdcedcc83fb04a46 | 73fcadae6177ab973f1aa3ffe874ac3fadb52312 | /server/fta/utils/i18n.py | 4f91cd88e9509cabeab6ce284564a7f4a93d9ea7 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"Apache-2.0"
] | permissive | huang1125677925/fta | 352cd587aaca3d3149516345559d420c41d1caf4 | a50a3c498c39b14e7df4a0a960c2a1499b1ec6bb | refs/heads/master | 2023-03-18T16:08:40.904716 | 2019-02-22T09:35:23 | 2019-02-22T09:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,745 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"mycyzs@163.com"
] | mycyzs@163.com |
759e1a1dfc6292b7a431ed7b0d17facf1dd592bd | c0d706100d48e95a40bbe650d6bb5d8009fd72c1 | /day2/ConsecutiveNumSumRowWise.py | e43c0238614c60b27e57a92b952375f178397665 | [] | no_license | yamendrasinganjude/200244525045_ybs | 50946c587484c70346184c2b0a72748f022a3114 | 1e211aa44099bf0f06fba595c0b85d0001f5ce0f | refs/heads/master | 2022-10-07T04:34:10.690663 | 2020-06-04T12:38:28 | 2020-06-04T12:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | '''
1
3 5
7 9 13
... so on consecutive odd numbers
suppose user gives row 2 then
3 + 5 = 8
so 8 is output
'''
def row_wise_sum(num):
return num ** 3
num = int(input("Enter a Num: "))
print("Sum is ",row_wise_sum(num)) | [
"vsinganjude8@gmail.com"
] | vsinganjude8@gmail.com |
82988ae8e9e0bde71d5cd0e9dc098418b05c6a93 | 15ab524701f1caf6de68ec0d1855824d9d486acd | /venv/bin/pip3 | 0400b00812531fd7c9c1fe734037dd900e6fd74d | [] | no_license | Noura-alh/DecisionTree | edd2bcfd7898c909084b2d0954d815b5aaf5d26c | 71ba73f9d599069bc49cfe26fab0de6af659e99d | refs/heads/master | 2020-04-24T05:09:46.374353 | 2019-02-20T18:29:52 | 2019-02-20T18:29:52 | 171,727,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | #!/Users/Noura/Desktop/DecisionTree/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"nourahnasser2@gmail.com"
] | nourahnasser2@gmail.com | |
8bf168f69bf43a76c958011e71d6a0f1786e007e | f22f9202cb3e9eb0d558ac98ab52b41cfaed8bbd | /PreProcessData/QueryRetrievalModel.py | fb58c5944b063589a229e63d2738a6217ff6da5b | [] | no_license | trees2brady/Information_Retrieval | 8f9e9eb57b24a0b81fe3dbfa5ba650a832ea500d | 55f0c80625e205ac2d49f42a76208b756486373e | refs/heads/master | 2023-08-06T15:09:23.060355 | 2021-09-17T23:30:04 | 2021-09-17T23:30:04 | 403,128,220 | 0 | 0 | null | 2021-09-17T20:50:09 | 2021-09-04T18:23:33 | PowerShell | UTF-8 | Python | false | false | 160 | py | from MyIndexReader import MyIndexReader
class QueryRetrievalModel:
def __init__(self):
self.MU = 2000.0
self.indexReader = MyIndexReader() | [
"trees2brady@gmail.com"
] | trees2brady@gmail.com |
7df0547fd8db3df9594c88f91a47ed3c7553f6fa | e48ad73c2ba628e6b186465391370cbd53577b85 | /apps/inflammation.py | 522902674967a8e2b9c67e4c10d956712986fba0 | [] | no_license | award7/ClinicalTrialDashboard | 814e09c61ce375e9fbedd4ed81bc0def823a092c | 4ec69fbf0dba320fa31359fa4b67a930cd36782c | refs/heads/master | 2023-08-30T05:09:18.336866 | 2021-10-08T18:19:41 | 2021-10-08T18:19:41 | 415,063,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # dash imports
import dash_core_components as dcc
import dash_html_components as html
import plotly.express as px
import dash_table
# from dash.dependencies import Input, Output
# data wrangling imports
import pandas as pd
# local imports
# from app import app
layout = html.Div([
html.H1('Inflammation Data'),
... | [
"award7@wisc.edu"
] | award7@wisc.edu |
f1a7cd0794f70795e2ad2d9c5e9e4b4688fc34d2 | 05427a12a61964f36869ef85a3c212c2a0664881 | /manuscript_files_all/mouse_prediction_analysis/feature_importances3Fold.py | d26d2aae9e36cf6d69481af51845b7788727e1fb | [] | no_license | bpt26/tRAP | 9a72673ca349cf0959e5949f49e3ca2778f646e8 | 103ae1e8289042df2438e5de38db8ceb83148ddc | refs/heads/master | 2023-05-11T05:40:24.447383 | 2021-09-02T07:02:04 | 2021-09-02T07:02:04 | 175,748,772 | 6 | 1 | null | 2020-01-17T17:12:18 | 2019-03-15T04:32:40 | Python | UTF-8 | Python | false | false | 12,515 | py | #!/usr/bin/env python3
# Name: Bryan Thornlow
# Date: 11/16/2017
# classifierv4.py
import sys
import scipy
import matplotlib
import sklearn
from sklearn import svm
import numpy as np
import matplotlib.pyplot as plt
from sklearn import decomposition
from sklearn import datasets
from sklearn import tree
from sklearn.en... | [
"noreply@github.com"
] | noreply@github.com |
9f5061630659beed761f1e56fb5a1083b3bb3c3d | 234c46d1249c9209f268417a19018afc12e378b4 | /tests/modules/transformer/activation_layer_test.py | 2af0338a92e9723143c9b963856628980b4971bc | [
"Apache-2.0"
] | permissive | allenai/allennlp | 1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf | 80fb6061e568cb9d6ab5d45b661e86eb61b92c82 | refs/heads/main | 2023-07-07T11:43:33.781690 | 2022-11-22T00:42:46 | 2022-11-22T00:42:46 | 91,356,408 | 12,257 | 2,712 | Apache-2.0 | 2022-11-22T00:42:47 | 2017-05-15T15:52:41 | Python | UTF-8 | Python | false | false | 804 | py | import torch
import pytest
from allennlp.common import Params
from allennlp.modules.transformer import ActivationLayer
@pytest.fixture
def params_dict():
return {
"hidden_size": 5,
"intermediate_size": 3,
"activation": "relu",
}
@pytest.fixture
def params(params_dict):
return Pa... | [
"noreply@github.com"
] | noreply@github.com |
9f9ce59ae5c4d5d86b254d5eed2139d88bdd7665 | 4b3ede9feeb72ccca84ed1a4d9959fb7ef818d32 | /lab/lab11/lab11.py | b6cc3aa58984845f2dd641006e9bf28bdeebe4e9 | [] | no_license | eqchen1024/cs61a | 2e1936e969b769d64d17b2cccae96c222595ea64 | 6b98724923b65a399ac0e86b3fb08cbeb3f88cd6 | refs/heads/main | 2023-08-16T03:07:41.713360 | 2021-10-21T15:02:19 | 2021-10-21T15:02:19 | 398,767,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | """ Lab 11: Iterators and Generators """
# Q1
def scale(s, k):
"""Yield elements of the iterable s scaled by a number k.
>>> s = scale([1, 5, 2], 5)
>>> type(s)
<class 'generator'>
>>> list(s)
[5, 25, 10]
>>> m = scale(naturals(), 2)
>>> [next(m) for _ in range(5)]
[2, 4, 6, 8, 10... | [
"cdysbt@gmail.com"
] | cdysbt@gmail.com |
af7a59afa35ecefde3a06517897f74c9a0b562e5 | 2bcec58253808558d31aa5b5f9e3b5188b558f7d | /find_island.py | e3ad37d3b16c01ae40dcfabf810c8f594c9c1194 | [] | no_license | liuben10/programming_practice_problems | 59fb9dbde6ce6bf2f6bf80f19915c5c3dffb77ac | 3d3c768810a96acc6f82816696cdb542eb84e5dd | refs/heads/master | 2021-01-10T08:12:14.388548 | 2018-12-22T23:55:48 | 2018-12-22T23:55:48 | 51,346,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py |
def dfs(aMatrix, row, col, visited):
fringe = []
fringe.append([row, col])
while (fringe):
visiting = fringe.pop()
visited.append(visiting)
curcol = visiting[1]
currow = visiting[0]
successors = []
if (curcol + 1 < len(aMatrix)):
successors.appe... | [
"ben.liu@xoom.com"
] | ben.liu@xoom.com |
074aeca3d97502ed60c27a33d1803a45293f210c | c1ea75db1da4eaa485d39e9d8de480b6ed0ef40f | /app/api/app.py | bafb5b35fd82a3d3b5865aa651d5ecb12186e978 | [
"Apache-2.0"
] | permissive | gasbarroni8/VideoCrawlerEngine | a4f092b0a851dc0487e4dcf4c98b62d6282a6180 | 994933d91d85bb87ae8dfba1295f7a69f6d50097 | refs/heads/master | 2023-04-06T07:59:29.269894 | 2021-02-10T16:09:15 | 2021-02-10T16:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py |
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.responses import HTMLResponse
from .routers import include_routers
from app.helper.middleware import include_exception_handler
from helper.conf import get_conf
from .helper import read_html_file
from app.helper.middleware.proxy import... | [
"zzsaim@163.com"
] | zzsaim@163.com |
fdb935308c84e6e8df3718a147bb41f284314a06 | 5be8b0f2ee392abeee6970e7a6364ac9a5b8ceaa | /xiaojian/forth_phase/Django./day03/exersice/exersice/wsgi.py | 3d56e7a2957ad8662abfa9118725486dff7fda08 | [] | no_license | Wellsjian/20180826 | 424b65f828f0174e4d568131da01dafc2a36050a | 0156ad4db891a2c4b06711748d2624080578620c | refs/heads/master | 2021-06-18T12:16:08.466177 | 2019-09-01T10:06:44 | 2019-09-01T10:06:44 | 204,462,572 | 0 | 1 | null | 2021-04-20T18:26:03 | 2019-08-26T11:38:09 | JavaScript | UTF-8 | Python | false | false | 394 | py | """
WSGI config for exersice project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"1149158963@qq.com"
] | 1149158963@qq.com |
7b603e711fb86b97486cc148c2eed6e4c8541d2f | c00924794b325f5697e93a4c05609f19afba5f57 | /tests/test_conv_pd.py | c605b3b65900b1626b2656948a71c7efe3335372 | [
"BSD-3-Clause"
] | permissive | TK-21st/neuroarch | 24a8454dc6a6d1e516ddf54e4ca364d77531b4ab | ab6a1aeac69df1b76dba96bdd877696f45fafa5d | refs/heads/master | 2020-04-29T17:05:21.397284 | 2019-04-19T13:25:21 | 2019-04-19T13:25:21 | 176,286,542 | 0 | 0 | NOASSERTION | 2019-03-18T12:59:50 | 2019-03-18T12:59:50 | null | UTF-8 | Python | false | false | 5,804 | py | from unittest import main, TestCase
import neuroarch.conv.pd
import deepdiff
import pyorient
import pandas as pd
db_name = 'neuroarch_test_db'
username = 'admin'
passwd = 'admin'
match = lambda a, b: False if deepdiff.DeepDiff(a, b) else True
class TestConvPandas(TestCase):
@classmethod
def setUpClass(c... | [
"nikul@ee.columbia.edu"
] | nikul@ee.columbia.edu |
4fb1bed78cc990b2ebca25fe64eec5f0a91b325a | d484309dd9244477a1f25b466f34780c2eacd16f | /LinkedLists.py | aeba0a32776aab83e8809b5e61f4872d075c0fd7 | [] | no_license | joelwng28/Python-Programs | f0d37147b9dd5d056eda9fcbe96b4dc46b75016a | 2a5755cfe1e3de3cafbd24f954345c79e52c212f | refs/heads/master | 2021-06-23T08:30:20.358439 | 2017-09-10T04:12:42 | 2017-09-10T04:12:42 | 103,002,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,432 | py | # File: LinkedLists.py
# Description: Implements various functions using linked lists
# Student's Name: Zi Zhou Wang
# Student's UT EID: zw3948
# Course Name: CS 313E
# Unique Number: 86940
#
# Date Created: 7/7/2017
# Date Last Modified: 7/7/2017
class Node(object):
def __init__(self, initdata):
... | [
"joelwng28@gmail.com"
] | joelwng28@gmail.com |
bbb13bf92b6baacc4f9f751db6d4f343a05931e6 | 20ecd59bc638821cb449e1a5a904ec929b1689ce | /home/migrations/0019_homepage_news_page.py | 77f415f0ecefcb0b55ee4d195042737ef8328ae2 | [] | no_license | yemilab/cms | 826d015bc6d71d29c082511fc364cfb763413577 | 9bf934fddfc59c1d1d2e74a34e2db3b650cb0ed1 | refs/heads/master | 2020-12-28T16:03:23.541114 | 2020-02-08T03:48:27 | 2020-02-08T03:48:27 | 238,397,882 | 0 | 0 | null | 2020-02-05T08:06:42 | 2020-02-05T08:03:53 | Python | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.2.7 on 2019-12-10 08:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
('home', '0018_auto_20191210_0329'),
]
... | [
"code@hyounggyu.com"
] | code@hyounggyu.com |
cef06aa93427891f9e1de15f76de7e4aa063276f | 48ba8d0788e4ac7d4cacd7e7a2e2cf4f391c85ad | /Apple/rectangle_overlap.py | 2fe9ccc6190a3b2c9e19a0c9399b0cd7700fb388 | [] | no_license | rahulvshinde/Python_Playground | c28ac2dc0865e254caa5360c3bb97b4ff5f23b3a | 7a03b765dd440654caba1e06af5b149f584e9f08 | refs/heads/master | 2023-04-19T17:25:55.993837 | 2021-05-17T01:15:30 | 2021-05-17T01:15:30 | 280,736,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """
A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner,
and (x2, y2) are the coordinates of its top-right corner.
Two rectangles overlap if the area of their intersection is positive. To be clear, two rectangles that only touch at
the corner or edges do... | [
"r.shinde2007@gmail.com"
] | r.shinde2007@gmail.com |
c374c83beb40c24258ac5cf51147a8415fe65365 | 436ecd15d0932e00cb246059ea7decc1d2ab4c05 | /instagram/settings.py | 6590d0cd7f2796a08ac416a2007b2545e3b7f8c8 | [
"MIT"
] | permissive | priscillapepe/Instagram | 28b3e704bf4d0ed8d87db3c42b82fbcbc45f2d84 | db76ddbecab72cb6ff3ba9b8e9a594ce8e89a22f | refs/heads/main | 2023-01-02T16:25:25.630709 | 2020-10-22T08:27:49 | 2020-10-22T08:27:49 | 304,650,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | """
Django settings for instagram project.
Generated by 'django-admin startproject' using Django 3.1.2.
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 pathl... | [
"priscillaungai99@gmail.com"
] | priscillaungai99@gmail.com |
8bbb7896a9faa5e12fd9ed8815e374e5c0f9b90b | 61afe17201589a61c39429602ca11e3fdacf47a9 | /Chapter3/Day19/12.异常细分(了解).py | 53a37128647faf14441789776924fc9aa2b738f8 | [] | no_license | Liunrestrained/Python- | ec09315c50b395497dd9b0f83219fef6355e9b21 | 6b2cb4ae74c59820c6eabc4b0e98961ef3b941b2 | refs/heads/main | 2023-07-17T14:16:12.084304 | 2021-08-28T14:05:12 | 2021-08-28T14:05:12 | 399,408,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import requests
from requests import exceptions
while True:
url = input("下载链接")
try:
res = requests.get(url=url)
print(res)
except exceptions.MissingSchema as e: # 细分处理
print("URL架构不存在")
except exceptions.InvalidSchema as e: # 细分处理
print("URL架构错误")
exce... | [
"noreply@github.com"
] | noreply@github.com |
bf41a6561529463a82de458609b7e41c9d5ac960 | d4044bd9c5cf70c491df3b1da5bd2d16063717bf | /exer3_test6.py | e3e4d68822f03784db862754fd174607125e8e1b | [
"Apache-2.0"
] | permissive | ramyacr97/RamyaPython | 6f6c164bd50d636bed1d71896b7a41d22a0bc71c | 27ae8c88ec1459372d422fa5f97baa415898f875 | refs/heads/master | 2022-12-11T11:40:11.010629 | 2020-04-01T06:40:08 | 2020-04-01T06:40:08 | 211,785,306 | 0 | 0 | Apache-2.0 | 2022-12-08T06:46:30 | 2019-09-30T05:54:07 | Python | UTF-8 | Python | false | false | 1,007 | py | from netmiko import ConnectHandler
from getpass import getpass
from ciscoconfparse import CiscoConfParse
import re
device = {
'host': 'cisco4.lasthop.io',
'username': 'pyclass',
'password': getpass(),
'device_type': 'cisco_ios',
'session_log': 'cisco4.txt',
}
net_connect = Connec... | [
"ramya.cr@gmail.com"
] | ramya.cr@gmail.com |
7e52d564b5e7a41caaade892dc1faf27b4438ade | 04709c69cc7ed2727446dbf0aedb9c076e6ce477 | /fridge/models.py | 5a79db5dc27a48fd96227ac8b67afa700f7e1889 | [] | no_license | BrianNgeno/smart-fridge | 95847bc50e5dc1374059df875825f688db5ac214 | 42c07cd03eb62fe5fa76942039cfd077501cea97 | refs/heads/master | 2022-12-09T22:17:08.260040 | 2018-11-02T14:29:40 | 2018-11-02T14:29:40 | 155,748,519 | 0 | 0 | null | 2022-11-22T03:05:25 | 2018-11-01T17:05:25 | Python | UTF-8 | Python | false | false | 2,224 | py | from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
import datetime as dt
@receiver(post_save, sender=User)
def create_user_profile(sender, instance, created, **kwargs):
if created:
Profile.objects.cre... | [
"bkn.ngeno@gmail.com"
] | bkn.ngeno@gmail.com |
76e05dcf4c7eff7600fcea99a5f4b07a8743617f | 9fd41c49b8c48ed9f033b886139578a2d642a0f6 | /info/serializers/comment.py | 8361b65b4ab245fb7897fea6b89ad7b1a75d7243 | [
"MIT"
] | permissive | wojciezki/movie_info | 98ff42bed9f37171ecd1381c5012e5d14aeaa698 | 88f089e8eaa5310cf5b03f7aae4f6c9b871282f2 | refs/heads/master | 2022-12-10T04:54:18.975789 | 2019-02-25T21:45:42 | 2019-02-25T21:45:42 | 172,560,020 | 0 | 0 | null | 2022-12-08T01:38:27 | 2019-02-25T18:19:56 | Python | UTF-8 | Python | false | false | 195 | py | from rest_framework import serializers
from ..models import Comment
class CommentBaseSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = '__all__' | [
"wojciech.jakubiak@whiteaster.com"
] | wojciech.jakubiak@whiteaster.com |
6a73e779d65fe3655e1e2f4fd86f82fe6aa2a5cc | bab423622c464b754a5f92d666637eed12f1db87 | /Lib/site-packages/PIL/BmpImagePlugin.py | 4a072a596c9a8073dc36c8ea8f4c5267287569d0 | [] | no_license | Eicom/Eicom | a3956c1fa33846da31c9c43a3b90add05fc7e8d1 | 4f5a0a3eaa1eec15e9dec22fd6aa9057fd3fc89e | refs/heads/master | 2021-01-21T15:43:19.661859 | 2017-11-27T22:26:54 | 2017-11-27T22:26:54 | 91,852,178 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,471 | py | #
# The Python Imaging Library.
# $Id$
#
# BMP file handler
#
# Windows (and OS/2) native bitmap storage format.
#
# history:
# 1995-09-01 fl Created
# 1996-04-30 fl Added save
# 1997-08-27 fl Fixed save of 1-bit images
# 1998-03-06 fl Load P images as L where possible
# 1998-07-03 fl Load P imag... | [
"apocalips_war@yahoo.com"
] | apocalips_war@yahoo.com |
e9341d437778c2487fba00573c3a9bfe7235a23b | a3c3d0624f94ba27dfe7fb8168681aec3ffc330e | /MobileNet/MobileNet.py | 6ae9c9787cbfdaccecd6db7d582b570083bc0369 | [] | no_license | peterbengkui/DeepLearningFromScratch | 69615047284c812dc5c56e4026afd141bf18cf2f | dab3010a20dd78668bc2ce57b12efa4678cee9be | refs/heads/master | 2021-07-15T02:57:29.049443 | 2017-10-22T15:36:06 | 2017-10-22T15:36:06 | 107,921,633 | 1 | 0 | null | 2017-10-23T02:17:42 | 2017-10-23T02:17:42 | null | UTF-8 | Python | false | false | 3,169 | py | class DepthwiseSeparableConv2d(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size=3, stride=1, padding=0):
super(DepthwiseSeparableConv2d, self).__init__()
self.layer = nn.Sequential(
nn.Conv2d(in_channels=in_channels, out_channels=in_channels, kernel_size=kernel_size,... | [
"noreply@github.com"
] | noreply@github.com |
93735abfef6073ed07f5abfadc3ee58c18166d59 | f79546db4cf8c0debc2119df013e4b8109cc6b5b | /exercicios/secao4/Ex23.py | 0be35d368b1bae60fb4bbc4758515ccae780743f | [] | no_license | bruninhaout/Python-course-udemy | 1dc77b5acdcd2a35bb0b5edcbc55f7d95a00eba6 | 4a4ff1b4c468991f16beb3e90e15b5a45f33b251 | refs/heads/main | 2023-07-31T22:06:26.624585 | 2021-09-17T00:36:48 | 2021-09-17T00:36:48 | 370,856,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | # metros em jardas
M = float(input('Valor em metros = '))
J = M/0.91
print(f'Valor em jardas = {J}')
| [
"noreply@github.com"
] | noreply@github.com |
ce4cf970a5df2967fa7d271221b787cf5f515add | ee517f04b0d6c44df5fb479066317cf2b088884d | /problems/Python problems, Computer Society, University of Oxford/session3/exercise9.py | 34ed2609950575a35fdd99d72b5c03e624ca3447 | [
"MIT"
] | permissive | antoni-wojcik/example-problems | bb4e147116c45986209cc8503e8172ffde057628 | c73cd4e076d965f1aee62b346e7e3df9637c0d2c | refs/heads/master | 2021-02-07T19:40:21.237091 | 2020-03-01T01:56:50 | 2020-03-01T01:56:50 | 244,069,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | def filtered_text(xs):
# Return a copy of xs that only contains the strings that start with a
# lowercase letter
out = []
for i in xs:
if i[0] >= "a":
out.append(i)
return out
def test(test_case, expected):
actual = filtered_text(test_case)
if actual == expected:
... | [
"antekwojcik2@gmail.com"
] | antekwojcik2@gmail.com |
e541861b7ebd4366fcc5d819594a0a6549018ca1 | c74cf0ea073dee424d19ee9fc765af94d80244cb | /reading_from_file/birthday_contain_in_graham.py | e8adfb41220cbeb1801f32580c9ed268021b561b | [] | no_license | sas0112/chapter_10 | 6126b65e3d0ba6fc4cbdb3c86b64f95f965af29f | 48cd9670b72bc94a37bf8e26f18f07b084d9b605 | refs/heads/master | 2020-06-30T13:17:53.595227 | 2019-08-06T15:10:20 | 2019-08-06T15:10:20 | 200,837,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | file_name = "one_million_number"
with open(file_name) as file_object:
lines = file_object.readlines()
graham = ""
for line in lines:
graham += line
birthday = 981107
birthday = str(birthday)
if birthday in graham:
print("Your birthday appears in the first 250 thousand digits of graham's number")
else:
... | [
"dell3000@126.com"
] | dell3000@126.com |
3f8bb489a918c6a98a686eae062933c73f459cee | 5c9511bc538045389e28183b0bc65d9b6cf51b85 | /12/tvar.py | 72b9846ddf9bc7bdfe7bcd23a69b99970c108947 | [] | no_license | balonovatereza/Pyladies-repository | 0174360835dd1094532118eda1e2821da8108f77 | d4ad0dae829d21a56e6fb86d7a7dcfdc9387ae27 | refs/heads/master | 2020-05-01T09:25:25.300245 | 2019-05-18T09:10:50 | 2019-05-18T09:10:50 | 177,399,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | from math import pi
from itertools import combinations
class Tvar:
def obvod(self): # nadefinovano pro pripad napr. primky
return
def obsah(self): # nadefinovano pro pripad napr. primky
return
def rozdil_obsahu(self, jiny_tvar):
return abs(self.obsah() - jiny_tvar.obsah())
cl... | [
"balonova.tereza@seznam.cz"
] | balonova.tereza@seznam.cz |
34d051133a7e6374db933c13826c816b874cbd0e | 5c66b5f790aede1e32280469b412e4b12bbcb77e | /sdk/python/tests/test_mysql_connect.py | 26bf3371b6c561d3482868145ae919c97a2311dd | [
"Apache-2.0"
] | permissive | Jocix123/approzium | dec36aec8c2e95f08ef3f8a7d78d4e8a4b737ff3 | 76415d2f31323dc4821238a34b9380fc68240cca | refs/heads/main | 2022-11-18T18:20:20.026327 | 2020-07-13T23:28:39 | 2020-07-13T23:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from os import environ
import pytest
import approzium
from approzium.mysql.connector import connect
from approzium.mysql.connector.pooling import MySQLConnectionPool
# use Psycopg2 defined test environment variables
connopts = {
"user": environ["PSYCOPG2_TESTDB_USER"],
"host": "dbmysqlsha1",
"use_pure": ... | [
"noreply@github.com"
] | noreply@github.com |
90b168dab4d543118fa9b45f75282474201a75ef | aa0d50b90770c739e783c4e083ae256d6a3a2205 | /crawler/tryon_1/items.py | 1ec03d29a53c0ceabf3e0d7d6a798c2e0b861c1a | [
"Apache-2.0"
] | permissive | merlintang/crawler-images | 5565169c3d5649fee6162dd4f6b376189137c74a | afa8ad94416e7c3b73a9b5ae57779974f8b2793e | refs/heads/master | 2020-03-22T12:38:07.332135 | 2018-07-07T04:20:56 | 2018-07-07T04:20:56 | 140,052,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class TryonItem(scrapy.Item):
# define the fields for your item here like:
#clothes name
id = scrapy.Field()
name = scrapy.Field()
... | [
"mtang@hortonworks.com"
] | mtang@hortonworks.com |
cd3078e7706fa40b6bd01da9561abea9522fbb81 | bdd0ed5177f4fea947c44f7195e82561a31e3c29 | /setup.py | d86ec2b445ff8f31f17b028d5c6d998b56f7592a | [] | no_license | SerenaFeng/grafana-testapi | 0bd0eb1f3106efbae2ec417d9d9b9031ec36b3dc | 04a718f37e63b506f45802d62b41b190eb69d12d | refs/heads/master | 2020-03-18T14:00:41.341123 | 2018-07-04T02:57:02 | 2018-07-04T02:57:02 | 134,824,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # -*- coding: utf-8 -*-
import setuptools
try:
import multiprocessing # noqa
except ImportError:
pass
setuptools.setup(
setup_requires=['pbr>=2.0.0'],
pbr=True)
# | [
"feng.xiaowei@zte.com.cn"
] | feng.xiaowei@zte.com.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.