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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26b7e297ba9b1adf0245c7865581ceb0bd4585a7 | 35b28312d4df205ec3758b6641d29f0509026f5a | /doom-train.py | 4656fb546674a86c441977022e646cd2a31fa118 | [] | no_license | 2hands10fingers/DoomMapGenTensorlfow | 5760789ff3f7db23db4d641f34b003f589080f3b | 2016fdb54fc207b8d63e6fb40edd5728776e789d | refs/heads/master | 2023-07-09T00:34:17.742248 | 2020-12-31T02:57:37 | 2020-12-31T02:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,223 | py | import glob
import time
import cv2
import imageio
import matplotlib.pyplot as plt
import numpy as np
import os
import PIL
import tensorflow as tf
from tensorflow.keras import layers
from IPython import display
import pathlib
batch_size = 32
buffer_size = 6000
img_height = 128
img_width = 128
data_dir = 'map_images'
... | [
"gh0stmusc@gmail.com"
] | gh0stmusc@gmail.com |
d99053121d4bfa021eaadecc9fc9f08b41146c6c | f252f0a656b49e00fd11d32627f93c7e6d17d84c | /mytweets/mytweets/mytweets/wsgi.py | 421d6c50cb974d97f95f30865e5a8ad9827973a1 | [] | no_license | nmanjos/SideProjects | 0ab53e192af7ee078f77709f59ca7874234c6862 | 360eb815a80c0eaf6cb0133c6dc462d620a8c85f | refs/heads/master | 2021-01-20T15:12:41.909324 | 2017-05-13T21:31:02 | 2017-05-13T21:31:02 | 90,731,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | """
WSGI config for mytweets project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION``... | [
"nmanjos@gmail.com"
] | nmanjos@gmail.com |
c007af70fbf0c75d3bd5ca9e2afa6f199344e7ab | 1e4eee5e5649cfad99a295fc20d0c2643324f9f0 | /python/ch_07_parse_json.py | 5ff92393b723bd7938fcf4595d8cfdd39f7b6238 | [
"MIT"
] | permissive | zeitguy/raspberrypi_cookbook_ed3 | 2ccfd6bfeab71378c3ecb78240b3aa3d78f9e46d | bccf35ea309f493c1a45c3b96dec45dc7cebb0d9 | refs/heads/master | 2020-06-14T04:19:52.506327 | 2019-06-28T15:46:42 | 2019-06-28T15:46:42 | 194,896,377 | 2 | 0 | MIT | 2019-07-02T16:10:37 | 2019-07-02T16:10:36 | null | UTF-8 | Python | false | false | 178 | py | import json
s = '{"books" : [{"title" : "Programnming Arduino", "price" : 10.95}, {"title" : "Pi Cookbook", "price" : 19.95}]}''
j = json.loads(s)
print(j['books'][1]['title'])
| [
"evilgeniusauthor@gmail.com"
] | evilgeniusauthor@gmail.com |
e62a2b3a2e84d990ffa3c419908c3c812161cf7b | 70cf2caf4e3f132772f2549e148a9206450e930d | /float.py | 1833902139bcb0aa4d5e07f86a5b6d0dbfb61c98 | [] | no_license | y-lukianchenko/Online_G7-Lukianchenko | 5d908a6b2ff7942238611e482a4d791b54ad709a | 0ad71127d036de93ebfc085d5aa4b8bcf22e2901 | refs/heads/master | 2022-07-29T03:43:06.034663 | 2020-05-22T10:12:12 | 2020-05-22T10:12:12 | 266,067,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | num1 = float(15.55)
num2 = float(5.1)
res1 = num1 + num2
print(res1)
res2 = num1 - num2
print(res2)
res3 = num1 * num2
print(res3)
res4 = num1 / num2
print(res4)
| [
"noreply@github.com"
] | y-lukianchenko.noreply@github.com |
65299b67215b65ad93d6eedceb4f45b2ff28fd2b | 26a2b8d5f31adf0d0b39ffc4162462e2483864ac | /account/views.py | 3330afa3843c525b1f673de7fc3f0a270ff313b4 | [] | no_license | tayogit/social-media | 92d78740194ff6466bf4857995f809a1bc38691e | c833c4518cd8ca5023eb062b35781233c3ab9443 | refs/heads/master | 2020-04-03T10:18:10.315278 | 2018-10-29T10:00:48 | 2018-10-29T10:00:48 | 155,189,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,361 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.contrib.auth import authenticate, login
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
# forms for the application
from .forms import LoginForm,UserRegis... | [
"tayonetu80@gmail.com"
] | tayonetu80@gmail.com |
8bce07ec0ffd7a73e3999b5625a7a45f625579be | 995c75caf00e161c8dabe5e8baffc551d0f4c199 | /deneme.py | 288f186d8a1ba391c6bc49adf883d2456603b1dc | [] | no_license | ebubekirtrkr/pythonWorkShop | cbfb757704ee5c7fe9c66f7a5e2bc0a8f160c75d | 994d35b5dab4c2900a33b5f0f7d6dad3a8b3a32d | refs/heads/master | 2020-03-31T19:20:07.938460 | 2018-11-04T11:36:52 | 2018-11-04T11:36:52 | 152,493,387 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | """
You have 6 sticks of lengths 10, 20, 30, 40, 50, and 60 centimeters. Find the number of non-congruent
triangles that can be formed by using three of these sticks as sides
"""
# The length of any side of a triangle must be larger
# than the positive difference of the
# other two sides, but smaller than the... | [
"ebubekirtrkr@gmail.com"
] | ebubekirtrkr@gmail.com |
8d9ea83bcb06dc6778ae6293893aa91148d5be77 | b793bec03050db49d205e913b33f67228716e7df | /music/views.py | 72ca97ff88b047178300b400f8a768a99be2281b | [] | no_license | tusharchopratech/django_practice_website | 04fdc167398a9f2dff32b4f8fd79e8c64ce68a0d | 2c8029e156d89c63bccdabbf26319af2b6838671 | refs/heads/master | 2021-01-24T10:17:21.111497 | 2016-09-22T09:51:02 | 2016-09-22T09:51:02 | 68,896,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.http import HttpResponse
from django.shortcuts import render
from .models import Album
def index(request):
all_albums = Album.objects.all()
context = {'all_albums': all_albums}
return render(request, 'music/index.html', context)
def detail(request, album_id):
return HttpResponse("<h2>De... | [
"tusharchopratech@gmail.com"
] | tusharchopratech@gmail.com |
c276ac1e1368bb0c78fdf8bd019c946553a1afe7 | 8efbf0ae3d2eaf3b38e2e9686267d1795a55d9a6 | /OldClasses/ALGO20/Exams/210128/SubsetSum-03/subsetSum0.py | c43489deb00e77078e8e4b693ca5985db4872c8d | [] | no_license | giuper/teaching | e378a1708b64ef742a8879cab0d327783594df92 | fe8e762e68c9b155106fe5eef54af36b5cbddad1 | refs/heads/master | 2021-12-05T15:33:51.099137 | 2021-11-28T10:05:17 | 2021-11-28T10:05:17 | 160,152,524 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | from back import BackTrack
class SubsetSum0(BackTrack):
def __init__(self,L,t):
super().__init__()
self.L=L
self.t=t
self.N=len(L)
self.sol=None
#required by BackTrack
def initState(self):
return [0,[None]*self.N]
#required by BackTrack
def nextAd... | [
"giuper@gmail.com"
] | giuper@gmail.com |
201f2a699968508b27aa6b449f252252fa81d03e | 09090be1f75485e2a90760f2a5807e23d882519a | /blender_source/MH_Community/operators/loadpreset.py | 61eaa1f943327e312959c2151d254ef32c1961b8 | [] | no_license | indigos33k3r/makehuman-plugin-for-blender | 237d0efe667d14d3d0d6252b85358cc8474e33ff | bcb8d346a40c4368878a4aa17a5145ef2785189f | refs/heads/master | 2021-01-16T13:04:49.410982 | 2020-02-18T20:24:39 | 2020-02-18T20:24:39 | 243,132,559 | 1 | 0 | null | 2020-02-26T00:29:44 | 2020-02-26T00:29:43 | null | UTF-8 | Python | false | false | 892 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import bpy
from ..mh_sync.presets import *
class MHC_OT_LoadPresetOperator(bpy.types.Operator):
"""Load an importer UI preset"""
bl_idname = "mh_community.load_preset"
bl_label = "Load preset"
bl_options = {'REGISTER'}
def execute(self, context):
... | [
"joepal1976@hotmail.com"
] | joepal1976@hotmail.com |
d9dbc46f730cd9460b86bf76d94aea1a8a069325 | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/label_attributes_info.py | 08eba2372d66b27e54c38d866a4acc9e0ee70c61 | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 1,687 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
class LabelAttributesInfo(object):
"""Implementation of the 'LabelAttributesInfo' model.
TODO: type description here.
Attributes:
entity_id (long|int): Entity ID of the label entity in EH.
name (string): Name of the label entity.
... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
acde65fdaeaec0990da4019fca898054a5aff3db | 7f909a2101a90e7ef15455debfdfcae635ade30c | /cgi-bin/sendNotification.py | 770d9426e4620a8cab857f0f5036104e66bb634f | [
"Beerware"
] | permissive | vppillai/simpleWebPushServer | fbb59b83dc6126ae5d5b6f17037c6baa06e9fd3a | 4ab48ac70f4c345ca19e57d7b985630f1c922637 | refs/heads/main | 2023-05-15T01:09:27.196136 | 2021-06-08T02:31:13 | 2021-06-08T02:31:13 | 370,800,351 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/python
import sys, json
from pywebpush import webpush
publicVapidKey = 'BJsj8xtpUqT2WfcFSYvabvf7F-sdMRuzi4jSvFJkzBWwD9r3OdF8yDaxo6wY-9k4t9_cSdlUtbBTZKPaFqsVlkw'
privateVapidKey = 'rHzgZzYeDMSUMqXyxwX9v-GZf1zyxGlLacqUj2Z6GDc'
with open('..\sub.info') as f:
sub_info = json.load(f)
x=webpush... | [
"noreply@github.com"
] | vppillai.noreply@github.com |
8ad388a47337aaef4482167896b9124cda06d91b | 24c9128a45173e24845f7f682adf50f793c1e723 | /BP/etfocs/main.py | 8c635d91b00dff7b56705a606555734ee6e8bc3d | [] | no_license | muhamedparic/RIM1 | 76421c0bf352a0a8952779f2245ec967c87327af | f8082dc4f99514b1329841efc0a7122d7cc6415e | refs/heads/master | 2021-09-04T03:56:16.695478 | 2018-01-15T15:40:38 | 2018-01-15T15:40:38 | 107,144,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,908 | py | from flask import Flask, request, abort, render_template
import json
import dbfunctions as db
import utils
app = Flask(__name__)
@app.route('/api/login', methods=['POST'])
def api_login():
if 'username' not in request.form or 'password' not in request.form:
return json.dumps({'success': False, 'reason':... | [
"mparic1@etf.unsa.ba"
] | mparic1@etf.unsa.ba |
2ff5ccf995197934f4471170a1775de327804b28 | 00728272713e3ea0c984c75760c53728ff58d384 | /src/hw_detector/hw_types/hw_rm17_gen.py | 6eb30f311b6f14c5fb6aaaaa534db98af713bd02 | [
"Apache-2.0"
] | permissive | akraino-edge-stack/ta-hw-detector | 31e85c1035956a9a144b98e503bffd79a74d574b | d3defb51c389a04a84d2796e227af333afd79636 | refs/heads/master | 2023-05-26T21:25:06.266231 | 2020-01-22T15:29:29 | 2020-01-22T15:32:23 | 199,550,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Copyright 2019 Nokia
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwar... | [
"janne.suominen@nokia.com"
] | janne.suominen@nokia.com |
5241707837f5a928867651ba78b0bcc67260efe1 | e405781f3d65111d9932ebe93ab9a4c72e0ca04a | /src/core/views/unsplash_proxy.py | d456dc981e0f69c473725ea459f09f94e5c66467 | [] | no_license | CapedHero/karmaspace-backend | f8efbbc732ce421810a020165204bf79ea8d367e | c6027a2101f1327bb026ee5e810e1ed5c03345a2 | refs/heads/main | 2023-09-05T05:00:12.906577 | 2021-10-28T07:15:05 | 2021-10-28T07:15:05 | 397,170,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from django.conf import settings
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated
from rest_framework.request import Request
from rest_framework.response import Response
from src.core.networking import session
@api_view(http_method_names=["GET"... | [
"mc.wrzesniewski@gmail.com"
] | mc.wrzesniewski@gmail.com |
3c7c0cfded18f110dc427d2e2c3c231323ce5560 | d6cc30fe5b4c41e86ccb5dec2d7ff3fa6e196d78 | /ints.py | 14e8b75b45ba0952f3a6f5c41927ae77b1b14cff | [] | no_license | PlumpMath/pylz | 9dfcdb9200e0fd13db93f475a6eadac6ea0fd247 | e2c16b78e6c82173deb944bc9658063c72b099d5 | refs/heads/master | 2021-01-20T09:54:36.450477 | 2012-03-12T04:31:50 | 2012-03-12T04:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | #!/usr/bin/env python3
#stdlib
from math import log, ceil
'''Utilities to convert integers to bytes objects and back again.'''
###############################################################################
def bitwidth(val):
return ceil(log(val + 1, 2))
assert bitwidth(0b0) == 0
assert bitwidth(0b1) == 1... | [
"plredmond@gmail.com"
] | plredmond@gmail.com |
c149793e1bd2ab9f684c1302a51fa785c0bfc8a2 | 205ef62fa03bc82a66a1cf148f824741e2084f77 | /2D_Coordinate/1.4.py | c6105d6ab685c234625ea03c9631252390188a9a | [] | no_license | ShreyasHavaldar7/Linear_Algebra_Applications | 88fade230f34944ded79785d9531685186349046 | 42d534b5da306b1f59005e7c8dc61141b7fc51ce | refs/heads/master | 2020-05-09T15:19:21.965674 | 2019-04-13T21:26:12 | 2019-04-13T21:26:12 | 181,229,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 7 18:03:18 2019
@author: shreyas
"""
import numpy as np
def dir_vec(AB):
return np.matmul(AB,dvec)
def norm_vec(AB):
return np.matmul(omat,np.matmul(AB,dvec))
A=np.array([-2,-2])
B=np.array([1,3])
dvec = np.ar... | [
"noreply@github.com"
] | ShreyasHavaldar7.noreply@github.com |
a7a06ca27759d50d419a66800ccbee290e3182ed | b93a640a37db99f8fd61ac00df1fa5e01b27217d | /[TC 03] Regex/Hernández Castellanos César Uriel Práctica 3 Teoría Computacional/genIP.py | 46f9e9391dfa42627d0bea183db12ac9d73f7249 | [] | no_license | llCUriel/TheoryOfComputation | 94ad55efb21f06b881f14216d31f15c24fe2c685 | 2acbb18b26aadf5abe2aaebf84f0ccb32a6b75de | refs/heads/master | 2021-03-01T08:50:34.252770 | 2020-03-08T07:41:31 | 2020-03-08T07:41:31 | 245,770,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import random
def generarNumeroAleatorio():
return random.randint(0,255)
def generarTupla():
for i in range(0,4):
miNumero = generarNumeroAleatorio()
cadena = str(miNumero)
if miNumero<10:
cadena = "00"+str(miNumero)
if miNumero>=10 and miNumero <100:
cadena = "0"+str(miNumero)
return cadena
def... | [
"48939025+llCUriel@users.noreply.github.com"
] | 48939025+llCUriel@users.noreply.github.com |
819c33bed65c47d08cf76fd2aaf4909e3961792a | edc87965dbc41921dc9fc07c729c1534d456f4f8 | /0x15-api/3-dictionary_of_list_of_dictionaries.py | 650d30e48668cf2212f3537625b263332b91252a | [] | no_license | alexoreiro/holberton-system_engineering-devops | a4f0daf9357c351ca5705bf769ca3f40f7dd7307 | 9ee81dd53315c6199227e7465ca1fce788eb6b25 | refs/heads/master | 2023-04-25T16:15:20.879873 | 2021-05-18T20:00:43 | 2021-05-18T20:00:43 | 294,121,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/python3
'''Reads todo list from api for id passed and turns into json file'''
import json
import requests
import sys
base_url = 'https://jsonplaceholder.typicode.com/'
def do_request():
'''Performs request'''
response = requests.get(base_url + 'users/')
if response.status_code != 200:
... | [
"alexis.oreiro@hotmail.com"
] | alexis.oreiro@hotmail.com |
ce813622af650fd867999e169900d0f40a737011 | bec751c0ae359a7bcde2582cac470ed70d5c0377 | /src/gitutil/test/test_gitSession.py | 826709a8d33364162c33dfab775ea2f173bb1bef | [] | no_license | bkushigian/hog | b4e6c80f2d4650759396cad3c05cd8619454a982 | 9618eabb417ea4ecacdb65435666821bb4f630fd | refs/heads/master | 2021-08-28T18:21:39.020270 | 2017-12-12T23:07:13 | 2017-12-12T23:07:13 | 103,278,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from unittest import TestCase
class TestGitSession(TestCase):
pass
| [
"bkushigian@gmail.com"
] | bkushigian@gmail.com |
f3d00278113692101fdabdbcba8f936eab3ad483 | 262f5f4c3542e4c955d98a35040900a3ef27647d | /routers/producto_router.py | d2e73d0ba7e16492028ad170e47987f00016821b | [] | no_license | maopinedaangel/back-chicco | cba5a31f390e6fc432244138e29c83cdb6d457d1 | 91026eae072f0c5d5dcd55df419db6a8ee2eb4dc | refs/heads/main | 2023-06-05T13:30:15.791457 | 2021-07-01T15:22:29 | 2021-07-01T15:22:29 | 382,075,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | from typing import List
from fastapi import Depends, APIRouter, HTTPException
from sqlalchemy.orm import Session
from db.db_connection import get_db
from db.categoria_db import CategoriaDB
from db.producto_db import ProductoDB
from models.categoria_models import CategoriaIn, CategoriaUpdate
from models.producto_mod... | [
"ingmauriciopineda@gmail.com"
] | ingmauriciopineda@gmail.com |
b1c2624a39524531b8f7070514ca8c03d2acac6c | f559c2552526cf3e1bde20f0b3c8bd39563bc2ce | /manage.py | e7748fc0ae491061d0134bde0683652cca043d84 | [] | no_license | mchocianowski/Matt_Katie_Milestone_4 | 7bed30dc41525ee531af7100850085ff507219e6 | e719c87028d6f7ee187f35ace0ef317bf0a958c6 | refs/heads/master | 2023-09-01T17:05:26.402189 | 2021-10-23T18:27:50 | 2021-10-23T18:27:50 | 378,400,610 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'matt_katie.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"ch.mateusz@hotmail.com"
] | ch.mateusz@hotmail.com |
76fe9b33f8e40be7a219e20eee5cdf56266de674 | 59e59cbc24650b557f41c041cbeb8dad10c4d2b1 | /05 Tree/987. Vertical Order Traversal of a Binary Tree.py | 97cd5176c2993952bd8af337395ff3f1bb4b0ed5 | [] | no_license | stungkit/Leetcode-Data-Structures-Algorithms | 5345211f4ceb7dc7651360f0ca0a7f48f2434556 | a3a341369a8acd86c29f8fba642f856d6ea2fd0a | refs/heads/master | 2023-07-26T18:14:17.993112 | 2021-09-13T15:40:47 | 2021-09-13T15:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | # Given a binary tree, return the vertical order traversal of its nodes values.
# For each node at position (X, Y), its left and right children respectively will be at positions (X-1, Y-1) and (X+1, Y-1).
# Running a vertical line from X = -infinity to X = +infinity, whenever the vertical line touches some nodes,
... | [
"noreply@github.com"
] | stungkit.noreply@github.com |
864af5a66b0bcfd3de035d8a7b115080389d3992 | 166d36ddd783dcbccb230f5bf8005c43aeebff17 | /lyric_predictions.py | e434e1974261dddd9b86236c4c22c8550215355d | [] | no_license | sarasteeves/songlyrics | ec20fa6104462bbdf00cd23c4754a5c5d4f9da3b | 043b6c67c339a708467f3720e8f3b818164a1d66 | refs/heads/master | 2021-01-12T03:32:18.337201 | 2017-01-15T19:54:02 | 2017-01-15T19:54:02 | 78,226,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 06 18:31:47 2017
@author: Sara
"""
import pandas as pd
import language_model as lm
def generate_lyrics_char(dataset, artist, seed, n):
lyrics = dataset.loc[dataset['artist']==artist, 'text'] # get all text for entries with specified artist
model = lm.charModel(or... | [
"sarasteeves@gmail.com"
] | sarasteeves@gmail.com |
e2bc3c89ebc437d6fbdd72376c9ef0e7d2dd468d | eea6ebf8af0e3e833eb95ed8d27a227feaaab79a | /practice6/14_3.py | c44301d5d766c1425326d023eb9c8e22fd150406 | [] | no_license | minzhou1003/intro-to-programming-using-python | 88840b93dc6f47e79d9a3c711856265b30c248b9 | 784945b15131d1149fbb650cf6867895cdb15c86 | refs/heads/master | 2020-03-07T01:53:23.572164 | 2018-04-26T03:30:52 | 2018-04-26T03:30:52 | 127,195,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # minzhou@bu.edu
import os.path
import sys
import collections
def main():
keyWords = {"and", "as", "assert", "break", "class",
"continue", "def", "del", "elif", "else",
"except", "False", "finally", "for", "from",
"global", "if", "import", "in", "is", "lambda",
... | [
"minzhou@bu.edu"
] | minzhou@bu.edu |
51aea0837af27265ca6570dcb07f16f5a0cd1a77 | e59f257d5735cae8cf7bb46d52792aa7371c9dae | /.history/core/views_20200223201904.py | 15927a86821df5a7628af8d466e5036af55b2e8d | [] | no_license | okumujustine/django-eccomerce-website | 95499049dd4e46513c25a0fe6e6b82cf69d2080b | 00c1ca600af5faa89829702044cc9f329bbc8b66 | refs/heads/master | 2022-12-08T23:29:19.453109 | 2021-05-31T11:23:22 | 2021-05-31T11:23:22 | 242,557,196 | 1 | 2 | null | 2022-12-08T03:44:29 | 2020-02-23T17:08:21 | Python | UTF-8 | Python | false | false | 7,036 | py | from django.conf import settings
from django.contrib import messages
from django.shortcuts import render, get_object_or_404, redirect
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.view... | [
"okumujustine01@gmail.com"
] | okumujustine01@gmail.com |
9f1a5562b8e1b9eaf2c8ed19e91d802fa067c9af | 9b3e71bd4477c72eb38bb7231618694e441edbf0 | /memly/tests/test_08_domains.py | 792b5debc2a9bcf3608b6625e5df3e3e0698a397 | [
"MIT"
] | permissive | tamir-dingjan/memly | 50c74f156c76b5ce8232c1244cb2b9c4d9978100 | ae77207c969145ce6bb627c7219790b008f15098 | refs/heads/master | 2023-07-20T18:14:54.381227 | 2022-12-15T11:11:39 | 2022-12-15T11:11:39 | 271,009,350 | 0 | 0 | MIT | 2023-07-06T23:21:36 | 2020-06-09T13:24:56 | Python | UTF-8 | Python | false | false | 415 | py | import os
import numpy as np
import memly
from memly import domains
def test_domains():
# Setup access to datafiles
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
traj = os.path.join(THIS_DIR, "data/2.xtc")
top = os.path.join(THIS_DIR, "data/2.pdb")
x = memly.Analysis(traj, top, load=True)... | [
"tamir.dingjan@gmail.com"
] | tamir.dingjan@gmail.com |
672b7bb63c2ac183fd40f8f5eb8c333b60d6f42c | b4f4559c6b684f63845149c2f80d93d6bac12a1b | /test/embedding/tet_mix.py | 764c3addeecdc298715b026fe62736fa4c966405 | [
"MIT"
] | permissive | payiz-asj/Macadam | 14c2351a501ff9884a0c7dd33ad0dd58b6f69b0b | 5237381459db5909f392737e33618a16c1e0452a | refs/heads/master | 2022-09-20T19:31:29.854889 | 2020-06-04T17:12:53 | 2020-06-04T17:12:53 | 271,481,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,629 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2020/5/15 21:20
# @author : Mo
# @function: test embedding of pre-train model of mix word and char
import sys
import os
path_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
sys.path.append(path_root)
# cpu-gpu与tf.keras
os.environ["CUDA_... | [
"2714618994qq.cpm"
] | 2714618994qq.cpm |
6ccb3ab7325ef6a0e1823cf45fc7b0692a791a9c | ff2f20dc0104c4dfd5e050874a05ab8f61cdc9c6 | /manage.py | 42846a20a7438ab7bdd9a6c708a7c3bb46efc514 | [] | no_license | aierickasun/positbe | de113819a2326e316e4f5d0b81c80a0294539f95 | fb192d424363f6a941ee09c6d660e1391efbe538 | refs/heads/master | 2020-05-30T14:49:18.910977 | 2019-04-13T06:48:41 | 2019-04-13T06:48:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'positbe.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"curtiskma@gmail.com"
] | curtiskma@gmail.com |
343558f2a0ab90e774a3ec0bc4088c72aa48535a | 9458f645d98b5b009f8f2a63aac4105d66c5f6ff | /accouts/urls.py | 0d34ff814653c9041eeb9159f393551352827ed0 | [] | no_license | darshan2297/practicedjango | 29291c95a3caf39b1d2ae93caaa419b3ebf3f1f6 | d273183436ecb9b6501ae2b9bb3c4a942fce6f95 | refs/heads/master | 2020-12-22T05:32:11.599817 | 2020-02-01T10:12:57 | 2020-02-01T10:12:57 | 236,682,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from django.urls import path
from django.conf.urls import url
from . import views
from django.conf.urls.static import static
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
app_name = 'accouts'
urlpatterns = [
path('signup',views.signup,name='signup'),
path... | [
"darshanvankawala2297@gmail.com"
] | darshanvankawala2297@gmail.com |
c65fab0ade30f468c699559d9a4249525491e707 | 094537d15c8cc3177998f2d72a007ba8d5a203d8 | /src/01simple_stats.py | ad3d2385b527980d6f213c7688e8232072406af1 | [] | no_license | mikekestemont/panorama | ec588daa11eb2bb6f98b2f04a9686c9628e2f8e2 | 62c81c376359193b5f065d8cba0d2bb41be0eeb7 | refs/heads/master | 2021-01-12T13:59:43.910169 | 2017-08-10T14:20:56 | 2017-08-10T14:20:56 | 69,681,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Script to plot the absolute number of word tokens in the
Speculum archive (aggregated per year), as tagged by the
Stanford Core NLP Suite.
"""
import glob
import os
from operator import itemgetter
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sb... | [
"mike.kestemont@gmail.com"
] | mike.kestemont@gmail.com |
5d45d09baa3993b2ffaa78ac1e4e03a207cc5551 | 0c87e782b6d225dbc0477caa8b9279c91e939664 | /hello.py | 030117cf94bae7806fd472dfb6f82de53ded522f | [] | no_license | whyisjacob/python | d8969827209cdea60ca4f735367ef33fe9cc1763 | a8478ac9d9f37f2fce0870b35736549ba23cd42b | refs/heads/master | 2020-06-08T01:49:34.871242 | 2019-06-21T17:29:42 | 2019-06-21T17:29:42 | 193,136,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | num1 = float( input("Enter the first number: "))
num2 = float( input("Enter the second number: "))
num3 = float( input("Enter the third number: "))
print("The max value is: ", max(num1,num2,num3))
input("Press any key to exit")
| [
"whyisjacob@gmail.com"
] | whyisjacob@gmail.com |
c163d71072f932134492d6e5e0360b8ef47835ec | 96a70069156b23fd7157f3813334f9a1f3de3b2b | /pytest/ex21.py | 140c9333920341a00e3c0320581407a23a99c446 | [] | no_license | hello-lily/learngit | 148eecdb487abf824a0b75090eb91655caaacaa2 | aa3571c9bb9f5f808b1f20ae139e7b102ff515c0 | refs/heads/master | 2021-01-19T22:26:57.141547 | 2017-05-08T06:00:55 | 2017-05-08T06:00:55 | 88,817,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | def add( a, b):
print("ADDING %d + %d" % (a,b) )
return a + b
def subtract ( a, b):
print("SUBTRACTING %d - %d" % (a , b))
return a - b
def multiply ( a, b):
print("MULTIPLYING %d * %d" % (a,b))
return a * b
def divide (a, b):
print("DIVIDING %d / %d" % (a,b))
return a / b
print(" Let's do some math with just ... | [
"aliciali@139.com"
] | aliciali@139.com |
720dd9b38910f452f5ea01ccbc26b93268856808 | 5ec66a087265030f7c3730556cd92b7212a65fa9 | /programming/python-curso_em_video/exercises/ex049.py | 70cb0899911c77f6380385fa37bc9c73b2271f03 | [
"MIT"
] | permissive | carlosevmoura/courses-notes | 6d60081bc7b036c42c25b1e1876f15aa40e4a8eb | dc938625dd79267f9a262e7e6939205f63dda885 | refs/heads/master | 2022-09-17T01:17:13.481694 | 2020-06-05T16:57:03 | 2020-06-05T16:57:03 | 258,475,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | numero = int(input('Insira um número inteiro para obter a tabuada: '))
print('='*12)
contador = 1
for contador in range(1, 11):
print('{} x {} = {}'.format(numero, contador, numero * contador))
contador += 1
print('='*12)
| [
"carlosevmoura@gmail.com"
] | carlosevmoura@gmail.com |
a39f41e9421ad42e165d795e74db70f6c53200df | ca53027eccd5135e72fbc5bcbba12fb5654f6c5c | /Tianic_Kaggle/Titanic_kaggle/Tianic.py | 4ad5cd5cb32ec9a2ca8d063caa302ef1d611c5a6 | [] | no_license | amazingcodeLYL/Pytorch_Advanced_combat | f981c58d5bc12ec2bf3b548847f40c981d579db0 | 7ee23cb4275eaecbdbc61b0af6f39b81179b2a30 | refs/heads/master | 2022-12-20T08:43:06.620015 | 2020-10-15T12:23:56 | 2020-10-15T12:23:56 | 255,927,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,531 | py | import numpy as np
import random as rnd
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import LogisticRegression
from sklearn.svm import SVC,LinearSVC
from sklearn.ensemble import RandomForestClassifier
from sklearn.... | [
"noreply@github.com"
] | amazingcodeLYL.noreply@github.com |
07912b76327f7b780d8fdf83cdc4fcd2ec8bbe0a | 5246d8562ab23f30bb9c912278815e375a8a7ed3 | /API/repository/classes/political_leader_repository.py | bfd810912a001ef0fbaa85019b3793dea7d279cb | [] | no_license | gautam0707/WebScrapper | 8a38356c9b22e4d2cd5d4bab0a8e2776387ffab7 | a427a4715040373205d8c8796f1cc8b68ac17546 | refs/heads/master | 2020-12-02T16:36:33.538735 | 2017-07-07T17:12:59 | 2017-07-07T17:12:59 | 96,559,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from pymongo import MongoClient
from repository.common import constants
class PoliticalLeaderRepository:
def __init__(self):
self.mongo_client = MongoClient(constants.MONGO_INSTANCE_URL, constants.MONGO_INSTANCE_PORT)
self.database = self.mongo_client["metadata_4p"]
self.collection = self.... | [
"bgautam.0707@gmail.com"
] | bgautam.0707@gmail.com |
ab14cc9c703776757e833d46ff64145f93bfd183 | 7954bb6cb3ba67d7310296c6d348159da4f6c1b6 | /layers.py | 521554030951cc4ec404e161620e14c3b155aff2 | [
"MIT"
] | permissive | truebeliever17/handcrafted-torch | 7d8867d73387f293b0969e43032ac47bfb833b23 | 94ed86e68da7c1969ded5eecef6191bd04ad1a1d | refs/heads/master | 2023-03-31T14:59:43.133785 | 2021-04-01T16:14:07 | 2021-04-01T16:14:07 | 353,733,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | import numpy as np
class Param:
def __init__(self, data):
self.data = data
self.grad = np.zeros_like(data)
self.velocity = np.zeros_like(data)
class Linear:
def __init__(self, input_size, output_size):
self.W = Param(np.random.randn(input_size, output_size))
self.B = ... | [
"madiyar2000@gmail.com"
] | madiyar2000@gmail.com |
7a23b11601587584de73acb86204bfb3ae064e5d | 5445dc6d98955935d11858426e47d5d2eec2c82a | /fitnesshub/urls.py | 16986f3c0280eefb0075553676c073a6921bed47 | [] | no_license | Caiseyann/Fitness-hub | fa3da46bf364472b419732581595c4d06df1c67d | 24ae999f97d372587b934d04cb432e5b83d6b62e | refs/heads/main | 2023-01-08T17:00:53.044125 | 2020-11-03T10:26:10 | 2020-11-03T10:26:10 | 309,712,644 | 0 | 0 | null | 2020-11-03T14:31:23 | 2020-11-03T14:31:22 | null | UTF-8 | Python | false | false | 800 | py | """fitnesshub 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-ba... | [
"andiwoedwin@gmail.com"
] | andiwoedwin@gmail.com |
dbd1977a2b50edf49b3e8a63d2f7f806455c5d5c | a1d300b3bd872e73b446f30dde315332730ae7b0 | /bin/easy_install-3.8 | 37031fabdc59dc5af3e77dc9d035982824b89fcc | [] | no_license | josephp27/GitCrypt | f28d2cb8798288a6f3e15d7a6b8e8be52401b9f6 | eec6c5d8ce8e1b3c959205fb5f65f8b99a2905bc | refs/heads/master | 2020-05-09T15:48:32.777231 | 2020-01-14T15:39:31 | 2020-01-14T15:39:31 | 181,243,505 | 0 | 1 | null | 2020-01-10T21:48:30 | 2019-04-14T00:41:09 | Python | UTF-8 | Python | false | false | 258 | 8 | #!/Users/jprof/Desktop/GitCrypt/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jprof@allstate.com"
] | jprof@allstate.com |
21c555ebf99593e87c33baf49bc5875a88d3e4da | ffc6ecca431696c814f338477eeeee77ef475fe6 | /Factorizer/Factorizer/test/number_generator.py | c523b2328c42db2a5361522d6a88a3ceb6add9e1 | [] | no_license | ViktorCollin/avalg12 | 9773d102dc2bd3bc2ae60c2fbbeef21474bd5b20 | e5ea2da3ab5ed9ff10eea037158aaa08716aa4ae | refs/heads/master | 2021-01-10T19:41:07.239675 | 2012-12-05T22:26:45 | 2012-12-05T22:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | #!/usr/bin/env python
import random
N = 100
for i in range(0, N):
print random.randint(1, 2**50)
| [
"carlantonlindstrom@gmail.com"
] | carlantonlindstrom@gmail.com |
c9b3dd7a2d679e0189c1fdbd39434b40df667ea5 | 38083877cc396fab845257696fdb574a859038a7 | /routeros_alive.py | eff9b1d02810993463cc56ab8a844c7dc87d7f9d | [] | no_license | zhuzhes/ShenLian-1 | 6c808d25924f95983328e3ca3201742c92005014 | eb513cdfaa308ee91aea9221433ff6481cc4e918 | refs/heads/master | 2020-04-25T10:24:26.159488 | 2019-02-27T18:20:24 | 2019-02-27T18:20:24 | 172,707,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | import os
# Configure settings for project
# Need to run this before calling models from application!
os.environ.setdefault('DJANGO_SETTINGS_MODULE','learning_templates.settings')
import django
# Import settings
django.setup()
import napalm
from napalm_ros import ros
import requests
import socket
import routeros_api
... | [
"michael.2.zhu@bt.com"
] | michael.2.zhu@bt.com |
2b8a33ddfb44d4bc41545c10a5d297a6589a14b9 | e5148f3040ab19a9abfb8990830ccb78021b1288 | /mdstack-service_2.2/mdstack-service_2/mdstack-service_2.0/mdstack/dbtools/globalvariable.py | 61ea38fbda85d19d73d1efe455d0e83bb9b179ca | [] | no_license | linxuanmax/msql_to_es | 5602f662e29b2f3bdcdffff4371ae047c37bafef | bc848f400703dec66592c9958a231c7d65e2b4a4 | refs/heads/master | 2021-01-17T14:20:09.904308 | 2017-03-06T15:05:43 | 2017-03-06T15:05:43 | 84,084,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,445 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
__author__="yanzl"
__date__="2017-02-27"
'''
连接数据库的信息:为字典形式
例: mysql1:数据库连接的配置(键)名称
hostname:IP地址 port:端口 dbname:连接的数据库的名称 username:数据库的用户名 userpass:与用户名对应的密码
'''
dic_connection = {
'mysql1': {'hostname': '192.168.1.225', 'port': '3306', 'dbname': ... | [
"root@debian"
] | root@debian |
f0a362bf7b8807f40fc84b1947b325492fd317e5 | 36e96651974fa0a73fe2d754190cfa307547e697 | /ent/migrations/0129_actualtext_original_text.py | ca602d9722bd4a18af0767bf95d771ef9c8a491a | [] | no_license | wrekshan/sentimini | 658e0e43b0f7903211ceb488295d9d9cc72e8c07 | ec8ad3f4c08875f59c971c8575cc63c5118eac15 | refs/heads/master | 2021-01-15T17:09:47.777374 | 2017-08-03T20:37:59 | 2017-08-03T20:37:59 | 99,734,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-07-06 15:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ent', '0128_auto_20170705_2008'),
]
operations = [
... | [
"william.rekshan@gmail.com"
] | william.rekshan@gmail.com |
c0fca2401c3a950b1a45020106324b86401296e4 | 0aced31d3e8e7f41aa685aa3a29cfa0b3600517d | /tutorial-env/bin/alembic | 910b6123893ac54eac0111c4cbda7015910359f4 | [] | no_license | alexiscodes/fpl | 49e1be2b4c45aae6f69c7a7b64791095582a5311 | c38b650f0efa707b8497e4057436929117091932 | refs/heads/master | 2022-12-23T17:08:05.608370 | 2019-07-22T18:04:34 | 2019-07-22T18:04:34 | 144,007,045 | 0 | 0 | null | 2022-12-08T05:45:57 | 2018-08-08T11:55:37 | Python | UTF-8 | Python | false | false | 260 | #!/Users/alexis.becker/repos/fpl-dummy/tutorial-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"alexis.becker@transferwise.com"
] | alexis.becker@transferwise.com | |
e9878b4484aae836c8a29d1e67001de93d9b11d9 | ca6779939f4ed7257d076ea4524486146c4e6eba | /week2/1.py | 571dd08a87f2f72f1214bfb600af9fed58a41983 | [] | no_license | nguyntony/algorithms | 1eb0dc72ae06091bca3cc9c048a5c656fdc55add | 1f2241b069e6682c72130c6e9538dd8914722b83 | refs/heads/main | 2023-02-06T04:37:41.681171 | 2020-12-27T23:48:41 | 2020-12-27T23:48:41 | 304,662,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # 1. Given an array nums, write a function to move all zeroes to the end of it while maintaining the relative order of the non-zero elements.
nums = [9, 1, 0, 3, 0, 5]
nums1 = [0, 18, 6, 7, 9, 0, 2, 0, 3, 0, 2, 0]
def move_zeros(list_given):
for idx, num in enumerate(list_given):
if num == 0:
... | [
"nguyen.tony1015@gmail.com"
] | nguyen.tony1015@gmail.com |
8899b61f533b21547fdca3f5414b0bba90c4c86b | 1f3e98e3bb36765f869ca3177a47c53ce302ec70 | /test/input/061.py | 8b5e3f6c8aacd56928face756eefb3dacd6e28f5 | [
"MIT"
] | permissive | EliRibble/pyfmt | d73dec1061e93a28ad738139edf523e1678d0e19 | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | refs/heads/master | 2020-04-01T10:57:18.521463 | 2019-05-24T21:39:18 | 2019-05-24T21:39:18 | 153,139,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | def frobulate(bar=None, bif=None, fiz=None):
print(bar, bif, fiz)
frobulate(
bif="So we can suppress the horizontal layout",
bar="This needs to be a really long line",
fiz="And test the alpha ordering",
)
| [
"eliribble@google.com"
] | eliribble@google.com |
61549d35fdaeae11251142a8d1b81ef0625287d1 | bbb24bc2f136c435377d572fb315d4cb9e19f2f8 | /scripts/download_codes.py | eb23c9eac29ddd2e46152290be150c0c49b6d793 | [
"Apache-2.0"
] | permissive | bsolomon1124/demoji | f6207d71a261dd5713242aa8626668c0cf33cdea | 6577cfe87876d5ab6311afa8e03a06d6ba636bd6 | refs/heads/master | 2023-08-24T05:52:16.856757 | 2021-08-29T19:21:03 | 2021-08-29T19:21:03 | 169,640,556 | 146 | 23 | Apache-2.0 | 2021-08-29T19:12:09 | 2019-02-07T20:50:30 | Python | UTF-8 | Python | false | false | 2,877 | py | #!/usr/bin/env python3
"""Download emoji data to package_data."""
import datetime
import json
import pathlib
import re
import time
import colorama
import requests
from demoji import URL
# We do *not* use importlib.resources here since we just want the source file,
# not where it (might) be instlled
parent = pathli... | [
"bsolomon@protonmail.com"
] | bsolomon@protonmail.com |
2e334de14174d79b2b85517cfe43af9b69ac8f78 | 93fb9bdbe659a87caf42e694bd0694af4ff46b8f | /ORS/hospital/urls.py | 4767c8f055b1fddd4e4f30802366f937337852a3 | [] | no_license | manishbansal0021/ORS-SIH2K18 | 3804a1e2391812e48da9409e03d3289eda7db215 | 54566273a2eb59672f6dd5eda47fa3ea4281a832 | refs/heads/master | 2020-03-07T08:30:33.843966 | 2018-03-30T06:50:23 | 2018-03-30T06:50:23 | 127,380,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from django.urls import path
from . import views
urlpatterns = [
path('login/' , views.login_view , name='login_page_mgnt'),
path('logout/',views.logout_view,name='logout_page_mgnt'),
path('register/',.views.register,name='hospital_registration'),
path('dashboard/',views.hospital_dashboard,name='hospit... | [
"mayankt28@gmail.com"
] | mayankt28@gmail.com |
463634e51f6c550e7f7627dd28f80025376bdc34 | 403d68101f0215e95dd8657f042eb86fcbd89f20 | /metadamage/progressbar.py | 252fdf54c5685c6a96920dcc8d35b8f29f6a5656 | [
"MIT"
] | permissive | genomewalker/metadamage | 71339b171e2df464883296fb568a18b291881b0b | 0d08e822935bdf496a0a27b2ca81d29e37cef748 | refs/heads/main | 2023-03-14T20:00:35.025788 | 2021-03-18T15:44:29 | 2021-03-18T15:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | # Third Party
from rich.console import Console
from rich.panel import Panel
from rich.progress import (
BarColumn,
Progress,
SpinnerColumn,
TextColumn,
TimeElapsedColumn,
TimeRemainingColumn,
)
#%%
class MyProgress(Progress):
def get_renderables(self):
for task in self.tasks:
... | [
"christianmichelsen@gmail.com"
] | christianmichelsen@gmail.com |
4dda1660b0a8a5e7bbe0c0bbb13c29f036773b40 | ed4d7ac589de72b473550e9d76c2e5d5ce4bad31 | /scripts/scripts-py/subjects_info.py | b6d02fd36de6a130ff96dfb3aee643eadce7d83d | [
"MIT"
] | permissive | WesleyMarques/tcp-experiment | 769a42faf1b50fddf6e47a38eefa33fe581db1ca | 1a4db61a9f122934e78d4e68e20a2f71893f861e | refs/heads/master | 2022-03-31T10:09:38.150163 | 2020-01-13T23:00:34 | 2020-01-13T23:00:34 | 128,976,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | import json
import sys
from pprint import pprint
import calc_metrics
import os
import io
from numpy import median
try:
to_unicode = unicode
except NameError:
to_unicode = str
def get_tests_by_mutants(testsFile):
tests2Mut = {}
for testMut in testsFile:
testMut = testMut.replace("\n", "")
... | [
"wesley.nmtorres@gmail.com"
] | wesley.nmtorres@gmail.com |
8dd348247909748c602290de6f3d5b29dcfdd7bb | e40abe72659de459461ce214ed19494560520ab9 | /django/django_fullstack/the_wall/the_wall_app/urls.py | a56a0e7bc28275cceb45d8d4a715b2aa336f2dd7 | [] | no_license | asmaalsaada/python_stack | b05b580a9438b7084e39ac4514f84ccb4436c08d | c68f8b06b30742df6802f3815c30d7a5413e5ceb | refs/heads/master | 2023-05-04T00:18:06.800035 | 2021-05-30T13:28:25 | 2021-05-30T13:28:25 | 364,530,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('register',views.register),
path('login',views.login),
path('wall',views.success),
path('msgs',views.posts),
path('addcomment/<int:id>',views.comments),
path('del_msg/<int:id>',views.del_msg),
... | [
"asma.alsaada96@gmail.com"
] | asma.alsaada96@gmail.com |
2d513946bc9424797d12bab29ea4a70521ca8c05 | bb31b3f2e84a74dc0106652103244cf6a4c9145b | /save_to_baiduyun.py | 10772753ca8f177b4dcdee13eb415a026d96bbbe | [] | no_license | kampfer/fuli | 4f068110311f42bb35b128abf67d4f0fdd5dc7ab | 3ae8e46feecf186fe571e0cdfcf293bef26b2eda | refs/heads/master | 2021-01-20T14:25:31.358086 | 2017-02-22T02:48:21 | 2017-02-22T02:48:21 | 82,752,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | #coding:utf-8
import rarfile
import os
import re
def readRar(path, password=''):
rarName = os.path.splitext(os.path.split(path)[1])[0]
with rarfile.RarFile(path) as rf:
if len(password) > 0:
rf.setpassword(password)
return rf.read(rarName + '.txt').decode('gbk')
def findShareLinkA... | [
"liaowei02@baidu.com"
] | liaowei02@baidu.com |
0e78fa42d4c2482ef9e47b036156586ca083cdde | 795df757ef84073c3adaf552d5f4b79fcb111bad | /polpak/cheby_u_poly_coef.py | d231467223a9b56c9e78119dfd9a0f86e67509dc | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | #! /usr/bin/env python
#
def cheby_u_poly_coef ( n ):
#*****************************************************************************80
#
## CHEBY_U_POLY_COEF evaluates coefficients of Chebyshev polynomials U(n,x).
#
# First terms:
#
# N/K 0 1 2 3 4 5 6 7 8 9 10
#
# ... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
165599fb9d7e6710f2f9240133f05a511e423901 | e0f840379e99b7138b7565598b50901aa77d05e0 | /config.py | 38fd629aad945c2a4c7b3b79f5b2e0c21673d1b6 | [] | no_license | cimaggio/DM_likelihood | f09f2035a6a27ee2e5e8dd4d50be82e0c3e3fa0d | 2d4b6f6e259a9e615f469b94d09e027b634f52b2 | refs/heads/master | 2021-05-15T19:16:25.165716 | 2018-03-12T14:52:08 | 2018-03-12T14:52:08 | 107,683,042 | 0 | 0 | null | 2017-10-24T08:15:07 | 2017-10-20T13:44:12 | null | UTF-8 | Python | false | false | 889 | py | #!/home/software/anaconda/bin/python
nsamples = 2
SampleName = ["0306", "0307"]
GlobalDir = '/media/san2/astro/M15/'
ModelsDir = GlobalDir+'masses'
# reconstructed energy limits
energy_cut = 70
energy_upper_cut= 6500
energy_numbins = 17 # from CreateAeff.C
energy_absmin = 10
# Background binning... | [
"cmaggio@neas.uab.es"
] | cmaggio@neas.uab.es |
562b9161382d9c37bafe66536738c0b2ca71347d | 05f92f9b631daaae19f0f43ac2e68ebe72be1958 | /5.image_crop_by_pixcels.py | 829697e24b3614ddb6f21136a9aa1a6bceab9144 | [] | no_license | heysushil/python_image_processing | 29d67a58bb6d2672ea06f179f39c306167d4426e | 8e31cefeee3dd3f26ec067acd397aa1c1d42eec7 | refs/heads/master | 2021-03-25T16:59:42.886729 | 2020-08-10T13:16:20 | 2020-08-10T13:16:20 | 247,634,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | import numpy as np
import scipy.misc
from scipy import ndimage
import matplotlib.pyplot as plt
face = scipy.misc.face(gray=True)
lx, ly = face.shape
# print(lx)
# print(ly)
# Cropping
# lxstart = lx // 4
# lxend = -lx // 4
# print('\n',lxstart)
# print('\n',lxend)
crop_face = face[lx//4:-lx//4, ly//4:-ly//4]
# print... | [
"sushil.chaudhary111@gmail.com"
] | sushil.chaudhary111@gmail.com |
f0c490d3b6a4dce2ab23f9f7b7bc6f06fb0aeee9 | 194987258df8b02c7992e476735461c4724ac866 | /ScoreBoard.py | 95e72d42e894a9db3f42132e836e7f5e5a20243c | [] | no_license | flips30240/VoxelDash | 6bbffcc591a9a59aa3f33964df71e178e486b642 | 2ce5861a7345b9c489ff3b711a0cebb317611198 | refs/heads/master | 2020-05-17T08:22:22.256317 | 2015-03-11T02:32:10 | 2015-03-11T02:32:10 | 17,657,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | from direct.gui.DirectGui import *
class ScoreBoard():
def __init__(self):
self.scoreList = []
self.scoreLocation = "./scoreboard/ScoreBoard.txt"
print("Score Board Initialized!")
self.parseScoreFile(self.scoreLocation)
base.accept("9", self.destroyBoard)
def parseScoreFile(self, location):
space ... | [
"flips92691@gmail.com"
] | flips92691@gmail.com |
90f8ff9df83c1f455a3ecbad9cc7f3f796f9a1b0 | d0c521db0302002723b0fa03f55239e5b7d1a0b4 | /networks/ConvLSTM.py | 4ed72a0f2bdefea8c756b6aa294cf3c5b94a180e | [
"MIT"
] | permissive | caslab-vt/DeepPaSTL | 4e028fb42ec1867de44512a788098966d526af3c | a928a0fc1f1bbe5a27f7bc1e7d1e320c023d13c6 | refs/heads/main | 2023-08-02T06:40:22.318280 | 2021-10-05T10:44:37 | 2021-10-05T10:44:37 | 413,774,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
# Define some constants
KERNEL_SIZE = 3
PADDING = KERNEL_SIZE // 2
class ConvLSTMCell(nn.Module):
def __init__(self, args, input_dim, hidden_dim, kernel_size, bias):
"""
Initialize ConvLSTM cell... | [
"murtazar@vt.edu"
] | murtazar@vt.edu |
d0aa37477e91bf5b5fec9e081d58348b9bf3ece3 | 307dcc7cfa93b584b95de0c69a600f07a1daefed | /backend/am_books_15599/urls.py | 115803a5380b59a5cc34b215c8af38b9d6594b78 | [] | no_license | crowdbotics-apps/am-books-15599 | 72708e097ab09b28dab7a07bc8bb4fc369b56a59 | 1fc34ba18781fd5234242d0eb6634040c7e3bda4 | refs/heads/master | 2023-02-04T12:25:01.589815 | 2020-04-08T15:29:52 | 2020-04-08T15:29:52 | 254,126,478 | 0 | 0 | null | 2023-01-24T01:59:07 | 2020-04-08T15:26:56 | JavaScript | UTF-8 | Python | false | false | 1,914 | py | """am_books_15599 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fceac6484c02034b637e4d82418f5fc378c81962 | 1a0b00a87533ea13e61562ce173f29a052cefeb7 | /app/risk/__init__.py | 119e9639c6ec14160f85d2adbc68368626641643 | [] | no_license | panuta/risk_model | 1e8afc274a23c940c06c0c7253a4a3ef5772a011 | 408ed595b7dab5b24fcf4ab745ded2c87e762bb1 | refs/heads/master | 2021-05-03T17:50:30.746182 | 2018-02-12T17:14:40 | 2018-02-12T17:14:40 | 120,115,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | default_app_config = 'app.risk.apps.RiskConfig'
| [
"panuta@gmail.com"
] | panuta@gmail.com |
877d19c38b03eb7511405c4630340bce1febcc09 | b07cda4dac84e83130079c92cf5ecc5a2f8ff424 | /QQspider/QQspider/items.py | 63bedafc5d47143d803fc89faadc774d71e1ad40 | [] | no_license | likeketchup/scrapyframework | a004ee5ded09453c2b96811c2f3381167648a039 | de485972143623fa7360aaf9d7066a0f8e532739 | refs/heads/master | 2021-09-06T04:00:22.915974 | 2018-02-02T08:26:58 | 2018-02-02T08:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class QqspiderItem(scrapy.Item):
url = scrapy.Field()
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"noreply@github.com"
] | likeketchup.noreply@github.com |
fd2233a8d7ecca628b8cb515b0e01dfe5550abd5 | 00f65c34fbc19c6768999b43ca3b4f70e68b1490 | /connectn/tournament.py | a9b7ff445bd3b9557f29353809d617d61daacbcd | [] | no_license | owenmackwood/connn | 0527805e9a1a4fb0b42a678bcf13d6c6a0e7a856 | 728d0d701341f520a6d964c56bd781f9dc6b311a | refs/heads/master | 2023-01-29T03:53:07.822185 | 2020-12-04T19:49:45 | 2020-12-04T19:49:45 | 318,532,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,870 | py | import traceback
import logging
import time
import numpy as np
import multiprocessing as mp
from typing import List, Union, Optional
import connectn.utils as cu
from connectn.users import import_agents, agents
from connectn.game import PlayerAction, BoardPiece, AgentFailed
from connectn.game import NO_PLAYER
class Ag... | [
"owen.mackwood@tu-berlin.de"
] | owen.mackwood@tu-berlin.de |
e522cc2b29a6998ae1f628ab1d26796a56f114c3 | 0b53f5a217177aadd822e0e8114688248321b943 | /tg_bot/modules/warns.py | 36c5cac35d4ea2343c6ddac87118c3f5586747a5 | [] | no_license | tahirdeger/hayriBot | 75b7cb4fab184fcfba2176697ae5b8416c7149af | 7aa7b6cb002c77bc45faa763670f95258dd31e16 | refs/heads/master | 2023-06-01T10:24:51.469034 | 2021-06-29T23:22:35 | 2021-06-29T23:22:35 | 337,869,402 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,417 | py | import html
import re
from typing import Optional, List
import telegram
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ParseMode, User, CallbackQuery
from telegram import Message, Chat, Update, Bot
from telegram.error import BadRequest
from telegram.ext import CommandHandler, run_async, DispatcherHan... | [
"tahir_deger@hotmail.com"
] | tahir_deger@hotmail.com |
4fcab845eba598866c444ff04ab34b5169844a2b | a65323eaf1edc748485d71fc59998866da82acb5 | /twitterclone/settings.py | 882dc9a90e7ae1982edde2ba5bb42fb3a57d40f0 | [] | no_license | zanvoy/twitterclone | 50f76928ba5a0724773a0b9feff9b8e0eef19460 | c02d4b1fdad0e3b8eef847a80fb50b7b3bbce779 | refs/heads/master | 2022-11-15T01:26:27.901158 | 2020-07-02T14:27:45 | 2020-07-02T14:27:45 | 268,690,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | """
Django settings for twitterclone project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"zanvoysan@gmail.com"
] | zanvoysan@gmail.com |
53b6bca242148c7828532cd22c0aa8ddbe3d4188 | 749b196ba38fc54899c51947a778229faa16db99 | /model/attentionlayer.py | 620a1c94c2cb7c0005659d5f74e785d7bf15f8f1 | [
"Apache-2.0"
] | permissive | binzzheng/RFDA-PyTorch | 6e6cee7a9def04e43c0a094de320d0f431fc7e64 | c50706d31dec25e9bd1699448c52452016a0d08b | refs/heads/main | 2023-07-19T06:46:23.987838 | 2021-09-14T04:57:28 | 2021-09-14T04:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | import math
import torch
import torch.nn as nn
import os
import torchvision.transforms as transforms
from torch.nn import functional as F
from math import floor, ceil
from ops.dcn.deform_conv import ModulatedDeformConv
class DSTA(nn.Module):
def __init__(self, n_feats, conv=default_conv):
super(DSTA, sel... | [
"noreply@github.com"
] | binzzheng.noreply@github.com |
3e38b731fa9cf3386690394b6eec2cfede7ef69e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/1246.py | 467cde26036ec3b0eda727f56e9bc73feb98a2c8 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 121 | py | ii = [('WadeJEB.py', 1), ('SoutRD2.py', 1), ('WheeJPT.py', 1), ('MereHHB3.py', 3), ('StorJCC.py', 1), ('MereHHB2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
5568ed398962bc337e8b618aefeb691942452d8e | 7620893c7d253a4d8c6f5aef2cfda6c72b777d49 | /src/Camera/ShowPicture.py | edf8d5620eb77c25c350ef4020f451c9c7ee1829 | [] | no_license | garridoH/cameraGUI | cacc549a9da0bcb6c3b9be04ef9783c653300118 | cb6ac1d54dd8651da974ed058990c8212d145415 | refs/heads/master | 2021-01-17T22:38:53.398306 | 2012-06-12T20:41:44 | 2012-06-12T20:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | '''
Created on Jun 3, 2012
@author: redwards
'''
import Image
def show():
fileName = raw_input("What is the name of the image file? ")
showImage(fileName)
def showImage(fn):
picture = Image.open(fn)
picture.show();
# width, height = picture.size()
#pix = picture.getPixels()
show() | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
5389d5091e5331db72ab4abf9e86919aff376da4 | ecdf5493acc0c7ca67988657d36c256d565d73be | /01_PythonBasics/02_Strings.py | ac4dccff9a07d082b4cfede964acc2dca06859ea | [] | no_license | baubyte/pythonPractice | 731795f58a6cdcdd0fa459d2d2a3063e921578d7 | e5fa2e9b58b434bb46077245d6c89907bcfeb686 | refs/heads/main | 2023-05-07T01:08:35.518041 | 2021-05-14T15:57:11 | 2021-05-14T15:57:11 | 362,898,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | print(" /|")
print(" / |")
print(" / |")
print("/___|")
phrase = "Giraffe Academy"
print(phrase.upper())
print(phrase.upper().isupper())
print(len(phrase))
print(phrase[0])
print(phrase[3])
print(phrase.index("a"))
print(phrase.replace("Giraffe", "Elephant")) | [
"paredbaez.martin@gmail.com"
] | paredbaez.martin@gmail.com |
d14a5c62a35ff32c8988af4603655a76fe3bca8b | 80a4ed1cee1cf971a830cd54f8de2433bc0bd9d4 | /menog-rtt-cdn-measure/retryFailedMeasurements.py | e61f339e150c97ecd7c09def76ecdad21aaf352a | [] | no_license | miriamturk/CDNs-Performance-in-MENOG-Region- | 818cc483d81e273479651ee7bb02141d43536153 | a6377da5ac748c551236ef45b8e0b6b5874e86f7 | refs/heads/master | 2021-07-14T01:04:37.839356 | 2021-03-14T13:33:49 | 2021-03-14T13:33:49 | 241,588,149 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | import glob
import os
import ntpath
import json
from datetime import datetime
from ripe.atlas.cousteau import (
Ping,
Traceroute,
AtlasSource,
AtlasCreateRequest
)
# pour mesurements 1
ATLAS_API_KEY = ""
for filepath in glob.iglob('measurements/*.json'):
source_country_code = os.path.splitext(ntpa... | [
"Khalafmichel98@gmail.com"
] | Khalafmichel98@gmail.com |
65e46dc505f7f63a30b130e9e03f7126129f8877 | 4079ddfe62e1df9cd57a067b9a9eaf79d6974c01 | /.c9/metadata/environment/home/tests.py | 91b2069cc617e1bd8666045d959e2508cc654237 | [] | no_license | Code-Institute-Submissions/Clare-Supporters-Club | e4f741bff1f4c082a06518befadbbfa1b77e7b6f | f36c8ee722531571c57b269126ca3a48360582e9 | refs/heads/master | 2021-03-19T23:53:29.479231 | 2020-03-13T20:06:22 | 2020-03-13T20:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | {"filter":false,"title":"tests.py","tooltip":"/home/tests.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},... | [
"ubuntu@ip-172-31-80-226.ec2.internal"
] | ubuntu@ip-172-31-80-226.ec2.internal |
d3f82b062abac9c3587d7ebf6cc1dec7e0901f59 | 45c3017f11930d2ab94e1010ae55f4a7c4993fe7 | /checkers/CheckersGame.py | 0131484717a4dead33046b822888a3105c70bf26 | [
"MIT"
] | permissive | DomFC/alpha-zero-general | dd0fc41e35ad92c73f311a252bfbd21886009e37 | 865a09b397a7776d2b0e07022bc840c293843f22 | refs/heads/master | 2020-05-16T07:37:37.115512 | 2019-04-23T16:54:43 | 2019-04-23T16:54:43 | 182,882,814 | 0 | 0 | MIT | 2019-04-22T23:23:43 | 2019-04-22T23:23:43 | null | UTF-8 | Python | false | false | 1,417 | py | import sys
from .Piece import Piece
from .Board import Board, _mirror_action
#sys.path.append('..')
from Game import Game
import numpy as np
import copy
W = 4
H = 8
class CheckersGame(Game):
def __init__(self):
pass
def getInitBoard(self):
return Board()
def getBoardSize(self):
r... | [
"dominiquefauteuxchapleau@gmail.com"
] | dominiquefauteuxchapleau@gmail.com |
a751f10831f3bc96a6f7962f64f981bca129e116 | c7328c278da9615794fd3faa9a57214c6e86ecfd | /tornadows/soap.py | be9f289303c26d93f64daf9bd31f5d09c495a740 | [
"Apache-2.0"
] | permissive | jiaxiaolei/tornado-webservices | a94c17cc6f3add419016478e72b42ef4454b414c | 49728fd1e35ff24b1b814bacf76ad6736eb6bffd | refs/heads/master | 2021-01-18T10:27:41.546325 | 2011-08-13T05:52:27 | 2011-08-13T05:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | #!/usr/bin/env python
#
# Copyright 2011 Rodrigo Ancavil del Pino
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"rancavil@innovaser.cl"
] | rancavil@innovaser.cl |
ac0ef3c3bac0577f9a02c066de46ace3b1ffb697 | 6a5ac2d0ed34d2fa453b80b26781b40471de28e0 | /tests/routes.py | 8c763f07d057c94d8985097750aeb5736019fd88 | [
"BSD-3-Clause"
] | permissive | Tijani-Dia/yrouter-websockets | 7e07da5758fff50b320bf71e5ef08a6dc6279887 | ea5ef8ed6a2143945c8f0736313197dbd6c77896 | refs/heads/main | 2023-09-06T06:43:43.327832 | 2021-11-22T18:32:01 | 2021-11-22T21:05:43 | 427,655,524 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from yrouter import route
from .handlers import hello_user, home
routes = (
route("/", home),
route("hello/<str:username>/", hello_user),
)
| [
"atdia97@gmail.com"
] | atdia97@gmail.com |
6f52bf730155985a3ce1c5c0fc620626491dd40d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02860/s909177636.py | f053600ab017ccfb578e04bbb70efdaa080e8bca | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | n = int(input())//2
s = input()
if s[:n] == s[n:]:
print("Yes")
else:
print("No")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
25293dbee788f6de6f10ab787800e61a54d9d26c | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /redshift_write_f/cluster-snapshot-schedule_modify.py | 0de0745d12e875d130eed74239233eb4ef382995 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
bef0c5697c0bc5aa9de09eccc6ad29a5496a6520 | 0000ae449d18f995596b1a0b1f1ade25db64efde | /board.py | 9690e17862ca7cbe82dc4679557932906f397618 | [] | no_license | MahmoodRasooli/MineWseeper | 22d2a4f9b51155295d9f7f95978ca3acf44674e8 | 44e6cfa3d42b44debf77cffaabb3c7a354d315f7 | refs/heads/main | 2023-01-23T16:15:47.358902 | 2020-12-05T10:56:54 | 2020-12-05T10:56:54 | 318,192,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | from piece import piece
from math import ceil
from random import randint
### Represents a board which contains the placeholders
class board:
def __init__(self, size: int, pieces: list = None) -> None:
super().__init__()
if size <= 2:
raise Exception("size in not valid")
self.... | [
"rasuli.ut@gmail.com"
] | rasuli.ut@gmail.com |
a3241fdc902e1082dbe26d60d653dcf4b84dd8ba | 6964b2fee83b5efc07682933b75c5ef27b459d5b | /plotting_python/ohm_ds-ycut.py | 11357b8e1abe9fd568f161c40cf4751b49080eef | [] | no_license | dcfy/dusty-plasma | bb1a565f20492cd313d5c95c87a386dbfb14839b | 678e08f20128d7a80cf1cd83fdab1f77a1dc0b0c | refs/heads/master | 2022-03-07T20:03:40.274231 | 2022-02-22T19:00:13 | 2022-02-22T19:00:13 | 56,763,656 | 0 | 1 | null | 2016-07-08T03:14:35 | 2016-04-21T10:09:26 | Lua | UTF-8 | Python | false | false | 2,487 | py | import matplotlib as mpl
mpl.use('agg')
import matplotlib.pyplot as plt
import numpy as np
import gk1
lightSpeed = 1.
mu0 = 1.
n0 = 1.
mi = 1.
qi=1.
me = 1/25.
qe=-1.
wpe0_wce0 = 3.
epsilon0 = 1/lightSpeed*lightSpeed/mu0
B0 = lightSpeed * np.sqrt(mu0 * n0 * me) / wpe0_wce0
v_A = B0/np.sqrt(mu0*n0*mi)
wci0=qi*B0/mi
wpi... | [
"dcf.ustc@gmail.com"
] | dcf.ustc@gmail.com |
0a69960936289dc206506de496375c721ea80577 | 0246b885a34ad294646589c0b011323b443990f5 | /Condition/Condition.py | 716db9efb39b615206f96069837992bdedf8a1e7 | [] | no_license | kaczmarekkacper/CN2 | 25b8271bb48d77675415fca7945d2d800b6196ee | fd65b73d355b9ef09446654796c841e4f34e1c97 | refs/heads/master | 2023-01-29T00:47:25.665790 | 2020-12-15T22:04:37 | 2020-12-15T22:04:37 | 321,799,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | class Condition:
def __init__(self):
self.attribute_number = None
self.attribute_value = None
def is_true(self, example):
return example.attributes[self.attribute_number] == self.attribute_value
| [
"kazzper791@gmail.com"
] | kazzper791@gmail.com |
7a53c9a7ba84f35b98c74d5cb5f1c27c12bac341 | 8b3cdddedf4d5ba6f2218f0f61ff7dd2a85f9d5a | /model.py | 4a69246f0e8db6cb680101232c58f50cd3e4bb54 | [
"MIT"
] | permissive | yingrui-yang/JPQ | 986cee6f8fc68afc73aa056d48273db9540668ae | c375b980052c22f3cf59a7d5599ef62e40cc5ad4 | refs/heads/main | 2023-09-03T23:53:51.501897 | 2021-10-13T04:50:07 | 2021-10-13T04:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | import torch
from torch import nn
import transformers
from transformers.models.roberta.modeling_roberta import RobertaPreTrainedModel
from transformers import RobertaModel
class EmbeddingMixin:
"""
Mixin for common functions in most embedding models. Each model should define its own bert-like backbone and forw... | [
"jingtaozhan@qq.com"
] | jingtaozhan@qq.com |
b94fa2caa15e19bd78666af1370320d7843a9ca5 | 104c2dd588e6de0e8cce58eb2eb96c6c0f55ff47 | /testApp01/testSet/common/DRIVER.py | b36e9c8ab9ebc665149bf343f8d57e314b613f91 | [] | no_license | AceCcream/appium_python | aef56e97c8bc4402f65bcc3e4012d31d7aab0514 | 17b26fc393fddfc9ace33918b9f4219e303779d5 | refs/heads/master | 2021-01-21T09:34:11.716269 | 2015-11-17T08:49:23 | 2015-11-17T08:49:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py |
from selenium.common.exceptions import WebDriverException
import testApp01.readConfig as readConfig
from testApp01.testSet.common import init
import threading
from appium import webdriver
from urllib.error import URLError
readConfigLocal = readConfig.ReadConfig()
class MyDriver:
driver = None
mutex = thread... | [
"1904736199@qq.com"
] | 1904736199@qq.com |
00e541cbdd775beff44f6df9b32c6f4f501713b2 | 3f79aea0b62379f9c2d5406b0f6080407c43ff76 | /bleurt/score_files.py | 12bab6bb06d534d457022821f2511c17da1b9d72 | [
"Apache-2.0"
] | permissive | techthiyanes/bleurt | 25811163ecb71ca6b691c73ae8b512496d4a5751 | c6f2375c7c178e1480840cf27cb9e2af851394f9 | refs/heads/master | 2023-08-21T14:38:20.368598 | 2021-10-14T21:12:50 | 2021-10-14T21:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"tsellam@google.com"
] | tsellam@google.com |
b162f3d51f74445dbc282e6de7399918bd461f28 | 758a00b30b54782d04421580b0ea8c103fca95ff | /scrabble/old/config_scrabble.py | 6d6ff1ca30c8cbc2674404a07e36ee81d1ee5946 | [] | no_license | LukasForst/RPH | 45409b854edc654587c18d48b6613e9e3e32bbab | aeee4ad2de973400c86050c27bf3273c27c91aee | refs/heads/master | 2021-01-18T17:27:58.218064 | 2017-04-05T19:53:37 | 2017-04-05T19:53:37 | 86,804,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | desk_value = [ # zaporna cisla odpovidaji nasobeni hodnoty celeho slova, kladna cisla odpovidaji nasobeni hodnoty pismen
[-3, +1, +1, +2, +1, +1, +1, -3, +1, +1, +1, +2, +1, +1, -3],
[+1, -2, +1, +1, +1, +3, +1, +1, +1, +3, +1, +1, +1, -2, +1],
[+1, +1, -2, +1, +1, +1, +2, +1, +2, +1, +1, +1, -2, +1, +1],
... | [
"forstluk@fel.cvut.cz"
] | forstluk@fel.cvut.cz |
c1e73a6d40bddcf713520ac9b365fad4c1122a6f | e17654a99467643e2fd9acb47c9d8f23f11dadfe | /sample_buggy_scripts/GitHub Samples/8.py | 09ceb906230a075adcfbb6b964f6feefde8b25cd | [] | no_license | evelynmitchell/neuralint | d8c09e1beafafde66331699f4561fa4e67603c6e | 034267846ae8a68d63cce0f87645da71dd8324f0 | refs/heads/master | 2023-08-27T19:33:16.322891 | 2021-11-05T15:39:18 | 2021-11-05T15:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | from keras.layers import Dropout
from keras.models import Sequential
from keras.layers import Dense, Flatten, GaussianNoise, Convolution2D
from tensorflow.keras import regularizers
from keras.optimizers import SGD
from keras.constraints import maxnorm
import neuraLint
model = Sequential()
# model.add(Gaussian... | [
"noreply@github.com"
] | evelynmitchell.noreply@github.com |
76c90fd0618675a715f426c7c24027b929f70326 | 98daf5f732e937da16552e5230967cb0500e2203 | /migrations/versions/f2205abe233b_deleting_surname.py | db817d43ea0fa9bcbad60779a3c7749cd739b34c | [] | no_license | xKatinJn/MovieTone | cb62273cce0888dd9bc2c174735f182a363b4663 | 66da3f366349100af4a7e53e9fbdb86af02874d1 | refs/heads/master | 2022-11-10T06:31:28.465397 | 2020-06-13T10:33:07 | 2020-06-13T10:33:07 | 269,948,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | """deleting surname
Revision ID: f2205abe233b
Revises: fd9bdfb375a5
Create Date: 2020-06-08 16:43:34.994122
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'f2205abe233b'
down_revision = 'fd9bdfb375a5'
branch_labels = None
d... | [
"antosha.katin@yandex.ru"
] | antosha.katin@yandex.ru |
b86a7385243568238e940a7668a58885c8e8645e | 77c63dff1de66d10ea031a78d79abf2a157a7ba3 | /sql.py | 10e75591e335069b9665a4e79590c38fa86cf724 | [] | no_license | hoangduy121297/PythonSocketDemo | e512f6e0d242c41f6466fbe294ecd41b06b921ef | db63db671f8d54c655037efce81be4419ddb8028 | refs/heads/master | 2020-03-26T16:11:27.291046 | 2018-08-17T10:37:24 | 2018-08-17T10:37:24 | 145,087,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import sqlite3 as lite
import sys
import os
conn= None
try:
conn = lite.connect("MyDb.db") #biến conn để connect
with conn:
cur= conn.cursor() #biến cur để duyệt qua các bản ghi thông qua hàm cursor()
cur.execute("SELECT SQLITE_VERSION()") #execute để thực hiện câu truy vâ... | [
"noreply@github.com"
] | hoangduy121297.noreply@github.com |
443231adb8f6dd9df9b31f88e143b256e67063d6 | b866c924c5c155a2bf264131151d18646159bf35 | /Django/PythonWebsiteDevelopmentCourse/firstdjango/firstdjangoapp/views.py | d0765a04899867d3f3726ee8f92f7f46698a4abe | [] | no_license | TylerPanda/Python | 4ceb5420dbca2da09e6a210d3b4ff305b6491e60 | f5e41834470262b2446395a46a1ff8f97c5b3bac | refs/heads/master | 2021-01-01T20:08:05.336441 | 2018-03-31T01:20:51 | 2018-03-31T01:20:51 | 98,771,231 | 0 | 0 | null | 2018-04-05T01:41:58 | 2017-07-30T02:54:26 | Python | UTF-8 | Python | false | false | 4,790 | py | from django.shortcuts import render
from datetime import datetime
from django.http import HttpResponse
import random
from firstdjangoapp.models import student
from firstdjangoapp.form import PostForm
# Create your views here.
times = 0
def sayhello(request):
return HttpResponse("Hello Django!")
def hello2(reques... | [
"mingkaipanda@gmail.com"
] | mingkaipanda@gmail.com |
800794eafef17314dd186a36b34ecaaec25476b7 | 20e787a427d5777a942fc86e6e445401c09e3f4e | /LeetCode/18SurroundedRegions.py | ce9a17d15eac8639707a263bd3001665a650f7d9 | [] | no_license | blldd/CodeExercise | 262760cebded080b71e40973c210386b1cbd6eac | b5b4851ba348c7fbcaa0480a36a8c689e8f8751c | refs/heads/master | 2023-04-01T15:29:37.505616 | 2023-03-24T12:53:44 | 2023-03-24T12:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | # -*- coding:UTF-8 -*-
'''
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's in that surrounded region.
For example,
X X X X
X O O X
X X O X
X O X X
After running your function, the board should be:
X X X X
X X X X
X X... | [
"18201788952@163.com"
] | 18201788952@163.com |
bfab979ab11b9ac0e7a440320a5e7c1336eb8a08 | 85008646c695b4f31202bbc5b53f4c54c395ccf6 | /setup.py | e70f9077339d1a92f3b1a58ca78873e3ddb79633 | [
"MIT"
] | permissive | praekeltfoundation/xenzen | 8068300c5552d4fd3d76522e8788e788da88bc2c | 5dc670302052bb4cd9a89351bda613cc436573a0 | refs/heads/develop | 2020-12-24T12:20:51.947990 | 2017-05-12T09:14:02 | 2017-05-12T09:14:02 | 13,208,753 | 3 | 5 | null | 2017-05-12T09:14:03 | 2013-09-30T07:26:56 | JavaScript | UTF-8 | Python | false | false | 1,312 | py | import codecs
import os
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
# Stolen from txacme
def read(*parts):
with codecs.open(os.path.join(HERE, *parts), 'rb', 'utf-8') as f:
return f.read()
setup(
name='xenzen',
version='1.0.3.dev0',
license... | [
"jhewland@gmail.com"
] | jhewland@gmail.com |
4f742c00374f3e30bf1f1db2eb209e3ddf51c833 | ba7eed4d2f31794540808db9d275ccb06006062e | /priority.py | fda3b1f633e3fcb692e47a5ff8104b13a8854e58 | [] | no_license | wswartworth/gomoku_AI | 027f2aece90104285ed08741d7f008af59fda30a | 962904edaab462d13195b4c3a4330e68f69dd266 | refs/heads/master | 2020-04-13T22:31:17.765017 | 2018-12-29T05:58:17 | 2018-12-29T05:58:17 | 163,481,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | import heapq
import itertools
'''
borrowed from Python documentation of heapq
'''
#max heap
class myPriorityQueue:
pq = [] # list of entries arranged in a heap
entry_finder = {} # mapping of tasks to entries
REMOVED = '<removed-task>' # placeholder for a removed... | [
"WilliamSwartworth@Williams-MacBook-Pro.local"
] | WilliamSwartworth@Williams-MacBook-Pro.local |
f7325f730ac67ca71365865271c2961120433fc1 | 4da9d8c41969e7e3590472ab760d1f1fe552b8af | /sorting/selection-sort.py | 055ae805b49eb96e51f2f110b5a7ce3542ae531d | [] | no_license | noa-barsky/interview-prep | 4c7cee3004d914822fe1b46387f6fdf5ef38f479 | 660df4f7f915506172e3bf71edb9972a9ed05bf5 | refs/heads/master | 2020-04-20T13:22:56.801526 | 2019-02-12T20:18:36 | 2019-02-12T20:18:36 | 168,867,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def selection_sort(arr):
for i in range(len(arr)):
min_idx = i
for j in range(i+1, len(arr)):
if arr[min_idx] > arr[j]:
min_idx = j
arr[i], arr[min_idx] = arr[min_idx], arr[i]
return arr
print(selection_sort([14,46,43,27,57,41,45,21,70])) | [
"barskyn@mcmaster.ca"
] | barskyn@mcmaster.ca |
ee2a711d4d888ce3d65e5ac85cf516bbb3973dfb | b6bda0a1fcf88ca9a83336a17c33b8051fc1201c | /GWC 2017/shapes.py | 0ad199974b9b757f0591a23d2c165889c0235146 | [] | no_license | roseORG/GirlsWhoCode2017 | edf50d5ac9cb5a057a559252450ac34ca7b46f5f | a76dbeaf2aebc5242f812a9db2bac8c8eb213993 | refs/heads/master | 2021-01-01T16:59:08.824332 | 2017-07-21T17:11:55 | 2017-07-21T17:11:55 | 97,970,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from turtle import *
import math
Turtle
t = Turtle()
# Set Up your screen and starting position.p
t.penup()
setup(500,300)
x_pos = 0
y_pos = 0
t.setposition(x_pos, y_pos)
t.pendown()
for counter in range(4):
t.forward(25)
t.right(90)
t.penup()
### Write your code below:
exitonclick()
| [
"noreply@github.com"
] | roseORG.noreply@github.com |
ff2527d8c68ec597fc7a2caa438baa0381949798 | 3d1667e87a3ab0f880a13dcb17ef9e17f6e1431d | /minimal/business/models.py | 7b7b49fd2692377b672d337f1466b7a2811a6224 | [] | no_license | TonyEight/minimal | d57d696e87c65037a644116179b4a07e8317bc7c | 521ce501c709277bf93e9622c6510853d226179b | refs/heads/master | 2016-08-03T09:50:58.858896 | 2014-04-22T16:23:20 | 2014-04-22T16:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | # Create yngo modules
from django.db import models
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
class Company(models.Model):
name = models.CharField(_(u'name'), max_length='255', unique=True)
class Meta:
ve... | [
"ludovic.legendart@green-conseil.com"
] | ludovic.legendart@green-conseil.com |
e23ae575e3a72bad6f5988347b97daa7bc4b4ccf | 00c980a260abdb15fd8e048c956b4757af872271 | /orders/urls.py | 10ae414be6df60fc9d1c5a01080106d2ced39b33 | [] | no_license | PaolaMartinez/Project3 | a0eebce3c06b23fd8f69b8d893da7485f0dd0740 | d187e4e47d389c16559a6f2e3bcbdce91eceb73f | refs/heads/master | 2021-06-24T09:51:15.854986 | 2019-12-11T22:35:10 | 2019-12-11T22:35:10 | 227,472,497 | 0 | 0 | null | 2021-06-10T22:23:21 | 2019-12-11T22:29:40 | Python | UTF-8 | Python | false | false | 763 | py | from django.urls import path
from django.contrib import admin
from . import views
urlpatterns = [
path("", views.index,name = "index"),
path("menu/", views.menu, name="menu"),
path("registration/", views.registration, name="registration"),
path("login/", views.login_view, name="login"),
path("logou... | [
"noreply@github.com"
] | PaolaMartinez.noreply@github.com |
cae2958d1b8ef88bbd6226d494cebe9b1718637b | 1f56a7dd7c4fc27924b06c0dd5669743c112b6f4 | /Inceptionists/Main/migrations/0001_initial.py | e2aeab09f5468d9ddba4513dae63ea4245ef27c9 | [] | no_license | sammittal0015/cmpsc431w-group-work | 118a82d61748b5ec842282265b8a6d74af6a8077 | 6e42f705cc3a7b5f66a69544f265952397096ab5 | refs/heads/master | 2021-05-29T06:37:46.124175 | 2015-12-11T12:43:15 | 2015-12-11T12:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(ver... | [
"fliu004@gmail.com"
] | fliu004@gmail.com |
00bd73838e45df36e1cc6bdc69a63324ed01ff3b | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /WebKit/Source/ThirdParty/ANGLE/scripts/process_angle_perf_results.py | 23210d488dc23a1994eb55a7a9ce124b8d28163a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 31,029 | py | #!/usr/bin/env vpython
#
# Copyright 2021 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# process_angle_perf_results.py:
# Perf result merging and upload. Adapted from the Chromium script:
# https://chromium.go... | [
"opensource@apple.com"
] | opensource@apple.com |
694882d9800bdd93c4505badef7a0e1e91e9f0b3 | 309d109d3ad59590771de3458e51ce1e7fcede3b | /data_processor/imports.py | 0c7b41f1ba5c8acae5a3f3edcb8fe50f54ffacac | [] | no_license | malingreats/scoringApp | 9e35a5e4cd63e0d9181873e7f2809b8548f1a921 | 8c588c1f82ff0b55fd86c1e621840f8a8f3c8625 | refs/heads/main | 2023-03-08T22:47:29.587511 | 2021-03-03T08:38:28 | 2021-03-03T08:38:28 | 340,773,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,223 | py | import csv
from companies import models
# opfile = '/home/greats/Documents/projects/dreatol/webapp/fintechapp/clean_applications.csv'
def get_data(csv_file):
opfile = csv_file
header = []
lbfile = open(opfile, "rt")
reader = csv.reader(lbfile)
rownum = 0
for row in reader:... | [
"mpasiinnocent@gmail.com"
] | mpasiinnocent@gmail.com |
90d6497b64dd88ae9f83c2201df72852965e2b22 | 5133105fa925c877aad73e04eb47b1ca3581cd9b | /bot/booking/__init__.py | 6900033148ff91c340c88478ba7b108027d65eb1 | [] | no_license | IdenTiclla/selenium-course-freecodecamp | c1d6bcb32ab460b8f5c3da7639fcbdbf09fba63e | d7e1a5809d10f18a72117c99bc4376d9847f09e4 | refs/heads/master | 2023-08-03T07:15:58.270262 | 2021-09-23T12:32:03 | 2021-09-23T12:32:03 | 406,105,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | print("i will print first") | [
"iden.ticlla@gmail.com"
] | iden.ticlla@gmail.com |
bc6bd20f56502c3ec96615ac26ba0c0b8f0e1e16 | 3f7f9d8c7dba3072903b39827655946106fd2a8c | /xml_2_csv.py | 7c5e1621af64a8d9dcc0cb35a67bea16b12542c7 | [] | no_license | Zhangchi95/Facial_expression_detector_SSD | 696751cb9eb6b12f32d3489e00f5bf986609d9c4 | eca759ba073f74e67d91babdfd26076c177323cc | refs/heads/master | 2020-03-12T12:00:10.018935 | 2018-04-22T23:46:28 | 2018-04-22T23:46:28 | 130,608,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import os
import glob
import pandas as pd
import xml.etree.ElementTree as ET
def xml_to_csv(path):
xml_list = []
for xml_file in glob.glob(path + '/*.xml'):
tree = ET.parse(xml_file)
root = tree.getroot()
for member in root.findall('object'):
value = (root.find('filename').... | [
"noreply@github.com"
] | Zhangchi95.noreply@github.com |
7dd3c6873b350bcef460037312ca95443b81312d | 22d1bf08cfdfd659cf230319379ee9f7ea17869d | /solutions/ALS.py | bd736f7092784af2c70b214e65fdadc2362085a9 | [] | no_license | vardhamanmodi/BigDataCourse | 17dc64eec061ee00f99e23b372af6bc1af2f2aa9 | fe318222c80d40b728f010025e5a1bb9fc212990 | refs/heads/master | 2021-01-19T18:51:38.150691 | 2015-07-06T05:00:53 | 2015-07-06T05:00:53 | 35,421,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from pyspark import SparkContext
from pyspark.mllib.recommendation import ALS, MatrixFactorizationModel, Rating
# Load and parse the data
sc = SparkContext()
data = sc.textFile("/Data/ALS/*")
ratings = data.map(lambda l: l.split(',')).map(lambda l: Rating(int(l[0]), int(l[1]), float(l[2])))
# Build the recommendation... | [
"vardhaman_modi@persistent.co.in"
] | vardhaman_modi@persistent.co.in |
32a7dfbe8bd6975110861b5b6acb9bd993cc4137 | 0a31f44af75339326f793fe9cc8f2ae367ca5df5 | /application/migrations/0001_initial.py | fbde9223d3f78ff6dbfa7899dc142a5d194fe76f | [] | no_license | huhaiqng/weibbix | 5c967e5159e95aa6481a3c275653ed0f94e843dd | 8af9d1d778bdf0c984e566bdb3fa44b2c0db7db1 | refs/heads/master | 2021-08-31T04:03:50.782996 | 2017-12-20T09:15:29 | 2017-12-20T09:15:29 | 108,378,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,782 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
import django.core.validators
import django.contrib.auth.models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
]
... | [
"1321385590@qq.com"
] | 1321385590@qq.com |
11548a9c980a942e940ee440e417c3715ce01577 | a51288cd62f7a013a1fc842c0f8da8766bfc3161 | /collab_compet/model.py | 4df9b8cee17a9aa1b12dee8f9f54f58428012451 | [] | no_license | aime20ic/collab_compet | f1eba4fedff5f8419c440085ef90e88df652fd5e | 3ab690f5777455905f30eb5bb4fd0f03c68fea9c | refs/heads/master | 2023-05-15T04:29:41.269921 | 2021-06-10T11:15:48 | 2021-06-10T11:15:48 | 375,448,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class Actor(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, f... | [
"aime20ic@gmail.com"
] | aime20ic@gmail.com |
eda3fc9ef7cef88c167c3ec7ebf2da44e242f68b | b42f5e41fd92f0507192662fd265072069495869 | /Classes/classApp/models.py | 55514d52d247d6df36af3599d9a29ba4d9cdc13b | [] | no_license | levit123/Django-Class-App | 1881bf3ef1d4cb96d59f73f7f9e5ceead7f961d9 | 000c6c0143a062821c17c7433288eafbb4757807 | refs/heads/master | 2023-01-03T15:39:20.557393 | 2020-10-24T20:34:17 | 2020-10-24T20:34:17 | 306,951,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.db import models
# Create your models here.
class djangoClass(models.Model):
Title = models.CharField(max_length=100)
CourseNumber = models.IntegerField(max_length=5)
InstructorName = models.CharField(max_length=50)
Duration = models.FloatField(max_length=5)
djangoClasses = models.Man... | [
"levicaseblodgett@gmail.com"
] | levicaseblodgett@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.