blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6eae3f6bf28827f0af7a8a1ce5a0229ebf56ecf2 | b3abba7d2e15eaf68cdba90b2c00b075ef5bdfef | /products/migrations/0013_delete_code.py | 6d493b041943aa55ca937229454910dcacdbbaea | [] | no_license | penan9/mysolar | 854951f7ba22713d885ce3f15522c987decaa856 | 4a8963c58e4eb39ce7b5a3335f4a6c8a7a7db8ba | refs/heads/main | 2023-01-08T11:58:30.438335 | 2020-11-01T05:33:16 | 2020-11-01T05:33:16 | 309,028,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # Generated by Django 3.0.6 on 2020-06-03 16:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0012_product_code2'),
]
operations = [
migrations.DeleteModel(
name='Code',
),
]
| [
"penan9@gmail.com"
] | penan9@gmail.com |
e554ed1e3f0ef7ab8afac5e92e7db32e3179c2ce | 05a090ee8f9d6dc6bbcc3d20cf8d4a7c8a627bde | /kash/migrations/0003_auto_20201203_1658.py | 9da1a6f5d84271275e7fa8f9401985f96c9af90e | [] | no_license | Komilcoder/kash_app | 527e84c63b03264f72aba4e2d3039a219beae556 | 88ab937c3391b1104bbdbf733da49634ea645ecf | refs/heads/master | 2023-01-21T00:46:24.482017 | 2020-12-03T15:52:01 | 2020-12-03T15:52:01 | 318,185,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # Generated by Django 3.1.4 on 2020-12-03 11:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kash', '0002_auto_20201203_1648'),
]
operations = [
migrations.RemoveField(
model_name='news',
name='description',
... | [
"yaxshilikovkomil@gmail.com"
] | yaxshilikovkomil@gmail.com |
7ff7c2c625549b98560eb474f501317b55d22629 | 64f1809205896efdb2875a38798ef0d8d2f728f9 | /news/admin.py | 86150182bf0015cfcf7221806434f46540c01c50 | [
"Apache-2.0"
] | permissive | foxy4096/DjangoNews | b7da177d900e0a31691b0a26b2e8b2b5949c684e | 1065a39a8732eae56ff3fb6816ad94b8ec7730f3 | refs/heads/main | 2023-08-29T20:05:08.208641 | 2021-11-16T10:31:34 | 2021-11-16T10:31:34 | 428,604,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from django.contrib import admin
from .models import Article
class ArticleAdmin(admin.ModelAdmin):
def save_model(self, request, obj, form, change):
obj.reporter = request.user
return super().save_model(request, obj, form, change)
def get_queryset(self, request):
qs = super().get... | [
"54215788+foxy4096@users.noreply.github.com"
] | 54215788+foxy4096@users.noreply.github.com |
334c2f38958c2ed773badb5805cc2d29fe06cf35 | 395be40c4a59387302dd7f4affd87155a8be2643 | /19/hitcon-quals/emojivm_pwn/exp.py | 7c61890a65a427a84e9c29ba10b2b0fa02355758 | [] | no_license | kevin47/CTF-writeups | d47dfc928254434e381f7f0a3f476b59f445ff08 | 5fbb0afd58358a4beebfe3467baab65597affa71 | refs/heads/master | 2022-09-28T04:13:28.183163 | 2022-09-07T11:50:23 | 2022-09-07T11:50:23 | 216,670,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | #!/usr/bin/env python2
from pwn import *
from IPython import embed
import subprocess
context.arch = 'amd64'
#r = remote('127.0.0.1', 7122)
r = remote('3.115.176.164', 30262)
#r = process(['./emojivm', './generated_code'])
r.recvuntil('token:\n')
x = r.recvline()[:-1]
print repr(x)
xx = subprocess.check_output(x.spli... | [
"kevinwang0810@gmail.com"
] | kevinwang0810@gmail.com |
270575455ea05a2707115824a57143caea57165a | 1c0e2ffd1237073b53c104e49af35485e6061c36 | /bucketlist/errors.py | a8c901671d122a7f89c7c32e2fe184e31e4795e4 | [] | no_license | WNjihia/flask-bucketlist-api | f2cd73162a51d9c0e51b742b85e7835b62a0a93b | 777fb4bff79deca3848cf9553838d6e4784e58f2 | refs/heads/develop | 2020-06-02T15:10:48.273238 | 2017-07-14T12:06:56 | 2017-07-14T12:06:56 | 94,095,916 | 0 | 3 | null | 2017-07-10T12:42:38 | 2017-06-12T12:53:04 | Python | UTF-8 | Python | false | false | 697 | py | from flask import Blueprint, make_response, jsonify
error_blueprint = Blueprint('bucketlist', __name__)
@error_blueprint.app_errorhandler(404)
def route_not_found(e):
response = {
'message': 'Not found'
}
return make_response(jsonify(response)), 404
@error_blueprint.app_erro... | [
"dorisn172@gmail.com"
] | dorisn172@gmail.com |
791bae68b4e9db3bcdb78397e52bee7f73781fb5 | 2726d9a1c9ca5e956644b4f84ca97e2e7aad3f66 | /driver.py | 92427ea216a61e61f6d6d95b045cb47e14678657 | [] | no_license | rlara413/cpe190 | 3ab520e65c2f7de51480ce5f3fb0437cc476b539 | b5314da9949cc1a96243370b382dc6a047ac70d4 | refs/heads/master | 2023-09-05T13:01:47.766291 | 2021-11-21T04:54:57 | 2021-11-21T04:54:57 | 427,799,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,023 | py | from ubidots import ApiClient
from smbus2 import SMBus
from mlx90614 import MLX90614
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import RPi.GPIO... | [
"rodrigolara@csus.edu"
] | rodrigolara@csus.edu |
e7a09de748ad032a3869dbb66f611c4cfd165af7 | a1b222e40a2949bb3afdaeef838dd883b1a488a4 | /Umbrellas.py | cd8a8eb4d77d3360f365409e2151c02e49b80e4d | [] | no_license | LitaiRenGit/FullTime-coding-test | 07c40c440797a43839f8ed5d46787db0c5c537f6 | 02fb06ec65c94d8cfe594f371dbb87b041d614af | refs/heads/master | 2022-12-21T14:09:47.160829 | 2020-09-29T03:46:42 | 2020-09-29T03:46:42 | 296,659,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 11 20:27:50 2020
@author: renli
"""
# recursive
def getUmbrellas(V, deno):
from functools import lru_cache
deno=tuple(deno)
@lru_cache(maxsize=None)
def f(requirement,size):
if requirement==0:
return 0
elif requi... | [
"noreply@github.com"
] | noreply@github.com |
fa1ae33e67709d6890b2e0093be5c1d44b8ad6fa | d97b6617d61efb79d0636f7c40a76d8dc50e0a77 | /build/uv_control/catkin_generated/pkg.installspace.context.pc.py | c528e00b2a47ff1a00a2a3fa8fab8208d3a5b9db | [] | no_license | tuckerguen/pfc_init_catkin_ws | b3d6de9b1ad48577407a989d7cbc327de4588e39 | 2feabfc4d5306432701b2a9019d683349a0af89f | refs/heads/master | 2022-12-20T17:06:58.447495 | 2020-10-09T17:39:06 | 2020-10-09T17:39:06 | 295,276,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;actionlib;control_msgs;cwru_davinci_kinematics".r... | [
"tkg11@case.edu"
] | tkg11@case.edu |
0d0020c82e9d145c8945e5cc40d7221e7505ec63 | 5f8b1beafc1a293f21d45a30247348cfc6f99299 | /kindergarten-garden/kindergarten_garden.py | 1d54e2d67db253e75fced61c52286bf73622d56b | [] | no_license | vineel96/PythonTrack-Exercism | aca3d16b0ca352060a7ab16c2627f44695f6b855 | c756cf38e39aa6347199cf3143f8b401345ad832 | refs/heads/master | 2020-06-20T17:43:48.972591 | 2019-07-30T06:54:51 | 2019-07-30T06:54:51 | 197,196,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | class Garden(object):
dict={
'G':"Grass",
'C':"Clover",
'R':"Radishes",
'V':"Violets"
}
def __init__(self, diagram, students=['Alice', 'Bob', 'Charlie', 'David','Eve', 'Fred', 'Ginny', 'Harriet','Ileana', 'Joseph', 'Kincaid','Larry']):
self.diagram=diagram
sel... | [
"vineel_abhi96@yahoo.com"
] | vineel_abhi96@yahoo.com |
121e0361b0c9765fca8a1987fe76619433399438 | 8b7b9ff904c949ee79f596f05eb89225b027a318 | /Entrega2/splineCubico.py | 6d80def0804fc699156afef7538a1e1eb013c16a | [] | no_license | eafit-201620030010/M-todos-Num-ricos | d7ee5286f3393132c57263133f219dbb02576c3c | 2214ee5a7d8cbea866da9f9a8df78764854dcfa7 | refs/heads/master | 2023-01-19T10:58:58.942252 | 2020-11-28T19:14:48 | 2020-11-28T19:15:44 | 287,855,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | import numpy as np
#Este metodo recive 2 listas, los X y los Y de los puntos
#Retornara una lista con los Xs resultantes de la matriz generada y una lista de strings con las ecuaciones resultantes
def spline_cubico(X,Y):
k = 0
ecu1 = []
ecu1y = []
for i in range(2,len(X)):
ecu11 = []
a... | [
"scadavidp@eafit.edu.co"
] | scadavidp@eafit.edu.co |
1e772a6440f9a2f9e82b4e23326bab5404703a5b | 189c4090875e8e29a77778b5bbcc5eddcf1bb979 | /flight/models.py | abcd10a6c0cfdf52c780fe24d17f3dd76910c015 | [] | no_license | beloved23/unica2 | 08d7115199d614b52dd66a1fccf5fe75bbaf59ab | 0959da8d6096536d7e004ad8182b66cfdd0d945c | refs/heads/master | 2020-05-07T22:54:29.502599 | 2019-04-12T08:40:23 | 2019-04-12T08:40:23 | 180,965,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,226 | py | # from __future__ import unicode_literals
#
# from django.db import models
# from django.contrib.auth.models import User
# from django.core.validators import RegexValidator
# from datetime import datetime, date
# from django.conf import settings
# from utility.models import ZONE
#
# from utility.models import *
# # Cre... | [
"adegokeayanfe@gmail.com"
] | adegokeayanfe@gmail.com |
520d4361ddcd551bf6614ea880e2bba99e488d33 | 99dea6c2f5c8e1331fd3c22ec2ed3265e7414db7 | /developers_8hr_plot.py | db54e708ca6a01a8fff1344fd853bf8c018ce203 | [] | no_license | nicholas-karimi/Python-Data-Visualization- | 07bf2ee9bd192c3ef43ea6ae0136a5ddc830b855 | fc490fd20f1e94ae36bbf0bbce9d278c9554da7e | refs/heads/master | 2022-03-27T01:49:58.453637 | 2019-10-04T17:11:17 | 2019-10-04T17:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #! /usr/bin/python3.6
from matplotlib import pyplot as plt
plt.style.use('classic')
minutes = [1,2,3,4,5,6,7,8,9]
Developer_A = [8, 6, 5, 5, 4, 2, 1, 1, 0]
Developer_B = [0, 1, 2, 2, 2, 4, 4, 4, 4]
Developer_C = [0, 1, 1, 1, 2, 2, 3, 3, 4]
labels = ['Developer_A', 'Developer_B', 'Developer_C']
plt.stackplot(minu... | [
"kariminic@gmail.com"
] | kariminic@gmail.com |
46153ef260e1b68b189692866fa7a50ce4780f06 | 5b9a2b0aa044b44be89405fc7e450931b7594cf0 | /data-noaa/py_wunder_example.py | 8fef6fc45be1f4fe34479d95bee0606e2713e7ab | [] | no_license | drewthayer/capstone2-avalanche | 8a10641658db6dcfff6d59da4f407076f0b35110 | d0a2a6fe482c067c545e29f712c62c0a0db25471 | refs/heads/master | 2020-03-11T15:05:28.730092 | 2018-04-29T21:51:09 | 2018-04-29T21:51:09 | 130,074,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | # example
import os
import requests
import csv
import pandas as pd
##from urllib2 import urlopen
#from datetime import datetime, timedelta
# API key
import os
api_key = os.environ['WUnderground_API_KEY']
endpoint = "http://api.wunderground.com/api/"
yyyymmdd = 20060406
STATE = 'CO'
location = 'Aspen'
#http://api.wun... | [
"drewthayer@Drews-MacBook-Pro.local"
] | drewthayer@Drews-MacBook-Pro.local |
a4799a1030f692a4ffeee34bb9fe99882ca234a1 | d9c8f1802e6dc7e0559b9bc4e8c1816f7302452f | /geodb/views.py | d70983a4e0deff42cd152e8f1b2cafd136556993 | [] | no_license | dodiws/isdc_geodb | cd04700b98dfd43a8c854510579625b7f6390a88 | 5e2d515eca0417af0f51ea9a5d5ca4ae0ca1eca4 | refs/heads/master | 2020-04-03T10:10:32.062166 | 2019-01-29T06:29:41 | 2019-01-29T06:29:41 | 155,185,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,496 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
import csv, os
from geodb.models import (
# AfgFldzonea100KRiskLandcoverPop,
AfgLndcrva,
AfgAdmbndaAdm1,
AfgAdmbndaAdm2,
# AfgFldzonea100KRiskMitigatedAr... | [
"dodiws@gmail.com"
] | dodiws@gmail.com |
10378955a38e26525d1525c5857474304b97461d | ab1057c92d122c1f8c918f9dd68981990ed04f6c | /src-py/test_1mb.py | 5d00fd9631e1f0944f9fa35e5b24d9f298d2d2c5 | [
"MIT"
] | permissive | Li980701/ResistanceAI | a26e2620080b5d207a6fd54d8c03854058d4ed6b | 6c7c25a00489e055ad5c958b7c30b216e234e69c | refs/heads/master | 2023-08-25T05:49:01.592691 | 2021-10-21T13:04:48 | 2021-10-21T13:04:48 | 417,129,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from resistance.game import Game
from resistance.random_agent import RandomAgent
from resistance.mct.mct_agent import MCTAgent
from resistance.mct.Bounder import Bounder
import json
def test(n_game, players):
scoreboard = {agent.name:{'spy':[0, 0], 'resistance':[0, 0], 'total':[0, 0]} for agent in players}
... | [
"KX980701@gmail.com"
] | KX980701@gmail.com |
1c59e1c39e86b0a50dca7df00d393072caeb6408 | c342223e95eae0cb45f952ec59a35b08de3b39dd | /somnath886-cs50-problems-2020-x-tracks-web-finance/apiToken.py | 04cef277af4b14525d1ac7c233d2537ade45da13 | [] | no_license | somnath886/CS50 | 76ae27c41e764d9579780e626845ce5c141db528 | ff566032dd71a47cd9b3d1e33f2310431524aae5 | refs/heads/master | 2021-07-07T20:29:04.044573 | 2020-11-10T12:46:54 | 2020-11-10T12:46:54 | 206,358,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | API_KEY = "pk_2f3d9a846eb04f029f7acd76f8e9783f" | [
"somnathh886@gmail.com"
] | somnathh886@gmail.com |
a988360eedaf10d07099eb5855b7aeb8d603dc47 | 0b297f43351df4bee230feaf03078bfdec84086d | /core/client.py | 0a6e9e30d571c546d01860c70fad41e99d9b1f2f | [] | no_license | sleepyeinstein/ggshodan | 58a90fc0b3c1eb9315416c4216b297f709b4518b | 4896680d4a1ab1038f14510bd7a9cb8fab58a07c | refs/heads/master | 2022-04-06T22:41:54.485503 | 2020-02-26T15:06:39 | 2020-02-26T15:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
from configparser import SafeConfigParser
from colorama import Fore, Back, Style
parser = SafeConfigParser()
parser.read("./config.ini")
API_KEY = parser.get('confi... | [
"noreply@github.com"
] | noreply@github.com |
0fb144cb4a0e83cae57092585f2ec354ccc3cc69 | d5677a21d37b0b69694463c5dd54290e7d19c980 | /onmt/encoders/.ipynb_checkpoints/bert_encoder-checkpoint.py | 31718f8f3a2091ad97655fcab1803ac61d89e753 | [
"MIT"
] | permissive | YunwonTae/PePAL-1 | 3cfa42d72a85bc6ad34eb3f74ce01ee4efd5c326 | 2afce659913b0c89c6dd794699a85e49c4206e5d | refs/heads/main | 2023-02-01T06:10:41.793731 | 2020-12-13T08:31:05 | 2020-12-13T08:31:05 | 321,021,253 | 0 | 0 | MIT | 2020-12-13T08:47:36 | 2020-12-13T08:47:36 | null | UTF-8 | Python | false | false | 5,240 | py | from pytorch_pretrained_bert import BertModel
from pytorch_pretrained_bert.modeling import BertConfig
import torch.nn as nn
import torch
import pdb
from onmt.encoders.encoder import EncoderBase
class MyEncoderBertEmbeddings(nn.Module):
"""Construct the embeddings from word, position and token_type embeddings.
... | [
"user@AL01396164.local"
] | user@AL01396164.local |
863e655e65df80d8031a8fa741f813b921855761 | 355e6720309a24afde3f6b70e6a1e0091b19cb38 | /gameoflife/main.py | 563013ddb7882d3d03df6bdf9d9de1e666b98ac1 | [] | no_license | Bombeeded/gameoflife | 1b69716fde74cc46f8eef64d0b7b8fbd30bfba03 | b1e50e5a14937117d53659fdb0ee2234fd10d08d | refs/heads/main | 2023-06-25T21:13:39.885364 | 2021-07-24T03:54:29 | 2021-07-24T03:54:29 | 381,522,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,641 | py | import sys
import random
import numpy as np
import matplotlib.image as img
import pygame
import pygame.freetype
from pygame.locals import *
#initialize board
pygame.init()
pygame.freetype.init()
clock = pygame.time.Clock()
programFont = pygame.freetype.Font(file="Arial Unicode.ttf", size=12)
pygame.freetype.set_defau... | [
"bombeeded@gmail.com"
] | bombeeded@gmail.com |
3f2475ef0cd1ab7e91ad1a11161d4314f3a251e1 | d1258576c033845c9c48bae7eedd3f7390bae178 | /server/round.py | c9f6bdce6eaeaf95e02787e8c44e9ac21b12bb92 | [
"MIT"
] | permissive | Teldrin89/TWT_Pict_Game | f4347dfe4dd8dd7a7360636cf42ddd2545135d1b | 01822ff4401fd8261d3dd3ad1513379c4df6135a | refs/heads/master | 2021-05-17T13:40:07.777721 | 2020-04-17T21:17:12 | 2020-04-17T21:17:12 | 250,803,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | '''
Single Round Class Script
'''
import time as t
from _thread import start_new_thread
from .game import Game
from .chat import Chat
class Round(object):
def __init__(self, word, player_drawing, players):
"""
init object
:param word: str
:param player_drawing: Player
:param... | [
"lukasz.cieslak69@gmail.com"
] | lukasz.cieslak69@gmail.com |
a4d87c65d9e738781a81c17d7979933790a8dd10 | e692c4e84566fb8a53ff44a9e19d6ebfe53c14cf | /m_scraper/rq/tiktoker.py | 8e6f263f6512b571b43d68f0f22e18c64482a74f | [
"MIT"
] | permissive | renpeicheng/media-scraper | 5adc08997601ed38300e10e2e46156204b64a444 | 84d1fb207f2d57536b6972ae09e2b4bb9c1d41dc | refs/heads/master | 2020-05-19T18:43:44.077503 | 2019-05-01T16:11:38 | 2019-05-01T16:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | import os
from .downloader import Downloader
from .utils.helpers import save_json
class TikToker(Downloader):
def __init__(self):
super(TikToker, self).__init__()
self.description = 'TikToker'
self.identifier = 'tiktok'
self.keyword = 'userid'
self.save_path = './download_ti... | [
"elvisyjlin@gmail.com"
] | elvisyjlin@gmail.com |
a4aa3cb66427702daeca11f1eba49736ef4dd8e8 | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cps/models/Listener.py | f4508baf200e067c53fd0aa337482b86f24fb929 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
d089134e584d9b0d118d8a1e547907c28db88b65 | 9bc9885e9500083afc2cd6be4ff93ee2eb4fbfbb | /neuropower/apps/designtoolbox/migrations/0016_auto_20160907_1914.py | 5dbb860d6d601d9fe11f927ee47970a6189b6b04 | [
"MIT"
] | permissive | jokedurnez/neuropower | 50297af01bef55fe2c01355f038a9d184cde493d | ed8c1cf29d447b41dfbfbc7a8345443454e62a96 | refs/heads/master | 2021-01-15T08:36:45.191330 | 2016-11-20T00:56:30 | 2016-11-20T00:56:30 | 51,338,446 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-09-07 19:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('designtoolbox', '0015_auto_20160905_1717'),
]
operations = [
migrations.Alte... | [
"joke.durnez@gmail.com"
] | joke.durnez@gmail.com |
18508759ec6eae9a24a1518581ff7c3b9cc5a68f | e3eb9d09b65915a877d4580b8f3151189448d7a0 | /app/__init__.py | 0046f3b4b3dcd81360b2c27791ac09624f62ca63 | [] | no_license | p-chambers/Flask_tutorial | e83035c6bb39cc1518c6bc65d86cd62d3c86f56b | 8f506a1a3f16944769ff1b2ea20ad48e0ffd5e10 | refs/heads/master | 2020-06-23T05:48:39.915119 | 2016-12-05T10:11:59 | 2016-12-05T10:11:59 | 74,662,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
# @Author: paul
# @Date: 2016-11-23 11:41:39
# @Last Modified by: Paul Chambers
# @Last Modified time: 2016-12-02 12:32:57
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
app = Flask(__name... | [
"P.R.Chambers@soton.ac.uk"
] | P.R.Chambers@soton.ac.uk |
3442da3604dc7d70f0152c980a89922f6bc81410 | d91c5cc5b3ce4f9a86e6d55b504450535cfc9d67 | /main_stl.py | b98ec93db25ef1813e2958c4b45b1cf2f2760394 | [] | no_license | Nightmareone/stl_program | 3bf033f27f57770275e4179b7cf92ea5b7623e5e | 307bdf9392ba028a1501786b30b10429cd8c13f8 | refs/heads/master | 2020-06-06T20:44:11.525229 | 2019-10-31T07:07:53 | 2019-10-31T07:07:53 | 192,848,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,777 | py | ####################################################
###メインのSTLファイルの読み込み、サポートの起点を生成
####################################################
import program4support as p4s
import draw_graph as dg
import numpy as np
from stl import mesh
import math
import datetime
from matplotlib import pyplot
from mpl_toolkits i... | [
"noreply@github.com"
] | noreply@github.com |
723d603f2a8d3ae5026dee47931eff4d9a6ee440 | 4666ce4fe9e34e80291ec91a1898b3064a9165a3 | /build_keras_npy.py | 9f51ace440a1f83f37907776176484f96ac7e421 | [] | no_license | cjstntjd/machine | b2057ecfcea09437eb15d4580151ee3e723e453e | 932530088e0cc9ae060de20909b6171eab80755d | refs/heads/master | 2021-01-02T02:29:00.205314 | 2020-05-19T13:05:30 | 2020-05-19T13:05:30 | 239,453,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | from sklearn import model_selection
from sklearn.model_selection import train_test_split
from PIL import Image
import os, glob
import numpy as np
import sys, os
from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Activation
from keras... | [
"noreply@github.com"
] | noreply@github.com |
04fb1be135cea95cdf79a7d7201426bc8a05b45f | 1a686a82becacfabc4d8f0b5b5be613887bffa72 | /app/botreport/apps.py | bda212b6e824571a3f7af650b6f19b64b6cdbedc | [] | no_license | pedropiresdev/botservice | 0384b8366d7ffe518f2e4cf18bcf234f826ab7bc | f2e3d2e3011e7a7e08b14d11a1058393ad276fe4 | refs/heads/main | 2023-08-22T06:00:16.774357 | 2021-10-21T04:44:35 | 2021-10-21T04:44:35 | 419,543,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.apps import AppConfig
class AppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app.botreport'
def ready(self):
from app.botreport.pubsub_service import publisher, listener
try:
publisher()
listener()
ex... | [
"pedropires@discente.ufg.br"
] | pedropires@discente.ufg.br |
eac0a94de53de97ff8835d041f7982daad6ac9f3 | 606a91cf9484494c1a8d3e1c49f7828d31d3d002 | /modules/popup/differ.py | 012d539fb426ad20c90dd5a107df8905b7d2f5c3 | [
"MIT"
] | permissive | Pictor13/GitGutter | e6a3f23266fd598a1fe6c3b7252881b0f33cbf11 | 19f75c581a0f9143c826b6e4bfd7d7f9159a8dbd | refs/heads/master | 2020-04-05T05:24:37.676415 | 2018-11-07T18:54:43 | 2018-11-07T18:54:43 | 156,593,408 | 0 | 0 | MIT | 2018-11-07T18:51:45 | 2018-11-07T18:51:45 | null | UTF-8 | Python | false | false | 5,596 | py | # -*- coding: utf-8 -*-
"""Differ module.
This module is inspired by difflib.Differ which creates human readable diff
output. Instead of text it outputs html which can be displayed by diff popup
well.
"""
import difflib
import html
def highlight_diff(old_lines, new_lines):
"""Generate the html string with highli... | [
"deathaxe@web.de"
] | deathaxe@web.de |
74e74455de014475d07e51604e15ca1764c43ed9 | 7684ffabb75ed2d6396d3a720c56ed0ee09ee77d | /crack_detection/gcloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/oslogin/v1alpha/oslogin_v1alpha_client.py | 17a96db3d16f3b91f1861878024aa4ac72c32e1d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/CrackPropAPI | da7cc7a1ef046d20992423f7c7a148e390bb70e7 | 24c0cfd1f258eeaa7e5e953253b5d778f2fbecb5 | refs/heads/master | 2022-11-09T07:15:41.142453 | 2020-07-02T14:34:15 | 2020-07-02T14:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,176 | py | """Generated client library for oslogin version v1alpha."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.oslogin.v1alpha import oslogin_v1alpha_messages as messages
class OsloginV1alpha(base_api.BaseApiClient):
"""Gen... | [
"yopi1838@gmail.com"
] | yopi1838@gmail.com |
791f370224d369d6f8c5486a8f6205bb1b015ec7 | c2bf653d52a901cd1f428525f5cc42e7e38fdd58 | /smartbox.py | 6ee4749157a3d714c16927a42c5af1225b0131d5 | [] | no_license | akhil15126/SmartBox | 0073d69c1bf0792658870c37a42c1af62310ccea | cfd0bf402167ae7bf0e1737c732452390411f6db | refs/heads/master | 2020-03-22T14:41:01.195221 | 2018-10-24T14:00:02 | 2018-10-24T14:00:02 | 140,197,098 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 13,083 | py | import tensorflow as tf
import numpy as np
import keras
import pickle
from PIL import Image
from Model import GeneralModel
import argparse
from Datasets import Datasets
from Attacks.fgsm import FGSM
from Attacks.l2 import L2
from Attacks.mifgsm import MIFGSM
from Attacks.pgd import PGD
from Detection.AdaptiveNoiseReduc... | [
"akhil15126@iiitd.ac.in"
] | akhil15126@iiitd.ac.in |
520103d6242534030ebdab72ea91e4701a2e2443 | 6e3dea26fd60a8940d5a812d67b6604ddb403224 | /RuleEngine/Rules/ClassificationChecks.py | e5445e6f5841ebb4863cfc388cbbcefb9da17ed8 | [
"Apache-2.0"
] | permissive | Open-EO/openeo-result-validation-engine | 3fcce1b1764a4e2c08db42db20e7bdef85ce7211 | da34d2d0733475af84fb6a2c38ca536bd0c112db | refs/heads/master | 2022-12-14T13:45:51.875040 | 2019-07-18T15:13:56 | 2019-07-18T15:13:56 | 176,923,172 | 1 | 3 | Apache-2.0 | 2022-12-08T04:53:36 | 2019-03-21T10:33:46 | Python | UTF-8 | Python | false | false | 2,607 | py | import os
import cv2
from RuleEngine.Algorithms.edge_computations import calculate_canny_edges
from RuleEngine.Algorithms.edge_computations import compute_overlap
from RuleEngine.Algorithms.edge_computations import create_comparison_image
from RuleEngine.Rules.Rule import Rule
class ClassificationChecks(Rule):
... | [
"simonschulte@posteo.net"
] | simonschulte@posteo.net |
ab7136f89494f52ca7f5bec66e01640e96964b6e | 7a78f54b49915570d8b7e9084bf5e87ac994a138 | /generate_tfrecord.py | a698cac9b968b2375c51f7e99bfdb7b890106386 | [] | no_license | edisonesc/SALBS-II | d604ba179e5caa2845d73b697fa72ccc6fc5d8a7 | 8d640593072c8a462609e6115a11fa81077d8336 | refs/heads/master | 2020-05-04T01:48:28.865752 | 2019-04-17T04:08:23 | 2019-04-17T04:08:23 | 178,914,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=images/train_labels.csv --image_dir=images/train --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=images/test_labels.csv --image_dir=images/test --output_path=test.record
"... | [
"edi.escx@gmail.com"
] | edi.escx@gmail.com |
36baeb280fe445880f582412b5f140997661f413 | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/addresses_utils.py | c24143684ff0332856f3e3da17ca890a539e8ee5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 3,225 | py | # Copyright 2014 Google Inc. 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 ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
3464ac58a73ccfdbc32138af9a59a1268525da03 | 1253c59bb52b3be6867eb22b577b544af9d933c6 | /tests/input_files/DM_pion/vertices.py | ec880f3a144ccd8a4d44fbc86513714c1c613774 | [] | no_license | DaniilSu/madgraph5 | 7cafdc979dcf338cd9b4b6bc708c0be92f96106b | 0e733b4735a538aeb47381ef0c0adb2bffa32afb | refs/heads/master | 2020-03-22T09:05:56.108004 | 2018-06-22T06:55:25 | 2018-06-22T06:55:25 | 139,814,287 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,541 | py | # This file was automatically created by FeynRules 2.3.2
# Mathematica version: 9.0 for Linux x86 (64-bit) (November 20, 2012)
# Date: Thu 11 Jun 2015 17:39:54
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
part... | [
""
] | |
216fdd365e46e15ec790d11d8ef2cfa9d0d14359 | 8eed1f52c54203197e0a7d88712b150524ef5f27 | /model/data.py | cd325b5f6b1318e4612af498e68393784d4a8e57 | [] | no_license | zhilangtaosha/EpidemicQABert | 8c1baffeb267535eed99c14b182e4b13b3e60575 | 952e31b051edf72a1ac213d3ba5a446acaef5021 | refs/heads/main | 2023-01-28T23:42:36.150441 | 2020-12-11T11:39:23 | 2020-12-11T11:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import json
import re
import os
from os.path import join
from torch.utils.data import Dataset
class SampleDataset(Dataset):
def __init__(self, split : str, path : str) ->None:
assert split in ['train','valid','test']
self._data_path=join(path,split)
self._n_data=_count_data(self._data_path... | [
"noreply@github.com"
] | noreply@github.com |
9255e910bd5c9adb27ec7d8d05a78d06af0a9736 | 13391bb116ca5e4dcee49c58029857c1c419e5fb | /Aidea_for_Release_5/v2/flavors.py | e570d2c22ad9ea811ea16f82f83ce5846d9c4076 | [] | no_license | Nigo-Liu/Python | cb501ed606f9019ec01ca646fdd2cdc07f3c2ee1 | 56fb0732ca468aa792cbd060e40fedbadbc5a649 | refs/heads/master | 2021-06-26T19:30:40.210429 | 2020-10-13T07:11:11 | 2020-10-13T07:11:11 | 154,466,751 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import request_utils
class Flavors():
def __init__(self, ip, account, password):
req = request_utils.Request(ip, account, password)
self.req_get = req.req_get
self.req_post = req.req_post
self.req_delete = req.req_delete
self.req_patch = req.req_patch
self.req_put =... | [
"liuchunlin@aol.com"
] | liuchunlin@aol.com |
030faf212e0c96085fe19ef5907653e0f6de769f | cc6e36ce306a46c1accc3e979362de34b6063b7e | /game/management/commands/import_games.py | 1be5196a35dfa7b39b0710727bda8fd09f034eca | [] | no_license | bartromgens/petanque-stats-server | d51995e2b4d288a0a99563347c3bf3db863918bf | 9f7e48a7670b1c2c89f1bfcb2ac5ed8c8e9a7fe0 | refs/heads/master | 2020-03-22T19:23:18.230361 | 2018-07-29T00:46:02 | 2018-07-29T00:46:02 | 140,524,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import json
import uuid
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.db import transaction
from game.models import Game, Team, ScoreTeam, Player
class Command(BaseCommand):
help = 'Import scores from a custom format'
players_filepath = 'data/pla... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
b1a6751a4038fcd54399a73b2edb2ce9a2467150 | ab74653912e1cbc44acccf750e957d661f0c9433 | /designers/wsgi.py | 729c2de21cba80d7caf567b3ff5ccd2323317f85 | [] | no_license | lunyamwi/soft-dj-mobile-repair-python | 25650c8c19e5d6dbc264b4846a7999bb917e0e7d | 72043bbdd79e6234d5f36e86b2c9b0cff5aad171 | refs/heads/master | 2023-08-14T15:36:45.845521 | 2020-06-09T10:02:03 | 2020-06-09T10:02:03 | 270,965,329 | 0 | 0 | null | 2021-09-22T19:16:41 | 2020-06-09T09:54:34 | HTML | UTF-8 | Python | false | false | 395 | py | """
WSGI config for designers 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"root@actserv-hp-nb-15-two.actserv.local"
] | root@actserv-hp-nb-15-two.actserv.local |
10ef50de6e155b9bb542e5c845172fff8a2bb9e6 | 16e26614611ae87de81388b435d88b142ca6189e | /pywind/decc/Report.py | d66f3fe5a42edfea4de68937f5228223d475ef93 | [] | no_license | tomwadley/pywind | d1d36007b0196730cba1389ef7940dd0ccabe5df | 0d86ff1c9a67b2f446e62c1471257e38bdc1d03c | refs/heads/master | 2021-04-09T15:41:49.823115 | 2013-06-26T09:18:24 | 2013-06-26T09:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,726 | py | from cookielib import CookieJar
import csv
from datetime import datetime
import urllib2
from pywind.decc.geo import osGridToLatLong, LatLon
def field_to_attr(fld):
fld = fld.lower()
for c in [' ', '-', '/']:
fld = fld.replace(c, '_')
return fld
class DeccRecord(object):
FIELDS = ['Reference',... | [
"zathrasorama@gmail.com"
] | zathrasorama@gmail.com |
47005a3669df2d29e09979c2bfd2bb18fede9e59 | b7e52aeabebf7448e31723d406755809cac63099 | /source/calc_fsun_tree/SConstruct | 9e270b942ba10dbe21a51f6c85d05cb22f763ba5 | [
"BSD-3-Clause"
] | permissive | bucricket/projectMASviirs | df31af86e024499ff87d2c2b707e3b9d24813f7c | 705abc89505122351f0ef78e0edb950b7e3b7f48 | refs/heads/master | 2021-01-01T18:31:16.748864 | 2018-05-30T15:14:07 | 2018-05-30T15:14:07 | 98,354,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | #!python
import os
import platform
import subprocess
AddOption('--prefix',
dest='prefix',
type='string',
nargs=1,
action='store',
metavar='DIR',
help='installation prefix')
env = Environment(PREFIX = GetOption('prefix'))
prefix = os.environ.get('PREFIX')
ba... | [
"bucricket@gmail.com"
] | bucricket@gmail.com | |
6259d118197f95953a32a101f2d62eb96875d9a3 | afd463f7a9fdffb7813a93bf0dcd7348f8b02865 | /pdfsave/pdfsave/urls.py | 4d6d8ca6e514112a4597ccdbe0fb0e2e287bd6d4 | [] | no_license | Kapkiai/japhweb | 6e894f3f7eaa446a7f0bb5801f51a9e366410d71 | fde9838cdcf88dfbaa543249267eab082524ec7f | refs/heads/master | 2023-03-16T21:19:32.346981 | 2021-02-20T20:10:37 | 2021-02-20T20:10:37 | 329,327,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | """pdfsave 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-based... | [
"mathewkiprop17@gmail.com"
] | mathewkiprop17@gmail.com |
0f9d392ecee09b89b3059707eb5e920a5a275a90 | 8a3fe1a9cad2c56bd6a3251f9d1084c06c7f68b5 | /TestModel/urls.py | 43e61e698fb2746d41dc8c74bea0ff4f90f0938a | [] | no_license | CharlieZheng/LearningDjango | d81d4ce9460053a42117e4c38724d255d0b0f593 | 041c108f3e88f7eef793c2d757a128efe80dada3 | refs/heads/master | 2020-03-18T21:29:03.565143 | 2018-05-30T08:43:41 | 2018-05-30T08:43:41 | 135,283,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | """fuction docstring"""
from django.urls import path
from . import views
app_name = 'TestModelAppName'
urlpatterns = [
# ex: /TestModel/
path('', views.IndexView.as_view(), name='index'),
# ex: /TestModel/5/
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
# ex: /TestModel/5/results/
... | [
"740483802@qq.com"
] | 740483802@qq.com |
e699cda227ba68d9a3a9122ca69be7e2ae5c1a57 | 67ddedc825a4852349bb3e54f7d31cdeb34c64aa | /contrib/testgen/gen_key_io_test_vectors.py | cfcf70fa73dc3d37f054a9d4084749fe247c87dc | [
"MIT"
] | permissive | geranium-coin/geranium | 3500632ed8e666d30d1b28494b1b7b5003c18ecc | 93c08aa10ea151f4efd8337c1d5599ee7e8d58ea | refs/heads/master | 2022-07-28T21:28:55.717800 | 2022-01-10T17:30:13 | 2022-01-10T17:30:13 | 440,774,432 | 2 | 0 | MIT | 2022-01-04T08:33:10 | 2021-12-22T07:39:53 | C++ | UTF-8 | Python | false | false | 10,266 | py | #!/usr/bin/env python3
# Copyright (c) 2012-2018 The Geranium Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Generate valid and invalid base58 address and private key test vectors.
Usage:
PYTHONPATH=../../... | [
"manomay.jyotish.vadhuvar@gmail.com"
] | manomay.jyotish.vadhuvar@gmail.com |
b577e3784df958a8243feb93121f217683018769 | 1063d8a5b345219f60747dc75eab552618e8d33c | /src/benchmark.py | ca30e2114ddba2a625e05c6b10fd07c7aea33710 | [
"MIT"
] | permissive | neutronest/skmodel_benchmark | 76c969ff71f14153cd4250659f6729dc41461665 | f444f8d7c2cb7d6662495e4e5f6c50a967930daf | refs/heads/master | 2021-01-17T10:51:08.008999 | 2016-06-25T03:35:47 | 2016-06-25T03:35:47 | 61,922,277 | 0 | 0 | null | 2016-06-25T03:35:47 | 2016-06-25T02:01:05 | null | UTF-8 | Python | false | false | 3,094 | py | #!/usr/bin/env python
#-*-coding: utf-8-*-
import numpy as np
import scipy as sp
import pickle
import getopt
import sys
import utils
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import Gradi... | [
"dongchao@didichuxing.com"
] | dongchao@didichuxing.com |
6d25cc07becb9e59f730a67748abcca1e17b92d4 | 770f7b7155c33d2f8c27846b93b9b73db45b2e2a | /gofedinfra/system/plugins/simpleetcdstorage/fakeartefactdriver.py | 10293902c919cd5c9cb74e6cf1c783345335fd8e | [] | no_license | gofed/infra | b0f6186486e8aa7c8c640411ee92d6648cbc77ec | 2f402bbdf1e5fa7cb68262cc3408a2fc1436269f | refs/heads/master | 2022-10-16T02:46:09.226939 | 2018-06-07T23:16:44 | 2018-06-08T11:31:37 | 48,703,326 | 1 | 5 | null | 2022-10-11T11:17:16 | 2015-12-28T17:08:28 | Python | UTF-8 | Python | false | false | 346 | py | from .artefactdriver import ArtefactDriver
class FakeArtefactDriver(ArtefactDriver):
def __init__(self, artefact):
ArtefactDriver.__init__(self, artefact)
self.data = {}
def store(self, input):
key = self._generateKey(input)
self.data[key] = input
def retrieve(self, data):
key = self._generateKey(data)... | [
"jchaloup@redhat.com"
] | jchaloup@redhat.com |
1a899f2715073ca9e865032c071585d019b891c1 | 77bb388d1649f520a99d4b0b2f140e1acb9a0fe1 | /binaryTreeTraversal.py | a67708107668431b0209adc2642430aead42ac5f | [] | no_license | gbengaagunsoye/Python_DataStructures | a6c694711396cee928885c84af799e7e1313f87c | 488f8c466fb240345356108bf9c6b47997e25a17 | refs/heads/main | 2023-04-15T16:32:07.006715 | 2021-04-27T10:38:41 | 2021-04-27T10:38:41 | 362,072,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
''' 1
2 5
3 4
'''
myNode = Node(1)
myNode.left = Node(2)
myNode.left.left = Node(3)
myNode.left.right = Node(4)
myNode.right = Node(5)
def inNodeTraversal(ro... | [
"noreply@github.com"
] | noreply@github.com |
597cf6d1f144912f8ce0c5a022b2d7643669efb7 | 798b6a5ec8aae529bce04157ce12e1515700bd35 | /test_parser.py | bcc84e3dfc9aa26fb8e646cdd74585beb7900431 | [] | no_license | 78dbe6544e9f0802ea610a4ad497c8b7/ex49 | db5ac0d71b7a65f5bf60cc460d8968b67e9813e9 | 60e16a6327e45d8a26f07902a96c712c0cec8c1a | refs/heads/main | 2023-01-24T02:31:52.512472 | 2020-12-05T21:14:47 | 2020-12-05T21:14:47 | 318,888,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | import pytest
from ex48.parser import *
def test_Sentence_class():
go_home = Sentence(('noun', 'player'), ('verb', 'go'), ('noun', 'home'))
assert go_home.subject == 'player'
assert go_home.verb == 'go'
assert go_home.object == 'home'
def test_peek_function():
words_list = [('verb', 'go'), ('noun'... | [
"noreply@github.com"
] | noreply@github.com |
a7b04bd21ff6b7b113c2345da471172123d321fa | 07b4d288454fb77a14a879d350b5a6b8be9c0d11 | /machine_learning/eval_domain_agg.py | c5c3924419330bd5f050c53abda791a25729484d | [] | no_license | cltl/a-proof | 8431ae86f5e60c8c495dd88257203aff97b4d3fe | 56412dc2e887d75d53ce01b0e858861fe4ac6cee | refs/heads/master | 2023-03-07T15:42:41.441502 | 2021-02-26T10:13:01 | 2021-02-26T10:13:01 | 281,664,230 | 3 | 0 | null | 2021-01-21T12:53:18 | 2020-07-22T11:55:00 | Jupyter Notebook | UTF-8 | Python | false | false | 3,916 | py | # Eval per domain
def eval_per_domain(dict_predict, dict_ann, outfilename):
"""
calculates precision, recall and f1 per class
dict_predict & dict_ann are dictionaries of the form {note_id : ['label1', 'label2'], note_id: ['label']}
"""
tp_none = 0
fp_none = 0
fn_none = 0
tp_lopen =... | [
"noreply@github.com"
] | noreply@github.com |
364068e4568c2f826396dafe75d23e9cbc8c2206 | d0450f95c3cf54bc846efb440ac8f90ed23f04fe | /carnottech/urls.py | 971644381fdfcaf40a17b09c127a87be6ad095f8 | [] | no_license | LekhanaPanchayatula/carnot | 0a3b15c51b5c6c86ed49cc5b0392f7afdc76b3a1 | f94750d85638d1b7bacaef5cca3f45e2298d45a8 | refs/heads/main | 2023-05-08T15:38:15.599553 | 2021-05-25T03:09:11 | 2021-05-25T03:09:11 | 370,540,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.conf.urls import url
from carnottech import views
from django.urls import path
urlpatterns=[
url(r'^$',views.home, name='home'),
url(r'^fetch',views.fetch, name='fetch')
] | [
"lekhanapanchayatula2911@gmail.com"
] | lekhanapanchayatula2911@gmail.com |
d0e393e77605831d05bcdd4af710108f67725448 | 5184ea2fd27e01467d5b027864d14b2d4638ba1b | /Number theory/1094/10974.py | 2a0934d21a7ccac9d4fbf66f2cf6811b21d981ae | [] | no_license | zc1001/leetcode | 1587f951e52dd08cfcbb2c6b3f5cbff5cb9b3a67 | 45b20789ae00bb3713ab30159ac4f4af7eea55fa | refs/heads/master | 2021-07-11T19:26:24.647433 | 2020-09-27T08:21:01 | 2020-09-27T08:21:01 | 203,901,667 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,543 | py | import math
import copy
import operator
# 执行用时 :168 ms, 在所有 python 提交中击败了30.19% 的用户
# 内存消耗 :12.3 MB, 在所有 python 提交中击败了100.00%的用户
import string
import os
import numpy as np
import matplotlib.pyplot as plt
# def get_filelist(strl):
# l = []
# s1 = strl
# for i in range(8):
# s =... | [
"jlbczhangchao0800@126.com"
] | jlbczhangchao0800@126.com |
902f694fd6429bd5c384cc034eb81329ba341fc1 | fcf8b6f0d3cae56013fd20655e65c71b72ac74b6 | /d3rlpy-master/scripts/create_pendulum_dataset | 6c39da9839378e414c856ecb68e5225379b02db3 | [
"MIT"
] | permissive | SOPR-T/SOPR-T | 4a338481295ec2779007814e14c54b68e78cbf34 | 3242461fa8b3e917cde70be497beb1158a7b27e6 | refs/heads/main | 2023-06-11T07:21:25.426046 | 2021-07-05T12:24:48 | 2021-07-05T12:24:48 | 371,642,211 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 546 | #!/usr/bin/env python
import gym
import d3rlpy
d3rlpy.seed(100)
# prepare environment
env = gym.make('Pendulum-v0')
eval_env = gym.make('Pendulum-v0')
# prepare algorithms
sac = d3rlpy.algos.SAC()
# prepare utilities
buffer = d3rlpy.online.buffers.ReplayBuffer(maxlen=1000000, env=env)
# start training
sac.fit_onl... | [
"noreply@github.com"
] | noreply@github.com | |
3286b6e037876ccf28e3fec43f2c2ceee70c43e6 | 699b7906f9db62299af09270e7f8ff7f22785876 | /Model.py | 68cc56e5a95ef3f28a7a8c0551b983f10d530aa2 | [] | no_license | carterrxavier/classification-project | 662cd70938134e6d1519f85e2e8a27703f7b00e0 | 6365c2d739260c97145f19f78538bb9115d1b08c | refs/heads/main | 2023-05-10T13:05:23.455360 | 2021-06-07T00:14:16 | 2021-06-07T00:14:16 | 370,766,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | import pandas as pd
import numpy as np
from sklearn.metrics import classification_report,confusion_matrix,recall_score, precision_score
import warnings
warnings.filterwarnings('ignore')
def train_validate_results(model, X_train, y_train, X_validate, y_validate, details=False):
'''
this function prints the a... | [
"carter.r.xavier@gmail.com"
] | carter.r.xavier@gmail.com |
edc57e38a9ee02c07b592be871731d3b3b7b5597 | 778b1668f095ca25bebf577b30d70640bf3b4118 | /find_avg.py | 778ecf4d083f0bb51d4ce7fa5a7fbd2848e1fda6 | [] | no_license | remyacv83/python-practice | e71a1e5b16e17eeb09f163365ccecd83715e4d94 | 0090dd24a080f8276dfa54f6f703905a771b03f8 | refs/heads/master | 2021-01-11T11:35:39.642925 | 2017-01-04T20:03:48 | 2017-01-04T20:03:48 | 76,895,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | def find_average(array):
sum = 0
nSize = len(array)
for n in array:
sum = sum + n
print sum
print nSize
print "{:.2f}".format(sum/nSize)
find_average([5,3,6])
| [
"noreply@github.com"
] | noreply@github.com |
4b0396f3c233a125ea3c25284daaacfd7059575c | 4bf5ac851ae63740100d396a230d86bf2984cb1f | /satire_fake_cohmetrix.py | d8d556f11c20bbc8af2ba84082d149adebad03e8 | [] | no_license | weilingwei96/Satire_vs_Fake | 6c0d7215007d6e7569246ce6aca7c4ec2166bf2d | 80350266c4a1d058d65d4f038f4a1424351dd1b1 | refs/heads/master | 2022-03-13T10:18:55.566726 | 2019-11-23T23:29:14 | 2019-11-23T23:29:14 | 281,037,166 | 0 | 1 | null | 2020-07-20T06:48:43 | 2020-07-20T06:48:42 | null | UTF-8 | Python | false | false | 6,080 | py | from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix
from sklearn.metrics import make_scorer
from sklearn.naive_bayes import GaussianNB
from sklearn.model_selection import c... | [
"pdr.hosseini@gmail.com"
] | pdr.hosseini@gmail.com |
e74f8b1dd62e21e4ee2649a494dc6bdeeedc9568 | 541b71fe11be9b1db250c41cba7a8dc3aa93c638 | /termuxguide.py | ec376944f9eb4b3a83c7c2ff169761ab05c3b9cd | [] | no_license | flockygg/smsBomber | 60032be15deab4f5bb762a7abc000e05956b609b | 1053dfa5fc7f1a5fcbfbccd992f2c57c45cbf696 | refs/heads/main | 2022-12-22T18:12:24.767721 | 2020-10-08T04:22:33 | 2020-10-08T04:22:33 | 302,229,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,178 | py |
import threading
import time
import requests, random, datetime, sys, time, argparse, os
def qw(_phone):
if _phone[0] == '+':
_phone = _phone[1:]
if _phone[0] == '8':
_phone = '380'+_phone[1:]
if _phone[0] == '9':
_phone = '380'+_phone
_name = ''
for x in range(... | [
"noreply@github.com"
] | noreply@github.com |
9978916a52928e5c088af94ff1b7ca88a5e209c8 | 97c0f0e799108c00d084c8d30974c10879f55992 | /src/com/scott/dev/demo/crawl/as/run.py | 3af75dc2668efa4215e971158b352cd28e082984 | [] | no_license | kuiwang/py-dev | 1ef98618d9ee19674878b68930acd9c7c6e1eaeb | 61375491955ffbdbee18d4f4f40ab8b63cf0901a | refs/heads/master | 2020-04-02T13:32:24.458250 | 2020-01-16T10:00:44 | 2020-01-16T10:00:44 | 154,485,682 | 0 | 0 | null | 2020-01-16T10:03:03 | 2018-10-24T10:56:47 | Python | UTF-8 | Python | false | false | 8,193 | py | # -*- coding: utf-8 -*-
# from download_info import download_info
# from download_pictures import get_info, get_info_imgs, download
from importlib import reload
import os, sys
import logging, json, demjson, time
import requests, random
from multiprocessing import Process, Queue, Pool
reload(sys)
PY_GEN_PATH = "D:/d... | [
"wk@gmail.com"
] | wk@gmail.com |
645292003fafcc1743493a4c224ec36849957e54 | dfbc409d90138726d05ce75d90f505bd771980a6 | /sent2vec/word2vec.py | ab6de9de671e6dde093533f96276f1cc98dec887 | [] | no_license | amirpouya/EMNLP_Paper | 02b3a72a0efddd1907297ef711ce52ca062d7e96 | 1507325a03a40309bf2d75aefca7d032603ab3fa | refs/heads/master | 2016-08-12T05:41:12.840388 | 2015-05-27T19:28:41 | 2015-05-27T19:28:41 | 36,387,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,807 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Deep learning via word2vec's "skip-gram and CBOW models", using either
hierarchical softmax or negative sampling [1]_ [2]_.
... | [
"amirpouya@lab.statnlp.info"
] | amirpouya@lab.statnlp.info |
742e69c1a22297de8f0a8cd58cecab3389d6f888 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /tests/integration/docusaurus/connecting_to_your_data/cloud/gcs/pandas/inferred_and_runtime_yaml_example.py | e7ed0539f4232487def269d75f60499c9e167e07 | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 4,209 | py | from typing import List
# <snippet>
from ruamel import yaml
import great_expectations as ge
from great_expectations.core.batch import Batch, BatchRequest, RuntimeBatchRequest
# </snippet>
# <snippet>
context = ge.get_context()
# </snippet>
# <snippet>
datasource_yaml = rf"""
name: my_gcs_datasource
class_name: Dat... | [
"noreply@github.com"
] | noreply@github.com |
a49e2981e3bf1e5622c75bb54165b0f55cecfe87 | 31c94ea00f0f6673f161a21a529f2272e7460a34 | /bindapi/routerApi.py | 4ea16209cd1e7101e783bcfeaa0d6ef1853e83b0 | [] | no_license | xgocn/bindapi | 0d3e51f696a9d3ec5dde4e05d1c2d5eb2fe52f5a | 343f07176de43c3e5ffc9b26c479c47c289fdc0e | refs/heads/master | 2023-03-15T08:01:22.550448 | 2018-05-09T06:19:22 | 2018-05-09T06:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# author: kiven
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
from bind.views import DomainViewSet, RecordViewSet, AllDomainViewSet, XfrAclViewSet
router.register(r'domains', DomainViewSet)
router.register(r'records', RecordViewSet)
router.register(r'xf... | [
"kevin@126.com"
] | kevin@126.com |
b6fc20b4b723b8508a08403ad9d890bbdefa0cf5 | f6352e266c60f70835dff98874b9e96d6f1ae2a8 | /0226/selectionSortModule1.py | a5abd1eabe0841cdfe176f4fa76ac1dae128b844 | [] | no_license | Ryujongwoo/python0202 | 67e2bc5a0e8fcf7a20c93a55af573e92d929c308 | fec56fda56ad117cfa48261215e2c8e216b3d5b2 | refs/heads/master | 2022-04-15T14:40:15.662343 | 2020-03-17T12:59:25 | 2020-03-17T12:59:25 | 239,483,235 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | # 오름차순 정렬 함수
def selectionSortAsc(data):
for i in range(0, len(data) - 1, 1):
for j in range(i + 1, len(data), 1):
if data[i] > data[j]:
data[i], data[j] = data[j], data[i]
return data
# 내림차순 정렬 함수
def selectionSortDesc(data):
for i in range(0, len(data) - 1, 1):
... | [
"noreply@github.com"
] | noreply@github.com |
e10d59850e77d79fe0ec9169cce0ab67f2d3418d | ba6c8c70541a7aacdd4cc2573776dbed9ea0d8f1 | /catkin_ws/devel/lib/python2.7/dist-packages/bebop_msgs/msg/_Ardrone3PilotingStateLandingStateChanged.py | af36bd625602add700705b5f44426ab97808ce98 | [] | no_license | hotaro161/190703_catkin_ws | 74a62fa29a0f940a930df4c023f36f01f30b23f7 | 711c2665121e7452a2575c75058a037b479f4596 | refs/heads/master | 2020-06-14T09:03:15.900063 | 2019-10-10T07:29:05 | 2019-10-10T07:29:05 | 194,964,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | /home/mlab/catkin_ws/devel/.private/bebop_msgs/lib/python2.7/dist-packages/bebop_msgs/msg/_Ardrone3PilotingStateLandingStateChanged.py | [
"mlab@mlab-System-Product-Name"
] | mlab@mlab-System-Product-Name |
92b5789de8b5fb6affeaa6d11e741768cb6ddb3c | 338cf459e5a19545dd5995fa5da811ff0147b17d | /collector/migrations/0014_auto_20160318_1446.py | e61585850ae5d8cb74d63eac554917b2ddc18d06 | [] | no_license | mazucci/heatmapviz | 2e42b9f09bf631101d5f62f5d19440c76ed94af7 | 07684d347bb7d61a2625deac55960fdd57cd4b34 | refs/heads/master | 2021-05-04T03:20:07.084868 | 2016-11-18T16:32:41 | 2016-11-18T16:32:41 | 71,370,854 | 0 | 5 | null | 2016-10-21T10:25:05 | 2016-10-19T15:20:43 | Python | UTF-8 | Python | false | false | 428 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('collector', '0013_gpsdata_local_id'),
]
operations = [
migrations.AlterField(
model_name='gpsdata',
... | [
"may.zurb@gmail.com"
] | may.zurb@gmail.com |
77a2517a6cbe83d59a210c7db0a7122aa5f835a0 | 46b7817988ba7116bcf9f3b4bda2149fa3f58827 | /analyse/differenceAnalysis.py | 7df96e094b6a9c69760bcbb561c4092b7713fa1a | [] | no_license | kronocharia/api-peformance | 4d792bfc310e19fce9e07156793789cd3a184f12 | 99f088e314fc8992828b6eb7705f9f1f8ffaf5a0 | refs/heads/master | 2022-12-11T02:09:13.204322 | 2020-02-03T00:17:29 | 2020-02-03T00:17:29 | 237,582,639 | 0 | 0 | null | 2022-06-22T01:02:55 | 2020-02-01T08:03:56 | Python | UTF-8 | Python | false | false | 2,966 | py | import pandas as pd
import numpy as np
import plotly.express as px
import plotly.graph_objects as go
from pandas import DataFrame
from datagen.datagen import ApiCallSheet
from datasource import datasource
import logging
import sys
from outputs import outputhelper
logging.basicConfig(stream=sys.stdout, level=logging... | [
"mail@mike-li.co.uk"
] | mail@mike-li.co.uk |
3a2203845372ec65f4380ad1fc8e7e5da0974dae | 82b36ca1194a89a542f1e2d56bd96d859de3d343 | /tensorflow/etc/mem32432.py | e4b2e92a4de75d0a209c6e7fb3fd570e859fa99a | [] | no_license | rationality6/ml_notebook | b523b6590f46beaa374e15b4af743f7f320380c2 | c67f9e61e70ffe098acea227fb9d51b556866153 | refs/heads/master | 2020-03-18T15:36:35.473868 | 2018-06-01T08:38:00 | 2018-06-01T08:38:00 | 134,917,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import tensorflow as tf
# x_data = [1, 2, 3]
x_data = [1, 2, 3]
y_data = [1, 2, 3]
m = n_samples = len(X)
W = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
b = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
X = tf.placeholder(tf.float32)
Y = tf.placeholder(tf.float32)
hypothesis = W * X + b
cost = tf.reduce_mean(... | [
"codepawn@icloud.com"
] | codepawn@icloud.com |
11e8bfe971a98fef054d8ceb67e403f2ab417bf4 | b37dc157442aa54b934b4c170acfb71f785ee029 | /annotation/pin/test/pin_case3.py | 84f1314def9d3bfbf7975a14c1b713dd41c8e6cb | [
"MIT"
] | permissive | windfall-shogi/feature-annotation | 8fd74887086cc0ede0d9198d5a258f20452b3ede | 83ff7c3fa31e542221cf45186b2ea3ef2a10310f | refs/heads/master | 2020-03-15T17:32:42.403072 | 2018-05-05T16:55:13 | 2018-05-05T16:55:13 | 132,264,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from itertools import product
from pathlib import Path
import numpy as np
import tensorflow as tf
from dotenv import load_dotenv
from annotation.black_naive_effect import BlackNaiveAllEffect
from annotation.direction import PinDirection, Direction
from annotat... | [
"imoto-y@sys.i.kyoto-u.ac.jp"
] | imoto-y@sys.i.kyoto-u.ac.jp |
2c23249fc74872183ccefdd2fc78c32f3fabef9b | 0c4e96ffd2926ae14d7cb1e9d4c5a3125ea08a49 | /models/instructors.py | fc9820c26f4da7a9c11bf2ff5d68aa6397eacb6a | [] | no_license | samj0516/daily-journal-server | 7d8902ed6c95f07d0e33bae378b58f13ee3c34a8 | fba3efcf7903404cff430eea20110b8622cc181c | refs/heads/main | 2023-04-17T13:02:33.588889 | 2021-04-22T21:11:12 | 2021-04-22T21:11:12 | 360,682,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | class Instructor():
def __init__(self, id, first_name):
self.id = id
self.first_name = first_name | [
"samj0516@gmail.com"
] | samj0516@gmail.com |
52a7c6c46b07827e837f84c077d75d923603f7b6 | 3520f8e954ce1af575488f0753f85cf2afe96fa2 | /backend/middleware/warning_exception_middleware.py | 555b2d823681cd3732f3402710fb3b1762bb8948 | [] | no_license | mdee/djember | ee39ee25be65bfc15b78dc5486a2677e3f56100f | cd97aabdb95900860b0bf823eb94c44e5ba1b176 | refs/heads/master | 2021-01-20T00:56:27.633476 | 2015-01-08T18:26:08 | 2015-01-08T18:26:08 | 26,779,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | # -*- coding: utf-8 -*-
__author__ = "MDee"
import traceback
import sys
import warnings
class ProcessExceptionMiddleware(object):
def process_response(self, request, response):
if response.status_code != 200:
print '\n'.join(traceback.format_exception(*sys.exc_info()))
return respons... | [
"mark.dhillon@gmail.com"
] | mark.dhillon@gmail.com |
e7b91b1e1a9a07d308d53477e8feb10298c13fa7 | 4b8279ac15416e85641f8c70afacbad9cfdd34f2 | /bloggo/decorators.py | 273caef174b07ebe5828fdae64adf1990436042a | [] | no_license | kunxi/django-bloggo | 2d30c613e10195ffaaead1ca5c24739de8cff5de | f78a2f97a7bfc471002b6812d16698239c222ce5 | refs/heads/master | 2021-01-25T08:37:09.408187 | 2010-08-23T00:36:30 | 2010-08-23T00:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.utils.decorators import decorator_from_middleware
import context_processors
require_siteconf = decorator_from_middleware(context_processors.require_siteconf)
| [
"kunxi@kunxi.org"
] | kunxi@kunxi.org |
4411fbda61c10c94fb5fb39237e1c2887ae61d0e | c11fbe26ab5e3ae4ca4b73238a9f0f0694829e9c | /biosteam_lca/units/construction.py | 2c97456864813fc52e095d0a39284578389fbe72 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | Uzair1shah/biosteam_lca | ca84348b4742014ca4d367f88cebd2b04aa32e4b | ca2d3bbbb9a17bb849d06dc3f5c16ec7fc510a18 | refs/heads/master | 2023-07-16T01:05:08.273416 | 2021-08-30T20:11:40 | 2021-08-30T20:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 14 15:33:39 2019
@author: cyshi
"""
# This class will be completed when Karen finishes her design on all biorefinary constructiosn, including all deirect and indirects inputs related to coast and emission.
class Construction:
"""A summary of all construction... | [
"cyshi@illinois.edu"
] | cyshi@illinois.edu |
f6b23ffa695566bdecd4607042fa580e550c11b6 | e25b0dc781cc291da63e9af1319666cb3e3fd94b | /Real_exp2/Codes/preprocess_real_data_classes.py | 9158d1c83f17bf31c9c8a6ae3787751cedef4e7e | [] | no_license | nastaran75/JMLR-Reg | 2621e123a847e0d72bccd5938ab8f06d3aa875c1 | 0daff201b4a462817f7f0caef2a87c46706cb612 | refs/heads/master | 2021-02-04T01:50:19.367050 | 2020-03-28T08:22:09 | 2020-03-28T08:22:09 | 243,599,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,283 | py | import sys
from os import listdir
from os.path import isfile, join
import numpy.random as rand
import math
import codecs
import csv
import random
#import fasttext
from myutil import *
import numpy as np
import numpy.linalg as LA
from scipy.io import arff
import shutil
#from PIL import Image
# from sklearn.preprocessi... | [
"nastaran.okati@gmail.com"
] | nastaran.okati@gmail.com |
05f9301df81319e54b22a7ca62d0a6c6cfddddaa | 6989ea305abec4198de989f867c8b0c2af342176 | /DataFest/csvparse.py | d6cface97323ff09deacb94d3f936e6344fa8358 | [] | no_license | jed326/DataFest2018 | acf60a27d34b8f61df8c92ed96e1da641fc50c8f | b09e0e6fd9682a649b69062ba271a224276bf5e4 | refs/heads/master | 2020-03-18T10:50:43.672627 | 2018-05-23T23:41:45 | 2018-05-23T23:41:45 | 134,636,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import csv
with open('cityIndexStates.csv', 'w') as csvOut:
writer = csv.writer(csvOut, delimiter=',', quoting=csv.QUOTE_MINIMAL)
writer.writerow(['City'] + ['Type'] + ['Index'])
with open('ODN_Cost_of_Living.csv', 'r') as csvIn:
reader = csv.reader(csvIn, delimiter=',')
for row in reader:
... | [
"noreply@github.com"
] | noreply@github.com |
dcd1de5532170a434837aafaca19ea83985eb47b | 24301aa84b87f82d1abe340e5706bd7119f96b21 | /utillities/check_all.py | 96f23a912d6fc6bfad94e20145775e23dca67514 | [] | no_license | kungfu-kenny/MeetingSite | 28c70c494d3e4aaf080dfd27956a02eb968fad6f | ef2c70246963c6e364d3635618298cecb008187f | refs/heads/master | 2023-09-01T17:14:51.086341 | 2021-10-27T15:09:40 | 2021-10-27T15:09:40 | 412,394,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import os
from config import default_chunk
def check_storage(folder_path:str) -> bool:
return os.path.exists(folder_path) \
and os.path.isdir(folder_path)
def produce_storage(folder_path:str) -> None:
return os.path.exists(folder_path) \
or os.mkdir(folder_path)
def check_file_presence(file_p... | [
"oleksandrshevchenko889@gmail.com"
] | oleksandrshevchenko889@gmail.com |
5a34311df8cf9337bb08deff80cb04533e13b6f5 | 882542fb43991643987dfd66b94be35f6c968334 | /hw2/histotest.py | 5f6929e7ed0f4443da2d99db9a022d216a4445e3 | [] | no_license | ethanglaser/ECE20875 | 5142734622ca2be7f9f2333d814b1ca55c7d8b33 | dfcedd06b2cfb8877f2df05a07267a9e61bf6f6c | refs/heads/master | 2023-04-03T07:37:15.103592 | 2021-04-16T23:07:59 | 2021-04-16T23:07:59 | 291,803,484 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | from homework2 import histogram, addressbook
data = [-2, -2.2, 0, 5.6, 8.3, 10.1, 30, 4.4, 1.9, -3.3, 9, 8]
hist = histogram(data, 10, -5, 10)
print(hist)
data = [-4, -3.2, 0, 7.6, 1.0, 2.2, 30, 2.2, 1.9, -8.3, 6, 5]
hist = histogram(data, 10, -5, 10)
print(hist)
data = [2,2,2]
hist = histogram(data, 3, -2, 3)
print... | [
"glasere@purdue.edu"
] | glasere@purdue.edu |
e033e65954bc0e69da6ed0c9b0bcfd89c96cf60f | 2988de871bec4e4da49136de0be6b1e581b958b1 | /tests/test_corona.py | 44e9bb32e65725eb7e4e043c1a7323879c374c41 | [] | no_license | SambhavChoradia/corona | b46c64034210c28bf57f0b83614d603bdf331a15 | 6722bd1214b8b29c4fcd26bce126dd76398903ff | refs/heads/master | 2022-11-28T02:27:26.224600 | 2020-08-10T12:56:58 | 2020-08-10T12:56:58 | 286,475,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from corona import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"sambhav.choradia@initbit.in"
] | sambhav.choradia@initbit.in |
0771d2ebca7dfbe8f5b99a3f0964a5e904ee75ae | d04d88e034b5826799de8e71eb1d61a395bbfbd4 | /kingdombot/ally.py | c8f5b3a62a84a3a29c4c2e17cee5ae003e6f47ea | [] | no_license | Flaymed/Volara | 5f3861a59f53103058262a9c39055c31e9f1caa8 | 562c17c40112a0f34128377010c09a9dc758667d | refs/heads/master | 2022-12-21T13:19:20.688603 | 2019-11-03T23:53:31 | 2019-11-03T23:53:31 | 210,471,375 | 1 | 0 | null | 2022-12-11T07:04:01 | 2019-09-23T23:39:32 | Python | UTF-8 | Python | false | false | 1,973 | py | import random
import sqlite3
conn = sqlite3.connect('./database/main.db')
c = conn.cursor()
def requestAlly(id, clanname):
name = (clanname,)
c.execute("SELECT name FROM kingdoms WHERE ownerid=?", id)
requestsender = c.fetchone()
c.execute("UPDATE kingdoms SET request=? WHERE name=?", [requestsender, n... | [
"34602265+Flaymed@users.noreply.github.com"
] | 34602265+Flaymed@users.noreply.github.com |
17b6a63f5fd62343b7a3cb8a859ed7ef5cd184f7 | 521648e4e12366760da7baff15d35201e0b19a5e | /django_ansible/shell.py | 5dc1d4613af2d30156968e00bd67fc7c89c10b8e | [] | no_license | sashgorokhov/django-ansible | b54f596f7d50d239474eb2d4fd8e85c0da21f959 | ad32255b7c87bcada1bd6c8aa250c1ec52c8cd49 | refs/heads/master | 2021-01-22T07:52:55.457727 | 2017-02-13T19:46:23 | 2017-02-13T19:46:23 | 81,864,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import subprocess
import logging
logger = logging.getLogger(__name__)
def _try_decode(b):
try:
return b.decode()
except:
return b
def run(executable, args, env=None, cwd=None, **kwargs):
"""
:param kwargs: Additional arguments passed to subprocess.run function
:rtype: subprocess... | [
"sashgorokhov@gmail.com"
] | sashgorokhov@gmail.com |
3f4a3115d59cbdaa0eebda1fc2946dac648429c8 | 7e7dd9a9886007cd37dc320de8b8c807043610c6 | /experiments/q_learner.py | c478664b8d1ce9b730f4e19a8bb4619ef72ce03e | [] | no_license | npho/HW4 | ba8f9add0daded40d334a563e878ba6659e35aaa | 4060fd9883ee99d2f69629f2a89969a244bc9edb | refs/heads/master | 2020-05-09T20:51:33.663028 | 2019-04-15T03:26:48 | 2019-04-15T03:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,622 | py | import json
import os
import time
import numpy as np
from .base import BaseExperiment, OUTPUT_DIRECTORY
import solvers
if not os.path.exists(OUTPUT_DIRECTORY + '/Q'):
os.makedirs(OUTPUT_DIRECTORY + '/Q')
if not os.path.exists(OUTPUT_DIRECTORY + '/Q/pkl'):
os.makedirs(OUTPUT_DIRECTORY + '/Q/pkl')
if not os.pa... | [
"nampho@me.com"
] | nampho@me.com |
28dccbb9398db07f45d327d9f7177a7907e88734 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /python/paddle/distributed/launch/controllers/ipu_controller.py | bf2c5f34b3bdf946f0f16b99225771bd139022e5 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 6,679 | py | # Copyright (c) 2022 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 appli... | [
"noreply@github.com"
] | noreply@github.com |
95a528dd21133ba2df964b0d63a9451686576c0e | 5224ca43fde4a549655e45aab88a0215ed5a50bd | /.venv/bin/eradicate | 411605314aa31e256ceddd1578219b58112d59cb | [] | no_license | goevs/python-project-lvl1 | 29370e432365815ad0daed6903fbdc4bf3f55dd0 | cdb4e97778d49ff259ce3470029c8f219fd79815 | refs/heads/master | 2022-11-24T14:19:49.164175 | 2020-07-16T16:12:33 | 2020-07-16T16:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,691 | #!/home/vil/edu/python-project-lvl1/.venv/bin/python3
# Copyright (C) 2012-2015 Steven Myint
#
# 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 limita... | [
"pilot.cool@mail.ru"
] | pilot.cool@mail.ru | |
4fcb1cc6ef1aa8dd0b590806b4fe4be048784aea | 37f1838b0a1f13fd516e28ae6f8641f1bfe90ab1 | /part02_regression/p04_support_vector_regression/svr.py | e270e40505151f532ed839f545bdbeeb9b91c9c0 | [
"Apache-2.0"
] | permissive | reyadussalahin/ml-a2z | e3a787f1144bf7f2e1084e4a1f93bbedad317c3d | d76fc63970303a53ec11b963bc86c4e71e8e83e5 | refs/heads/master | 2020-05-27T10:06:29.881930 | 2019-06-09T06:26:07 | 2019-06-09T06:26:07 | 188,577,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # it's the part same in every script
# please change your project_root dir as you need
# this project_root may not be same as yours...running the code won't work
# this whole process i've gone through to provide Data file path
# you can/should follow your own approach
import os
if os.name == 'posix':
PROJECT_ROOT ... | [
"reyadussalahin@gmail.com"
] | reyadussalahin@gmail.com |
c13e18406862b21208f3d0eabecafed60a527fec | 0b1002296d0686daae2ec0e83cafbba9833bf837 | /utils/test.py | 20fbd142451833f7a9d51ceac556d2b719c2efae | [] | no_license | williamzxl/tmp1 | b35f967ee62b25c65976b5c0a59cd71b315c2029 | 0213bac933435ae15dfc10997aa6b07300e2f580 | refs/heads/master | 2021-06-10T01:37:35.060796 | 2018-12-21T06:38:14 | 2018-12-21T06:38:14 | 162,676,016 | 1 | 0 | null | 2021-06-01T23:13:05 | 2018-12-21T06:37:07 | Python | UTF-8 | Python | false | false | 122 | py | a = {'groupID': '2475', 'newF': 3, 'sysID': '11-Hubei-Reading-4', 'taskID': '37037'}
print(a.keys())
print(list(a.keys())) | [
"1053418947@qq.com"
] | 1053418947@qq.com |
45bd56adc1b2966f89f8975993d293920fc347e9 | b0b5a04a5f13eb6bbd9b00d580068687ee03f975 | /redisleaderboard/leaderboard.py | 2237f9f2006858560422b7106c7257d6fe932e5d | [] | no_license | CorneliusIV/redis-leaderboard | b65efe0f8e6f07fbb7abb06dad3d55e89ac083b4 | b08808e704b8fd00b778d590cf2d4a55b5997b76 | refs/heads/master | 2020-06-18T13:06:58.038469 | 2018-02-02T16:17:41 | 2018-02-02T16:17:41 | 75,137,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | import json
from django.conf import settings
from django_redis import get_redis_connection
if settings.APP_STATE not in ('postactivation', 'recap'):
rediscon = get_redis_connection('leaderboard')
def response_to_dict(b):
d = json.loads(b[0].decode('utf8'))
d.update({'score': b[1]})
return d
def get... | [
"cornelius@isl.co"
] | cornelius@isl.co |
d4d6f8c7d0d44505e4fca8cbbe86cd3b935367db | cfb2f8175741705776585e6de0e9eca367bb7181 | /爬虫笔记/SpiderBegining/爬虫与json/06-get请求.py | ae4df52127e190a771f76dfdb0118f37a15e7511 | [] | no_license | qiuqiubeibei/qiuqiubeibei.githup.io | 0ed6c50c3ea9e31570c2103879d4ecee6ea9754a | cb855469a62a0c4e5d192f31e794f1c5b082b2b0 | refs/heads/master | 2020-05-18T07:25:12.117397 | 2020-01-31T14:31:54 | 2020-01-31T14:31:54 | 184,264,310 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 296 | py |
'''
get的特点:把数据拼接到请求路径后面传递给服务器
优点:速度快
缺点:承载数据量小,不安全
'''
import urllib.request
url = "https://movie.douban.com"
response = urllib.request.urlopen(url)
data = response.read().decode("utf-8")
print(data) | [
"noreply@github.com"
] | noreply@github.com |
1f46b61b04387cb9bac34da475225708022f4256 | 85373d45a83e4096affafa4f4e5b400787413e57 | /test/programytest/storage/entities/test_twitter.py | 2029e686fce23c3649fb991138d2227ae6ad9fa9 | [
"MIT"
] | permissive | keiffster/program-y | a02bb9d8278835547cc875f4f9cd668d5b1f44da | fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20 | refs/heads/master | 2023-08-23T13:55:39.255535 | 2022-12-13T09:51:57 | 2022-12-13T09:51:57 | 74,462,571 | 379 | 173 | NOASSERTION | 2023-05-23T00:51:21 | 2016-11-22T10:43:41 | Python | UTF-8 | Python | false | false | 471 | py | import unittest.mock
from programy.storage.entities.twitter import TwitterStore
class TwitterStoreTests(unittest.TestCase):
def test_store_last_message_ids(self):
store = TwitterStore()
with self.assertRaises(NotImplementedError):
store.store_last_message_ids(1, 2)
def test_load... | [
"keith@gchqsurserverf3.home"
] | keith@gchqsurserverf3.home |
c31338954ced6e76da2274aa4b6340be2e11225e | aa8e6259f33bdcfdf21434da5185f31aa6927195 | /gtf_admm_gird_v1.py | ded9bf78405dafb35b2100bc464273be8ad8622f | [] | no_license | Ryanshuai/graph_trend_filtering_py | b32448cfdc4c50a9dfde144abe73e878891f26de | 243969bf7dd97e483693ac88e45ab2192cd4edbf | refs/heads/master | 2020-11-27T07:13:22.116640 | 2019-12-24T20:56:05 | 2019-12-24T20:56:05 | 229,349,019 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import numpy as np
from numpy.linalg import norm
from grid_system import grid_system_2d, grid_system_3d
from get_Delta_grid import get_Delta_grid
from soft_thresh import soft_thresh
from construct_O import construct_O
def gtf_admm_grid_v1(y: np.array, k, lamb, rho, max_iter=1000):
y_size = y.size
y_shape = y... | [
"1018718155@qq.com"
] | 1018718155@qq.com |
cd441f2d3c611228048829a1ca0097ef862c5ad3 | fe8981741df39900d7fce240cfb07b7f05e18d30 | /Datacamp Assignments/Data Engineer Track/3. Software Engineering & Data Science/10_creating_setup.py | 7d58d8d8a3882fb41096f4684f45e478f88d4ff0 | [
"MIT"
] | permissive | Ali-Parandeh/Data_Science_Playground | 8924a252d9eeb7748b5d35545bd51f2102ae6476 | c529e9b3692381572de259e7c93938d6611d83da | refs/heads/master | 2020-09-17T10:34:55.427499 | 2020-04-18T10:02:42 | 2020-04-18T10:02:42 | 224,075,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # Import needed function from setuptools
from setuptools import setup
# Create proper setup to be used by pip
setup(name='text_analyzer',
version='0.0.1',
description='Perform and visualize a text anaylsis.',
author='Ali',
packages=['text_analyzer'],
install_requires=['matplotlib>=3.0.0']... | [
"Ali.Parandeh@atkinsglobal.com"
] | Ali.Parandeh@atkinsglobal.com |
6a515c0069fd5bf15272817de03f9bb0eb4b954d | a55496a955fc3e74e893a5692385b0f7c2a9ebfd | /0226_숫자배열회전.py | 5737a37fd7fec526c58b1883d6dd41c90e6ef00d | [] | no_license | i-cluster/Study | ab74c524875e5dac1ae1acd8f61b03d44a88c8de | 1c85caa0f27bfaace99514a1713799af07023cc5 | refs/heads/master | 2023-04-14T17:34:40.679721 | 2021-04-29T12:23:10 | 2021-04-29T12:23:10 | 309,609,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # SWEA 1961
# https://bit.ly/3aGQi12
def turn(k, ar):
for i in range(n):
for j in range(n-1, -1, -1):
turned[i][k] += ar[j][i]
return list(turned[i][k] for i in range(n))
import sys
sys.stdin = open('sample.txt', 'r')
for tc in range(1, int(input())+1):
n = int(input())
arr = [li... | [
"jhlee9091@gmail.com"
] | jhlee9091@gmail.com |
7b88efcd16638abbf9a7b7bf5405d75f01442fa0 | 4ef12965654c4bc9d6a0635ecf8188ecf2defed8 | /my_new_application_1046/wsgi.py | 3cb6a828d03839b76f908d22de5a1756e8c484a1 | [] | no_license | crowdbotics-apps/my-new-application-1046 | 2d30662ae59e1675d0fee78789898852a1b81b45 | e3ee98e6318bac0a61b3519d148b4b6b80c9c6f5 | refs/heads/master | 2022-12-21T22:11:11.515569 | 2019-02-23T00:42:41 | 2019-02-23T00:42:41 | 172,153,638 | 0 | 0 | null | 2022-12-08T01:40:51 | 2019-02-23T00:41:51 | Python | UTF-8 | Python | false | false | 424 | py | """
WSGI config for my_new_application_1046 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e1bb5e27f5d7426dd85a37efc2fd2a5991021262 | 7e6db7aee2f0c196c38ed56eefe7b2384a2ff74c | /apps/testcases/urls.py | ad09b05568ec383f06e9ad70e7f772cab8a5cd09 | [] | no_license | LuHale/AutomaticTestingPlatform | adb95aa626fbcd973e6ca2ab7de98a8475d82e6d | eb50aa6b088dc2c52d1ffb345e438a918e291e0f | refs/heads/master | 2022-12-13T12:37:09.850765 | 2019-09-19T02:29:15 | 2019-09-19T02:29:15 | 205,477,191 | 0 | 1 | null | 2022-12-08T06:06:04 | 2019-08-31T01:05:16 | JavaScript | UTF-8 | Python | false | false | 588 | py | from django.urls import path
from.views import testcaselist, del_testcase, create_testcase, submit_testcase, edit_testcase, update_testcase
urlpatterns = [
path('', testcaselist, name='testcaselist'),
path('deltestcase/<testcase_id>', del_testcase, name='deltestcase'),
path('createtestcase/', create_testc... | [
"565985644@qq.com"
] | 565985644@qq.com |
a5730babeea5cb9b9fa196c88478e70d153d0beb | 212f68a515ac97a2f7152016b230e69d42060f04 | /tapiriik/services/DecathlonCoach/decathloncoach.py | 6eb1e3011f83527bc504075c0e8898ebbfd7698b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | filin2009/exercisync | 07a7b7479ff52b86b99ad0e05c70df5e55071952 | f0995a6fb11efd1a662d1e5fb8be02b53b053548 | refs/heads/master | 2022-02-13T07:36:34.955858 | 2019-07-24T18:28:52 | 2019-07-24T18:28:52 | 219,769,182 | 1 | 0 | Apache-2.0 | 2019-11-05T15:42:29 | 2019-11-05T14:46:18 | null | UTF-8 | Python | false | false | 23,148 | py | # Synchronization module for decathloncoach.com
# (c) 2018 Charles Anssens, charles.anssens@decathlon.com
from tapiriik.settings import WEB_ROOT, DECATHLONCOACH_CLIENT_SECRET, DECATHLONCOACH_CLIENT_ID, DECATHLONCOACH_API_KEY
from tapiriik.services.service_base import ServiceAuthenticationType, ServiceBase
from tapi... | [
"canssens@gmail.com"
] | canssens@gmail.com |
8786ea0334c5efedf5e9f45374a05f141cbafbd2 | 5b24395856a88bcd61baa6ebe5220493998c7025 | /drf_day2/urls.py | 9f47782fd692557044dbe1c9c00e049c5209efba | [] | no_license | wulinyuan-python/drf_all | 65a2294204c3bd184a73b8f1b45b34c9c0116795 | 9dba41e4c7ae15622aeba88c874dc22a6c0c0e54 | refs/heads/master | 2023-01-06T13:31:57.569132 | 2020-11-04T09:08:39 | 2020-11-04T09:08:39 | 308,489,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from django.urls import path
from drf_day2 import views
urlpatterns = [
path("user/", views.UserView.as_view()),
path("student/", views.StudentAPIView.as_view()),
path("student/<str:id>/", views.StudentAPIView.as_view()),
path("emp/", views.EmployeeAPIView.as_view()),
path("emp/<str:id>/", views.... | [
"8202453+wulinyuan@user.noreply.gitee.com"
] | 8202453+wulinyuan@user.noreply.gitee.com |
84f8614af6501e9950112b91d35c5dbf1e89981f | 2f22609355aa0f2bf69a26b24fa80d818ecc7cbe | /PYHcsc/字典.py | de054a51744ace71046d97aed4a979cbc717c482 | [] | no_license | mgGummy/PYH | d5c809ca9dfa408fbafd6f03c4fdf2dec5f78de0 | 5dbb367126504d532bca95850261d44a474867e3 | refs/heads/master | 2023-04-21T17:58:31.739241 | 2021-04-20T03:41:19 | 2021-04-20T03:41:19 | 343,682,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #-*- codeing = utf-8 -*-
#@Time : 2021/3/3 9:31
#@Author : cscnb
#@File : 字典.py
#@Software : PyCharm
'''字典的创建方式'''
#{}
l={'张三':40,'大哥':70,'csc':66}
# print(l)
# #dict函数
# li=dict(name='李四',age=50)
# print(li)
# '''获取字典的元素
# '''
# #第一种,使用[]
# print(l['张三'])
# #第二种,用get函数
# print(l.get('张三'))
# print(l.get('牛逼',99))#99是没... | [
"74232718+mgGummy@users.noreply.github.com"
] | 74232718+mgGummy@users.noreply.github.com |
a43314ecbd28c6a36f85c46b51a9b51ade14fd6e | c3247112f8e5dc2e3da786668f3136e95184efc7 | /MyDemoProject/settings.py | d1bc7a590195a8d1be6b97024d9c302c46289b5a | [] | no_license | akshayanagaraj/POSTHUB | 7936fff9c53bc8fe8205b9ea7bc873345d00d249 | d064f05fa3e054f4ab7c795b1305df832a686827 | refs/heads/master | 2023-02-14T17:26:17.324212 | 2020-12-30T13:26:07 | 2020-12-30T13:26:07 | 319,924,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | """
Django settings for MyDemoProject project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pat... | [
"akshayanagaraj00@gmail.com"
] | akshayanagaraj00@gmail.com |
36a920fc840a4cac53c5c0475cc0246db7de7072 | a2d497e219db4cefd073ec37b786ae37aea73515 | /MashScript.py | d4c947ddba0a86423dddf0c6a0c676a30545a6ce | [] | no_license | Andrew-J-Miller/RPI_proj | 10a4fef90bb6f73adfbbd1511ab64b7e1f64d03b | 270032239f02dbb23caeee36eb570bc945e523c0 | refs/heads/master | 2020-03-16T13:16:51.623507 | 2018-09-12T18:12:19 | 2018-09-12T18:12:19 | 132,685,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,391 | py | import RPi.GPIO as GPIO
from pygame import mixer
import os
import time
import sys
import tkinter as tk
from tkinter import ttk
import datetime
#This is the python script that will be called for the Mash step
#Is essentially identical to the general heating template with the exception that the pump is run.
#librar... | [
"noreply@github.com"
] | noreply@github.com |
e2f068cbe30c6a0e2ced7c56d424860a07838c8b | d0cd3064e1b24542e02518961fd6643af56738f0 | /ticha-django-site/handwritten_texts/views.py | 96faec09e23c5252e504753c7de6a6f472a2b205 | [] | no_license | zhanpengwang888/Docker-Test | 126bd74301b7550de753eb7539795e20ace285c5 | 2f0eefb684622d6eead3977697e8ccf4761ba1be | refs/heads/master | 2022-12-15T11:49:46.899365 | 2017-09-29T21:02:05 | 2017-09-29T21:02:05 | 104,515,096 | 0 | 0 | null | 2022-12-07T23:56:40 | 2017-09-22T20:16:17 | HTML | UTF-8 | Python | false | false | 1,899 | py | from django.shortcuts import render
from .models import HandwrittenText
from django.views.generic import ListView
class HandwrittenListView(ListView):
model = HandwrittenText
template_name = 'handwritten_texts/list.html'
EN_TO_ES = {
'title': 'título', "language": "idioma", "document_type": "tipo_del_doc... | [
"zhanpengwang@Zhanpengs-MacBook-Air.local"
] | zhanpengwang@Zhanpengs-MacBook-Air.local |
4fe67943284d35aae5492511e9750adaef3d0bcb | 0316d7901906971046bcf401de83ecebcdc84602 | /I0320122_Exercise3.1.py | 51d10865ea20c20e9024225dbde9096f77ae4d4a | [] | no_license | alvinanindra18/Alvin-Anindra-Putra_I0320122_Muhammad-Abyan_Tugas-3 | df5439ce6956a924d861d1cc084e1e2fcd9f234a | e8164b1a03ce8e340736fbb7b4c023e00a593b99 | refs/heads/main | 2023-03-22T13:31:37.756556 | 2021-03-18T08:50:00 | 2021-03-18T08:50:00 | 348,999,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #Cara mengakses nilai di dalam list Python
list1 = ['fisika', 'kimia', 1993, 2017]
list2 = [1, 2, 3, 4, 5, 6, 7 ]
print ("list1[0]: ", list1[0])
print ("list2[1:5]: ", list2[1:5])
| [
"noreply@github.com"
] | noreply@github.com |
48d0dc88474f9a9daaca5cccdce6a61d601feac0 | fe6f183202e10e6c65f53a57e897ccde7ac6aef7 | /logging_.py | 08cdcf0136f46fec88813cb24396104794e68044 | [] | no_license | B2Metric-AI/db-for-learning-python | 11f623b8250795e6533d1537661e8e2d756a9f0c | 59fd408c70417505e5c51ea88099bcfc6a7263c7 | refs/heads/master | 2022-01-05T12:56:14.062140 | 2018-10-20T13:32:14 | 2018-10-20T13:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import logging
# レベル設定もできる
# formatter = '%(levelname)s:%(message)s'
# formatter = '%(asctime)s:%(message)s'
# logging.basicConfig(level = logging.INFO, format = formatter)
logging.basicConfig(level = logging.INFO)
# logging.critical('critical')
# logging.error('error')
# logging.warning('warning')
# logging.info('in... | [
"ngovanmanh88@gmail.com"
] | ngovanmanh88@gmail.com |
7f92f2587cfb587208f36e8f323f7845992daf6b | 207cbf583d629631536a1c8c2e78ff89d7895fa2 | /test/test_experiments.py | 9167381b8a26f66627a10d3ce9cd9ffbf8112db3 | [] | no_license | nalrefai/EnsembleMethodsForFeatureSelection | 376f1e9b4ee0024e792219f456dd53e7834b63f0 | 43e4258c2c48bdf883fc33b797520cb442ee93bb | refs/heads/master | 2021-09-23T17:41:41.003720 | 2018-09-25T21:17:22 | 2018-09-25T21:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | from experiments import *
import numpy as np
import robustness_measure
import feature_selector
from sklearn.dummy import DummyClassifier
class TestRobustnessExperiment:
experiment = MeasureExperiment(
measures=robustness_measure.Dummy(),
feature_selectors=[feature_selector.DummyFeatureSelector(), ... | [
"a.goscinski@mail.tu-berlin.de"
] | a.goscinski@mail.tu-berlin.de |
e7578cef4a041a9964a50a37d121f428f740ef9a | 3c7565fc2a4c24ca358b4a9f5e847740be1ee496 | /accounts/models/livestock_module.py | 1eab59b1e63a3500365fd1887ed08a5f1611ffe3 | [] | no_license | mohitspi/channab01 | 54a9aa4e0f6f6975b6d6da884a73030b0ffd552d | 7e0c6deb9592b990ca2e54919522e5f71f0125b2 | refs/heads/master | 2022-11-23T08:51:19.702997 | 2020-08-01T09:06:31 | 2020-08-01T09:06:31 | 284,409,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,207 | py | from django.db import models
from product.models import Category
from django.contrib.auth.models import User
class AddedAnimalLiveStock(models.Model):
'''Demonstrate docstring for confirming that this class will store all product added by logged in user'''
choices=(
('Male', 'Male'),
('Female',... | [
"mohitrahejatimone@gmail.com"
] | mohitrahejatimone@gmail.com |
cf5d0a7771e323b24bd3ee042f85b1bcbe5f004f | 2233f520493f64c6070dd3e77722e53a7dd738e8 | /day5/my_devices_na.py | 2721f252d62d9ee537165a0fe29a355f3aca4d31 | [
"Apache-2.0"
] | permissive | mpjeffin/pynet-ons-oct17 | 690bb31600b8ef5131439bb25ddce35b4855ba6a | d0daf9c250f79bc34b3b8b06b67004f56ef834a2 | refs/heads/master | 2021-09-07T00:00:02.234456 | 2018-02-13T19:58:11 | 2018-02-13T19:58:11 | 125,467,721 | 1 | 0 | null | 2018-03-16T05:26:10 | 2018-03-16T05:26:10 | null | UTF-8 | Python | false | false | 1,517 | py | """
pynet-rtr1 (Cisco IOS) 184.105.247.70
pynet-rtr2 (Cisco IOS) 184.105.247.71
pynet-sw1 (Arista EOS) 184.105.247.72
pynet-sw2 (Arista EOS) 184.105.247.73
pynet-sw3 (Arista EOS) 184.105.247.74
pynet-sw4 (Arista EOS) 184.105.247.75
juniper-srx 184.105.247.76
"""
from getpass import getpass
password = ... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.