blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52136ef79a2ff29b8dff5c2d42a403296fc0f539 | 3f2443dba35c42a296ffaef72c731f33c4892d07 | /seas5/initial_s5_explore.py | cce51ad8b442b5104226f4bdf341466ba07cc3c7 | [] | no_license | tommylees112/esowc_notes | 7cde6a373211647447084789fbee2597d81c0ce8 | 2a39c5c20ed50f3194ebb95aba720e48215c0dfd | refs/heads/master | 2021-06-21T17:07:33.663693 | 2021-01-28T18:34:58 | 2021-01-28T18:34:58 | 184,609,893 | 3 | 0 | null | 2019-05-26T19:49:30 | 2019-05-02T15:54:31 | Jupyter Notebook | UTF-8 | Python | false | false | 9,781 | py | from src.preprocess import S5Preprocessor
from pathlib import Path
import xarray as xr
import numpy as np
from pandas import Timedelta
import cfgrib
%load_ext autoreload
%autoreload 2
data_path = Path('data')
ds = xr.open_dataset(data_path / 'interim/s5_preprocessed/s5_tprate_kenya.nc', chunks={'number': 1})
d_min ... | [
"thomas.lees112@gmail.com"
] | thomas.lees112@gmail.com |
9469c7a4ab35d308fe7b7581530b40ccbad1382d | 3763b55c2d801a15ab6b026dcd56d553bb5951e0 | /signup/migrations/0001_initial.py | 951e72aeabadec43455b10f144a5447df2d4604f | [] | no_license | ankitgadewal/loginsignup | fb3d5fa4417ed4ba6ddee2951d8ce708f7dcf141 | 84401b1cf4180d4452f17f5b74b2a9d6dab156c6 | refs/heads/master | 2021-03-17T16:43:29.180147 | 2020-03-14T00:05:15 | 2020-03-14T00:05:15 | 247,003,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.0.3 on 2020-03-13 22:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Signup',
fields=[
('id', models.AutoField(a... | [
"ankitgadewal@hotmail.com"
] | ankitgadewal@hotmail.com |
19febac08f14ba44a2f8758bd2bf7c7c1ad928ce | 35ca4ddb7bcfd02137297c46fd1cc4fef9f50e03 | /StackCharRec/net/CTCRecognizer_new.py | 85fdb5fe42853e8ebdc2f6835ae3e5787e57a669 | [] | no_license | qzq2514/Patents | 0ef0212088f04aa921821fbea360fccd042e9194 | 41abd6d3767e63ae3344c226bceeca1ff70ec206 | refs/heads/master | 2020-06-16T06:06:57.211129 | 2020-01-07T10:30:30 | 2020-01-07T10:30:30 | 195,497,168 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,435 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
class CTCRecognizer(object):
def __init__(self, is_training,keep_prop,num_classes,num_hidden):
self.is_training=is_training
self.num_classes=num_classes
self.num_hidden=num_hidden
self.keep_prop=keep_prop
def prepro... | [
"qzq2514@outlook.com"
] | qzq2514@outlook.com |
22fdd6c6999df03b964c1e4e91d87db591d5d103 | a5296e51c4d017411484025652bc04e03b3dc1e5 | /setup.py | 587ed30b412b0db70efc46ca4f747ff1700261ca | [
"MIT"
] | permissive | multiformats/py-multicodec | de3e53c2a54ad6c495af23159ce4fe8da16fcefb | 4958443f185f6e85bd2c59f86749faceba446cf1 | refs/heads/master | 2023-05-14T00:58:36.171732 | 2023-05-09T09:09:35 | 2023-05-09T09:09:35 | 102,285,306 | 18 | 11 | MIT | 2023-05-09T09:08:26 | 2017-09-03T18:25:36 | Python | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'varint>=1.0.2,<2.0.0',
'six... | [
"dhruvbaldawa@gmail.com"
] | dhruvbaldawa@gmail.com |
722d489f696393dd633f0788bf8c5dd68afecbff | a665d491684fc4db553c19a9e23d539555072b29 | /apps/fb_chatbot_event_tdc/management/commands/bot_event_tdc_delete_persistent_menu.py | d8677d96ace755eff584eb364d7bfb5f22c636d4 | [] | no_license | chester-visualsquares/demo | 33255ffbc9d04e31d15a3d6922ed14e74a2e72fb | 06962b4eeaeba6a5ee9ba7435e6ae6aeff84a7e3 | refs/heads/master | 2020-03-23T08:05:32.356492 | 2018-06-03T10:02:39 | 2018-06-03T10:02:39 | 141,307,303 | 0 | 0 | null | 2018-07-17T15:15:12 | 2018-07-17T15:15:12 | null | UTF-8 | Python | false | false | 885 | py | import logging
import requests
from django.core.management.base import BaseCommand
from fb_chatbot_event_tdc.models import FacebookPage
logger = logging.getLogger('django.command')
class Command(BaseCommand):
args = '<FacebookPage_pk>'
help = ('Delete the persistent menu of the Messenger. Reference:'
... | [
"no001hk@gmail.com"
] | no001hk@gmail.com |
b946fc2f4af36735afe336f5f39229ecf95bfc36 | 99b834a7c289b282aefc8c8a03612540698103c4 | /gift_app/manage.py | 38e62ce26486a1fdd6b37966d973440bd4adf12e | [] | no_license | nrdhm/ybs_second_task | 5b84541f78c136ce46f7f94028b59571076f049e | 7b2e17845fc6fda1d9ed71177eeb9cbc737fb9a4 | refs/heads/master | 2022-02-22T06:12:43.923659 | 2019-08-25T09:23:51 | 2019-08-25T09:23:51 | 202,640,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import asyncio
import click
from injector import Injector
import gift_app.storage as storage_module
from gift_app.providers import ApplicationModule
from gift_app.storage import Storage
@click.group()
def cli():
pass
@cli.command()
def init_db():
storage = _get_storage()
async def go():
await... | [
"nortis@yandex.ru"
] | nortis@yandex.ru |
476daee09a7b317ae29bc564caa3ecfcaa7b8661 | 0d19301c70152d8fe734fde1c729f393438c8fcc | /input_data.py | 695fcbdeedacc2c801c5ebc27d6bee82566894f4 | [] | no_license | artemZholus/ladder-tensorflow | 1456feeff948050228c7240de9783cd26832a44b | c3b0a71975cfe2f62b13cdb750628c46d5fee6df | refs/heads/master | 2021-03-30T16:09:02.264693 | 2017-07-23T16:38:13 | 2017-07-23T16:38:13 | 84,014,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,642 | py | """Functions for downloading and reading MNIST data."""
import gzip
import os
import urllib.request, urllib.parse, urllib.error
import numpy
SOURCE_URL = 'http://yann.lecun.com/exdb/mnist/'
def maybe_download(filename, work_directory):
"""Download the data from Yann's website, unless it's already here."""
... | [
"zholus@rain.ifmo.ru"
] | zholus@rain.ifmo.ru |
66aa66882e164b7ba5a2e59dffbc38c3a2de5e88 | 364e81cb0c01136ac179ff42e33b2449c491b7e5 | /spell/branches/1.5/spell/spell/utils/getch.py | 5c987c69b5a5b76082ee96984d748f708592c769 | [] | no_license | unnch/spell-sat | 2b06d9ed62b002e02d219bd0784f0a6477e365b4 | fb11a6800316b93e22ee8c777fe4733032004a4a | refs/heads/master | 2021-01-23T11:49:25.452995 | 2014-10-14T13:04:18 | 2014-10-14T13:04:18 | 42,499,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | """
FILE: getch.py
PACKAGE: spell.utils.getch
PROJECT: SPELL
Copyright (C) 2008, 2010 SES ENGINEERING, Luxembourg S.A.R.L.
This file is part of SPELL.
This library is free software: you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwa... | [
"rafael.chinchilla@gmail.com"
] | rafael.chinchilla@gmail.com |
89db16bf4175545696646d4676ff3cf6f5996ac7 | cd83397433ee524204b3848f526d7811f3dc44ea | /dbdiff/serializers/base.py | ed4f8abaea274231d9f39fb72000b6ee690f5f15 | [] | no_license | yourlabs/django-dbdiff | 64a141ad7fe0bf4dc80a8865afeb0c2eb8001ac5 | e94b4e9fde75cc742efe6177ab5a6beb51b80413 | refs/heads/master | 2020-12-29T02:42:39.861973 | 2019-01-31T03:02:33 | 2019-01-31T03:02:33 | 48,894,459 | 9 | 4 | null | 2018-11-18T01:38:39 | 2016-01-02T01:02:26 | Python | UTF-8 | Python | false | false | 2,654 | py | """Shared code for serializers."""
import collections
import datetime
import decimal
class BaseSerializerMixin(object):
"""Serializer mixin for predictible and cross-db dumps."""
@classmethod
def recursive_dict_sort(cls, data):
"""
Return a recursive OrderedDict for a dict.
Djan... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
1f9ec68748b277619d402576f66813c50b96a210 | 905987ef54963ca45ec269e1aaf9bf52b32cf10d | /favor/apps.py | 31d7e72a6ffbeb6223493934ad333a97227e2d3a | [] | no_license | winglq/site | 77fd0d94145cc542c162b766aa51765276bff721 | 48337832c9a1b096ab37f1838510f1678d25bc47 | refs/heads/master | 2021-01-20T21:12:46.721860 | 2017-04-15T13:21:27 | 2017-04-15T13:21:27 | 64,014,668 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class FavorConfig(AppConfig):
name = 'favor'
| [
"winglq@gmail.com"
] | winglq@gmail.com |
4b0abd262747d285c524c151ba6c1d6e5fda3e59 | b557945a0979a5a94c0298ca037d590ef7c5ff69 | /business-logic-server/icarus_backend/user/userViewSchemas.py | 69d6b46798c85887767f36e8cd63a73660624d2a | [
"MIT"
] | permissive | samcrane8/FlyRight | 2147a8d230fbd86c9ca3e5b2c74381a4edc752ef | afa056045899859107dddbbd21a89d31dbce74c4 | refs/heads/master | 2022-12-19T00:13:57.468534 | 2019-11-25T19:27:43 | 2019-11-25T19:27:43 | 185,258,527 | 21 | 5 | MIT | 2022-12-07T21:04:13 | 2019-05-06T19:26:04 | Vue | UTF-8 | Python | false | false | 528 | py | from schema import And, Optional
register_user_schema = {
"username": And(str),
"password": And(str),
"email": And(str),
"first_name": And(str),
"last_name": And(str)
}
update_user_info_schema = {
Optional("username"): And(str),
Optional("password"): And(str),
Optional("email"): And(st... | [
"samcrane8@gmail.com"
] | samcrane8@gmail.com |
80ba4626df8b1704b0a47f7c2210a1d81421a852 | 7c6b70a535823998322d9166fa4e07f6a078dd58 | /find_uap.py | c3b66a20bd310e960f8c774c91031979dd891ee4 | [] | no_license | zhanzheng8585/universal_pytorch | fe1c76a20be7c530932dc334af7ad3d883349eda | 6ae4dbb9795026a895b187063a9d6bd1e2842dd7 | refs/heads/master | 2022-01-26T10:38:28.835035 | 2019-07-15T13:41:38 | 2019-07-15T13:41:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,598 | py | #############################################################
import utils
import torch.backends.cudnn as cudnn
cudnn.enabled = False
##############################################################
from docopt import docopt
import time
import torch
import torchvision
import numpy as np
import torch.optim as optim
docst... | [
"adityaganeshan@gmail.com"
] | adityaganeshan@gmail.com |
3f00c8d560d64f2325e632791586c0e1b4eb96b2 | c67a53ad4a550cba17b5826d91baf8ea61d32168 | /main.py | 557ae68f951911e441957039106640bd419a960c | [] | no_license | aiueoa/examplebase_bot | b826a3ddaa3522d86a458327bf7873ec18837af1 | 73d5816a15c12b50b31da859209958b40a4a7653 | refs/heads/master | 2022-04-13T08:06:19.332221 | 2020-03-08T02:49:35 | 2020-03-08T02:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # coding: utf-8
import pandas as pd
import MeCab
from gensim.models.word2vec import Word2Vec
from gensim.models.keyedvectors import KeyedVectors
import item #自作モジュール
mecab = MeCab.Tagger('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd')
print("学習済みモデル読み込み")
model_path = 'model/word2vec.gensim.model'
model = Word2Vec... | [
"kosekitau@gmail.com"
] | kosekitau@gmail.com |
557fea3c9fe7c4d56775ecc15fa1458ff3c3c11d | f260d477a80eb0baeae9bb7721a2bd12414ffe44 | /dictionary_practice.py | a16c6893f803605466b19e373897ee5eef0a527a | [] | no_license | emilymorgado/dictionary_practice.py | 752e0e029b722ed33640d8e1d3bb5e3dc8e39cd5 | c1a3eb3b80022c6e4ea3c96c563f5df44693bb6e | refs/heads/master | 2021-01-10T12:38:29.905706 | 2015-09-30T03:37:18 | 2015-09-30T03:37:18 | 43,409,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | colors = {
"green": {
"pink": ["red", "white"],
"maroon": ["red", "purple"]
},
"grey": {
"sky": ["blue", "white"],
"purple": ["blue", "red"]
}
}
def print_colors(input_dict):
"""Iterates both the dictionaries and the lists and prints logical sentences
list.items() indexes items, ma... | [
"emilymorgado@Emily-the-elusives-MacBook-Pro.local"
] | emilymorgado@Emily-the-elusives-MacBook-Pro.local |
951177eca75ca3f5c9f4e40a2263151f8faf76c0 | d05c946e345baa67e7894ee33ca21e24b8d26028 | /ethical-hacking/get-wifi-passwords/get_wifi_passwords.py | 0afd70caf1d0365dd1e562a2de798e75af6facc2 | [
"MIT"
] | permissive | x4nth055/pythoncode-tutorials | 327255550812f84149841d56f2d13eaa84efd42e | d6ba5d672f7060ba88384db5910efab1768c7230 | refs/heads/master | 2023-09-01T02:36:58.442748 | 2023-08-19T14:04:34 | 2023-08-19T14:04:34 | 199,449,624 | 1,858 | 2,055 | MIT | 2023-08-25T20:41:56 | 2019-07-29T12:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 4,167 | py | import subprocess
import os
import re
from collections import namedtuple
import configparser
def get_windows_saved_ssids():
"""Returns a list of saved SSIDs in a Windows machine using netsh command"""
# get all saved profiles in the PC
output = subprocess.check_output("netsh wlan show profiles").decode()
... | [
"fullclip@protonmail.com"
] | fullclip@protonmail.com |
ebafaa62b947ba7156ff0a056e3ac8e2bdaac1ea | 52398c45a9ee39022efe5f909ef2cd29042e7d84 | /lambda-run_instance_handler/lambda_function.py | 212ebb5007a73403fbf8de5951ca3077dfbc04ac | [
"Unlicense"
] | permissive | hudl/Tyr | f3a42d84430619915f4d9a34193aa626e069a9fb | 7a665e5f55a269ccfa2a001f79e4396e728aa39b | refs/heads/v2 | 2021-09-08T20:25:16.713802 | 2021-09-06T11:58:56 | 2021-09-06T11:58:56 | 31,391,696 | 10 | 4 | Unlicense | 2021-09-06T11:58:57 | 2015-02-26T22:15:08 | Python | UTF-8 | Python | false | false | 1,998 | py | import urllib.request
import json
import boto3
import os
ec2 = boto3.client('ec2', region_name='us-east-1')
s3 = boto3.client('s3')
def plant_flag(ticket):
return
s3.put_object(
Body='',
Bucket=os.environ['S3_OUTPUT_BUCKET'],
Key=ticket
)
def ticket_in_flight(ticket):
return... | [
"derek.nordgren@hudl.com"
] | derek.nordgren@hudl.com |
f7bac8c5536e898c08937724852e488e3150be07 | b52987ca7ffe71f3f75f5271d86aca619191920e | /james_login/login/migrations/0006_products_mysku.py | 59f74288fc0d7192e52178648498f16dd9429243 | [] | no_license | turpure/project | 6688bbd481d60cba3bad8a2efd3e3a656820b752 | 782318b430bb886c3c537180f4f117a6021fe292 | refs/heads/master | 2020-06-21T05:54:48.214234 | 2017-06-21T03:36:50 | 2017-06-21T03:36:50 | 74,800,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-28 07:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0005_auto_20160928_1458'),
]
operations = [
migrations.AddField(
... | [
"p812816627@163..com"
] | p812816627@163..com |
35aa5862cd45d61f373ae1e8f950f5f446d752e7 | 395c3fcf438a658339cac2c94eb84d81cc3ee173 | /portal/migrations/0004_remove_datosclientes_comprobantep.py | 2b1a4b8161f151f3243cfe5e626c8a3a2cfd8b96 | [] | no_license | diegocent07/appclient | a1015cc1fbb3b9c93978a0d51ea4b28e2b146217 | 42842b53ff6514d823998f8d550639e95ea44f8e | refs/heads/master | 2023-02-15T06:42:35.560622 | 2021-01-13T14:59:38 | 2021-01-13T14:59:38 | 292,563,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # Generated by Django 3.0.6 on 2020-09-07 13:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('portal', '0003_datosclientes_comprobantep'),
]
operations = [
migrations.RemoveField(
model_name='datosclientes',
name='comp... | [
"diego@topdek.com.br"
] | diego@topdek.com.br |
052528f4ac128b97f49e84e6f38cd025620a410f | 82f989cd3e0dbf121e82daf70494ac51850bd63a | /app.py | 7db186e2441e1b8a7f0645227b02ec4d554eed70 | [
"MIT"
] | permissive | PurpleGray/telegram-google-calendar-bot | 264c7dfe938385211460852fb518356fa86f1a1b | 165c0b5ccba3e81e19e79816ca2e53dd2c3ed530 | refs/heads/master | 2021-03-27T19:27:31.591373 | 2018-02-27T15:07:47 | 2018-02-27T15:07:47 | 112,594,779 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import telebot
from telebot import types
from config import Config
import logging
from flask import Flask
from flask_peewee.db import Database
import uuid
# Create Flask microserver
app = Flask(__name__)
app.secret_key = str(uuid.uuid4())
app.config.from_object('config.Configuration')
# Create DB
db = Database(... | [
"ValterBishop@gmail.com"
] | ValterBishop@gmail.com |
14f2b7f291c06d0f06f8de1f1cf0f5f815e78c31 | e9086da2bf28de83356bb08d4aafac48c463a80c | /tests/bench/test_aead.py | f93c4e8892eb62d81fb09b7d258b81eae7c643be | [
"BSD-2-Clause",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | pyca/cryptography | e5797eeabae127bc4c6c306e74993aef24c059b3 | d182176fbfb6f6aeb8856952d36d999c20f456ea | refs/heads/main | 2023-09-03T08:25:47.396782 | 2023-09-03T00:17:25 | 2023-09-03T00:17:25 | 11,939,484 | 5,709 | 1,793 | NOASSERTION | 2023-09-14T19:50:49 | 2013-08-07T02:23:38 | Python | UTF-8 | Python | false | false | 2,951 | py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
import pytest
from cryptography.hazmat.primitives.ciphers.aead import (
AESCCM,
AESGCM,
AESOCB3,
AESSIV,
ChaCha20Poly1... | [
"noreply@github.com"
] | pyca.noreply@github.com |
30a233993574c94b85769c43a11077769cd66e66 | b426e963c20e65395796e0da7777b0f0f218a3a9 | /auctions/migrations/0004_auto_20200713_1354.py | b31b14b7d69f1a1706ec1ea189c35b8e9c6c3414 | [] | no_license | viren-patel18/cs50_project2 | 836b50a452822d5dfb7ada6652c835d60390242f | 9274c1aee03c80de389662b2e8cf1e04f33e7ead | refs/heads/master | 2022-11-24T03:42:22.371266 | 2020-07-14T20:51:03 | 2020-07-14T20:51:03 | 279,124,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # Generated by Django 3.0.8 on 2020-07-13 17:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0003_listing_active'),
]
operations = [
migrations.RemoveField(
model_name='bid',
name='listing',
),
... | [
"vponpoint@gmail.com"
] | vponpoint@gmail.com |
3406e1737f01e6922dbc3ecb6e14192117807d84 | 484e328340b5ba43356d96c43fd08011d4164319 | /main.py | 9d84ecbf8439a8b4504800bbc87bdf7b30fdf87f | [] | no_license | mfkiwl/mcm-on-fpga | 61bbab0826c59279c13d1a760272f7b7241d96b6 | 99bbe0d605898268f0194ee9de4fda559cff5c04 | refs/heads/master | 2022-09-13T08:13:05.070671 | 2020-05-31T20:52:35 | 2020-05-31T20:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # Copyright 2018
#
# Ahmet Can Mert <ahmetcanmert@sabanciuniv.edu>
# Hasan Azgin <hasanazgin@sabanciuniv.edu>
# Ercan Kalali <ercankalali@sabanciuniv.edu>
#
# 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 o... | [
"noreply@github.com"
] | mfkiwl.noreply@github.com |
62785c1466ba061187c0717c5a3467502d580999 | 2246b25c8f23961e4d298c80e801face0ba25175 | /KNN/ItemKNN_CFCBF_Hybrid_Recommender.py | ef446822d329ddff5bd5ff680f0e6d3007a6bb4e | [] | no_license | giovanni-bozzano/polimi-recsys-porting | 64c7d5d0f72977f91c206e3627f98bc8ffe717d9 | e2722c6948330dec541bd2d2e02b83b5c65320de | refs/heads/master | 2022-10-24T02:45:30.831754 | 2020-06-17T19:53:35 | 2020-06-17T19:53:35 | 246,338,131 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 23/10/17
@author: Maurizio Ferrari Dacrema
"""
from KNN.ItemKNNCBFRecommender import ItemKNNCBFRecommender
import scipy.sparse as sps
import numpy as np
class ItemKNN_CFCBF_Hybrid_Recommender(ItemKNNCBFRecommender):
""" ItemKNN_CFCBF_Hybrid_Recommen... | [
"giovanni.bozzano.1996@gmail.com"
] | giovanni.bozzano.1996@gmail.com |
6d21b960b12b9032ee987bba6ff41f2729b421d8 | 7367e81f0e3e07d57012e9da7cb48ba4d3bd8ca7 | /services/face_detection/detection_opencv.py | 969d6e547ec1a44489f642c08e755ffc69db494f | [] | no_license | nikitos9000/VideoMoji | 9bc85d2812ad990d8696d533e1faf9959a39c70e | dc0e5b8b1c0b26d05f7615b61cd3dae4d18b24e4 | refs/heads/master | 2021-06-20T22:35:30.361732 | 2017-08-06T10:29:41 | 2017-08-06T10:29:41 | 89,780,126 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import cv2
faceCascade = cv2.CascadeClassifier('data/face_detection/haarcascade_frontalface_default.xml')
def detect(frame):
img_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY, 1)
faces = faceCascade.detectMultiScale(
img_gray,
scaleFactor=1.1,
minNeighbors=5,
minSize=(30, 30)... | [
"nikita@luka.ai"
] | nikita@luka.ai |
b2ba378584d5a1fd122e930f89910efba321a87e | d46fff914ffe82c7b13c67292a41ba5766b875cd | /python3-virtualenv/bin/pyrsa-decrypt | bca07fc6ce4f9981df088e284fd791127a790a26 | [
"MIT"
] | permissive | ariceeee/mlh-portfolio | a70dcaa005f96c40163f0cdd9046dc310a34823f | ad82b7194714a7274ec01de9ff85063732cb91fc | refs/heads/master | 2023-06-20T23:29:55.554001 | 2021-07-21T18:22:55 | 2021-07-21T18:22:55 | 378,275,549 | 0 | 0 | null | 2021-07-02T16:12:05 | 2021-06-18T22:16:03 | CSS | UTF-8 | Python | false | false | 253 | #!/home/centos/mlh-portfolio/python3-virtualenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"centos@ip-172-31-1-192.ca-central-1.compute.internal"
] | centos@ip-172-31-1-192.ca-central-1.compute.internal | |
a0a90c0230986fdf5685f3c90a42b56ce4b9c9e7 | 3c2b5fd20c7372fccb97fa76deb0980a173b5991 | /PythonFullStack/000Basic/Day01-基础/day01/09-格式化输出.py | 99e642a65c34863eb08fda93902e09a240a0937d | [] | no_license | softwarefaith/PythonFullStack | 560cdc2c0c38831e8304751b8b2bf680cb2f23e5 | 292cc0a5eee3ed8eb8a8d5e14673226533d2651e | refs/heads/master | 2021-05-15T09:57:37.812869 | 2019-02-21T10:37:41 | 2019-02-21T10:37:41 | 108,229,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #格式化符号:%s %d %f %x
#%s:输出字符串
#%d:输出int类型
#%f 输出float类型
#%x输出16位进制数据
name = "张三丰"
print("我叫%s" % name)
score = 100
print("python的考试分数:%d" % score)
#格式化之后,小数保留6位,四舍五入
pi = 3.1415926
print("圆周率:%f" %pi)
#2进制,8进制,10进制 16进制
num = 16
print("%x"%num)
s = 'abcdef'
s.replace('abc','eeeeee')
print(s) | [
"jie.cai@mljr.com"
] | jie.cai@mljr.com |
e61fe40ed4f095ddc70cab3393e488e4d8dc5a22 | 704cb7dc6d2c2e6a6a2cc813216e0dd858715198 | /Graphs/random.py | 1a165d3f5863462919bb7b1460a8c385da022df3 | [] | no_license | redixhumayun/ctci | 094558bc288d92cb6c1c7aa12d0d926637835633 | 6773aa9756a88a835c13fdf536ab0e09b69ee0bd | refs/heads/master | 2021-09-13T01:53:01.771471 | 2018-04-23T16:46:18 | 2018-04-23T16:46:18 | 97,685,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import os
path = os.path.abspath(os.sep) + '/Users/zaidhumayun/Downloads'
if os.path.exists(path):
os.chdir(path)
with open('./Game.of.Thrones.S07E05.Eastwatch.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA.mkv', 'rb') as f:
byte = f.read(32)
while byte != '':
print(byte)
| [
"redixhumayun@gmail.com"
] | redixhumayun@gmail.com |
9f97b9ac14222144733f31ef0bed639a73b8699e | c5abb318944748177a07c6586d2c381fb3afd296 | /team_builder/accounts/migrations/0004_auto_20180308_1834.py | bafb8b04536a5fb1cb94b184f94d006914468b55 | [] | no_license | charlesseymour/Treehouse-Python-Techdegree-Project-12 | 2dcc8a8898310f9c3f212b284e8398802a205160 | df417a3aec54031f988ca5b2a8cf3456767f0639 | refs/heads/master | 2021-01-25T12:42:14.752110 | 2018-04-18T00:55:58 | 2018-04-18T00:55:58 | 122,875,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.0.2 on 2018-03-09 00:34
# flake8: noqa
import accounts.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20180303_1744'),
]
operations = [
migrations.AlterField(
model_name=... | [
"charlesseymour@yahoo.com"
] | charlesseymour@yahoo.com |
67f925a04c62bc0d73196c16448e8b32b9b077c5 | 27a5087dfb2b47d986f0af7d29737e410bbded4c | /calculadora.py | 2d8f599f7ce587ce3b14918fff73e4a0fa61cd00 | [] | no_license | caiositta/Ac3ArquiteturaCalcTest | 8a4916e94599876ceee4c38b9d561f665fb3e862 | 7e3b93b612541f76ab59bdeed98885716f776e90 | refs/heads/main | 2023-08-21T23:02:38.770080 | 2021-09-20T21:54:02 | 2021-09-20T21:54:02 | 408,602,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | from unittest import main
import unittest
from abc import ABCMeta, abstractmethod
class Calculadora (object):
def calcular(self, valor1, valor2, operador):
operacaoFabrica = OperacaoFabrica()
operacao = operacaoFabrica.criar(operador)
if(operacao == None):
return 0
... | [
"noreply@github.com"
] | caiositta.noreply@github.com |
558550494ad378925abe663ca14b865bd0704dc2 | 0abbb8d6c0093abd69ff9bcec1477d4390bd8d12 | /bg.py | ad7ecdbf10254a665d02b0ff3a7ef85e623d696b | [] | no_license | april9288/firestorm | a7fb912ef96fe42be8bd658fbf5cfa0507dfdab9 | 23df116b380778489a19914cae833dbe43ff2c74 | refs/heads/master | 2020-03-29T13:18:38.387001 | 2018-09-25T07:55:20 | 2018-09-25T07:55:20 | 149,951,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | import pygame
from settings import Settings
class BG():
def __init__(self, fs_settings, screen):
self.screen = screen
self.fs_settings = fs_settings
self.image1 = pygame.image.load('images/bg1.jpg')
self.image2 = pygame.image.load('images/bg1.jpg')
self.rect1 = self.image1.g... | [
"april9288@gmail.com"
] | april9288@gmail.com |
c0dbb8efb76f7df94346658624006426b8b4d548 | 03a762018bca674b19dcbf2c7cd0b249358bd753 | /regular_expression.py | 6ff09c97cc51d900d80f598d254a126d973e7f24 | [] | no_license | picksmania/personal | a7697d06015559109ee2aa6be11f9164df544e33 | 2496d4609d9977dd706aae27977c8bffbe0955db | refs/heads/master | 2020-03-27T21:53:08.768739 | 2018-09-16T15:36:17 | 2018-09-16T15:36:17 | 147,183,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,477 | py | import re
# compile() creates regular expression character class [a-e],
# which is equivalent to [abcde].
# class [abcde] will match with string with 'a', 'b', 'c', 'd', 'e'.
# q = re.compile('[a-e]')
# r = re.compile('\d')
# r1 = re.compile('\d+')
# s = re.compile('\D')
# t = re.compile('\s')
# u = re.compile('\S')... | [
"prasit.kum.bagal@hpe.com"
] | prasit.kum.bagal@hpe.com |
ef658a18adc4441b54812d8bfec433c9e38fd626 | aebdfdf697e83b21013662b5826ffbf4af8ece4e | /algo/tests.py | 8066b6ad7b943c1c489494c03ec70b336193ff36 | [] | no_license | lion416/intemass_old | 2c3c2afdd6f9d601d5c3865e3fd769dc4898da37 | 56e25db7bf84d0962e7b09f6c041d4dd21cce0de | refs/heads/master | 2020-04-11T14:41:28.803406 | 2018-12-15T03:12:12 | 2018-12-15T03:12:12 | 161,864,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,625 | py | #! /usr/bin/python
#
# tests.py: System tests for essay grading algorithm.
#
# tests.py:
from django.test import TestCase
from django.utils import unittest
import logging
from standard import Standard
from markscheme import MarkScheme
## OLD: from algo.answer import Answer
from answer import Answer
import os
import r... | [
"lion1992.4.16@gmail.com"
] | lion1992.4.16@gmail.com |
09a14e523890ef28ada7efebd508d23ba59cdc0e | 801cb1fb8fff6566c8aa2faed53d6892f616e84b | /dashboard/views.py | f82be720131b5387c609f11f09887dc95b80b6de | [] | no_license | fanout/scaledemo | 1b216493570293127cd87d8a46c4af0ee806f4a8 | 4b5fa66067277196201a9339b25b079896c44940 | refs/heads/master | 2021-01-19T21:58:08.885585 | 2013-10-20T04:02:04 | 2013-10-20T04:02:04 | 12,533,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | import json
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotAllowed
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.conf import settings
import gripcontrol
import grip
import redis_ops
db = redis_ops.RedisOps()
pub = grip.Publisher()
... | [
"justin@affinix.com"
] | justin@affinix.com |
1c7a85d1bc47d5de449f689ef6517e479e0c12da | 3482d0df16f4cc947601b70652f59a2860a80461 | /sentiment_practice/explore.py | e6577ffd282d7b2e20c3e48316d50daf834ada87 | [] | no_license | seanongrl/Data-Science-Fintech | 10f70ec491e84d12a819e12a5e8aa9047210ea26 | 2381788d9b1f129634eadc74ec15e000f3c435f8 | refs/heads/main | 2023-06-13T06:22:51.251584 | 2021-07-05T08:22:34 | 2021-07-05T08:22:34 | 358,801,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # EXPLORE DATA SET
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
data_source_url = "https://raw.githubusercontent.com/kolaveridi/kaggle-Twitter-US-Airline-Sentiment-/master/Tweets.csv"
airline_tweets = pd.read_csv(data_source_url)
plot_size = plt.rcParams["figure.figsize"]
plot_... | [
"noreply@github.com"
] | seanongrl.noreply@github.com |
7fa91757cb83b9c20e92624508e0d4b35a0f4186 | 83ff195640df2b10b697c482723992af950671df | /Homework/Homework 7/hw7Part1.py | a32fb34031cba26e43f23eb5081e02f3f76fb4d5 | [] | no_license | sriyuthsagi/CSCI-1100-Computer-Science-I | 0c28c2d099b0ea811fe2dcfb8da0a925e6165b0e | ec8942a0fb7a085e7800d58aa0393f81576fcb8d | refs/heads/master | 2020-05-30T12:29:38.426713 | 2019-06-01T13:28:49 | 2019-06-01T13:28:49 | 189,735,219 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py |
def read_file(file):
file = open(file)
file = file.read().split('\n')
return file
def file_to_dict(file):
file = read_file(file)
i = 0
while i < len(file):
file[i] = file[i].split(',')
i += 1
file.pop()
words = dict()
for item in file:
words[item[0]] = ite... | [
"noreply@github.com"
] | sriyuthsagi.noreply@github.com |
e4730e9c78b1d7a9347ffbfd08bfea12b588f9dc | 7112f6946c2ba8476d94678fa821fa346a2c4313 | /lambda_service/app/generator/generators/will_generator/parser.py | 5fadedc080dd46bb61e2ef430dc564da26087c9a | [] | no_license | avgustinegorov/willcraftnow-backend | f69162a75e5b04ea60eb4b368557fac7601fcb25 | fe8d4362544da58ec6eda0713dca77345468a63e | refs/heads/master | 2023-06-01T18:40:40.686101 | 2021-06-16T22:00:23 | 2021-06-16T22:00:23 | 377,268,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,032 | py | import json
import random
import string
from copy import deepcopy
from io import BytesIO
import string
from html.parser import HTMLParser
import html
from draftjs_exporter.html import HTML
from draftjs_exporter.dom import DOM
from draftjs_exporter.wrapper_state import WrapperState
from .parser_utils import ParserUti... | [
"avgustinegorov@outlook.com"
] | avgustinegorov@outlook.com |
5f4faa5a99b512529973a47b04b211cca259e660 | 9c66ae49534862e838acc661c2909554f3c8acc3 | /.gdbinit.d/python/qt5/printers.py | 422901fdcee29bc72a88c758ef09e0713c133a44 | [] | no_license | oxidase/home | 9f04404736c3c9f39c10c4917da3e377336b7c75 | df0d6208c98318d99a2ecd87a426ee3d7b963e90 | refs/heads/master | 2023-08-13T20:58:12.310405 | 2023-07-23T11:26:24 | 2023-07-23T11:26:24 | 10,049,686 | 3 | 1 | null | 2016-08-02T17:44:45 | 2013-05-14T07:34:40 | Emacs Lisp | UTF-8 | Python | false | false | 23,468 | py | # -*- coding: iso-8859-1 -*-
# Pretty-printers for Qt5.
# Copyright (C) 2009 Niko Sams <niko.sams@gmail.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | [
"michael.krasnyk@gmail.com"
] | michael.krasnyk@gmail.com |
d52c96d4227682abf104f5ca08c26c7324a23c7b | 0d52600137490a0b4aa0eca41831d1f2cb0c65e4 | /backend/users/migrations/0002_auto_20200923_0531.py | 1192f7a3c17d474a694bcd54cd9778ebc0197b7e | [] | no_license | crowdbotics-apps/golden-mapleleaf-20599 | 994bef57a8e56572f794f290c85e92c0112cc9da | 3756ce96467cf9ec8b351e8bcfaf222dbc058723 | refs/heads/master | 2022-12-24T16:09:26.285202 | 2020-09-23T05:31:45 | 2020-09-23T05:31:45 | 297,862,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # Generated by Django 2.2.16 on 2020-09-23 05:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5ee65380bebb6699e1fa35149f2330cead284f78 | 55fdd6d73b245e0758ba1e76613b6b28d09c79c3 | /src/save_rep_callback.py | 822748dc14e74289bef2ea0e264c66fa2d9e0553 | [] | no_license | sumedharai12/semantic_cognition | f7c773231198a10e334853c04ed9bbda548d6a45 | d0fefd60d52b5f8faa2eb736debd4b7ea405dd6e | refs/heads/main | 2023-04-18T20:55:58.501796 | 2021-04-24T23:22:44 | 2021-04-24T23:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from pytorch_lightning.callbacks import Callback
class MyPrintingCallback(Callback):
def on_epoch_end(self, trainer, pl_module):
### TODO
pass | [
"annikabrundyn1@gmail.com"
] | annikabrundyn1@gmail.com |
efb07188716ca48860591a7eb35852c93b2a97ae | b220f91291af02c5416c3f92349472599096175d | /Project 2 - Genetic Algorithms/grid.py | c2b077b3f09f6f03bce78e9967750746c7cacb73 | [] | no_license | Kfirinb/Computational-Biology-Course | 2dedb84111495d277a8cb067d7a8eb3c085f8f19 | f6d217024ac51a59d77ba6fecaf0794439e7494f | refs/heads/main | 2023-08-11T08:38:18.763638 | 2021-09-28T14:14:01 | 2021-09-28T14:14:01 | 411,067,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,972 | py | """
Computational Biology: Second Assignment.
Developed by CUCUMBER an OrSN Company and Kfir Inbal
May 2021.
UNAUTHORIZED REPLICATION OF THIS WORK IS STRICTLY PROHIBITED.
"""
from sys import argv
import pygame
import numpy as np
import random
# Basic grid design, courtesy of Auctux: https://www.youtube.com/watch?v=d... | [
"70212138+Kfirinb@users.noreply.github.com"
] | 70212138+Kfirinb@users.noreply.github.com |
38d323f79569e894cdb87fba975a3678d9a6bd1a | 8594583b6fc86584ebe8d3cb816e4e631fb3ecb5 | /trackingEngine/__init__.py | 21dcd60d79a9fecb5629d89a2c19758b3d0433e1 | [] | no_license | connorlane/powdertracking | 69d1dd69ab4b88b455144e9d0b91871266d03195 | 3974e612059c0177942a5cac1545afb3a8eec33c | refs/heads/master | 2020-06-13T07:01:39.716173 | 2018-06-20T02:00:37 | 2018-06-20T02:00:37 | 75,417,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | __all__ = ['track', 'util', 'analyze']
from trackingEngine import *
| [
"connor.coward@gmail.com"
] | connor.coward@gmail.com |
9359f8d038fc1e8f77a7fe4f5f9df00e0e241f83 | 4c76c88f6421abb52a9e68ae48d33f32b0fcf5af | /traffic/run.py | 2c7fe99b08d3c482e924668c6ed6193073860037 | [
"Apache-2.0"
] | permissive | aperturetechnology/starthinker | 76ba1d8883dbcf32eff4164f57f4342d0b912b70 | fd2d70e39f05cb29afc65b8a78ea38441e1e2b9a | refs/heads/master | 2020-04-09T22:19:14.752457 | 2018-11-27T13:52:49 | 2018-11-27T13:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,569 | py | ###########################################################################
#
# Copyright 2017 Google Inc.
#
# 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
#
# https://www.apache.org/... | [
"kenjora@kenjora-macbookair.roam.corp.google.com"
] | kenjora@kenjora-macbookair.roam.corp.google.com |
cfb0c8d5e7940b94ee7ed94e61e281fd7031d601 | 048af27d13d71b2b36145dc7ae801401291b9919 | /google-cloud-sdk/lib/googlecloudsdk/core/updater/schemas.py | 9e766bad1cf0ff88f03183ccabb5d0fc05554d43 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | shippableImages/pi | e4c941e8a428be49f2958e565e063880f2eb1cea | b21a9231f70d394c935c0d7da1a260eb3abc88f5 | refs/heads/master | 2020-04-01T19:36:12.227033 | 2015-07-01T01:18:23 | 2015-07-01T01:18:23 | 36,627,764 | 0 | 2 | null | 2015-07-01T01:18:23 | 2015-05-31T23:59:39 | Groff | UTF-8 | Python | false | false | 17,905 | py | # Copyright 2013 Google Inc. All Rights Reserved.
"""Contains object representations of the JSON data for components."""
import datetime
from googlecloudsdk.core.util import platforms
from googlecloudsdk.core.util import console_io
class Error(Exception):
"""Base exception for the schemas module."""
pass
cl... | [
"devashish.86@gmail.com"
] | devashish.86@gmail.com |
64d4981a4eea5d22ee26cc21558b1d0fc30195a9 | 65860dcff48bd742561e3972a9dcefc64bfea5c0 | /validate_without_simclr.py | 31acbb59ea539871422cb7eb7e37f204a9c373f7 | [
"Apache-2.0"
] | permissive | BiQiWHU/pytorch-image-models-with-simclr | 9f482927c8af0cc4a6d2e1cd2cf6319ca57f1f2d | 0a3182be5ef6e008b73bb9f9ce756d26f3dab7c0 | refs/heads/master | 2023-08-17T10:39:14.778961 | 2021-09-13T01:28:08 | 2021-09-13T01:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,264 | py | #!/usr/bin/env python3
""" ImageNet Validation Script
This is intended to be a lean and easily modifiable ImageNet validation script for evaluating pretrained
models or training checkpoints against ImageNet or similarly organized image datasets. It prioritizes
canonical PyTorch, standard Python style, and good perform... | [
"foreverv32@msn.com"
] | foreverv32@msn.com |
7c13f8b32a85e3d13a088b4efe58dc8b03f7eaab | d29991b90b528baa04cb78b312abef799cf98bab | /src/canto/tests/tests.py | f5886e772f283a56ef0da571f662373f4431364e | [
"MIT"
] | permissive | RaphaelKimmig/django-canto | 9ff283eaf9a2bc30a4b2a894c73c20278fff9b62 | 033dd6fcaf96fed021a726b5b042632fd1504b74 | refs/heads/master | 2023-01-12T01:06:05.693214 | 2023-01-10T10:22:14 | 2023-01-10T10:22:14 | 154,282,140 | 0 | 1 | MIT | 2023-01-10T10:22:15 | 2018-10-23T07:27:03 | Python | UTF-8 | Python | false | false | 4,410 | py | from datetime import timedelta
import mock
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Permission
from django.test import override_settings
from django.urls import reverse
from django.utils import timezone
from django.utils.html import escape
from django_dynamic_fixture import... | [
"raphael.kimmig@ampad.de"
] | raphael.kimmig@ampad.de |
67af1a0893165e7b7b57f691c96457c44c67e6a6 | e204ab353fefee5ad31fa34d619856bb933f08f9 | /crackit/crack/migrations/0001_initial.py | 91a3aab71215f6a123a41dc077c7cfab41dc3d11 | [] | no_license | Sanketdave12/Crackit | e49aec48f83fb1543a529839797ad2681c4fac14 | e76b2136b2f69965cb70bda0ff4a13d1c2b346aa | refs/heads/master | 2023-03-01T06:19:27.786741 | 2021-02-15T18:25:42 | 2021-02-15T18:25:42 | 339,169,372 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # Generated by Django 3.1.6 on 2021-02-10 12:40
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"sddave1998@gmail.com"
] | sddave1998@gmail.com |
c288924a70713b4e1b5787b87198c35dad35fe31 | caa1ab93f3aa4d70fe50f166472687242a084af7 | /Semana 4/metod.py | b2c214f8f0bc4f901ad318c65b58f261fa79ea82 | [] | no_license | Mau5trakt/PCC | dd84b7672cfbe832ec37f1d4cccca7463b17d830 | cc2906c6cd56e78e50bc449539136d2569589d2e | refs/heads/main | 2023-05-08T07:35:45.843865 | 2021-06-01T06:45:14 | 2021-06-01T06:45:14 | 365,622,323 | 0 | 0 | null | 2021-06-01T01:29:39 | 2021-05-08T22:25:51 | Python | UTF-8 | Python | false | false | 569 | py | """
use of the diferent string methods on
pyhton
"""
#Count
var1 = "Quisiera Saber Cuantas Veces Se Repite La Letra E En Esta Cadena De Caracteres"
var1 = var1.lower()
print(var1.count("e"))
#lower and upper
print(var1.upper())
print(var1.lower())
#endswith saber si una cadena termina con el valor que le insertamos
pri... | [
"80871251+Mau5trakt@users.noreply.github.com"
] | 80871251+Mau5trakt@users.noreply.github.com |
71543286cb99f74ac4322634e4b336aa2b0c0148 | e121dcc5d23e225891420e730549b9cc7ebe8e88 | /python/lib/direct/extensions_native/Mat3.py | 3bab7b4f486b6202dc73a6af14145fae4d9977b1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | PlumpMath/panda3d-3 | 4f4cf7627eddae9b7f30795e0a0657b01fdf670d | 5c0be0e1cd46b422d28d5b81ffb1e8b28c3ac914 | refs/heads/master | 2021-01-25T06:55:36.209044 | 2014-09-29T14:24:53 | 2014-09-29T14:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from panda3d.direct.extensions_native.Helpers import *
Dtool_PreloadDLL("panda")
from panda import *
####################################################################
#Dtool_funcToMethod(func, class)
#del func
#####################################################################
"""
Mat3-extensions module:... | [
"ralf.kaestner@gmail.com"
] | ralf.kaestner@gmail.com |
a95c5997af888fe9bc451f3def8f2ef3bf00f683 | 960aa8eb95582cb88f02f84c45ae677dea699200 | /crawler/url_encode.py | 78624a751ded5ba93ef4c5a1a9a9380e5d032ec6 | [] | no_license | laisj/Toolkit | c5162aa9d83e22089ad0464a1a7d052f34342ec6 | a52ee0efb23c395c26bdec63dd084df83153c5f9 | refs/heads/master | 2021-06-20T11:35:35.953768 | 2021-02-19T11:04:01 | 2021-02-19T11:04:01 | 14,269,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | # -*- coding utf-8 -*-
import urllib
import sys
if __name__ == '__main__':
str = "??"
print str
params = {}
params['name'] = str.encode("UTF-8")
print urllib.urlencode(params)
| [
"lai.sijia@immomo.com"
] | lai.sijia@immomo.com |
7f0c1bc79e1d444b9771344e9e1420c1239df876 | 0f2242bdd286cc2a7b7feffafc9fd5c94cd5647f | /transfer_rl/student_learner.py | 79774129b4339fd79310c534daff2a7139409aa2 | [] | no_license | henghuiz-zz/transfer_reinforcement_learning | 7efd97329a6463816cfd91134b3869885290eea5 | fb83457d0b023948146fd3ed7e8852c038368a6d | refs/heads/master | 2022-10-26T23:08:39.727402 | 2017-05-02T00:18:50 | 2017-05-02T00:18:50 | 89,974,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import tensorflow as tf
class StudentLearner(object):
def __init__(self, network, optimizer):
# Placeholders
self.input_x = network.x
with tf.variable_scope(network.scope):
self.input_y = tf.placeholder(
'float', [None, network.number_action], name='Input_Action... | [
"zhhtc200@gmail.com"
] | zhhtc200@gmail.com |
e0e3a1f1524fa6c4ecda2f1aa230f8b563e48c50 | 95ee60ac94b31999a6d9dedad5b6ffd3fafe501b | /test.py | b2520416df5a8c00f62a3f9ea3857d16be119951 | [] | no_license | olivetree123/XDB | 689ae0717af58ec7ca4792d82fdd7b7b9ca07ed8 | cdc803de623eb9dc08d038b95d3006491bda73c5 | refs/heads/master | 2020-03-22T21:25:59.717332 | 2018-12-24T14:50:17 | 2018-12-24T14:50:17 | 140,687,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,809 | py | #coding:utf-8
import ctypes
from index import Index
from meta import DBMeta
from utils.functions import to_bytes
class BucketStruct(ctypes.Structure):
_fields_ = [
("id", ctypes.c_int),
("name", ctypes.c_char * 50),
("public", ctypes.c_bool)
]
class Bucket(object):
def __init__(... | [
"olivetree123@163.com"
] | olivetree123@163.com |
c4fd3291d83785546dc8f6617937a1fc581bb321 | c7d6fbccc4e72a2fb3ab9f5dc31bb74e6c86fc1e | /bw2regional/hashing.py | a8cd648aba373d630313b5e58fffaa65680b7b37 | [] | permissive | brightway-lca/brightway2-regional | 5c97f5fd1284254e53ef104c12ce2395886f439c | d11bea7555b915348aff6432de6afe9034271256 | refs/heads/main | 2023-06-09T17:27:01.732840 | 2023-04-28T13:49:29 | 2023-04-28T13:49:29 | 246,269,473 | 2 | 2 | BSD-3-Clause | 2023-05-24T14:51:24 | 2020-03-10T10:18:53 | Python | UTF-8 | Python | false | false | 314 | py | import hashlib
def sha256(filepath, blocksize=65536):
"""Generate SHA 256 hash for file at `filepath`"""
hasher = hashlib.sha256()
fo = open(filepath, "rb")
buf = fo.read(blocksize)
while len(buf) > 0:
hasher.update(buf)
buf = fo.read(blocksize)
return hasher.hexdigest()
| [
"cmutel@gmail.com"
] | cmutel@gmail.com |
253b5b0d8eaaadfe3e1f4299e47d30499b0564ed | 29b60cce70657099fc9ef277d86ac4399d0471d7 | /website-20161201T160425Z/website/music/models.py | 88b04046e08a86c5574d7c5f852af47dc92e204f | [] | no_license | hurley1221/340 | 1bb4c70abc1af5931166b30c3581b14eb9121d0a | bed4a922a0a77a643d9ff92e4485cb4ed09fb874 | refs/heads/master | 2020-06-15T08:31:19.261119 | 2016-12-15T19:40:55 | 2016-12-15T19:40:55 | 75,309,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from django.db import models
class Modules(models.Model):
ModuleCode = models.CharField(max_length=10)
ModuleTitle = models.CharField(max_length=40)
ModuleTutor = models.CharField(max_length=40)
def __str__(self):
return self.ModuleCode + ' ' + self.ModuleTitle + ' ' + self.ModuleTutor
class ... | [
"noreply@github.com"
] | hurley1221.noreply@github.com |
736043f23ad57f8d40694d7f59941710ebeb431a | 86368cbbbfd4e1a2da2278efaa2301b1f85379e0 | /nni/algorithms/compression/v2/pytorch/pruning/tools/__init__.py | 9da94359a089559b02855d1292c066aafa0915b5 | [
"MIT"
] | permissive | squirrelsc/nni | 708a21feeade21e955bc1213e0b67e47d09ff4bd | 3f67d92b676d771e246ff1af5fef197d50a0b99e | refs/heads/master | 2023-04-13T18:45:26.739405 | 2023-04-03T02:47:04 | 2023-04-03T02:47:04 | 159,625,872 | 0 | 3 | MIT | 2020-07-11T00:45:55 | 2018-11-29T07:31:00 | Python | UTF-8 | Python | false | false | 184 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# pylint: disable=wildcard-import,unused-wildcard-import
from nni.compression.pytorch.pruning.tools import *
| [
"noreply@github.com"
] | squirrelsc.noreply@github.com |
195a5a7f14975ceb256c043478c66e89976c7ebf | 6932d8e65c751f40dad803704d4bb17b496b0fb2 | /app_with_ui/urls.py | b59365ec009d000fc55de0750c9ab145d073cc36 | [] | no_license | AndriiNartov/image_project | 4fd11846ce408d4ed337d90a6221359fa78e28b3 | bc00c3693263bb66dead8714f2c0291e6cdefef8 | refs/heads/main | 2023-05-26T03:12:20.502442 | 2021-06-10T13:37:33 | 2021-06-10T13:37:33 | 374,596,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from django.urls import path
from app_with_ui.views import IndexView, UploadImageView, ImageListView, CreateExpiryLinkView, \
ExpiryLinksList, ShowImageByExpiryLink, LoginUser, RegisterUser, ProfileView, logout_user
urlpatterns = [
path('', IndexView.as_view(), name='index'),
path('profile/', ProfileView.... | [
"nartov1912@gmail.com"
] | nartov1912@gmail.com |
28c943ca355bcaaaddc5207b193722efafd3d856 | f7ad87d5a3a9609e3f1b3f13bfbfacccdf7b94bb | /scrape_mars.py | b9cb024d0f17d483ceaee7249f8a83dbd3e01413 | [] | no_license | MarSchien/Mars_web_scrape | 090e002f7aa2c2bf1fd45f3ed26330e8022e4076 | 5f19b4f29fe6a2609815b3db9ef3e3fefb3d2429 | refs/heads/master | 2020-04-27T10:09:57.388295 | 2019-03-07T00:39:59 | 2019-03-07T00:39:59 | 174,242,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | # Dependencies
from bs4 import BeautifulSoup
from splinter import Browser
import requests
import pymongo
import pandas as pd
import time
# # @NOTE: Replace the path with your actual path to the chromedriver
# executable_path = {"executable_path": "/usr/local/bin/chromedriver"}
# return Browser("chrome", *... | [
"noreply@github.com"
] | MarSchien.noreply@github.com |
172c4a4365179275d336f28d7f86dff52b22c221 | 529b02be0fa388d10ea1581f7804820d72719ace | /Matrix_Week1/submit_inverse_index_lab.py | 15881ee029df94455b9d85905d7ada26438bfc5a | [] | no_license | sharov-am/Coursera_Matrix | 8dc7e79f348270b5a6acb8faa484574584a5cdc2 | 6fccb1ee24fdd628bb9ac3392c46e2406b41e939 | refs/heads/master | 2021-01-18T19:19:42.723295 | 2013-07-23T06:45:45 | 2013-07-23T06:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,416 | py | ######## ########
# Hi there, curious student. #
# #
# This submission script runs some tests on your #
# code and then uploads it to Coursera for grading. #
# ... | [
"18cc@mail.ru"
] | 18cc@mail.ru |
66f753c83ed4076f1a3a771fe91e85382b1b0758 | 79587d6ef3e3f5a36838ec83d4734363e592895d | /execute_task/execute_task/urls.py | 50c0c72e5bbccc2c098b2552dd15acd9af04839a | [] | no_license | s57445560/user_command_web | 8bb338c0873e6840a60be2a59b826765dbadf657 | d0a1a51aaae22c66b9d326bb2ce08c4932fce1a5 | refs/heads/master | 2021-08-05T20:23:56.376365 | 2018-07-27T09:20:39 | 2018-07-27T09:20:39 | 132,120,845 | 68 | 2 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | """execute_task URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='hom... | [
"sy.manage@hotmail.com"
] | sy.manage@hotmail.com |
45c8c8870e391554d36f19b6eba7dfa27dbca758 | 61490d2cb8f59bb220bde14a8fbdff8b3155bf82 | /sharpspark/settings.py | 29275e8ce274fd260f6a6f1f80d4ff008c0b1638 | [] | no_license | grlownzl/sharpspark | dd8e1bd0afdf002e7ced0a4befd67d6c8f03cd0c | 75b97c28f11cadf5bd8a96cd1defbaec0e537458 | refs/heads/master | 2016-09-05T12:42:33.561666 | 2013-03-31T21:09:11 | 2013-03-31T21:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | # Django settings for sharpspark project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
PROJECT_DIR = os.path.dirname(__file__)
PUBLIC_DIR = os.path.join(PROJECT_DIR, 'public')
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db... | [
"grlownzl@gmail.com"
] | grlownzl@gmail.com |
55e1291f11cb3e888a844068c58741172efff4a7 | 757779e9dd60e54947a60cf276ba5a8c571f4d16 | /planners/nn_waypoint_planner.py | 2f9869b48b4e64aa9c4315e0136d231f2d58a50d | [] | no_license | SFU-MARS/WayPtNav-reachability | 4c74204b66a8d12c0721d6860fe3340995e6a81f | 4429e315242eae85df81fb3c5b0f3dd52ae434cf | refs/heads/master | 2022-03-30T15:56:50.482198 | 2020-02-14T21:47:31 | 2020-02-14T21:47:31 | 237,542,764 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | import tensorflow as tf
from planners.nn_planner import NNPlanner
from trajectory.trajectory import Trajectory, SystemConfig
class NNWaypointPlanner(NNPlanner):
""" A planner which selects an optimal waypoint using
a trained neural network. """
def __init__(self, simulator, params):
super(NNWaypo... | [
"anjianl@cs-mars-04.cmpt.sfu.ca"
] | anjianl@cs-mars-04.cmpt.sfu.ca |
1aa20d6c7c87c06d98602b8b2eb0e7fc27e64cec | e7d947bf022d836de574b15324803950046a2789 | /cap4_ex53.py | d4985665bc383c38e88feb86a4738b539e110de0 | [] | no_license | ChikusMOC/Exercicios-Capitulo-4 | 1d1889f3882301cf756565187dc08636ea7e4fb4 | 292afb529850afdfbcb9c90d97478900ac568dff | refs/heads/master | 2022-03-13T02:18:46.902724 | 2019-11-25T04:04:30 | 2019-11-25T04:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | """
Exercicio 53
"""
comprimento = float(input("Comprimento: "))
largura = float(input("Largura: "))
preco_tela = float(input("Preço do metro da tela: "))
valor = 2*(comprimento+largura) * preco_tela
print(f"Você irá gastar R${valor} para cercar seu terreno")
| [
"noreply@github.com"
] | ChikusMOC.noreply@github.com |
f98fbeb004b7da13a4c322470a01fcd04396cc03 | 587be7ae3f60e0014de4098b4c2ee1d80706e6f9 | /official/vision/serving/export_base.py | d7dcd61eaa8a7c2076c750f57287f6045ebbb5d5 | [
"Apache-2.0"
] | permissive | npfp/models | 56bc0c40d1bc7b8889a28eb8b456d8116a256539 | 6d3756e814a7f98b24666bf5465ed82074a40f9f | refs/heads/master | 2022-06-13T23:19:52.411777 | 2022-04-08T01:03:51 | 2022-04-08T01:04:46 | 129,899,186 | 0 | 0 | Apache-2.0 | 2018-04-17T12:12:18 | 2018-04-17T12:12:18 | null | UTF-8 | Python | false | false | 7,180 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
91da9dd56045bd0207ca34ad9c5553f170b37e04 | bd55411f9c464b145e51b33551796acecee67acd | /tests/test_visitors/test_ast/test_statements/test_parameters_indentation/test_collection_indentation.py | 50dd6b9c155d0b56ebccd7f6e0630644db7dcaae | [
"MIT"
] | permissive | makarchuk/wemake-python-styleguide | dd1f6f5113c8a056857f03bac7ac1efb5615b5c6 | f976eed24613fbd6ea29f1cc589d8f863165a7aa | refs/heads/master | 2020-04-13T06:33:12.026229 | 2018-12-24T12:01:20 | 2018-12-24T12:01:20 | 163,023,989 | 0 | 0 | MIT | 2018-12-24T21:18:14 | 2018-12-24T21:18:14 | null | UTF-8 | Python | false | false | 3,902 | py | # -*- coding: utf-8 -*-
import pytest
from wemake_python_styleguide.visitors.ast.statements import (
ParametersIndentationViolation,
WrongParametersIndentationVisitor,
)
# Correct:
correct_single_line_tuple = 'xy = (1, 2, 3)'
correct_single_line_list = 'xy = [1, 2, 3]'
correct_single_line_set = 'xy = {1, 2,... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
fc675d97a03e3a88d8ca032da47af403a0ddb72d | 955acac376cbfb936766b218fa6d4444da7dfd58 | /salesanalyzer/settings.py | 2cb8fa8ba6a7b5a46bb6a30590c5c5c6b9067cc5 | [] | no_license | tejaser/salesAnalyzer | bcd929c1ba10455cb55fdf4ac3c82ebab9f44906 | ef36d5d15dc4209fe8c5b616f2ef0b5183ffc628 | refs/heads/master | 2020-03-25T17:44:53.857288 | 2018-08-08T15:08:31 | 2018-08-08T15:08:31 | 143,993,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | """
Django settings for salesanalyzer project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"tejas.er@outlook.com"
] | tejas.er@outlook.com |
541ef89471ca322a43aeadd5a44880e78f66a647 | 15a992391375efd487b6442daf4e9dd963167379 | /tests/test_ensemble_evaluator.py | dab46f366f696a60f4afcdd25379d30e19484c1e | [
"Apache-2.0"
] | permissive | Bala93/MONAI | b0e68e1b513adcd20eab5158d4a0e5c56347a2cd | e0a7eff5066da307a73df9145077f6f1fec7a514 | refs/heads/master | 2022-08-22T18:01:25.892982 | 2022-08-12T18:13:53 | 2022-08-12T18:13:53 | 259,398,958 | 2 | 0 | null | 2020-04-27T17:09:12 | 2020-04-27T17:09:11 | null | UTF-8 | Python | false | false | 3,080 | py | # Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"noreply@github.com"
] | Bala93.noreply@github.com |
95b1757dd9afbdfd5cefa3d1e466aab5df4338c7 | 091bd8f744f1eae5d53db4f4f6c2a6a49f7a4ff7 | /Inventário.py | 2b25ab8b8eaae4d14afb464fd067d4a7f01fc396 | [] | no_license | juliaribeiromartins/EP1 | 176dae67cbf9687f1d98a83c8315d1c489ecc148 | 1005a2792f0d56e8226549c86c9c5fdc2a442dc0 | refs/heads/master | 2020-05-09T19:30:35.306141 | 2019-04-22T22:42:47 | 2019-04-22T22:42:47 | 181,380,703 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 22 18:26:13 2019
@author: julia
"""
inventario=[]
if nome_cenario_atual=="elevador":
inventario.append("doce")
elif nome_cenario_atual=="help desk" or nome_cenario_atual=="sala do wii" or nome_cenario_atual=="quadra":
inventario.append("pen drive")
... | [
"julia.r.martins@hotmail.com"
] | julia.r.martins@hotmail.com |
63a3cbe4b5564355ccb2640b96bf8c3ccb3faeb9 | afc549c50d7dbfb06d3968a88898318c0490a0f9 | /MyBook/Book/admin.py | 80d1aa7c7af638b624ae331c00b410fe17320c6f | [] | no_license | SHAOOR786/MyBook | 81daa02735bfed4be0067219b0f163ba03ee152c | 7d4b539e3433e9c8cafcfe94e183c6b1f22cc03b | refs/heads/master | 2023-06-03T18:59:53.516889 | 2021-06-23T18:50:10 | 2021-06-23T18:50:10 | 379,700,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django.contrib import admin
from .models import Profile,Skill,Document
admin.site.register(Profile)
admin.site.register(Skill)
admin.site.register(Document)
| [
"aquariusca01@gmail.com"
] | aquariusca01@gmail.com |
11a784b4d90b8c37d4e62c235f0b49ec39ba01fc | d63463de2f333b4ee0e199ff56f36cdc90d7d1e7 | /devel/lib/python2.7/dist-packages/franka_gripper/msg/_GraspEpsilon.py | e94a4658cc0c15c396344cb3620737c1d9b518a1 | [] | no_license | christinaionescu/panda_testing | 9ed9b888f6cc261ac4ca60a1403e38610f07b013 | 77a00ee936b1f1ab244cf9491792c7ecac544eae | refs/heads/master | 2023-03-22T04:15:12.845237 | 2021-03-01T18:54:36 | 2021-03-01T18:54:36 | 343,522,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | /home/pandanuc3/catkin_ws4/devel/.private/franka_gripper/lib/python2.7/dist-packages/franka_gripper/msg/_GraspEpsilon.py | [
"christina.ionescu@ifu.rwth-aachen.de"
] | christina.ionescu@ifu.rwth-aachen.de |
1b29f31242f44e5526ecdee8fdc08f2a589b247e | a6106cedc42dcab94ccc4ee6d681372d2246ce5e | /python/활용자료/예제/08/ex8-6.py | 5100389ad3e103df964a9c3942950d5d9307659b | [] | no_license | leemyoungwoo/pybasic | a5a4b68d6b3ddd6f07ff84dc8df76da02650196f | 481075f15613c5d8add9b8c4d523282510d146d2 | refs/heads/master | 2022-10-08T19:57:26.073431 | 2020-06-15T06:50:02 | 2020-06-15T06:50:02 | 267,502,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | import random
for i in range(3) :
print(random.random()) | [
"mwlee2587@gmail.com"
] | mwlee2587@gmail.com |
27b747558c9c86856132c92394b80cd6a81d56b1 | 046b58fe88ba26bc0e9a5a1b908e4938fc974f7b | /exercise_2/utils/decorators.py | e870de742fb38d508eac80d8e6b05690900ead89 | [] | no_license | igortsallagov/py-adpy-04 | 44b06edc0ce3c510ed6306849f0e94590d69edb6 | f6a13f98a76cfe410cb25e21557624a969ecc64b | refs/heads/master | 2020-04-21T03:56:13.595375 | 2019-02-08T09:53:15 | 2019-02-08T09:53:15 | 169,298,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import datetime
def logging(func):
def write_logs(phone_book_instance):
date = datetime.datetime.today()
log_string = f'{date} // {phone_book_instance.name} // {func.__name__}\n'
with open('log.txt', 'a') as log_file:
log_file.write(log_string)
return func(phone_book_in... | [
"igor.tsallagov@gmail.com"
] | igor.tsallagov@gmail.com |
c0602df1039a67e3d82d9676b44fe1c6356a2989 | e2e14dee0f7936279ea2a54866413ef1d9a2992f | /nani/descriptors.py | a21187f7fdd1f261786e4b1712b0da453ffc03c1 | [
"BSD-3-Clause"
] | permissive | stefanfoulis/project-nani | 650a26ca4c70c4c97238f4407a5e9297cab0b5d3 | 5407886721331c1b1c735af5c8c5a1b1f64eb496 | refs/heads/master | 2020-04-07T19:10:54.335628 | 2011-03-04T16:21:39 | 2011-03-04T16:21:39 | 1,434,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | from nani.utils import get_translation
class NULL:pass
class BaseDescriptor(object):
"""
Base descriptor class with a helper to get the translations instance.
"""
def __init__(self, opts):
self.opts = opts
def translation(self, instance):
cached = getattr(instance, self.opts.t... | [
"jonas.obrist@divio.ch"
] | jonas.obrist@divio.ch |
49fd8a9fff68e64f5570f9b1bf88715332d7a98f | 8761930dec0c7469837a2e6d2722e477b8a8d871 | /pyguide/modules.py | 7352e96bd668a03398567e9ffe578d45d73cd07c | [] | no_license | chirs/compsci | 3a43848af7ef3f0f24944ea8a6f8ccb439cbf1aa | 938e7a80d297900d9430c9cc79ebf03633ecff12 | refs/heads/master | 2021-01-13T01:37:19.479577 | 2014-11-21T03:31:52 | 2014-11-21T03:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import datetime
#Modules
#-------
# Explore import here also.
# modules are singleton objects - they get loaded into sys.modules once
datetime.a = 4
# What's going on here?
from datetime import a
print a # 4
#packages
#TOM: ?
#Or of course if you do the import yourself with __import__ or imp.load_module or some... | [
"chrisedgemon@gmail.com"
] | chrisedgemon@gmail.com |
48af6b4bd9215f66f7f5723d3b95fb70b1a04d53 | 2c5f6829888bf75122f67931ce8d324535398594 | /python-solutions/string/345_reverse_vowels_string.py | d996c39071db15da79f5e7a038822ac3dcd41121 | [] | no_license | jvanvari/LeetCode | 6880b95086bf0ea4f35b4be346a017674475d80b | 1b6d9145e6dacb9e940a4dee872d7935b0518b4f | refs/heads/master | 2022-11-24T18:47:42.729896 | 2020-07-31T17:02:47 | 2020-07-31T17:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Solution:
def reverseVowels(self, s: str) -> str: # function name should be lower case , leetcode doesn't follow the convention
c = list(s) # string to list
j = len(s) - 1
i = 0
vowel = ["a", "e", "i", "o", "u", 'A', 'E', 'I', 'O', 'U']
while (i < j):
if c... | [
"gvanvari@gmail.com"
] | gvanvari@gmail.com |
450cd3056ff7d6cbe3eb2a316b2bbc7c16e92239 | 4bed188b7c145c0863d1e6dfeb4eb27ef849ce2f | /486_ws/build/astra_camera/catkin_generated/pkg.develspace.context.pc.py | 48da2c7b35c61cab6fefcfab9d430b6449f0f0b9 | [] | no_license | ihelal/MSE486 | 50e6f223f601153fe42140a0111bfdac5e20dd92 | 0a22f49cfb75279ce70f81e73f978a3efd157029 | refs/heads/master | 2022-12-08T21:46:42.080565 | 2020-08-18T01:50:12 | 2020-08-18T01:50:12 | 288,327,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hima/486_ws/devel/include;/home/hima/486_ws/src/astra_camera/include".split(';') if "/home/hima/486_ws/devel/include;/home/hima/486_ws/src/astra_camera/include" != "" else []
PROJECT_CATKIN_DEPEN... | [
"ihelal@sfu.ca"
] | ihelal@sfu.ca |
b39dc37ecd16c26aa179b0a503d9568e9c4d3ed5 | 003dd45d19b5a6fd4a04deeefa63756462dbe09d | /pymoo/visualization/scatter.py | cbd1fb1335ff582b2b3faf26749989e19329547c | [
"Apache-2.0"
] | permissive | Flytortoise/pymoo | 51d32793e843977bd8fda0226bb6add1c356e21d | c6426a721d95c932ae6dbb610e09b6c1b0e13594 | refs/heads/master | 2023-09-03T20:54:13.284192 | 2021-11-09T13:23:15 | 2021-11-09T13:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,926 | py | import numpy as np
from pymoo.docs import parse_doc_string
from pymoo.core.plot import Plot
from pymoo.util.misc import set_if_none
class Scatter(Plot):
def __init__(self,
angle=(45, 45),
**kwargs):
"""
Scatter Plot
Parameters
----------------
... | [
"blankjul@egr.msu.edu"
] | blankjul@egr.msu.edu |
74f8fbad03d961ee5324519e9dca1706e4a4260b | fd87ad189eda8f862b01f69b3c159b07cefd9ffe | /conftest.py | dc101ae0102cd7b70386397204352d556f94952d | [] | no_license | nsteinme/phy | d764c6c54ff86a80b53053a0a104bfe0720b9214 | 47694b2e5f0c53056cb2f6ae16145d0553d7bc3b | refs/heads/master | 2021-01-18T15:26:43.954619 | 2015-07-27T21:29:47 | 2015-07-27T21:29:47 | 38,246,841 | 2 | 0 | null | 2015-06-29T12:36:51 | 2015-06-29T12:36:50 | Python | UTF-8 | Python | false | false | 2,613 | py | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import os
import numpy as np
from pytest import yield_fixture
from phy.electrode.mea import load... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
39bdcba066a9a4034929eb6e61cc0bb409e80dfd | 7e9a2aabeab0309080d5ff930dcb985140f7e99f | /blog/migrations/0003_comment.py | 157b3752e2e754fd2a1a2fa6ec5357fbee4d4d0f | [] | no_license | bengbenx/django_python | db994bf1c1035ed02514d60ebf404076e02a5233 | 6d33449c160f72c7de4cfe1aff56f9c719273666 | refs/heads/master | 2022-10-20T17:03:30.229271 | 2020-06-13T07:58:46 | 2020-06-13T07:58:46 | 271,693,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # Generated by Django 3.0.6 on 2020-06-09 02:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20200608_1205'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"bengbenx@gmail.com"
] | bengbenx@gmail.com |
62e66734d55829920dfe36a63b969fa1804bec35 | c44814ad5c2762bf718012a0d2330fa2130e0fc3 | /datadog_checks_dev/datadog_checks/dev/tooling/configuration/template.py | 1119022bb15d3c87f96d36d243521dc1584a70e7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lucasviecelli/integrations-core | 450f551ddd89f95c429c16a8c4aefc5534b0638c | 1a0c635c7fbd921c2672762efdc709a3ab6b647d | refs/heads/master | 2022-12-13T11:49:28.449631 | 2020-09-09T13:20:03 | 2020-09-09T13:20:03 | 293,894,322 | 0 | 0 | BSD-3-Clause | 2020-09-08T18:27:17 | 2020-09-08T18:27:16 | null | UTF-8 | Python | false | false | 5,188 | py | # (C) Datadog, Inc. 2019-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from copy import deepcopy
import yaml
from ...utils import file_exists, get_parent_dir, path_join, read_file
TEMPLATES_DIR = path_join(get_parent_dir(get_parent_dir(__file__)), 'templates', 'configurati... | [
"noreply@github.com"
] | lucasviecelli.noreply@github.com |
c870878836b7d664a633977aabdb7e7089083792 | 8f9ae6aa205f7b5b29dcdd4920ccdab836de417b | /travelapp/migrations/0001_initial.py | 8e50df67e14afa256b14ba0f58815c36e7244c84 | [] | no_license | hiranpradeep/travelproject | 492cba273aa6f86727235ee7a366908d1542731d | 91790672869ae9cc4bfe935abbdcab86eb6f7348 | refs/heads/master | 2023-08-20T23:21:52.339314 | 2021-09-09T14:23:29 | 2021-09-09T14:23:29 | 404,752,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # Generated by Django 3.2.4 on 2021-06-12 06:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Place',
fields=[
('id', models.BigAutoField... | [
"55525087+hiranpradeep@users.noreply.github.com"
] | 55525087+hiranpradeep@users.noreply.github.com |
880299dd33d067783ba797ec71a1c73b24352600 | fb67f2bdaae627cfecca0802664239b285c4a199 | /api/v1/views/cities.py | 2845a560a00af28b18b659e72170800c7ddff151 | [
"LicenseRef-scancode-public-domain"
] | permissive | ManuBedoya/AirBnB_clone_v3 | 541bbd36584ed8b03c2c679ce4771a18d6dc2965 | 79a770b059b9a66e95e36b7998b31004e2429f13 | refs/heads/master | 2023-08-24T23:50:07.920974 | 2021-09-20T17:47:10 | 2021-09-20T17:47:10 | 407,667,339 | 0 | 0 | null | 2021-09-20T23:18:07 | 2021-09-17T20:09:33 | Python | UTF-8 | Python | false | false | 2,650 | py | #!/usr/bin/python3
""" This module creates view for City objects """
from api.v1.views import app_views
from models import storage
from flask import jsonify, abort, request
from models.state import State
from models.city import City
@app_views.route('/states/<state_id>/cities', strict_slashes=False)
def display_citie... | [
"adriana.er98@hotmail.com"
] | adriana.er98@hotmail.com |
2bd27a28d246409a5b24c67b8e913af0c05c7fb8 | a67a987ed078da0a1de2908c8c0e08070dee65b1 | /genice/lattices/Struct55.py | ec04992940ba97dbf33d7c7201fa089e0663363f | [] | no_license | Python3pkg/GenIce | ef1ce7ee2997c10e08dde75ac36050a653cd4fc5 | 1e9458b7bf8e0fd2ad5d0c4f8987cea0ae7ca0b0 | refs/heads/master | 2021-01-21T17:31:51.595858 | 2017-05-21T14:09:32 | 2017-05-21T14:09:32 | 91,962,047 | 0 | 0 | null | 2017-05-21T14:09:28 | 2017-05-21T14:09:28 | null | UTF-8 | Python | false | false | 6,336 | py | """
Data source: Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Frank-Kasper Structures” Acta Crystallographica Section A Foundations of Crystallography 66.Pt 5 (2010): 602–615.
Cage composition:
(12,14,15,16) = (14,4,4,4,)
"""
pairs="""
5 77
135 53
21... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
36337609b3b76fe6dbe417039e389f275608fd31 | fcc01cfc2476e0a88eca1a616285a4664517260a | /utils/plotting.py | 1a75482237267dd4832c75bb4c8008a614a94189 | [
"MIT"
] | permissive | AlessandroStaffolani/reinforcement-learning-openai-gym | 8411883107086b7aa237cfc7e0439bbab7768f6b | 0b918701ab190f22c5973bd798961b389d43a2d1 | refs/heads/master | 2023-01-14T05:19:48.290206 | 2019-10-04T12:46:35 | 2019-10-04T12:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from collections import namedtuple
import torch
EpisodeStats = namedtuple("Stats", ["episode_lengths", "episode_rewards", "episode_epsilon", "episode_alpha"])
def plot_episode_stats(stats, n_episodes, smoothing_window=10, noshow=False, goal... | [
"alestam93@gmail.com"
] | alestam93@gmail.com |
7325633f451eb4099de253832dc888fc40c95c22 | 4a58ba9f8922fcc5a5c17658bb3ac420e2d12a2f | /Ddmall001/jktest.py | 8191c56867623a939e63beddfc9db2b3a7cf63c6 | [] | no_license | xixils520/guest | 92838da49a7087f997eead32da25a810c3edbabf | 177b2415ddcb393c7e7c7c5c5b97b3b5deca73f5 | refs/heads/master | 2021-04-26T22:07:40.134536 | 2018-03-06T05:31:50 | 2018-03-06T05:31:50 | 124,025,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # coding=utf-8
import requests
import json
headers= {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36',
'Content-Type':'application/json;charset=UTF-8'}
login_url='http://192.168.1.101:52400/user/login'
login_data='{"username":"1234567... | [
"xixils520@gmail.com"
] | xixils520@gmail.com |
0af80fed1a7126442b14af7f6a1141a480477074 | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/training/migrations/0.3/post-10-update_course_wkf.py | f69865fe29f835caa11d7778b4ad27f4cf733649 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | __name__ = "Update Course Workflow"
def migrate(cr, v):
cr.execute("UPDATE wkf_instance w SET state = 'active' WHERE res_type = 'training.course' AND EXISTS (SELECT 1 FROM training_course WHERE id = w.res_id AND state_course = 'validated')")
| [
"geerish@omerp.net"
] | geerish@omerp.net |
f484491335cc03a29a5d5869e624a809b2129b33 | 06ef2a332d2d0f4679a3bcd4c1c22b884afc8ef0 | /wafers/docs/conf.py | 7eb4dea27602f2016c34b3bd1f03755bff13a305 | [
"MIT"
] | permissive | anmol101093AIML/mlops_main | 64d5c054cef924ad66cedef17babb03b9017146e | 087be03bb6f651d766924deeee7ee09e7185a194 | refs/heads/main | 2023-08-04T19:32:32.859214 | 2021-09-23T09:36:18 | 2021-09-23T09:36:18 | 409,082,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | # -*- coding: utf-8 -*-
#
# wafers documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a ... | [
"er.anmol.dhankhar93@gmail.com"
] | er.anmol.dhankhar93@gmail.com |
1f5f4d9aafa3c3abb5ad2c92c1f47e4ff5fe4d89 | bfd75153048a243b763614cf01f29f5c43f7e8c9 | /1906101111-柏春宇/day0306/作业1.py | 0d355bdd03882010d791f76d1c732540f475436f | [] | no_license | gschen/sctu-ds-2020 | d2c75c78f620c9246d35df262529aa4258ef5787 | e1fd0226b856537ec653c468c0fbfc46f43980bf | refs/heads/master | 2021-01-01T11:06:06.170475 | 2020-07-16T03:12:13 | 2020-07-16T03:12:13 | 239,245,834 | 17 | 10 | null | 2020-04-18T13:46:24 | 2020-02-09T04:22:05 | Python | UTF-8 | Python | false | false | 157 | py | class PersonInfo():
name='柏春宇'
age=18
sex='男'
def P(self,name,age,sex):
print(name,age,sex)
X=PersonInfo()
print(X.P)
| [
"2785504109qq.com"
] | 2785504109qq.com |
718d9eea88040e361a023abf020c4fc138312f0d | 3e306d0ec56608259e36c9fe28c95ab5bd58147c | /keras/tests/keras_doctest.py | 139432849685fe3ff49519a92016c6bd872d1936 | [
"Apache-2.0"
] | permissive | Alan-love/keras | 8012319eb3f88bfb3806e9df913f62b442701137 | 6c392b5ad96fb47a05019e6dda42d2af1f1ec08e | refs/heads/master | 2023-08-22T17:44:36.217261 | 2022-03-29T23:06:19 | 2022-03-29T23:06:50 | 209,978,278 | 0 | 0 | Apache-2.0 | 2022-03-31T03:09:20 | 2019-09-21T12:05:44 | Python | UTF-8 | Python | false | false | 4,534 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0bf4b60409f8963c2d70cea39cd3c61da4cea456 | 252ba0216ce9e38bc4375faf869e7c91fa153c92 | /Lightwave/materials.py | ad16360206707dd42a0a20e7a20f9204e4eb20df | [] | no_license | kurainooni/Final_Fantasy_VII_Remake | 07c45a330858a41a6bad3f0b3fa915ce9fbf7372 | 5f9fac23bb705a3753a51f62ed80ecb5e36b78ab | refs/heads/master | 2022-04-23T00:39:22.816357 | 2020-04-22T19:03:33 | 2020-04-22T19:03:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,750 | py | #PBR Surface Setup by Ryan Roye
import lwsdk
import os
from tempfile import NamedTemporaryFile
from utils import *
CoordinateList = {
"Color": "-600 -220",
"Alpha": "-1280 -740",
"Normal": "-540 -800",
"Opacity": "-280 -100"
}
UV_count = lwsdk.LWObjectFuncs().numVMaps(lwsdk.LWVMAP_TXUV)
def createMaterial(fi... | [
"noreply@github.com"
] | kurainooni.noreply@github.com |
279ccefd70a9115811b5d371952be5c52f8d5260 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/ldpv6loopbackinterface.py | 084aae0f6e61055ee45471d7538e4d9e4c44f3f6 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 14,034 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
74befc7ccc398c0d5a49d7623ec83e2117e95fb6 | 94b6393ada217c41ee27eb85e0278586076e24af | /upload_media/migrations/0004_music.py | 43482fe8f971d1ac1bc6c217e8bb58adf3e4dc47 | [] | no_license | almubarok/django-media | 305467b96da0bb5cfaeee62b87fd8ee127eccf86 | 9989dc433f7c1efec392b5268235e4129e497a90 | refs/heads/master | 2022-11-24T17:04:03.348725 | 2020-04-08T08:00:18 | 2020-04-08T08:00:18 | 227,626,067 | 0 | 0 | null | 2022-11-22T05:50:17 | 2019-12-12T14:30:58 | Python | UTF-8 | Python | false | false | 582 | py | # Generated by Django 3.0 on 2019-12-12 16:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('upload_media', '0003_video'),
]
operations = [
migrations.CreateModel(
name='Music',
fields=[
('id', m... | [
"arafat@alterra.id"
] | arafat@alterra.id |
6a8033396d71abdc7d3752df82ae435b7241f1f7 | e5cce5ed1a6718e1f2dccc7b50d0a391c856eb64 | /DeleteBook.py | 13a737530c11eaff8512dec5709f947b9f94181b | [] | no_license | dhruv2504/Minor-Project | 6b32039e4957d89dde6c9552ae5fb39be6a63974 | 6b89929c0bcba95a1c84ab4ca3d999882d809087 | refs/heads/main | 2023-01-30T04:02:42.505016 | 2020-12-05T22:35:40 | 2020-12-05T22:35:40 | 318,790,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | from tkinter import *
import PIL
from PIL import ImageTk, Image
from tkinter import messagebox
# import pymysql
# Add your own database name and password here to reflect in the code
import mysql.connector
from mysql.connector import Error
try:
connection = mysql.connector.connect(host="localhost",
... | [
"noreply@github.com"
] | dhruv2504.noreply@github.com |
1e86b553f4146e59a4c536f829f36cbc0ab0f2c4 | 9996e690148176151e694944cce144e865d6c45e | /webapp/news/views.py | 04c2c1a137d3ac16213de36f3ff4da5a1f9f4c5c | [] | no_license | r2d2-lex/flaskapp1 | fc3d53ce1bfca67d91c95b5c38eee2867069829a | 4483d3aca054ea8954c38453c1d4e0fdf52b9f03 | refs/heads/master | 2022-12-10T18:54:42.157389 | 2020-08-17T10:58:48 | 2020-08-17T10:58:48 | 227,061,321 | 0 | 0 | null | 2022-12-08T03:21:12 | 2019-12-10T08:00:44 | Python | UTF-8 | Python | false | false | 1,865 | py | from flask import abort, Blueprint, flash, current_app, render_template, redirect, request, url_for
from flask_login import current_user, login_required
from webapp import db
from webapp.news.forms import CommentForm
from webapp.weather import wether_by_city
from webapp.news.models import Comment, News
from webapp.util... | [
"r2d2-lex@yandex.ru"
] | r2d2-lex@yandex.ru |
c343c3e9b33bc01ae4d7ba6fb1d5b3911a661cbd | 5d2ad50bdf4e25b4b99c089a0589a1188235613e | /loop_practice.py | e410d3eb6b0cef4d38600efecbdda0b91ea015a0 | [] | no_license | Rashine/pythonpractice | 7def4e23ad25adb8c6e643d5e6cf566674b3b31c | 4bb7b405b540f5b07b915d412a19061bb8fa36d4 | refs/heads/master | 2020-04-11T22:25:43.039141 | 2019-06-01T05:45:55 | 2019-06-01T05:45:55 | 162,135,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # x = 0
# for a in range(10):
# x = x + a
# print (x)
# for c in "coooooffffff":
# print(c)
# x = int(input("How many times did you yell?"))
# if x:
# for i in range(0, x):
# print("Clean up your room!")
# for n in range(1,21):
# if n%2 == 1:
# if n == 13:
# print(f"{n}... | [
"w9w5w1w7w3w@gmail.com"
] | w9w5w1w7w3w@gmail.com |
3a8632abdfa8159d10e1ece8ba820c1d36b218a6 | ad850de9c58a629c92f41522880c6e8df16501b6 | /intellidata-sam-app/employees/employeepost/employeepost.py | 195b3b825164376c0cb9acb244d53c724b637b5a | [] | no_license | svjt78/intellidata-sam-app | 0639e3a054d62901a60e66954e9088b89c89cbfb | 9004b41a149df68ad99810b951baac0d1bfcea4a | refs/heads/master | 2022-12-05T10:43:06.678018 | 2020-09-04T05:18:26 | 2020-09-04T05:18:26 | 285,724,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | import boto3
import json
import uuid
import csv
import time
def lambda_handler(event, context):
recordId = str(uuid.uuid4())
# ts = datetime.datetime.now().timestamp()
ts = int(round(time.time() * 1000))
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('intellidataEmployeeTable')
data=json.loads(e... | [
"suvojitdutta@suvojits-mbp.myfiosgateway.com"
] | suvojitdutta@suvojits-mbp.myfiosgateway.com |
012e27e8cf2851391772be85e3be09f3c2510d71 | fbe9dbaff2dfa245546a37f43478fd75f5330928 | /app.py | cf064239ff1a44e554fece3cbeb60ac0bb494eab | [] | no_license | MrLokans/moonreader_editor | ed0eaf988da739e92f79467659c9cf505cd0f3ec | 16123514e850fde58b624f312d6bd829385f1eee | refs/heads/master | 2020-04-14T23:40:55.369510 | 2016-09-14T18:26:37 | 2016-09-14T18:26:37 | 68,024,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | import os
import sys
import logging
from moonreader_tools.handlers import FilesystemDownloader
from PyQt5.QtCore import Qt, QVariant
from PyQt5.QtWidgets import (
QApplication,
QLabel,
QWidget,
QAction,
QFileDialog,
QTextEdit,
QMainWindow,
QTableWidget,
QTableWidgetItem,
QMenu
... | [
"trikster1911@gmail.com"
] | trikster1911@gmail.com |
d1a0d48c5751d3fe5081350e717a512bffb7c337 | e2969ce860cba03add07d3b6412397d337b8b0a1 | /algorithms/sorting/3_sort_students/solution/solution.py | 7d56b3942e0aa44c166ed7ae14f7dac7ebe3c637 | [] | no_license | AshRavi7/Exercises | cfe16ef1d7a248b1fead12e3fb4dd0b26205de07 | 0a2738771e03b36e353cc25edfc7d8b8a0e4b2fe | refs/heads/master | 2022-12-20T08:30:04.104476 | 2020-09-11T15:58:46 | 2020-09-11T15:58:46 | 290,986,365 | 0 | 0 | null | 2020-08-28T07:56:53 | 2020-08-28T07:56:52 | null | UTF-8 | Python | false | false | 186 | py | class Student:
def __init__(self, name=None, avg=None, grade=None):
self.name = name
self.avg = avg
self.grade = grade
def sort_students(slst):
pass
| [
"avelikevitch@gmail.com"
] | avelikevitch@gmail.com |
0e07d871bc76f4c86b6bcfe3db5c70a61ecf2acb | 5317266e4fd836aef20427092d0d734dd0344bb7 | /ScanSsqrtB160_100.py | 038e04209379e6c805e7b1c98abc34e91f6c0746 | [] | no_license | lopezzot/myanalysis | 5c29c6b2aef2a543af8718a1f88e6385dec44114 | 75a708bacb9e660b0505a85275fc68b863ea0f17 | refs/heads/master | 2021-07-01T16:20:26.090382 | 2020-11-07T20:06:47 | 2020-11-07T20:06:47 | 189,423,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,176 | py | #!/usr/bin/env python
#code to show 2d histo of s/sqrt(b)
#to be used with /home/delphesresults/3abg_fcc90_nocut for background samples
#to be used with /home/delphesresults/alpscan for signal samples
#created on 15/5/2019
#from 3a_cutMALPvariables
import sys
import ROOT
import includeme
from array import array
from R... | [
"lorenzo.pezzotti01@gmail.com"
] | lorenzo.pezzotti01@gmail.com |
74998906d71c7dab68fe9ff9b6a07a3e816e084e | f35fa4c446c3b6eee91820eca94bfb3f1eb62e84 | /migrations/versions/c76b0a2ed74e_user_roles.py | 54744d4bd8a3aed4bfad794d43ae4b4669b27efd | [] | no_license | jience/Flask_Web | f8ba44ccebb3f0a984bed819611366c5c2a4334a | a8bcd45cff7a163e1a5ffb9245bc993a02e8b034 | refs/heads/master | 2022-12-10T04:20:29.107311 | 2017-12-08T09:10:37 | 2017-12-08T09:10:37 | 92,914,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | """user_roles
Revision ID: c76b0a2ed74e
Revises: 6748971a9397
Create Date: 2017-11-30 17:43:59.300218
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c76b0a2ed74e'
down_revision = '6748971a9397'
branch_labels = None
depends_on = None
def upgrade():
# ###... | [
"zhangxiaojie@cynovo.com.cn"
] | zhangxiaojie@cynovo.com.cn |
cbeebd70c2d6b12bbebbad2ce9762e7f5c9097fc | a4fa177f7694f6cd55c1440d1146acd48f38a6c9 | /.ycm_extra_conf.py | 452e5f6c949aa4b0fe2bc44c26890bd054df6c80 | [] | no_license | gysevvlad/systemc_labs | c47b9076be149d88424e679cf59987cf0b96138f | 400af5e76a9b872a2835087401807205619c737b | refs/heads/master | 2020-08-01T00:11:45.599820 | 2016-12-09T11:53:26 | 2016-12-09T11:53:26 | 73,587,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | import os
import ycm_core
flags = [
'-std=c++14',
'-I', '/usr/bin/../lib/clang/3.8.0/include',
'-I', '/usr/include',
'-I', '/usr/include/c++/v1',
'-I', './systemc/include',
'-I', '/usr/local/include',
'-DUSE_CLANG_COMPLETER'
]
compilation_database_folder = ''
if os.path.exists( compilatio... | [
"gysevvlad@gmail.com"
] | gysevvlad@gmail.com |
32026ca193a23d8420475f8c2d62152fdd0084db | 4841bce0a21e92fe7de7fde0cdd94b4b881e07c1 | /source/binarytree.py | e2b3194771263f8abac69454bed2f0d2b18c31ac | [] | no_license | ajboxjr/CS-3-Data-Structures | e7872fccca16020b50b5650c7cad794c573eea21 | 234a069a935363fe1d48b3a2b22b98b0bbb36a92 | refs/heads/master | 2021-09-27T14:53:27.096150 | 2018-02-25T05:56:57 | 2018-02-25T05:56:57 | 115,154,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,079 | py |
#!python
class BinaryTreeNode(object):
def __init__(self, data):
"""Initialize this binary tree node with the given data."""
self.data = data
self.left = None
self.right = None
def __repr__(self):
"""Return a string representation of this binary tree node."""
... | [
"ajboxjr@gmail.com"
] | ajboxjr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.