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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d73fc202896546a4b0c2a8aeb2e10eea7ad3ffb | b26f593233e5ce81ec79e50a9fa016ab3142f5b0 | /data_prep.py | c4847ab1b1d52898db06f6dfb43f72f76b38e633 | [] | no_license | UoA-CS760/autocomplete-predictor | 62128c8701c8c1d77664f1b52e4a32f21df05e02 | 3efd4499ce3fd80b5e2b0b3cb24e1bc099878c6a | refs/heads/master | 2023-02-10T16:01:54.996187 | 2021-01-10T02:13:07 | 2021-01-10T02:13:07 | 289,842,950 | 3 | 0 | null | 2020-10-24T02:47:43 | 2020-08-24T06:09:21 | Python | UTF-8 | Python | false | false | 2,032 | py | import json
from generate_vocab import UNK, PAD
import torch
###################################################
# See train.py for example usage of these classes #
###################################################
class Tokeniser(object):
def __init__(self, vocab_filepath="vocab.json", vocab_size=100000, max_seq... | [
"36907139+OptimusPrinceps@users.noreply.github.com"
] | 36907139+OptimusPrinceps@users.noreply.github.com |
bb623e9fb3625ae7527176a57f20d61868e658e2 | b464533745d09720752cb05dd9afc5670e1133fe | /Puzzle 15.py | a804284d939e33ae862476f5a73723bd76b175ee | [] | no_license | Jgusbc/Board-Games | 99d2a3486c9450557b04403b779268a28bc04e01 | e362c3ec71facd9c77a09a03cd5c6d896906c162 | refs/heads/main | 2022-12-30T23:29:13.010234 | 2020-10-23T03:37:15 | 2020-10-23T03:37:15 | 300,472,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | """
Autores del código
José Gustavo Buenaventura Carreón
César Armando Lara Liceaga
"""
import random
import math
import os
#Crear matriz aletoria.
def matriz_aleatoria():
nums = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,'']
random.shuffle(nums)
matriz = [[],[],[],[]]
temp = 0
for i in range(4):
... | [
"noreply@github.com"
] | Jgusbc.noreply@github.com |
cb1794051e60b1efd05fe551d9a82d1b0d4a48a6 | 3a90b0336d257d78108438196716d5a74569fa71 | /api/meeting_room.py | 1b38a4be32475d8a6fb3150dac3ab18ca62a8b39 | [] | no_license | jiagejiayou/wwork_api_interface_test | bff0bcb264f54d0f044322363653b6b51a288e83 | 412f0d3bc83fb732c03de9d4c411c9f0760b2034 | refs/heads/master | 2023-01-11T21:51:35.896528 | 2020-11-11T03:58:53 | 2020-11-11T03:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # @Author : TongTong
from api.base_api import BaseApi
from api.wework import Wework
from common.config import cf
class MeetingRoom(BaseApi):
"""
会议室的api类
test_token: token值
api_path: yml_api的相对路径
"""
# 只是拿来测试用,可以不存在在这里
test_token = Wework().get_token(cf.get_key("wwork", "meeting_room_se... | [
"376230095@qq.com"
] | 376230095@qq.com |
b0b6434f95799d95378d985546b2c841c783c9f2 | ddeab2d71d438f58745d3e7e75ab71fa8fba1abd | /pcdet/models/dense_heads/point_head_template.py | baa9bd9ee64ded6363b9ffdb7cdd952a9fcabda5 | [
"Apache-2.0"
] | permissive | penghao1990/SGNet | 3de6ec203b3d56f39ec88f48aae14e4ba2264c33 | 99b9126a4b8ae85ba258a4150cc756ac73a7b7fb | refs/heads/main | 2023-04-09T21:12:12.381568 | 2021-12-09T11:41:58 | 2021-12-09T11:41:58 | 427,582,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,097 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from ...ops.roiaware_pool3d import roiaware_pool3d_utils
from ...utils import common_utils, loss_utils
class PointHeadTemplate(nn.Module):
def __init__(self, model_cfg, num_class):
super().__init__()
self.model_cfg = model_cfg
... | [
"noreply@github.com"
] | penghao1990.noreply@github.com |
49888ff53e9d215f112580dc86b077b03882bb30 | 68bde65c828e73d33f987ddd7d8c5d2712e54d33 | /python-access-web-data/week-6/hidden.py | 66feb56430f42b737efdcba2814ef8ad583fa32f | [] | no_license | champi-dev/p-for-everyone | 5194b39e266ef052ab2af8d73b7ce3f536814b92 | 1a38b6fb012ddcd186d5271463137719b97431d8 | refs/heads/master | 2020-12-06T08:21:05.960795 | 2020-02-08T19:57:47 | 2020-02-08T19:57:47 | 232,405,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | {
"consumer_key": "h7Lu...Ng",
"consumer_secret": "dNKenAC3New...mmn7Q",
"token_key": "10185562-eibxCp9n2...P4GEQQOSGI",
"token_secret": "H0ycCFemmC4wyf1...qoIpBo"
}
| [
"dsarmiento@lean-tech.io"
] | dsarmiento@lean-tech.io |
cc33fe1f9e4951a96748c625f6e5551b73f5a8c7 | ac7419a4d5d25ee9c6ce821081c9d9134702f3c7 | /bin/classes_ex.py | 34c145cb7e2383e2be8a12244603909f9f0cc817 | [] | no_license | rajatgoel789/Python_basics | a82215feb2b333d14e42883439bd097250a98ab4 | 22650ecb785c1debcb614cf60f1f18e3e30133c3 | refs/heads/master | 2020-07-31T07:30:53.358059 | 2019-09-27T08:23:00 | 2019-09-27T08:23:00 | 210,530,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | # multiple Objects
# Inheritance
# Operator Overloading
x = 10
y = 20
# print(x + y)
# print(x.__add__(y))
class Account1:
bankname = "ICICI" # class variable
def adduser(self, n):
# print(self)
self.name = n
def viewuser(self):
return self.name
@clas... | [
"noreply@github.com"
] | rajatgoel789.noreply@github.com |
a7e3abcba7aa13ffeb4b8a1700c45db001e2c394 | 6f691b2472b56c9aac31237ce6cf96908963b4e4 | /my_project/my_app/views.py | 4894812f5cb3ecc9f2986ea0b1a94bdf9d665a19 | [] | no_license | Vivek-100/Python-Django- | 303a96d38cb951d77d4e659a983200482cf33ff3 | 14dfecc142b418c17a295e6ea4ad24f9447a0a6a | refs/heads/master | 2021-01-10T15:23:05.245481 | 2016-01-04T20:25:57 | 2016-01-04T20:25:57 | 49,020,911 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from my_app.serializers import UserSerializer, GroupSerializer, TestSerializer, OrganizationSerializer,\
ProjectMemberSerializer, ProjectSerializer, ProjectMemberRoleSerializer, ProjectSupplementSerializer
from my_app.models impo... | [
"Vivek.200786@gmail.com"
] | Vivek.200786@gmail.com |
20d61a63e03337d309b237ee3953113c24a5f720 | f14ca4895dfd375d87b98101cf0d5a61c84a6f25 | /app/core/serializers/bank3_serializer.py | a2719709a35177f67017b38a97b49f474c24d34c | [] | no_license | rozhaev/bank_parser | f56e1ef86c4fbb62a9f585d51cbf0e3c371a8478 | 7b2727b8b1545207f518aa52a128d388a709cd81 | refs/heads/main | 2023-06-16T16:16:09.505628 | 2021-07-08T05:12:49 | 2021-07-08T05:12:49 | 384,005,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from decimal import Decimal
from typing import List
from .base_serializer import BaseSerializer
class Bank3Serializer(BaseSerializer):
header = ["date_readable", "type", "euro", "cents", "to", "from"]
@staticmethod
def _get_amount(data: List) -> Decimal:
return Decimal(data[2]) + Decimal(data[3... | [
"dmitry.rozhaev@gmail.com"
] | dmitry.rozhaev@gmail.com |
dc00c7b46443eedbd055a6a450758ba00349fc60 | fd00c22c5abbf2f213ef0840a33b68fab7ad3ad0 | /contact-tracing-demo/src/prox/place.py | 293db88cab5848d7bdb0ad018782462001f0eb6e | [
"MIT"
] | permissive | diffix/coronaVirus | c1591f916ae9bbe846d48d50727d3e030f5b768e | 2ec2a845b02e6354d82fc086c06a07b5ad7c99b9 | refs/heads/master | 2022-07-15T16:49:22.237979 | 2022-06-08T15:11:34 | 2022-06-08T15:11:34 | 250,565,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,284 | py | import datetime
import json
import random
from common import WarningCounter
class PlaceInfo:
"""
"""
placeTypes = {
'home': {
'work': {
'minCapacity': 1,
'maxCapacity': 6,
'minArrive': None,
'maxArrive': None,
... | [
"paul@francis.com"
] | paul@francis.com |
565df863bafd4d071e2abce34fb7d1f3ab74c0b6 | b2b2ce788e8400090a238422d03cb39e806966f7 | /leadmanager/leadmanager/settings.py | aacb3fd6f3fadbf88f7c1a02d1dce9cfa15d8501 | [] | no_license | shubham1811/hireScript | b638f2793b0d8004d0f18d47918d82e740ac26f4 | 018f361b8d883c9333cf2a95203ece77ee9f9c23 | refs/heads/master | 2020-04-27T05:48:51.835073 | 2019-03-06T07:38:55 | 2019-03-06T07:38:55 | 174,091,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for leadmanager project.
Generated by 'django-admin startproject' using Django 2.1.5.
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... | [
"shubham.h.kumar123@gmail.com"
] | shubham.h.kumar123@gmail.com |
a61fccbe20617a3299561785e06bcc602feb0a7e | 6e6d19c33c258c00a4e7dcf3a73f0008478d5d4a | /year.py | d27ef171c35d70fd621a0608f0efc44821dc8cde | [] | no_license | barrven/python-expenseTracker | e037a99ad08902c91a6aaae9b8257c0a137239f9 | 344accc063a61e6b96aca401d8197f27a21a53d2 | refs/heads/master | 2022-08-20T05:50:17.641106 | 2022-08-14T00:00:29 | 2022-08-14T00:00:29 | 262,703,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | ##########################################
# Barrington Venables #
# 101189284 #
# comp2152 assignment - Expense manager #
##########################################
class Year:
def __init__(self, yearNum, database):
self.yearNum = yearNum
self.datab... | [
"barrven@users.noreply.github.com"
] | barrven@users.noreply.github.com |
79062eb15e440d5eabf1579ae5b439589bb6db1b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2015/8/ar_model.py | 087a9e037a3426c2ccc54e0b8158c690ff99e06c | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 34,034 | py | from __future__ import division
from statsmodels.compat.python import iteritems, range, string_types, lmap
import numpy as np
from numpy import dot, identity
from numpy.linalg import inv, slogdet
from scipy.stats import norm
from statsmodels.regression.linear_model import OLS
from statsmodels.tsa.tsatools import (lagm... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
2c9587a9d350295ea691599e0cf1b8f8e1d52223 | 7558e719e2ca69404f099c90cd93f3ddda8d0614 | /wind_repower_usa/config.py | a9b7e3ac6aec162a510a72b5a93c0a4ac2fd338d | [
"MIT"
] | permissive | inwe-boku/wind-repowering-usa | d082699283d0a7184ec8e8be267dfb99df11f486 | 2b85dc290a80fdd60c065ebfd84def7b43466449 | refs/heads/master | 2021-06-18T22:18:57.234103 | 2021-02-12T16:20:42 | 2021-02-12T16:20:42 | 180,792,842 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import pathlib
NUM_PROCESSES = 8
# used for downloading, calculation of time series etc
YEARS = range(2000, 2019)
MONTHS = range(1, 13)
DISTANCE_FACTORS = 2, 3, 4, 6
LOG_FILE = pathlib.Path(__file__).parent.parent / 'data' / 'logfile.log'
INTERIM_DIR = pathlib.Path(__file__).parent.parent / 'data' / 'interim'
EXT... | [
"lumbric@gmail.com"
] | lumbric@gmail.com |
5a3d6c50cb8da0cc9244a7fe21ab684b3a0ed899 | 3af9361ad31a35d13ae7be20900861a2c2e486d8 | /For_next_page.py | 88cc9d11e4065317017b93afe8f8c11d15636958 | [] | no_license | NikhilLamba24/Web-Scraping | b9b93f74b8479721611ce5f5250bfb71831c423d | 70964e2bbfc9e36979e294cf2232e797bd8191ae | refs/heads/master | 2023-04-10T00:24:51.151797 | 2021-04-21T16:40:39 | 2021-04-21T16:40:39 | 272,225,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | from bs4 import BeautifulSoup
import requests
url = "https://boston.craigslist.org/search/npo"
job_no = 0
while True:
response = requests.get(url)
data = response.text
soup = BeautifulSoup(data,'html.parser')
jobs = soup.find_all('p',{'class':'result-info'})
for job in jobs:
title = jo... | [
"lamba.nikhil24@gmail.com"
] | lamba.nikhil24@gmail.com |
7692972bf7b351e4ac875fb9d2b00890072ac697 | 7d84f1af14f8c30eeaa07d5f36542d93e03a4097 | /module4/多线程/14异步调用与回调机制.py | 62bf1fc058efd1f3f47ebbc3d4fe94922319cc11 | [] | no_license | crazy-heng/study | 5ab50a73c4ce51593e493e8ecee2e591d2200a9e | 034f7a5d63f278a4ac4678ed18ee63413a102757 | refs/heads/master | 2020-04-01T01:26:07.564735 | 2018-09-17T16:01:47 | 2018-09-17T16:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 1 同步调用,提交后原地拿到执行结果,再执行下一代码,导致串行执行
# from concurrent.futures import ThreadPoolExecutor
# import time
# import random
#
#
# def la(name):
# print('%s is laing' % name)
# time.sleep(random.randint(3, 5))
# res = random.randint(7, 13) * '#'
# return {'name': n... | [
"fanhk@126.com"
] | fanhk@126.com |
c067f5c56b4b21b157bbfbec677d387146de15be | 8b52e3aec569de2ead2ab25136ae40f579bfd1a6 | /simpleResult.py | db872d3978959084cd03b871dbc27eb072d803b6 | [] | no_license | k-simons/fantasy | 4dc0201245222e59f8d52788c740e1f82f20cfee | f8b0bb9cf19b551c67ba260305f5a48f1d83835b | refs/heads/master | 2021-09-01T00:03:11.031647 | 2017-12-23T16:50:57 | 2017-12-23T16:50:57 | 115,209,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | class SimpleResult:
def __init__(self, myPoints, opponentPoints, opponentId):
self.myPoints = myPoints
self.opponentPoints = opponentPoints
self.opponentId = opponentId
def __str__(self):
return "myPoints: " + str(self.myPoints) + ", opponentPoints: " + str(self.opponentPoints)... | [
"ksimons@palantir.com"
] | ksimons@palantir.com |
3057eac6538051f09b7e1a9b13902ca179d67bc2 | 6fe54e2c73fab48becf7d3d0f974c801a15429c1 | /ControleFinanceiro/sistema/models.py | 5c77148fd52e05aa076778c6126be5d36ed4d763 | [] | no_license | fczanardo/django | be134bd7ca9b98af2dc7b0a20d5c134b8fd2b2de | 9bddaa45e010cc589cc9fa011083e137182dc9c9 | refs/heads/master | 2021-01-10T12:12:39.284682 | 2015-10-17T13:25:15 | 2015-10-17T13:25:15 | 44,437,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
class TipoDespesa(models.Model):
nome = models.CharField(max_length=100)
def __str__(self):
return self.nome.decode("utf-8")
class Despesa(models.Model):
tipoDespesa = models.Fore... | [
"fczanardo@gmail.com"
] | fczanardo@gmail.com |
0302d39e78724531b2f09e38788aa5f669609958 | 82ca891008793f570668a7f2c760ae0f22d40494 | /src/VAMPzero/Component/Wing/Aileron/Geometry/tipYLocation.py | 078b55d940fb68c2cb44be5e6bcef8800cd0f839 | [
"Apache-2.0"
] | permissive | p-chambers/VAMPzero | 22f20415e83140496b1c5702b6acbb76a5b7bf52 | 4b11d059b1c7a963ec7e7962fa12681825bc2f93 | refs/heads/master | 2021-01-19T10:49:06.393888 | 2015-06-24T10:33:41 | 2015-06-24T10:33:41 | 82,208,448 | 1 | 0 | null | 2017-02-16T17:42:55 | 2017-02-16T17:42:55 | null | UTF-8 | Python | false | false | 2,598 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | [
"daniel.boehnke@dlr.de"
] | daniel.boehnke@dlr.de |
3513c399877852d2b68054d474a187e373787f47 | f10506a518f3f1b383e0d74771b7a841464ad5f7 | /src/realtweetornotbot/utils/urlutils.py | c06e053bad901ac22724019c413dbb60356201cf | [
"MIT"
] | permissive | giulionf/realtweetornotbot | 65017926744a627af971a7a846e73aa20df9cd00 | 4c6765a6992201b4b1d404cfec08d7193c52d750 | refs/heads/master | 2022-02-18T05:04:34.452064 | 2022-01-25T11:39:40 | 2022-01-25T11:39:40 | 162,637,686 | 89 | 7 | MIT | 2022-01-25T11:40:09 | 2018-12-20T22:27:13 | Python | UTF-8 | Python | false | false | 655 | py | import requests
IMAGE_FORMATS = ("image/png", "image/jpeg", "image/jpg", "image/webp")
class UrlUtils:
""" Helper class for URLs """
@staticmethod
def is_imgur_url(url):
""" Returns true, if an image url is an IMGUR image or album """
return "imgur.com" in url
@staticmethod
def ... | [
"giulio.nf@googlemail.com"
] | giulio.nf@googlemail.com |
ad5e9d5c0758fadfff36a115114fadf5e4cf2117 | d150557a870155e6b13803ccbf6a00baeeaa2938 | /neural_nets_dsr/optim/gradient_descent_momentum.py | e180d353b7418adacfc3013eec1643064f75efa4 | [] | no_license | dstilesr/neural-nets-dsr | 7b07dd88d46d8c4fe55bb1a7524d0549578b08fc | 43880f8626fbfe4229932dca9a3dc8feab3f3256 | refs/heads/master | 2023-01-19T16:20:53.435702 | 2020-11-03T15:02:08 | 2020-11-03T15:02:08 | 297,650,650 | 3 | 0 | null | 2020-11-03T15:02:09 | 2020-09-22T13:03:06 | Python | UTF-8 | Python | false | false | 2,802 | py | import numpy as np
from ..network import NeuralNet
from typing import Union, List, Tuple
from ..cost_functions import CostFunction
from ..utils import ExpAvgAccumulator as ExpAvg
from .regularized_gradient_descent import GradientDescentL2
class GradientDescentWithMomentum(GradientDescentL2):
"""
Mini batch gr... | [
"d.stiles.r@hotmail.com"
] | d.stiles.r@hotmail.com |
2a267560a422f7c6eff4da4d5177892beb9c99f9 | abeec076f89231c4dd589e84def8301e653d6e20 | /orders/views.DEP.py | 9ac624bc2133c17490ffaf2dc25abdf9178452e3 | [] | no_license | gibil5/pcm_restaurant | 1cde6ee2780d3aa39dbc26dd9583f8465a1ff13a | a56ec01c533ed2b6e198de9813f9518a3eca2d14 | refs/heads/master | 2020-08-29T20:10:13.606229 | 2019-12-01T19:48:47 | 2019-12-01T19:48:47 | 218,160,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | def add_order(request, employee_id):
print()
print('Add order')
title = 'Add Order'
cook = get_object_or_404(Employee, pk=employee_id) # Get Object
print(cook)
table = Table.objects.first()
# Create and populate
if request.method == 'POST':
print('Create and populate')
form = lib.NewOrderForm(reques... | [
"jrevilla55@gmail.com"
] | jrevilla55@gmail.com |
7168ef1d67ba0aec51dcd92359bfc7c437414145 | b00a2c1e97bb52cdab1fa217797ae1bb42fea759 | /Endpoint.py | 025ce7e9d95801700620322ff1ce0df35ed7e65d | [] | no_license | nunu2021/DijkstraPathFinding | 365ccfa5d3dc10db9758f6c8b6d559dadded8cdb | fc116bc6e7f8e2ee2f839635dfe548f9d7223433 | refs/heads/master | 2023-06-06T03:42:55.686814 | 2021-07-03T17:19:57 | 2021-07-03T17:19:57 | 382,671,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Endpoint:
def __init__(self, which_endpoint, color, x,y, complete_bool):
self.whichendpoint = which_endpoint
self.color = color
self.position = tuple(x,y)
self.complete = complete_bool
def movePosition(self, x, y):
L1 = list(self.position)
L1[0] = L1[0] + x... | [
"labdhijain753@gmail.com"
] | labdhijain753@gmail.com |
548053fb510f44628c5bba5b2b7d3b962e5a86e1 | b0b87924d07101e25fa56754ceaa2f22edc10208 | /workspace/python_study/python_gspark/15-2.py | 88ec8fdb1e8e43f9901bf9017a64fa128a312bad | [] | no_license | SoheeKwak/Python | 2295dd03e5f235315d07355cbe72998f8b86c147 | e1a5f0ecf31e926f2320c5df0e3416306b8ce316 | refs/heads/master | 2020-04-02T13:49:58.367361 | 2018-11-23T09:33:23 | 2018-11-23T09:33:23 | 154,499,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,204 | py | import numpy as np
a1 = np.arange(24)
a2 = np.arange(24).reshape((4,6))
a3 = np.arange(24).reshape((2,4,3))
a1[5]=1000
a2[0,1]=1000
a3[1,0,1]=1000 #2번째 행, 1번째열, 2번째depth
print(a1)
print(a2)
print(a2[1:3,1:5])
print(a2[1:-1,1:-1])
print(a2[:,1:3])
a2[:,1:3]=99
print(a2)
a1 = np.arange(1,25).reshape(4,6)
even_a = a1%2=... | [
"soheekwak728@gmail.com"
] | soheekwak728@gmail.com |
7abcfbf6270ec44fffdbbd024bf266c3138059db | 8a642f6b7f7555b5d022674f0dfcc546873554cc | /cf_users/models.py | b00af2862014cdde141663e6a0ceabc424c7628c | [] | no_license | robertwhaskell/CodeFellowsUser | cecb90630681d1636c21aa82aa676ca5e0938f2f | b2160c9ed22b62a1c1948f3786a86c2c5a9b1cc0 | refs/heads/master | 2021-03-12T21:34:07.891495 | 2014-11-18T17:51:08 | 2014-11-18T17:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.db import models
class CFUser(models.Model):
first_name = models.CharField(max_length=200)
last_name = models.CharField(max_length=200)
user_email = models.CharField(max_length=200)
def __str__(self):
return "%s %s" % (self.first_name, self.last_name)
| [
"robertwhaskell@gmail.com"
] | robertwhaskell@gmail.com |
77ac69ff892baccedaf8082796e6192fe6a242dd | 0a5f0ab9d8962d0a1c0e0f585baec7a3ab8321d1 | /basic/forms.py | e42c34d2a248b38958dd429206634d76aa68f315 | [] | no_license | saap1tech/courses_web | d98405535c336d84296aa96e81095b10959a0b75 | 0aa4ae97a7a5ac62e82dc395e3bb7401c4af7a44 | refs/heads/master | 2023-06-02T10:46:02.653514 | 2021-06-14T12:19:24 | 2021-06-14T12:19:24 | 350,124,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django import forms
from . import models
class AddVideo(forms.ModelForm):
class Meta:
model = models.Videos
fields = ['video']
def __init__(self, *args, **kwargs):
super(AddVideo, self).__init__(*args, **kwargs)
self.fields['video'].widget.attrs.update({
... | [
"saap1426@gmail.com"
] | saap1426@gmail.com |
d374e8946c982e03abe6e0ae97d1ad02333e3bc6 | af082ba017c5963a966242235b6da037bf65b036 | /Chapter08/chapter8_tutorials/fetch_ros/fetch_calibration/scripts/calibrate_robot | c13fb7bbf481a74f45de2639afbd206ad786d36e | [
"MIT"
] | permissive | PacktPublishing/Robot-Operating-System-Cookbook | 226f885b17cb92b169c09aed3b8c54974269b0a4 | c5ee97aa8c2c3a3ee7c0feb8e3020e94dddefe0f | refs/heads/master | 2023-01-29T19:37:29.163372 | 2023-01-18T10:21:21 | 2023-01-18T10:21:21 | 139,707,483 | 82 | 38 | null | null | null | null | UTF-8 | Python | false | false | 8,941 | #!/usr/bin/env python
# Copyright (C) 2015 Fetch Robotics Inc
# Copyright (C) 2014 Unbounded Robotics Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licen... | [
"nileshs@packtpub.com"
] | nileshs@packtpub.com | |
a02d7df63661429a939a5c439eb0d240cd5fa637 | 593b4bee32a0041f441a9b8b899f7644c51db35d | /mandelbrot_set.py | 01b16f22520eed42a133c1dd5989c6f732ebc862 | [] | no_license | fomindanny/Mandelbrot-Set | 9ee26dd19de694a895875ff13edf7ce584ad3fa2 | 30771387972c92e580669359c55715e904c55596 | refs/heads/master | 2023-04-14T01:16:28.594646 | 2021-04-25T17:04:12 | 2021-04-25T17:04:12 | 360,883,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def iterations_until_diverge(complex_number: complex, threshold: int) -> int:
"""Returns an amount of iterations until function diverges.
Function is z(n + 1) = z ^ 2 + c.
Function diverges when |z| > 4.
"""
... | [
"dannyfomin@gmail.com"
] | dannyfomin@gmail.com |
b8e22c9f0854b5dda5191d086ca45baaa3e98d35 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/twelve-days/5d8ab06a7a6b4acdb6be11d098786e90.py | 8c8955c509d158350c07858c3b2a1c0d850b89cb | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 2,893 | py | #twelve-days
def verse(day):
day = day
if day == 1:
return "On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n"
elif day == 2:
return "On the second day of Christmas my true love gave to me, two Turtle Doves, and a Partridge in a Pear Tree.\n"
elif day ==3:
return "On the t... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
fc9a67b56288b8d36e5bd0d08e89b03d60e15396 | 17665a2daa763d499599d218492953a1cd9e6aad | /Honors Thesis Research/Code/Old Versions/data_redux_v2/spectrum.py~ | 404e55285dd359e5b7cb7b35d00618f31fdc0d7f | [] | no_license | rfasullo15/Stellar-Classification | 332267bdc1aa69244f832b4b579a135c133b51be | 6f0dbb802ac0be6823b3f28f3d14cd5e0841220d | refs/heads/master | 2022-09-14T13:51:36.383409 | 2019-05-27T15:23:10 | 2019-05-27T15:23:10 | 188,866,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | '''
The purpose of a spectrum object is to maintain the calculated values for a given spectrum.
History:
6/25/2018: Class created
'''
import numpy as np
import copy
class Spectrum:
def __init__(self, waves, name):
self.waves = waves
self.name = name
self.isSolved = False
self.values = [0,0,0]
self.grps... | [
"90rfasullo@gmail.com"
] | 90rfasullo@gmail.com | |
6b0c2baf8952bfe46d3c9ac541be5644748044b9 | e6a48a7d5ee2df232355f5d5488fa1cd3c53ce89 | /tests.py | 7f298b580cf0a2453c734408872a2479a954b2cd | [] | no_license | charleycodes/testing-py | f1e07cb678d52e26cd1cdb6bc34dcf7a3c2b331f | 963a50d0074083cf02a253ef77cef46db5c7ff7a | refs/heads/master | 2021-06-05T11:10:35.950108 | 2016-10-14T19:57:53 | 2016-10-14T19:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | import unittest
import party
class PartyTests(unittest.TestCase):
"""Tests for my party site."""
def setUp(self):
self.client = party.app.test_client()
party.app.config['TESTING'] = True
def test_homepage(self):
result = self.client.get("/")
self.assertIn("I'm having a p... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
b39c21cee150b4a79bb52e15acbc4d34f7fd77a1 | 60509c5e1956cb64d0220e9fc4542db7ef18bbf9 | /data_processor/tasks.py | 57aaa7dceaa00bf6eb7e982b81a54c0837862e4d | [] | no_license | Nemesisesq/streamsavvy_dataprocessing | 18989378c8aa6c5a250449e74d93d64303874092 | 6c814818c0bac27c99ad4a5c8799648a5d9e637a | refs/heads/master | 2021-06-15T02:38:32.982171 | 2017-01-17T16:38:49 | 2017-01-17T16:38:49 | 61,290,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import requests
import scrapy
from celery.schedules import crontab
from celery.task import periodic_task
from celery.task import task
from celery.utils.log import get_task_logger
from datetime import datetime, time
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
from co... | [
"nemesisesq@gmail.com"
] | nemesisesq@gmail.com |
4f5bb79b857664488c0166556416293328d76651 | b45230162af7ea65416f61cbbbcf1011a422692b | /tests/test_pygrade.py | 3508d0f3021904959e65229d569c26efa43bef25 | [
"ISC"
] | permissive | Joaron4/pygrade | 47a12ce4e8925d20e0d4384f4f39a102bf149f97 | 68416ba92afd3ef634a83560935941d03265df8f | refs/heads/master | 2023-03-16T18:47:48.576434 | 2020-12-01T02:52:15 | 2020-12-01T02:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pygrade
----------------------------------
Tests for `pygrade` module.
"""
import unittest
from pygrade import pygrade
class TestPygrade(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_000_something(s... | [
"aronwc@gmail.com"
] | aronwc@gmail.com |
c6dcaaa1d65c21d6af0c71bf369ddeb0b511691a | 0c5139b940c94b17cb60202ba84017c001208a08 | /mysite/polls/admin.py | 78baf719c3e0f7f26118abbe4690636368d8c916 | [] | no_license | joshuafierro/poll-app | 8c4a6591a7b94e5f90ec35c7177dd3ef920e5734 | 1f27419584e13f80a9cfcc79f8a3e0a803f7e5c1 | refs/heads/master | 2020-04-09T03:25:55.054339 | 2018-12-03T02:01:03 | 2018-12-03T02:01:03 | 159,982,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
# fields = ['pub_date', 'question_text']
fieldsets = [
(None,
{'fields': ['questi... | [
"josh.fierrosga@gmail.com"
] | josh.fierrosga@gmail.com |
55d1af3af949c3e159d60b095ce259600e812de8 | 156f5362e7381b96f3b2839f94de8778b005274d | /tests/bindings/test_bindings.py | 99e0ca3c3d74647d7e7e35d5cb0769064383656b | [
"MIT",
"CC-BY-3.0"
] | permissive | sairam4123/godot-python | 3f8bfcd989ae1b06ec6bf5e01462895b9f5f5fe0 | a95ed14f6e53ae4eb59e6bd03efb0db90b070bc6 | refs/heads/master | 2021-05-20T20:43:18.764693 | 2020-03-02T13:49:06 | 2020-03-02T13:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | import pytest
import godot
from godot import Vector3, Object, Node, Node2D, PluginScript, OK
def test_free_node():
v = Node.new()
v.free()
# `check_memory_leak` auto fixture will do the bookkeeping
def test_expose_contains_constant():
assert "OK" in dir(godot)
assert OK is not None
def test_e... | [
"emmanuel.leblond@gmail.com"
] | emmanuel.leblond@gmail.com |
93d2a93c3766b10060f1163b0518cd03a037d4de | e2468c60810764971f2dae2b959650b553042810 | /1859_sortingTheSentence.py | e35fc60b5dd3422f73069456f2c324e9ddef7fc4 | [] | no_license | awesome-liuxiao/leetcodesolution | 9a01b6f36266149ae7fe00625785d1ada41f190a | 3637cd1347b5153daeeb855ebc44cfea5649fc90 | refs/heads/master | 2023-06-08T13:42:14.653688 | 2023-06-01T08:39:35 | 2023-06-01T08:39:35 | 213,380,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Solution:
def sortSentence(self, s: str) -> str:
ls = s.split()
res = [""]*len(ls)
for word in ls:
res[int(word[-1])-1] = word[0:len(word)-1]
return ' '.join(res)
X = Solution()
s = "is2 sentence4 This1 a3"
print(X.sortSentence(s))
s = "Myself2 Me1 I4 and3"
prin... | [
"lio4072@hotmail.com"
] | lio4072@hotmail.com |
5314fbf518948b0492c4a997c02f31f89b594a84 | 010a2317be0f4c278c7d9efe3b2881135ceacc6b | /DurgaSir/td_module_Math2.py | 7a2015d2479b198bb5b227f40de3716347f9e86e | [] | no_license | rkandekar/python | 34a774343236a5771557216223831cc7470161b7 | ed459a89611f752c158cfbe7f59408ec533b2533 | refs/heads/master | 2020-03-23T02:56:13.413127 | 2018-07-15T06:06:20 | 2018-07-15T06:06:20 | 141,000,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from math import *
print(sqrt(4))
print(ceil(10.2)) | [
"noreply@github.com"
] | rkandekar.noreply@github.com |
78a7139ed792f4ea8911bc6eaf9aa8468d422fd8 | 000a2564c839a25955faf9cec65c3290956b17b7 | /pygeoapi/config.py | f9fe0d3efe67d372f8807f8d77e480a26a3fcbad | [
"MIT"
] | permissive | emotional-cities/pygeoapi | 6734064f891bb14343c004f04864e531fd0d4852 | 6701d7aaf750d3076907784ec26321b6cb55dc64 | refs/heads/master | 2023-04-16T02:34:37.229234 | 2022-03-04T11:45:56 | 2022-03-04T11:45:56 | 388,576,649 | 0 | 3 | MIT | 2022-03-31T15:12:40 | 2021-07-22T19:34:58 | Python | UTF-8 | Python | false | false | 2,593 | py | # =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2021 Tom Kralidis
#
# 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 ... | [
"noreply@github.com"
] | emotional-cities.noreply@github.com |
ce03108274b37dc8809c8883264cd853956d525c | 17f918c06ca476f79d28d712abfa356b2dcfb6c7 | /koishi/plugins/automation_touhou_feed/events.py | c0284afe3effa51079eda45d6079ea30d3d6ee10 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | HuyaneMatsu/Koishi | eb87693ad34da2483efe2b6bdaa4f3fae417e491 | 74f92b598e86606ea3a269311316cddd84a5215f | refs/heads/master | 2023-08-23T22:54:37.006530 | 2023-08-23T20:26:49 | 2023-08-23T20:26:49 | 163,678,458 | 17 | 6 | NOASSERTION | 2023-06-14T14:18:27 | 2018-12-31T15:18:31 | Python | UTF-8 | Python | false | false | 1,167 | py | __all__ = ()
from ...bots import SLASH_CLIENT
from ..automation_core import get_touhou_feed_enabled
from .logic import (
reset_touhou_feeders, reset_channel, should_touhou_feed_in_channel, try_remove_channel, try_remove_guild,
try_update_channel, try_update_guild
)
@SLASH_CLIENT.events
async def channel_cr... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
5343d009bb6e6979cd372eac83f506835b25c72f | e1ef77ee96f043c2f1a3c97f6b6b3364de00f2e3 | /simvars.py | 13da92dc9a92974e0449390d526b61c783cac8d6 | [] | no_license | awelch17/gsw-sim | defaaaf31f332b65cc3f374f482eb7ff82a2987a | d85210e6ad6651ba878fbe954873b73361564ac5 | refs/heads/master | 2022-04-07T21:20:30.731991 | 2020-02-24T22:47:06 | 2020-02-24T22:47:06 | 242,860,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | WIDTH = 300
HEIGHT = 300
SCALE = 5 | [
"awelch17@geffenacademy.ucla.edu"
] | awelch17@geffenacademy.ucla.edu |
43d0b28b0b29cb0bb324df2d02c8001c4efe022f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_sting.py | bafade4da0ff73720d1509ad0c570e87d50fe446 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py |
#calss header
class _STING():
def __init__(self,):
self.name = "STING"
self.definitions = [u'If an insect, plant, or animal stings, it produces a small but painful injury, usually with a poison, by brushing against the skin or making a very small hole in the skin: ', u'to cause sharp but usually temporary pain:... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3700d5b41ee354b7571d296caae7e7d00f26b52c | 49961fcc0e797b0e876298bd85a2302a252b9368 | /PY/qrcode.py | bfd90cead610c7c2971db361f7c7a94dbd9c7a24 | [
"MIT"
] | permissive | digitalrobertlima/BrCrypto | a6780c74a3543ac47c8de23cb135045d9cf4a24d | a49a0020266bf89e76db7b1f57792727eab3470f | refs/heads/master | 2023-04-20T23:12:01.976224 | 2021-05-08T17:44:48 | 2021-05-08T17:44:48 | 284,328,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import pyqrcode as pqr
import png
import io
url = pqr.create('Hello World')
with open('code.png', 'w') as fstream:
url.png('code.png', scale=5)
url.png('code.png', scale=5)
buffer = io.BytesIO()
url.png(buffer)
print(list(buffer.getvalue())) | [
"ge.crio123@gmail.com"
] | ge.crio123@gmail.com |
3f47139f79628be8532328c2add281c440ca5961 | 7f03e2dab9450d44ef82aa4a671705539d0923c9 | /自动化工具/__init__.py | cc591a1ebeb27b4f0c741b550ba0545314ab3f74 | [] | no_license | A-fish-in-Lake-Baikal/python-exercise | 61fc62549e6d1db1056f80e4d560cd56cd55af54 | f4b8da074cd61e1579740163d93dc909da5780ac | refs/heads/master | 2023-06-24T15:06:13.036918 | 2023-06-09T03:06:55 | 2023-06-09T03:06:55 | 132,322,783 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # -- coding: utf-8 --
# @time :
# @author : 马维畅
# @file : .py
# @software: pycharm
| [
"1627967707@qq.com"
] | 1627967707@qq.com |
83246efd64e69461197ca4f0db477e3fc3ab28b5 | 823891eb0faab76c4276c0301c8e2271a94cdedc | /blog/migrations/0001_initial.py | 78aa5eefc032c5fb135df89b91369985ba1d4de7 | [] | no_license | jrcl/my-first-blog | 49846c319cf93aa5a9e51c56b649a14cb420c5d4 | 5049e3e2202fb5ced3971e38e1c0140ea206620a | refs/heads/master | 2021-01-19T05:00:53.955329 | 2016-07-30T17:07:00 | 2016-07-30T17:07:00 | 64,555,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-30 15:57
from __future__ import unicode_literals
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
depen... | [
"jrcl_@live.com"
] | jrcl_@live.com |
8ff0cf9f0326d522054d28a689a09a1bba5d292a | 1c8ea05ed65d76ab0e7bf8e642e0573e34d880ab | /BOJ/continue_number.py | fd2990487b7814cfe23effa2dc2d61bb8c9f9285 | [] | no_license | PARKJUHONG123/turbo-doodle | 1d259c88544d5e52ed375f119792363f5c1b4377 | 6b073281236af50949042c1a6b269752037cb829 | refs/heads/master | 2023-01-14T13:41:58.299164 | 2020-11-23T12:12:30 | 2020-11-23T12:12:30 | 259,669,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # 1~9 : 9
# 10~99 : 90
# 100~999 : 900
# 1000~9999 : 9000
import sys
def nine_num(size):
num = pow(10, size - 1)
return num * 9
N = sys.stdin.readline().split()[0]
length = len(N)
answer = 0
for i in range(1, length):
answer += nine_num(i) * i
num = pow(10, length - 1)
answer += (int(N) - num + 1) * leng... | [
"corallines@naver.com"
] | corallines@naver.com |
c7ddb6e456c167c0205664de7a610f2034772703 | d33d722990fbbad37314f605aa2f559fe5112266 | /app.py | 4cdd3176daa3c4bf1bcc15be4a46ae3c4fda439e | [] | no_license | Alicepinch/everything-vegan | c4e03befb3b099eced347b026b8f66c574ed937a | 95d8dc2e06da4433d0a663fece65a50138e45bc7 | refs/heads/master | 2023-04-03T17:01:27.088114 | 2021-04-16T17:19:47 | 2021-04-16T17:19:47 | 339,351,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,626 | py | import os
from flask import (
Flask, flash, render_template,
session, request, url_for, redirect)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from flask_sslify import SSLify
from datetime import date, timedelta
from werkzeug.security import generate_password_hash, check_password_hash
fr... | [
"alicepinch@hotmail.co.uk"
] | alicepinch@hotmail.co.uk |
33c67722dbb06879c8fb968c5865e09c1513e5c0 | 21fc3622bb7a3a89a8ed9dec932919936fb1ce36 | /buildout-cache/eggs/plone.app.dexterity-2.1.20-py2.7.egg/plone/app/dexterity/browser/types.py | deb8a418a6eb1ee8ec737110deb355f2e9dceb54 | [] | no_license | erlantostes/plone | 4bc1ccba9e0ab77ce5370489f6b47b806c889c29 | 3a5fb7574cee269a99b148eef695256805ce1a45 | refs/heads/master | 2020-04-01T18:04:32.927641 | 2018-10-17T11:22:59 | 2018-10-17T11:22:59 | 153,469,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,233 | py | # -*- coding: utf-8 -*-
from OFS.SimpleItem import SimpleItem
from Products.CMFCore.utils import getToolByName
from Products.Five.browser.pagetemplatefile \
import ViewPageTemplateFile as FiveViewPageTemplateFile
from ZPublisher.BaseRequest import DefaultPublishTraverse
from plone.app.dexterity import _
from plone.... | [
"root@REIT016437.ifb.local"
] | root@REIT016437.ifb.local |
205439b9d4515ba300cfde06099f3161d70b93d5 | 6595a2006c84aa78eea5582eae766190429d303f | /feed_bot/main.py | 7bad07edfb5e18dde8abbe0f40a9b989725774ff | [
"MIT"
] | permissive | delimbetov/telegram_filtered_feed | 40815053520d61b61bbbcd73498c12bd3773985c | 9e1fa9376d08a8dc32b15f437f289d1967b5b305 | refs/heads/main | 2023-04-09T02:59:07.825779 | 2021-03-29T22:17:38 | 2021-03-29T22:17:38 | 352,798,910 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | from common.logging import configure_logging
from common.resources.localization import load_localizations
from bot import Bot, BotConfig, PersistenceConfig
from common.persistent_storage.factory import PostgresConfig, PersistentStorageType
import config
import sys
def main():
# Configure logging
configure_log... | [
"1starfall1@gmail.com"
] | 1starfall1@gmail.com |
a37eb4e9b811f81b05aa31c0731b3975910c9fa1 | 3db9480f4d7ab4c177dca87d8bc9a9d3cdf7569b | /lib/sedna/algorithms/hard_example_mining/__init__.py | 2f9b4c5c779e90962922e2f6c4d347a04257dcbf | [
"Apache-2.0"
] | permissive | ZHANGJun0007/sedna | ffc258974e46a1d1754a6c127d8e6280d6fdc0dd | c3475e2917e375826bc884c21378bc66150af656 | refs/heads/main | 2023-07-25T03:53:32.916432 | 2021-08-23T06:39:12 | 2021-08-23T06:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # Copyright 2021 The KubeEdge Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"joeyhwong@gknow.cn"
] | joeyhwong@gknow.cn |
6f3d7b1e2e7c737ef8c2cd6fd829fb2a589d34b0 | 8aa9ecfe421b196589b6c9fdc0e954d02d927feb | /examples/reference/models/multi_select_server.py | b34672b41c365a5a26a006ee7da904e5a58dc470 | [
"BSD-3-Clause"
] | permissive | hongyu9000/bokeh | b384484925c6c145e4eaf87460a3f776095e81ed | b19f2c5547024bdc288d02e73fdb65e65991df5f | refs/heads/master | 2020-09-03T15:57:31.157443 | 2019-11-04T05:25:46 | 2019-11-04T05:25:46 | 219,503,733 | 1 | 0 | BSD-3-Clause | 2019-11-04T13:06:20 | 2019-11-04T13:06:19 | null | UTF-8 | Python | false | false | 1,279 | py | ## Bokeh server for MultiSelect
import pandas as pd
from bokeh.io import curdoc
from bokeh.layouts import row
from bokeh.models import ColumnDataSource
from bokeh.models.widgets import MultiSelect
from bokeh.plotting import figure
x=[3,4,6,12,10,1]
y=[7,1,3,4,1,6]
label=['Red', 'Orange', 'Red', 'Orange','Red', 'Orange... | [
"bryan@bokeh.org"
] | bryan@bokeh.org |
7b8246fb813397ebd4875bdf28fb67ca041509c4 | 5c79958d97d03452adb4ef076c0a315883dc8bcd | /python/oneflow/compatible/single_client/test/ops/test_l1loss.py | a487e4cfd29a1b8930e5db611c9d6693737bdc77 | [
"Apache-2.0"
] | permissive | CHzhangi/oneflow | a9fcf0eeeb6a6873ae7234ad811c9dfb9f8ffec6 | 4ea3935458cc83dcea0abd88dd613f09c57dc01a | refs/heads/master | 2023-07-09T21:59:07.442976 | 2021-07-27T09:27:19 | 2021-07-27T09:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,735 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | CHzhangi.noreply@github.com |
24439cacca27563dbc4956aa58d4bbc47e183e0b | 4de627abbc287bfede3c4cf2deb6531788d58d7f | /devel/lib/python2.7/dist-packages/novatel_gps_msgs/msg/_Trackstat.py | ed9622f378f02a9c08b2e054d5611dec368ffca5 | [] | no_license | ghxguo/turtle_drive | 8412ec3d3486fc8f8715dd09c151ea329c288751 | 3d71dcea46f06497c86d6986d3cb3bd10a53cbd8 | refs/heads/master | 2020-05-17T17:16:49.368592 | 2019-04-23T14:16:15 | 2019-04-23T14:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | /home/nishanth/TurtleStuff/turtle_drive/devel/.private/novatel_gps_msgs/lib/python2.7/dist-packages/novatel_gps_msgs/msg/_Trackstat.py | [
"nishmankame@vt.edu"
] | nishmankame@vt.edu |
eaf9c474202dbe579718661a3a2f69fec186fff9 | 4e362dc4df6287682a464e8e37f4f87a59136e4c | /web/controllers/home.py | dcc6a061c82831138d4cf9291a75944b079274a2 | [] | no_license | StrokaLab/JAnaP | 5279f4a25e889890a1aea544d7c8c390cdbcacda | 7624b4931fc1e545560e95d18b15017c244dab92 | refs/heads/master | 2021-08-24T13:54:18.164971 | 2021-06-24T18:43:30 | 2021-06-24T18:43:30 | 172,580,016 | 0 | 2 | null | 2021-06-24T18:43:31 | 2019-02-25T20:31:55 | Python | UTF-8 | Python | false | false | 194 | py |
from controllers import app
from controllers import configuration
from flask import render_template
from flask import redirect
@app.route("/")
def getHome():
return redirect("/projects")
| [
"kelsey.gray0@gmail.com"
] | kelsey.gray0@gmail.com |
f9603f7316c51c5a75eec543b9b2913331dc44e3 | 3ac1ca18816430f0728dae6ebb71a728999f289b | /setup.py | 77d94746200501fb2b7a29488f822d35057ead3e | [] | no_license | DSLituiev/pdscatter | 777cf46ad8553d01a58d665b5d0e41ba1d23670d | a510607faa41ec2bc627a910a3b6a74246569f26 | refs/heads/master | 2020-06-05T08:39:58.691462 | 2015-11-26T00:30:35 | 2015-11-26T00:30:35 | 38,710,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:... | [
"d.lituiev@gmail.com"
] | d.lituiev@gmail.com |
9622490f20cf321f83d5fabf121619a564816f02 | 37f488aa42e043a07ce4a706319844d932f1cd22 | /eval/test_.py | 6bac5d2fb1345d9ed11ab3380665469f1e717561 | [
"Apache-2.0"
] | permissive | almoslmi/e2e_EL_multilingual_experiments | b149f8a4769a127d0e257f7889929eb3e922080f | a52745435f897d8ed5847d80e8bbce4175fb348f | refs/heads/master | 2020-06-17T22:39:03.406241 | 2019-06-20T04:50:17 | 2019-06-20T04:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import os
import sys
import json
from tqdm import tqdm
from keras.models import load_model
from sklearn.metrics import classification_report
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
sys.path.append("./modules")
import candidate_generator as cg
import entvec_encoder as eenc
import laserencoder as lenc
import predict... | [
"shun.sugiyama@jp21.com"
] | shun.sugiyama@jp21.com |
3ed358220dd479af523de7acafc28a6d237fcb72 | c5f50b946ca8ff2d85204c8bf3feefd1e3491e26 | /code/PI/pub.py | 815dd4e02dd3e6285c6d776554e1c1ac74a24124 | [] | no_license | jackwaines/iot | 891ecbf3bc9cc856f92a13dbbc6250d4d14dd980 | e1e0ae5ef326a065d1610bdb07853d0f738cf52c | refs/heads/main | 2023-04-12T21:32:30.258395 | 2021-05-13T09:10:07 | 2021-05-13T09:10:07 | 366,326,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | # import libs
import paho.mqtt.client as mqtt
import os
import time
import random
from time import strftime
from datetime import datetime
import requests
import json
import schedule
import numpy as np
import tensorflow as tf
# load the AI model
model2 = tf.keras.models.load_model('./my_model')
# MQT... | [
"noreply@github.com"
] | jackwaines.noreply@github.com |
f5282b92dfb6af26a78d6b27d683a125d46c98c4 | 5196d8aeeded2cb8f3414d14b9a0050f69cb809e | /tools/train_nsfw.py | 99da01a0b02cff24860ef3151884daca10ce4c5d | [] | no_license | SethWen/nsfw-classification-tensorflow | 0a81ad422f762eedf188f4f8e7ec2161d6428276 | 6dfcb16fd655e66b9dd83237bbe89e84aa5322b9 | refs/heads/master | 2022-12-19T04:30:57.035744 | 2020-09-26T05:53:04 | 2020-09-26T05:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,848 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 19-2-15 下午8:53
# @Author : MaybeShewill-CV
# @Site : https://github.com/MaybeShewill-CV/CRNN_Tensorflow
# @File : train_nsfw.py
# @IDE: PyCharm
"""
Train nsfw model script
"""
import argparse
import os
import os.path as ops
import time
import math
impo... | [
"luoyao@baidu.com"
] | luoyao@baidu.com |
1841cfbfa774d1663121686f516b410799d7ad1f | 430af16a7e275a87931de78bc9125c969b214df4 | /irepublica_wordlist_generator.py | 156793bca8d6dba9566c98609abd346f54cf9756 | [] | no_license | irepublica/py | ddf41f4461aa891f8fa58ad7e73c4050d282d986 | 0dfb7bb562664bc1b549ba5ab23c73e8f68cbd51 | refs/heads/main | 2023-01-29T00:30:26.491119 | 2020-12-12T14:20:43 | 2020-12-12T14:20:43 | 312,934,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | ###
# this code generate a combination of fix number of upper letter and/or lower case and/or number and/or special characters
# this code works as a small suppliment to crunch, where the rule of this program is not available in crunch
# the wordlist generated by this code is suitable to brute force router default pass... | [
"noreply@github.com"
] | irepublica.noreply@github.com |
95a1ebef8e072e4f52379db3b973967ae27f05b7 | 486cf1ffd184a184d51605e4016bf9825c0a7aae | /packages/openshift/status.py | de68f37e15f267d0635f67b64ec81a30c83eafa5 | [] | no_license | jupierce/openshift-client-python | 3a148e9117008bac8882283ba580aca74ed743d1 | 05aaa8d9290d42c03650bbc900421231410f85dc | refs/heads/master | 2021-06-24T09:15:55.711068 | 2019-07-18T16:18:16 | 2019-07-18T16:18:16 | 179,127,261 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | #!/usr/bin/python
from openshift import Missing
def is_route_admitted(apiobj):
return apiobj.model.status.can_match({
'ingress': [
{
'conditions': [
{
'type': 'Admitted',
'status': 'True',
... | [
"jupierce@redhat.com"
] | jupierce@redhat.com |
eadf8693de509f3c4e64a1d6cf870b69b27696a3 | 2aa32777e9991afc371fcee1883d1d4411fe2db6 | /binance-tutorials-master/coinview/backtest.py | 34a7e7d54fca1fef7c03b57d90f1271aa6ba153a | [] | no_license | webclinic017/megalodong | 88b2714549a427087c375d807dc98e5506b0e162 | c9b8c0b52ca0e3c94818aaf3ab117c9abcc8d03b | refs/heads/main | 2023-03-31T23:17:16.171794 | 2021-04-06T15:38:55 | 2021-04-06T15:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import backtrader as bt
import btalib
from talib import abstract
import pandas as pd
# import datetime
class RSIStrategy(bt.Strategy):
def __init__(self):
# self.sma = btalib.sma(data.Close)
self.rsi = bt.talib.RSI(data)
def next(self):
if self.rsi < 30 and not self.position:
... | [
"felix99885@web.de"
] | felix99885@web.de |
9bc9d10b3ff2fc226bfa41037a50c9604a3db5ba | 46aa1b419f9e47b4bb53068474e4ea47ca0c3834 | /displaytools3.py | 737a148590ccb3cb5e111f3c964c3717edca03c3 | [
"MIT"
] | permissive | cknoll/displaytools | 4850e60e7dcb465fde4e81d61f50ca0697d809e2 | 3739b7ace5ff18edca18a113de05caefe88919ce | refs/heads/master | 2021-06-02T00:34:37.803620 | 2017-11-11T17:07:11 | 2017-11-11T17:07:11 | 42,675,014 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,051 | py | # -*- coding: utf-8 -*-
"""
This module was written by Carsten Knoll, see
https://github.com/cknoll/displaytools
This code is licensed under GPLv3
https://www.gnu.org/licenses/gpl-3.0.en.html
------------------------------------------------------------------------------
This module is an experimental ipython ... | [
"CarstenKnoll@gmx.de"
] | CarstenKnoll@gmx.de |
e3b4474b1fdee304f0d66c2a205acce345b33525 | cc5b858569edf6d819491940769eeef99ae78c18 | /app.py | 1e444cd1ff921d36afb514f44af5f445cf749d72 | [] | no_license | abhishek064/web-server-using-flask | 0f54f34c75e8e61b623b5e26443d827a73c3d81a | 3cf44bec3a1a80a054e8293c6678def0041f787b | refs/heads/master | 2021-01-04T18:48:48.168521 | 2020-02-15T13:16:29 | 2020-02-15T13:16:29 | 240,715,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | from flask import Flask, render_template, url_for, request, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app=Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
db = SQLAlchemy(app)
class Todo(db.Model):
id = db.Column(db.Integer, primary_key=True)
con... | [
"abhisheksutariya64@gmail.com"
] | abhisheksutariya64@gmail.com |
181a9e06bb2b8f84cd124f76613902dc3253f2d4 | f8b15bde2e75b24bc157e216d4242c085c2d5f3a | /src/tools/operator_wrapper/alert_operator.py | f8dae50ecdcaa1754343cae2be4342753f3a589c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | AldonahZero/pai | 181704d0ec169db3d2e49c5953e332900f5b24d9 | e6667b9a1c89b8aba26e4b818f7338a083c3d359 | refs/heads/master | 2020-09-09T10:56:59.108163 | 2019-11-13T08:25:55 | 2019-11-13T08:25:55 | 221,428,287 | 2 | 0 | MIT | 2019-11-13T10:02:34 | 2019-11-13T10:02:33 | null | UTF-8 | Python | false | false | 2,308 | py | # Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# 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 ... | [
"noreply@github.com"
] | AldonahZero.noreply@github.com |
1188ff03230eeceac03d987c78afe09f2a08b6a2 | aaf043152f1ed3e59c85ccceee25ea9122e0edaa | /pyvoltha_min/adapters/extensions/events/device_events/onu/onu_lopc_miss_event.py | b0d10ca325e12c42aa5bf627882760a7c8198953 | [
"Apache-2.0"
] | permissive | hanyingzhong/pyvoltha-min | 15fce1b98ecfed16a1e7df593068875568a0c039 | 1e7c313b7be612ca17a42a098dd83743a996c38c | refs/heads/master | 2023-03-25T21:37:42.819826 | 2021-03-24T19:47:01 | 2021-03-24T19:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | # Copyright 2017-present Adtran, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"chip.boling@tibitcom.com"
] | chip.boling@tibitcom.com |
6551775da0fef49383c917f13bf8624a2a168ddc | 936c91e915539171878b602d6fb186a2d095dc13 | /flatten.py | 214e05468e8fa7b79b7abea6476085e67bbaa5b4 | [] | no_license | sharababy/ga-p | e05c6f2c27ff7dedb238d1d2a822e002907709c3 | a4630e09097d67cc85e1d24a16694d09b2a018b1 | refs/heads/master | 2020-03-29T21:15:04.175964 | 2018-09-27T09:43:17 | 2018-09-27T09:43:17 | 150,357,689 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | import csv
import numpy as np
import json
X = []
def flatten(csvf):
with open(csvf) as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
next(readCSV) # Skip header line
for row in readCSV:
k = []
k.append(row[0]) # channel grouping
k.append(row[1]) # date
k.append(row[3]) # visitor id
geo ... | [
"bassi.vdt@gmail.com"
] | bassi.vdt@gmail.com |
32b12704ed0452a472f4a93b47cf393fa27d480c | 899bac17acf97252a33d91af076ff1f16b975210 | /eduiddashboard/forms.py | b5bafba7d3c82f84075476f0b8cf2fa105708771 | [] | no_license | isabella232/eduid-dashboard | 91a209f7833f26a7949cecec60df2e501a82f840 | 99cffaa90f41b13ec34f9d057f19630c644df6ee | refs/heads/master | 2023-03-16T05:19:36.184687 | 2018-07-27T12:27:53 | 2018-07-27T12:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from deform.form import Form
class BaseForm(Form):
""" base form class to override if needed """
pass
| [
"msaelices@yaco.es"
] | msaelices@yaco.es |
d9cc4f54dc821de9d57341568500d5e8c9b79f44 | c8e18c574497d8778e298a5342c5c52ccdcabe6d | /rango/views.py | f0e6dffbbe64e0584ece31ac3c6f7d509e71d6cd | [] | no_license | cinvincible/itech | 52e2a3ad9f9523b8ebc90f6465aa98bb2b961d98 | 244bf1f86bfb6110b0127f0e48b6c33144c5a476 | refs/heads/main | 2023-07-09T02:38:17.437052 | 2021-07-30T11:12:05 | 2021-07-30T11:12:05 | 390,513,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,933 | py | from datetime import datetime
from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import redirect
from django.urls import reverse
from rango.models import Category, Page
from rango.forms import CategoryForm, PageForm
from rango.forms import UserForm, UserProfileForm
fr... | [
"noreply@github.com"
] | cinvincible.noreply@github.com |
dcc93bea34e67aac667f305955c10c2cc9644471 | 9801d1f7eb7a1e4daeece8de4673f943bd40841c | /Bookmark/Bookmark/urls.py | a2b4d99973f7f31064076883b685958196ab77a2 | [] | no_license | Yash-Sapre/Saveit | b80d80943737317db70b4e219c73185bd16c8535 | 6dbc8be4ab9ef526e91916bbb218a873f1976e8b | refs/heads/main | 2023-07-22T14:28:55.153289 | 2021-09-10T10:43:12 | 2021-09-10T10:43:12 | 405,006,082 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """Bookmark URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-base... | [
"yss052001@gmail.com"
] | yss052001@gmail.com |
2a42f51f32d4980a8248c2497f3243c3cba3bd4c | 29286f5f9629bc44fd56d169e39b691536387208 | /lab5/my_application/server.py | 68e32e80b0d7da0b6dc42b540de30460d3b0ed71 | [
"MIT"
] | permissive | craigbrennan24/Lab4-Docker | a71a302d34511f63f396ab3359133b893c1a0e60 | bccd374636af5f69e32c05907690c36ecaf08cae | refs/heads/master | 2021-01-10T13:17:39.842731 | 2015-10-21T14:59:41 | 2015-10-21T14:59:41 | 44,254,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Index page\n"
@app.route('/hello')
def hello():
return "Hello world!\n"
if __name__ == "__main__":
app.run(host="0.0.0.0",port=8080,debug=True)
| [
"craig_brennan24@hotmail.com"
] | craig_brennan24@hotmail.com |
a3dcd4456879cc220aa0640c372c170a6f3e4263 | 75cc297e0ed208ed48dc04b4d86400bb0a5e5c50 | /examples/timeline/model_solution/timeline/app/models.py | 4d91e10097bb0fc3c385dfe8fb08c9184fd19d46 | [] | no_license | SimonCockx/entity | c0c2b798b18b389431b223061c6c025158afde85 | d888771f73f6db0300afbf8ec3fcc1fa6f9cf106 | refs/heads/main | 2023-04-08T09:13:58.300487 | 2021-04-19T00:01:34 | 2021-04-19T00:01:34 | 359,275,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | from collections import Sequence
from typing import Any
from django.db import models
from app.entities import EventRepo, Event, EntityDoesNotExist
MAX_NAME_LENGTH = 100
class EventORM(models.Model):
name = models.CharField(max_length=MAX_NAME_LENGTH)
year = models.IntegerField()
description = models.Te... | [
"simon@sikanda.be"
] | simon@sikanda.be |
a34cfcdef57043cc7f41ac54d209257b20f9284b | fff74e87ac64ca852fd4896e0ffa82db7bdd5246 | /src/secml/ml/classifiers/loss/c_loss_logistic.py | 95e161ced9df8bc72b7a29936896888bd576561b | [
"Apache-2.0"
] | permissive | Cinofix/secml | 04c69ef214df5a324561e7da299379969737d7ed | 431373e65d8cfe2cb7cf042ce1a6c9519ea5a14a | refs/heads/master | 2022-12-21T06:43:13.038269 | 2020-09-15T13:56:01 | 2020-09-15T13:56:01 | 298,513,252 | 0 | 0 | Apache-2.0 | 2020-09-25T08:25:31 | 2020-09-25T08:25:30 | null | UTF-8 | Python | false | false | 4,170 | py | """
.. module:: CLossLogistic
:synopsis: Logistic loss function
.. moduleauthor:: Battista Biggio <battista.biggio@unica.it>
.. moduleauthor:: Marco Melis <marco.melis@unica.it>
"""
from secml.ml.classifiers.loss import CLossClassification
from secml.ml.classifiers.loss.c_loss import _check_binary_score
from secml... | [
"marco.melis@diee.unica.it"
] | marco.melis@diee.unica.it |
51148ac47e877227c9dce5f337b517b769a256b5 | fba1d31a224e521f0c7a7041c24c86475455e8f7 | /backend/ediaristas_workshop/web/urls.py | 2bf95b241e54aa5e6da11240040a9c8cc10de9ce | [
"MIT"
] | permissive | shioheii/ediaristas | c402911256c02655333a485d7d3ac96e5e67721b | fd07472f532683c13511b12ffdc37a5816b729bf | refs/heads/main | 2023-08-18T21:47:32.860984 | 2021-10-20T17:09:56 | 2021-10-20T17:09:56 | 419,107,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.urls import path
from .views import cadastrar_diarista, listar_diaristas, editar_diarista, remover_diarista
urlpatterns = [
path('cadastrar_diarista', cadastrar_diarista, name='cadastrar_diarista'),
path('listar_diaristas', listar_diaristas, name='listar_diaristas'),
path('editar_diarista/<int:... | [
"89222572+shioheii@users.noreply.github.com"
] | 89222572+shioheii@users.noreply.github.com |
367fc94a0fd126565afc94f6fd44e62f3b1f9d8b | 65829d312009ee4c686aad419a800678c6954755 | /samples/basic/util_properties.py | cbc89f62bdb8ba01d82175d336ee8aeea3f73820 | [] | no_license | hercwey/PythonBestStudySamples | 3d8fd667045ba648037a03c6867d9ec7faa2b22d | 63696bbac1250ab60bfb6b9846bb4f884b7ffe6c | refs/heads/master | 2020-04-17T21:35:33.541165 | 2017-02-07T01:51:27 | 2017-02-07T01:51:27 | 66,250,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | # -*- coding: utf-8 -*-
"""
python 操作properties文件
"""
class Properties(object):
"""properties object"""
def __init__(self, fileName):
self.fileName = fileName
self.properties = {}
def __getDict(self, strName, dictName, value):
if (strName.find('.') > 0):
k = strName.s... | [
"bernwey@gmail.com"
] | bernwey@gmail.com |
e2ec00935752105a1560d7cc0670dfea639a3dc8 | 78a733324876a9369e3f7f2ad1dc235a1118f0ae | /src/Location/Location.py | 62c6477b258c8cb96fba284c746fb5a94675c81d | [] | no_license | razibchamp/drs | fe1a00b323661981b118abce1ed7a70ad0566b23 | dcb8188c19d373e4eecc230803495c09cb621667 | refs/heads/master | 2020-03-25T02:04:49.763993 | 2018-08-19T09:22:27 | 2018-08-19T09:22:27 | 143,272,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | class Location:
def __init__(self, latitude, longitude):
self.latitude = latitude
self.longitude = longitude
| [
"nightshuvo@gmail.com"
] | nightshuvo@gmail.com |
dff782445f083c8852c95a14f37f05b290a8043b | ba6921a268198bc0af433622c021533905f5d462 | /scripts/in_container/run_migration_reference.py | 43692b2c458d2e0a50e097a818144f39bdf31553 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | potiuk/airflow | b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd | ca2f3013bcb123c4b3973a5b85de77094bf2c459 | refs/heads/main | 2023-08-30T13:05:50.698888 | 2023-05-21T21:08:14 | 2023-05-21T21:26:14 | 173,467,275 | 8 | 7 | Apache-2.0 | 2023-05-21T21:58:40 | 2019-03-02T15:50:53 | Python | UTF-8 | Python | false | false | 6,272 | py | #!/usr/bin/env python3
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | [
"noreply@github.com"
] | potiuk.noreply@github.com |
ed4e792ba70c4002bfe1ec382590ba8af555085c | ebd5c9da14013b996f42062a1b4c703124aa7bfb | /manage.py | ac47b282914fc285307777870b1642bfa6f6fe4b | [] | no_license | nargok/graphql_hackernews_clone | fcba15b8b0d8f442260dc755d704c766ff876d6a | cd25c2bd71316831b072e12252263c6ad5c9febf | refs/heads/master | 2020-04-11T18:14:35.945830 | 2018-12-22T02:36:02 | 2018-12-22T02:36:02 | 161,991,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphql_tutorial.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"nargok@gmail.com"
] | nargok@gmail.com |
51dfe4429a048801b0b68c3d5c4c08950d083957 | a49cb927114854f115c7b500297509aaa06fc553 | /02 高级处理/02-蓝图/home/views.py | fdf63186389a4f21f55b500acf4d0bf5b68559e7 | [] | no_license | XT-0220/flask_pratice | 4bb9e9a991085ebce8b2e79c5e65a47850ca3b19 | cce7e9ab7996eff57906524836f22e9be879eab3 | refs/heads/master | 2022-12-25T22:24:55.231274 | 2020-10-13T07:22:16 | 2020-10-13T07:22:16 | 302,593,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from home import home_blue
# 使用蓝图对象来定义路由
@home_blue.route('/')
def index():
return 'index' | [
"1606778306@qq.com"
] | 1606778306@qq.com |
b982d5403b5334baa6e3ec0af46dee88ac765ead | 86e492636b8459f32493e73536cb4a970c9d2c52 | /for-3.py | 1aa9d15aa252ae61b6557c15a72ea65daae00169 | [] | no_license | royanusree17/royanusree | c29d1e8e31179367b837f1412b3bb80409dbde35 | ab78a843d70df716951a82ece4789fa2709b73f9 | refs/heads/master | 2020-04-16T03:13:33.561549 | 2019-01-11T11:04:54 | 2019-01-11T11:04:54 | 165,224,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | numbers = [1,2,3,4,5,6,7,8,9]
odd_count=0
even_count=0
for a in numbers:
if a % 2:
odd_count+=1
else:
even_count+=1
print("total even numbers is:",even_count)
print("total odd numbers is:",odd_count) | [
"royanusree17@gmail.com"
] | royanusree17@gmail.com |
b006def7b59d29f5eaeeb1c93b391c39ce36af97 | aac97d130077481103bcb4b8a10d2f3ecafe8dd2 | /test.py | 819f4d9e8ffed64796c9ef2095f5d8d7cc203194 | [
"Zlib"
] | permissive | orlp/pyflat | 58963f8681693f736872e5eacec1ae73f436ffcc | 06f3afa1e905aded583910197448c28894e7a1f2 | refs/heads/master | 2016-09-10T03:17:20.893770 | 2015-03-13T10:57:19 | 2015-03-13T10:57:19 | 5,957,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from __future__ import print_function
import flat
window = flat.Window(800, 600, "hi")
@window.event("on_draw")
def on_draw(window):
flat.gl.glClearColor(0.5, 0.5, 0.5, 1.0)
flat.gl.glClear(flat.gl.GL_COLOR_BUFFER_BIT)
flat.run() | [
"orsonpeters@gmail.com"
] | orsonpeters@gmail.com |
639f782d0b5634e6547e1ac507f86cdcb51bf2ac | 26551769200eafa5bdd72ea5a51f87e61dbd8d6d | /hackerrank/august_infinitum_2014/testit.py | ea69cdf1c777c240061cb87045566b78a4323b3d | [] | no_license | kalachand/codes | f894945a2cdc4c7868fd1f24c3b7727f32cf5ba1 | ed45d7ffe380e4e5d52f95e9542a108e4ceeceb7 | refs/heads/master | 2021-01-15T12:44:29.552598 | 2015-11-03T21:02:36 | 2015-11-03T21:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import random
t=1000
print t
for i in range(0,t):
n=random.randint(1,20)
m=random.randint(1,50)
print n,m
| [
"akash.wanted@gmail.com"
] | akash.wanted@gmail.com |
1bc121225564cba3c38fedf0ca37e1a4a62a6b65 | decd47b6a8f1a4f7eb41972bbb8f7e704a0b707e | /Anirudh Kala/booth-OSI.py | 1e2c7740a1f28333e85e9d5d9c10dd72e8228725 | [] | no_license | bonomali/Data_Science | d4e017e3f201ccaeb392ec980bb0acee1dfd3131 | c8dffb46356fdeed7c6f35cfa28e11acd6efc048 | refs/heads/master | 2021-05-30T10:16:47.903876 | 2015-10-04T23:54:29 | 2015-10-04T23:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py |
import scipy as sp
import csv
import pandas as pd
'''
path = {}
path[1] = "AF (OSIsoft)"
path[2] = "Analytics (OSIsoft)"
path[3] = "BI (OSIsoft)"
path[4] = "Cloud Connect (OSIsoft)"
path[5] = "Data Archive (OSIsoft)"
path[6] = "ESRI (OSIsoft)"
path[7] = "Interfaces (OSIsoft)"
path[8] = "Managed PI"
path[9] ... | [
"abhinav@abhinav-Inspiron-5537.(none)"
] | abhinav@abhinav-Inspiron-5537.(none) |
3d6ae1524644fc9c4474380cbf883f97a21eee67 | 2e414394e8a0a85dd7244fcd24d8b9910ce2dbea | /arcpy_pyqt5.py | f39d6db2ddd4995d176225d71761ac4abc42c2dc | [] | no_license | GitHubQXJ/Pyqt | f8370b7a006cb0a3e9b0180da3266f1cc76aadbe | 5a7bf2a5182d7b10726d9163beca1721ab4a7e5a | refs/heads/master | 2020-03-29T02:08:37.446753 | 2018-09-19T12:14:33 | 2018-09-19T12:14:33 | 149,422,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # coding=utf-8
import arcpy_crete_xml
import sys
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
class picture(QWidget):
def __init__(self):
super(picture, self).__init__()
self.resize(600, 400)
self.setWindowTitl... | [
"284451800a@gmail.com"
] | 284451800a@gmail.com |
a4d11746359dce92018f4d136895e0404bff8188 | 53d455b09622cc7d85c6227cfc88e87a269f8e94 | /mysite/settings.py | 3ec8adcf457031f8156c804505a9ca36454fe287 | [] | no_license | type89/new_djangogirl | 1e44949c4ddbff4a7c3c4ef5b340134b5bd25416 | e7c66d1f36707f3ce53fbc9b4e3e2bae2c66af23 | refs/heads/master | 2020-05-18T17:35:40.290035 | 2019-06-29T06:51:22 | 2019-06-29T06:51:22 | 184,560,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"zong1yuan2@gmail.com"
] | zong1yuan2@gmail.com |
2efdbea82d4abfb77c931c704001160943c5b23f | f2f8a8b75c65d10e1a0f8cb89d27e558107e34b7 | /greenBottles.py | e153e3a95d6514ef50058f1d414cc0882984bbe8 | [] | no_license | jrawson7093/code-change-test | c23dd9cac585c7e6f9a510efa8053de3ed3d4891 | 5a33ebd6e16c09ef9603adca2519a971e368aff2 | refs/heads/master | 2021-01-17T21:14:21.361669 | 2014-05-16T13:23:22 | 2014-05-16T13:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import time
for i in range(10, 0, -1): #Count down from 10 to 1
for j in range(2): #Do this twice
print("{0} green bottle(s), hanging on the wall".format(i))
print("And if 1 green bottle should accidently fall,")
print("They'll be {0} green bottle(s) hanging on the wall.\n".format(i-1))
time.sl... | [
"jrawson7093@soham-college.org.uk"
] | jrawson7093@soham-college.org.uk |
37123c73964b688ed5ae817b4fd7992a14458970 | 267970b4cdb9aae02e66ae2c31f36f2b2bade05f | /elevation_api.py | 4bfba5b80e95fa9d985a77d56d4dbd9efe55ebe6 | [] | no_license | Tound/FlightPlannerScripts | 169839cd6207709c74cb0e323e52e06cec763a5d | 795822cd12d5f056778e82a9843c44a732e7eb08 | refs/heads/main | 2023-04-25T21:07:00.689092 | 2021-05-28T14:12:24 | 2021-05-28T14:12:24 | 335,413,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import requests
import json
URL = "https://maps.googleapis.com/maps/api/elevation/json?path="
API_KEY="AIzaSyDs4rYa3WPPu30NV0K9ysOtxkgWXhb7jF8"
#URL = https://maps.googleapis.com/maps/api/elevation/json?path=36.578581,-118.291994|36.23998,-116.83171&samples=10&key=AIzaSyDs4rYa3WPPu30NV0K9ysOtxkgWXhb7jF8
samples = 10
l... | [
"tompound@ymail.com"
] | tompound@ymail.com |
a6278547013cee57c3cc6702108a2284c2d04ee0 | 6a45a5dd00dd01edfcd3d4145501048ff2d987ba | /src/data_preprocess.py | 9cdf7be3e9d81e358b656db4ef49ab9feff3f081 | [] | no_license | luzengxiang/CISC879_Project | 18d46b960934ce6a38ccc176c04618cf7ee75a30 | 181a833025cecfaba600308f0b9ee448e7468bb5 | refs/heads/master | 2021-08-23T01:39:34.804696 | 2017-12-02T06:50:56 | 2017-12-02T06:50:56 | 108,591,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py |
from lib.crop_image import import_eps
import argparse
import numpy as np
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description = "data_process based on Zone")
parser.add_argument('Zone', type=int,help='Positional zone number:int')
args = parser.parse_args()
if... | [
"zxlu@udel.edu"
] | zxlu@udel.edu |
846832ff991ad47d5a5fa26386e041136814197f | ed983a4dfe11b18c19e42cc39c1804c154e3e608 | /unit_test/test/test_unet.py | 3d0a7caf9fc916533a5d8cf33b8a046476bbef41 | [] | no_license | riven314/Keras-UNet-Foreground-Extraction | 90d32475e9025af154bd642f123b2ea153ebed9b | f71535cb25cb798904b424f4a468a13087d22006 | refs/heads/master | 2020-09-06T11:52:58.043107 | 2019-12-10T10:00:24 | 2019-12-10T10:00:24 | 220,416,411 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | """
checking schedule
1. model output shape
2. sample check number of channels
3. check dropout rate (12, 16)
REFERENCE:
1. converting tensor to numpy: https://stackoverflow.com/questions/34097281/how-can-i-convert-a-tensor-into-a-numpy-array-in-tensorflow
"""
import os
import sys
import itertools
MODULE... | [
"alexlauwh@gmail.com"
] | alexlauwh@gmail.com |
128cf41497f94f6804cfba19418c237eafbd269e | 234dbe7c61df183f11169c933b082eb940b56c17 | /predictpipeline.py | 3af2a77707bf929ee8d57eef77e45f4bc6b4f6c3 | [] | no_license | Akshat243/EGEN_project | 39b57d7826cbd9b30f8e8f0592a1bdfdca8df05f | 6e5158f4b71f7a562e169506aef355ebef82a7d3 | refs/heads/master | 2022-12-15T15:10:46.759557 | 2020-09-09T06:36:19 | 2020-09-09T06:36:19 | 294,018,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,546 | py | import apache_beam as beam
import logging
import joblib
import numpy as np
import pandas as pd
import argparse
import re
from google.cloud import storage
from apache_beam.options.pipeline_options import StandardOptions, GoogleCloudOptions, SetupOptions, PipelineOptions
from past.builtins import unicode
# Build and run... | [
"noreply@github.com"
] | Akshat243.noreply@github.com |
c016beb5d996c1ca1390e35753f3e429fdebd5a6 | 4ec6ed4ebcb9346042669e6aa03be0e502ed48b3 | /leetcode/convert-sorted-array-to-binary-search-tree.py | 84e69232dd85203daae4a1d75c1f376e113add3f | [] | no_license | shonihei/road-to-mastery | 79ed41cb1ad0dc2d0b454db2ccc7dd9567b03801 | 312bdf5101c3c1fc9a4d0b6762b5749ca57efe08 | refs/heads/master | 2021-01-22T19:59:17.038641 | 2017-11-16T15:21:55 | 2017-11-16T15:21:55 | 85,266,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
"""
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def sortedArrayToBST(nums):
if not nums:
return None
mid = len(nums) // 2
root = TreeNode(nums[mid])
roo... | [
"shonihei@gmail.com"
] | shonihei@gmail.com |
110cfc179264d2d70fbca93edc3f46956b3bc8f2 | e7a45a5ef1cbbac2e6f9865f46fd5350cd1358da | /download_wallpapers_automatically.py | 0b026b7498f2ce85b5c2ef08594c8331c7e97db4 | [] | no_license | shanto12/Wallpaper_Downloader | 3b49349f7bcef221e1d24e6198c4c319f339c7c9 | e103e6dd98193c9cf0e71864f91f3d24d8334f7c | refs/heads/master | 2023-05-30T17:41:16.550122 | 2020-06-24T06:29:40 | 2020-06-24T06:29:40 | 274,592,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | ## Importing Necessary Modules
import requests # to get image from the web
import shutil # to save it locally
import re
from string import Template
IM_FOLDER = "C:/Users/smatthew/Downloads/wallpapers"
HOME_URL = "http://wallpaperswide.com/3440x1440-wallpapers-r/page/"
LIMIT = None
DONT_DOWNLOAD_SET = {'latest_wallpa... | [
"shanto12@gmail.com"
] | shanto12@gmail.com |
40a42af680a63e3a17bb18fe661dc09bb9d98b56 | 6ef8abce322da7a6acf8b940801d7c2286b55f42 | /Programmers/compressString.py | fccb357227a2eb76df7a508063b6c1f0361d23a2 | [] | no_license | 702criticcal/1Day1Commit | 747a61308e2fae87bad6369cd0bc481bdc89b29a | aec375b8b41de1ed5366c714cc6a204905fb2763 | refs/heads/master | 2023-01-31T16:47:24.457584 | 2020-12-18T03:42:28 | 2020-12-18T03:42:28 | 287,663,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | def solution(s):
if len(s) == 1:
return 1
answer = len(s)
# 압축할 수 있는 문자열의 최대 길이는 길이 / 2까지이다.
for cut in range(1, len(s) // 2 + 1):
result = ''
cnt = 1
temp_str = s[:cut]
# 1부터 길이 / 2까지 잘라서 문자열 비교.
for i in range(cut, len(s) + cut, cut):
# 앞의 ... | [
"wnstn1549@gmail.com"
] | wnstn1549@gmail.com |
41aa210c76cd9e275d36d7bcd423bf5e38ea262f | c368073d2f20e7c1b42913e48f517aced5798925 | /Python-usp/Semana 4/exer2.py | 818c7da63fb227725c56412f01047b20b625fc8f | [] | no_license | rodrigodasilv/demandas-py | b7f3f1329d154edd35ee4ed4f937b58270888854 | 2c8bd3279dd82200eeb8af387a924923d09ca055 | refs/heads/main | 2023-03-05T00:19:41.567881 | 2021-02-16T17:13:02 | 2021-02-16T17:13:02 | 337,445,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Exercício 2
# Receba um número inteiro positivo na entrada e imprima os n n n primeiros números ímpares naturais. Para a saída, siga o formato do exemplo abaixo.
# Nota:10/10
impares=1
numero = int(input('Digite o valor de n: '))
while numero>0:
print(impares)
impares=impares+2
numero=numero-1 | [
"noreply@github.com"
] | rodrigodasilv.noreply@github.com |
146ac52c155f6a21ab8f406bde451d1ce53f6925 | 0d464df42f5cc3c9a3b992ae9ff6160e5da5701d | /CHAPTER 12 (sorting and selection)/decorated_merge_sort.py | 1ac0479db866b540143a43557da8834d51e73996 | [
"MIT"
] | permissive | ahammadshawki8/DSA-Implementations-in-Python | 6b61d44e638bfb7f6cf3a8b1fc57d15777313420 | fc18b54128cd5bc7639a14999d8f990190b524eb | refs/heads/master | 2022-12-26T03:54:16.229935 | 2020-10-07T05:17:55 | 2020-10-07T05:17:55 | 267,899,551 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from linked_queue_class import *
from merge_sort_linked import *
def decorated_merge_sort(data,key=None):
"""Demonstration of the decorate-sort-undercorate pattern."""
if key is not None:
for j in range(len(data)):
data[j] = _Item(key(data[j]), data[j]) # decorate each element
merge_s... | [
"ahammadshawki8@gmail.com"
] | ahammadshawki8@gmail.com |
27bcb2ddf2ee9ab7fbfbefe716406c1ac2b1218b | 321db74b4b2dfa164a590b2988ceeb6e49642fe6 | /app.py | 942726b3ab0fa89f68878bda730a697bffa199c3 | [] | no_license | dawong8/carry-me-backend | c9341be112d26fd0cb7780a5fccd5e0d8d22feae | eec54234195273a4da21e71b3a7baf4f539c1fb9 | refs/heads/master | 2022-12-09T00:08:04.684547 | 2019-03-25T01:20:29 | 2019-03-25T01:20:29 | 174,024,572 | 0 | 0 | null | 2022-12-08T01:41:41 | 2019-03-05T21:38:31 | Python | UTF-8 | Python | false | false | 1,081 | py | from flask import Flask
from resources.users import users_api
from resources.game_data import game_api
# from resources.reviews import reviews_api
from flask_cors import CORS
from flask_login import LoginManager, login_required, logout_user
login_manager = LoginManager()
import models
import config
app = Flask(__... | [
"wong.danny29@gmail.com"
] | wong.danny29@gmail.com |
ad1b85e24bddffba1588102c18d19e9a7f5c4a35 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/batch/jm/parser_errors_2/925229167.py | e0ca9ce450c7ef5983d536f9dd4a53f2584448db | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,170 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 925229167
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 3, 3)
assert board is... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
39d57df74e1e8a8b0dd0cef6f723ebb14bb7e914 | 8d7d847f109183365022112a6b76cb20fa158255 | /NewsPage/views.py | 9a7ae5d9d34449289c2f5e638fb85cb92dc2f9fd | [] | no_license | Xarliend/DataViewSite | 42e59fed9483ff2f877a40b4f31a1b82c5435ecd | 59921492547d68908e6e8f54a062baeb05b19580 | refs/heads/master | 2022-11-24T15:12:01.842042 | 2020-01-04T22:21:17 | 2020-01-04T22:21:17 | 227,699,982 | 0 | 0 | null | 2022-11-04T19:31:04 | 2019-12-12T21:29:47 | Python | UTF-8 | Python | false | false | 469 | py | from django.shortcuts import render
from api.models import BcNews
from django.http import JsonResponse
def index(request):
news_list = BcNews.objects.all()
return render(request, 'news_index.html', {'news_list':news_list})
def news_detail(request, path):
targetnews = BcNews.objects.get(title=path)
new... | [
"43079993+Xarliend@users.noreply.github.com"
] | 43079993+Xarliend@users.noreply.github.com |
b86e21edd60be743de7e055ffd942d0674c17b3d | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GstGL/GLRenderbufferAllocationParams.py | 23d2ebdb5969b2516f3587d02945af8e1fa95f4d | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 6,772 | py | # encoding: utf-8
# module gi.repository.GstGL
# from /usr/lib64/girepository-1.0/GstGL-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
523370407de74d208a58350773a65f4cdeb3db70 | 1b9bd441c500e79042c48570035071dc20bfaf44 | /sources/Content_Quality/maaseh_rav.py | dc357b5ead6ad4f0a88e432e20e9a2c905ee8b98 | [] | no_license | Sefaria/Sefaria-Data | ad2d1d38442fd68943535ebf79e2603be1d15b2b | 25bf5a05bf52a344aae18075fba7d1d50eb0713a | refs/heads/master | 2023-09-05T00:08:17.502329 | 2023-08-29T08:53:40 | 2023-08-29T08:53:40 | 5,502,765 | 51 | 52 | null | 2023-08-29T11:42:31 | 2012-08-22T00:18:38 | null | UTF-8 | Python | false | false | 712 | py | import django
django.setup()
from sefaria.model import *
import csv
from sources.functions import *
nodes = []
with open("Maaseh_Rav_Alt_Structure_Guide.csv") as f:
for n, row in enumerate(csv.reader(f)):
if n == 0:
continue
he, en, simanim = row[0:3]
node = ArrayMapNode()
... | [
"stevenkaplan@stevens-MacBook-Pro.local"
] | stevenkaplan@stevens-MacBook-Pro.local |
b5f82902fa6d5c8bb6c50793c090fc352b764b65 | bafbfd5a5c5600bc3ef1a7bc13a5e8efe96699fe | /myproject/myproject/settings.py | 3c112f5e68e2f6134289480fa59a9d5837dd01d5 | [] | no_license | dmpinform/homework_github_action | 4e99436991442bcafa3aa61e63c7609b64dfc587 | 2a880f3a61ed07d89f415ff6ca784310de1cfded | refs/heads/main | 2023-07-08T02:49:37.442842 | 2021-08-21T18:38:53 | 2021-08-21T18:38:53 | 395,999,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.2.4.
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/
"""
import os
f... | [
"dmpinform@gmail.com"
] | dmpinform@gmail.com |
68f0a4d3a7f0b9d6cd8bf4bf9813983513210122 | fb62825c84c0f4c0f8b4724c62fc89eebafee787 | /Videoapp/migrations/0011_merge_20210222_1736.py | 676d2aff7f1e680f2f0462e707d004b350ef22cf | [] | no_license | toushi100/VODS | 8a43c8625357a1ff9840dfcb8879a856ee5d7df0 | 053f5562b4d50286767f9f9be18dc9c2a34bb481 | refs/heads/main | 2023-06-14T03:57:27.764301 | 2021-07-07T22:52:45 | 2021-07-07T22:52:45 | 313,333,797 | 0 | 2 | null | 2021-03-16T05:17:31 | 2020-11-16T14:48:44 | JavaScript | UTF-8 | Python | false | false | 275 | py | # Generated by Django 3.1.2 on 2021-02-22 17:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Videoapp', '0010_auto_20210221_2021'),
('Videoapp', '0010_auto_20210217_1648'),
]
operations = [
]
| [
"toushi2009@gmial.com"
] | toushi2009@gmial.com |
b6dbc83d15fc726846cdce079b7bf3f329227348 | e574bafd1b3652d68b30c65695856d5e25fa7544 | /pycmbs/tests/test_report.py | b09208fda8438969487a84b332dad974d8591149 | [
"MIT"
] | permissive | gitter-badger/pycmbs | 797169f6229828511d7cf81bb52ce73cb753fc6f | c802cf1fc8737c98e83c0e942451720fce03b860 | refs/heads/master | 2020-12-30T19:36:58.750147 | 2015-02-06T08:29:56 | 2015-02-06T08:29:56 | 30,469,653 | 0 | 0 | null | 2015-02-07T20:46:42 | 2015-02-07T20:46:41 | null | UTF-8 | Python | false | false | 3,419 | py | # -*- coding: utf-8 -*-
"""
This file is part of pyCMBS. (c) 2012-2014
For COPYING and LICENSE details, please refer to the file
COPYRIGHT.md
"""
import unittest
from nose.tools import assert_raises
from pycmbs.benchmarking.report import Report
import os
import numpy as np
import matplotlib.pyplot as plt
import tempf... | [
"a.loew@gmx.net"
] | a.loew@gmx.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.