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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2813c76fd8142f01dc47556346966449e64e5b7 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4013/codes/1838_2601.py | 417e44203e37d9917293fd0ef2f0c8f985410770 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | """
Lab 07 – Exercicio 01
@author: IComp / UFAM
SISTEMAS DE EQUACOES LINEARES -- FRUTAS
"""
from numpy import *
from numpy.linalg import *
# Matriz do sistema linear (informado no enunciado)
frutas = array([[3 ,12 ,1 ], [12 ,0 ,2 ], [0 ,2 ,3 ]])
# Vetor de constantes (informado no enunciado)
compras = array([23.6, 5... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
870edba20cc5a19b54a779e1a8e80d8ad968eff2 | a0c121641badbdd4440b1725628657272eb77a9a | /backend/starterkit_react_nat_4177/settings.py | 823d8efd44f33d221d84251639e65afbe724a8f6 | [] | no_license | crowdbotics-apps/starterkit-react-nat-4177 | 95c098827df45d035a8ab33ea68a886579eaa3b7 | e49e8bbeb5acbc3581ce1d44e99c8885ba0bfe0f | refs/heads/master | 2022-12-29T17:11:36.694888 | 2019-06-03T10:48:49 | 2019-06-03T10:48:49 | 189,987,096 | 0 | 0 | null | 2022-12-09T04:56:26 | 2019-06-03T10:48:34 | Python | UTF-8 | Python | false | false | 4,603 | py | """
Django settings for starterkit_react_nat_4177 project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3ecced8742b8c25e2c9345120b6670a7cb202896 | de382219afb2a5e5a8d0dae18d16d08d0f8a48dc | /Zvimzh0oyR5qrWAc/X2nIVduS4LOl7Goh.py | 44e90283390b9e0ac041b20be8dff02821e2e0f0 | [] | no_license | urlib/OEV04H | 1d862dfef7ec693bf31dd50e5c05b0bcefed423a | 9f97b73481c3b6a0769ee4e3f07fbe4229be2b13 | refs/heads/master | 2021-05-19T18:12:13.600901 | 2020-04-15T03:21:34 | 2020-04-15T03:21:34 | 252,057,207 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,673 | py | 𬒅攌謏𭣳辿쉝𗀡𬆊𫙭𣂐츘𘁞𗉛𩞮궧ᖯ阳㎢𨏻𤍆𦟕쵧裏𥙿𬞦﹡𗫉㟆𭪉𤑔嵠岚𩞩屍옃矑䊎𘤓納挎𝕛᯲ꖨ𗩺𡧚ट𡨀颗㙓𩠗ꜽ𫳓픧𫶈𪷮崡𣎈𭓢𠼸𤺁㳈𦣦𤕢𭀦𢒧ൣ㹎𭗪𦹘嬳𩔠𖼺𮉸𨾔𤎽𢠪刘𖫥爰𦨦䜔𬓢臙鷖鎅鱙𪇿𮬍𫌬甿䲇䣻𡷀𪉳𨀶𗮣𪬍𛉸𮚪祩ᵤ𫳨了𮔙𭹬𢗨闪좆𩽨𤶏𫳧쀖𬖋𗼎㸻𬻪𫵴𘦍吮𣣮𭶭虪瞬佛𬍤𘃚⋳𬝑𤶩𨐍𫈅𫾣⥋𢣕탠𬃮煍𮄑𨮉溪敖𤺍𣟿ᛩ𒈠𮣌밌𢸇灀𥸬Ȅ듨洑🞵𧿳䯳𥪳𧗩𤧤𫶎𗦏ݐ𡧌𢻂퐼𞢝𑘥𭐁欪撢𣿋𦭡𧰅𘪢~ᾒ𖢮𤯟󠇦𝣾𤗨𢨬𓊟𨄔𤁺𥡶𢶑𫮷𐚨㩯䆴壁𪲓𐋳𣦂𭯰𡊯𡵇... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
b430db917abd39393d7a014d363f4c1942deecfc | 1e12a6f1957dc47c50845a39d626ea9a1a541268 | /backend/articles_find/apps.py | c4222de14623a6ac8722d1b83e53a1c3fd53e12b | [] | no_license | sungguenja/fincat-findog | 6e7d276bcd8853300916987f70b0d159ba5cff4d | c62d17f64f4f1e8d86a982feb4842d3729b587c5 | refs/heads/master | 2023-01-03T02:11:56.612927 | 2020-10-24T16:47:48 | 2020-10-24T16:47:48 | 306,927,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.apps import AppConfig
class ArticlesFindConfig(AppConfig):
name = 'articles_find'
| [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
2774ca931c4fb36f4fd5bba0927a1f855829e46d | 5deac2929f33b8f59d1a24cfc9935e129af03d55 | /client/views.py | 2c53f41ed4788386cd46326c3250701a9b12bb5f | [] | no_license | limchyo/my-baemin-project | 7f7d2ba4c2f3ea21021f0178b329fc9277da2dff | 8ca367f93862cd68665823be97e0a939abe8eca5 | refs/heads/master | 2020-04-02T05:21:33.089407 | 2019-05-06T02:57:48 | 2019-05-06T02:57:48 | 154,070,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login as auth_login
from django.contrib.auth.models import User, Group
from partner.models import Partner, Menu
from .models import Client, Order, OrderItem
# Create your views here.
def index(request):
partner_list = Partn... | [
"limchyo"
] | limchyo |
f52ee5a4aaa0914d04d664c4dcb82b28a89d86dc | 88de1855cddc294bf7e23e000738b97e2ce8fe5d | /peek_core_user/tuples/UserListItemTuple.py | 5a752e215948693949e21ff7c1bb1a8f70d8c6ef | [] | no_license | Synerty/peek-core-user | cea121a5bc37552055eff7d9c25e621531435631 | 89c9b782a9f5c7ae042a1498062c30cc07efa8c8 | refs/heads/master | 2020-03-18T17:07:18.765974 | 2020-02-24T03:32:40 | 2020-02-24T03:32:40 | 135,007,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | import logging
from peek_core_user._private.PluginNames import userPluginTuplePrefix
from vortex.Tuple import addTupleType, Tuple, TupleField
logger = logging.getLogger(__name__)
@addTupleType
class UserListItemTuple(Tuple):
__tupleType__ = userPluginTuplePrefix + "UserListItemTuple"
#: The unique ID of t... | [
"jarrod.chesney@synerty.com"
] | jarrod.chesney@synerty.com |
673b373ff9bf06ec5086e31be8791ea1234a373d | e42e74393abeea9bd0a5ec8ee9dc7eb160495105 | /videos/urls.py | 445b39f6fcf6458dff8cd6ad434e6140979fbb6b | [] | no_license | Raymond26/corsaclub | 73850fcd23ec3231bfa6a5df86d9d521dbee69c2 | 54e3c4043208f9cf43500e16ce288a284a9cea4f | refs/heads/master | 2022-12-16T03:28:44.043449 | 2017-10-30T00:06:38 | 2017-10-30T00:06:38 | 101,708,689 | 0 | 0 | null | 2022-12-08T00:40:25 | 2017-08-29T02:17:00 | Python | UTF-8 | Python | false | false | 155 | py | from django.conf.urls import url
from . import views
app_name = 'videos'
urlpatterns = [
url(r'^$', views.VideosIndexView.as_view(), name='index'),
] | [
"raymond.lau.ca@gmail.com"
] | raymond.lau.ca@gmail.com |
9b4b1d5db36bd08721a63faf53a5395392982993 | 33c929360ed609f8b636b449b6c9ae58187c9145 | /shop/migrations/0001_initial.py | fd36d086aba2a0b3c5faa81a3b51e07c065b5186 | [] | no_license | moktan5/sample1 | 3a7fd5e030fd04368970aa8b5046636c40c59200 | f551d033c1fef16cc47bc27dcbbbc2f249bcf6ff | refs/heads/master | 2020-11-27T10:06:04.452986 | 2019-12-23T03:16:57 | 2019-12-23T03:16:57 | 229,394,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # Generated by Django 3.0 on 2019-12-18 10:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
('id', models.AutoField... | [
"moktanroshan05@gmail.com"
] | moktanroshan05@gmail.com |
60a24d1ccad8ea503a5ddf179a3aed4655bdf401 | 4da168049a9a9e088f16d5b90b252f8f0e42a832 | /deepfillv2-grayscale/utils.py | 12d546a73cdd2d8c389544f3ffecb279955aab81 | [] | no_license | Fourier-Times/deepfillv2 | 72899d59cf2b1f960531a3850bb2e957f3689bd3 | 84a13c0cc06b98627a5c6060efe9fe852e010036 | refs/heads/master | 2023-05-10T07:47:24.458925 | 2021-06-20T14:46:48 | 2021-06-20T14:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | import os
import numpy as np
import cv2
import torch
import torch.nn as nn
import torchvision as tv
import network
import dataset
# ----------------------------------------
# Network
# ----------------------------------------
def create_generator(opt):
# Initialize the networks
... | [
"noreply@github.com"
] | Fourier-Times.noreply@github.com |
084d4d5e10e126fa20374f8005d8e413b52c1756 | 699d97058692216d3db3f6ac69da443baf79a6e0 | /setup.py | d1755392be67b0068934093a3c81fe3cc2c734a4 | [] | no_license | TheHeadlessSourceMan/imageTools | 137d7cab124226fa039d51e65076c60999abce10 | 7fc9cc388b677401b78514897bef4c88ce8a190a | refs/heads/master | 2022-10-09T00:55:35.787079 | 2020-06-10T02:26:40 | 2020-06-10T02:26:40 | 271,157,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | # This is the setup info for the python installer.
# You probably don't need to do anything with it directly.
# Just run make and it will be used to create a distributable package
# for more info on how this works, see:
# http://wheel.readthedocs.org/en/latest/
# and/or
# http://pythonwheels.com
from setuptool... | [
"theheadlesssourceman@gmail.com"
] | theheadlesssourceman@gmail.com |
1fe8813a734b75cd63eb54ad938df203434fced9 | 1a61ff08d483266b0a5cceed38271db710ab7352 | /tests/type-inference/success/unit/OperatorEqualA.dhall | 18bc42d87b1f78ab5cd29bbf13400d2470a88253 | [
"BSD-2-Clause"
] | permissive | dhall-lang/dhall-lang | 663ea77bcccf9507bc0f20ef8deec6f0518ab4f9 | f42d5552b6d20095df8e6e639658edfc24d16c8b | refs/heads/master | 2023-09-03T20:31:00.311747 | 2023-08-29T15:04:57 | 2023-08-29T15:04:57 | 102,303,588 | 4,086 | 213 | BSD-3-Clause | 2023-09-10T18:57:54 | 2017-09-04T00:41:19 | Dhall | UTF-8 | Python | false | false | 14 | dhall | True == False
| [
"noreply@github.com"
] | dhall-lang.noreply@github.com |
ed13a3278d74c0c75a3e185334500165d46be84a | 1f74b25dd293694f61c2b2636efca4f3969263cc | /imd_weather/history.py | 72f88def21913ebf93b1293a6d562b290dcd0f3d | [
"MIT"
] | permissive | itzmeanjan/imd_weather | 45da54d85d40119533e62534019149dcd44c389b | f58d63ef519dfa20a7168020ea988b79f49d14d7 | refs/heads/master | 2023-06-17T03:13:48.058019 | 2023-05-25T14:04:01 | 2023-05-25T14:04:01 | 162,822,714 | 0 | 2 | MIT | 2023-05-22T22:17:11 | 2018-12-22T15:38:23 | Python | UTF-8 | Python | false | false | 2,842 | py | #!/usr/bin/python3
from __future__ import annotations
from re import compile as reg_compile
from typing import Dict, Any
from datetime import time, datetime
class History(object):
def __init__(self, _max: str, departFromMax: str, _min: str, departFromMin: str, rainfall: str, relativeHumidityFirst: str, relativeH... | [
"anjanroy@yandex.com"
] | anjanroy@yandex.com |
af7dcd0f4b002260e71a2aad5f674a804fdb83f0 | 5687800e74bffe1bba4dea31028db8815790572e | /Python/nextBiggerInt.py | eab090c4ea115d53461e09f2c1a61ccabb7c22ef | [] | no_license | CutiePi/CodeWars | 9fe7661e6c458f13654c12bf517bd9a3cb371c7d | 7a876a2984a89873d0342500117d7b9a59152755 | refs/heads/master | 2022-05-30T04:42:33.396831 | 2022-05-20T13:16:44 | 2022-05-20T13:16:44 | 73,415,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import math
# Find biggest number from right to left then promote once 1234567890
# 59884848459853 59884848498535 should equal 59884848483559
# algo to do
# find when next is smaller
# then take smallest previous that is bigger and replace
# take rest and order asc
def next_bigger(n):
number = list(str(n))
... | [
"jasmin.lapointe@hotmail.ca"
] | jasmin.lapointe@hotmail.ca |
da68b8b757d462db2ee1c64692840a2c100d8c73 | 1111d9c9c1e6013d4c669f2cacee54c25cb0019a | /utils/utils.py | b3eb9412583cb573b7303dc392087f84d2aee9ce | [] | no_license | patconrey/18-660-project | c35fef61ade051ef505600cdb7a477ffbdd9ddd6 | 023c9ff4cce343a8311bb9542a2d8a1713b6a485 | refs/heads/main | 2023-05-03T08:10:20.285572 | 2021-05-13T17:28:20 | 2021-05-13T17:28:20 | 359,492,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | import sys
from functools import wraps
import logging
import os
import random
import time
from contextlib import contextmanager
from typing import Union
import numpy as np
import torch
def seed_everything(seed=1234):
random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
np.random.seed(seed)
torc... | [
"patrickconrey@gmail.com"
] | patrickconrey@gmail.com |
87da12e139d6fe7b99ace7e9feadfaf2cff2a968 | d50685a3f3d612349b1f6627ed8b807f0eec3095 | /db/MysqlManage.py | 6b710d45df57033dcd184a6d37d4b0cde7742ed0 | [] | no_license | Erich6917/python_littlespider | b312c5d018bce17d1c45769e59243c9490e46c63 | 062206f0858e797945ce50fb019a1dad200cccb4 | refs/heads/master | 2023-02-12T23:22:27.352262 | 2021-01-05T06:21:20 | 2021-01-05T06:21:20 | 113,631,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,075 | py | # -*- coding: utf-8 -*-
# @Time : 2017/9/18
# @Author : LIYUAN134
# @Site :
# @File : MysqlManage.py
# @Commment: Mysql数据操作管理
# 1、执行带参数的SQL时,请先用sql语句指定需要输入的条件列表,然后再用tuple/list进行条件批配
# 2、在格式SQL中不需要使用引号指定数据类型,系统会根据输入参数自动识别
# 3、在输入的值中不需要使用转意函数,系统会自动处理
# import Config
import sys
im... | [
"1065120559@qq.com"
] | 1065120559@qq.com |
0c8caff3e208a8d269df9db73e7151532349c43c | e2f275b4177e421fdaaabf9d3752bdc0c12c7e68 | /df_user/models.py | c313cb3ddcb3e8f1021923e738cb40ee99fdc7d6 | [] | no_license | qcuser-y/dailyfreash | 20cd081e796e2d869b39d16ced6d5c8e87df3f6f | d467eb26f3c2b981efc22694dab70dbf677be2f1 | refs/heads/master | 2020-04-13T14:30:03.235494 | 2018-12-27T08:20:50 | 2018-12-27T08:20:50 | 163,265,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.db import models
from django.db import models
class UserInfo(models.Model):
uname = models.CharField(max_length=20)
upwd = models.CharField(max_length=40)
uemail = models.CharField(max_length=30)
ushou = models.CharField(max_length=20, default='')
uaddress = models.CharField... | [
"root@host.localdomain"
] | root@host.localdomain |
a7d86d144ebf9a64bf7cce02b2d1eb5c1da7e4c8 | 67084751337f327092049a61b6d8c630cd3767de | /scrape-Wikipedia-using-speech-recognition/Scrape_Wikipedia_using_speech_recognition.py | f5803f26b01f00a937caf05176433f64a4d04db5 | [
"MIT"
] | permissive | habereet/awesomeScripts | 0f0a33d9a35de8b4449c1263db4407beaf0178fa | 2d77f3619314aa7840fed57e0cf451fe5c1a70a9 | refs/heads/master | 2023-01-05T01:29:30.063154 | 2020-10-31T00:36:16 | 2020-10-31T00:36:16 | 303,189,908 | 0 | 0 | MIT | 2020-10-11T18:48:07 | 2020-10-11T18:48:06 | null | UTF-8 | Python | false | false | 1,158 | py | import pyttsx3
import speech_recognition as SR
import wikipedia
import sys
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
# for voice in voices:
# print(voice.id)
# select voice among the available options
# engine.setProperty('voice', voices[1].id)
def speak(audio):
engine.say(audio)
... | [
"noreply@github.com"
] | habereet.noreply@github.com |
2ae864419014faa9e9d23903848f3729be4c63cd | f0b7e4eaccd93cc734afeb161eba4cadc9d8cbc5 | /mgl2d/graphics/sprite.py | 8eae23feb724be6b41eeb7004ee1cafd860e5cfd | [
"MIT"
] | permissive | cklein/mgl2d | 0f85cbf16df629cec98f637d4692e81ce6fa7f9a | 04a951f5070b6d1d2412b8853f80ab8a39f3b662 | refs/heads/master | 2021-04-06T20:08:21.143777 | 2018-03-13T21:28:59 | 2018-03-13T21:28:59 | 125,385,684 | 0 | 0 | MIT | 2018-03-15T15:13:15 | 2018-03-15T15:13:15 | null | UTF-8 | Python | false | false | 6,747 | py | from mgl2d.graphics.frames_store import FramesStore
from mgl2d.graphics.quad_drawable import QuadDrawable
from mgl2d.math.vector2 import Vector2
class Sprite:
DEBUG = False
def __init__(self, frames_store):
self._frames_store = frames_store
self._x = 0
self._y = 0
self._flags ... | [
"massimiliano.pesce@gmail.com"
] | massimiliano.pesce@gmail.com |
5c202747363960a6969c0c91b02ef30d046a2936 | 0b53affd1830ce1a9732d8d74900ef3711327f81 | /rango/forms.py | 63887e5209b733bb07ac7256ebaff8a6f51c1b06 | [] | no_license | Ross-Gardiner/tango_with_django_project | cee52b71425f91a02195096820561cb4c85104c0 | 4a8e7f1eaf6979473530dc468dff96322315ae4a | refs/heads/master | 2021-05-09T23:48:57.023274 | 2018-02-08T23:09:58 | 2018-02-08T23:09:58 | 117,265,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | from django import forms
from rango.models import Page,Category,UserProfile
from django.contrib.auth.models import User
class CategoryForm(forms.ModelForm):
name = forms.CharField(max_length=128,
help_text="Please enter the category name.")
views = forms.IntegerField(widget=forms.Hi... | [
"2190583g@student.gla.ac.uk"
] | 2190583g@student.gla.ac.uk |
e0292b98e66842b45678a1d8ec2d8c935ded43c4 | 33ed1cdd93ff1c2676a6fa7d08dc44ed74686348 | /build.py | 50e7783ea8f082207eb919db1ec53fad967f79e3 | [
"Apache-2.0"
] | permissive | CrackerCat/sspanel-mining | c623e77a8984dc92188f07acea96f7b8904fcc0f | 3d7f3788d79a142b901effb6be3dc8e8be4887da | refs/heads/main | 2023-08-19T20:28:57.117188 | 2021-10-21T01:44:41 | 2021-10-21T01:44:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | # -*- coding: utf-8 -*-
# Time : 2021/10/6 18:38
# Author : QIN2DIM
# Github : https://github.com/QIN2DIM
# Description:
import os
import shlex
import requests
from bs4 import BeautifulSoup
THIS_WALK = "."
CHROMEDRIVER_UNZIP_PATH = "./chromedriver"
def shell_echo(cmd: str, mode="default"):
"""
... | [
"62018067+QIN2DIM@users.noreply.github.com"
] | 62018067+QIN2DIM@users.noreply.github.com |
5e5b2a57235da9ce4d1a85ac129dfbfba8fcc7f7 | fd11d84e89814e94f781a307e59c3cf6d1de9f3c | /nomadgram/images/migrations/0005_auto_20181026_1930.py | cb286addd1bf3149c00342c34fe108bda32ba0d8 | [
"MIT"
] | permissive | eshellster/Cloning-instagram | 089d268214f892d999628fb81975e4d55631bb9c | da6c7037629697238948ce22545c8299f25698ba | refs/heads/master | 2021-11-20T09:33:21.523454 | 2018-12-27T07:10:44 | 2018-12-27T07:10:44 | 140,681,852 | 0 | 0 | MIT | 2021-09-08T00:09:06 | 2018-07-12T08:04:57 | Python | UTF-8 | Python | false | false | 876 | py | # Generated by Django 2.0.7 on 2018-10-26 10:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('images', '0004_auto_2... | [
"eshellster@gmail.com"
] | eshellster@gmail.com |
43f932da55f2fccf7ae22373fefcc94660462820 | c51010ae8096aa515a4881e4d6344b75004c0d8c | /lobbyists/models.py | 47a2916f744cec6697a984b647a210443d1cd02f | [
"BSD-2-Clause"
] | permissive | nirfuzz/Open-Knesset | f4c74b0b3c838c0921ec024294124fb71884337d | 5927f4f0b72f18a980571f3f93f423d45eff6280 | refs/heads/master | 2020-12-24T15:22:16.199979 | 2014-06-30T18:31:57 | 2014-06-30T18:31:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,739 | py | # encoding: utf-8
from django.db import models
from django.core.cache import cache
from django.utils.functional import cached_property
from django.utils.translation import ugettext as _
class LobbyistHistoryManager(models.Manager):
def latest(self):
return self.filter(scrape_time__isnull=False).latest('s... | [
"ori@uumpa.com"
] | ori@uumpa.com |
f85b0044003de1bf8d34b777e0382b5af6b38743 | bb7d79d220f51016523fe04dcf83486fba874c4f | /ConfFile_cfg_kLong_directional_ArabellaSample.py | 37784c4b4f755f083854101bf68df21fbb80a460 | [] | no_license | Saptaparna/FastTiming | 019f77abe1ff8b2f0aaa533ac97640e48970ce93 | bafa435469ae2eb8a77f461f7a04547101d6fce0 | refs/heads/master | 2021-12-23T09:50:25.382581 | 2021-12-03T19:44:05 | 2021-12-03T19:44:05 | 53,109,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,019 | py | import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.Config as cms
from RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi import dEdX_weights, HGCalRecHit
from RecoLocalCalo.HGCalRecProducers.HGCalUncalibRecHit_cfi import HGCalUncalibRecHit
from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import ... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
99a56220bba3c76fdaed603a25bf16557645d756 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_BoldBB_2.py | 9698bb482d48752cc9d6fae3bd21070072767ccf | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 628 | py | def flip(string, pos):
tran = {"+":"-","-":"+"}
return "".join(tran[i] for i in reversed(string[:pos])) + string[pos:]
def count(l, check = "+"):
i = 0
while "-" in l and check in l:
i += 1
for k, c in enumerate(l):
if c == check:
l = flip(l, k)
break
check = tran[check]
if check == ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
225768ed7fa42a7d5703faabb806f47dd3a93b87 | e231faae5d375db058cc563fb385d9cd486148dd | /core/tests/__init__.py | b5b26d3e443678de38563f0f387ff522cfd5710e | [] | no_license | Smarsh/norc | 0cea9cf2ed9860d4ef2d587a6fb173ca4f02c591 | c3608c97f6d6c292689e3d693c2a3e211df24138 | refs/heads/master | 2020-12-24T22:06:09.765846 | 2013-04-05T18:12:00 | 2013-04-05T18:12:00 | 9,247,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
from task_test import *
from job_test import *
from schedule_test import *
from scheduler_test import *
from executor_test import *
from queue_test import *
from norc import settings
settings.BACKUP_SYSTEM = None
| [
"elnaril@gmail.com"
] | elnaril@gmail.com |
007be06c8d58b684c8d500fa0c16caacf908a6fd | 4f0fdcd1e71ae7b5cb764f3d7a11fd27446ccf2e | /python_scripts/UI_scripts/display_counterpy.py | 77937021e6e3ea88cd47cca27834fe2de52365a8 | [] | no_license | kedartatwawadi/socket_programming_test | 0c7313179850ed9b8932132aaf9990901e2e4c3b | 392741c603b3114ff6dc11125befb02e78e55c51 | refs/heads/main | 2023-03-03T04:38:51.655380 | 2021-02-12T03:48:49 | 2021-02-12T03:48:49 | 334,535,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,784 | py | #!/usr/bin/env python3
# Filename: pycalc.py
"""PyCalc is a simple calculator built using Python and PyQt5."""
import sys
# Import QApplication and the required widgets from PyQt5.QtWidgets
from PyQt5.QtWidgets import QApplication, QToolBar, QAction
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWidgets impor... | [
"kedar@deckard.attlocal.net"
] | kedar@deckard.attlocal.net |
600d4d27dd1fe477a93cb8d078bc980329fcd54d | c968bf29ab28c8650091fefaeb7b8839924c765b | /Homework/2/Week2_quiz.py | 32943ae4c3b137070dca9b6df60ed00d25514ee4 | [] | no_license | rohit-rk/Mongodb | e3b81a2a96903d6dbd7e5c5bcbe47e3ba99c4c04 | b22133b747f8dd5e4ed4e7e5236f59b7ed236116 | refs/heads/master | 2020-04-06T04:01:52.577405 | 2017-03-08T15:40:32 | 2017-03-08T15:40:32 | 83,071,204 | 0 | 0 | null | 2017-03-02T13:23:55 | 2017-02-24T18:32:31 | Python | UTF-8 | Python | false | false | 9,627 | py | # -*- coding: utf-8 -*-
# What does the following fragment of JavaScript output?
x = { "a" : 1 };
y = "a";
x[y]++;
print(x.a);
# 2
# Which of the following are types available in BSON?
# Strings
# Floating-point numbers
# Arrays
# Objects (Subdocuments)
# Timestamps
# insert a document into the fruit collection with ... | [
"rohitkumar.a255@gmail.com"
] | rohitkumar.a255@gmail.com |
06918e9676f2e999c618f0b098f8a258b6e9c580 | b796121152a74b1d14feea77a5e038b133cc841d | /tests/HandTest.py | a6a23ed57c64359e13c66646bac342147eb0df2a | [] | no_license | jgreenwd/poker_cards | 552a7eea5e87ed4099cb505bf153726ef7376985 | 095e7668017acf3ac1c4df65c25aedc916726adb | refs/heads/main | 2023-02-12T23:07:56.562042 | 2021-01-01T22:01:13 | 2021-01-01T22:01:13 | 323,415,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,518 | py | import unittest
from Hand import Hand
from Card import Card
from Deck import Deck
from Rank import Rank
deck = Deck()
# line 0: hand in order low to high
# line 1: hand with same ranks reversed (different suits)
# line 2: hand with same rank, but line2 > line1, ie. line2 wins in a tie
test_hands = [
# 5 card hand... | [
"noreply@github.com"
] | jgreenwd.noreply@github.com |
3e88b814ba7e591abcb2a5d756d5401245c21791 | 79e978f6077bbbd9bf2efd531c39340904c5ea22 | /web/celeree.py | 8402ae5a3de8ba6d3da22bc5bf35d93631cc380c | [] | no_license | zlhtech/offline-tube | f370f00d0449bdd83e02f7cabd84892a9d65e05b | c44b5f2a52c3e49eebed4f4b6f06688afa77f274 | refs/heads/master | 2023-08-04T08:11:30.920390 | 2018-05-12T13:49:07 | 2018-05-12T13:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from celery import Celery
celery = Celery('offline_tube')
celery.config_from_object('celeryconfig')
if __name__ == '__main__':
celery.start()
| [
"oluwafemisule@outlook.com"
] | oluwafemisule@outlook.com |
b6cc49ba33f7daf353e35e8e9ac6327d62ab1264 | 6607f5738aaaa3c5fbe093ccf14e5e471582a13e | /login.py | a9ceb8aff1650f7a5ff518729b4cf693e3eba1ec | [] | no_license | JuanROrellana/python-basics-flask | 873bfdba969de37fc63fe0eabf4fd3886bd66249 | bfa85bb68b5bd3dabcb254e88f2068cebb2ba599 | refs/heads/master | 2021-01-03T01:39:42.786613 | 2020-02-11T20:51:56 | 2020-02-11T20:51:56 | 239,861,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | def login_user(self):
return 'Login User'
def serve_login_page(self):
return 'Server Login'
| [
"ramirez.orellana.juanjose@gmail.com"
] | ramirez.orellana.juanjose@gmail.com |
c89af64ec49633b3adea6285e6cacd01c9d05bef | 84ca24bebd690b2e1216263223fec1551efd5769 | /pythonProject/Fortran_Wrapper/testing.py | 58ff6dd54bd453d38c5149847288f6795aaffa02 | [] | no_license | syj430/OOP_FEM | 68f66cde90ae6354fe420e30cfd5212706d2dfee | 7703aa6278a939f62a7d20081c4975f8e602c831 | refs/heads/master | 2023-08-09T20:09:56.354958 | 2021-09-10T17:22:33 | 2021-09-10T17:22:33 | 404,578,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import numpy as np
import time
import matmul1
M1 = 80
N1M2 = 300
N2 = 80
a = np.empty((M1,N1M2), dtype=np.float64)
b = np.empty((N1M2,N1M2), dtype=np.float64)
c = np.empty((M1,M1), dtype=np.float64)
print(a.shape)
print(b.shape)
a[:] = np.random.rand(M1, N1M2)
b[:] = np.random.rand(N1M2, N1M2)
# Numpy
start = time... | [
"syjoun@afdex.com"
] | syjoun@afdex.com |
ca7a638e07652cf131b022c70cbc1ae8da0b6c51 | a17f294c7354f205cc046fc4006d253661d36f79 | /main_cnn.py | e4f7c31b2f995a28a3f1f921f53d2a8f94b8933e | [] | no_license | dipaksingh3343/DeepLearningWithDevops | 01715cead7a4a651e66998828f63bee03de0158f | 771e262b807cdf792c86f53ec58c9317ea873d70 | refs/heads/master | 2022-11-29T09:30:30.146551 | 2020-07-30T11:18:17 | 2020-07-30T11:18:17 | 283,255,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from keras.datasets import mnist
# In[2]:
(x_train, y_train), (x_test, y_test) = mnist.load_data()
# In[3]:
img=x_train[0]
# In[4]:
img.shape
# In[5]:
img1D=img.reshape(28*28)
# In[6]:
img1D.shape
# In[7]:
... | [
"noreply@github.com"
] | dipaksingh3343.noreply@github.com |
c34178a25574997a13066c4beef46711e69ffd83 | 2426df18047818d1dc6017b3d14ebd0e9971c690 | /data/reddit_scrape_public.py | f69cc40ecbd1ff77162e5ae4753b10d0f8d875bf | [] | no_license | tiffany-chang/reddit-relationships | 966f7bea2fb7ee64f273c5220e5cdcb6587c9b4b | ccf4af4a66515f74d3645f248417bd1e12cea5f3 | refs/heads/master | 2021-05-14T13:39:58.432293 | 2018-01-24T16:34:01 | 2018-01-24T16:34:01 | 116,445,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | import urllib2
import json
import time
import numpy as np
from pandas import Series, DataFrame
import pandas as pd
# by /u/<PutYourUserNameHere>)
hdr = {'User-Agent': 'osx:r/relationships.multiple.results:v1.0 (by /u/<PutYourUserNameHere>)'}
url = 'https://www.reddit.com/r/relationships/top/.json?sort=top&t=all&limit... | [
"9517803+tiffany-chang@users.noreply.github.com"
] | 9517803+tiffany-chang@users.noreply.github.com |
0cd47160e06721dee64ebb63c8f9b77ea59d624d | d8a6d599528a0e2832a57c223042b88f65f1600a | /Project_Codebase/amz_lib/category/views.py | 43f47bfd13c00d667251bfa3a55693376ba9b685 | [] | no_license | BitEater00/NoSQL_Databases | 5e3331f9d52c718ba7d91d14d0370eeb326b50bf | 516fe34405e96dabe07501fb4a2f1c05e0960097 | refs/heads/master | 2023-05-31T04:29:21.532338 | 2021-06-29T21:23:16 | 2021-06-29T21:23:16 | 381,480,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django.shortcuts import render
from django.http.response import HttpResponse
from category.models import AllCategories
from books import datahandler as data
from django.core.paginator import Paginator
# Create your views here.
def allCategories(request):
allCategory = AllCategories.objects.all()
return ... | [
"44523071+BitEater00@users.noreply.github.com"
] | 44523071+BitEater00@users.noreply.github.com |
bb1ac140b97e1c283eb3d9bb3ff321b3583a8eb7 | 57f96c73ce43d1b9992ebc56a0f23111f1182daa | /seznam_kontaktu/migrations/0002_auto_20200405_2233.py | 40c00a36e2c3d1658a15f747d9b7b62fae9accbd | [] | no_license | tolstoj48/family_calendar_webapp | d633e41ec022ebbe13fcbf082c52c21b2656a610 | 6ac40460acf54f1c5bff874d20affee2803b26d0 | refs/heads/master | 2021-09-24T06:13:51.427249 | 2020-04-06T07:26:55 | 2020-04-06T07:26:55 | 253,425,489 | 0 | 0 | null | 2021-09-22T18:51:01 | 2020-04-06T07:27:29 | JavaScript | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0.3 on 2020-04-05 22:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('seznam_kontaktu', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='contact',
options={'permissions': [(... | [
"petr0musil@gmail.com"
] | petr0musil@gmail.com |
516c0959149b6fffb62770111c50b6c72f046797 | 44b53c87ead159356817d866dfd94455854335fd | /v2.0/framework/Matmul/place_in_local.py | 15721aed797c456ce04763751cddbfed7147ac44 | [
"MIT"
] | permissive | dikujepsen/OpenTran | c585a66771e90f2f4c9aa64318250cf15204a20f | af9654fcf55e394e7bece38e59bbdc3dd343f092 | refs/heads/master | 2016-09-15T11:36:27.184235 | 2016-05-08T09:20:07 | 2016-05-08T09:20:07 | 13,697,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,262 | py | import lan
import copy
import ast_buildingblock as ast_bb
import exchange
import collect_gen as cg
import collect_id as ci
import collect_loop as cl
import collect_array as ca
import collect_device as cd
class PlaceInLocal(object):
def __init__(self, ast):
self.ast = ast
self.PlaceInLocalArgs = li... | [
"jepsen@diku.dk"
] | jepsen@diku.dk |
76cb43354a47eb76d21082a004a7c5f2a70c93b3 | cb8781a10172d4b4b2a7216afeefd0856c3b2656 | /cbvemployee/cbvemployee/settings.py | 76395971d64a8b445f02d81a42c480f062919907 | [] | no_license | Padmaraj1983/TZ | de92c853ed66dced8813eaeb836de5b51c81defa | 833f3a9daab3d00096750fe36f680d2db3c94bd1 | refs/heads/master | 2020-04-09T01:54:30.187305 | 2018-11-28T07:05:18 | 2018-11-28T07:05:18 | 159,921,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | """
Django settings for cbvemployee project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"suneetharoyp@gmail.com"
] | suneetharoyp@gmail.com |
de4898756eb7f7ba7d671bacc8f63587b536931c | e7f2bcb55bd355806dc07920a7b439fa65889f39 | /lib/livealive/const.py | 72b288e0c853456e96c9604fa0b87f66d88c4204 | [
"MIT"
] | permissive | kotas/reflec | 128a437c3612258217ff8406ca2b5ac9d85b7d19 | 61aaa003365009c126c537ddb88ce7a4216b23db | refs/heads/master | 2020-05-19T09:14:18.038921 | 2012-07-06T06:30:59 | 2012-07-06T06:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | # -*- coding: utf_8 -*-
u"""
LiveAlive Constants
Licensed under the MIT License.
Copyright (c) 2007-2012 Kota Saito
"""
# アプリケーションのタイトル
APP_NAME = "LiveAlive2"
# アプリケーションのバージョン
APP_VERSION = "2.00"
# アプリケーションの説明
APP_DESCRIPTION = "Live Monitoring Tool."
# アプリケーションのコピーライト表記
APP_COPYRIGHT = "Licen... | [
"kotas.nico@gmail.com"
] | kotas.nico@gmail.com |
6efb2716aa595643de913d1fdcd461425c5293d9 | e164fd9dce5fef093f85ca009f78570ec2b1c492 | /557. Reverse Words in a String III.py | 259f35c9080599d36d74ed6d542a91e1be031dbf | [] | no_license | havenshi/leetcode | 58fde93a1f1cbdd3c2faa9566c00383e5812f3a7 | bcb79f329bcb133e6421db8fc1f4780a4eedec39 | refs/heads/master | 2021-01-22T04:15:23.748793 | 2019-11-30T04:25:54 | 2019-11-30T04:25:54 | 92,447,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
#
# Example 1:
# Input: "Let's take LeetCode contest"
# Output: "s'teL ekat edoCteeL tsetnoc"
# Note: In the string, each word is separated by single space and there wil... | [
"haiwen.shi01@gmail.com"
] | haiwen.shi01@gmail.com |
33080bf8f45a358862c327c90ede0fc3f061c88a | cd36dbcdb8622e5e96fc31623c6b21701259065b | /HW3/Lqr-moritz2.py | d4b7c8e3eaee3cf091f87d4626e39dab2168ca78 | [] | no_license | Gisco93/RL | d0122a2e820e54989319ef3a008043401363df19 | e605739f0a4166627be1fba25c6f5d92f15e93cb | refs/heads/master | 2021-01-11T09:22:58.820424 | 2017-02-14T12:55:21 | 2017-02-14T12:55:21 | 77,140,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | import numpy as np
import matplotlib.pyplot as plt
def lqr(startstate):
#LQR parameter
A_t = np.array([[1, 0.1],[0, 1]])
B_t = np.array([[0],[0.1]])
b_t = np.array([[5],[0]])
Sig_t = 0.01
K_t = np.array([5, 0.3])
k_t =0.3
H_t = 1
T = 50
states = np.zeros((2, T+1))
s... | [
"moritz.fuchs@gmx.net"
] | moritz.fuchs@gmx.net |
a1e787ccb827e52f2efab530901c227d0fa26e7e | bf82c9d79700f96e06f2c8362d0d3b1ba5f0b761 | /config/imagenet_wDAE/miniimagenet_ResNet10CosineClassifier_wDAE_GNN.py | 5ee68f73f28f81a825de1c8e0a853f0cd934c24f | [
"MIT"
] | permissive | legitqx/wDAE_GNN_FewShot | 5337bdc2ae8fe40b29364f3c7de980145d0f5fbb | 987fc4e531846f5376ea3c9d6704556b12a87954 | refs/heads/master | 2021-03-11T04:40:25.973989 | 2020-03-12T14:06:54 | 2020-03-12T14:06:54 | 246,510,370 | 0 | 0 | null | 2020-03-11T08:05:08 | 2020-03-11T08:05:08 | null | UTF-8 | Python | false | false | 1,914 | py | config = {}
# set the parameters related to the training and testing set
nKbase = 64
nKnovel = 16
nExemplars = 5
data_train_opt = {}
data_train_opt['nKnovel'] = nKnovel
data_train_opt['nKbase'] = nKbase
data_train_opt['nExemplars'] = nExemplars
data_train_opt['nTestNovel'] = nKnovel
data_train_opt['nTestBase'] = nKba... | [
"qixun.yeo.2016@sis.smu.edu.sg"
] | qixun.yeo.2016@sis.smu.edu.sg |
f01bb2e680e95f8e666cc08cbcb3a55cce4a97f3 | 647781f4023c218e613299f4f0d2faa77c0acc80 | /to_do_list_app.py | 97a28083627d7def8dafd29892a12981f2d6330e | [
"MIT"
] | permissive | kumar-kislay/python-todo-list | 0370740596107c5b2391f9f875345681f0f5f53d | 2c1bf01edcbf58860f7c85fbf3a9d2a7b2ae73a2 | refs/heads/main | 2023-04-21T08:54:34.580513 | 2021-04-26T11:26:21 | 2021-04-26T11:26:21 | 361,719,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,948 | py | import sys
import json
#Function to display the options during the interactive session
def showMenu():
print("Menu:")
print("1. Add ToDo item(s): ")
print("2. Mark item(s) Complete: ")
print("3. List ToDo item(s): ")
print("4. Update Item Description: ")
print("5. Delete item(s): ")
... | [
"noreply@github.com"
] | kumar-kislay.noreply@github.com |
19cd73807728b415b30310859435f60ba23e3379 | a9fa615aaf7b6691f6e9ddaf24e30f5445e478ca | /Compendio/seed/seed/wsgi.py | 9526e523d12c47c8f15ff28688e904282b92befe | [] | no_license | JoelTorresAr/seed | e18335c8734a2559e2ce2e79791e1e3b3c25c918 | 7546036728ba6d707a85f9dd66cd14a47cd2e461 | refs/heads/master | 2022-12-24T05:39:12.265212 | 2020-09-15T00:23:49 | 2020-09-15T00:23:49 | 295,567,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for seed project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"djoe_torres@hotmail.com"
] | djoe_torres@hotmail.com |
d58976cabe86561eef1a9c28fa15b7b082c6938c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/mmdet/models/bbox_heads/convfc_bbox_head.py | 5cca3932a88d5e380c600fa23bd6f6fea524d4e0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 7,495 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
b568adb25aef060b2d81efb9ed6fdca96d46a9df | 76e2475380e69023572fbd146c0f550142070ee3 | /pickle/pickle_1.py | 67fac612fdee04b61aec05e4aee3a7e0b8ec8e5f | [] | no_license | jangwoni79/python_study | 0d532c79debdba8ae45022f8b55df53b0a03b2eb | 0272a876e94dad1f8c042f26b5c031b1183bc88c | refs/heads/master | 2023-06-29T05:41:46.343868 | 2021-08-09T01:27:36 | 2021-08-09T01:27:36 | 390,630,368 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # 예시1
import pickle
test = ['A', 'B', 'C']
# 피클링
with open ("data.p","wb") as f1:
pickle.dump(test,f1)
# 언피클링
with open ("data.p","rb") as f2:
data = pickle.load(f2)
print(data)
| [
"rejwe79@gmail.com"
] | rejwe79@gmail.com |
a66ee6cfb2ca2e0518cb6e7494603ce0df6d2803 | 8fc754ab703329de87ed91342901b6850424e9c0 | /tdnn-withRemap-noisy/noise-test.py | 1bbbb9306ae0b823261b121e968c531f91ce6084 | [] | no_license | dnth/short-behavior | 6c96756ace147f7072166d2e059fca0563878a6b | 2e5da55038cde15364a02cc8ad6c08c597b825ef | refs/heads/master | 2016-08-05T06:35:46.933028 | 2015-07-14T05:54:42 | 2015-07-14T05:54:42 | 39,056,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,848 | py | import sys
import numpy as np
from pybrain.datasets import SequenceClassificationDataSet
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer, RPropMinusTrainer
from pybrain import LinearLayer, FullConnection, LSTMLayer, BiasUnit, MDLSTMLayer, IdentityConnection, Tanh... | [
"dickson.neoh@gmail.com"
] | dickson.neoh@gmail.com |
8c7bf5bf73e79d46828cbbe6c588feb9896d8e94 | 6a8ec974e602804dadf460106ca5c5f31619a542 | /2/aula2.py | b19d4eb7e6fd34ac207ded54f27128f6e89fa3c3 | [] | no_license | dudu9999/visualizacao-de-dados-com-python | 66f793fab31fa78eae7e59d36b1d1442cea20ba7 | f59dad2d6305d28cef86474e5934bdc317208742 | refs/heads/master | 2022-04-19T16:12:08.838576 | 2020-04-16T04:13:27 | 2020-04-16T04:13:27 | 256,106,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [2, 3, 7, 1, 0]
titulo = 'Grafico de barras'
eixox = 'Eixo X'
eixoY = 'Eixo Y'
plt.title(titulo)
plt.xlabel(eixox)
plt.ylabel(eixoY)
plt.bar(x, y)
plt.show()
| [
"ecaetanocorrea@gmail.com"
] | ecaetanocorrea@gmail.com |
189ffb954c3066643e48fd7004ec72b887ddc157 | 7d27411398df721a045bcd5efc237cd0ace804fc | /blog/migrations/0001_initial.py | 952b81fae11ca0fc4e1bc46bf1bac130ed254c14 | [] | no_license | mrKondor/my-first-blog | 06d680ba1092f8a3feca4af3b65ae31310b20fa9 | bb47d2886795c5a14eb0a53e6a928976fc52694f | refs/heads/master | 2020-04-02T03:27:28.790479 | 2018-11-01T18:28:42 | 2018-11-01T18:28:42 | 153,967,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.9 on 2018-10-21 00:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"acm.96@hotmail.com"
] | acm.96@hotmail.com |
e93a66077853a8f7718493f7385071ed80a5b2c3 | 0df1450fbd2e1f71280df74fd1c1204a2bf0a528 | /app.py | 3759dcbdf8fe45ffce11b56b396e7fad96d5fc3e | [] | no_license | sstone63/Web-Scraping-Project | b0c3ab9d70b50151a1e1386c0b01ae1f71c642c0 | 871b846dfd3ff7d057b0e00d3ee6f03e3708e08f | refs/heads/master | 2020-03-17T18:33:09.252635 | 2018-06-05T00:04:55 | 2018-06-05T00:04:55 | 133,826,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from flask import Flask, render_template, redirect
import mars_scrape
import pymongo
from pymongo import MongoClient
app = Flask(__name__)
conn = 'mongodb://localhost:27017'
client = pymongo.MongoClient(conn)
db = client.mars_database
collection = db.mars_database
@app.route("/")
def home():
scrape_dict = coll... | [
"noreply@github.com"
] | sstone63.noreply@github.com |
86fc8fe386aafcf37802828eabd517f028b8ae5b | 6956bcf1822d88ada307ed5d87c6ea75c1328806 | /src/ur5_joint_publisher/scripts/joint_publisher | 8eea88ba4057eb2b6a3812218cc09cf700a03288 | [] | no_license | ARB92/src | 5661188779c150a66684814258810fe8a7800ea3 | 3f7b21391c8578583e2ffbbf31888c2606c958bb | refs/heads/master | 2023-09-02T12:42:42.829081 | 2021-10-30T12:46:26 | 2021-10-30T12:46:26 | 420,775,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | #! /usr/bin/env python
from ur5_joint_publisher.joint_state_publisher import main
if __name__ == '__main__':
try:
main()
except (KeyboardInterrupt):
exit(1)
| [
"amarnath.bj@gmail.com"
] | amarnath.bj@gmail.com | |
a582bef6f403387d9252b56d50ad2d8bc16c825f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/163/31391/submittedfiles/swamee.py | d8325375f8ac7305f31f3b0a9a2e4f997c781eba | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('Digite f:'))
L=float(input('Digite L:'))
Q=float(input('Digite Q:'))
DeltaH=float(input('Digite DeltaH:'))
v=float(input('Digite v:'))
g=9.81
e=0.000002
D=((8*f*L*Q**2)/(math.pi**2*g*DeltaH))**0.2
Rey=(4*Q)/(math.pi*D*v)
k=0.25/(math.log10((e... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5dda73c1dd335e8521a51e09fb8e9ef5800ac557 | 48eee46f6e852ff15bcb87c9e54991cf64f93ad6 | /src/main.py | bfdae7067145cdde2adabe0b8033502afb1ad78c | [] | no_license | lxjlu/learning-in-games | 9e5645595f6b7ff2731e21d6f5c0f95cf8b84e7e | 3c0f1472d5e41ab2cda7e9e0f5c5afc4f7e3ce4b | refs/heads/master | 2023-09-01T06:51:18.875732 | 2021-01-09T06:20:55 | 2021-01-09T06:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,831 | py | from __future__ import print_function
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.optim.lr_scheduler import StepLR
from loaders import load
import time
import pandas
import sys
from ast import literal_eval
import numpy as np
from torch import... | [
"bchasnov@uw.edu"
] | bchasnov@uw.edu |
c44da2b7fa7cc87fdbd0202f28766b04a22d2ee1 | 3580970221ec8fe048c2af4bdfdab8244396eed8 | /b45.py | b60ec7c50721e96ab2e715e84c8d7a207e5ed3b1 | [] | no_license | Tinasamayasundaram/pythonguvi | ee095083f30d559feeb8ecff020f4b72b9b71094 | ad6fa4e97c248f7feb5c84fbd3226afe2d1e5a46 | refs/heads/master | 2020-05-23T02:02:06.940006 | 2019-06-10T10:46:03 | 2019-06-10T10:46:03 | 186,595,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | nt=input()
print(len(nt))
| [
"noreply@github.com"
] | Tinasamayasundaram.noreply@github.com |
684fb374093b002cc88140d8235ce65434f3a5b0 | afc8923d43a91c515aa748300cca723eb1553435 | /train.py | 1c042688310f82413d0f4cf36d2ae551862343e3 | [
"Apache-2.0"
] | permissive | ruivieira/ccfd-seldon-model | a26c3efdf69049c962061a07a0ab515c562b513e | b92092fcbf9d799070a5d0088ae9b94e7dc694cb | refs/heads/master | 2022-07-08T16:18:05.388348 | 2020-02-21T16:48:28 | 2020-02-21T16:48:28 | 241,993,279 | 0 | 1 | Apache-2.0 | 2022-06-22T01:12:20 | 2020-02-20T21:25:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,307 | py | import pandas as pd
import joblib
from sklearn.ensemble import RandomForestClassifier
df = pd.read_csv('data/creditcard-sample10k.csv')
features_train = df.sample(frac=0.75, random_state=100)
features_test = df[~df.index.isin(features_train.index)]
drop_time_class = ['Time','Class','V1','V2','V5','V6','V7','V8','V9'... | [
"ruidevieira@googlemail.com"
] | ruidevieira@googlemail.com |
754595069b421f37f008de11edd6b533b8242c3a | 26aa9caa09bc98fd696bcc43a1ea5db39a46b5f6 | /Techcators.py | 93122e4982a73fdce822528daa75afc3c19d4840 | [] | no_license | JunXHuang/ForexTrading | b52e5cbca5ac3744dd4249c3ea43b915c8a5d415 | 26c2392fa953c1fdc48fdcb63de75b3eea0728a1 | refs/heads/master | 2021-01-25T08:01:32.737963 | 2017-06-08T03:13:11 | 2017-06-08T03:13:11 | 93,702,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | def MovingAverage(data,start,end):
sum = 0
for i in range(start,end):
sum += float(data['candles'][i]['mid']['c'])
return sum/(end-start)
# need to fix calculations
def RSI(data,period):
gain = 0
loss = 0
RS = 0
for i in range(1,period-1):
temp = float(data['candles'][i]['mi... | [
"junxiong.huang@stonybrook.edu"
] | junxiong.huang@stonybrook.edu |
9e36dc60c6d0a9bf0a5dcf4a23ded56b1cbeb51c | 2dd2a9e695a81c1a880443997a781b779ab8fc7b | /login-system/project/settings.py | 5f87ebd7da2adcec22ba20de773425e342b6cc07 | [
"MIT"
] | permissive | joao-lanzarini/django-login-system | ef3323d728ed17ed5721341183923a13286ce270 | dc29006e90381e3eac351394b85f9dc27ccd0853 | refs/heads/main | 2023-07-05T06:26:29.561700 | 2021-08-24T05:17:03 | 2021-08-24T05:17:03 | 398,180,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"joaovitorlsilva02@gmail.com"
] | joaovitorlsilva02@gmail.com |
95f4891c127e641c0a2fa1cf88e47aea8736a7b1 | 2c19d8869972853a76c4d490e35bd819f569c997 | /Keras/cnn/test.py | ea913d0cd81ea290c4292954436fa584af7cfd96 | [] | no_license | ngamc/Python | e08eb826d8b306399f5df9a2c06e15ab31f44f29 | 748134d8782eec5f5eebd38302466bfb02759527 | refs/heads/master | 2020-03-16T06:17:29.523789 | 2019-10-31T09:03:52 | 2019-10-31T09:03:52 | 132,551,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 28 13:05:38 2018
@author: user
"""
import numpy as np
#y = [0,2]
#y = np.asarray(y)
#
#x = [[0,0],
# [1,1],
# [2,2],
# [3,3],
# [4,4]]
#x = np.asarray(x)
#
#print(x.shape)
#
#z = x[[1,2],:]
#print(z)
a = np.array(((1,2),(2,3)))
print(a.shape)
print(a)
a=... | [
"ngamc@yahoo.com"
] | ngamc@yahoo.com |
9caa1a3570255081263c2f3ab4241e0d65cdc52c | 4238ba3d850e63bcfa8f1cc812d4e9f5980667d4 | /75_validate_ipaddress.py | 602b00a07f6777afb4475e53153b26b64b0e72b6 | [] | no_license | gautamgitspace/leetcode_30-day_challenge | ad8d9e6ae7ba9c3995a614dcfae762eb9ffd460b | 4ec4f9fbb0ef07ea13207654a619cfdb709cc78c | refs/heads/master | 2021-05-21T01:14:46.302340 | 2020-08-06T23:03:34 | 2020-08-06T23:03:34 | 252,481,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class Solution(object):
def validIPAddress(self, IP):
def isIPv4(s):
try: return str(int(s)) == s and 0 <= int(s) <= 255
except: return False
def isIPv6(s):
if len(s) > 4: return False
try: return int(s, 16) >= 0 and s[0] != '-'
except: r... | [
"agautam2@buffalo.edu"
] | agautam2@buffalo.edu |
c8bb075383c20f6ff780f51231f37fbf42348752 | c4dce67928657703f7d0a45b2e67ae4f96106ad8 | /Python-Crash-Course/第一部分 基础知识/第04章 操作列表/4-07 3的倍数.py | 2562203c8ab934d37af12a21740f010f2c7c17e1 | [] | no_license | YilK/Notes | fafd30ff9ddf1ebfd22c0c521a5fad5df9f31bb0 | c14cefaf8e37c66afeaf0a77ac13cdce59e06fbe | refs/heads/master | 2023-01-29T11:24:56.781941 | 2020-12-08T13:29:28 | 2020-12-08T13:29:28 | 155,809,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | '''
创建一个列表,其中包含3~30内能被3整除的数字;
再使用一个for 循环将这个列表中的数字都打印出来。
'''
numbers=list(range(3,30+1,3))
for number in numbers:
print(number)
| [
"huangjk0311@126.com"
] | huangjk0311@126.com |
4d25102b654df31a85fd539fb3276b8bf8ff225b | 1a3e29f8c9c570ece2a2514da5c4e7eda5edb581 | /config.py | aa6a5e4f369d4a3813a8bb2492e3f3dac24eec4e | [] | no_license | kdougan/sheep-pygame | 76eb85e376c17b58c2d14488c8a341421c83e0ee | c6e56d79b1866114d47c014d7c81c3518b190737 | refs/heads/main | 2023-07-14T00:54:37.663029 | 2021-08-30T07:24:30 | 2021-08-30T07:24:30 | 401,252,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | gravity = 600
window_width = 1280
window_height = 720
window_size = (window_width, window_height)
display_padding = 16
ground_height = 16
| [
"kdougan@apple.com"
] | kdougan@apple.com |
b8d8f163ef156d4a23922276d2c41b6e5971d539 | b7aadb2e91566630c563c7a626f190767918dd60 | /2020/day03.py | bfeffc9c3b875e85d5159a3a45608850aabc231c | [] | no_license | kratsg/advent-of-code | 54a66e3959bca340663c4bb8c8e5c0f1aaa088f9 | 672dfa34e811030c8d67e5466d1be218395e1ff3 | refs/heads/master | 2023-08-09T10:48:52.046121 | 2023-07-26T02:04:22 | 2023-07-26T02:04:22 | 225,422,271 | 1 | 0 | null | 2023-07-26T02:04:23 | 2019-12-02T16:40:18 | Python | UTF-8 | Python | false | false | 2,868 | py | import numpy as np
from io import StringIO
def process_input(data):
myfile = StringIO(data.replace(".", "0").replace("#", "1"))
return np.genfromtxt(myfile, delimiter=1, dtype=int)
def generate_steps(mapdata, start=None, step=None):
indices = []
start = start if start is not None else np.array([0, 0... | [
"kratsg@gmail.com"
] | kratsg@gmail.com |
b2c6fa6db2c42c325e241c0a6d603b7d0553ef5b | 9fba4dbe5d932afc5cd3df017bd43d75d199131f | /PDE_Models/applications/nonlinear/scalability_data/pWGF_31x31.py | 397c9a597b9013b5abd5eeba0a5d146bf2d2b320 | [] | no_license | daveb-dev/pWGD | 2ec413fb6fe2b40b802b1a7d2633e491923442c2 | fea18d68f69f13014c66f7f9842279085eac2a75 | refs/heads/master | 2023-03-14T00:09:25.799270 | 2021-02-12T00:40:12 | 2021-02-12T00:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | from model_lognormal_31x31 import *
import time
# check the stein/options to see all possible choices
options["type_optimization"] = "gradientDescent"
options["is_projection"] = True
options["tol_projection"] = 1.e-2
options["type_projection"] = "fisher"
options["is_precondition"] = False
options["type_approximation... | [
"peng@ices.utexas.edu"
] | peng@ices.utexas.edu |
26c99f496eb2c2b0d4c205d7b100328d1b9ace92 | f21588fde88847e303324c6ecc298a14f8b6d463 | /evaluate/evaluate.py | 644c50e087bc8a71f5abe89659ffed0674606aeb | [] | no_license | sdwldchl/ccks2021FEE | 8638b0fba5c5281ee8270fab6c62951e8542159c | 5ac02f1e4b0774e0751fd8af26ed13e9b752c5d5 | refs/heads/master | 2023-06-20T15:19:32.226145 | 2021-07-21T12:19:53 | 2021-07-21T12:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | import json
result_type = ["reason_region", "reason_product", "reason_industry", "result_region",
"result_product", "result_industry"]
ans_path = '../data/dev.json'
dev_path = '../argument/2021-07-17_18-36-15/finnalAns.json'
pred = 0
right = 0
total = 0
id_idx = {}
f = open(ans_path, encoding="utf-8")
a... | [
"2667002321@qq.com"
] | 2667002321@qq.com |
e2802817ffdd2a2e11cae9b2e5011ab177b160d6 | 9e78da3e2fd3dd47405ec5c4bb12fd4e9937d711 | /lcd.py | 437e3f54df1aa8433f9d801224ae19bd1ef14f3f | [] | no_license | cmdoffing/LCD | 23959eaac77332c86ae408a17a74a2d8599ddca5 | 1be464e42f4460d78f1e13c5527f111c075bacaf | refs/heads/master | 2021-12-14T03:07:18.783580 | 2021-11-25T23:13:00 | 2021-11-25T23:13:00 | 194,544,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # This program displays LCD digits, given a command line size
# parameter (s = param 1) and a number to display (param 2).
# Let s be the number of horizontal segments, then each LCD digit will
# occupy s + 2 positions and 2s + 3 vertical rows.
# There must be one column of blanks between two digits.
# This file handl... | [
"noreply@github.com"
] | cmdoffing.noreply@github.com |
0c1887a63b6181781a9c9f8719bae7184afab5a4 | 907c9554cf735beaad8f48dc68feaddcb9dddfa5 | /core/arg_parser.py | 9618853ccdb08af98f9aa194599b970fab4dd4e6 | [] | no_license | gmum/3d-point-clouds-autocomplete | 9c6f8106304cad5eff43f93eec63887e54acf632 | 13ec26e10da7b0ad2f71d4c97016fbb8499b0cff | refs/heads/master | 2023-06-25T07:37:08.472315 | 2021-07-23T08:04:10 | 2021-07-23T08:04:10 | 309,166,663 | 26 | 4 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import argparse
import json
def parse_config():
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', default=None, type=str,
help='config file path')
args = parser.parse_args()
config = None
if args.config is not None and args.config.endswith('.json'):
... | [
"art.kasymov@gmail.com"
] | art.kasymov@gmail.com |
bfaa5ea42194624e380a7146663e0fbeaab063c2 | 942cf424db48f26cd90c4151054a8a3f5dec50d6 | /t_ls_np2.py | 04f5dd6f929fdc766006eaaea3dbf3a9fe608c8a | [] | no_license | Ericgig/Remez | fea6059553bf36fea755c7943865047e4991a994 | e82ed0edd88dc212d016c72f6ad84094e437179f | refs/heads/master | 2020-12-31T04:55:48.055135 | 2016-05-20T19:35:29 | 2016-05-20T19:35:29 | 59,122,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | #Remez make table based on least square
#
# For x^p, -1<p<1, x_min<=x<=x_max find
# a0,a[i],b[i] (i=1:k) so that a0+sum(a[i]/(x+b[i])) ~ x^p
# within err
#
# Input
# p : power ,-1 < p < 1
# x_min : inferior limit of the of the approximation , > 0
# x_m... | [
"eric.giguere@calculquebec.ca"
] | eric.giguere@calculquebec.ca |
27aafa81021b3f5e4fabb032465d5e3b732b43d0 | 65dd042bb78eb771d0d78a30c0d10a503d7ab99b | /disentangled/metric/mig_batch.py | 65bdc764bc1dde2a80625f08dc012b162bdce734 | [] | no_license | eageby/disentangled-representations | 35d3d778ba90680939dca92cee759556449f96eb | 60e3d2334d85f35828d8765f934891d995f8bb9f | refs/heads/master | 2023-08-31T16:16:50.742792 | 2021-10-19T12:06:07 | 2021-10-19T12:06:07 | 237,398,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,822 | py | import disentangled.dataset as dataset
import disentangled.model.distributions as dist
import disentangled.model.networks as networks
import disentangled.model.utils
import disentangled.utils as utils
import gin
import numpy as np
import tensorflow as tf
# TODO GIN CONFIGURABLE
def occurences(data):
"""Counts occu... | [
"eageby@kth.se"
] | eageby@kth.se |
27d665edb1a3f42684872e268feff701e5fbf1e7 | ff2b5481cd0eb1024e0abaf02a2e30bdfd0f5422 | /models/__init__.py | 15adcc73ef7a49640de59ec6d3b51ac0542b7ab6 | [
"MIT"
] | permissive | dvrpc/tmc-uploader | a9da59030535e86dcf6a49546a83be76c889954a | e7aea6c6b2a66031daf7aecf4f264aecf298f347 | refs/heads/master | 2022-12-24T15:30:48.664611 | 2020-10-15T15:00:54 | 2020-10-15T15:00:54 | 281,735,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,977 | py | from datetime import datetime
from pytz import timezone
from os import environ
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from dotenv import load_dotenv, find_dotenv
# from pathlib import Path
# from sqlalchemy import create_engine
# import pandas as pd
... | [
"38364429+aaronfraint@users.noreply.github.com"
] | 38364429+aaronfraint@users.noreply.github.com |
03ee43a71159afb7b987b9b55528312e47c3ff18 | c512256b07ab15c9edd61b5bfd5e7bf15639b864 | /untitled/杂项/inherit.py | c947c27a42f29367391dcf3d0c084799cc6981bc | [] | no_license | pyc-ycy/PycharmProjects | 866483337f1df614bab06af7d429d7e5b27fe990 | 62aee5f458c2e45a862a09f0fa59a0dde5844c68 | refs/heads/master | 2020-05-21T15:46:32.879909 | 2019-06-17T13:21:24 | 2019-06-17T13:21:24 | 186,099,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # /usr/bin/python3.7
# /-*-coding:UTF-8-*-
class Electrical(object):
def function(self):
print("Electrical can perform specific functions after power supply")
class Location(object):
def weizhi(self):
print("Every electrical have its own location")
class Television(Electrical, Location):
... | [
"2923616405@qq.com"
] | 2923616405@qq.com |
02dbc32c8551b4433053ccb04ee41ef7de45ac8f | 8eb19885788618e42499d6427049fd389e9eb327 | /mainapp/migrations/0021_auto_20170322_0447.py | cbc626cde8abf5170ac50a1bc5507555cbce4b2e | [] | no_license | syehbiherbian/cruddjango | 677b62afd83b1f4e1dc98b7b9abe68421b2317c9 | 702d5587474c6efbec4354632e7850ccdce5a6f3 | refs/heads/master | 2021-01-23T05:56:29.175364 | 2017-03-27T10:57:13 | 2017-03-27T10:57:13 | 86,323,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-22 04:47
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0020_auto_20170322_0445'),
... | [
"oprentimac4@Oprents-iMac-2.local"
] | oprentimac4@Oprents-iMac-2.local |
5be37c92efa58fe731ab3cdad297352dccbfa173 | ae29d1304b7ae66a283d6dfef44911679fd79f87 | /evgenApp/schema.py | 83a5b640f689d50f99528d436f25351fc3ec3e98 | [] | no_license | Iliavas/evg-app-back | dd2b5e917a2b0306aebb8e79aa139bea391bf782 | ed1c0d6e6a5f9b667c029284c4af9f38108299d5 | refs/heads/master | 2023-05-13T01:04:03.647550 | 2021-03-28T18:34:17 | 2021-03-28T18:34:17 | 328,385,545 | 0 | 2 | null | 2021-03-29T18:28:01 | 2021-01-10T13:09:00 | Python | UTF-8 | Python | false | false | 488 | py | import graphene
import users.schema
import organisations.schema
import lessons.schema
import hyperlinks.schema
class Query(users.schema.Query, organisations.schema.Query,
lessons.schema.Query, hyperlinks.schema.Query, graphene.ObjectType):
pass
class Mutation(users.schema.Mutation, organisations.sche... | [
"il.vsl0110@gmail.com"
] | il.vsl0110@gmail.com |
3226c7fceb4f6cfc56757178edf8e147ae74ad92 | ace860f60e380d47ad40ad9e21192cb069853bd8 | /DjangoWebProject3/market/migrations/0009_auto_20171222_1205.py | 894ad229dc665d0b5c76850706af1b4f51926655 | [] | no_license | wilsonmwiti/djangoXumpesa | 9b28b3063490dd536867e517ee546436cc72b0f5 | 1e74fb6c7e79504831a1ce8a568375b1ab5d0a56 | refs/heads/master | 2023-03-15T15:13:46.567278 | 2020-09-08T11:44:03 | 2020-09-08T11:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-22 09:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('market', '0008_paidproducts_adspackage'),
]
operations = [
migrations.Alter... | [
"lewicpro@gmail.com"
] | lewicpro@gmail.com |
897249938f93f608a86efc83f03031609ce97109 | fccba098f9cb31cbe052893f37449349ad09b26c | /tests/service/private/users/test_auth_user.py | 4d9d938ac7d7ef634bfc396fbfd6bb93a6d8ffd9 | [] | no_license | findfeatures/gateway-service | 18c317678cb97d2587059f8dbdff8a0c655948be | 83920d0bd7f4c20b7b4981d52f6bd6f2438f9f64 | refs/heads/master | 2020-11-28T08:02:17.866975 | 2020-01-13T17:03:45 | 2020-01-13T17:03:45 | 229,750,937 | 0 | 0 | null | 2019-12-30T13:28:05 | 2019-12-23T12:43:39 | Python | UTF-8 | Python | false | false | 1,736 | py | import json
from gateway.exceptions.users import UserNotAuthorised
from gateway.service import GatewayService
from mock import ANY, call
from nameko.containers import ServiceContainer
from nameko.testing.services import replace_dependencies
def test_auth_user(config, web_session):
container = ServiceContainer(Ga... | [
"calum@paceup.com"
] | calum@paceup.com |
37eecc62d71f1b47a9ecf619b988855fdd408986 | 94ba2500fc857f4f2294d01ad97feb9a1847a85f | /dingtalk/customers.py | 57182ae6900d2f650e21a2e87b1d1c586b7e93f2 | [
"Apache-2.0"
] | permissive | hiandy168/dingtalk-python | 6371e7dc7a94142ed41c9851f16941e19ea8642b | c42437ca8063d5b748ae48f911d0b84cd7dc2696 | refs/heads/master | 2021-08-23T19:27:17.460908 | 2017-12-06T06:51:54 | 2017-12-06T06:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/11/30 下午2:50
# @Author : Matrix
# @Github : https://github.com/blackmatrix7/
# @Blog : http://www.cnblogs.com/blackmatrix/
# @File : customers.py
# @Software: PyCharm
import json
import requests
from .foundation import *
from .exceptions import DingTalkExcept... | [
"codecolor@outlook.com"
] | codecolor@outlook.com |
b47afe389731472f6a8dc09d34ad583eb26df1b4 | d6155fdf26f085fc60048e4412722f8f07c79cff | /entidades/personalmov.py | 6df71110fc818b6d48d76e028c00c67de66b148f | [] | no_license | matiasGuidone/mdt-marcado | 0a8e7f5e4687ddcd3062fb494d409828eb0cc8c8 | 9da69674ffa3f60d05810f2100a44dbcd4e089c8 | refs/heads/master | 2023-04-13T10:02:51.711365 | 2021-04-23T18:24:51 | 2021-04-23T18:24:51 | 360,972,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py |
class personalmov:
id = None
nombre = None
apellido = None
nrosocio = None
codigomarcado = None
horaentradamat = None
horasalidamat = None
horaentradaves = None
horasalidaves = None
horaentradasab = None
horasalidasab = None
huella = None
legajo = None
idmov = No... | [
"matias.guidone@gmail.com"
] | matias.guidone@gmail.com |
3f87241222b0d4e0e456a6c7d69d0c34e6ea0a0d | e128b0ea31db0a1f6082bcc42a981b6db16e4ac0 | /test_site/urls.py | 87bce30086f54570d82b7570539d2c9792eec2df | [] | no_license | FAenX/test_site | 9e1573acb100ed85c8c52b482ede1bae5e683993 | 0a1d850a20efef6989910e1ddf80dd82ddc1e5a7 | refs/heads/master | 2020-08-05T00:11:37.082965 | 2019-10-02T11:49:12 | 2019-10-02T11:49:12 | 212,326,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | """test_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"kipronofb@gmail.com"
] | kipronofb@gmail.com |
025683f5c5830f5371dd464f1bda519dd08605c5 | a0bc35cef7b7d55aae2e6f92469126b1bd09bd4a | /arp/calfiles/blo853.py | 61ac4c3bd58892114a9c1b5bbc314eca6ba7d0e9 | [] | no_license | zakiali/cabo | 6d1bc9dd8f84c1db14654fa2da9e8b46f803ac30 | bad9a64ddb637a95795885a3679532c63cff8085 | refs/heads/master | 2020-05-20T01:17:09.045852 | 2012-06-26T02:43:58 | 2012-06-26T02:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import aipy as a
class AntennaArray(a.fit.AntennaArray):
def sim_cache(self, *args, **kwds):
return a.fit.AntennaArray.sim_cache(self, *args, **kwds)
def sim(self, i, j, pol):
ans = a.fit.AntennaArray.sim(self, i, j, pol)
return ans
prms = {
'loc': ('+37:55.1','-122:09.4'),
'an... | [
"aparsons@astron.berkeley.edu"
] | aparsons@astron.berkeley.edu |
07fe463e1bc8d42676a62bcbd147a075d25346a6 | f510ea23f826b1a4e79e413bada97c45a915cff0 | /mysite/settings.py | 4cafd9bfae3d1297f02fa69d94e67031b9be6f7d | [] | no_license | a5816010/my-first-blog | dae45a688a936394459be9316116fb23cc44f8e4 | 77a0babeaf0584742dd47ddabe3f239300733010 | refs/heads/master | 2020-03-20T21:11:46.319488 | 2018-06-23T16:58:54 | 2018-06-23T16:58:54 | 137,728,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"you@example.com"
] | you@example.com |
255796bd20e0ee31da9ccf21999e6678d33a8855 | c69fab7a64aa17ccfd15db74bad77e4bac766cb0 | /col_detection.py | d1cd92d16b3f9cc7e2a3c46eb0d9cde03fc49497 | [] | no_license | akashdeeps19/red-color-detection | e8b3a1b3a96ec96e07e106c682736b80ccae6250 | e8a302c98f71d4cc440c2071dcc227f8e38fc2f4 | refs/heads/master | 2022-03-25T06:54:03.149844 | 2019-11-05T15:27:57 | 2019-11-05T15:27:57 | 219,778,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | import cv2
import numpy as np
# quality = 400
# im = cv2.imread("F1.large.jpg")
video_path = input("Enter video path or 'live' for live capture : ")
quality = input("Enter quality (300,400,500) : ")
quality = int(quality)
if video_path == "live":
cap = cv2.VideoCapture(0)
else:
cap = cv2.VideoCapture(video_path)
... | [
"akasdeeps19@gmail.com"
] | akasdeeps19@gmail.com |
385ce854193cf55589ceaa2d228c3f542ec7aff7 | 5d412b4ee657143ea6cfc820052cd13567e8b149 | /bodajusticeapp/migrations/0004_auto_20190224_0242.py | f75ae0561859f6714f505da3df106c0da8dcb4a5 | [] | no_license | boda-justice/boda-justice-new-backend | e6fb4e12bfb4606048273cbc4e58df3886e21ec2 | 75cf16aed208a966915b6afb1906b29e1b829d03 | refs/heads/master | 2020-04-24T19:20:18.725304 | 2019-02-24T13:38:29 | 2019-02-24T13:38:29 | 172,208,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # Generated by Django 2.1.7 on 2019-02-24 02:42
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('bodajusticeapp', '0003_auto_20190224_0230'),
]
operations = [
migrations.RemoveField(
model_name='o... | [
"29925144+WinstonKamau@users.noreply.github.com"
] | 29925144+WinstonKamau@users.noreply.github.com |
4f908d998631a669d61a1659ebbce23ec367048f | a4ab889cbcd077dae29eb2ca62c9078aa6c0d555 | /benchmark/torch/sac/train.py | eb40e1b80d140cf8a3130a40dac598b307832f3d | [
"Apache-2.0"
] | permissive | rical730/PARL | 909721c347ce05d0c43ad8b3d4b38edd63f47a44 | 88e43d309278c34ca857939fe251813d4cad4b03 | refs/heads/develop | 2022-04-19T19:29:15.269466 | 2022-04-01T05:51:46 | 2022-04-01T05:51:46 | 482,826,065 | 0 | 0 | Apache-2.0 | 2022-04-18T11:44:11 | 2022-04-18T11:44:11 | null | UTF-8 | Python | false | false | 5,213 | py | # Copyright (c) 2020 PaddlePaddle 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 app... | [
"noreply@github.com"
] | rical730.noreply@github.com |
b8d704ce25131c1966e2ce4da8b3200b98e66413 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /python/paddle/jit/api.py | 827bb9806a110b61453a887d8bccdeb5553878e0 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 68,685 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
# Copyright (c) 2021 NVIDIA Corporation. 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://ww... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
69c495d55d1cfb23bfd19375a1386a947e79ae42 | f889bc01147869459c0a516382e7b95221295a7b | /swagger_client/models/sales_data_shipping_assignment_interface.py | 5daf5091d5f3faf63957de7c1d25ad80c4a584a7 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,068 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
5070de3b4359c2c25dc9e9e0abd3ef0f9eacc054 | 9bcef84f5eb91146a518915836f8776196ba3b90 | /Python/add.py | fcd7fd1516400913ae974fc7d7ffeee0e547a5bf | [] | no_license | baltah666/Netbox | 4d6dfa3c257abff3798d7949e5f891c4f57dac26 | 05a89fe28ed81cc2f83b1efcbe9e58bf0370d7d3 | refs/heads/master | 2023-07-30T00:03:14.655859 | 2021-09-15T07:52:41 | 2021-09-15T07:52:41 | 404,419,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import pynetbox
import time
def adddev(dev):
nb = pynetbox.api(url='http://192.168.174.149:8000/', token='0123456789abcdef0123456789abcdef01234567')
result = nb.dcim.devices.create(
name=dev,
device_type=5,
device_role=2,
site=3,
)
print(result)
file1 = open ('/hom... | [
"baltah666@gmail.com"
] | baltah666@gmail.com |
aa894261b14b1133e1571c8269bbbbc56f3b8faf | 7f26f01e3f47c40e6513fd3143bae2f0b4ec68bc | /kaggle-outbrain/readRDS.py | 203726f090e924048ed7e9301d418408abd6bcdd | [] | no_license | maidousj/exptmp | c457b4e8c4b429067b66b04f48e72ddddebc325f | 14d677a06ed441a6204ef98b6e260ecc939a7433 | refs/heads/master | 2021-01-01T04:46:41.568895 | 2017-12-06T03:08:47 | 2017-12-06T03:08:47 | 97,240,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import rpy2.robjects as robjects
from rpy2.robjects import pandas2ri
import ipdb
fileName = '/data/rds/baseline_1/test/000.rds'
#fileName = '/data/rds/clicks.rds'
pandas2ri.activate()
readRDS = robjects.r['readRDS']
df = readRDS(fileName)
df = pandas2ri.ri2py(df)
ipdb.set_trace()
print df[1]
print df[2][0]
print ... | [
"maidousj@163.com"
] | maidousj@163.com |
b9c29748d3516407cd79dbf12214d8ebc0ef51ab | 450618586b23c6e5da154a4e3c123fb1b73ecf84 | /slp_main.py | ab158919aeaedc60aa75d8bd3f70f715a09c602b | [
"MIT"
] | permissive | alivcor/neuralnets | 41e7f8c2b367ddf234e82d22cf87630cfb747df7 | a9665301eb66977c18b65f06ecc8e8507150a44b | refs/heads/master | 2021-01-12T02:21:28.157853 | 2017-01-10T06:44:42 | 2017-01-10T06:44:42 | 78,505,663 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | import neurolab as nl
import numpy as np
import pylab as pl
import csv
import math
from sklearn.metrics import classification_report
import sys
adata = []
with open('dataset_full.csv', 'rb') as csvfile:
reader = csv.reader(csvfile)
for row in reader:
adata.append(row)
xdata_zeros = []
ydata_zeros = []... | [
"noreply@github.com"
] | alivcor.noreply@github.com |
38b04e78816a720b08b4988d782425587782a13a | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /platform/gsutil/third_party/boto/tests/unit/ec2/test_connection.py | deeb673d1a434359dce92f431f9f7a4aae166743 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 68,764 | py | #!/usr/bin/env python
import httplib
from datetime import datetime, timedelta
from mock import MagicMock, Mock
from tests.unit import unittest
from tests.unit import AWSMockServiceTestCase
import boto.ec2
from boto.regioninfo import RegionInfo
from boto.ec2.blockdevicemapping import BlockDeviceType, BlockDeviceMappi... | [
"alfred.wechselberger@technologyhatchery.com"
] | alfred.wechselberger@technologyhatchery.com |
fc02d92d5e205a887765802d60906fd5dcc62213 | 4a3fcb3e93ba88ee09d34b190450ad18a3125d67 | /users/api/admin.py | fa57deaea2bcc2f5ba3dd6792ef05b61754aa057 | [] | no_license | hllustosa/online-judge | 8c14f3348d7eba56126824f1aca6d9ee907e688d | 4340eefc760ee3122e805214af0aa5f1a4f4fd96 | refs/heads/master | 2023-06-20T22:27:17.359455 | 2021-08-09T03:27:55 | 2021-08-09T03:27:55 | 392,495,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
from api.models import Profile
# Register your models here.
admin.site.register(Profile) | [
"hllustosa@gmail.com"
] | hllustosa@gmail.com |
0b486db72f271c9f67c5078e888030e88741d166 | 80e82658539215cf14153e7dfe64fd810103d1b1 | /ThirdPartySoftware/pbrain-master/eegview/shared.py | 496aff516e1bf4672f100bcb5762d4a8cae05c8a | [] | no_license | mocalab/BCIProject | 7f2302f5027f98118ff0d84895dd2a89f5e9c3fb | 35d807401cf4939d09597addd4d79ca1df47073c | refs/heads/master | 2020-04-17T00:57:40.333837 | 2013-06-29T07:39:25 | 2013-06-29T07:39:25 | 8,465,907 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | import os, sys
from pbrainlib.gtkutils import FileManager
import distutils.sysconfig
class RC:
"""
CLASS: RC
DESCR: handles .eegviewrc file in home directory. Currently only the 'lastdir'
line is really used - as well as the streamlining data in the last 5 columns. eegview.rc gets saved after
eve... | [
"yozturk@mocalab.com"
] | yozturk@mocalab.com |
13c9402c955d81bc62cbf883183a1497fbc71f74 | d0987e868d3c55728ce451a1f778d254720821b0 | /datamodules/default.py | 9057c6f040fea7c5dfd6c6a15c72db02dc6a3496 | [] | no_license | sara-nl/2D-VQ-AE-2 | c106cd0dd0c1060bb4f363ec38db6ba354363f85 | 6999a5c25d6e0a83bde52c770788375cbfe348c0 | refs/heads/main | 2023-05-23T08:20:57.334918 | 2022-06-10T15:15:50 | 2022-06-10T15:15:50 | 377,765,763 | 12 | 2 | null | 2022-03-01T13:53:51 | 2021-06-17T08:53:39 | Python | UTF-8 | Python | false | false | 710 | py | from dataclasses import dataclass
from typing import Optional, Callable
import pytorch_lightning as pl
from torch.utils.data.dataloader import DataLoader
@dataclass
class DefaultDataModule(pl.LightningDataModule):
train_dataloader_conf: Callable[[], DataLoader]
val_dataloader_conf: Callable[[], DataLoader]
... | [
"robertjan.schlimbach@gmail.com"
] | robertjan.schlimbach@gmail.com |
3226c5524af15df7ed6b8e45dff65ea39ded66c2 | a7a968c270d193e8c5b35af5f1743be8c9eaa81d | /WISE/resultscompile.py | dfd4e3d7abbc420fca2771124d5065c5c412c072 | [] | no_license | rameez3333/catana | 56479adfbac422a976f2c22ea45ccebc3884ea13 | d786ddcc789c55e941a85b247433eeac672a40d4 | refs/heads/master | 2020-09-22T15:31:48.133456 | 2019-12-08T09:12:45 | 2019-12-08T09:12:45 | 67,131,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import numpy as np
from glob import glob
import healpy as hp
import matplotlib.pyplot as plt
import sys
nside = int(sys.argv[1])
#glcut = sys.argv[2]
npix = hp.nside2npix(nside)
def process(glcut, jcut):
flist = sorted(glob('*'+str(glcut)+"glcut"+str(jcut)+"jlcut_result.txt"))
if not len(fl... | [
"mrameez@fend05.cluster"
] | mrameez@fend05.cluster |
f46eeb7d861443adbfefc28d6ad9e7b902164a00 | 400c5a88463f17b82dc6faaa477e9376052d929f | /boards/views.py | 18656d4a4c954d4778dcc1c81ff7b79480617e8d | [] | no_license | leahlang4d/django_project | bf823defddf298ab66873c78791af5c1a3dc2d0e | b5f76122c9d08aea8678348a0cf7423bdc32474c | refs/heads/master | 2021-09-10T23:15:20.569210 | 2018-04-04T03:41:10 | 2018-04-04T03:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from django.shortcuts import render
from .models import Board
# Create your views here.
from django.http import HttpResponse
from .models import Board
def home(request):
boards = Board.objects.all()
return render(request, 'home.html', {'boards': boards})
#boards_names = list()
#for board in boards:
... | [
"leahlang4d@gmail.com"
] | leahlang4d@gmail.com |
9db6c013e16fe13fede6db3506499051fa7b71f8 | d0de52952d3fb219baedc830bfae48ccd7b31604 | /paperstuff/counter_0620_16.py | bd2ad1beb6a69d2caca3baaa604c746a8edc7288 | [] | no_license | patrickschu/ota | 3a512cdecf9291266812fd7a664a5ca8d3e969ea | 7ee6cf0afe2fe6416dc4c334fc2db4d8c925882a | refs/heads/master | 2020-04-06T06:56:12.633307 | 2016-08-28T21:34:20 | 2016-08-28T21:34:20 | 37,992,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | import codecs
import re
import time
import os
import nltk
import string
from string import punctuation
now=time.time()
#setting up the output file
outputfile="output_gaddlist_0714"
print outputfile
#reading in the yeslist, nolist or whatever. these are the words to iterate over/search for
yeslist=[]
f=codecs... | [
"noreply@github.com"
] | patrickschu.noreply@github.com |
b497e3a28325dc350157121796079d30b5f50061 | e9fa26be4d9e7a725d3f889b6aa9cf5029f47c2d | /lib/sqlalchemy/orm/events.py | b9987c52794359826e9f137791670f66640665a8 | [
"BSD-3-Clause"
] | permissive | ahriman-ru/azure-test | 2e0ee70a8b453534cf82e44860f04dddd3ab8095 | 3c377163192139d046b4ec20ce5b44a0492aecd8 | refs/heads/master | 2021-07-17T03:53:14.025065 | 2017-10-20T12:04:11 | 2017-10-20T12:04:11 | 100,267,395 | 0 | 0 | null | 2017-08-14T12:54:01 | 2017-08-14T12:54:01 | null | UTF-8 | Python | false | false | 87,089 | py | # orm/events.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""ORM event interfaces.
"""
from .. import event, exc, util
from .base im... | [
"root@MININT-HAS5VVP.europe.corp.microsoft.com"
] | root@MININT-HAS5VVP.europe.corp.microsoft.com |
661d05369dec1c499492b557a6394b37f15e5b5a | f14ef312e5ce56b3064f9f1fba41d60b307ec980 | /4.1_morphology/number/char-lm-ud-stationary-separate-bidir-with-spaces-probe-baseline-prediction-wiki-plurals-2-tests-words-distractors-wikisource.py | 40623e1408e769d4292bb2de95aa3aca4e7e08ce | [] | no_license | m-hahn/tabula-rasa-rnns | d02160a2c2e3c58d933833449cbec85fb15280ae | 0ffd77164bf93c9e90708fac2f931fe6cc7bb51e | refs/heads/master | 2020-05-31T12:27:12.573104 | 2019-06-27T23:19:43 | 2019-06-27T23:19:43 | 190,281,220 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 18,080 | py | # python char-lm-ud-stationary-separate-bidir-with-spaces-probe-baseline-prediction-wiki-plurals-2-tests-words-distractors-wikisource.py --language german --batchSize 128 --char_embedding_size 200 --hidden_dim 1024 --layer_num 2 --weight_dropout_in 0.1 --weight_dropout_hidden 0.35 --char_dropout_prob 0.0 --char_noise_... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
4f7bc9d4365f3ba81157eb32684242f5b8e44deb | 79e607a063a0989f5563efb6b65321e38336566d | /2-AdvancedStructures/Remove_Lista.py | 30636d3939bdc3ce1c22e4551fd54e2fafc7d5b9 | [] | no_license | viniciuskurt/LetsCode-PracticalProjects | 9e9c583e7ce72d06d26bc85fb6ff8ce7dfdfce75 | c49a44f76c9fe1dcb6c7b5b45a25f296929f3608 | refs/heads/main | 2023-06-30T21:37:21.708093 | 2021-07-29T00:58:16 | 2021-07-29T00:58:16 | 382,719,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | '''
REMOVE
Deleta valores de uma lista
- Apresenta erro se o elemento não existir
'''
cidades = ['São Paulo', 'Brasilia', 'Curitiba', 'Avaré', 'Florianópolis']
print(cidades)
cidades.remove('Brasilia')
print(cidades)
#erro:
cidades.remove('Portugal')
print(cidades)
| [
"viniciuskurt@hotmail.com"
] | viniciuskurt@hotmail.com |
19c14d9a37f6bafb207b27745fe34fdcb3d325be | 541c9ccbd0b936c34198df0fcfb13a5d791a0338 | /youtube_player.py | fdc702c58ba59da7a23dc2610ead4038e01b464e | [] | no_license | ak3gj/WiCS-Hackathon | 676ea13176907ac20ea6a998c61320393b59e9bb | 78000e53f4f4a9190094bfa5496d68e4c0548c5b | refs/heads/master | 2020-05-05T08:49:01.537433 | 2019-04-25T16:17:06 | 2019-04-25T16:17:06 | 179,879,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,875 | py | # import pafy, pyglet
# import urllib.request
# from urllib.parse import *
# from bs4 import BeautifulSoup
#
#
# class Youtube_mp3():
# def __init__(self):
# self.lst = []
# self.dict = {}
# self.dict_names = {}
# self.playlist = []
#
# def url_search(self, search_string, max_sea... | [
"noreply@github.com"
] | ak3gj.noreply@github.com |
9e5ae85dbb171bc086c2ae554f5c1ab0d53b5331 | e8de10ce2d194138432bc578f397f014adaa5025 | /src/trainers/UserGru_predict.py | 615805b5559a789a61f86a56dd8ba72399aa33d6 | [] | no_license | thanhtcptit/Neural-Session-Aware-Recommendation | ef456d13d152fe79f5de62843c5c6c5a8cf97cd1 | 9034d0700ecee001eb5d5fee63ae082f92771427 | refs/heads/master | 2022-08-28T21:59:19.726920 | 2019-07-17T01:47:44 | 2019-07-17T01:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | import sys
sys.path.append('../..')
import numpy as np
import tensorflow as tf
from time import time
from src.utils.qpath import *
class UserGruPredict():
def __init__(self, sess, model, config):
self.config = config
self.model = model
self.sess = sess
self.saver = tf.train.Save... | [
"thanh.ptit.96@gmail.com"
] | thanh.ptit.96@gmail.com |
c7632512db65fbf5435138ef11c509970fc25ad5 | a3d058c6a80d4068fa4d3185ddd2dec91abc82d7 | /190129_배달.py | 35d9925a426d2f4a556463ca5ec968d2f6fa91d6 | [] | no_license | guard1000/Everyday-coding | d6f496654b635738a4284270f6c5d285116a760e | 7755f99cdb512d623392af82282bf17b47cb77f2 | refs/heads/master | 2021-08-18T22:26:04.322162 | 2021-07-21T14:53:28 | 2021-07-21T14:53:28 | 161,440,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | import sys
def dijkstra(K, V, graph):
INF = sys.maxsize
s = [False] * V
d = [INF] * V
d[K - 1] = 0
while True:
m = INF
N = -1
for j in range(V):
if not s[j] and m > d[j]:
m = d[j]
N = j
if m == INF:
break
... | [
"cjsdnr885@naver.com"
] | cjsdnr885@naver.com |
de38dbcce2d8363da4320239d194aa376b3f5f4f | bbcd8166118279da0de4c3a04cc5bc97aa49b368 | /intertainment_center.py | 2eea65f6f9c6d12b3859c2664e8b34611bcbd008 | [] | no_license | AlyZahran/Movie_trailer | 7e92c865880f2c2ea5106a7a07e9ecf8f3898122 | 67c321a01b1fbf08f422349b90b48978313c0d13 | refs/heads/master | 2021-07-15T20:55:50.594498 | 2017-10-05T12:59:27 | 2017-10-05T12:59:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | import fresh_tomatoes
import media
toy_story = media.Movie(
"toy story",
"a story of a boy and his toys that come to life !",
"http://a.dilcdn.com/bl/wp-content/uploads/sites/8/2013/02/toy_story_wallpaper_by_artifypics-d5gss19.jpg",
"https://www.youtube.com/watch?v=KYz2wyBy3kc"
)
THOR = ... | [
"noreply@github.com"
] | AlyZahran.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.