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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3960fbac34d0ef3d8fa9bce7b4dbdacb6e98791 | 1b68ecd64590474d212547bf4356544ae1f183c9 | /logic_from_site.py | f1c1a5784830e4603f8b535aa654224bf268066d | [] | no_license | wnd2da/rss2 | 833f7b08c5bdb7a8378d655367ca51d4d6c06cf0 | 2bf4f579e5c53eb200c0eeab886376b772587668 | refs/heads/master | 2022-11-16T03:12:24.609871 | 2020-07-15T08:33:16 | 2020-07-15T08:33:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,376 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import traceback
import re
import logging
from time import sleep
import urllib
import urllib2
import os
# third-party
import requests
from lxml import html
from xml.sax.saxutils import escape, unescape
# sjva 공용... | [
"cybersol@naver.com"
] | cybersol@naver.com |
6eee8b076fdd5377e0b69352af2fa351ec2695b0 | 50692a73c01e92b18b01d2c9081b7a369d51f7fc | /dmdbBaseManagement/apps.py | 7f315184ec696fba699958c00242e49785df8e22 | [] | no_license | Bamba4/backend_dmdb | 80a928624b27e93dc1d7c0ea7ed122d4e4c21a08 | 90434c69152ab196bfe752e37060a2e812f64045 | refs/heads/main | 2023-04-15T05:37:31.015501 | 2021-04-26T15:32:29 | 2021-04-26T15:32:29 | 335,921,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.apps import AppConfig
class DmdbbasemanagementConfig(AppConfig):
name = 'dmdbBaseManagement'
| [
"bamba4"
] | bamba4 |
173b8dda7148a745da090582d6f19efa0b79aded | ed36b9343f05dfec5878143bf10228c33601e3f9 | /transformers/examples/token-classification/run_ner.py | bdfa3710b35efb588dfa3039b47f063ab9b2352f | [
"MIT",
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pruksmhc/yanmtt | 8ef54f36bb21fbd528c9e79ed14a26e7a1776e82 | c1a263ab67ea71de7c25ac4f01c0aa66cb2be64d | refs/heads/main | 2023-07-15T15:59:53.275750 | 2021-08-23T22:40:32 | 2021-08-23T22:40:32 | 398,658,878 | 0 | 0 | MIT | 2021-08-21T21:24:03 | 2021-08-21T21:24:02 | null | UTF-8 | Python | false | false | 19,166 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Team 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 require... | [
"raj.dabre@nict.go.jp"
] | raj.dabre@nict.go.jp |
de978000647cd0211fbcf76830534f5fe8350ff2 | 00f40674291bd63e2d96395a4c530a21a33f74ce | /app.py | 5e50b67a034edace00c6c1cd31af77564f6fb53b | [] | no_license | Cruisoring/flask_rest | 0bb6bee4ef0114180c274d9fce8b71254025a48e | 50fd53ae443302633dc3c2653ac8be37fcf9f716 | refs/heads/main | 2023-08-11T16:47:12.931346 | 2021-09-07T02:38:29 | 2021-09-07T02:38:29 | 403,816,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,891 | py | from flask import Flask, json, render_template, abort, request, flash, url_for, redirect
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, FileField, SubmitField, validators
from wtforms.validators import DataRequired, Regexp
import markdown.extensions.fenced_code
from data_helper import l... | [
"William.Jiang@psba.qld.gov.au"
] | William.Jiang@psba.qld.gov.au |
edcc63746e71ca4f277f371dacf3b89403bc4ebd | 3ee1bb0d0acfa5c412b37365a4564f0df1c093fb | /lotte/31_eff_cnn.py | 8635f32148d2aa946e79fef91e3e007516f0af09 | [] | no_license | moileehyeji/Study | 3a20bf0d74e1faec7a2a5981c1c7e7861c08c073 | 188843c6415a4c546fdf6648400d072359d1a22b | refs/heads/main | 2023-04-18T02:30:15.810749 | 2021-05-04T08:43:53 | 2021-05-04T08:43:53 | 324,901,835 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,598 | py | import numpy as np
import pandas as pd
import tensorflow as tf
from keras.preprocessing.image import ImageDataGenerator
from numpy import expand_dims
from keras import Sequential
from keras.callbacks import EarlyStopping, ModelCheckpoint, ReduceLROnPlateau
from keras.optimizers import Adam,SGD
from sklearn.mode... | [
"noreply@github.com"
] | noreply@github.com |
049337f69bbe3f98c2c950a14d43376403c76f48 | 89800dd556af8c1cf8fa9b6cd680fe7223f8b800 | /code/malware_family_classifier.py | 91a6e080a327640d61bcfcc62a0c93d5daa3e9e4 | [] | no_license | biagiom/ml-malware-analysis | b2cbeae8f599bd9d018319f99ea0d46bfb9f37b4 | 4812cd98324d2cd025a68b03bdc2f3be3e8e358d | refs/heads/master | 2020-04-17T08:15:11.639054 | 2019-09-09T13:35:39 | 2019-09-09T13:35:39 | 166,404,694 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | import naive_bayes_text as nb
from util import build_dataset
import matplotlib.pyplot as plt
from sklearn.metrics import classification_report
import seaborn as sns; sns.set()
dataset_path = "../drebin/feature_vectors/"
family_labels_path = "../drebin/sha256_family.csv"
feature_list = ['permission', 'call', 'api_call'... | [
"biagio.hkr@gmail.com"
] | biagio.hkr@gmail.com |
7a82021f17706d7ab7c022f25864fa96ce2ae88d | dc22aca670dfcbf9129c133e8dcfc07dc3b4f547 | /Vision.py | 902f6892a5a16dfae2f9be325512954c19651eeb | [] | no_license | jameslove987/Capstone | d51eba9156b32bcda208a08f36e157530823146a | 2ca27aff2fbbfbb3017870c57fb49cac2ceb8842 | refs/heads/main | 2023-04-11T14:45:44.439987 | 2021-04-22T02:21:20 | 2021-04-22T02:21:20 | 338,116,172 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Vision.py
#
# Copyright 2021 <pi@raspberrypi>
import cv2
import pupil_apriltags
#
#
def is_april(gray):
results = []
# execute the detector to find the tags (more options exist)
detector = pupil_apriltags.Detector(families="tag36h11")
results ... | [
"noreply@github.com"
] | noreply@github.com |
ec1eb6014062aa8660c67dac429f157bbb069505 | ee84a5639756f0254a8fa3dadc6573c6a060615a | /wards.py | 284cfb49bb2de2b77d04070be254d3a5ea34e064 | [] | no_license | Stubbs/SheffCCWorkForYou | 7f88c2333be3b334508e1f639ddf47a70ffbd7e7 | 2cfd3a6445504c7cbd470fe788a0a3d70809aaa6 | refs/heads/master | 2021-03-12T22:08:40.316403 | 2009-05-03T09:50:43 | 2009-05-03T09:50:43 | 190,768 | 1 | 1 | null | 2020-10-01T18:34:22 | 2009-05-02T09:44:08 | Python | UTF-8 | Python | false | false | 1,033 | py | #!/usr/bin/env python
# encoding: utf-8
"""
untitled.py
Created by Stuart Grimshaw on 2009-03-15.
Copyright (c) 2009 __MyCompanyName__. All rights reserved.
"""
import sys
import os
import unittest
from lxml import html, etree
from councillors import CouncillorInfo
# Load the App Engine db class.
sys.path.append("/A... | [
"stuart.github@smgsystems.co.uk"
] | stuart.github@smgsystems.co.uk |
dfc9c7139d56f97870235574fe311eccbfa4d098 | 307e893b8d600ed481a49d5c94efe62261dcef9e | /lecture week 2.py | 73d665a340a847aeff8021b59bb4dc3088144552 | [] | no_license | Subham47/Python-learning-week2 | e7107b07f351c38d14eb0dd4b9e17c511cd4254e | d74ff8ab18bb6a8bae8f57760c8a51c2ad7d0091 | refs/heads/master | 2023-05-29T20:59:57.976197 | 2021-06-15T06:31:16 | 2021-06-15T06:31:16 | 377,058,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,493 | py | # - Exercises2.py *- coding: utf-8 -*-
"""
Python has lists. The empty list is []. The following is a list of one
item ["a"] and so is [3]. Here is a list with 3 items ["ball",3.14,-2]. Let's
define a list, I'll call it lis and we'll do things with it to illustrate
accessing items in a list. Execute the following... | [
"subhamkumarsingh401@gmail.com"
] | subhamkumarsingh401@gmail.com |
da2e3218485d698bc9cf720d1e8e480446b29cbd | 66160ae77aed90e1e8eb32708ec251d098f94255 | /Python/Python Basics/.history/ClassBasics_20200618233336.py | 6b9928a122b44674bd19a1876ed2a74030d5567c | [] | no_license | sarthikg/cheat-sheets | 8cf60825bb510d38b57c48da06d41bfef9698c46 | 027ec9d607e5643eed2aa46e06eab3602fc3072c | refs/heads/master | 2022-12-23T18:57:31.574682 | 2020-09-21T00:28:24 | 2020-09-21T00:28:24 | 297,188,205 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | # Defining a Class
class | [
"sarthikg@gmail.com"
] | sarthikg@gmail.com |
4859efd57dcf7d002354723f797ce55407749769 | 43e5cc0597fe5e9b3cbb401db19d61b330f609d7 | /utils.py | 0c2dc0b5dfe3c388a07a27cfac293de623f52ba9 | [] | no_license | liuhuijiang/GDSV | acd219f3fc32f9b9fc5e661d61b7e7ed17f55274 | 62f980e10e826457c11ecd0559098d196a3620ce | refs/heads/main | 2023-06-12T17:20:49.434236 | 2021-07-05T11:53:00 | 2021-07-05T11:53:00 | 382,563,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,845 | py | import numpy as np
import pickle as pkl
import scipy.sparse as sp
from scipy.sparse.linalg.eigen.arpack import eigsh
import sys
import random
import re
from tqdm import tqdm
# import sparse
def parse_index_file(filename):
"""Parse index file."""
index = []
for line in open(filename):
index.append(... | [
"noreply@github.com"
] | noreply@github.com |
a8269741c0b11809be577628a28e372c9549aa11 | e3eb8b8d98cd1c4255c19469d28d5f21bbf17da7 | /code/personality/forms.py | 8efd0e593f226fe2ffcb80e4b5785a10f72e3a5c | [] | no_license | Tepuradesu/portfolio-reservation | 4b33bbf90699149e0d8888e6445d6032839ea4e9 | 7173fc5d62b80f5dc8a232b786e9c8389b75fedd | refs/heads/main | 2023-03-30T11:23:28.525053 | 2021-04-04T09:25:03 | 2021-04-04T09:25:03 | 354,500,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from django import forms
from django.contrib.auth import get_user_model
#アクティブになっているユーザモデルを使用できる。
User = get_user_model()
from datetime import datetime
from authentication.models import MyUser
class EditProfileForm(forms.ModelForm):
class Meta:
model = MyUser
fields = ('date_of_birth','name',... | [
"root@tk2-262-40537.vs.sakura.ne.jp"
] | root@tk2-262-40537.vs.sakura.ne.jp |
b2c68873b9a75ea7ebe29980c62771e9ec630a80 | a263a5d53e2565561f94d5d342652d07e95d3453 | /kata_01.py | 747e3cdf61cd41a7b3f98090cc81834c761a8ca0 | [] | no_license | Jarauta1/Backend_Python-POO | 84380c3cf27b1b45aabab83c42308729fb28b3fc | a4dfecff85440b581abcd27b20051bf538b94a33 | refs/heads/master | 2023-04-28T14:58:46.777487 | 2021-05-17T21:20:09 | 2021-05-17T21:20:09 | 366,855,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | class Alumno():
# Propiedades
nombre = ""
apellido = ""
dni = ""
edad = 0
nota = 0
# Constructor
def __init__(self,nombre,apellido,dni,edad):
self.nombre = nombre
self.apellido = apellido
self.dni = dni
self.edad = edad
# Metodos
def Saludar(self... | [
"diegojarauta8@gmail.com"
] | diegojarauta8@gmail.com |
3150e892a3d4da245621a1bb195d4cbfa8821d0b | ba09a6cc089e408e2a865810b0e365d004712ce8 | /Calculator/calculator.py | b858bb30a91766785f55b12d25b67dfc1136b2cd | [] | no_license | ephreal/Silliness | 5459977e1bca44cde4639f8bf83bd8a976b2ee63 | bce290f86f818ad926613e84a07e5d354a112c4b | refs/heads/master | 2021-06-05T02:41:42.467732 | 2020-02-20T16:31:35 | 2020-02-20T16:31:35 | 133,086,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,289 | py | import tkinter as tk
from decimal import Decimal
from tkinter import ttk
class Calculator(ttk.Frame):
def __init__(self, master=tk.Tk()):
super().__init__(master)
self.master = master
self.master.title("tKalculator")
self.operator = None
self.prev_num = 0
self.completed_calculation = False
self.grid()... | [
"tjannx@hotmail.com"
] | tjannx@hotmail.com |
c6796b372193d6effacdb31cb8fc4c283bc79e0e | d9374fdaebf490311b78b2035e11f52d40d757f7 | /0x0C-python-almost_a_circle/tests/test_models/test_rectangle.py | d072e4b784e99ef8b01ae0725ccfeab763e19169 | [] | no_license | Thorlak2202/holbertonschool-higher_level_programming | 67a85b2bf1c8c042107a45404573c6e062873bf6 | 0373699c167845736a5d2e467524891dc47fd47b | refs/heads/master | 2020-09-29T01:16:03.781003 | 2020-05-14T21:27:42 | 2020-05-14T21:27:42 | 226,911,564 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | #!/usr/bin/python3
"""Test Rectangle"""
import unittest
import pep8
from models.base import Base
from models.rectangle import Rectangle
class Testrectangle(unittest.TestCase):
""" """
def test_pep8_conformance_rectangle(self):
"""Test that we conform to PEP8."""
pep8style = pep8.StyleG... | [
"darkdrakkar@gmail.com"
] | darkdrakkar@gmail.com |
47cabf48e63e38b5ed4a9a46f08a54d53c472a16 | 84e661d5d293ec0c544fedab7727767f01e7ddcf | /donationPage/migrations/0003_donation_donation_slug.py | 64b0cda09d65d9291b679f43a4f696ca8a3c2fc6 | [
"BSD-3-Clause"
] | permissive | groundupnews/gu | ea6734fcb9509efc407061e35724dfe8ba056044 | 4c036e79fd735dcb1e5a4f15322cdf87dc015a42 | refs/heads/master | 2023-08-31T13:13:47.178119 | 2023-08-18T11:42:58 | 2023-08-18T11:42:58 | 48,944,009 | 21 | 23 | BSD-3-Clause | 2023-09-14T13:06:42 | 2016-01-03T11:56:48 | JavaScript | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.2.15 on 2023-04-24 10:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('donationPage', '0002_auto_20230413_1924'),
]
operations = [
migrations.AddField(
model_name='donation',
name='donat... | [
"w.abdoolkarim@gmail.com"
] | w.abdoolkarim@gmail.com |
e16e46ba4e83726be556a11e9f0bdc2e9482e97a | 72327e591b44d6b7362399cf9f1b905d57bd82ca | /migrations/versions/4c2277ed522b_modify_payment_table.py | be08865f3d6ee6039df24a5c1083917db7711c4b | [] | no_license | leduy8/tallie-backend | d62af326e0d746170264f5b5f2ee7f4a269f77fe | 15e6044354a535d2eed8fcf8355d78a0ba2969c8 | refs/heads/main | 2023-06-18T06:13:57.503852 | 2021-07-10T07:27:35 | 2021-07-10T07:27:35 | 366,244,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | """modify payment table
Revision ID: 4c2277ed522b
Revises: 5066f0f12ca3
Create Date: 2021-06-04 21:22:49.849188
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4c2277ed522b'
down_revision = '5066f0f12ca3'
branch_labels = None
depends_on = None
def upgrade():... | [
"duy.leduc8@gmail.com"
] | duy.leduc8@gmail.com |
e9c6092a3c8d0d82b173fd4dad611d63a327d810 | 403f66155f284edab905f617a7e2f7d9b7d697ac | /Lab 8/hillclimb.py | 4ed6830c9b11d6f926b50d7ea66cf45e221c1c08 | [
"Apache-2.0"
] | permissive | saiteja-talluri/CS-335-Assignments | 5c98805c9715da8c33ffe94f3ccc7a21cbf89c6b | 649f5e31afd046ade8e952811769fa0080372642 | refs/heads/master | 2020-04-20T06:16:05.114386 | 2019-05-06T21:40:01 | 2019-05-06T21:40:01 | 168,677,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,944 | py | import sys
import math
from random import shuffle
from draw import drawTour
import graph_plot
from collections import defaultdict
import argparse
import random
import itertools
import pdb
from random import choice
#########################################################################################################... | [
"saitejatalluri836@gmail.com"
] | saitejatalluri836@gmail.com |
d092808e30e9c905863b3d8e509e23d0b7ad7c9d | 0f1c2f03a42a0b26de3b79b9e9e9a114428f5120 | /apps/user_operation/views.py | 1165df55ed50af10b2286ad22bdb30476f1385d5 | [
"MIT"
] | permissive | tuxi/video-hub | 4ec2a75a3f8f0c326d3a0bcdc06ab873db4c6903 | fb64440ec7f84f08cf9cd706bec374fa357d7936 | refs/heads/master | 2022-12-02T06:49:46.290068 | 2019-08-19T01:02:46 | 2019-08-19T01:02:46 | 194,298,426 | 18 | 2 | MIT | 2022-11-22T01:39:31 | 2019-06-28T15:47:41 | JavaScript | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
# @Time : 2019/4/7 9:40 PM
# @Author : alpface
# @Email : xiaoyuan1314@me.com
# @File : views.py
# @Software: PyCharm
from rest_framework import mixins
from rest_framework import viewsets, filters
from rest_framework.response import Response
from django.contrib.auth import get_user_mod... | [
"seyooe@gmail.com"
] | seyooe@gmail.com |
850707487df029e08073b60e3efd81659c8455c5 | 1d8b4d5c9193cdf48a32a5970a9c9db8121f3b56 | /Days/Day_5/1_averageHeight.py | 7a5573132dfcf174bcd46465ea5761181849d390 | [] | no_license | ashraf0484/100DaysOfPython | c49b7d9bcf49a03fc737e3b326693d021ba2303f | 7f593433c5a7da98247917f38258f33c66778abf | refs/heads/main | 2023-05-01T06:36:03.782353 | 2021-05-14T12:48:12 | 2021-05-14T12:48:12 | 363,130,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # 🚨 Don't change the code below 👇
student_heights = input("Input a list of student heights ").split()
for n in range(0, len(student_heights)):
student_heights[n] = int(student_heights[n])
# 🚨 Don't change the code above 👆
#Write your code below this row 👇
sum = 0
count = 0
for i in student_heights:
sum += ... | [
"64628528+ashraf0484@users.noreply.github.com"
] | 64628528+ashraf0484@users.noreply.github.com |
d6fabe6748a3e26218aa694d3d8b6491b7b36b97 | cd3303eb8dcd744ff15c1b6c21060197ab6f106f | /mfr_image/__init__.py | 2ae53425b076818b0208d760491677ca42233ae2 | [
"MIT"
] | permissive | kmjungersen/mfr-image | 3274e3ade66f85e03ffb4c8dafffdb1a69e6e705 | dee8020fbd87ab32988bf6f2296cad9c0895a2ba | refs/heads/master | 2021-01-01T20:12:27.722236 | 2014-04-26T17:46:52 | 2014-04-26T17:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # -*- coding: utf-8 -*-
from mfr.core import FileHandler, get_file_extension
from mfr_image.render import render_html
__version__ = '0.1.0'
EXTENSIONS = [
'.jpeg',
'.jpg',
'.png',
'.bmp',
'.gif',
]
class Handler(FileHandler):
# Renderers and exporters are callables
renderers = {
... | [
"kmjungersen@gmail.com"
] | kmjungersen@gmail.com |
307fa38bb2c54568d662b97b220086f63239f455 | 4e0f0f2c351707b6afb6d58caef59a6edd22ab2e | /anonymized_code.py | 4170d671aea8458bc934497a37db8ef95d7cc66c | [] | no_license | f3498hjoifrhju9843nt/g98jt34y89jn | 8446517f45e48aff577450b4f158493092474d10 | b51790dcc7ea3981e4b138cd1223ecee743e3956 | refs/heads/main | 2023-06-14T19:05:23.473308 | 2021-07-05T18:46:55 | 2021-07-05T18:46:55 | 383,169,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | # Copyright and Performance rights by ANONYMIZED_AUTHORS
# Python version used: 3.9.2
# Libraries in use:
# pip install tqdm numpy z3-solver
from itertools import permutations
from typing import List, Tuple
from tqdm import tqdm
import numpy as np
import z3
from z3 import AtMost
def simulate(cuts: Tuple[int], deck... | [
"noreply@github.com"
] | noreply@github.com |
1159fbc0e766ba3b946ecf9f04f6240b7cf4e416 | d4df310c1a4f2ae12c3b0b7be33c9703449e9af7 | /particular/util.py | 1b10d1557cf47b601761db5c3618b1e377884c20 | [
"MIT"
] | permissive | Fizzadar/Particular | 4174f1a8ab2177029d0eaf62ae91b883b8e20c4e | d49949f240697b02810bb5a9673741f89f6816ac | refs/heads/master | 2023-05-25T14:20:28.791778 | 2020-01-07T19:14:44 | 2020-01-07T19:14:44 | 232,396,997 | 0 | 0 | MIT | 2023-05-22T22:37:29 | 2020-01-07T19:08:08 | Python | UTF-8 | Python | false | false | 164 | py | from elasticsearch import Elasticsearch
from pydash import memoize
from .settings import ES_HOST
@memoize
def get_es_client():
return Elasticsearch(ES_HOST)
| [
"pointlessrambler@gmail.com"
] | pointlessrambler@gmail.com |
9737bb57d0ca8cbee94607d956f256752fd7fae8 | 1d5578b21f6dbb25bb233ff0338c6cf413d8d571 | /homework/4주차/venv/Scripts/pip3.7-script.py | b08c82314f5de0ce60ecc1ba176938ee15f4524b | [] | no_license | amychang5/sparta | 0e13a43747ad501c7317050eaf3e51f7ee0b6c74 | 177adaaa5bc77b2f2485d16521274367205c7183 | refs/heads/master | 2021-03-01T13:22:02.308125 | 2020-04-03T11:50:23 | 2020-04-03T11:50:23 | 245,787,654 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 430 | py | #!C:\Users\amy_c\Desktop\sparta\homework\4ÁÖÂ÷\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"amy_chang55@naver.com"
] | amy_chang55@naver.com |
4866744e837a2364a8ccc851dc2498543e69f0f7 | 17aa445400b88cf99a16c49a26e34da95f1f631a | /src/main.py | f6246c78f397b22a7a502e65aa63ea9d0be0283a | [] | no_license | alradadi/Force-Signal-Plotter | 02ac6f0b1ffcdb3c7db63df32443f9b0d51d95f5 | 94bb803cdc0b95b47443aec3d884c0ce6470ea5f | refs/heads/master | 2021-06-03T08:05:33.226412 | 2016-05-17T02:11:38 | 2016-05-17T02:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from PyQt5 import QtWidgets
from src.View.MainUI import MainUI
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = MainUI(MainWindow)
MainWindow.show()
sys.exit(app.exec_()) | [
"hrfssa@gmail.com"
] | hrfssa@gmail.com |
2e81ee7aa1523d07e3ba18b0d2a4a114cea43f3b | 2a9bd67c955044294b3d07fa5367d2fbe7734a45 | /virtual/bin/easy_install | 34f4dd578c2c0695ec69cfc54a86276d7d5d7ab2 | [
"MIT"
] | permissive | KadogoKenya/BloggerCenter | 86e455b9f470ede9cc0775353dc6a8a6a2c747fa | 90776004316a88d40f56aaa8d44004f31553c48c | refs/heads/master | 2022-12-22T03:20:02.834430 | 2020-10-01T07:58:50 | 2020-10-01T07:58:50 | 298,762,799 | 0 | 0 | null | 2020-10-01T07:58:52 | 2020-09-26T07:37:45 | Python | UTF-8 | Python | false | false | 270 | #!/home/kate/Desktop/PYTHON/blogCenter/virtual/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())
| [
"you@example.com"
] | you@example.com | |
037cc4309bfa0ee9464cbe938a1897c3e2e37ecc | fa248ca76a5ff62bccd4510718b3d524e7bafa78 | /Blackjack/funkcije.py | bc67c404a0c2dd32c8e829a2ee3919a8eb874731 | [] | no_license | MirkoTheKing/Projekti | caa450bdb0c3e1c986939219269103889cda6f70 | e59c55eff70d75fcf7d3f90e3e4daf9a2fbc9ca6 | refs/heads/main | 2023-03-14T07:28:25.807788 | 2021-03-14T22:56:37 | 2021-03-14T22:56:37 | 347,774,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import random
def suma(niz):
suma = 0
for i in range(0,len(niz)):
suma += niz[i]
return suma
def random_karte(niz):
nov = []
for i in range(0,2):
nov.append(random.choice(niz))
return nov
def provera_black_jack(niz):
if 11 in niz and 10 in niz:
return True
r... | [
"mirkovicaleksa9@gmail.com"
] | mirkovicaleksa9@gmail.com |
1d2ff22060d90ac5eebb0f152bd66b24eb89a21d | 4d66a2b4f40e7169b00871e7f75202fd38201d98 | /linkie/tests/run_tests.py | 5bdd879b985b69fb0642864bdeba2dbaff39bfcc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uccser/linkie | e90d97d9d22c9a1d1eb95d87eb59f3079e4da2ce | f062762c42c812f18374a064ba2ac80d9146b7d5 | refs/heads/master | 2023-03-23T10:56:12.508180 | 2020-06-08T00:07:33 | 2020-06-08T00:07:33 | 124,695,953 | 2 | 0 | MIT | 2021-03-25T21:38:39 | 2018-03-10T20:28:47 | Python | UTF-8 | Python | false | false | 3,251 | py | import os
import unittest
from subprocess import run
from linkie import Linkie
class LinkieTestSuite(unittest.TestCase):
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
self.default_working_directory = os.getcwd()
def setUp(self):
os.chdir(self.d... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
9b7b0e05ff56cca495522caea85cba7a9cf2fba7 | 1134891d593284bea4f55f44a03e165adfe70320 | /ecommerce.py | 88dfe63c9170e093dd43c565a857f5762122652d | [] | no_license | adisa22/Ecommerce | 25e896f0885ec40fbde8df6fdbd0d83d61c70772 | 7a3557055c17442a593ec3dc06cea7bb47888716 | refs/heads/master | 2023-03-18T18:20:07.040518 | 2021-03-22T16:49:31 | 2021-03-22T16:49:31 | 350,366,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | class Customer:
def __init__(self, name, email):
self.name = name
self.email = email
self.purchases = []
def purchase(self, inventory, product):
inventory_dict = inventory.inventory
if product in inventory_dict:
if inventory_dict[product] > 0:
s... | [
"39031864+adisa22@users.noreply.github.com"
] | 39031864+adisa22@users.noreply.github.com |
bd1a6fc6aa968f9225332856ba27a2775625e759 | 3ea198c0913538312ca3aa5ffe7f1765d2d94fc2 | /data_cleaning/original code/add_columns_save_data.py | ca01e26725b604a4bbbcaf3aef272ecf4379d790 | [] | no_license | feifeizhuge/PHM_2018_predictive_maintenance | 161dfefae7b48c803d8f63be28bede2b630253f9 | 45f95412b3665c2c7c7f325bf5df5ffb8c1fd619 | refs/heads/master | 2020-04-27T12:51:43.462900 | 2019-03-07T13:34:28 | 2019-03-07T13:34:28 | 174,346,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 25 10:53:47 2019
@author: he
"""
'''
After the processing data, we add three new columns(F1,F2,F3) to the original
data and choose the reasonable slice and save it as csv data.
'''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt, sea... | [
"noreply@github.com"
] | noreply@github.com |
0d99de5136dbf6e90ba507ce745720d98e1592c0 | 76bd9a12fe5b795c98cedf0a8b010db8aae6f911 | /myBook/view.py | 4100e671545ab44417f1ab433160fc0b65f914d6 | [] | no_license | wan1314zyq/myBook | 11a0657a0d55ee4cf41df1d34f7e8be2f22047a7 | a9460afc0928c2197224cddd399e38fd5a39dcaf | refs/heads/master | 2020-03-23T12:05:17.001475 | 2018-07-19T06:55:47 | 2018-07-19T06:56:26 | 141,536,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #coding=utf8
# @Author= CaiJunxuan
# @QQ=469590490
# @Wechat:15916454524
from django.shortcuts import render
def test(request):
return render(request,'base.html') | [
"wan1314zyq@qq.com"
] | wan1314zyq@qq.com |
e919dcffab7aeef1456f4c9f318912acc488ce8f | 838498de44378458ee46c1a5d1ceaeb662223e43 | /encyclopedia/safematter.py | 1a16502b5b22a3f1ebaafca4999324ba63cda70d | [] | no_license | vkWeb/vikivedia | 9bed646f7fbf770246b292f319d7c783475a2f7a | 64bcc9ae5fc415f15e3f4944ea974d6e0d323dcc | refs/heads/main | 2023-03-21T23:40:11.898170 | 2021-03-19T10:28:19 | 2021-03-19T10:28:19 | 349,060,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # A list of allowed tags
ALLOWED_TAGS = [
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"p",
"a",
"abbr",
"ul",
"li",
"ol",
"a",
"details",
"summary",
"code",
"pre",
"strong",
"blockquote",
"em",
"u",
"small",
"strike",
"i",
"b",
... | [
"vivekmittalagrawal@gmail.com"
] | vivekmittalagrawal@gmail.com |
3a239988545f0c87767b909a0dfbec058597d3dd | f9033131dc4d66ede2c5c22fcaa4a0be5b682152 | /Sorting/Tasks/eolymp(5089).py | 21668b326d3a8cfd9412a0d740ab1941e4accc97 | [] | no_license | Invalid-coder/Data-Structures-and-algorithms | 9bd755ce3d4eb11e605480db53302096c9874364 | 42c6eb8656e85b76f1c0043dcddc9c526ae12ba1 | refs/heads/main | 2023-04-29T08:40:34.661184 | 2021-05-19T10:57:37 | 2021-05-19T10:57:37 | 301,458,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #https://www.e-olymp.com/uk/submissions/7293961
def greater(a, b):
i = 0
j = 0
while i < len(a) and j < len(b):
if ord(a[i]) > ord(b[j]):
return a
elif ord(a[i]) < ord(b[j]):
return b
else:
i += 1
j += 1
if i == len(a) and j < le... | [
"gusevvovik@gmail.com"
] | gusevvovik@gmail.com |
a84d04e1ba4d50f6c1aa7eea5fc0acf9a8060fdd | 7c6fb83b9c8bae7f4b5122e3f1dab48e7c09deb9 | /lucene_index_payload.py | 54ccf2ee2319110b524b50fea4cb5e2e2cb19b00 | [] | no_license | fabiocarrara/ir-bench | 594628abdaa59272fe473b42354f1852556e454a | 9dfa6f2f08a78c57c70490bccaffd6ba775fe490 | refs/heads/master | 2020-11-25T12:54:00.634986 | 2019-12-18T11:28:38 | 2019-12-18T11:28:38 | 228,672,272 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,095 | py | from java.nio.file import Paths
from org.apache.lucene.analysis.core import WhitespaceTokenizer
from org.apache.lucene.analysis.payloads import DelimitedPayloadTokenFilter, FloatEncoder, PayloadHelper
from org.apache.lucene.document import Document, Field, StringField, TextField, FieldType
from org.apache.lucene.index ... | [
"fabio.carrara@isti.cnr.it"
] | fabio.carrara@isti.cnr.it |
1e995b1168ba654937381966b87699a5daa6d057 | 81191ca7e4a96f5046b7e12fa6b62da3d43d6c98 | /Python/django/ajaxPagination/manage.py | f5d5e333443b2aa79618efc40b12282efcb34a7c | [] | no_license | dherbig/DojoWork | cf56a24a7a14c4323986fd2fa659d85e0832e54e | 3bdb6d61a7bbf9e36599026b234bc9e7ad160e99 | refs/heads/master | 2021-01-12T10:13:44.238379 | 2017-02-07T23:50:53 | 2017-02-07T23:50:53 | 76,391,336 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ajaxPagination.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure th... | [
"davis.herbig@gmail.com"
] | davis.herbig@gmail.com |
91ed8fe756697243b39c0671ce9ffe931e906c4a | 7ec38beb6f041319916390ee92876678412b30f7 | /src/leecode/explore/queue_stack/01.Design Circular Queue.py | 3b4c90c483baf7a706bf6efc41b4e3e9939b2ee3 | [] | no_license | hopensic/LearnPython | 3570e212a1931d4dad65b64ecdd24414daf51c73 | f735b5d865789843f06a623a4006f8883d6d1ae0 | refs/heads/master | 2022-02-18T23:11:30.663902 | 2022-02-12T17:51:56 | 2022-02-12T17:51:56 | 218,924,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | class MyCircularQueue:
def __init__(self, k: int):
self.queuesize = k
self.lst = [None] * k
self.head = -1
self.tail = -1
"""
Initialize your data structure here. Set the size of the queue to be k.
"""
def enQueue(self, value: int) -> bool:
"""
... | [
"hopensic@gmail.com"
] | hopensic@gmail.com |
8d1c7faac4d50bb2d0b2c1f5a86977f9a50a46a9 | 409a533c25b44ad140bd297951dbdf6109f31423 | /app.py | ca38b1335a97c6f9e90454b7dc29a57dbe1409ba | [] | no_license | caseyjohnsonwv/cjp-photo-sync | 2426aa0f5383e93c270fa1a614447d436c6c98ac | 1849cf243f97b9f85eabdd736fcfd45fde4e91d8 | refs/heads/master | 2023-08-19T00:28:17.651201 | 2021-10-11T01:37:54 | 2021-10-11T01:37:54 | 415,638,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import logging
import json
import sqs, s3
from utils import AspectRatio
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
)
message = sqs.receive_message()
if message:
receipt_handle = message['ReceiptHandle']
message_data = json.loads(message['Body'])['Recor... | [
"ctj0001@mix.wvu.edu"
] | ctj0001@mix.wvu.edu |
5fb35dfa6ce33b560665d7f970de19b4fbd07e9a | a7490e13db67bdafd310ec232e2a56285c2310a3 | /newLeapPython | 9315f3fcc8e28817b7dbb73dd8d9bbd6bfd99f52 | [] | no_license | eraasch123/LeapMotionProject | ab417d23f75c5f1bea968de509674a3abbd6f2a9 | b2a5834829a6cd528c86c8123e0be75d5f46a9ea | refs/heads/master | 2020-04-27T13:57:59.623051 | 2019-04-18T16:03:05 | 2019-04-18T16:03:05 | 174,390,861 | 0 | 0 | null | 2019-03-07T17:31:52 | 2019-03-07T17:31:52 | null | UTF-8 | Python | false | false | 2,194 | import os, sys, inspect, thread, time
src_dir = os.path.dirname(inspect.getfile(inspect.currentframe()))
# Windows and Linux
arch_dir = '../lib/x64' if sys.maxsize > 2**32 else '../lib/x86'
# Mac
#arch_dir = os.path.abspath(os.path.join(src_dir, '../lib'))
sys.path.insert(0, os.path.abspath(os.path.join(src_dir, arch_... | [
"noreply@github.com"
] | noreply@github.com | |
75f8a59901744e93a6796e12fb712f2638bec6b5 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/samples/ide/activegrid/tool/IDE.py | caf2b4ca67dbd70a3cd483490938890dd0c1e187 | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368,697 | py | #----------------------------------------------------------------------------
# Name: IDE.py
# Purpose: IDE using Python extensions to the wxWindows docview framework
#
# Author: Peter Yared
#
# Created: 5/15/03
# Copyright: (c) 2003-2005 ActiveGrid, Inc.
# CVS-ID: $Id$
# Licen... | [
"869999860@qq.com"
] | 869999860@qq.com |
6f4360e972924575dd23c58db1997e28c2a91236 | 311d086bea17176881bf00b79397c72550d886a0 | /osx/osx.gyp | c4445ee1fe5d81c51bca1343bcea9387e443f1d1 | [
"MIT"
] | permissive | jfairbank/mediakeys | 1e544e401e297fed9b405ac540b4fac386391afb | a4bdc60e34cdc80aabdb2ff7887f5cb1229f9c9b | refs/heads/master | 2020-12-30T22:35:02.248779 | 2014-05-08T16:17:14 | 2014-05-08T16:18:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | gyp | {
"targets": [
{
"target_name": "keylistener",
"type": "executable",
"xcode_settings": {
"OTHER_LDFLAGS": [
'-mmacosx-version-min=10.7',
'-framework', 'Foundation',
'-framework', 'CoreData',
'-framework', 'Cocoa',
],
},
"sources": [
"FMMediaKeyDelegate.m",
... | [
"id@timryan.org"
] | id@timryan.org |
90d585ae1c4220e55ce94aa40aa856f631aa5cd8 | b15ccc00cbf5560dd8925ea7392cd83f0e1b6d87 | /python/GafferSceneUI/_SceneViewInspector.py | 8e7ae5e2f1ef1456529aa609667a2c0987bf2382 | [
"BSD-3-Clause"
] | permissive | JeromR/gaffer | 728e44d28455580966a6f143818fc562b1ff60c3 | 94d2f6934a4c38a727cfa4562ffe6b791ae89fa0 | refs/heads/master | 2023-01-11T06:20:56.566162 | 2020-11-11T12:37:16 | 2020-11-11T12:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,900 | py | ##########################################################################
#
# Copyright (c) 2020, Cinesite VFX Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions ... | [
"tomc@cinesite.com"
] | tomc@cinesite.com |
18b8e0edad42cc713cfad35c0c03af6cd4ec0305 | e2cd117b1060d445d0c6825b4761dc8d9d261a59 | /2020/algorithm/앨리스코딩/6. 0 이동시키기.py | 6476493c4bdbd3ab90e1098ac3ac28208bbf5509 | [] | no_license | winterash2/TIL | 856fc55f076a6aadff60e6949a3ce44534e24eda | 9b8e93e4eacce2644a9a564e3b118bb00c3f4132 | refs/heads/master | 2023-06-12T23:58:00.192688 | 2021-07-04T14:20:30 | 2021-07-04T14:20:30 | 288,957,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # 0 이동시키기
# 여러개의 0과 양의 정수들이 섞여 있는 배열이 주어졌다고 합시다. 이 배열에서 0들은 전부 뒤로 빼내고, 나머지 숫자들의 순서는 그대로 유지한 배열을 반환하는 함수를 만들어 봅시다.
# 예를 들어서, [0, 8, 0, 37, 4, 5, 0, 50, 0, 34, 0, 0] 가 입력으로 주어졌을 경우 [8, 37, 4, 5, 50, 34, 0, 0, 0, 0, 0, 0] 을 반환하면 됩니다.
# 이 문제는 공간 복잡도를 고려하면서 풀어 보도록 합시다. 공간 복잡도 O(1)으로 이 문제를 풀 수 있을까요?
# def moveZerosToEnd(nu... | [
"winterash2@naver.com"
] | winterash2@naver.com |
61ecce1e44b4d35a64266562120e27f0ca389441 | 7b5c1352e1a4fb8352161cc135bfd1225a633828 | /2017-cvr-tencent-final/src/data_process/shuffle.py | 7e0c621d4a5903ba07e6d2e8d4dffff21d9be4f3 | [] | no_license | zgcgreat/2017-cvr-tencent | b7f54ae8df55fbb30f2430f695a148844982aa3a | fe79d0756bbf862d45e63e35b7c28da8396bcbda | refs/heads/master | 2021-04-03T08:32:33.651705 | 2018-07-17T08:36:53 | 2018-07-17T08:36:53 | 124,724,199 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # _*_ coding: utf-8 _*_
'''
打乱数据集顺序
'''
import random
import time
start = time.time()
print('shuffling dataset...')
input = open('../../data/traincp.csv', 'r')
output = open('../../data/train_data/train.csv', 'w')
lines = input.readlines()
outlines = []
output.write(lines.pop(0)) # pop()方法, 传递的是待删除元素的index
whil... | [
"1107630485@qq.com"
] | 1107630485@qq.com |
b34cdfea134174cda14204bd9b15ce59b617887d | 0146f63cbb2c5bdc321d264e24b112bcb875e8be | /animations/relieved_seated_pose.py | b3c061c3c360505420907c148ad657c0872cb2cb | [] | no_license | zhexenova/NAO_Planning | 7dcea52a6cf8305bd4bdc01b55703284e6dd950a | 5cb395b07dc2ddc3e9113ff9f440c55d848de3f7 | refs/heads/main | 2023-01-28T10:48:58.901542 | 2020-12-04T14:35:07 | 2020-12-04T14:35:07 | 318,368,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | # Choregraphe simplified export in Python.
names = list()
times = list()
keys = list()
names.append("HeadPitch")
times.append([1.28, 2.44, 3.72, 4.32])
keys.append([0.463226, 0.4034, -0.00157596, -0.182588])
names.append("HeadYaw")
times.append([1.28, 2.44, 3.72, 4.32])
keys.append([-0.624379, 0.0183661, -0.06447, -0... | [
"zhanel.zhexenova@studio.unibo.it"
] | zhanel.zhexenova@studio.unibo.it |
79abf818d26c68a9f96a3a9c36ac5eb432cdb2d0 | a0cdca136338dd4b970798519e8aed5f033c99d3 | /bot.py | eb7ebe3e6959722bc178475d424ecab19e08587c | [] | no_license | dodgrile/kerchingbot | f176f7968ddc872c9d9c1247520bb0186353a6e2 | 77298579512d884d3e8fc8b959bbdedcf874e9cb | refs/heads/master | 2020-06-20T22:31:48.380786 | 2017-04-08T15:11:40 | 2017-04-08T15:11:40 | 74,814,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py |
class bot() | [
"ian.mellett@gmail.com"
] | ian.mellett@gmail.com |
448f958cda3623b08d09be695fdd3b973081ff06 | fafc384a2a11a96e11c2ccf42b1d828c0c9ce416 | /vaananbj.py | 08f6d76f6ef205766247d8a47161471304ad599f | [] | no_license | JKIMUCC/Y10Design-PythonJK | c6495b0c655f527b6d30e94755aa71ad5fcaeeab | 42c1f02fe251d7b9edab20756f205b9ef2f99b2a | refs/heads/master | 2020-07-23T14:19:27.622119 | 2020-02-16T17:35:25 | 2020-02-16T17:35:25 | 207,589,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | import random
money = 3000
while money > 0:
print("You have " + str(money)+" dollars left")
bet = int(input("How much are you betting this round? \n"))
c1 = random.randint(1,15)
if c1 == 15:
c1 = 11
elif c1 >= 10 and c1 < 15:
c1 = 10
print("Your card is "+str(c1))
print("If you want to hit type 1 \nIf you w... | [
"jace.kim@ucc.on.ca"
] | jace.kim@ucc.on.ca |
2b0e686044b3941c7102866dedac704f48ee783f | 27ce7d1ecb8556b1cce963eb649c92abf27347ab | /Codeforces/1343C Alternating Subsequence.py | 26e48c693f519c60d3de8be139d7b8ba76f8f088 | [
"Unlicense"
] | permissive | a3X3k/Competitive-programing-hacktoberfest-2021 | c005c2413e93e14808c5f1e60cbbc73c0ff04674 | bc3997997318af4c5eafad7348abdd9bf5067b4f | refs/heads/main | 2023-08-31T17:14:21.584487 | 2021-10-04T04:03:41 | 2021-10-04T04:03:41 | 413,268,126 | 1 | 0 | Unlicense | 2021-10-04T04:02:03 | 2021-10-04T04:02:02 | null | UTF-8 | Python | false | false | 1,021 | py | #https://codeforces.com/contest/1343/problem/C
for _ in range(int(input())):
n = int(input())
l = input().split()
new = []
sn=[]
nn=[]
ans=0
for i in l:
if i[0]!='-':
sn.append(int(i))
if(nn!=[]):
new.append(nn)
nn=[]
el... | [
"vivek.15@mountblue.tech"
] | vivek.15@mountblue.tech |
9b891d1a08fbdd63cb11901365c97b5455452d79 | 2d8487dc7362137799b1e5c46c963edaa89aeb5a | /figures/tmb/pcawg/DFCI_ONCO/data_preprocessing.py | c43c6a6f09bbd00198058aa65190cfb20ed31d44 | [
"MIT"
] | permissive | OmnesRes/ATGC_old | c2cd10e29dd65c933c489e2e865cde2a3fa3c3ba | daf184d02bdf7ffcc2a9f682dc74f4ed21a4cdf9 | refs/heads/master | 2023-09-04T10:46:10.416506 | 2021-11-05T19:37:35 | 2021-11-05T19:37:35 | 276,549,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,518 | py | import pickle
import pandas as pd
import numpy as np
import pathlib
path = pathlib.Path.cwd()
if path.stem == 'ATGC':
cwd = path
else:
cwd = list(path.parents)[::-1][path.parts.index('ATGC')]
##path to files
path = cwd / 'files/'
tcga_maf = pickle.load(open(path / 'pcawg_maf_table.pkl', 'rb'))
samples = pick... | [
"omnesresnetwork@gmail.com"
] | omnesresnetwork@gmail.com |
bb2e33eeedda684e9759329e952ae418c9db3e73 | b035385c986cadf0dba9dea565800d4e47a7adaa | /tests/test_numba.py | 19e72db682b11b991e839248ce5f755d6cbbf3ae | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RahulNagraj444/fluids | 74f3abf23384b76aab95b8be60f5d1adaebc8518 | 36afa5a16c0dbf22bf0541bd06d1cce68a1f7266 | refs/heads/master | 2022-10-03T10:57:36.492863 | 2020-06-07T16:56:37 | 2020-06-07T16:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,579 | py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
f8dcc293b90dec9ba5da1ffdce9046fa63a99220 | cc0a317486f114ad1e2ac40729f48fc73e7bd4f2 | /core/migrations/0001_initial.py | df03815c9fd2f8fa86cd26660a59a46f4a0883f3 | [] | no_license | camilo1rp/proquinal_prueba | e97501108900fc2f6b4e2f34c5a0690d149df905 | 6d6e44918d659c7e4b561ada2d9213ddc5f6fcc5 | refs/heads/main | 2023-05-10T12:43:30.182407 | 2021-06-22T21:22:45 | 2021-06-22T21:22:45 | 379,393,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | # Generated by Django 3.2.4 on 2021-06-22 16:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Price',
fields=[
... | [
"camilo1rp@gmail.com"
] | camilo1rp@gmail.com |
0c355006a559e2341357f05b9ef32ec3eec2dcc3 | ee8c4ea9bde1e17814a2add1a2fbcdb7dbae9392 | /deploy.py | 896a915dee29641a64adf22cd6e585f31bdfe4c1 | [
"MIT"
] | permissive | paveldournov/tarsan | 666d78bffa55d0582dadaa8f832cccbfd71cd7d5 | 70a350c44899023d9bb9282fc8dbe948b3122b15 | refs/heads/master | 2023-01-07T07:14:43.398013 | 2020-10-30T23:37:50 | 2020-10-30T23:37:50 | 295,292,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import kfp
with open('curr_time.txt', 'r') as file:
curr_timestamp = file.read().replace('\n', '')
client = kfp.Client(host='http://localhost:8080')
file_name = 'train_targe_image_reco_pipeline.yaml'
tarsan_pipelineid='6304e111-9c28-4436-8be6-007318be64e2'
version_id = file_name+'-'+curr_timestamp
new_... | [
"paveld@gmail.com"
] | paveld@gmail.com |
0a16df5d39cd6eca7d55bdce067ed752fad7f012 | 923f86e4e81fa2b233ae47df7cb66da280b7ccfe | /monitoring/openstack_maas/plugins/swift-dispersion.py | ec949479e318b89288282a1a03479aaedfaa0dcb | [
"Apache-2.0"
] | permissive | congto/osic-reliability | 2336e2a5d1cbd00557bedcb4dfadd5cb82020788 | c1e041c65fba9aca47fdcf9ce7e64dde5214ab43 | refs/heads/master | 2020-12-24T11:18:31.115657 | 2016-10-26T19:02:06 | 2016-10-26T19:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,530 | py | #!/usr/bin/env python
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"luis.daniel.castellanos@intel.com"
] | luis.daniel.castellanos@intel.com |
86fbe3687a9567c18908027c665586d29b5d2354 | 528aa2494d05a116e1280907dce10f320c463559 | /nlp/util.py | e62df946ee67953a33459a13142ec415a1682b5c | [] | no_license | ChicagoDev/Casting-Movies-by-Wikipedia-NLP | 868de6a2b4d52c898d66762412683f417562e8f0 | 681fadf6d235e845aa2c7910b959e6e5dec064f7 | refs/heads/master | 2020-04-24T20:19:48.024762 | 2019-05-08T17:50:27 | 2019-05-08T17:50:27 | 172,239,853 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import numpy
import math
from nlp.models import Tfidf, TopicModelSVD
from sklearn.feature_extraction.text import CountVectorizer
import pickle
def cosine_distance(u, v):
"""
Returns the cosine of the angle between vectors v and u. This is equal to
u.v / |u||v|.
"""
return numpy.dot(u, v) / (math.... | [
"Blake@Gideon.email"
] | Blake@Gideon.email |
1602c401bdbbf18f0d1f15d5224ffc1d567f2dd1 | 9bae02fa92143f559e6005fc517062c25446d899 | /Iceberg_Detection/dcscn-super-resolution-master/helper/loader.py | 06fc2068a578f1d25c4d42cf69947bd8874861e6 | [
"MIT"
] | permissive | ark0723/MyProject | 09a7242421dbfadd8d84789987afb26ff69b6554 | b795cedca3a83ae65c3e5906251c700c68a4fed1 | refs/heads/master | 2022-06-04T22:20:34.161126 | 2022-05-11T03:39:49 | 2022-05-11T03:39:49 | 112,449,372 | 0 | 0 | null | 2022-03-07T19:03:59 | 2017-11-29T08:41:49 | Jupyter Notebook | UTF-8 | Python | false | false | 9,416 | py | """
Paper: "Fast and Accurate Image Super Resolution by Deep CNN with Skip Connection and Network in Network"
functions for loading/converting data
"""
import configparser
import os
import numpy as np
from helper import utilty as util
INPUT_IMAGE_DIR = "input"
INTERPOLATED_IMAGE_DIR = "interpolated"
TRUE_IMAGE_DIR... | [
"ark0723@gmail.com"
] | ark0723@gmail.com |
f5db65735ebada9140b63f4d29e2e61a85008ae1 | ce55c319f5a78b69fefc63595d433864a2e531b5 | /前后端分离-vue-DRF/houfen_DRF-projects/14day/zhuce_denglu/util/throttle.py | e3aab6ab4c5ccccbd9b04f6a13ac2cc5b000a29b | [] | no_license | Suijng/1809_data | a072c875e8746190e3b715e53f1afe3323f4666b | 45f8a57089f5c30ccc1a3cddb03b76dc95355417 | refs/heads/master | 2022-12-21T12:38:30.458291 | 2019-09-27T01:14:41 | 2019-09-27T01:14:41 | 211,207,071 | 0 | 0 | null | 2022-11-22T03:16:18 | 2019-09-27T00:55:21 | HTML | UTF-8 | Python | false | false | 2,077 | py | from rest_framework.throttling import SimpleRateThrottle
import time
class MyScopedRateThrottle(SimpleRateThrottle):
scope = 'unlogin'
def get_cache_key(self, request, view):
"""
Should return a unique cache-key which can be used for throttling.
Must be overridden.
May return... | [
"1627765913@qq.com"
] | 1627765913@qq.com |
4d33eb0ee9a1b6f8917d7d2ffbe3b0a8693c4976 | 07bd6d166bfe69f62559d51476ac724c380f932b | /devel/lib/python2.7/dist-packages/webots_demo/srv/_motor_set_control_pid.py | cc26f674b3a03915318d6b15b213af63468ca3be | [] | no_license | Dangko/webots_differential_car | 0efa45e1d729a14839e6e318da64c7f8398edd17 | 188fe93c2fb8d2e681b617df78b93dcdf52e09a9 | refs/heads/master | 2023-06-02T16:40:58.472884 | 2021-06-14T09:19:58 | 2021-06-14T09:19:58 | 376,771,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,158 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from webots_demo/motor_set_control_pidRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class motor_set_control_pidRequest(genpy.Message):
_md5sum =... | [
"1477055603@qq.com"
] | 1477055603@qq.com |
f7c4ce3eaf9c7961abafb78db619d92ebf458934 | e6780d548c484ebba5f01b120a80d0725a3c16c1 | /tests/nzoi2021_test.py | 37d36b9f707fb1da6d73eb8e30093720fd56d568 | [] | no_license | cairabbit/pysample | f992f1b503185977137cf6a642010ebb8c739bdf | 593dca2ec3d2832797ac3473f28a5d4d2a56074c | refs/heads/main | 2023-04-14T01:48:41.558634 | 2021-04-17T09:45:51 | 2021-04-17T09:45:51 | 353,569,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,999 | py | from nzoi2021.socks import *
from nzoi2021.mine_reader import *
from nzoi2021.count_digit import *
from nzoi2021.caldulator import *
from nzoi2021.chocolate import *
from nzoi2021.chocolate2 import find_max_happiness as find_max_happiness2
from nzoi2021.chocolate3 import find_max_happiness as find_max_happiness3
def t... | [
"caics.china@gmail.com"
] | caics.china@gmail.com |
91863133507bd9e28e965805468dcafb398caf73 | 373186e4e585fd5106eb32573effe22e1837229a | /exercise_2/histogram.py | 1d9734f67a11829cd56d1a79c8a9980adb53f315 | [] | no_license | ram-bala/W205 | e302987aafa63be548ec6af7f9c7eb0b1dca3eb9 | 88d9ae00777f70f2195f2bb07b3ac93bd63016c7 | refs/heads/master | 2021-01-20T21:44:49.049055 | 2017-12-11T20:42:52 | 2017-12-11T20:42:52 | 101,785,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import sys
import psycopg2
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
if len(sys.argv) != 2:
print "Usage: python histogram.py <k1>,<k2> e.g. python histogram.py 3,4"
exit(1)
a= sys.argv[1].split(",")[0]
b = sys.argv[1].split(",")[1]
if not(str.isdigit(a) and str.isdigit(b)):
print "Usage... | [
"w205@ip-172-31-26-140.ec2.internal"
] | w205@ip-172-31-26-140.ec2.internal |
f1ecfdc3c9200d875e5b07118bd4a801b5d146fd | 10a18d27cb707e7050e1e9e897b3c230200078de | /general_functions.py | 9a6ae9f91e070e36965302157ac39ce6b30aa793 | [] | no_license | orits/clusters_microorganisms_genomes | 30b691cbe11c90c7961c09f967a8136fb267ddd9 | d9cd597c2a9780a5792c765219fd184c050d08dd | refs/heads/master | 2023-01-08T03:57:45.728737 | 2020-11-12T16:49:52 | 2020-11-12T16:49:52 | 312,334,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | import os
import sys
import log
from datetime import datetime
from Alg import Alg
# create and configure the logger - starting to log...
logger = log.setup_custom_logger("root")
# this function will read a file by given path + filename.
# return the file data.
def read_file(file_name):
if not os.path.isfile(file... | [
"Or6699@gmail.com"
] | Or6699@gmail.com |
a2cfdb50959a416f7ec8dee921eea567885f9f88 | c04bae82e07fde8890a6a022d538527607f359b4 | /scripts/ssc/run_simulator_main.py | 8ff14943c1c36e34cb3a8958388b21ed92a793fb | [
"MIT"
] | permissive | MrBellamonte/AEs-VAEs-TDA | 0a4ede88fda58f6255d16be1450e18d672abde74 | 8881b5db607c673fb558f7b74ece27f244b16b77 | refs/heads/master | 2023-03-31T15:58:59.909973 | 2021-03-30T09:08:26 | 2021-03-30T09:08:26 | 273,490,349 | 2 | 0 | MIT | 2021-03-30T09:08:27 | 2020-06-19T12:37:25 | Python | UTF-8 | Python | false | false | 3,056 | py | import argparse
import importlib
from src.competitors.train_engine import simulator_competitor
from src.data_preprocessing.witness_complex_offline.compute_wc import compute_wc_multiple
from src.models.TopoAE.config import ConfigTopoAE, ConfigGrid_TopoAE
from src.models.TopoAE.train_engine import simulator_TopoAE
from... | [
"schsimo@ethz.ch"
] | schsimo@ethz.ch |
e0b7ccaf0a72065042e2ca805bcef0880b2bcbf2 | b042af0919633fc803ed22445c58ddb789e0e2e8 | /mysite/settings.py | 4b3c3dfc597f9b9f40edc49c8427cc3ef2cd0ff7 | [] | no_license | reverse-rif/my-first-blog_ | b4e5f5224acc64b34bd9fb5af02e3946f38e74dc | 0167b7b7ee855a5b8f186fb182ecb3904cf7a7d4 | refs/heads/master | 2023-09-04T09:07:42.662179 | 2020-06-20T06:56:09 | 2020-06-20T06:56:09 | 273,467,373 | 0 | 0 | null | 2021-09-22T19:19:20 | 2020-06-19T10:31:43 | Python | UTF-8 | Python | false | false | 3,167 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"whiteball134@gmail.com"
] | whiteball134@gmail.com |
7ec3bd9e7a52a28592c512f5f16d7cf00ca1ca32 | 8999a8455179348f6004c9b4988af7e7b579ac09 | /apps/agentes/admin.py | 8c502fa25011ec5f1b2a470260da0c3ac526bd8b | [] | no_license | raul398/Agentes-DRF | f2c8d158ddba77063674d3da317d6b844495b527 | 541e17ac714eca9d7515e3f32bb0c402dbecae1b | refs/heads/master | 2023-07-15T20:04:03.467585 | 2021-08-23T13:11:14 | 2021-08-23T13:11:14 | 394,701,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.contrib import admin
from apps.agentes.models import Agente
# Register your models here.
admin.site.register(Agente)
| [
"raul398@hotmail.com.ar"
] | raul398@hotmail.com.ar |
cc8c1dc17c6dc7c9d8e9a3a4843f16f02441610d | a9de27c6c8ca5d9a886b2f2a5243ec877490d133 | /django_server/dublin_bus/dublin_bus/views.py | be137225a100a33b157f182ba91389ce831c78e9 | [] | no_license | sachsom95/Dublin_bus_official | ba7cfbde2abe5fa9d35191c8131bc27ebfe5d245 | adc2f434f36d4373e48fc787b6789717860e62cf | refs/heads/master | 2023-08-09T11:33:18.677260 | 2020-12-22T20:04:13 | 2020-12-22T20:04:13 | 269,970,237 | 5 | 3 | null | 2023-07-23T19:22:58 | 2020-06-06T12:09:46 | Python | UTF-8 | Python | false | false | 164 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return render(request, 'bus/login.html') | [
"Stacy.Wandrey@ucdconnect.ie"
] | Stacy.Wandrey@ucdconnect.ie |
3bd486d899d983a5806e09c4acf7cbbd5d851437 | c3760e71f4024a9610bdde03de84a0c406601e63 | /baiTapVN2.py | a4123564c7dfa336d2714212fc79c931f3b2bea1 | [] | no_license | thuongtran1210/Buoi3 | 3abe6040b15f48cf04bb39da10b5588254d7514f | f62fbf75ff0a0de89acfd122a0a70be44162468a | refs/heads/master | 2022-12-28T22:26:21.288946 | 2020-10-04T16:43:23 | 2020-10-04T16:43:23 | 301,168,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # ----Bài 02: Viết hàm
# def reverse_string(str)
# trả lại chuỗi đảo ngược của chuỗi str
# --------------------------------------------------------------
def reverse_string(str):
return str[::-1]
str=input("Nhập số nghịch đảo: ")
print(f"Sau khi nghịch đảo: {reverse_string(str)}") | [
"you@example.com"
] | you@example.com |
283ec7094d2066e73b7b8118c739732840e5106e | 6600e15772fd1bdba625be1c66b76808145156d7 | /src/server.py | bbba03fd0e86ab7b960c4c6e50118ddb4033e6c9 | [] | no_license | ljm36/IS218 | 39dbd1191ddcfbf665ff6c43030939ea71ef41a3 | b98ea937917224ccd13f06a3a7f2906cf8080db7 | refs/heads/master | 2023-02-25T09:01:04.550026 | 2021-01-31T20:20:53 | 2021-01-31T20:20:53 | 334,735,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ... | [
"ljm36@njit.edu"
] | ljm36@njit.edu |
e2ee0e7695e88092fc028728b0f13572aeebd631 | 5b771c11e8967038025376c6ec31962ca90748dd | /insurance/insurance_reminder/urls.py | f00b885bb1c629961284a04ee7869785729b4efd | [] | no_license | AsemAntar/Django_Projects | 7135eca3b4bcb656fc88e0838483c97d7f1746e1 | 4141c2c7e91845eec307f6dd6c69199302eabb16 | refs/heads/master | 2022-12-10T06:32:35.787504 | 2020-05-26T14:43:01 | 2020-05-26T14:43:01 | 216,863,494 | 0 | 0 | null | 2022-12-05T13:31:53 | 2019-10-22T16:47:28 | Python | UTF-8 | Python | false | false | 222 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('guest_registeration.urls')),
path('users/', include('users.urls')),
]
| [
"asemantar@gmail.com"
] | asemantar@gmail.com |
d525a5d555cdc4eb9a16d1fc6c93981224dab8ee | 52603d10cf6a6354a7221d4f17ffa916a37c8099 | /blog/tests.py | 82e81c2a0f0ff841a15231dcfa4472445dc72985 | [
"MIT"
] | permissive | lawrencejews/practical_blog | 1af3f6822ca241b1e5f1314ad04b985ff4b5614e | a255cf16e2b90a80dfffbd359626d6e55c6782cf | refs/heads/main | 2023-06-04T11:23:40.292426 | 2021-07-05T13:02:13 | 2021-07-05T13:02:13 | 383,128,920 | 0 | 0 | null | 2021-07-05T12:10:56 | 2021-07-05T12:10:56 | null | UTF-8 | Python | false | false | 644 | py | from django.test import TestCase
from django.urls import reverse
from blog.models import Post
class PostListViewTests(TestCase):
def test_posts_visible(self):
post = Post.objects.create(
title="A title", body="Blog content.", slug="test-slug"
)
url = reverse("posts")
... | [
"nzakharenko@gmail.com"
] | nzakharenko@gmail.com |
97bf28d44eb56e2db89ea563b88b2b96c442c2c9 | 7e7ee0c5a5fa42bd8a49b78596a2a41d0ece3aa0 | /scripts/update_version.py | f451d7716551cdde8e3022509fe5dd6328f176c3 | [
"AFL-3.0"
] | permissive | Samasaur1/DiceKit | 957ab053cf9a61e60dbd829d80f2accb6462f090 | 5e29f5959818b3322f1905ad7b86c1d887d6b21b | refs/heads/master | 2022-08-20T04:35:31.306648 | 2022-06-30T01:46:13 | 2022-06-30T01:46:13 | 145,628,892 | 6 | 5 | AFL-3.0 | 2022-06-29T23:10:36 | 2018-08-21T23:08:45 | Swift | UTF-8 | Python | false | false | 529 | py | with open(".jazzy.yaml") as file:
data = file.readlines()
for i in range(len(data)):
if data[i].startswith("module_version: "):
version = data[i][len("module_version: "):] #I know this read call includes the \n and release.py does not, but they both work and don't add or subtract a \n. ¯\_(ツ)_/¯
... | [
"samgauck@icloud.com"
] | samgauck@icloud.com |
5adf626d2201014b65da87572d9d63be250e26a8 | ee906beb73872f749e8695bb39ae68398d8804d5 | /node_modules/truffle-hdwallet-provider/node_modules/web3-providers-ws/node_modules/websocket/build/config.gypi | 8c57bab9ca31abde9712da5ab68f827573bc1f46 | [
"Apache-2.0",
"MIT"
] | permissive | thamkrabok/lottery | d197fe57a30a0b06d2c249e4b7df9c1c6c1dc012 | 8745fcf7fd708ad782e181ee489cd745855e5aa8 | refs/heads/master | 2023-01-02T06:54:53.742135 | 2020-10-22T07:42:07 | 2020-10-22T07:42:07 | 304,222,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,570 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"firstgmk01@hotmail.com"
] | firstgmk01@hotmail.com |
85d08bd8390cacd47b28abaea8585359bc9b16a8 | d0d3d2b68c7ae9c6b374bf9cc574bb9571076d5e | /models/model_selection.py | a895a9ddcf5a3cc5fddf1da42389f67e5b9bfd99 | [] | no_license | gustafholst/hitmusicnet | f5fda86fef9c3c4684b97d432d4f2403e05b6458 | eb3c43845e5cedde0c19f907cbaf9d7d71530beb | refs/heads/master | 2023-03-20T11:03:56.730327 | 2020-01-27T16:01:22 | 2020-01-27T16:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,272 | py | def select_model(model_val=1):
model_args = {}
if model_val == 1:
model_args = {'model_name': 'model_1_A', 'model_dir': 'saved_models',
'model_subDir': 'feature_compressed',
'input_dim': 97, 'output_dim': 1, 'optimizer': 'adadelta',
'metr... | [
"="
] | = |
ee09e4846d4366ee9ce6d2b9a8057821bb13d1f6 | 5273840854120200ff7159dd2ece0e256ec3fb2b | /tpa/python/exercicios/ex3.py | 53761344f2ff0a915c99d220cbbd77e4f120be48 | [] | no_license | wellifabio/etec2020 | f365a3c1288ce9d5815445bfc9f141227c7e6954 | 37dc09844469f6d1e2ae40c74cc0c6fa896007f3 | refs/heads/master | 2023-07-12T21:48:51.228604 | 2021-08-25T12:05:15 | 2021-08-25T12:05:15 | 287,068,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import math
area = float(input("Digite a área em m2:"))
preferencia = int(input("Preferêcia 1-Galões ou 2-Latas:"))
if preferencia == 1:
areaGalao = 3.6 * 6
if area < areaGalao:
print("Um galão de R$ 25.00")
else:
totalGaloes = math.ceil(area / areaGalao) #Arredonta para baixo
print("Será necessário {... | [
"wellifabio@homail.com"
] | wellifabio@homail.com |
7eef183dd86a994371afc0bc047903e4da274cd2 | 97af030d489f0bcc2d6d6a6cd2790e2e870d1a81 | /master-node-docker/sentinel/config/vars.py | b8671d1c11b449749889a041e473700bb1b8c1f3 | [
"MIT"
] | permissive | sentinel-official/sentinel | 42b44484795fbf41974868f3d88d5e4be298f0a6 | d0238f4ff21d0a7f2d684f645e47cff85550f0d9 | refs/heads/master | 2021-06-02T01:48:27.452187 | 2021-04-13T16:50:00 | 2021-04-13T16:50:00 | 102,737,071 | 359 | 78 | MIT | 2021-04-13T16:50:01 | 2017-09-07T12:57:06 | JavaScript | UTF-8 | Python | false | false | 132 | py | # coding=utf-8
LIMIT_10MB = 10 * 1024 * 1024
LIMIT_100MB = 100 * 1024 * 1024
DECIMALS = (10 ** 8) * 1.0
SESSIONS_SALT = ''.encode()
| [
"ironman0x7b2@protonmail.com"
] | ironman0x7b2@protonmail.com |
0fba8a6c3f9302d8cd7becf379dc74a91b648a1d | c00724308e01332418f539d9a1bedca09696a253 | /setup.py | 5dd977999e08b6a1a2de1dfef1be84c049522d99 | [
"MIT"
] | permissive | felipecolen/pycep-correios | f8b53efc939e48ef71caedcf1136d941d18d4d89 | 7c6c734c4bd3205bdca2f9b1bf4463045a96c8ef | refs/heads/master | 2021-01-22T08:28:18.083461 | 2016-07-31T20:10:47 | 2016-07-31T20:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | # -*- coding: utf-8 -*-
# #############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2016 Michell Stuttgart
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software")... | [
"michellstut@gmail.com"
] | michellstut@gmail.com |
171ff73d95950b97c0b44dd41c05b24bcce992e8 | de4193a9497d188c885d97aadd726c25bac60a33 | /CHAPTER5/Exercise/14.py | 5184cd8373712c01d5d388bc423e9bdefdc55c21 | [] | no_license | seungbinpark/PoseEstimation | 58880bf679ebffc401479040b9446bece6519032 | 09a8d0d4daae04e0667a9da600bab38b9c22febf | refs/heads/main | 2023-02-26T14:39:37.952302 | 2021-02-03T13:34:45 | 2021-02-03T13:34:45 | 327,631,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | import numpy as np, cv2
data = [ 3, 6, 3, -5, 6, 1, 2, -3, 5] # 연립방정식의 계수들
m1 = np.array(data, np.float32).reshape(3, 3) # 계수들을 행렬로 생성
m2 = np.array([2, 10, 28], np.float32) # 상수 벡터
ret, inv = cv2.invert(m1, cv2.DECOMP_LU) # 역행렬 계산
if ret:
dst1 = inv.dot(m2) ... | [
"noreply@github.com"
] | noreply@github.com |
9b5dcebd34364bce9e5ca97dc4a27d74520df46c | ff765e6a7923fdbed7d3f4b6a1c6ad6c9080fd04 | /main.py | 83ed5d1e932e7617ecb69828d1d6c09d8d0ba6df | [
"MIT"
] | permissive | superxuu/pytester | f2733b815f6d108bfd450e6ac4631e8edb4e1eed | dbb3fec02c206b99346f4daf4e073c80ccf506c0 | refs/heads/master | 2020-09-13T16:30:37.328800 | 2020-06-10T04:02:36 | 2020-06-10T04:02:36 | 222,841,448 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import pytest
import os
import subprocess
if __name__ == '__main__':
pytest.main()
| [
"xuchao@ect888.com"
] | xuchao@ect888.com |
f96b6f6fb6ba491017ce77ff995c18a718e4bf44 | d2e8ad203a37b534a113d4f0d4dd51d9aeae382a | /django-koldar-utils/django_koldar_utils/django_toolbox/conf/DictSettingMergerAppConf.py | 82a1709767e65cb47e03e5e6f5f95f2f0dbda8dc | [
"MIT"
] | permissive | Koldar/django-koldar-common-apps | 40e24a7aae78973fa28ca411e2a32cb4b2f4dbbf | 06e6bb103d22f1f6522e97c05ff8931413c69f19 | refs/heads/main | 2023-08-17T11:44:34.631914 | 2021-10-08T12:40:40 | 2021-10-08T12:40:40 | 372,714,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | from appconf import AppConf
class DictSettingMergerAppConf(AppConf):
"""
A derived class of AppConf that automatically merge the configurations from settings.py and the default ones.
In the settings you should have:
.. ::code-block:: python
APPCONF_PREFIX = {
"SETTINGS... | [
"massimobono1@gmail.com"
] | massimobono1@gmail.com |
8fa79503f4f58d2adcdbced48fc2467f0be3d690 | b07909d4807dcff39df2fe7ea971e436538fe629 | /ParserWithStemming.py | 45d140b241ea506b4938b8dbd9e6c7e049e9dc78 | [] | no_license | hallelhel/Search_Engine | 50262b40e8048662adc333c677e356699d3c427a | 9fb34270998e77c27e3386959c851a4aa8698331 | refs/heads/hallel | 2023-02-14T04:37:29.458548 | 2021-01-11T09:39:35 | 2021-01-11T09:39:35 | 326,418,444 | 0 | 0 | null | 2021-01-11T09:39:36 | 2021-01-03T13:52:33 | Python | UTF-8 | Python | false | false | 7,276 | py | import string
from nltk import PorterStemmer, re
from parser_module import Parse
class Parse(Parse) :
def __init__(self):
self.stemmer = PorterStemmer()
super().__init__()
def text_operation(self, text):
"""
This function takes a list of tokenizes and manipulate every token t... | [
"shayehr"
] | shayehr |
dfece195db40ed9971ed5c97d130ee352f56a42f | 7cca7ed981242788687db90d8f3a108bbcf4c6f9 | /pretrain_CNN_fix_parameter_DQN/pretrain_env.py | 595cbcee11364c4d917fb8941b8da2fce8d8ac1a | [] | no_license | Ryanshuai/robot_round_catch | 7204e1cf9927672257d542afc7a00bd710f5e243 | 1175fb3df0ae7ec395b85dfbfbcbb60a79878024 | refs/heads/master | 2021-09-09T23:08:59.680793 | 2018-03-20T06:32:51 | 2018-03-20T06:32:51 | 94,294,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,212 | py | """
This part of code is the environment.
Using Tensorflow to build the neural network.
"""
import numpy as np
import tensorflow as tf
import pygame
from random import uniform
FPS = 90
SCREEN_WHIDTH = 672
SCREEN_HEIGHT = 672
# init the game
pygame.init()
FPSCLOCK = pygame.time.Clock()
screen = pygame.display.set_mod... | [
"1018718155@qq.com"
] | 1018718155@qq.com |
94b87b511f362d594c46d4bf154f3b80be688b18 | e0b19c15ae666ec1c80307fa9022af98b3c104ce | /Lista3/p.py | 4cd1923a8c0b5d8601ee70a14e5a194de7095d54 | [] | no_license | HenriqueTortura/StatPhys-2021 | 4ae845cdd6d25d12ded02ed0cc07bfbf84f48cd8 | 353735faa4ef534139833e2988f0c879a256c58d | refs/heads/master | 2023-07-17T20:57:24.755741 | 2021-09-02T19:19:53 | 2021-09-02T19:19:53 | 358,585,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import numpy as np
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
def Exponential(x, l):
return l*np.exp(-l*x)
def Standard(x, mu, sigma):
return np.exp(-((x-mu)**2)/(2*sigma**2)) / (np.sqrt(2*np.pi)*sigma)
# N = int(input('Quantidade de números uniformemente distribuídos: '))
N = 1000... | [
"henriquetortura.ht@gmail.com"
] | henriquetortura.ht@gmail.com |
f21e25d83fab7e5af51a18179308cd9d644e898a | 72867897ab91a6ff7b71342e4de1762d0b1af6a1 | /chapter4/exercise.py | e9cff0a2ac2cf1c5f09e09cfcbfcfded61fb66f6 | [
"Apache-2.0"
] | permissive | llv22/python3_learning | ce3c47f11b07e8bf8a263f2f7866372a8dc708cd | 2b8fa244ce1b72b6e0ac3445adef64306bd25dcf | refs/heads/master | 2020-11-29T11:52:28.520627 | 2017-04-11T15:21:57 | 2017-04-11T15:21:57 | 87,495,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | """
Learning python3 exercise 4.13 for basic type
Reference:
Author: Orlando, Ding
"""
def main():
"""
execrise 4.13.
"""
# question 1
guess_me = 7
if guess_me < 7:
print('too low')
elif guess_me == 7:
print('just right')
else:
print('too high')
# question 2
... | [
"xiandao.airs@gmail.com"
] | xiandao.airs@gmail.com |
852db29d4005b609e6c31d86a58ec5ae8d2704a3 | da7ba5573a9ad5e44f8efb0d7f00ab9295dbae13 | /d盘/venv/bin/runxlrd.py | ed96664ad78db2c2eba786c046a338e0f2482304 | [] | no_license | wangxuanlin/linux111 | 6d60bd24a75a89d8d9d3d1ba74133e85f725b516 | 76e15d9446cc681059569b6b0a15b12b283b228b | refs/heads/master | 2022-02-02T08:23:04.254504 | 2019-07-05T09:26:14 | 2019-07-05T09:26:14 | 177,509,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,309 | py | #!/Users/admin/Desktop/d盘/venv/bin/python
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the contents of first and last row in e... | [
"admin@wangxuanlin.local"
] | admin@wangxuanlin.local |
24ce7b8bbd21d693526ad78f40a6d87e9513a479 | 2e4bddffb395d08d2318cb0c9f5ad861289802a0 | /home/views.py | 3bbf8adacf6f189deb5d519a52333da7dae62a54 | [] | no_license | Sureshgh197/Ultra | dfc0f3f301d4f22f2cfa94b5836a81017cc3c746 | 926188a2d1e33e38616ce7cb46977abc36dcab61 | refs/heads/main | 2023-07-05T18:39:27.865595 | 2021-09-02T05:48:10 | 2021-09-02T05:48:10 | 390,217,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,050 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse,HttpResponseRedirect
from . models import AppUsers,UserManager,UImages
from . forms import ImageUploadForm,LoginForm
from django.contrib.auth import login,authenticate
#from home.backends import MyBackend
from django.urls import reverse
f... | [
"srshbtt@gmail.com"
] | srshbtt@gmail.com |
33a0d040ea4a31d2f2465f0d3fe82d7e40898326 | f3a8bad1adf145d19e0ef96fb0586e7bd43cb4b7 | /python/soap_server2.py | e769875de5b9776b04c7f9433ff079282808d9c2 | [] | no_license | ybhuxiao/test | 49bfcb8f4513f7fc85f454f8e063e5828b19437f | 271592eb8306ffda9db3364fe1148892d1a245e6 | refs/heads/master | 2023-02-25T05:23:06.377185 | 2021-02-05T01:38:41 | 2021-02-05T01:38:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import soaplib
from soaplib.core.service import rpc
from soaplib.core.service import DefinitionBase
from soaplib.core.model.primitive import String, Integer
from soaplib.core.server import wsgi
from soaplib.core.model.clazz import Array
'''
This is a simple HelloWorld example to show the basics of writing
a webse... | [
"827992983@qq.com"
] | 827992983@qq.com |
7f04711de20fc32078704e4e85796d2d378d6bf2 | 830345a74d400ce6484acf6cf8f536195000a0b6 | /Termin4/hausaufgabe4_2_korrekt.py | 34ef6f6cd2b0ebd16b5587b64f263e8fda7f594b | [] | no_license | haukegithub/computerVision1920 | 51757fd0ab8825f040efae814e859ed24ac0dfc4 | f233b70717e9de53e07066ebbda34154c64b28b5 | refs/heads/master | 2022-03-18T04:27:40.515636 | 2019-12-11T14:46:42 | 2019-12-11T14:46:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 11 21:35:53 2019
@author: Christian
"""
import numpy as np
import glob
from skimage.io import imread
from skimage import measure
import matplotlib.pyplot as plt
from skimage import filters
def print_info(est_labels, val_labels):
print("berechnete Klassifizierung:")
... | [
"noreply@github.com"
] | noreply@github.com |
425a35d7f2a14880501a7ed5d0ae0c3945f95335 | 1ca1799ce0abe12e37cf2893af2dd6fcf784317c | /env/bin/easy_install-3.6 | 134cb8672b89aa373c27aab0a51561c722a4558d | [] | no_license | anubishere/projekt_eita15 | 93c542e8c10ada5bc469c8e5cdca48506405f872 | d1bc9b3e11917d6aaf942a95bb2bbdd370e91c45 | refs/heads/master | 2021-02-16T05:36:26.032675 | 2020-03-04T18:10:56 | 2020-03-04T18:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | 6 | #!/home/victor/skola/kurser/digitala_system/projekt_eita15/env/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())
| [
"victorkrook96@gmail.com"
] | victorkrook96@gmail.com |
3450cd574d0c8b06db9942599f083686b031377c | 85aa338afa74a51ab0e4fce83310d56db1515d90 | /homework2/02-feature-inversion/homework2/q2.a.diff/common.py | 0357b4030f4933d8daba4056256746b716cd066d | [] | no_license | ILoveStudying/PKU-Deep-Learning | 96116a5643daae4a94d4b9f404207159583fa901 | bc9ae46cb933fc0d9f2d10fec559c43a1512b684 | refs/heads/master | 2020-07-06T11:25:41.369978 | 2020-06-16T04:19:57 | 2020-06-16T04:19:57 | 203,001,612 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =======================================
# File Name : common.py
# Purpose : configure the settings of 02-representation-inversion
# Creation Date : 2019-03-11
# Last Modified :
# Created By : wangtian
# =======================================
import os
class Config:
... | [
"754070493@qq.com"
] | 754070493@qq.com |
075c4942408789b8ae3a5ace139fb53b405c1bb5 | 894d1dcd96436e71357187652bda80ba18bef171 | /nyt-spelling-bee-cheat.py | 874830ad3df54a4b96a06793c0d09f8ee1f5e394 | [] | no_license | tpshek/code | ae67b89229e9c9f13655d890037c59edba10e1f7 | 6edb93cd1d5e1ac68caa92a0cba73e28b675d9cc | refs/heads/master | 2021-08-27T16:22:42.234750 | 2021-08-01T19:18:11 | 2021-08-01T19:18:11 | 16,828,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # 07.30.2021 Solve New York Times Puzzle Spelling Bee
import sys
# Grabbed a list of English words from https://github.com/dwyl/english-words/blob/master/words_alpha.txt
# WORD_FILE = "/usr/share/dict/words"
WORD_FILE = "words_alpha_sorted.txt"
# TODO: Test for command line parameter
letters = sys.argv[1]
# TODO: Te... | [
"noreply@github.com"
] | noreply@github.com |
f73d54fdd4af870903d5e22391dbe348021ff86f | ffc1ab091d54635c96cd4ed6098c4bf388222f02 | /nipype/nipype-master/nipype/interfaces/afni/tests/test_auto_Qwarp.py | 2848fe97f8622750e68d5cf9d3e43276808c0a92 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bharathlakshman/brainintensive | fc7833078bb6ad9574e015004f2b3905c85b699e | eec8a91cbec29ba27d620984394d3ee21d0db58f | refs/heads/master | 2021-01-01T19:04:25.724906 | 2017-07-28T01:48:28 | 2017-07-28T01:48:28 | 98,499,935 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,792 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..preprocess import Qwarp
def test_Qwarp_inputs():
input_map = dict(Qfinal=dict(argstr='-Qfinal',
),
Qonly=dict(argstr='-Qonly',
),
allsave=dict(argstr='-allsave',
xor=['nopadWARP', 'duplo', 'plu... | [
"ibharathlakshman@gmail.com"
] | ibharathlakshman@gmail.com |
edb2a540151d4958fb9579f831a30f731284d00c | bde9a6e8a2aee89572dac4872b8263e42c13a142 | /gestalt/estimator_wrappers/wrap_r_ranger.py | 1a9202cf794666f79f719d6e7aa1ad2e5c8ce4f8 | [
"MIT"
] | permissive | chrinide/gestalt | b1ee66971007139b6e39b5c3dbd43a562bf5caee | f8f24d1fa879851ba989b244f71b348e995e221c | refs/heads/master | 2021-01-20T08:07:18.877738 | 2017-05-01T06:08:26 | 2017-05-01T06:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | # import sklearn BaseEstimator etc to use
import pandas as pd
from rpy2 import robjects as ro
from rpy2.robjects import pandas2ri
from rpy2.robjects.packages import importr
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
# Activate R objects.
pandas2ri.activate()
R = ro.r
# import the ... | [
"you@example.com"
] | you@example.com |
c37c91c40023f1a06fb1bd6c7e1ed18eb8ff178d | f7047aaf678a8b374f8fabfb3ef59ed64c3225ab | /ChallengeOne/test_firstchallenge.py | 017401d21ec8bfa880d6e3654c15620a0706d88e | [] | no_license | christophergeiger3/Tutoring-Pset | 3bd96858a7fb0104c26fa8a933615624538fa1e9 | 8e75d46c7c0bfbe4edf78f54e33752ee1a5a2b70 | refs/heads/master | 2020-12-30T16:47:04.346402 | 2018-03-08T03:10:19 | 2018-03-08T03:10:19 | 91,031,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | from FirstChallenge import *
# Note! If this file does not run in pycharm, go to the folder containing this file, right click,
# select "Mark Directory as" and then "Sources Root". Things should start working from there.
# Addition
def test_add():
test_cases = [(1, 2), (2, 3) , (3, 4) ,(0, 0), (10, 19)]
for ... | [
"christophergeiger3@gmail.com"
] | christophergeiger3@gmail.com |
0532e8d3820c2ec3f0abafb5fdf3775a38cebb9a | 039b9ac0cc6778cd71fb1ac55003da5e4eb6f792 | /api/src/tests/unittests/dummy_test.py | 35b15801d58771e46d7d508149e839dab2827ec3 | [
"MIT"
] | permissive | equinor/forecast-of-response | fa6b29fc2ed573e8828fac794f1156becc26fd21 | 9a5f53250973dc2704b666f15327e00a7841ee3e | refs/heads/main | 2023-06-10T11:58:22.188618 | 2021-06-28T10:04:52 | 2021-06-28T10:10:58 | 347,088,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import unittest
class TestTheTests(unittest.TestCase):
def test_that_a_test_is_ran(self):
pass
| [
"stigofstad@gmail.com"
] | stigofstad@gmail.com |
8aed1bf6b104b675b9b68fcc443dbae2a8e36ef4 | b9633e91c5f41ff1115a3bf8d91166fb2080ef3c | /pyminutiaeviewer/minutiae_reader.py | 172644d5a10d73257a88a73e25ec7c1d33f51e60 | [
"MIT"
] | permissive | IgniparousTempest/py-minutiae-viewer | 727e40a2430d4d0389460d07f0c37d3adcf83b84 | 0eb5f1f5286895e5a10dc13c84815692ec0d46f2 | refs/heads/master | 2021-01-19T05:50:13.553446 | 2019-12-05T21:00:22 | 2019-12-05T21:00:22 | 100,585,582 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,110 | py | from enum import Enum
from typing import List
import re
from pyminutiaeviewer.errors import CorruptFileError
from pyminutiaeviewer.minutia import Minutia, MinutiaType
class MinutiaeFileFormat(Enum):
NBIST = "NBIST"
MINDTCT = "MINDTCT"
SIMPLE = "SIMPLE"
XYT = "XYT"
class MinutiaeReader(object):
... | [
"cr.pitcher@gmail.com"
] | cr.pitcher@gmail.com |
5b6a1952a7402a751b890d9db417507c16d0a4f5 | 409a9bfba752821a2855b44b6bc5eded41837b56 | /neural_image_captioning/generator_modified.py | a90db364816289f3c386b5e3c799a48e1ba1fdd1 | [] | no_license | jiaxiangen/AMNN | 523de45cb539be9da762cc09a7365d88bff548e3 | 326735e92dc29367d3dc9f398e3cde128fb59b9f | refs/heads/master | 2022-03-25T22:51:24.035419 | 2020-01-06T13:13:13 | 2020-01-06T13:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,170 | py | import pickle
import random
import h5py
import numpy as np
import pandas as pd
class Generator():
""" Data generator to the neural image captioning model (NIC).
The flow method outputs a list of two dictionaries containing
the inputs and outputs to the network.
# Arguments:
data_path = data_pa... | [
"noreply@github.com"
] | noreply@github.com |
c4b4fd5918036adb66560750f701e33627d72899 | 235927d32b93c281e07804358344a394e6dc9f90 | /run/en_de/train_MMtransE_15k.py | 8a14e2942db38759dbf3b1bef5158aceeeec3a14 | [
"Apache-2.0"
] | permissive | Aniruddha-JU/MTransE | e437335beaa813c68aa960228c7478af5d75534e | 96d17a266c97831a1c7e854320b222605fb9547c | refs/heads/master | 2022-02-26T00:00:40.590879 | 2019-12-01T19:13:38 | 2019-12-01T19:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '../../src/MMTransE'))
from MMTransE import MMTransE
model = MMTransE(dim=75, save_dir=os.path.join(os.path.dirname(__file__), 'model_MMtransE_person_15k_ed.bin'))
model.Train_MT(epochs=400, save_every_epochs=100, languages=['en', 'de... | [
"ccolondelta@gmail.com"
] | ccolondelta@gmail.com |
4257890a7490b2def67115c1e7771a15801e77b2 | ae652aec76faffce67e85922d73a7977df95b3b6 | /util.py | e7527c2069a3f57700ad3025738fe7bf868ece28 | [] | no_license | wwq0327/note | e75964e0539a9efce0889b7774f78da0bcdff7fb | f893e851cb85b974bfbf5917a7fa5845b2f20eac | refs/heads/master | 2020-05-18T07:57:33.446712 | 2011-11-13T13:40:07 | 2011-11-13T13:40:07 | 2,765,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
util
~~~~~~~~~~~~~~~~~~~~
:date: 2011-10-17
"""
def lines(file):
'''在文本的最后一行加入一个空行'''
for line in file: yield line
yield '\n'
def blocks(file):
'''收集遇到的所有行,直接遇到一个空行,然后返回已经收集到的行。
那些返回的行就是一个代码块
'''
block = []
... | [
"wwq0327@gmail.com"
] | wwq0327@gmail.com |
34b43c7948740fd031d6ed93a6a9c056d0e1390f | b000641b2656f29b367257e8613c0a09339ec2c7 | /assignment2_ws/catkin_ws/src/assignment_2/src/circle.py | 688395ade6bacd3442ae4a7b711c8d655eddf878 | [] | no_license | ManikandaBalajiVenkatesan/AuE893Spring20_ManikandaBalaji_Venkatesan | ee140ac925ad9cb1271f09b3b345ca8db4c10a81 | 9db5ad6b45f5504be0211f741c9a2ab3fd124c0b | refs/heads/master | 2020-12-19T12:01:12.739407 | 2020-01-31T04:28:32 | 2020-01-31T04:28:32 | 235,726,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from turtlesim.msg import Pose
if __name__ == '__main__':
rospy.init_node('circle_mover')
# rospy.loginfo("Enter circle radius")
vel_pub = rospy.Publisher('/turtle1/cmd_vel', Twist , queue_size =10)
vel_msg = Twist()
# r = input("Enter circle ... | [
"manikav@clemson.edu"
] | manikav@clemson.edu |
34a77322f43e5ec70d4fc9b8b6aafe1b62dd8da3 | 2951b46223f88d50f76b7a96366433a43258eb20 | /venv/bin/chardetect | 9fb2f66f99971c03ce45407913fc2324784325f0 | [
"MIT"
] | permissive | Ventrify2018/coffee | edbae825af90540cf728921f3fc6db06462b7996 | 05d11d8dc8c3029128a41d7f9e7b463c7f6266bc | refs/heads/master | 2020-08-26T21:06:59.553593 | 2019-10-24T21:51:59 | 2019-10-24T21:51:59 | 217,148,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/Users/wafflecake/PycharmProjects/coffee/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nyevtukh@gmail.com"
] | nyevtukh@gmail.com | |
88d30444b7a183114d9bca18cfc8b950136bddf8 | 7d9bfe580cdc5030abea0d8282ae431942b7d0fb | /src/Astropedia/drawing/views.py | 2c37f81f6f672434583f84eb0d780a363e77fdf7 | [] | no_license | ryselis/Astropedia | 1594772036ca73544f5479749d46ddb7e6f423e6 | 1feb48ef5022a13db16f885985f009832be724d7 | refs/heads/master | 2021-01-13T02:03:05.359429 | 2014-05-26T13:10:00 | 2014-05-26T13:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.shortcuts import render_to_response
# Create your views here.
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponseRedirect
@csrf_exempt
def star_map(request):
return HttpResponseRedirect('http://paukau.stud.if.ktu.lt/ftp/ASTROPEDIA/BUILD.html')
@csrf_exempt
def ... | [
"djryse@gmail.com"
] | djryse@gmail.com |
4d8a89ad46d29396654cfe3031188c065de896cd | 781b9a4a1098f3ac339f97eb1a622924bcc5914d | /Exercices/S1_04_AlgorithmesDichotomiques/TP05c.py | f1d7d9d939d0575e3055f1da3e04e0ed8b98dfbb | [] | no_license | xpessoles/Informatique | 24d4d05e871f0ac66b112eee6c51cfa6c78aea05 | e8fb053c3da847bd0a1a565902b56d45e1e3887c | refs/heads/main | 2023-08-30T21:10:56.788526 | 2023-08-30T20:17:38 | 2023-08-30T20:17:38 | 375,464,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,235 | py | ##### TP 5
##### Recherche dans une liste triée.
## I.1
## Q1
# g=0, d=8
# m=4, L[m]=11 et 5 < 11, on pose g=0, d=3
# m=2, L[m]=5. On a trouvé x0
# g=0, d=8
# m=4, L[m]=8 et 8<11, on pose g=5, d=8
# m=6, L[m]=13 et 11<13, on pose g=5, d=5
# m=5, L[m]=10 et 10<11, on pose g=6, d=5. On s'arrête.
## Q2
def dichoto... | [
"xpessoles.ptsi@free.fr"
] | xpessoles.ptsi@free.fr |
99b41db89f11b4febf42259295aced193e8d6b43 | 5d8ca3e7b9ec2cc87dce70cf34b676be9e30c48e | /waterbutler/providers/googlecloud/__init__.py | 0c1bd61f45e4df3d6d63c85ab2f2f74a53862825 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | prisnormando/waterbutler | 66674778b7c07971d48f862a55e1f7deba18315e | 2cc62a1ef2c426238271d5d58a4473acecf0878e | refs/heads/develop | 2020-05-20T09:53:37.525659 | 2019-02-01T21:43:11 | 2019-02-01T21:43:11 | 185,513,584 | 1 | 0 | Apache-2.0 | 2019-05-08T02:32:15 | 2019-05-08T02:32:13 | null | UTF-8 | Python | false | false | 50 | py | from .provider import GoogleCloudProvider # noqa
| [
"cs.longze.chen@gmail.com"
] | cs.longze.chen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.