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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
383ab46399c4da95cbbc9c2295877544ed3388af | 6d8829528bcd7c77cac5ad5f068892e59b8d4b3e | /mainsite/admin.py | 0e5aa49d92b70c684a7c6712d69c9f3bd8ced7f9 | [] | no_license | julietxiao/StockBlog | c59bc32fb65807d76d259d430eaabbccd87bf54d | 1c96ed7d66fbe4c958efeab2ac04d6e26b04a0a1 | refs/heads/master | 2022-12-11T14:24:55.369247 | 2020-08-12T16:30:23 | 2020-08-12T16:30:23 | 162,087,411 | 2 | 1 | null | 2022-12-08T01:20:35 | 2018-12-17T06:53:21 | Python | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from .models import Stock
# from .models import Stock_change
class StockAdmin(admin.ModelAdmin):
list_display = ('name', 'code', 'industry', 'area', 'price_change', 'p_change','pe','gpr',... | [
"julietxiao99@qq.com"
] | julietxiao99@qq.com |
107874511c5b845e873102ab554219fccc15903d | 9c263c3c4075a9eb7ddc6044efa6923bedce285c | /src/V-detector/deployment phase2 V_detectors implementation/Vdetector.py | 76640b130efbc0cd82d847f691595e6461ff853c | [
"MIT"
] | permissive | minzhekang/NSA-VdetectorPython | c783bf3b16dd47d4cbf38c7ff7840044b0db6648 | ff7f692be44ae5ca9c85fed1da1b8d75c60ec662 | refs/heads/master | 2020-06-18T13:46:26.179253 | 2019-08-07T08:20:32 | 2019-08-07T08:20:32 | 196,322,358 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | import pandas as pd
import numpy as np
import random
from tqdm import tqdm
pd.set_option('display.expand_frame_repr', False)
file = "Training.csv"
data = pd.read_csv(file)
NormAttList = data["Normal/Attack"]
data = data.drop(["Normal/Attack"], axis= 1) # only the numerical variables
Nself = len(data.values) # gives ... | [
"36184648+axois@users.noreply.github.com"
] | 36184648+axois@users.noreply.github.com |
642c7ba9052302594420824eb4b4203a42de46b6 | 81894c54ca2e964394083b14824a639d71333d1f | /eth_tool/chain.py | e6c137d29d19770c839931ade53a9a5283a769df | [] | no_license | l3n641/eth_tool | 958694204bbcd9814350222fcfc0f921604c3d34 | e05a71fcbce3b113d3eaff4f28e4d91e465f4eee | refs/heads/master | 2022-12-12T11:05:42.948188 | 2018-10-21T11:29:13 | 2018-10-21T11:29:13 | 154,000,862 | 0 | 0 | null | 2022-12-08T01:15:41 | 2018-10-21T11:27:20 | Python | UTF-8 | Python | false | false | 2,187 | py | import os
from eth_tool import web3_connector
from eth_tool.block import Block
class Chain:
def get_address_by_path(self, path="./"):
"""
根据文件路径获取地址
:param path:
:return:
"""
if not os.path.exists(path):
return []
address_file = [file_name for f... | [
"371522155@qq.com"
] | 371522155@qq.com |
ecc798e7483e7c569341b1c6e8f1e83ac14af490 | fb03272d54495fbc3735129e627fbca540579ca4 | /libpysat/derived/m3/__init__.py | 8a4b8e8b26a9d33b3157a497d27bc337124a8548 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | Kelvinrr/PySAT | f7953ebddeeec7a46274deb7d037ed2976c2c12a | ef0a197df33b33ead0c872ac1069bf9622520503 | refs/heads/master | 2021-09-20T12:34:50.138609 | 2018-07-26T14:19:16 | 2018-07-26T14:19:16 | 114,694,397 | 0 | 0 | null | 2017-12-18T22:34:26 | 2017-12-18T22:34:25 | null | UTF-8 | Python | false | false | 46 | py | from . import pipe, development, supplemental
| [
"jlaura@usgs.gov"
] | jlaura@usgs.gov |
f9106238b4ff20bec1e7b0835e8bd33b0db2acf4 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/uberdog/DistributedDataStoreManagerUD.py | a96c02427ed6514633f660973bad639449564c3f | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectUD import DistributedObjectUD
class DistributedDataStoreManagerUD(DistributedObjectUD):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedDataStoreManagerUD')
def startStore(self, todo0):
pass
... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
5a573cd458380500dee46da0c99d7b409b37357f | ae2636686480b01eabf059fdeeef2f40ebd85633 | /awsutils/iamRolesV1.py | de03a4c33177381294353f7391529e62a4ab27bb | [] | no_license | munireddy/setupInstructions | 3f228c5651488efa59405f1269b4705915dc9a4e | 5710af90ce0e18a04951c3489e5ef5ddcec3dec0 | refs/heads/master | 2022-07-04T06:21:01.632450 | 2022-06-07T21:30:44 | 2022-06-07T21:30:44 | 211,887,816 | 0 | 2 | null | 2020-10-24T21:34:10 | 2019-09-30T15:07:23 | Python | UTF-8 | Python | false | false | 3,547 | py | import boto3
import csv
#client = boto3.client('iam',aws_access_key_id="XXXX",aws_secret_access_key="YYY")
client = boto3.client('iam')
users = client.list_users()
user_list = []
ofh= open("userlist.csv", "w")
fieldnames = ['userName', 'Groups', 'Policies','isMFADeviceConfigured']
writer = csv.DictWriter(ofh, fieldnam... | [
"noreply@github.com"
] | noreply@github.com |
f73c69327f9a0808a5342429f537d9f3327594c9 | cec7315a6e86aece2b1fbc5c471aafca3288bfc2 | /backend/manage.py | d8e871a95646132dff05fabdcd33238d8bf93a36 | [] | no_license | crowdbotics-apps/broken-art-29088 | c783b82a52483e5bec52893bdae01c1849095e44 | b240934504f1aba03821ff07b336298fb98e6ca6 | refs/heads/master | 2023-06-25T17:31:47.595217 | 2021-07-23T21:38:46 | 2021-07-23T21:38:46 | 388,932,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'broken_art_29088.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0c65b40ef58177a2d7d43bc3c5ca39893a55f433 | 30b387d7e32f75507fa4247bae944371c3f9bf3f | /python/rocrand/rocrand/rocrand.py | 59a2f4f3f016a2730d4b5dccb8a04dd4164c35e3 | [
"GPL-3.0-only",
"MIT"
] | permissive | fangbaohui/rocRAND | 961ceb1f6e9a49afaf2ccce1948f7e31451a0f5e | 32eb20820fad35bbf8d73830c93521b9192051b2 | refs/heads/master | 2022-07-06T19:58:31.881736 | 2020-05-11T21:53:32 | 2020-05-11T21:53:32 | 263,795,899 | 1 | 0 | MIT | 2020-05-14T02:33:31 | 2020-05-14T02:33:30 | null | UTF-8 | Python | false | false | 15,131 | py | # Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
#
# 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,... | [
"anton@streamcomputing.eu"
] | anton@streamcomputing.eu |
3340ab19cd6e27d561259c17962122f7ca5afbb5 | baed2c2da1f776c0968d3cacd2fa45bdbe5482d6 | /ZOS_API_scripts/LAT_analysis/focal_plane_strehl_ratios_CD.py | 4531fc83e94b0eca7735eed469b8422d1bd1be10 | [] | no_license | patogallardo/zemax_tools | 5ae2fe9a1e8b032684b8cf57457ee4f3239d9141 | 90d309c2f96c94469963eb905844d76fa2137bf9 | refs/heads/master | 2023-01-08T22:52:16.865852 | 2022-12-20T21:36:28 | 2022-12-20T21:36:28 | 234,634,525 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,881 | py | import pandas as pd
import numpy as np
import glob
import matplotlib.pyplot as plt
import scipy.interpolate as interp
from scipy import stats
import os
from mpl_toolkits.axes_grid1 import make_axes_locatable
import sys
assert len(sys.argv) == 2
plt.rcParams.update({'font.size': 14})
s = pd.read_hdf('ray_db.hdf', 'sys... | [
"26889221+patogallardo@users.noreply.github.com"
] | 26889221+patogallardo@users.noreply.github.com |
0950b6d3e637271c5539b01d2a7dab18a48c6552 | eab6473e49ce562e2b2c605a8c7f0ed7f4acc3f9 | /5_while2.py | 126d23ecddb7df2e6ec89d38aff867b0505c5a00 | [] | no_license | luzanov99/lesson2 | b964feb61169ed7edd0d1f152e03361809fc162e | c4a2d708d9a21d560231ace9f56db98c595f5115 | refs/heads/main | 2023-01-20T14:49:11.750124 | 2020-11-27T09:26:19 | 2020-11-27T09:26:19 | 316,456,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | """
Домашнее задание №1
Цикл while: ask_user со словарём
* Создайте словарь типа "вопрос": "ответ", например:
{"Как дела": "Хорошо!", "Что делаешь?": "Программирую"} и так далее
* Напишите функцию ask_user() которая с помощью функции input()
просит пользователя ввести вопрос, а затем, если вопрос есть
в словар... | [
"luzanov.zena@gmail.com"
] | luzanov.zena@gmail.com |
9eb1040ea3b957dc47b47e6af63fd0be78c5c578 | ecd8c17c099b7ee1e365d147562aeb0d3a794b46 | /venv/Lib/site-packages/lenses/optics/true_lenses.py | d789b241f2f1372f4cd9056c26fad1837830a954 | [] | no_license | hikigox/botAmino | 59ffe85b484272404db49c9d93efbff27cd2550c | f6957041975d300b39bf28812d9853f47bf48edf | refs/heads/master | 2023-02-17T23:29:50.466976 | 2021-01-23T03:35:12 | 2021-01-23T03:35:12 | 332,008,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,640 | py | from typing import Any
from .. import hooks
from .. import typeclass
from .base import Lens
class ContainsLens(Lens):
'''A lens that takes an item and focuses a bool based on whether
the state contains that item. It's most useful when used with
sets, but it can be used with other collections like lists ... | [
"jorgealejandroro@gmail.com"
] | jorgealejandroro@gmail.com |
88a05a7632582fb02d5f9e14c0c74ef4d1f6052d | 2df26b46924dfb691b6acdaca5bad03b193dfae8 | /main_page_logic.py | f23d61103d87c13621984738bb544410bce6f3a2 | [] | no_license | K123AsJ0k1/StoryApp | 708240ac2cd15af26012c75c9e476d598a685448 | d4f98a10ef781e88ba27ea06537b47c21bd7dbcc | refs/heads/main | 2023-04-23T00:23:00.129930 | 2021-05-09T20:53:01 | 2021-05-09T20:53:01 | 349,759,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from app import app
from flask import redirect, render_template, request, session
from users_logic import *
from main_page_logic import *
from profile_logic import *
from workbench_logic import *
from view_logic import *
from comments_logic import *
from query_logic import *
from administration_logic import *
def mai... | [
"niila.siilasjoki@gmail.com"
] | niila.siilasjoki@gmail.com |
322a6d1f7948d54415674bae1ded0b3b654f09e4 | 4248f299425ed047eb26484666bedaea17166911 | /tonado_ihome/handlers/VerifyCode.py | 15320e38de182cb4aff96aa3f560de138d17acca | [] | no_license | ningCherry/tonado_ihome | c2cd7649e3447ea9d6bfe47ff55d19811b331bda | dad5cd57d191fc7f8d81db22e4e084e14d4b8fe4 | refs/heads/master | 2022-07-01T03:34:43.871938 | 2020-05-11T11:56:43 | 2020-05-11T11:56:43 | 263,028,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | from .BaseHandler import BaseHandler
import logging
import io
import re
import random
from utils.captcha.captcha import create_validate_code
from constants import *
from utils.response_code import RET
from utils.yuntongxun.SendTemplateSMS import ccp
class PicCodeHandler(BaseHandler):
# #验证图形验证码
# def get(sel... | [
"834121195@qq.com"
] | 834121195@qq.com |
0a4b99a063f6e476bfab0df5ae0053215d637069 | 09f205f74070c53e694d52f0bc72e203a2fd224f | /docs_src/response_directly/tutorial001.py | 89c5968b143beda2f4c2bed5a5d5e349f9bb49f0 | [
"MIT"
] | permissive | RunningIkkyu/fastapi | 53c02fed44b9e30e8617c94ec902be7ca579e42b | 05736c40d3fbb008fd9cdbe1adb8fcef7676e0c6 | refs/heads/master | 2021-05-18T07:58:33.640797 | 2020-05-21T01:36:47 | 2020-05-21T01:36:47 | 251,189,158 | 2 | 0 | MIT | 2020-05-21T01:36:49 | 2020-03-30T03:13:43 | Python | UTF-8 | Python | false | false | 467 | py | from datetime import datetime
from fastapi import FastAPI
from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
from pydantic import BaseModel
class Item(BaseModel):
title: str
timestamp: datetime
description: str = None
app = FastAPI()
@app.put("/items/{id}")
def u... | [
"noreply@github.com"
] | noreply@github.com |
8712e858b64de06787ee9bb5d2e998e6682efc82 | 8021b3c09be3b0345ed1dac26073353b4226e8dd | /scripts/shashlik-run | 1962c58e4490f2715e545ddc410100ff512cc783 | [] | no_license | W3SS/shashlik-runtime-env | 510e7fe289019018eb81b996e29b27e1e2f2233a | ee103dc1955fe29aa05b9216c03d76f60c375bff | refs/heads/master | 2020-12-01T13:05:11.820420 | 2016-03-02T11:30:28 | 2016-03-02T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,327 | #!/usr/bin/env python3
import sys
import os
import subprocess
import argparse
from time import sleep
import socket
import threading
import socketserver
import http.server
from urllib import parse
PORT=60057
#Temporary prototype to launch the emulator and start the relevant app
#emulator is launched, and the icon is ... | [
"kde@davidedmundson.co.uk"
] | kde@davidedmundson.co.uk | |
c7e3482178a2932cfd75e3a25effaf3b4d35cca1 | 3629a82a0da2fa4d61b44ee70a52be57a5a72def | /validate_2.py | 6a2115cd4c228c449abd431510df48680b9c9917 | [] | no_license | lippinj/dl-course-project | 28c376f8c4e4d5b2df92178e80105c9715ad3a97 | 3e1a07ec63127d0f42a04869bee773ee327de9d8 | refs/heads/master | 2020-05-24T16:06:05.988412 | 2019-05-18T20:25:02 | 2019-05-18T20:25:02 | 187,348,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,495 | py | import sys
import time
import numpy as np
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.nn.functional as F
# Calculates the validation error.
#
# The following file(s) are read:
# mean_ratings_[#].npy
# validate_[#].npy
# naive_2_me_[#].p... | [
"joonas.lipping@aalto.fi"
] | joonas.lipping@aalto.fi |
48d878bda4745416936c1effc119d9c44bbbae23 | 8bee29f4857fe2223140558aebf0ce1731c47aa5 | /wk5_initals.py | ae71e1e9c9e9d4663f9d14404847a78e2bf28be1 | [] | no_license | jsweeney3937/PRG105 | 65c50d9812c56ddf844be2f34eee04440a9c740c | 69c0ee263984565f108a0981910617ac458e1fa9 | refs/heads/master | 2020-06-16T15:29:19.901722 | 2017-07-10T23:06:16 | 2017-07-10T23:06:16 | 94,151,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py |
def get_user_input():
# gets users name
user_name = input("Enter your first, middle, and last name. ")
# returns users name
return user_name
def main():
# sets name to what is returned from function get_user_input
name = get_user_input()
# splits the string dependant on space... | [
"noreply@github.com"
] | noreply@github.com |
712a3dd38ff9d895b451988c8fb07dbf1e4f33b6 | 5e20fd3fca31b19c12b05d6045577ab79c3f2df7 | /course_3/helper-concierge/api/cassandra_api/api.py | 7528ca6a4d0279bb52dbfc92e3aa73d75c87321f | [] | no_license | yashin-alexander/itmo | 0fa690572a732e53d4ad70c683b5e9c62ed64363 | f4cbbb13088235ee488848c9e266a077fd8dd1e4 | refs/heads/master | 2021-07-07T14:28:35.874269 | 2019-01-31T17:08:55 | 2019-01-31T17:08:55 | 133,807,262 | 3 | 2 | null | 2018-10-02T19:55:10 | 2018-05-17T12:02:18 | Java | UTF-8 | Python | false | false | 3,606 | py | import json
from flask import request, Response
from functools import wraps
from cassandra.cluster import Cluster
from . import constants
def catcher(f):
@wraps(f)
def decorated(*args, **kwargs):
try:
return f(*args, **kwargs)
except Exception as err:
print(err)
... | [
"alexandr.yashin@emlid.com"
] | alexandr.yashin@emlid.com |
d2322af65b63f06a06a46e66bbc33aa1063a2d35 | 01d69def07699396329459869fa9e26d1d85afec | /lib/deadline_utils.py | ab22243196e4532a21942717682c85492f3b6840 | [] | no_license | scottwillman/dmx | a2b16cc8007f94187de6eb8077b056d7aaa32e19 | f875b0816190736ef240adc7088ec77dd1336005 | refs/heads/master | 2021-01-15T15:43:44.328867 | 2017-06-23T16:35:42 | 2017-06-23T16:35:48 | 54,001,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | import os, sys
def getRenderChunkSize(in_frame, out_frame, cores_available=16):
import math
dur = out_frame - in_frame + 1
chunks = math.ceil(dur/float(cores_available))
return int(chunks)
def deadline_buildJobInfoFile(frame_start, frame_end, job_name, chunk_size, job_files_dir, priority=90):
d... | [
"scottwillman@gmail.com"
] | scottwillman@gmail.com |
5b4990e2ccc7f88d349fcae58a780514b555a0dd | 9a2c9588a170aa8e4311d98aa5ade728ec8c9883 | /setup.py | 3ca07062459e7904de601e7d0cb9ab1968629549 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gabrielegiammatteo/build_manpage | df5a681c981eb7027ad800e3deb1d2182e99daf1 | 516ca12512979ab8e1a45f24e502a9cd1331f284 | refs/heads/master | 2022-01-17T20:03:19.926844 | 2017-07-10T15:34:19 | 2017-07-10T15:34:19 | 96,616,485 | 1 | 1 | Apache-2.0 | 2022-01-12T01:23:14 | 2017-07-08T12:05:00 | Python | UTF-8 | Python | false | false | 319 | py | from distutils.core import setup
setup(
name='argparse-manpage',
version='0.0.1',
url='https://github.com/gabrielegiammatteo/build_manpage',
license='Apache 2.0',
py_modules = ['build_manpage'],
author='Gabriele Giammatteo',
author_email='gabriele.giammatteo@eng.it',
description='',
)
| [
"gabriele.giammatteo@eng.it"
] | gabriele.giammatteo@eng.it |
4fb9a7439f7d5c3acfa37afad53991275507b5a5 | 95c027e7302751b335b33d287e0efac7483edfc3 | /etc/inflearn/7.DFS,BFS/7.BFS_미로의 최단거리 통로.py | 39935a7a7ee83b31577ff48de168bdb9840bd3bb | [] | no_license | kimchaelin13/Algorithm | 01bd4bcb24c58d5d82714e60272d5af91d2d9ce8 | 53f7f3cff5a141cf705af3c9f31cdb9ae997caff | refs/heads/master | 2023-02-03T08:58:26.660299 | 2020-12-20T17:01:16 | 2020-12-20T17:01:16 | 296,996,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import sys
from collections import deque
sys.stdin = open("input.txt", "r")
dx=[-1,0,1,0]
dy=[0,1,0,-1]
board=[list(map(int,input().split())) for _ in range(7)]
dis=[[0]*7 for _ in range(7)] #(7,7)
Q=deque()
Q.append((0,0)) #시작점
#한번 방문한 곳은 다시 방문못하게 벽이되도록!
# 1으로 만들어버리면 벽이되는 효과, 체크배열대신 이렇게 쓰자
board[0][0] = 1
while Q: #... | [
"kimchaelin13@gamil.com"
] | kimchaelin13@gamil.com |
a319937bbf4b1cf641a71113dc8eb6e3b886bf96 | 20880b1cbe1d1817726a9a063bf1821c9563300e | /light_transform/mm.py | 366ba0bd8b611b12f853cc973a50f7c6ea9d3172 | [] | no_license | zqcrafts/tools | de8072c9184bf8f0dbd309d126a54685c339e9f0 | a624f52fe7f11f5c53c247a07b7d0918ecccefcb | refs/heads/main | 2023-03-27T09:06:36.738504 | 2021-03-28T07:28:52 | 2021-03-28T07:28:52 | 352,273,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import cv2
import numpy as np
def contrast_demo(img1, c, b): # 亮度就是每个像素所有通道都加上b
rows, cols, channel = img1.shape
blank = np.zeros([rows, cols, channel], img1.dtype) # np.zeros(img1.shape, dtype=uint8)
dst = cv2.addWeighted(img1, c, blank, 0, b)
cv2.imshow("con_bri_demo", dst)
img1 = cv2.imread("E:... | [
"598768203@qq.com"
] | 598768203@qq.com |
e4f668c29f8509034aa848c7bc5ab56a68eb64c4 | ca0e761b2948b2bd93d46e5bab610901f4a9936c | /data/convert_to_json_file.py | 6e7ef5a2f0f1f046e2029916e023b0653ab42ed7 | [
"MIT"
] | permissive | dojinkimm/go-krx | 7f122321f69a119594de1ee184be57eeb4f148f7 | b565696a7c13427f3320c6c43a529638ea06682e | refs/heads/main | 2023-03-11T22:06:00.291164 | 2021-02-28T13:29:51 | 2021-02-28T13:29:51 | 300,895,170 | 7 | 2 | null | 2021-02-23T12:34:18 | 2020-10-03T14:09:40 | Go | UTF-8 | Python | false | false | 1,695 | py | import json
import pandas as pd
dfstockcode = pd.read_html(
"http://kind.krx.co.kr/corpgeneral/corpList.do?method=download", header=0
)[0]
stock_information = list()
for (
i,
(
name,
symbol,
sector,
industry,
listing_date,
settlement_month,
represen... | [
"dojinkim119@gmail.com"
] | dojinkim119@gmail.com |
4dd8d2e36e422541e87ac8beb1e2bb31a2cfe4b2 | 7dd412d672594d00ddd59a609ac704ee1d0c6833 | /learn/python_fpnp/udp/tcp_udp_server.py | 4796b7d360ae708bd142854f769d56ec2a0b66bd | [] | no_license | liyustar/starsnip | 34689dc931e0cac8884ad566362841ad31da0a8a | ac53fdf1cea3681116c24ffd62fa0d58ae778361 | refs/heads/master | 2016-09-06T09:09:53.288371 | 2014-04-16T12:59:49 | 2014-04-16T12:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py |
from threading import *
from socket import *
import os
UDPSERVENABLE = True
TCPSERVENABLE = True
BUFSIZE = 10240
PORT = 8888
ADDR = ('', PORT)
class UdpServThread(Thread):
def run(self):
sock = socket(AF_INET, SOCK_DGRAM)
sock.bind(ADDR)
while True:
data, addr = sock.recvfrom(BUFSIZE)
... | [
"liyustar@gmail.com"
] | liyustar@gmail.com |
2bc2d9a96d32d718cd7212819c018fb6c1d25567 | 5cc4a73d6fb144d72e74b07a10b60fc36bfe50ec | /shops/migrations/0002_auto_20190330_1916.py | df99c08c2f3e516d78ab25dd75133d1b5afcbeba | [] | no_license | pedrofolch/digitalsoil | 79d9497dcbb54df3c7df64f9da35d71d592fe580 | 7b6d1ffd34e991cf87c91342e5336a97fa1cf59b | refs/heads/master | 2022-12-11T00:47:01.728729 | 2019-04-11T03:34:12 | 2019-04-11T03:34:12 | 120,937,159 | 0 | 0 | null | 2022-12-08T04:58:09 | 2018-02-09T17:49:10 | CSS | UTF-8 | Python | false | false | 659 | py | # Generated by Django 2.1.5 on 2019-03-31 02:16
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shops', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='elevation',
... | [
"pedro.folch@gmail.com"
] | pedro.folch@gmail.com |
7959a07f34b2edbdc85fcc91b921c6cc0277f220 | a8b7a01d0a67e15e490bf44338d0d1ac352ba913 | /hw/1/hw_2.py | e72b323d16b06ac843aee9e2cd5c106ffcff5862 | [] | no_license | logika03/Python_EC | 46c1ae913424eb2349cb5c712d7bbbcbe1c0d0a3 | 51da26a8b2aaf3d979a61589696240d0533c8f99 | refs/heads/master | 2022-12-19T07:45:00.704160 | 2020-09-25T19:35:42 | 2020-09-25T19:35:42 | 298,662,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | import sys
def fv(names, name):
start_name, finish_name = separete_names(names)
letters_with_numbers = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5,'f': 6,'g': 7,'h': 8,'i': 9,'j': 10,'k': 11,'l': 12,'m': 13,'n': 14,
'o': 15,'p': 16,'q': 17,'r': 18,'s': 19,'t': 20,'u': 21,'v': 22,'w': 23,'x': 24,'y'... | [
"65672195+logika03@users.noreply.github.com"
] | 65672195+logika03@users.noreply.github.com |
1479a8bf420e0a09485ee8af5c9bd4532b063ea6 | 6a1bf45def872d1e46957017c8215afdaa3902d4 | /app/views.py | 4da6c57e887e1d0d51baa1a4708dc397264e6c51 | [] | no_license | radoslav/brother_ql_print_label | 7d72b84458674bf3d0e0a4deab62499c326e3fea | 9a5c21477280b0d45e0835cb98afc505c7838579 | refs/heads/master | 2023-03-25T06:53:08.379068 | 2020-05-18T21:14:48 | 2020-05-18T21:14:48 | 347,132,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | from flask import render_template, request, redirect
from rq.registry import FailedJobRegistry
from app import app
from app import q
from app.helpers.helper_config import yaml_to_printer
from app.helpers.helper_image import create_imgs_from_labels
from app.helpers.helper_json import jsonToLabels
from app.helpers.helpe... | [
"radoslaw.brzozowski@gmail.com"
] | radoslaw.brzozowski@gmail.com |
d0805939216851eed9bad52fae5dabfb53dc7d22 | 75d47fe8be39983de208be9f8a9b63039c880c69 | /utils.py | 6f464fcdb98e5dba61fdbaa594de41cf990f7423 | [
"MIT"
] | permissive | zkangkang0/LPN | 4b24e30162482e3592e84688b7f911dd42289df4 | 8095d59c0df889ccd05a7268288e83e842b10fac | refs/heads/main | 2023-04-16T07:09:28.648438 | 2021-05-01T09:44:03 | 2021-05-01T09:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,184 | py | import os
import torch
import yaml
import torch.nn as nn
import parser
from model import ft_net, two_view_net, three_view_net
def make_weights_for_balanced_classes(images, nclasses):
count = [0] * nclasses
for item in images:
count[item[1]] += 1 # count the image number in every class
weight_per_cl... | [
"744914445@qq.com"
] | 744914445@qq.com |
011ea3f0b0343be617c412613dba74ba04b4e3c4 | 1b7c9d7824a9c8f87acd5ea4f0974fbf6ac9011a | /utilities/utils.py | 0c513e930742b2047131dc76038c5f8b78ea5df3 | [] | no_license | stivenlopezg/BostonSageMaker | 993bcd725c85407cf5a67db6fb699a7cc2c2f29f | 80f2758c064380775f179715c4a29cad9bd09c20 | refs/heads/master | 2023-06-26T02:02:36.899920 | 2021-07-01T18:26:35 | 2021-07-01T18:26:35 | 382,104,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | import os
import xgboost
import pandas as pd
def download_artifact(s3_path: str, localpath: str):
"""
:param s3_path:
:param localpath:
:return:
"""
return os.system(command=f"aws s3 cp {s3_path} {localpath}")
def decompress_artifact(localpath: str):
"""
:param localpath:
:retu... | [
"Stiven.lopez2"
] | Stiven.lopez2 |
614a3115667aa3206cf5124a4235719997c02771 | c5633afc5dc73547c729b5dcbd9f295f6e58a3b4 | /FinancialAnalytics/AssistedVariableCreation.py | 6b6c4bde07ccf2e12aa07740c86c3425641c9a52 | [] | no_license | nareshshah139/IE-Group-D-Term3 | fc2cda1b1ebcd721aa482afe46c5d83b998969a1 | afd736367e8e396f0f12c2742499fc4f34f19dc9 | refs/heads/master | 2021-01-21T19:47:25.989069 | 2017-02-02T06:04:16 | 2017-02-02T06:04:16 | 55,095,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | import pandas as pd
import itertools
def load_training(dataset):
training = pd.read_csv(dataset,sep=";", decimal=".", thousands =",")
return training
def load_test(dataset):
test = pd.read_csv(dataset)
return test
def Variable_create(dataset):
training = load_training(dataset)
print(list(tr... | [
"noreply@github.com"
] | noreply@github.com |
febdf425c24b86d9f18a967a7d6da3f814fa76a6 | ecc09674541b5a715e313eae8d1bd2a1b15aae4f | /venv/Scripts/pip-script.py | c4c0f1a1023cb8cebe1d5f2bfd5b68550fa241f9 | [] | no_license | 282787906/CheckFileType | 2ee3a89645946f9abe4bcf6a8a40b9492d6eee41 | 04f0531c044c6ed6dd676ca6e96251c14b8d5dd5 | refs/heads/master | 2020-08-30T02:23:44.951002 | 2019-10-29T08:07:29 | 2019-10-29T08:07:29 | 218,234,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!E:\lqg\Workspace\python\CheckFileType\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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]... | [
"282787906@qq.com"
] | 282787906@qq.com |
a27ffb478d2e67e0421e6bd0ec93873bf9393a62 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/lib2to3/tests/data/crlf.py | ae969da2ed9f77889127906baddd4a6ef5472fd3 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 127 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d910ad886333abf3664a4fb4290d3b81307a16c6d9ca14356b3644a9aae6e714
size 50
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
7c691685311f964776bd731d24ea73ab2268ea4a | a6719f4815ff41d3a1f09e9a63a64c4582d03702 | /file_handling/read_file_demo.py | b131427b8bc801751761bb301ff7f1a6d3fecacc | [
"MIT"
] | permissive | thanh-vt/python-basic-programming | 8136007b8435dae6339ae33015fe536e21b19d1d | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | refs/heads/main | 2023-01-30T12:57:36.819687 | 2020-12-13T17:27:05 | 2020-12-13T17:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | f = open('demo_file.txt', 'r')
print(f.read())
# read only part of a file (first 5 characters)
f = open('demo_file.txt', 'r')
print(f.read(5))
| [
"thanhvt@vissoft.vn"
] | thanhvt@vissoft.vn |
0d365ff68bf6e46ed57dda06807614bc240b8a70 | 9cb1a903cd779910bd3a23be35ba3b3406deacab | /main.py | 2964f7ee5f3abb94e46f2a3217b90e7553b46cec | [] | no_license | F-ridge/realtime_sentiment | 2f36c0629d2bbb26bb9f703bb0b69d332e50bf80 | 04f2bca76ba74063a28d61a7221180ef75b3fed3 | refs/heads/master | 2022-11-13T04:23:49.063856 | 2020-07-11T07:59:02 | 2020-07-11T07:59:02 | 262,238,751 | 0 | 2 | null | 2020-06-11T07:43:32 | 2020-05-08T05:52:01 | Python | UTF-8 | Python | false | false | 2,331 | py | import time
import os
import sys
sys.path.append(os.getcwd()) #カレントディレクトリがrealtime_sentimentの前提
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import json
from models.src.rnn.data.dataset_readers.reader import TwiReader
from models.src.rnn.model.model import RnnClassifier
from allennlp.predictors impo... | [
"fujino.junpei@unipro.co.jp"
] | fujino.junpei@unipro.co.jp |
e49fdf5c4abe3c76af6016f2d03578e143e30192 | 82572927501820811070bffdb3aa4dcbc8c2718b | /users/migrations/0001_initial.py | 8fdd1278362f2588f18570126df9fb7821c731a6 | [] | no_license | solomon-lah/market-hub | d6accb6ba66e8ec4c19808bd0eabe42b72ea5868 | bd1b5d95446e57e9ca6bc57d845de4c51e310137 | refs/heads/master | 2022-11-05T16:05:41.833279 | 2020-06-20T12:57:49 | 2020-06-20T12:57:49 | 273,704,906 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | # Generated by Django 3.0.5 on 2020-04-25 12:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='itemsTable',
fields=[
('id', models.AutoFie... | [
"solomonodediran@gmail.com"
] | solomonodediran@gmail.com |
5ab318537552be6e8e382dc388e95e4372a696ff | bba1ef5990147b8caad0e65c5886b3cb265a9362 | /ntnn/commons/nl.py | 9572c2116b076b6a963f4cfb8f352fb912539b1b | [] | no_license | milysun/ntrust-ntnn | 05fe177dd9a8a7f53c815c6d14be9417397f8075 | ffd3bc33f75d63234a32ce66cc995da3b402a3de | refs/heads/master | 2020-05-19T19:31:56.352695 | 2018-12-01T19:10:52 | 2018-12-02T14:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | import re
import math
from ntnn.utils import arr_from
CHO, JUNG, JONG = 19, 21, 28
UNK = '\u00e0' # unknown chars. should be lowercase
ASCII = range(0x20, 0x7e+1)
HANGUL = range(0xac00, 0xd7a3+1)
SYMBOL = range(0x2000, 0x206f+1)
SYMBOL2 = range(0x318d, 0x318d+1)
PAD_ID = 0
UNK_ID = PAD_ID + 1
ASCII_ID = UNK_ID + 1
... | [
"somewehr@gmail.com"
] | somewehr@gmail.com |
ccd378de1b53378a3c870b312e33b6acad65dcc7 | 8928acc2ef95bdc3d0ef5b2e9ed35fc2c88b18cb | /lab2/Lab2/Q5.py | 246577157b9dda579ccf2417da15165c5e1f5028 | [] | no_license | coloriordanCIT/pythonlabs | e1d3eb82f3b3aa693eb6ecaa90013caa094fe881 | 248b7784750dd46bd64c121e6cf037d82e555666 | refs/heads/master | 2020-03-30T07:49:19.215153 | 2018-10-01T19:14:56 | 2018-10-01T19:14:56 | 150,968,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | '''
Created on 01 Oct 2018
@author: colinoriordan
Application that will create a list and will populate it with the first 40 Fibonacci numbers.
The program will then ask the user to enter an integer value between 1 and 40 to indicate
which number in the Fibonacci series they would like to see
'''
#main function of t... | [
"colinoriordan@192.168.1.9"
] | colinoriordan@192.168.1.9 |
dd289bbe11d653c04e5f33bf697ff022530a0ef8 | b7eb8279ebe2f525d27849d6ca24cc7270d30433 | /processing/b2_demultiplex_stats.py | c941dc97629b4495d6d94f77ebdff996cd4bb1a9 | [] | no_license | maxwshen/prime-peptide | d0da277521537c6e09dfeca4afbe3297893ed61b | d72244e85683583c812d3bd106b6874da0a17b80 | refs/heads/main | 2023-04-07T19:07:03.371146 | 2021-04-09T20:36:07 | 2021-04-09T20:36:07 | 356,391,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | #
from __future__ import division
import _config
import sys, os, fnmatch, datetime, subprocess
sys.path.append('/home/unix/maxwshen/')
import numpy as np
from collections import defaultdict
from mylib import util
import pandas as pd
# Default params
inp_dir = _config.OUT_PLACE + 'b_demultiplex/'
NAME = ut... | [
"maxwshen@gmail.com"
] | maxwshen@gmail.com |
7440a80c7ca179e7b8ed050d6c5bec86b8f6c673 | 2f1b8b0c2ca4ae73763f58132405281a9779eac1 | /tests/tests/test_cluster.py | b8c3ab4c53347ee318f7d9e780cee08a86435d13 | [] | no_license | vincenzopennone/drep | 14db58f2999405b4ea16013ce45576c31693ec8b | fc0896affa666205605d790c30d2623291152c68 | refs/heads/master | 2023-06-03T23:18:13.362404 | 2021-06-24T17:02:20 | 2021-06-24T17:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,281 | py | import os
import glob
import shutil
import pandas as pd
import importlib
import logging
import pytest
import tests.test_utils as test_utils
import drep
from drep import argumentParser
from drep.controller import Controller
from drep.WorkDirectory import WorkDirectory
from drep.d_bonus import find_program
class Empty... | [
"mattolm@gmail.com"
] | mattolm@gmail.com |
53f3c314f83658c91de872c57b6b1dc85e6919c0 | 758f1f9b7464c9ebe40a9235a463ae5099512b20 | /wlm_test/dev_io.py | 6c4c667051da4ef2b23be5381ef9fda1062c9745 | [] | no_license | chenlianllik/python_study | 3ef074337d0390ad04db065701239c27ccf73cba | 46eb490e6f92d162006e15392e5e1bd39cdba3bd | refs/heads/master | 2021-10-23T08:34:25.755469 | 2019-03-15T20:06:57 | 2019-03-15T20:06:57 | 115,893,817 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,570 | py | import os
import string
import time
import datetime
import random
from offset_parser import wlm_offset_parser
class wlan_device(object):
def __init__(self, device_port):
if device_port == 'sim':
self.device_port = device_port
self.__pwr_state = 'off'
self.__wlm_stats_req_time = time.time()
return None
... | [
"chenlianllik@gmail.com"
] | chenlianllik@gmail.com |
329b5265d642b1e6b1b3b062231b4a750e9e02c9 | d82158e8cf7423dcb1aaaa648406c64f7cf2871a | /src/opinion_politic/methods/bert_lstm_model.py | 3da41c8b643f9906e749b783073394304ac8bf06 | [] | no_license | arahmatiiii/opinion_politic | 9c1b0736263a305b5c12d7348f2901c6cad90b74 | 83b4b23aff3db06b1169d6cd1cd63570e29fd643 | refs/heads/main | 2023-03-10T10:11:18.785884 | 2021-02-23T15:22:44 | 2021-02-23T15:22:44 | 319,080,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | """
bert_lstm_model.py is written for bert lstm model
"""
import torch
from torch import nn
class BertLstm(nn.Module):
"""
In this class we implement Bert lstm model
"""
def __init__(self, **kwargs):
super().__init__()
self.bert = kwargs['bert']
embedding_dim = kwargs['bert... | [
"a.rahmati74@gmail.com"
] | a.rahmati74@gmail.com |
635fdeb7219a1c73f494564203158698ab93bbfc | cebcb859c851012bde92943a8cadef4d7cd0ae32 | /s11.py | 320079aa710c944820c31a2cf0697ad833c3e037 | [] | no_license | mskesselring/RFAntennaAutomation | 032d78bdad70ee14ff6511b114d805cac57e52bd | f1791ed026bad7aea029c7f3172624828b01f313 | refs/heads/master | 2020-06-23T00:58:42.219301 | 2019-07-23T15:18:50 | 2019-07-23T15:18:50 | 198,452,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,301 | py | ################################################################################
# Project: NCSU ECE PREAL 2.0 Senior Design Project
# File: s11.py
# Author(s): Matthew Kesselring
# Date: May 2019
################################################################################
# Local files
fro... | [
"33323500+mskesselring@users.noreply.github.com"
] | 33323500+mskesselring@users.noreply.github.com |
6f6bbd7824afebb390fcad7b60006d07593eaeb0 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005963.py | 536d9214289d3cb10209ba7b567a2e1a915c7dca | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
45ed7bdd012349da002661ea64dd83789fb70d17 | 402fde0430220fc80f907fa78a68fb261e205f4d | /ciana/quadrado.py | 306524a1930bbf288aff4eed9da82a2cf322aecb | [] | no_license | cglima/python-learning | 2f697fc7d08cf40aa59fe7e4f0e0a456596444f5 | d293d4037d5e8ef21eb6d452d3cd2fcf9de3b0ed | refs/heads/master | 2020-09-11T11:48:22.108042 | 2020-02-29T04:44:44 | 2020-02-29T04:44:44 | 222,054,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | """Faça um programa em Python que receba (entrada de dados) o valor correspondente ao lado de um quadrado,
calcule e imprima (saída de dados) seu perímetro e sua área
Observação: a saída deve estar no formato: "perímetro: x - área: y """
lado = int(input('Digite o valor correspondente ao lado de um quadrado:'))
peri... | [
"lima.cglima@gmail.com"
] | lima.cglima@gmail.com |
da947df31b1862c93d63e99aaf8b086359dd6bf3 | 793c9844ebc3fb46b25fb5e6db421a074d7c7330 | /regression/controller/distributions.py | 2a2f698e70295ea1de26aa9e5a140919e78b7f03 | [] | no_license | pomonam/NoisyNaturalGradient | 7d904dc2612f955206ed786e51e0043c667b7485 | cd84820eb3abc3f6dad4fde691679b0af0aecdf3 | refs/heads/master | 2020-04-14T15:01:28.455766 | 2019-01-12T22:13:15 | 2019-01-12T22:13:15 | 163,914,052 | 63 | 12 | null | 2019-01-03T21:05:47 | 2019-01-03T02:36:48 | Python | UTF-8 | Python | false | false | 21,832 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from zhusuan.distributions import Distribution
from zhusuan.distributions.utils import assert_same_float_dtype
from zhusuan.model.stochastic import StochasticTensor
import tensorflow as tf
import numpy as np
... | [
"pomonam15@gmail.com"
] | pomonam15@gmail.com |
d1348a15bf03228bf313efb82a3a2b7757051401 | 12990ac50a674812c6c997d5ecd4e979cf1a2e6a | /venv/bin/django-admin | 67cb8118c1a4d82130e3680c9eb2dd7c2c9c8184 | [] | no_license | lc8681/home_web | 0aaa1208aea815027d7a923c2e31d63d209ffa3f | aa5b8c8a633c1e9a0d034a2f9dd234c662468c8c | refs/heads/master | 2020-03-25T20:49:16.749574 | 2018-08-17T16:37:39 | 2018-08-17T16:37:39 | 144,147,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | #!/Users/lichen/Documents/PycharmProjects/home_web/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"lichen@redefine.global"
] | lichen@redefine.global | |
097a48bc0ec87840edcb99d338dd936647e75d11 | 53acd601a196a43e33df52ddab532a49989f52a9 | /Item/migrations/0001_initial.py | 35f0cbea418a230d0633db4487d1b3ce723e880a | [] | no_license | Songchip/point_mall_api | 0f8298f6d68ed3f5940e91981c145c4f3a02f9c8 | 60e26cb3d54d24d6262e16c1ae86d523b886f93d | refs/heads/master | 2022-12-12T07:24:26.849322 | 2019-08-29T08:02:13 | 2019-08-29T08:02:13 | 199,996,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # Generated by Django 2.2.3 on 2019-07-25 02:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
... | [
"scv487@naver.com"
] | scv487@naver.com |
315db68787f26dc6726dae929582108069d5348d | 37c8d45c5b7fca7104d80fe1e25df8f22afa223a | /binarychop.py | 56390fb5d7b0839c2ed5d13e6f939020e3638b68 | [] | no_license | oxford-code-kats/binary-chop | d486a54ab1b4e2b5c99bb27d8c82285cff547d6d | 93a609e7dca0792f891e9093d0316b12e527a35f | refs/heads/master | 2021-01-10T05:22:00.723536 | 2015-09-27T15:38:34 | 2015-09-27T15:38:34 | 43,252,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from __future__ import division
MISSING = -1
def chop(target, search_list):
if not search_list:
return MISSING
if (len(search_list) == 1):
if (target != search_list[0]):
return -1
else:
return -1
middle_idx = find_middle_idx(search_list)
if target == search_list[middle_idx]:
return middle_idx
elif ... | [
"lmagosi@Leratos-MacBook-Pro.local"
] | lmagosi@Leratos-MacBook-Pro.local |
bf4938d9e73a26fe0757893e1a32b04c141a9cdb | d1845a132213f2239fb0fea3502982dcfbdaca08 | /youtube-favourites-export.py | 965eff77359c96636c638fe0f16b20fabf00c131 | [
"MIT"
] | permissive | dw/scratch | 361e9dac7693061b66ccd064633f4ed09875e1b2 | c22c84d4d2d0347283e70192458ea50e08efcadb | refs/heads/master | 2021-01-17T12:21:52.423557 | 2019-06-11T00:09:30 | 2019-06-11T00:09:30 | 3,239,854 | 30 | 10 | null | null | null | null | UTF-8 | Python | false | false | 982 | py |
import gdata.youtube.client
client = gdata.youtube.client.YouTubeClient()
client.client_login('email@gmail.com', 'password', 'exporter')
entries = []
uri = 'https://gdata.youtube.com/feeds/api/users/default/favorites'
while True:
print 'Fetch', uri
feed = client.get_videos(uri=uri, **{'max-results': 50})
... | [
"dw@botanicus.net"
] | dw@botanicus.net |
7591aeb499a8aa9e7b3f60a415b9028c84aa17c2 | 22e69109a5bdeb9e9cdbafb87383fcf2d6bd4cc9 | /src/count_indels_mutations.py | 756ad90681ecfdfba51605dde421ed3bdb11f0f6 | [] | no_license | smacra2/EvoSeqGAN | ad1080472ae82eaa09563a877c86944dffaebc7a | c055e008ec7457204c3431b3d7da38ea38be3501 | refs/heads/master | 2022-09-22T13:57:54.357074 | 2022-08-24T09:02:43 | 2022-08-24T09:02:43 | 161,592,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,168 | py | import math
import pickle
from itertools import product
import numpy as np
def count_mutations(file_name, mutation_val=5, deletion_val=5, insertion_val=5):
f = open(file_name)
data = []
for row in f:
if row[0] != '\n' and row != '--------------------\n':
data.append(row.rstrip())
p... | [
"sean.macrae@mail.mcgill.ca"
] | sean.macrae@mail.mcgill.ca |
ba87a0ef4833a6b0a51aaf46629dcd17a1a706f2 | 968eb47b8b5aadeefd1f3ff52738b27eb66bc862 | /src/db/test_kommentti.py | e6daf2a2bcc312662f7b37fffd9876402ed4f330 | [] | no_license | jgsavola/rohmotti | 96787d13a8dde504fdf11b24f2ac00e956302f65 | 247beffc85a10bd7f5c1e4724a1eb638a306ee3b | refs/heads/master | 2021-01-10T20:28:31.573442 | 2012-09-09T20:37:28 | 2012-09-09T20:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/python
import os
import pwd
import psycopg2
from DatabaseObject import DatabaseObject
from Kommentti import Kommentti
dbuser = pwd.getpwuid(os.getuid()).pw_name
dbname = dbuser
conn = psycopg2.connect("dbname=%s user=%s" % (dbname, dbuser))
DatabaseObject.setDatabaseConnection(conn)
kuva = Kommentti.load... | [
"jonne.savolainen@helsinki.fi"
] | jonne.savolainen@helsinki.fi |
255e390a2a1c7707fedd1dbac54e53f428b10003 | 9a1e3c22f19d0124276a19c414ed8555b7cabe11 | /echolect/core/subsectime.py | a192cf157d4a635060b2381e4631979a11bdbe9b | [] | no_license | ryanvolz/echolect | 05e6373f3566f4cc6e1ee9f449ec3e931389e784 | ec2594925f34fdaea69b64e725fccb0c99665a55 | refs/heads/master | 2021-01-17T09:15:57.382042 | 2016-04-25T20:40:44 | 2016-04-25T20:40:44 | 9,969,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,794 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2014, Ryan Volz
# All rights reserved.
#
# Distributed under the terms of the BSD 3-Clause ("BSD New") license.
#
# The full license is in the LICENSE file, distributed with this software.
#-----------------------------------... | [
"ryan.volz@gmail.com"
] | ryan.volz@gmail.com |
686006acd784aeb64f48aa38eeb51d5c566319c7 | 1d11ff770c5530de4c18e83d9474d4c09c4376d2 | /igor/std-plugins/philips/scripts/philips.py | 0a6d1b43a4de640d5a4642c054379da4b21d6527 | [
"MIT"
] | permissive | bobandrey37/igor | 6660508639d90e7f44ea85146581685513b99ca2 | 41e163c8fa3da8ef13a337e1fe4268cf6fd7d07a | refs/heads/master | 2020-05-01T06:27:36.954089 | 2019-03-04T14:45:26 | 2019-03-04T14:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,929 | py | #!/usr/bin/python
from __future__ import print_function
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import object
import socket
import struct
import select
import json
import urllib.request, urllib.parse, urllib.error
import sys
DEBUG=Fal... | [
"Jack.Jansen@cwi.nl"
] | Jack.Jansen@cwi.nl |
1a5af30a4278d2716a06a58addc4f5fc79dd4118 | 60869f03b1f9d2ba0c1cd5012b53ce4fcb5b5c65 | /app/decorators.py | ac6930a0c1f1f68dc381831d9a2f04727d88f3e9 | [] | no_license | mjyplusone/FlaskyWeb | 5c9cd3aee7f6ce19685797c24ef2f7fc67d1dba0 | 875372e6f4a3f88cf08dfa0066beaf3578274f60 | refs/heads/master | 2020-06-12T03:34:34.369441 | 2017-02-28T05:42:48 | 2017-02-28T05:42:48 | 75,609,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from functools import wraps
from flask import abort
from flask_login import current_user
from .models import Permission
def permission_required(permission):
def decorator(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if not current_user.can(permission):
abort(40... | [
"mjyplusone@qq.com"
] | mjyplusone@qq.com |
fc9754b4705724150760f3d0800f70772f6af4cc | 7b4aa8237342d3adf7e7187d286c178ead6e6c3e | /backend/customer/admin.py | 0de8fdf7d2662c0965ddfcf0fd66d40df4483452 | [] | no_license | vgk77/LSD | 3d6352a4cdb08c8382671628913343dd7bea9b0c | 7df7882a738c6eeab7d865729e37f3a2aa75738d | refs/heads/main | 2023-01-01T20:55:20.007924 | 2020-10-28T15:44:24 | 2020-10-28T15:44:24 | 303,938,225 | 0 | 0 | null | 2020-10-28T15:44:25 | 2020-10-14T07:35:59 | Python | UTF-8 | Python | false | false | 717 | py | from django.contrib import admin
from .models import Customer, Ticket
class TicketsInline(admin.TabularInline):
fields = ['message', 'status']
model = Ticket
extra = 0
readonly_fields = ['message']
@admin.register(Customer)
class CustomerAdmin(admin.ModelAdmin):
list_display = ('name', 'telegra... | [
"worka.zip@gmail.com"
] | worka.zip@gmail.com |
b0841733366ddb350f8674ffaadb4afba535b375 | d5504c795e16228dd2b8e21aa2d37b1e17f04b12 | /sari/Ventas/migrations/0005_auto_20210408_1636.py | 9c237e62b6f3149a8d69b8a6910057018d87d1f2 | [] | no_license | VianneyDeLosAngeles/locust | 37a003a50b11fad72d3af43d568b26249a19ed2f | d6fe614151f53aa5dcba431297a832ceb3ec8439 | refs/heads/master | 2023-08-29T15:11:06.112518 | 2021-04-16T05:51:15 | 2021-04-16T05:51:15 | 417,546,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # Generated by Django 3.0.5 on 2021-04-08 21:36
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Ventas', '0004_auto_20210408_1405'),
]
operations = [
migrations.RemoveField(
model_name='ventassap',
... | [
"vianneyapg@gmail.com"
] | vianneyapg@gmail.com |
64fefe69374a945cd3cee114ee12edf794271c0a | 3f2aceeccfa71a71998519721fe1480fd5cab1aa | /Python_cdoe/OldVer1/LED.py | 53233a640ab3f58a42ce01bb676c3670d93c5678 | [] | no_license | FullofQ/Raspberry-Pi | ab8b605ee7c5a74e7cecbc86121ea2c8af49791c | a67af5e57a07e866242464bfe89ef245be8d8477 | refs/heads/master | 2021-07-24T02:18:07.473980 | 2017-11-03T10:58:59 | 2017-11-03T10:58:59 | 107,524,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import RPi.GPIO as GPIO
import time
# BOARD Number Method,Based Pin Number
#GPIO.setmode(GPIO.BOARD)
GPIO.setmode(GPIO.BCM) #Set the mode to represent the numbering scheme you prefer
GPIO.cleanup() #Return all channels you have used back to inputs
GPIO.setwarnings(False)
#Output mode
GPIO.setup(17,GPIO.OUT)
while True... | [
"s15115148@stu.edu.tw"
] | s15115148@stu.edu.tw |
b4f7bf104cbf6c49a715b1e44d45cd0c93367dd8 | fde59b1713268b3a885d23f515ad097d237b1f62 | /handwritten-digits-interface/controllers/handwrittenInputProcessing.py | 92d850fe4dd30cb1c280fd993ebddb26b91001e0 | [] | no_license | cathalhughes/eyelearn | 7e3df96ba4eccf6ab97804f519212bd9187adf09 | 20d85e7d8848712e71b058b23cbf7e6b08fd4321 | refs/heads/master | 2022-12-06T02:03:04.113795 | 2019-07-18T15:45:37 | 2019-07-18T15:45:37 | 197,613,504 | 0 | 0 | null | 2022-11-22T03:15:24 | 2019-07-18T15:30:41 | Python | UTF-8 | Python | false | false | 696 | py | import re
import numpy as np
from scipy.misc import imread, imresize
import base64
def convertHandwrittenImage(imgData):
imgStr = re.search(r'base64,(.*)',imgData)
if imgStr != None:
imgStr = imgStr.group(1)
else:
imgStr = imgData
#print(imgStr)
with open('output.png','wb') as outp... | [
"cathalnhughes@gmail.com"
] | cathalnhughes@gmail.com |
1c0fdc97f402c72233bfa491f46d329a4bd03232 | c454f3741d84c658126978cc1ec7fc10265df531 | /test_piskvorky.py | 40879cbc0a560a368d4e549113046d3695c4b64a | [] | no_license | BarbPeters/piskvorky | 0d468e8feb4d83ca1d6689144369ec0cc219f987 | 544951c197bf9406028a05498a7d075da44797d8 | refs/heads/master | 2020-05-20T16:50:26.396221 | 2019-05-08T21:14:10 | 2019-05-08T21:14:10 | 185,673,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import pytest
from piskvorky import vyhodnot
from util import tah
from ai import tah_pocitace
def test_vyhodnot_vyhra_x():
"Objeví se 3 x za sebou"
assert vyhodnot('---xxx--------------') == 'x'
assert vyhodnot('-----------------xxx') == 'x'
def test_vyhodnot_vyhra_o():
"Objeví se 3 o za ... | [
"noreply@github.com"
] | noreply@github.com |
cd4b3ca4bc12da0a8c58e0280049e0e7f7db7603 | 1f9daaf63e0c170b39d444537a2e333c5650756c | /myvenv/bin/easy_install-3.7 | ee109a1c69929489c49b8bb5cf124153a6560115 | [] | no_license | nimuseel/django-study-project | 8795cdc207c14b2f68e9cea8b602f836c801431b | 5b25ea702991eb1140e1baccbfdb41d4fd8d6692 | refs/heads/master | 2022-04-11T11:25:02.897456 | 2020-03-27T08:44:43 | 2020-03-27T08:44:43 | 250,214,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | 7 | #!/Users/tommy/dev/djangogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"l08c0739@gmail.com"
] | l08c0739@gmail.com |
94d029748f12974d0eeda80e4a4d9eba57e89393 | c60e9a7b98862c3325cf74c60d7972faf5060872 | /leetcode_2.py | 8e3b892328d7c0eed5bf668fbc7734b696a6104f | [] | no_license | CharleXu/Leetcode | dd4bea4f96c486f85dd4efb846e769ebd05a84ed | 3f8f954dce580119a741f638d59bdaa17f552223 | refs/heads/master | 2022-10-15T20:33:11.766045 | 2020-06-18T03:18:10 | 2020-06-18T03:18:10 | 266,402,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
def add_two_number(l1, l2):
result_node = ListNode(0)
curr = result_node
carry = 0
p, q = l1, l2
while l1 or l2 or carry:
x = (l1.val if l1 else 0)
y = (l2.val ... | [
"superxc0102@gmail.com"
] | superxc0102@gmail.com |
ab901473dffa5b0193e527d92cfcb1858fbdeb1e | d2fb9c37c966c2f17f2d2a16bf260855ec7a6abd | /categorical_variables.py | 558b20bcadeaadb0af2cf73f33de1979163beda2 | [] | no_license | DimitrOskol/Kaggle-Iowa-Housing-Prices | a6b1cc1c0cf58f72a61c6db7716918382e2615e3 | dda067854a71b3e819fd6a721314c986ac563c48 | refs/heads/main | 2023-03-18T19:22:27.672634 | 2021-02-19T22:06:24 | 2021-02-19T22:06:24 | 340,499,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,953 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_absolute_error
X =... | [
"noreply@github.com"
] | noreply@github.com |
4ecdac42392ce61a90b3474bfac3c7a16bf8a8ab | 2648f6dd6d3bd107d5587070664d05f339229d22 | /app/controllers/Produto_controller.py | cd6ffbfe469511e93cb8396e04239797d868592c | [] | no_license | mbbotelho/FastFango | 4e1dbf754df150fc567e8d8b1a6c434b7b5826b4 | c67df1b8131c98247ebb8e4974b0f1474b355a2b | refs/heads/master | 2021-01-23T13:16:20.818836 | 2017-06-03T09:05:41 | 2017-06-03T09:05:41 | 93,236,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from app import app
from app.dao.Produto_dao import Produto_dao
from app.service.Produto_service import Produto_service
from flask import jsonify
import json
service = Produto_service()
@app.route("/produto")
def teste():
i=Produto_dao("batata", 1, 4, 2, "sim")
#self, nome, unidade_medida, quantida... | [
"mbbotelho23@gmail.com"
] | mbbotelho23@gmail.com |
9f7513aceb03d3a629148eb93790f2bd922608ca | 6c2ecefb12be6b04f597e3fb887d9389050aa7e1 | /DjangoCourse/第三周/djangologin/djangologin/settings.py | ca207ee45368d5f381d99a9266ac9e571e9357b6 | [] | no_license | GmyLsh/learngit | 99d3c75843d2b0b873f26e098025832985c635b3 | 3e7993c7119b79216fea24e5e35035336e4f5f5b | refs/heads/master | 2020-04-12T09:11:55.068312 | 2018-12-19T07:19:42 | 2018-12-19T07:19:42 | 162,395,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | """
Django settings for djangologin project.
Generated by 'django-admin startproject' using Django 2.1.2.
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... | [
"469192981@qq.com"
] | 469192981@qq.com |
090677df534132aebe2bf73fe11a9e41e20fc9b5 | 45ac272d01596731861d92551c0a113df7feb634 | /python/nn_test_multilayer.py | ac3dd9e6862337117770748832dc21e20518650d | [] | no_license | mikst/A.I.F.L. | 4a4b8bc443ab70079ff1e923a356a7dd4aa79488 | e8296c79a6d9e4c67f4978ea01a4ff20fb1378e3 | refs/heads/master | 2020-08-08T21:26:02.768111 | 2019-11-21T18:23:39 | 2019-11-21T18:23:39 | 213,923,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | import numpy
import pyttsx3
data_1 = [3,2,4,2.5,3.5,2,5.5,1,4.5]
data_2 = [1.5,1,1.5,1,0.5,0.5,1,1,1]
target = [1,0,1,0,1,0,1,0,1]
engine = pyttsx3.init()
def sigmoid(x):
return 1/(1+numpy.exp(-x))
# def predict(x,y, w1_1, w1_2, b1,w2_1, w2_2, b2, w3_1, w3_2, b3 ):
def predict(x, y):
print("x: ", x, " y:"... | [
"mika@kobakant.at"
] | mika@kobakant.at |
deca0390c459e8571885bdca335edf175dec7b97 | 216ef3802b5d08704458bfc5c15a520147993357 | /change_desktop_background.pyw | 4f5128649f5bb275ff22f280308bdc00a8f11667 | [] | no_license | softode-code/Change-Desktop-Background | fed6b40a04e9467baaa2bf105878fe52061433a3 | b227d371ee586fca4d4663e9c365a9a902eeaf76 | refs/heads/master | 2022-11-21T14:01:17.351210 | 2020-07-19T12:27:15 | 2020-07-19T12:27:15 | 262,391,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | pyw | import os
import random
import ctypes
import schedule
import time
from datetime import datetime
Path = "E:\\Wallpapers\\"
SPI_SETDESKWALLPAPER = 20
def changeBG():
random.seed(datetime.now())
path = Path+random.choice(os.listdir(Path))
ctypes.windll.user32.SystemParametersInfoW(SPI_SETDESKWALLPAPER,0,path... | [
"softode-code@users.noreply.github.com"
] | softode-code@users.noreply.github.com |
924612ceeb29b831cae1895f7c121375eb4ec93c | b3bb5e8c09527bda5bedd12cfcc782d3d752bf9c | /romanNumerals.py | c24b4adbe8dfb330168369db996003d489419ec6 | [] | no_license | anton2mihail/Fun-Programs | 70c3d97d76d123d0826ca36adaee4d68cf003a69 | 1ad00f63cc313fc4f3b63193690f3e60d92033b7 | refs/heads/master | 2021-01-22T08:19:07.630117 | 2018-06-07T19:02:09 | 2018-06-07T19:02:09 | 81,893,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py |
def is_valid_parenthese(str1):
stack, pchar = [], {"(": ")", "{": "}", "[": "]"}
for parenthese in str1:
if parenthese in pchar:
stack.append(parenthese)
elif len(stack) == 0 or pchar[stack.pop()] != parenthese:
return False
return len(stack) == 0
print(is_valid_par... | [
"anton2mihail@users.noreply.github.com"
] | anton2mihail@users.noreply.github.com |
5d7616919ca0cc04cfb36d6ff45bdd5136ce1478 | 355949c034fb8cc220800bcc956d317b3e92d343 | /src2/functions.py | 248df755e92cb47635278117038c9450f22e8c35 | [] | no_license | icanevaro/lecture2 | ab28e62a2ee909a95137dac786b5034662df386e | 747a238565480e2cdec93a3a45b19a3e5bc4933a | refs/heads/master | 2021-05-22T17:15:04.860840 | 2020-04-05T16:12:10 | 2020-04-05T16:12:10 | 253,016,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #FUNCIONES#
#Defino una funcion propia, con un argumento que va a ser "x"
def square(x):
#Si vos me pedis "x" te voy a devolver x*x
return x * x
#Voy definir la funcion para cuando lo quiera importar en otro archivo no me traiga esto tambien
def main():
#Y aca voy a utilizar la funcion que arme, para hacer un ... | [
"62725762+icanevaro@users.noreply.github.com"
] | 62725762+icanevaro@users.noreply.github.com |
676b57edf2543587624cb7fb53630425c91c775f | 7c1892d60f07848756cefe0dea0cce7292c7c572 | /database/add.py | a4e5e1046441fc9f119b92398f0c094ccabc923e | [] | no_license | cherryMonth/BWC | 31d92a583b0ff35a18368a2c2ccfdb8d549dd7e1 | 187430bbc9e81d1cbc8721fd423f9b0488e0e78d | refs/heads/master | 2021-01-01T17:29:17.655717 | 2017-07-28T04:40:20 | 2017-07-28T04:40:20 | 98,082,540 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | # coding=utf-8
import csv
import os
import collections
class Add(object):
@staticmethod
def add(filename, key_list=None):
if not os.path.exists(filename):
index = 1
else:
index = 0
try:
with open(filename, 'ab') as csv_file:
... | [
"1115064450@qq.com"
] | 1115064450@qq.com |
971d7dd8a6043373601442e66cf7e7273aa6e600 | 255ba93bca8ef858239d4beb67c20f342eeb1155 | /Day 3/prims.py | 3f47e6c2396b71efc0718089df5adb7164fb3e40 | [] | no_license | axayjha/cs16v3 | 2b2596cf63ca59e078b495e60176e8f104021e63 | 080675e34d8cbe1cb7a21a43d27bd14f3b5cff96 | refs/heads/master | 2021-08-24T12:18:53.987370 | 2017-12-09T20:01:23 | 2017-12-09T20:01:23 | 98,687,228 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | class pqueue(object):
def __init__(self, List=None):
self.list = List
def extract_min(self):
a= sorted(self.list, key= lambda l: l.key)[0]
self.list.remove(a)
return a
class vertex(object):
def __init__(self, name):
self.name=name
... | [
"noreply@github.com"
] | noreply@github.com |
7a8b58333685500dc2a271d37474d768546b5291 | 62705726424a3dc4dc8316fff696dd04d632a33b | /tests/profiling/collector/test_stack.py | f791d5417cca2f3dbd11b31f374fd950feadfe14 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | YasuoSasaki/dd-trace-py | f6e051545ff1c5741cb416ab6edded67b9eb5a13 | aa3214671d7843447aa11ba1aea1202eae4aff5a | refs/heads/master | 2022-08-23T21:34:05.984284 | 2020-05-06T21:32:55 | 2020-05-06T21:32:55 | 262,933,315 | 0 | 0 | NOASSERTION | 2020-05-11T03:55:18 | 2020-05-11T03:55:17 | null | UTF-8 | Python | false | false | 5,870 | py | import os
import threading
import time
import timeit
import pytest
from ddtrace.vendor import six
from ddtrace.vendor.six.moves import _thread
from ddtrace.profiling import recorder
from ddtrace.profiling.collector import stack
from . import test_collector
TESTING_GEVENT = os.getenv("DD_PROFILE_TEST_GEVENT", False... | [
"noreply@github.com"
] | noreply@github.com |
0bb04d6daa2c716c04fbde77ab879c77528ea093 | db4b094ee9a6d53c3279acabcf96a9580212c064 | /drawing.py | 89ff0e7dd2108e774865830394b1e097ab52c569 | [] | no_license | mayankagg9722/OpenCV-Python | 6b470e03c20ab5ea0a10c639ea4d1870ac252eeb | 08d76e767ea0a71d991ee590334c3c04f41e8cc4 | refs/heads/master | 2021-06-17T19:39:47.581157 | 2017-04-23T23:50:38 | 2017-04-23T23:50:38 | 88,671,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import numpy as np
import cv2
# Add two images in weighted manner
'''
img=cv2.imread('./Black.jpg')
img2=cv2.imread('./captcha.bmp')
img3=cv2.addWeighted(img2,0.3,img2,0.1,0)
cv2.imshow('weighted',img3)
cv2.waitKey(0)
cv2.destroyAllWindows()
'''
# DRAWING Write N using cv2
img=np.zeros((512,512,4),np.uint8)
cv2.line... | [
"mayankagg9722@gmail.com"
] | mayankagg9722@gmail.com |
94d7c0551cdba960a411011611df392954869805 | 4388ab8e3bef0048e37cfface6294707243ce350 | /pyHue_Testing.py | 378fee264e1b52816acab547e99da121fa0f62f8 | [] | no_license | EvillerBobUK/pyHue-BridgeLink-Example | 619705e19f06fe6850f25729cc847dc5ba16c7f4 | 7273e38fe303ae34f8f85c8ccc199e8ad5423410 | refs/heads/main | 2023-04-19T08:14:12.529041 | 2021-05-07T14:08:40 | 2021-05-07T14:08:40 | 365,217,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | from time import sleep, time
from classes.pyHue_BridgeLink import pyHue_BridgeLink
bl = pyHue_BridgeLink("BridgeOne") # CHANGE THIS NAME TO MATCH YOUR CONFIG FILE
run_put_test = False
run_streaming_test_RGB = False
run_streaming_test_XYB = False
# UNCOMMENT THE OPTIONS BELOW, DEPENDING ON WHICH TEST YOU WANT
# TO RU... | [
"jpbishopltd@gmail.com"
] | jpbishopltd@gmail.com |
b7ea7c196a657c03362e5a72b8dc3b5a15f15f9c | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/ad_group_criterion_simulation_service/transports/base.py | ecc835952d95a794ce1333feaca5eb673c52f842 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
f2b070ea149d220513bc4c6f264ba0f735450f4a | e4553dce064f69c0c29a637a763c4a260b0bab62 | /gen_prediction.py | 81403ea1c2a951eed0713f33214ec37c1f64bc6f | [
"MIT"
] | permissive | Tamal-Mondal/Hi-DST | c673320b403c9f8b9b42ec473779491414d4a6b8 | 3b8e8ace25d3beb5fa43311cc54a87226c73689f | refs/heads/main | 2023-05-28T08:01:58.797706 | 2021-06-15T15:42:43 | 2021-06-15T15:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,969 | py | """
Description :
Generate DST prediction using Hi-DST.
Run Command:
python gen_prediction.py -in=<path of multiWOZ data> -out=<output dir> -key=<any unique key to identify result>
"""
#--------------------------------------------
import math
import time
import datetime
import random
import argparse
import os
import s... | [
"suvodip15@gmail.com"
] | suvodip15@gmail.com |
2f707c0ad76fe2c3e40a640ea863ae18b885b30f | ee9e6f276985a07cde2e42b66793cbfaac67279b | /研究生课程/模式识别/exp3_lc/perceptron.py | 61ffaf1bf682397feb4dad6865241374e19a8838 | [] | no_license | wyjss2015/Coursera | fa90385dfec38c4f35f6fd8b04b493514ffe4dc0 | eca20a080cb565f86b256b49481864e3917a7041 | refs/heads/master | 2020-04-17T19:28:22.390191 | 2017-06-26T17:00:24 | 2017-06-26T17:00:24 | 66,063,456 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | # coding:utf-8
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
class perceptron(object):
def __init__(self, X, y):
self.X = np.concatenate((np.ones((X.shape[0], 1)), X), axis=1)
self.y = y
self.w = np.random.rand(self.X.shape[1])
def train(self):
... | [
"wyjss08@gmail.com"
] | wyjss08@gmail.com |
eca748f1e46e776e4639c1664a274fa42add6ad7 | 3c969d9588192b803d2ce8e6c7c6030b22745ada | /QuizMaster/quizapi/migrations/0013_auto_20190317_1333.py | ed075c4146d7781323e5b7504c0e5d42da90ef82 | [] | no_license | prem2282/django-quiz-deployment | c6b24c423c8d029b3577105e4d705c2b6d98def1 | 15957adecd7918a91fbe70ecac6c639a757d67c6 | refs/heads/master | 2022-06-08T01:48:04.296666 | 2022-05-30T05:40:35 | 2022-05-30T05:40:35 | 140,092,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.1 on 2019-03-17 08:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quizapi', '0012_auto_20190317_1326'),
]
operations = [
migrations.AlterField(
model_name='userquiz',
name='userId',
... | [
"prem2282@gmail.com"
] | prem2282@gmail.com |
fa30efa790e8083eea57b600264747d53d9c230c | 5c6272383529e4465215e8f9c94eae7bddddcf21 | /1209_dp.py | 1e2bb793730252d7ff96f38f5b7641f7a4aa3187 | [] | no_license | RoafS10755014/algorithm | 97719970fe9521822189b61061d795f41ff310b3 | 191e23e6dbdda2fc0afb3abcbe550d85e606c466 | refs/heads/master | 2023-02-16T16:15:37.055005 | 2021-01-13T15:10:56 | 2021-01-13T15:10:56 | 298,011,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | #Rod cutting problem
maxValue = []
def getmax(rod, n): #rod:長度價格對應表, n:長度
if n<=1:
return rod[n]
else:
for i in range(n):
maxValue.append(getvalue(rod, i, n))
return max(maxValue)
def getvalue(rod, n, maxvalue):
return rod[n] + rod[maxvalue-n]
ROD = [0,... | [
"noreply@github.com"
] | noreply@github.com |
3bdb961a368f5fd910108a6231df97077fd148bc | 699bd6dc1c94db6df80b90240f2a1b1c8a0efdc9 | /hw2/hw2_code/nndl/knn.py | 5e5dd6f764605be556946d17d28c2c7fa9544478 | [] | no_license | ashwin-s-ranade/ECE-247-Winter-2021-Kao | 9d394c700fd421b3e74c17b52ce10ddad3fcea86 | 53dd6771f0a7cfc52735157eeb975af79cd07882 | refs/heads/master | 2023-03-10T02:36:45.600664 | 2021-02-25T19:23:46 | 2021-02-25T19:23:46 | 337,887,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,370 | py | import numpy as np
import pdb
from scipy.stats import mode
"""
This code was based off of code from cs231n at Stanford University, and modified for ECE C147/C247 at UCLA.
"""
class KNN(object):
def __init__(self):
pass
def train(self, X, y):
"""
Inputs:
- X is a numpy array of size (num_examples, D)
... | [
"ashwinranade99@gmail.com"
] | ashwinranade99@gmail.com |
fcb0ac9a2e90fb3003f163171bdf3f9429306a81 | e43ff8f429a6938a4f16edc4b2c94976acbff157 | /ABC/HELLO SPACE/c.py | 7e33c484056d96fed727123096a19a47f8c58635 | [] | no_license | Soule50431/AtCoder | 4fcd6ab6b771d55c90dc62aedd75eb81fd067466 | 118ac5d03630ce143fb50153402eee38e988ae0c | refs/heads/master | 2023-06-18T13:07:13.843361 | 2021-07-14T01:56:20 | 2021-07-14T01:56:20 | 357,827,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | n = int(input())
team = [tuple(map(int, input().split())) for i in range(n)]
def check(x):
comb = set()
for member in team:
comb.add(sum(1 << i for i in range(5) if member[i] >= x))
for x in comb:
for y in comb:
for z in comb:
if x | y | z == 31:
... | [
"h.ekcero.el6no11@outlook.jp"
] | h.ekcero.el6no11@outlook.jp |
7e2a193ccee2f63630c195d74ee27b7a478f75be | 249b97429d91bcd5aff353a682ab559ee9cdb9c1 | /flipkart/accounts/models.py | f31c51e513fb7dee822b33ceb78cff8de750197e | [] | no_license | gowthamkr1994/Flipkart | dac1bdb631fa92709821a85e2121cd67244c7294 | 061306f844b4232105b446893ba6db4b723a92e6 | refs/heads/master | 2020-05-04T17:02:03.954605 | 2019-04-03T13:43:12 | 2019-04-03T13:43:12 | 179,295,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from django.db import models
# Create your models here.
class Signup(models.Model):
id = models.AutoField
first_name = models.CharField(max_length=50, default="")
last_name = models.CharField(max_length=50, default="")
email = models.CharField(max_length=50, default="",primary_key=True)
password = ... | [
"gowtham.kolekar123@gmail.com"
] | gowtham.kolekar123@gmail.com |
2f01cbb9aebe793ed7eb8d6d85d167d803cc165f | cb287ea164120432b5a8f01f550c003ef55f6675 | /ex5+.py | b17b4e2bd065bb4e17f5743d5043be2a9061cdfb | [] | no_license | guodonghai901901/GitHub | 0ae9400dabf240dc6d4aacd3dbafdb7f0a8f15ba | d80634ef71797ca02791b4e1d0af33b55855ec2e | refs/heads/master | 2020-06-02T03:59:38.938407 | 2014-03-07T15:13:56 | 2014-03-07T15:13:56 | 17,108,081 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8-*-
name = 'Zed A. Shaw'
age = 35 # not a lie
height = 74 # inches
weight = 180 # lbs
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print "Let's talk about %s." % name
print "He's %d inches tall." % height
print "He's %d pounds heavy." % weight
print "Actually that's not too heavy."
print "He's got %... | [
"guodonghai901901@sina.cn"
] | guodonghai901901@sina.cn |
1f4636f0fa095620e31a612233b06bbbf0c1da48 | fc7defba3ad7ffb6b4ad36a0f0ac563b475803da | /python/depthcharge/uboot/__init__.py | d616426dd0f9b03811a2540a8bc5e2780c6fdad3 | [
"BSD-3-Clause"
] | permissive | gavz/depthcharge | a748c5ba11329eb2bf149bb6df0bcd248120e0f3 | 9b66d1c2a80b9398ac561c83173ebd748aef018d | refs/heads/main | 2023-06-28T21:55:39.302047 | 2021-08-02T02:58:06 | 2021-08-02T03:49:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # SPDX-License-Identifier: BSD-3-Clause
# Depthcharge: <https://github.com/nccgroup/depthcharge>
#
# flake8: noqa=F401
"""
U-Boot centric parsing, conversion, and data processing functionality
"""
from . import board
from . import cmd_table
from . import env
from . import jump_table
from .version import UBootVersion,... | [
"jon.szymaniak.foss@gmail.com"
] | jon.szymaniak.foss@gmail.com |
8e86bdf62bd256814055818044df3081b07a50bd | e9628f8b9d86ba587edd36cbccc1d2133290cd5d | /agenda/admin.py | 40d2f928322e99a583ec1ffe8b6d0b62dedf4eab | [] | no_license | krishivpiduri2010/intergallactic | c9fe80a72fd0fafed0c19e5eb5008042e87cbf08 | c1f5c9846de38d4d54d2f311ff39e0a29096432c | refs/heads/master | 2023-06-14T11:29:51.586039 | 2021-07-04T18:53:33 | 2021-07-04T18:53:33 | 382,140,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Object) | [
"krishivpiduri337@gmail.com"
] | krishivpiduri337@gmail.com |
b12de6c619935508db19c3f39260210233e6a4ab | a0801d0e7325b31f0383fc68517e208680bb36d6 | /Kattis/rijeci.py | 7d0bdadf29031e7404c2c5a61ad6cc2e938add57 | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | K = int(raw_input())
if K == 1:
print 0, 1
else:
x = [0, 1]
y = [1, 1]
for i in range(0, K - 1):
t = [y[0]+x[0], y[1]+x[1]]
x = y
y = t
print x[0], y[0] | [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
b6bc57eebf2a6deb99192a6e04622d787e73f0bf | 6656036bd209f6fd5416807954f53e4e1fb27dd1 | /notePC/nfcid_w.py | da97baea00887ea59d258c68f16d86846876b1cb | [
"Apache-2.0"
] | permissive | EnyaKitakagaya/Tonis | 44221215eac7f14e3c5fc717503ee67d5440123b | 414ab7788c5b55a0b76c8837edee3f1c838fe7ec | refs/heads/master | 2021-01-13T08:10:47.380043 | 2016-11-13T02:10:19 | 2016-11-13T02:10:19 | 69,097,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# フェリカカードのIDを/tmp/nfcid に追記し続けるスクリプト by penkich 2016-10-15
# ubuntu をインストールした会員カード登録用ノートPCの /etc/rc.local に置いておき、自動起動させる。
# カード読み取りごとに、サウンドファイルを鳴らす(ラズパイならI/Oポートにブザーつないで鳴らすとよい)。
# サウンドファイルは、フリーのものが種々公開されてるので、利用するとよい。
# 例えば、http://freewavesamples.com/files/E-Mu-Proteus-FX-Tub... | [
"noreply@github.com"
] | noreply@github.com |
fbd7868a37a2270e5dc86843adff50a94436404d | ede0a087ea29305857fb4586e730ef1ebf068a86 | /Application/detection.py | c3576ae1208387ed5afedefca6e39cb90cc95933 | [] | no_license | manuel1801/Bachelor_Arbeit | f3e5e33aa57877c890890b8c3584c672cd038816 | 92200717fd34544f9bbea9aa7ad2156bf72080df | refs/heads/master | 2021-07-10T03:29:20.605528 | 2021-03-01T09:06:51 | 2021-03-01T09:06:51 | 219,782,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,307 | py | from openvino.inference_engine import IENetwork, IECore
import numpy as np
import time
from datetime import datetime
import sys
import os
import cv2
class MotionDetect:
# Klasse zur Erkennung von Bewegung
def __init__(self):
self.static_back = None
def detect_motion(self, frame, reset=False):
... | [
"manuel.barkey@web.de"
] | manuel.barkey@web.de |
49c05d2676b8eed51218f2ef3306bf504397a1b1 | 0f0a7adfae45e07a896c5cd5648ae081d4ef7790 | /python数据结构/python黑马数据结构/排序于搜索/桶排序2.py | 081bee496e92f52adc6aa7b5f6d0b08d0687b4c3 | [] | no_license | renlei-great/git_window- | e2c578544c7a8bdd97a7a9da7be0464d6955186f | 8bff20a18d7bbeeaf714aa49bf15ab706153cc28 | refs/heads/master | 2021-07-19T13:09:01.075494 | 2020-06-13T06:14:37 | 2020-06-13T06:14:37 | 227,722,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | lista = [12, 4, 5, 6, 22, 3, 3, 3, 3, 43, 654, 765, 7, 234]
def pail_sort(alist):
"""桶排序"""
n = len(alist)
cur = 0
while cur < n-1:
if alist[cur] > alist[cur+1]:
max_num = alist[cur]
cur += 1
max_li = [0] * (max_num +1)
for i in alist:
max_li[i] += 1
... | [
"1415977534@qq.com"
] | 1415977534@qq.com |
d82cb4496515ddff73ac55165464858ee6725a1d | 9b1eda0abdc5dea7c6e9695ff4e1098abe0a708b | /tests/option_list/test_option_prompt_replacement.py | ef11b75383c49a7f4a5689e95c0c50375011d533 | [
"MIT"
] | permissive | Textualize/textual | b8cf4b5d18069fccc7623b3116436f479e1ef446 | b74ac1e47fdd16133ca567390c99ea19de278c5a | refs/heads/main | 2023-08-30T21:40:21.563823 | 2023-08-30T10:18:27 | 2023-08-30T10:18:27 | 355,959,597 | 14,818 | 588 | MIT | 2023-09-14T20:22:02 | 2021-04-08T15:24:47 | Python | UTF-8 | Python | false | false | 3,245 | py | """Test replacing options prompt from an option list."""
import pytest
from textual.app import App, ComposeResult
from textual.widgets import OptionList
from textual.widgets.option_list import Option, OptionDoesNotExist
class OptionListApp(App[None]):
"""Test option list application."""
def compose(self) ->... | [
"szymon.sc.cader@gmail.com"
] | szymon.sc.cader@gmail.com |
0e5709a6bfd68d4a0c7b6e54eab0a0a3b00dcb54 | 7f5f4f3e096ad050d829b6d6f65292a803936bed | /Day1.py | 77efc21afce7d2384da920f39165ce387e5ac728 | [] | no_license | WiTe0DeViL/LetsUpgrade_Projects | 2d8ecf6d34f7337cc6ace16818e7b498d1f64986 | e363870450e44928609bc418c3633412538f81a0 | refs/heads/main | 2023-07-09T16:56:24.464358 | 2021-08-22T15:22:30 | 2021-08-22T15:22:30 | 397,113,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | x = int(input("Enter a number for x : "))
y = int(input("Enter a number for y : "))
result = x ** y
print(f"Hence {x} to th power of {y} is {result}")
| [
"noreply@github.com"
] | noreply@github.com |
c97a97cc33c8fb773f980e478fd7837712bd7cbc | df34ce4d6d84db4ef3d5f1e316217fd3dc8331ac | /process_scripts.py | bb4379444510c947f69aa7384d0c98edc0d9ca92 | [] | no_license | Shirlynmishra/veloce_reduction | 046c3b8292cf752e8c680f3cb8088a874e55f383 | 47f7d13236dfe2120c127357e455bc0184d2f2f9 | refs/heads/master | 2020-08-04T21:52:35.819387 | 2019-09-11T10:54:08 | 2019-09-11T10:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,984 | py | '''
Created on 25 Jul. 2018
@author: christoph
'''
import astropy.io.fits as pyfits
import numpy as np
import time
import os
import glob
from veloce_reduction.veloce_reduction.helper_functions import binary_indices, laser_on, thxe_on
from veloce_reduction.veloce_reduction.calibration import correct_for_bias_and_dark... | [
"c.bergmann@unsw.edu.au"
] | c.bergmann@unsw.edu.au |
70dc1722e3ebbc732e9e23ca572697351d3bd2f3 | ed6f57730ebd672335361b537e38b8646ae2f904 | /factories.py | 6a6b8ccc86db10e1e045093627720ba4c0668c8e | [] | no_license | Karamax/StackCity | e229cecd4322800b287c531cfc678ca76ca3d0b1 | 7d5acb007356fb90f3efc7ab95f6361f5c9eb140 | refs/heads/master | 2021-06-13T20:44:22.275950 | 2017-05-08T13:24:50 | 2017-05-08T13:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | """
A collection of factory objects
"""
from misc import make_filled_shape, shape_copy
from cells import Ground
from buildings import Dwelling, FisherBoat, Smithery, Barracks
import random
class NextItemFactory:
"""
A factory that generates items to be placed on field. It knows about the
field state to ge... | [
"alexeymorozov1991@gmail.com"
] | alexeymorozov1991@gmail.com |
11bfce963eac377dffb54fc7696dd1c222f0af4d | f81ab0655152c682d7850325ce17dda8a661cddf | /recipe_project/settings.py | 8a7ba3456530dfed055a533ca86bf3ca8a332ef9 | [] | no_license | gprophete/recipe-app | 077985d69d1b6ce2180a6788f34ef35e274eac71 | bbb9689a227a75d287fffa1b74a4fd5027305577 | refs/heads/master | 2023-08-05T16:30:40.852179 | 2020-07-07T02:12:20 | 2020-07-07T02:12:20 | 269,709,653 | 0 | 0 | null | 2021-09-22T19:19:15 | 2020-06-05T16:52:25 | Python | UTF-8 | Python | false | false | 3,428 | py | """
Django settings for recipe_project project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"garlyprophete30@gmail.com"
] | garlyprophete30@gmail.com |
e1c3075f706667755ba59b0caaaedb0ba5b258d1 | 039c28f0903a2b87ef1439a991e7c2e1d898ab48 | /pyneqsys/_release.py | a9edcd4240cbd989149d9c51908621ebb04cd636 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andim/pyneqsys | f6ddae44ef0f0fdc41725b1cc6007834b790a4fa | f22fb840692a174826bd4d0a03a52e41e63d062f | refs/heads/master | 2021-05-05T19:22:59.256424 | 2018-01-08T23:23:33 | 2018-01-08T23:23:33 | 117,774,582 | 0 | 0 | null | 2018-01-17T02:53:21 | 2018-01-17T02:53:21 | null | UTF-8 | Python | false | false | 26 | py | __version__ = '0.6.0.git'
| [
"bjodah@gmail.com"
] | bjodah@gmail.com |
eb21a0504a080bc96b70fc8e4b53bf0452b92757 | b987d52d1b8af7c6c960a41c4255839fd3d06965 | /polls/models.py | f5ee8656a1e5c1dd7088ec58ee1489adec400c08 | [] | no_license | ptv6ug/mysite | 1c70b30bd07426a6b6483ca86b1144f20cb0e5d3 | eba2a35c4c748a7362e2fef9b9af9bfd9719a46a | refs/heads/master | 2020-07-21T20:11:42.708492 | 2019-09-07T13:11:58 | 2019-09-07T13:11:58 | 206,964,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.db import models
class Message(models.Model):
message_text = models.CharField(max_length=200)
| [
"ptv6ug@virginia.edu"
] | ptv6ug@virginia.edu |
caac65c65a43cc7e4e65f49fac76e97c91f5f5e5 | b04dfd31c549ca467a90d5f4a8369a8211f08877 | /change.py | 9994a116c7ac2dc86f61821fdd893bd7bf7ccec2 | [] | no_license | shyamalamanikandan/text_analysis | bacd08d90587a0a971cfcce8c4e324dc775b99c9 | 9c0974651d6c6823fd19c2456823ec324250bbd7 | refs/heads/master | 2020-08-30T17:56:18.849973 | 2019-10-30T05:51:43 | 2019-10-30T05:51:43 | 218,450,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,293 | py | from flask import Flask, redirect, url_for, session, request, render_template, flash, Markup
from flask_oauth import OAuth
from flask import Flask, redirect, url_for, session, request, jsonify, Response,render_template
from flask import Flask, render_template, request
import pymysql.cursors
from urllib.parse impor... | [
"noreply@github.com"
] | noreply@github.com |
af6a4d7875dce4fcc84a7cc85f079766c0a1f9e3 | 2accc7c44180ea8666ae676484543988a9e1c4f1 | /13_dvojrozmerna_tabulka.py | 143b0eab9903cef2552f9bf6272e718791e25698 | [] | no_license | SKMHv/TEST | e7145f2bfc6221bfeacd5d20a0d98c2db5ee804e | 98709d1a49ceaa6ba5e68c396796fb6554497ba2 | refs/heads/master | 2020-03-28T03:08:33.282343 | 2019-12-07T22:15:49 | 2019-12-07T22:15:49 | 147,620,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,508 | py |
# ---------------------------------
# Tabuľka farieb
# ----------------------------------
# Ukážme dve malé aplikácie, v ktorých vytvoríme dvojrozmerný zoznam náhodných farieb,
# potom ho vykreslíme do grafickej plochy ako postupnosť malých farebných štvorčekov
# - vznikne farebná mozaika a na záver to otestujeme kli... | [
"michal.hvila@gmail.com"
] | michal.hvila@gmail.com |
251306cfe757fabdd3df796e9bfe8dfff0b75629 | 528f37bb7cdd2d9275acbe81505df8aa248182a9 | /modules/tests/inv/create_item.py | 8bf15d4b4493fde7f37eef2ee2b39731325ef371 | [
"MIT"
] | permissive | flavour/rgims | 6b6f3cbacc395f2d7e0918237ac71defd40735b5 | 469717166c98cd5b6db9e870ce1eeac2a334a457 | refs/heads/master | 2021-01-16T22:10:20.051617 | 2013-12-03T09:19:00 | 2013-12-03T09:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | # -*- coding: utf-8 -*-
""" Sahana Eden Automated Tests - INV005 Create Item
@copyright: 2011-2012 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to dea... | [
"snpabilonia@dswd.gov.ph"
] | snpabilonia@dswd.gov.ph |
9e5b0d298bfa908f58d246f53598ca839a3cd541 | 1c98b39a1b835320dfdd0b14de6000a7c5b8fd10 | /tests/test_version.py | 246d00edcf41b47ac2cfd679d06d2c2decccb105 | [
"MIT"
] | permissive | tdegeus/GMatElastoPlasticQPot | 8a5b8ebdbf9b6a97b356c9140d2cb802541fa422 | a88ec9df47aceb21571f76120e8ebbd27b5c84e8 | refs/heads/main | 2022-12-20T19:52:00.445921 | 2022-12-09T14:30:24 | 2022-12-09T14:51:29 | 128,232,413 | 0 | 0 | MIT | 2022-12-09T14:51:31 | 2018-04-05T16:18:05 | C++ | UTF-8 | Python | false | false | 563 | py | import unittest
import GMatElastoPlasticQPot as gmat
class Test_main(unittest.TestCase):
""" """
def test_version_dependencies(self):
deps = gmat.version_dependencies()
deps = [i.split("=")[0] for i in deps]
self.assertTrue("gmatelastoplasticqpot" in deps)
self.assertTrue("... | [
"tdegeus@users.noreply.github.com"
] | tdegeus@users.noreply.github.com |
6c965678baa7cebf2a03764ddb7523795f47ebf2 | 1885e952aa4a89f8b417b4c2e70b91bf1df887ff | /ABC096/A.py | cc0a107e3cc810c92a52750a636bff76ae2ca381 | [] | no_license | takumiw/AtCoder | 01ed45b4d537a42e1120b1769fe4eff86a8e4406 | 23b9c89f07db8dd5b5345d7b40a4bae6762b2119 | refs/heads/master | 2021-07-10T12:01:32.401438 | 2020-06-27T14:07:17 | 2020-06-27T14:07:17 | 158,206,535 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | a, b = map(int, input().split())
if b >= a:
print(a)
else:
print(a-1) | [
"w.tak.1229@gmail.com"
] | w.tak.1229@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.