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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4d6293e90aede45adf69979c66dab05d9b5cd1d6 | e910316216862a7f4735c69379c02c5362714698 | /regression/2011_REGS/inspector.py | 1d6f179e89e65ae35bedc3ddb94a7e1c3a408e79 | [
"Apache-2.0"
] | permissive | egeriicw/watttime-grid | 514818fb069d3fb2ccb586c713c6d5ebab1ce3dd | 394f2775b371352c7580095f4f86c42238f44809 | refs/heads/master | 2020-06-07T13:47:27.934270 | 2014-06-05T05:11:13 | 2014-06-05T05:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,999 | py | #This file used to analyze data that exists locally. Data is downloaded seperately.
from numpy import array
import csv
import os
import pickle
path = "/home/human/WattTime/data/CA-2012"
path2= "/home/human/WattTime/data/CA-2012-Price"
plants = {}
pices = {}
#functions for preservation of abstraction
def get_name(ro... | [
"jessie.salas@berkeley.edu"
] | jessie.salas@berkeley.edu |
e21d699512069e63bf2f6782af55797cde8e2c7e | 5efab0d0b9dc889f213fae970f5df7220973ae16 | /demo.py | bd0241a8cafe15cc2009ae145e5d410bbcb639d1 | [] | no_license | milulya/Resonator-Quality-Factor | 4f946d63aaa0387ecdad0550f1a49f3e1cdae0a3 | 8bbdf04a82ec19f05711cf9dd78aa511925966dd | refs/heads/master | 2023-03-27T00:58:38.624627 | 2021-04-04T09:12:29 | 2021-04-04T09:12:29 | 330,783,597 | 0 | 1 | null | 2021-04-04T09:06:40 | 2021-01-18T20:49:05 | Python | UTF-8 | Python | false | false | 985 | py | import numpy as np
from os import path
import os
import matplotlib.pyplot as plt
import Resonator
import generate
import logger_module
logger = logger_module.getlogger('Q_Factor')
def single_measurement():
# path to csv file from vna
csv_path = r"C:\Users\physicsuser\Dropbox (Weizmann Institute)\Quantum Circui... | [
"ofirmilul@gmail.com"
] | ofirmilul@gmail.com |
4a02676f05851e61e51cbafb4135755a87455929 | e710fddf82f52f786e7d350ea3e87d46e0cc08d5 | /HELLOPYTHON/day10/mycrawl06.py | 8d6eabde3e9603ec4ad7f2dbc91b5ac26345ce8c | [] | no_license | larlarru/eclipse_python_study | 2a4eeb5976e619c4141ac4e468869a9871bea4bc | 250e0043de29ead0bb0581e6776934a0333d5ccb | refs/heads/master | 2023-04-04T21:08:13.635782 | 2021-04-23T02:22:27 | 2021-04-23T02:22:27 | 358,185,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("https://vip.mk.co.kr/newSt/rate/item_all.php")
bs = BeautifulSoup(html, "html.parser")
tds = bs.select(".st2");
# tds = bs.select(".st2 > td");
for td in tds :
# print(i.text)
s_code = td.find(["a"]).get("title")
s_name = td.... | [
"kgy9466@gmail.com"
] | kgy9466@gmail.com |
32ea31849e6bd4ef0acd560f4be8b565f98587d3 | f0b5238cf64ca46dafd8aab484278dd40feffa4d | /insta/migrations/0008_image_profile.py | 58a792198142bdfb3043e57e53faa92eb2d84078 | [
"MIT"
] | permissive | niklauspeter/instagram | 0e7ef612b4bd1301b8b1c146a281a645d5940f49 | 303e26f88d3cdcc9a7a8a05d41a6fa21bf91737e | refs/heads/master | 2021-09-09T14:44:48.293670 | 2019-05-23T15:56:49 | 2019-05-23T15:56:49 | 187,219,168 | 0 | 0 | null | 2021-09-08T01:00:34 | 2019-05-17T13:14:56 | Python | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-23 06:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('insta', '0007_remove_image_profile_photo'),
]
operat... | [
"oriokiklaus@gmail.com"
] | oriokiklaus@gmail.com |
678a1f669bff4a1dad00643c8001612102a4876d | 6669d9e2de3208af0d8b7e495f5e7cdad41b08af | /benovate/settings.py | 8b03e1d6582ca5d89af1c8e525c41e05db7a00cf | [] | no_license | glebuzheg/test_benovate | 8c08fd5a54d45fcdba728436ea507e375e4fc971 | 0f27d145501050610be11320510c45a3995002c5 | refs/heads/master | 2020-12-12T03:04:25.524090 | 2020-01-20T12:50:14 | 2020-01-20T12:50:14 | 234,027,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | """
Django settings for benovate project.
Generated by 'django-admin startproject' using Django 3.0.2.
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
... | [
"puper.inferno@yandex.ru"
] | puper.inferno@yandex.ru |
1ab9ea1bed1a976d6bb697422d25a5c207ee4545 | 46cca8009bdb8196087532d6ffe5ec3c7d71261c | /myacg/settings.py | a2c1944723c0add8f5f4c5fd402f90d5f22a897a | [] | no_license | Lingzy/myacg | fb021598ec145b0cae190e00ce2d8021aa9282fb | b744dbee1146064096a5d50b6e4457bfc9affd37 | refs/heads/master | 2020-03-06T21:14:21.273374 | 2018-03-28T03:13:15 | 2018-03-28T03:13:15 | 126,428,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | """
Django settings for myacg project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"lingzhengying@outlook.com"
] | lingzhengying@outlook.com |
9e2f3eb1ba2e6e3dd8940294c0074a16853e3b04 | 664fe19a2de4d202f5b4566078766b9b2a2d59c1 | /site_Api/Api_Web/admin.py | 64283c7e38ffc2ffe8603b90f79209a804b654bb | [] | no_license | bakhao/GoodProjects | 06feb59272c0e5efcf767edefead554cdd5298c6 | 0569162bcdd3f93a052d098376bf1003e0f8c1b8 | refs/heads/master | 2022-12-28T00:07:41.999102 | 2020-09-25T03:34:36 | 2020-09-25T03:34:36 | 298,458,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.contrib import admin
# Register your models here.
from . models import employees
admin.site.register(employees)
| [
"bakhao95@live.fr"
] | bakhao95@live.fr |
287a27055431ae2cfd7160f89e4dd3d0ccbd32f3 | 83d8d2afe72b3e394a886e1c7060410f1747c6ff | /todo/views.py | fbb4679dcf95333ec3d93164567db03e3cd97b30 | [] | no_license | oris-96/todo-notes | d35ef10a1ddc16df5ad9a949967a3bfaecec1d14 | 9a02ad6423ce5bd41afd218c79032ba4f7e4c0aa | refs/heads/master | 2022-12-08T03:33:09.330974 | 2020-03-14T03:55:04 | 2020-03-14T03:55:04 | 247,195,307 | 0 | 0 | null | 2022-11-22T05:23:47 | 2020-03-14T02:05:40 | Python | UTF-8 | Python | false | false | 3,897 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth.models import User
from django.db import IntegrityError
from django.contrib.auth import login, logout, authenticate
from .forms import TodoForm
from .model... | [
"iabdulkareem94@gmail.com"
] | iabdulkareem94@gmail.com |
322c2cfc3449d6bb6166f5187ba048115fb66187 | 8d51e653d0a90140975477ea6f6e2744ffc04093 | /student_management_app/admin.py | 28e7881e5745276b4a9bc2edcdd4132f7d0008db | [] | no_license | Bilal898/supercoders-student-ms | 6186c0ec3aea22298f811f2c3b3bdc89d74cb46b | 32eb924502ae74891a3dd596ac9727870399eb23 | refs/heads/master | 2023-08-18T09:44:10.799471 | 2020-05-25T07:58:23 | 2020-05-25T07:58:23 | 266,454,049 | 0 | 0 | null | 2021-09-22T19:09:36 | 2020-05-24T02:15:04 | JavaScript | UTF-8 | Python | false | false | 222 | py | from django.contrib import admin
from .models import CustomUser
# Register your models here.
from django.contrib.auth.admin import UserAdmin
class UserModel(UserAdmin):
pass
admin.site.register(CustomUser, UserModel) | [
"bfhamid@gmail.com"
] | bfhamid@gmail.com |
d3d1ba274df3c9e32d65b77b40f7b3b416ade480 | ebcc3f199a4dc7763bb4984fc8a910d015b0c5d0 | /dht_temperature.py | 9e9f4a9f3703f52d6e30aab16700eaefb40ef65a | [
"MIT"
] | permissive | BurntTech/homie4 | 31aba5be338cee46ce2dad6483821cd837aa6704 | 577bdb413778865d3be03e0149e1773b5d312d51 | refs/heads/master | 2021-07-13T12:12:48.528194 | 2021-02-03T19:02:41 | 2021-02-03T19:02:41 | 233,911,796 | 1 | 0 | MIT | 2020-01-14T18:48:18 | 2020-01-14T18:48:17 | null | UTF-8 | Python | false | false | 634 | py | # Raspberry PI
import Adafruit_DHT
import time
from homie.device_temperature import Device_Temperature
mqtt_settings = {
'MQTT_BROKER' : 'OpenHAB',
'MQTT_PORT' : 1883,
}
try:
temperature_device = Device_Temperature(device_id="temperature-sensor-1",name = "Temperature_Sensor 1",mqtt_settings=mqtt_setti... | [
"mike@4831.com"
] | mike@4831.com |
4013981c65eed2174946c158583b6552973aaab1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03473/s440381272.py | 619cef532b71e399863972fc78c98e9f050e46ca | [] | 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 | 92 | py | # -*- coding: utf-8 -*-
#----------
M = int(input().strip())
#----------
print(24+(24-M))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
891c43643af4e4de0fae22eee808d95454e31074 | e7504a4acdf4e80bd57d3beb1411ed6db45b58c1 | /slate/__main__.py | c7a7f65b1a5993eba873d5b916897632b41f63ca | [
"ISC"
] | permissive | jkkummerfeld/slate | 23fd32129c73c2de2150a35bc5f0bfe52c121d93 | c49eaa45268fd80436d08ef3f4000b72fbd7faba | refs/heads/master | 2023-05-11T05:17:23.020595 | 2023-05-07T10:34:23 | 2023-05-07T10:34:23 | 59,550,720 | 82 | 15 | ISC | 2023-04-19T07:02:32 | 2016-05-24T07:33:39 | Python | UTF-8 | Python | false | false | 66 | py | from .annotate import main
if __name__ == "__main__":
main()
| [
"jkk@berkeley.edu"
] | jkk@berkeley.edu |
f43590c652911bad8adec58b56b9c1fc8becad8b | 8f15a70833480bcdf0c54e62d7f919b7d6db953c | /cyy_extract_edg.py | 291aa4b1cb8aa37d68e081036d27fe6a5442f963 | [] | no_license | cyy-hub/Deecamp | 3d4f70a802df9210b14ca31f85fba1a1fe2aa6ca | 1ba0a190f0c6fd9739ba0f1e88cc649cd0d14b1f | refs/heads/master | 2022-12-27T06:23:10.201344 | 2020-08-31T09:12:40 | 2020-08-31T09:12:40 | 287,190,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # cyy 20200726 提取图像的边缘占比
from __future__ import print_function, division
import os
import shutil
import torch
import pandas as pd
from skimage import io, transform
import numpy as np
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
import torch.o... | [
"chenyingying2018@ia.ac.cn"
] | chenyingying2018@ia.ac.cn |
e315c8fb008698d36a31713a17567010a9d3dd03 | 251119e70ef280fc7c7dcf1febfc7e01d1932c72 | /exampleHbb.py | 0de40d9c20f08e235d7cde8cd4a7d86d2df5e4c2 | [] | no_license | leonardogiannini/Alphabet | be2762578eaa347f900117579282f7d855a6d5cb | 8bf1e338585b2021d646eb4487459304efc7c190 | refs/heads/master | 2021-01-17T00:39:50.818411 | 2015-12-09T01:44:43 | 2015-12-09T01:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | # TEST AREA
import os
import math
from array import array
import optparse
import ROOT
from ROOT import *
import scipy
# Our functions:
import Alphabet_Header
from Alphabet_Header import *
import Plotting_Header
from Plotting_Header import *
import Converters
from Converters import *
import Distribution_Header
from Dis... | [
"oshersonmarc@gmail.com"
] | oshersonmarc@gmail.com |
e9bc5465c930dd2d172634b613cc53ccd8def43b | 087fd153ee32351e6a3aa06da1c026b3eda75105 | /Pruning+Splitting/eventmakerTryServer.py | 7bc46635f8fcac9ab5edeb9689f5f061a34b057f | [] | no_license | lara-martin/ASTER | c05e36591f12c0fa79b0d5b31e70b0f2d8d0457d | 68fc5e3ef81e914b71fb3320a4adbaeb9183f6c9 | refs/heads/master | 2022-03-11T11:57:17.855036 | 2022-03-03T21:59:56 | 2022-03-03T21:59:56 | 127,340,869 | 30 | 12 | null | null | null | null | UTF-8 | Python | false | false | 23,489 | py |
# This is a class to extract events from sentences, store words in a working memory and ?translate back to human readable
# sentences from partially generalized sentences.
from nltk.tag.stanford import StanfordNERTagger
import nltk.tag.stanford as stanford
from nltk.internals import find_jars_within_path
from nltk im... | [
"noreply@github.com"
] | lara-martin.noreply@github.com |
e69ce4d7b1736031c237b11fe94998dcab8f9803 | c1d97105b3fd98b4d8d54d29613b933d666a8621 | /index.py | bfcc1827fff3994db7ff651b8bb00a6391d2cbf6 | [] | no_license | Seh83/DOX-BOX | 755641e06ffc2a2fc37b376be02c3ec7d755d188 | ee3774556c7f2d691efb40f35ef8938666dd1e99 | refs/heads/master | 2023-01-30T22:20:16.212253 | 2020-12-16T21:22:37 | 2020-12-16T21:22:37 | 322,094,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Welcome to Free AI Page"
def route_photo():
return "This is A Photo App."
app.add_url_rule('/photo', 'route_photo', route_photo)
if __name__ == "__main__":
app.run(debug=True)
| [
"sviras@intellicentrics.com"
] | sviras@intellicentrics.com |
73d12c61155fbb679cf6f632c756bc0889002274 | c2f92d75d235ff5ed7b213c02c4a0657545ba02f | /newchama_web/2/newchama/tools/test_mq1.py | dd2c58bbbefb696a43f1e8523ee83b7da1bbcca3 | [] | no_license | cash2one/tstpthon | fab6112691eb15a8a26bd168af3f179913e0c4e0 | fc5c42c024065c7b42bea2b9de1e3874a794a30d | refs/heads/master | 2021-01-20T01:52:06.519021 | 2017-04-14T09:50:55 | 2017-04-14T09:50:55 | 89,338,193 | 0 | 1 | null | 2017-04-25T08:46:06 | 2017-04-25T08:46:06 | null | UTF-8 | Python | false | false | 847 | py | #encoding:utf-8
import os,sys
sys.path.append(os.path.abspath('../'))
sys.path.append(os.path.abspath('/var/www/newchama'))
import newchama.settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newchama.settings")
import pika
import pickle
from django.template import loader, Context
connection = pika.BlockingConn... | [
"yxlz_0910@163.com"
] | yxlz_0910@163.com |
9d797b6bf30c71bc954c45080f6140a0820a27a0 | ebb381aa9f914891dd50e038dcd50750db2e9fc0 | /option.py | f10814aeb66162c43690e541ff57112e1b6260c3 | [] | no_license | NeonRice/Food-Ration-GraphDB | b97d4ca1dcfeeaa6b78e7b510671a70033d12e6f | f34855a1ed916a116dc70db9b0204e3d193ad591 | refs/heads/main | 2023-01-30T17:28:57.296968 | 2020-12-06T19:29:01 | 2020-12-06T19:29:01 | 319,113,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | class Option():
def __init__(self, optionName, optionFunction):
self.name = optionName
self.function = optionFunction
def drawOptions(listOfOptions):
optionNr = 1
for option in listOfOptions:
print(optionNr, option.name)
optionNr += 1
def clearOutput():
print("\033[H\0... | [
"zanas.kovaliovas@inbox.lt"
] | zanas.kovaliovas@inbox.lt |
d275dea089f82589d64b6e34389c57e1f4171fe1 | 9863e755bffd5234078624b050b98fcbf7770ae4 | /208dowels_2018/208dowels | 87819a5c1c4490e324f8dbc688e0ee0a39ae6892 | [] | no_license | Thibautguerin/EpitechMaths | 271b49b44d5d65c541d471353548aca312376576 | 962cfa11afcaf3f47849e416af4324759dfc49ac | refs/heads/master | 2021-01-30T21:53:01.436849 | 2020-02-27T11:56:26 | 2020-02-27T11:56:26 | 243,507,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,294 | #!/usr/bin/python3
import re
import sys
from math import *
table = [[0, [99, 90, 80, 70, 60, 50, 40, 30, 20, 10, 5, 3, 1]],
[1, [0.00, 0.02, 0.06, 0.15, 0.27, 0.45, 0.71, 1.07, 1.64, 2.71, 3.84, 5.41, 6.63]],
[2, [0.02, 0.21, 0.45, 0.71, 1.02, 1.39, 1.83, 2.41, 3.22, 4.61, 5.99, 7.82, 9.21]],
[3, [0.11, 0.58, 1.01, 1... | [
"noreply@github.com"
] | Thibautguerin.noreply@github.com | |
80ac7e056209733131087423968ac4d799eb9f70 | a2c53ee2fcd38c3b7f55a8d02726163a5385d9c1 | /TrustBeauty/urls.py | d252f931ee5100162b6c2055ceb12d00eab869a9 | [] | no_license | Bilalharoon/Django_website | dfd22ec2d7fcfe751be443778f3c381234d4d27b | e806b7c0fb63f517b06b0509557145a604e6e503 | refs/heads/master | 2020-03-15T15:01:18.919931 | 2018-06-11T04:53:09 | 2018-06-11T04:53:09 | 132,202,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | """TrustBeauty URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-b... | [
"Bilal.a.Haroon@gmail.com"
] | Bilal.a.Haroon@gmail.com |
24704315c3e1fb17fbc22106ab15b9b1f91a59a6 | bffac6af0c77d1c0d24e443be51df0d98418ef28 | /basicbert.py | df522565b8633374f16d8eed40b865518b8876eb | [] | no_license | neuron-whisperer/basicbert | ff0bdd28968d49f15f714f0979871e5b35fbfb13 | 4ac928283abf2ea91110a1da66024a7942347fdd | refs/heads/master | 2022-11-10T18:35:59.409892 | 2022-10-19T12:47:08 | 2022-10-19T12:47:08 | 259,193,688 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,957 | py | # basicbert.py
# Written by David Stein (david@djstein.com).
# See https://www.djstein.com/basicbert/ for more info.
# Source: https://github.com/neuron-whisperer/basicbert
# This code is a wrapper class for the Google BERT transformer model:
# https://github.com/google-research/bert
import collections, csv, ctyp... | [
"sfsdfd@gmail.com"
] | sfsdfd@gmail.com |
977bf58b657f4da6b65f56aec0399bd4560c5c1a | ca6ef186fc1e3d47fd3124f792dc08e5b0119fc2 | /software/fish_head_tail.py | eac45b5a2a93637be13bc677bdeb4278cb92a1d1 | [
"MIT"
] | permissive | mnr/rubberfish | 3945172b4296aea2bf7fc3396142cc529398e3b9 | b9e20524103c6108a088cdd812bf51335c99d151 | refs/heads/master | 2020-04-13T21:41:49.363433 | 2017-07-19T16:54:24 | 2017-07-19T16:54:24 | 22,121,857 | 10 | 0 | null | 2017-01-16T23:49:10 | 2014-07-22T21:40:08 | Python | UTF-8 | Python | false | false | 375 | py | #!/usr/bin/env python3
"""
watches to see if the fish is talking, then changes the voltage meter
runs in background. Started in fish_config.sh
"""
from bmbb_fish import BmBB
from box_controls import boxControls
my_fish = BmBB()
my_box = boxControls()
while True:
if my_fish.get_fishIsSpeaking():
my_box.se... | [
"mark.niemannross@gmail.com"
] | mark.niemannross@gmail.com |
a237b7dc8f4598b5dd4314dbd35ab546a0b10929 | 4c710ef7338d1f46638e1e8f9851302f9c21d882 | /logic.py | 2fa5f5739792103f6b943de87bff6122c4bf3efb | [] | no_license | jwaang/SecureDataServer-1 | 2dbef77f08503d9a121eba441b6cfa30929b5ad6 | c18f10cf3ed24657ae7758b5cb3d34007698b294 | refs/heads/master | 2021-07-20T12:15:31.134732 | 2017-10-30T02:31:16 | 2017-10-30T02:31:16 | 107,807,730 | 0 | 0 | null | 2017-10-21T19:00:19 | 2017-10-21T19:00:19 | null | UTF-8 | Python | false | false | 10,310 | py | import rbac.acl
import rbac.context
from passlib.hash import pbkdf2_sha256
import json
# Admin
isAdmin = False
adminPass = "pass" # ./server [PASSWORD]
# Accounts
accounts = {}
# Global Variables
dataDict = {}
# Output
output = []
####################################
class Principal:
r = rbac.acl.Registry()
... | [
"jonathan.wang1996@gmail.com"
] | jonathan.wang1996@gmail.com |
e708e2bc23a042d638795454e5cbf23a611b6d74 | b1b5f508ad98093d53d0ecec41aaabfd24219271 | /ClassOne.py | 6a81026a29ff8912ab15dfb592f2c2ba0ef6582e | [] | no_license | avle/pyth | c44070b1c18b676dd66b70113af1a01f2db3d7a7 | 3097abd1794afd5c5653210be2f1910901d1ed0e | refs/heads/master | 2021-01-18T21:59:06.031238 | 2016-04-21T21:47:01 | 2016-04-21T21:47:01 | 34,467,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #ClassOne.py
class Calculator(object):
#define class to simulate a simple calculator
def __init__ (self):
#start with zero
self.current = 0
def add(self, amount):
#add number to current
self.current += amount
def getCurrent(self):
return self.current | [
"avle@users.noreply.github.com"
] | avle@users.noreply.github.com |
44176b9e3a29430ef926faa46a9e8d46b10569bd | 4470d594aedd6b040e5e2fde0f47b62fdd9d4d8b | /suite/call_uia.py | 918f78f409d69c6788ceccf2227a976f2186df6d | [] | no_license | erickgtzh/TestAutomation | cf6fd9faed282a39a5a46e54e825bda1336a9067 | db595739129133b7bbfb29e8054912269466321c | refs/heads/master | 2022-12-13T20:40:10.442664 | 2020-04-18T17:25:04 | 2020-04-18T17:25:04 | 252,847,513 | 0 | 0 | null | 2022-12-08T07:27:50 | 2020-04-03T21:42:36 | Python | UTF-8 | Python | false | false | 847 | py | import time
import datetime
import pytz
from models.utils import call_adb_number, wait, read_serial, call_number, open_app, wait_process_completed
"""
by Erick Gtz
04/15/2020
1.2 script
script version: 1.1 (04/11/20)
script version: 1.2 (04/15/20)
script version: 1.3 (04/17/20)
"""
def suite_info():
name = 'cal... | [
"erickgtz@gmail.com"
] | erickgtz@gmail.com |
9e8d3f8731b79d65892f0c2bad6efdb6405416fd | b9467e7cb0862bc118c3b8520f3ac2fcddaee4dc | /wwl/acme_tiny.py | 0a99dcb5c3af34d625b75484639a0005892c5088 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | chrispollitt/WebApps | a4d6f61d1c0f782aa5dc14b0605ba22c9e8c5a91 | 393a629089b1137246ac769cac92b48829624089 | refs/heads/main | 2022-06-24T18:12:50.583770 | 2022-06-11T19:10:09 | 2022-06-11T19:10:09 | 211,679,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,350 | py | #!/home/whatwelo/bin/python3
# Copyright Daniel Roesler, under MIT license, see LICENSE at github.com/diafygi/acme-tiny
import sys
sys.path.append('/home/whatwelo/user_python')
import argparse, subprocess, json, os, base64, binascii, time, hashlib, re, copy, textwrap, logging
from urllib.request import Request
from myu... | [
"chris.pollitt@gmail.com"
] | chris.pollitt@gmail.com |
c1ff72419dd8e5a016c36196ff1c779973dbcf82 | 7657ed7a669bd83e34cb1f255ae3bf808dc91eea | /Recursividad/principal.py | 3b3fc41932c65ad52ad8705213df9b21a1e42694 | [] | no_license | LandaburoSantiago/algYed | 74cd0a6a144b9c7da34d42fafcc6fd869b0e415c | 263bc4b443d4007657217426338b9fa30a4b3908 | refs/heads/master | 2022-12-06T10:58:57.718549 | 2021-01-19T14:01:15 | 2021-01-19T14:01:15 | 257,422,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from ejercicios_recursividad import fibonacci, sumatoria, multiplicacion
from ejercicios_recursividad import potencia, invertir_caracteres
from ejercicios_recursividad import calcular_serie, binario, logaritmo
from ejercicios_recursividad import contar_numeros, invertir_numero
from ejercicios_recursividad import euclid... | [
"noreply@github.com"
] | LandaburoSantiago.noreply@github.com |
10ad2e384c2d173dfeba6a35c4be347cdbaa8814 | cffce3166931d4423c13e83bebbd6a9562512687 | /utils_motion_caption.py | 7b3b1e6128ff4e72df1bc3a8466c9d2a6f97ac81 | [] | no_license | supriamir/MotionCNN-with-ObjectDetection | 30c02e2fe497c23c1ff78f72fa691cda454b5d10 | 75ff61ab77b962e9e7c8b903fa88bd90c4fb9ca0 | refs/heads/master | 2023-03-20T01:38:03.878824 | 2021-03-12T15:46:51 | 2021-03-12T15:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,846 | py | # We heavily borrow code from https://github.com/sgrvinod/a-PyTorch-Tutorial-to-Image-Captioning
import os
import numpy as np
import h5py
import json
import torch
from scipy.misc import imread, imresize
from tqdm import tqdm
from collections import Counter
from random import seed, choice, sample
import sys
def creat... | [
"kiyohiko1011@gmail.com"
] | kiyohiko1011@gmail.com |
abc3466c4b4da8d8827529de73c25f1d0b2ff1ae | 0c445489dda6ba9e9d654a336474ab07691da0d2 | /models/detector.py | e4c1489400b361962ec7a552c608699058faa2ae | [] | no_license | honguyenhaituan/PrivacyPreservingFaceRecognition | 96b032764d2fe0fbe62315b180853f83edbf705e | 16afc9df67afafe626a42ae7a5173547e9adae21 | refs/heads/main | 2023-07-22T10:04:35.257501 | 2021-07-26T10:56:04 | 2021-07-26T10:56:04 | 377,740,398 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,509 | py | import torch
import torch.nn as nn
import numpy as np
from facenet_pytorch import MTCNN
from .retinaface.models.retinaface import retinaface_mnet
from typing import Tuple, List
class Detector(nn.Module):
def detect(self, inputs, isOut=False) -> Tuple[List, List]:
pass
class RetinaFaceDetector(Detector):... | [
"honguyenhaituan@gmail.com"
] | honguyenhaituan@gmail.com |
6be3535ef9783246a0cc7c5625369c2a73021113 | e9b216824fe518dfca24e955f5f40091ca761733 | /src/models/zz/urls.py | a94ce8a9a0c35bb19a4aaabe0a4ab8e8229d3a75 | [] | no_license | lovearch/mone | 1c4133c817b26fce2f81aff7b6eabee9dd00b4d5 | 45410f0a78300977e0bbd65a6070522c52cfb391 | refs/heads/master | 2021-04-18T21:38:52.191346 | 2016-05-03T01:50:01 | 2016-05-03T01:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'zz.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^user/', include(admin.site.urls)),
)
| [
"frederick.mao@gmail.com"
] | frederick.mao@gmail.com |
40e044e81e637b03ed8ab1ee0a0bc10e3b4661f4 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav372.py | 4181e4a1f1456cec22542057f7e400034e38635a | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = min(prey[1], prey[0])
temp1 = -1 * prey[0]
if temp0 != 0:
temp1 = prey[0] / temp0
else:
temp1 = temp0
temp0 = temp0 - prey[1]
if temp1 > temp0:
if prey[0] > prey[1]:
if prey[1] != 0:
temp0 = temp0 % prey[1]
else:
temp0 = prey[1]
else:
... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
a12826b3e4279c96c841a8877d4be667a5ecc1c1 | 50d98f8554f2e4be96b75b437d20009dedb6323c | /Quickstart Codes/set_cookie.py | 6982a41499b01a0d22f57bc39437caf7277551f8 | [] | no_license | ymgh96/Flask-Tutorial | 5db201f3e7de11b3de64ff6db1430d6fedbc440d | c215aaa91c36ef3858bbe3c78ce96cb6f796347d | refs/heads/main | 2023-04-16T13:50:33.345064 | 2021-04-26T13:21:48 | 2021-04-26T13:21:48 | 361,757,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from flask import Flask, render_template, make_response
app = Flask(__name__)
@app.route('/login')
def login():
resp = make_response(render_template("login_form.html"))
resp.set_cookie('username', 'the username')
return resp
| [
"noreply@github.com"
] | ymgh96.noreply@github.com |
0138f4b64ce3bf2edaf0de1e1dad816908f1c04f | 1f9cc39bed0f79d3b50d493cfbd19ef4a50012f5 | /src/screens/racescreen.py | 7b50306c7f497dc6c5384571be2f5e99452c02db | [] | no_license | codename-rinzler/goldmine | e511a07b2833a1eff7386b89a4da9420ac4a7cdd | 6170c2910100719e3d8ead61a93b44de48a1cf14 | refs/heads/master | 2020-05-20T08:19:28.800661 | 2013-05-27T08:11:24 | 2013-05-27T08:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import libtcodpy as libtcod
from framework.gameitem import GameItem
from framework.map import Map
from framework.messenger import Messenger
from framework.fov import FieldOfView
from framework.components.position_component import *
from framework.components.mapref import *
from framework.ui.menu import Menu
from framew... | [
"contact.rinzler@gmail.com"
] | contact.rinzler@gmail.com |
ec01171043887447e75a06730d92d479e2e43f8b | ba90fbcb5ccb008193a130aeca2c56ab34bb6e80 | /Week07/37.解数独.py | db9b7e5480006a27bb4b6445678cd9f098647a7f | [] | no_license | rfhklwt/algorithm010 | b477c4672d759ab402445289d7331c8aad8b3e6a | 95b1ab105316d9706121841b843e1c638a5ab700 | refs/heads/master | 2023-01-31T06:43:32.383761 | 2020-12-08T06:58:06 | 2020-12-08T06:58:06 | 273,680,370 | 3 | 1 | null | 2020-06-20T09:45:55 | 2020-06-20T09:45:55 | null | UTF-8 | Python | false | false | 1,696 | py | #
# @lc app=leetcode.cn id=37 lang=python3
#
# [37] 解数独
#
# @lc code=start
class Solution:
def solveSudoku(self, board: List[List[str]]) -> None:
row, col, box = collections.defaultdict(set), collections.defaultdict(
set), collections.defaultdict(set)
seen = collections.deque()
... | [
"rfhklwt@163.com"
] | rfhklwt@163.com |
b9533ae22c6a70939b28441379420cc7a1b533ae | e98e7b45d85273797cf9f15e92fbe685a05bde18 | /词条导出/zhidao_cron.py | 19c1cf5746d7e05af4e57c436af8f87088d3a9f0 | [] | no_license | wangdexinpython/test | 8d29d30e099f64f831b51265db7092d520df253c | a047148409e31b8a8140f2c13b959aa54ec14d0d | refs/heads/master | 2020-09-11T05:10:49.041795 | 2019-12-31T07:47:41 | 2019-12-31T07:47:41 | 221,948,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | #coding=utf-8
import pymongo,time,requests,json
import urllib.parse
import redis,pexpect,os
class zhidao(object):
def __init__():
mongo=mongodb()
mon_app=app_mongo()
def mongodb():
mongo = pymongo.MongoClient(
"mongodb://xhql:" + urllib.parse.quote_plus("xhql_190228_snv738J7... | [
"wangdexin@haxitag.com"
] | wangdexin@haxitag.com |
9b2e4b3ea21b2772a92f3f85240535e5f585ef8d | 0c416454274cb4bd17e528995d282033353bc0ce | /flaskTEST/blog_test/src/blog_test.py | 2340bdd473a6aababc05b20f12824bc6b120e755 | [] | no_license | LeeJeongHwi/Clearfile | caa8f43f40d6da5505e60a5f4c213a2aa44b38b3 | e1b5252bb2cc190f66a0c0a5f605c4974675c985 | refs/heads/master | 2023-03-03T12:42:36.443317 | 2021-02-17T05:08:51 | 2021-02-17T05:08:51 | 292,501,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from flask import Blueprint
blog_ab = Blueprint('blog',__name__)
@blog_ab.route('/blog1')
def blog():
return "TEST Blueprint" | [
"wjdgnl97@gmail.com"
] | wjdgnl97@gmail.com |
d0334ca4f66f3270093addbb8aca6c7308fca438 | dcae94ae7acc29942bc9ba2397db5acb1de43ba2 | /Mol2Vec/training.py | 53f708b2d2f5c6322fcf66a56ed254e73f22d4c9 | [] | no_license | hcji/GNN_CCS | cf6fa254f77c133c315c1635eee48d4845fba873 | 162ed46a28ad2112902bdc0bc869df3effbc5232 | refs/heads/master | 2020-09-21T09:51:03.878010 | 2020-01-05T07:50:24 | 2020-01-05T07:50:24 | 224,758,253 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 28 09:07:16 2019
@author: hcji
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from rdkit import Chem
from rdkit.Chem import AllChem
from gensim.models import word2vec
from mol2vec.features import mol2alt_sentence, mol2sentence, MolSentence, Df... | [
"ji.hongchao@foxmail.com"
] | ji.hongchao@foxmail.com |
c1e01951730aad75c8357380fa62d2d070b9289b | b17fa84483067f5e208083cbaaa2b8e7fcd4b34e | /SNIa_yields/fe56.py | 388354ec6848f49bcf946832f5c0f41254b8390a | [] | no_license | AtsuhiroYoshida1121/Galactic_Chemical_Evolution_code | 931f0c4ff77ccd8b67e3770dc1a5b7d0a96eb492 | bf6461105e56660e8369f0cb2596e36df17b1cc1 | refs/heads/master | 2023-05-27T22:47:52.926878 | 2021-06-04T15:05:56 | 2021-06-04T15:05:56 | 373,835,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | ### SNe Ia Yields
Yfe56_Ia = 6.1 * 10**(-1)
| [
"atsuhiro.yoshida.coding@gmail.com"
] | atsuhiro.yoshida.coding@gmail.com |
57f5d60066b3bf10c2c40f5c873bcf71fce7ad8d | fe2d0d087c424ce1f85dd759599492fe8303f9da | /venv/bin/pip3.6 | a0650b0003bf3a155c1f7a9ff61079ea4a0da52c | [] | no_license | Oswaldgerald/Django_todo_app | e365f18b66e47b0bb95dd4fd319e6061fc91181a | 6e9b3ce2aaac0802a6cb3d3fee9042aafa4d0547 | refs/heads/master | 2020-03-20T07:03:51.950578 | 2018-06-13T20:59:22 | 2018-06-13T20:59:22 | 137,269,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | 6 | #!/home/oswald/LUC/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load... | [
"moswaldgerald@gmail.com"
] | moswaldgerald@gmail.com |
7266af66a4441f60e098f104548caa8d49ca505b | ab354fb6d3f8ef55675ff0263008c90e2df92fdf | /docs/conf.py | bdebc01f5d9ee09ddcb043483ed8c8fb14cf7cbe | [
"MIT"
] | permissive | michhar/Machine-Learning-Workstreams | 7164b99c52dbc1839af97ac792d9f3a940a7ab1a | dba91e4af39006ae1705f48d8cda8014b560a5b3 | refs/heads/master | 2020-04-25T01:01:33.606219 | 2019-02-27T19:49:47 | 2019-02-27T19:49:47 | 172,396,530 | 1 | 0 | MIT | 2019-02-27T19:49:49 | 2019-02-24T22:12:16 | Jupyter Notebook | UTF-8 | Python | false | false | 7,717 | py | # -*- coding: utf-8 -*-
#
# tmp documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a def... | [
"wonderwoman@sunshine.y2sjhm1g5c5unmyydmwdugvcwa.xx.internal.cloudapp.net"
] | wonderwoman@sunshine.y2sjhm1g5c5unmyydmwdugvcwa.xx.internal.cloudapp.net |
386b6225ab701ab34212b094d2ac59900e42fca0 | 1d8cd778801472d86eee11771a39427428c0918e | /accounts/managers.py | 94158b6d7362cdfe783f08943af658895de0639d | [
"MIT"
] | permissive | geotester/insightful | c2e67056d5d7a6a5beb7316b1f6160af73c8a5f2 | 6fe539b67e8c71963ae5c54256a242400a4bca77 | refs/heads/master | 2020-12-25T00:04:35.378437 | 2015-05-07T15:31:02 | 2015-05-07T15:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from django.contrib.auth.models import BaseUserManager
from django.utils import timezone
class EmailUserManager(BaseUserManager):
def _create_user(self, email, password, **extra_fields):
"""
Creates and saves a User with the given email (as username) and password.
"""
now = timezon... | [
"kosir.jakob@gmail.com"
] | kosir.jakob@gmail.com |
a7c319881e687dfab5ee7a590ab574be2335d583 | 4ee76e6b7e559199af56153dff34a92a8619eca7 | /doc_index_row.py | f1320cbf6029eab32a60b7332465859fa2355344 | [] | no_license | HafizAhmadHassan/Search-Engine | e5b730eda38e76d21ebb2b27f14d10c6e3126105 | 615f0dd47133b317914ee193413c5f8dc0a00971 | refs/heads/master | 2021-06-26T07:18:34.448136 | 2020-10-29T12:37:01 | 2020-10-29T12:37:01 | 169,804,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class doc_index_row:
def __init__(self, doc_id, term_id, positions):
self.doc_id = doc_id
self.term_id = term_id
self.positions = positions
| [
"noreply@github.com"
] | HafizAhmadHassan.noreply@github.com |
2accca9f6f9faa8ddee34ac80d0ac239063a2bde | c6f343972cee0ba9ceb7ff5181cf13c758babfd0 | /recognition/Human_Detection.py | 042086fdf8abcbfca60668b3ee79b7c4a4531acb | [] | no_license | timcsy/AntiCoV | 9da9916a27c95adb9b341dd43cdab51fcffdd74c | e162ce8761abafd41ef3272961e1cb1324ff80f9 | refs/heads/master | 2023-01-12T01:42:00.651015 | 2020-04-21T09:28:14 | 2020-04-21T09:28:14 | 251,413,908 | 1 | 5 | null | 2023-01-09T23:15:13 | 2020-03-30T19:55:47 | HTML | UTF-8 | Python | false | false | 5,500 | py | import cv2
from imutils.object_detection import non_max_suppression
import numpy as np
import imutils
from imutils import paths
import requests
import time
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
# cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
# cap.set(cv2.CAP_PROP_FRAME_... | [
"theherooftheword@gmail.com"
] | theherooftheword@gmail.com |
d9224273dd6c5f66a0cd97d9709405147df468f2 | 85b896a8c16c59873e7d6f39f8d94d578c7f918f | /report_creator.py | 2dd6c37a504ff0c7cf2a52658bfaba4aad8ef290 | [] | no_license | PatrykStronski/rfid-reader | 70f389736b9f040aa4552535fd7f0fb271c64323 | 423df977907fa4372915391b1fb2d2900a1350b8 | refs/heads/master | 2021-05-21T22:11:40.224420 | 2020-05-29T12:22:02 | 2020-05-29T12:22:02 | 252,823,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | from datetime import datetime
def create_report(dates):
report={}
for ldate in dates:
sdate = datetime.utcfromtimestamp(ldate[1]).strftime('%Y-%m-%d')
if sdate in report.keys():
report[sdate]['logs'].append({'time': datetime.utcfromtimestamp(ldate[1]).strftime('%Y-%m-%dT%H:%M:%S'), ... | [
"p.stronski13@gmail.com"
] | p.stronski13@gmail.com |
2bcc466d23cbf42a4ae399316961e5e59eaa21b8 | 12ecea0448af1a51e14a0e2190dc941bd57ae4ea | /app.py | 655cdbbbf7df438454a2e108d4727efc729b9598 | [
"Apache-2.0"
] | permissive | PoweredByPeople/blog-public | 9dd8727c254497860d69909122799c410374acab | ce8300482cced6c22ca472fde3957c6bad96639f | refs/heads/master | 2022-12-12T02:42:10.853205 | 2018-08-29T21:39:43 | 2018-08-29T21:39:43 | 145,139,389 | 1 | 0 | Apache-2.0 | 2022-12-08T00:45:51 | 2018-08-17T15:50:19 | Python | UTF-8 | Python | false | false | 250 | py |
from app import create_app, db, cli
from app.models import User, Post
app = create_app()
cli.register(app)
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'User': User, 'Post': Post}
app.run(host='0.0.0.0', port=80)
| [
"louis@poweredbypeople.me"
] | louis@poweredbypeople.me |
e10af5e2c163747d517e5642f2a05c490fc83474 | 82ebd76b5c140345661afb85d5615bffbda7c113 | /twitter/tweet/migrations/0008_like.py | 78d4ecc489aba6809eaf6be65027148df8031a8d | [] | no_license | Sythrill/Python_Twitter | a0bafef750544fe441c03a3f215616ec1996aff1 | 23afb375723fc58daff210b9f45c0c0caecd1bbe | refs/heads/master | 2020-04-13T16:31:54.536640 | 2019-02-07T18:29:20 | 2019-02-07T18:29:20 | 163,323,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # Generated by Django 2.0.3 on 2019-01-08 18:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tweet', '0007_personalmessage'),
]
operations = [
migrations.CreateModel(
... | [
"ksciwiarska@gmail.com"
] | ksciwiarska@gmail.com |
c69c64d15e9879c0c3e8bb12dc4086d660d80025 | 601443d21d3c9f9121e6aec76e2ad012ec4a7817 | /arekit/contrib/utils/pipelines/text_opinion/filters/distance_based.py | ba536accb1dcf557dfb01ce0bdd5f75bd5db3952 | [
"MIT"
] | permissive | nicolay-r/AREkit | 27421472ca296671a6da69a94c1070a0b5a33451 | 1e1d354654f4f0a72090504663cc6d218f6aaf4a | refs/heads/master | 2023-08-29T13:30:26.511617 | 2023-08-13T20:11:43 | 2023-08-13T20:11:43 | 225,708,027 | 54 | 4 | MIT | 2023-01-18T13:17:01 | 2019-12-03T20:20:46 | Python | UTF-8 | Python | false | false | 650 | py | from arekit.common.data.input.sample import InputSampleBase
from arekit.contrib.utils.pipelines.text_opinion.filters.base import TextOpinionFilter
class DistanceLimitedTextOpinionFilter(TextOpinionFilter):
def __init__(self, terms_per_context):
super(DistanceLimitedTextOpinionFilter, self).__init__()
... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
2ecd3524748bf1ba8190ba379743a7d332c8ecfa | 5bfe7d76697b8e384edd0d235dadf5d1f0a3c092 | /parallel_run.py | 9d502deff62739a1474a05810dfec1d21c7769a5 | [] | no_license | 7andrew7/parallel_run | 099c79a92c68cd0c765899897f55f687b7172a67 | 1daef87c29edfca9bfaa048eba204b2ce50cd4a8 | refs/heads/master | 2021-01-19T11:17:41.494386 | 2015-01-13T23:04:33 | 2015-01-13T23:04:33 | 29,216,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | #!/usr/bin/env python
"""Cheesy script to execute a given program in parallel.
Example usage: parallel_run.py -n 32 -f output_prefix sleep 1
"""
import argparse
import multiprocessing
import subprocess
import sys
import threading
# Shady global variable required because Python 2.7 can't access outer scope
# from... | [
"whitaker@cs.washington.edu"
] | whitaker@cs.washington.edu |
ac87acb8415da4d0cb503936a1e147298354e249 | a8de23160612e326589fc82d05cc7858b6f010fc | /challenge-72/Solution.py | 51f96f7c60b21a79be7432477ea8c23c2384d29a | [] | no_license | avnermaman/Python-Daily-Challenges | 0081b0906e96a8f3cfd38dcc68e2bf4253bda221 | 4730e7ffda7bf63664289186783c4544254f06a8 | refs/heads/master | 2020-08-11T03:44:50.798476 | 2018-07-17T07:10:46 | 2018-07-17T07:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py |
import math
def bin_search(li, element):
bottom = 0
top = len(li)-1
index = -1
while top>=bottom and index==-1:
mid = int(math.floor((top+bottom)/2.0))
if li[mid]==element:
index = mid
elif li[mid]>element:
top = mid-1
else:
bottom = m... | [
"l-goddard@protonmail.com"
] | l-goddard@protonmail.com |
dbec04b6c60de9b52cc07c751b39d43921e836f0 | cc536e94041f0c59dc5d51cf28276f5eeda19f31 | /blog/models.py | 32caa8cc20dd9fc53367ae248a3d6690a991f0a8 | [] | no_license | akalwar/blog | 93351cc7eb1bdf52a05741ba3c30b3529b60eceb | aca2c8758b561d48fb546b94df690231eb9cf6ac | refs/heads/master | 2020-04-13T04:33:29.773288 | 2018-12-24T08:10:45 | 2018-12-24T08:10:45 | 162,965,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=200)
author = models.ForeignKey(
'auth.User',
on_delete=models.CASCADE,
)
body = models.TextField()
def __str__(self):
return... | [
"abhishekkalwar835@gmail.com"
] | abhishekkalwar835@gmail.com |
7949305af01ab9d6fcdfe9de4f357fd728116194 | efa8c3643037847447a818e224e1287958af6dc7 | /plots/pdrp.py | fa8b463febd54e48e78fceb3653e19c1b7eb2460 | [
"Apache-2.0"
] | permissive | RyanCargan/outreach-material | cc072f0b660baba9735a2eddd7f365f4ce160fad | d7fbf7f39dc82b31f562c5171a9853cf8c1c2f40 | refs/heads/master | 2023-09-01T16:09:13.875867 | 2021-10-16T23:11:10 | 2021-10-16T23:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,319 | py | """Plot capacity factors."""
import os
from operator import itemgetter
import textwrap
import datetime
import yaml
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from matplotlib.dates import date2num
import matplotlib.dates as mdates
import matplotlib.patches as mpatches
from matplotlib... | [
"nick@partofthething.com"
] | nick@partofthething.com |
81d2d43d971b207b2dd0bcc44c97e8f6c0f921da | 7f04fbc897ff52e4d27cc2f27ae6dfbabe43dfe0 | /cellml/pmr2/tests/base.py | 9100a7a3ffe800da9cdfd74b377716fd6c6545ab | [] | no_license | metatoaster/cellml.pmr2 | daae69721af04f7a28eae496dcbeb13b98e2d4d0 | cbfe212effe325350b1e7087e6172952483b981f | refs/heads/master | 2021-06-21T20:56:30.267128 | 2016-03-08T05:45:53 | 2016-03-08T05:45:53 | 2,396,487 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | import unittest
import doctest
from zope.component import testing
from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
from Products.PloneTestCase.layer import onteardown
from Products.Five import fiveconfigure
from Zope2.App ... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
705321a954ce453dc3724881c7d6d2933e9590e0 | f4dc2b6f7beaf7571e4e9bfde2e181110df29e17 | /sas/compliance/tests.py | 2d3dd28e7180a0c3e4df3996b0136ffc191668f6 | [] | no_license | foleymd/sisathl | 076c71a9bb8a7f0580ff1358614ca9b84407c73a | 21e5cffa997ba462d326c62a89725afaa3c044b4 | refs/heads/main | 2022-12-19T23:49:21.786301 | 2020-10-02T00:52:14 | 2020-10-02T00:52:14 | 299,988,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | from django.test import TestCase
from sisathl.sas.compliance.functions.qualtrics import QualtricsRequest
class QualtricsTests(TestCase):
def setUp(self):
panel_name = 'testing_panel'
self.q = QualtricsRequest()
self.panel_id = self.q.create_panel(panel_name)
self.all... | [
"marjorie.foley@austin.utexas.edu"
] | marjorie.foley@austin.utexas.edu |
ba469e691aa8feaecc648a26c1171ddcf7f037ce | a9789672eaba37c4b391756c7fadb472609ce8ed | /knowtator2standoff.py | d527a6f765c0fd5ff61fa86d8c26416b15a7be32 | [] | no_license | spyysalo/knowtator2standoff | acb68666a6b4dfcd66baf53f1fb7c213f01f38d1 | 18d76d958d13230ff661917e0319668969dc0ec1 | refs/heads/master | 2020-06-20T06:39:40.401026 | 2016-11-28T10:56:56 | 2016-11-28T10:56:56 | 74,897,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,246 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
import io
import xml.etree.cElementTree as ET
from collections import defaultdict
from os import path
from logging import warn
DOCDIR = 'craft-2.0/articles/txt/' # TODO: CLI argument
MAX_SPAN = 150 # TODO: CLI argument
# Mappi... | [
"sampo.pyysalo@gmail.com"
] | sampo.pyysalo@gmail.com |
d1e1d06e0a683d02e0a0a308b6e11deb7f027935 | c3f2058feec2a7e48f7affe76b9049cc936268f4 | /lib/library.py | 917977bccbe6658a63c2702d2f61cf102f675034 | [
"MIT"
] | permissive | i96751414/plugin.video.flix | 362033fc408ce6671b5d528f90569fec852a9ab9 | ba3f55642a3e2e51114c47afeb0c46ed3303c0a2 | refs/heads/master | 2023-06-25T11:44:54.632018 | 2022-06-03T00:37:50 | 2022-06-03T00:37:50 | 249,699,611 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,373 | py | import logging
import os
import time
from threading import Lock
from tmdbsimple import Discover
from xbmc import Monitor
from lib.api.flix.kodi import ADDON_ID, ADDON_NAME, translate, Progress, update_library, clean_library
from lib.api.flix.utils import make_legal_name
from lib.settings import get_library_path, add_... | [
"i96751414@gmail.com"
] | i96751414@gmail.com |
5d6f9ca85d261aa72965687c2d7e15e5c50660fa | 28e4d57622f75d7cc488c893a001b43676d2b969 | /python/fj/machine_learning/iris_data.py | 0a88c16ab345228359ffe9a9c3e066bd64743c18 | [] | no_license | pgacademy/samples | fedb9067891d49a03b8f2e20160d9bd8301f4631 | 185af7b41b0c2fcd5583b8ee092147066983a05d | refs/heads/master | 2020-05-21T20:22:36.443549 | 2017-02-25T09:09:29 | 2017-02-25T09:09:29 | 61,775,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import pandas
import matplotlib.pyplot as plot
import numpy as np
frame = pandas.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data', header=None)
print(frame.tail())
y = frame.iloc[0:100, 4].values
y = np.where(y == 'Iris-setosa', -1, 1)
X = frame.iloc[0:100, [0, 2]].values
plot.scatt... | [
"fanban.xiaofan@gmail.com"
] | fanban.xiaofan@gmail.com |
d387bce2ac4e6514fd3539a4c572d35f7d1e6022 | f7dc60d14f02a9934ddb22b75d95cf3ab8d3f0f0 | /hood/migrations/0004_auto_20210201_1209.py | de855c485bda9dc1fa3ae18ec47d0d7454ad8dc7 | [] | no_license | uwase-diane/Neighbourhood | 83301a2f79b4333814249096ea7dd3c693b5baae | ded93c778dea15251d09fcf72f0c3266ae1e2505 | refs/heads/master | 2023-02-24T13:12:33.325239 | 2021-02-02T18:36:16 | 2021-02-02T18:36:16 | 333,460,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | # Generated by Django 3.1.5 on 2021-02-01 09:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('hood', '0003_delete_foll... | [
"diane.uwase13@gmail.com"
] | diane.uwase13@gmail.com |
a1473cb37ec4dbe66936bd6f1ccc93b53691aac5 | 4e065cad9efc45c0859c287b55bd6c16aa258b46 | /myapp/models.py | ca86b2675a9122f048f87b5ea062b1cdf3ba12d4 | [] | no_license | Athila001/blog | e52c6046a5df4526f4809c9b0cd3221052cbf024 | 9bc9ea4c4ea1fb6485e740cc1757374d2111cbb9 | refs/heads/master | 2022-11-30T06:53:38.344401 | 2020-08-06T08:15:34 | 2020-08-06T08:15:34 | 285,509,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class TimeStamp(models.Model):
created_at = models.DateTimeField(auto_now_add = True)
updated_at = models.DateTimeField(auto_now = True)
user = models.ForeignKey(User,on_delete = models.CASCADE)
class Meta:
abstr... | [
"imca-115@scmsgroup.org"
] | imca-115@scmsgroup.org |
64487f5e901e6ebe888eb466411fbe93dcf919bc | 4c29fd08962ba7b1cec2a227a1eca8e3b46bece5 | /zestawyZadan/zestaw2/zd2.12.py | 2d66265d904cf09003cd22aac9811a712b2d26d8 | [] | no_license | SabinaZolnowska/JezykPython | 835eefc47aa3f138c0d9402c3e4a5dc5e82bffb1 | d0bbf94f4c8729712b265272613ce130a81b7412 | refs/heads/master | 2021-01-20T11:47:38.761268 | 2017-11-30T15:33:59 | 2017-11-30T15:33:59 | 71,003,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | <<<<<<< HEAD
#-*- coding: utf-8 -*-
#Zbudować napis stworzony z pierwszych znaków wyrazów z wiersza line.
#Zbudować napis stworzony z ostatnich znaków wyrazów z wiersza line.
line = "C sprawia, ze latwo jest sobie strzelic w stope.\nZ C++ jest to trudniejsze, ale za to w razie czego odstrzelisz sobie cala noge.\n"
... | [
"sabina.zolnowska@uj.edu.pl"
] | sabina.zolnowska@uj.edu.pl |
13654a23d74ba83e150ebcdea9177cd36cdb1f02 | fb2fade39e20c1ff1826e66e0b2d1b4ccaae6ce2 | /Ensemble model with hypterparamenter tunning.py | 87f5d0187df1e9df46c6f807f166c978ca65ae1c | [] | no_license | aprilycliu/ML-Toolkit | a349e8f5e4b89db432317faec99d664616784d41 | 79edb85ae5b3c2c5b2576fd16227393c97265a4f | refs/heads/main | 2023-04-23T12:10:25.614280 | 2021-04-29T09:17:09 | 2021-04-29T09:17:09 | 362,758,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 29 11:53:46 2021
@author: aprilliu
"""
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier, ExtraTreesClassifier, VotingClassifier
from lightgbm import LGBMClassifier
from xgboost i... | [
"noreply@github.com"
] | aprilycliu.noreply@github.com |
33ca2cbec3283c60f3f48ff39bcc8624ecb5d8f8 | a86bd96433a98e2311447a1923a400470d231f7e | /almanac/style/highlight.py | 93bc92ffea0c08e9b9383963588506d9d14bda0a | [
"MIT",
"BSD-3-Clause"
] | permissive | welchbj/almanac | 3e0d1e8282ec00ad17854536526cf253b331a201 | 7ba473ef07173e0f017dd151e7ca425ba149b8fe | refs/heads/main | 2022-12-18T12:51:53.039850 | 2022-07-06T01:25:03 | 2022-07-06T01:25:03 | 193,141,053 | 5 | 2 | MIT | 2022-12-08T14:28:58 | 2019-06-21T18:07:22 | Python | UTF-8 | Python | false | false | 1,025 | py | from typing import Optional, Type
from pygments import highlight
from pygments.formatter import Formatter
from pygments.formatters import TerminalFormatter
from pygments.lexers import get_lexer_for_mimetype
from pygments.util import ClassNotFound
def highlight_for_mimetype(
text: str,
mimetype: str,
*,
... | [
"welch18@vt.edu"
] | welch18@vt.edu |
a8c1f96f98e07c9ba3546cfd50751884d3d97c6f | 0cf91c0a0e56ed6eaa1e7617ca7b1114910be447 | /ch04_Trees_and_Graphs/q04_12_paths_with_sum.py | 08c8e0b19a0d5185cae7c67703de066d1a371925 | [] | no_license | nhenninger/CrackingTheCodingInterview6e | 728e2989e0c2d8aedc8279b004ce2a1220e07554 | 968eb7683ee53b9a2df12c96f880d3e6d973be10 | refs/heads/master | 2020-04-19T14:37:57.193172 | 2019-05-10T20:23:44 | 2019-05-10T20:23:44 | 156,780,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | from nodes import BinaryTreeNode as BTNode
# 4.12 Paths With Sum
def paths_with_sum(root: BTNode, target_sum: int) -> int:
"""
Count the paths in a tree which results in a given integer sum.
Paths must be contiguous and flow only down the tree. They need not start
or end on the root or leaves.
... | [
"nathanhenninger@u.boisestate.edu"
] | nathanhenninger@u.boisestate.edu |
2595270268307e38cb6869032e1bb2c2fab86994 | de2a9b5ac45088cf3eef84ab5972d48bccba581a | /mendel_1.py | d75368ef74efc4ef12f3d704f0910b7fbb57bf85 | [] | no_license | burton-its/rosalind | f623d29bd25bcfd34e509b8f814aeb7b691df82a | fb8ed251f77a5023a6950119ce8847d5c047fbec | refs/heads/master | 2023-04-14T05:09:17.142863 | 2021-05-03T14:13:06 | 2021-05-03T14:13:06 | 362,510,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | #k = homozygous dominant AA
#m = heterozygous Aa
#n = homozygous recessive aa
#P(Aa/AA) = k*(k-1)+(k*m+m*k)+(k*n+n*k)+0.75m(m-1)+(0.5m*n+0.5n*m)/ t*(t-1)
#what is the chance given k,m,n parents. that you will have a dominant allele
#punnet squares give us
#.1k*m, 1k*n, 1k*(k-1)
#.1m*k, .5m*n, .75m*(m-1)
#.1n*k, .... | [
"54475896+burton-its@users.noreply.github.com"
] | 54475896+burton-its@users.noreply.github.com |
906d8d31f8d3ffc5106d919603e868081473e52b | 822b14274b52b600797022e2f8a339ec25d397c8 | /util.py | a80e4dc06bc393d97d83ca29f09d37c82a34eaba | [] | no_license | jayin92/terrain-autoencoder | 66a4dc7875a4e2a9961f2d9d4946753db588d11e | 86d7b3009c5851c1739db20b767df5619f792bb7 | refs/heads/master | 2022-11-27T07:39:57.774235 | 2020-08-11T09:11:02 | 2020-08-11T09:11:02 | 286,697,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | import numpy as np
import torch
import matplotlib.pyplot as plt
def p(im):
plt.imshow(im.detach().cpu(), cmap="Greys_r")
#plt.colorbar()
def sampleLatent(param, c, stat=False):
loss = torch.tensor(0.0, device=c.device)
latent = []
RMS_miu = []
mean_var = []
for i in range(c.depth):
m... | [
"jayin920805@gmail.com"
] | jayin920805@gmail.com |
9b60055bfd1a9f2b4790394fb0951ce97e1ebd3e | 038b02e16b598cbc91fdb3753e8af6318a38494d | /profiles_api/serializers.py | 9181286a07b9ae2c5ac0f3e1ae7281bec863a5dd | [
"MIT"
] | permissive | Jai2796/rest-api | 052d197a44214b9275c83c04b3d3916d50d7ae5e | db2225991e04fb37d139f912d7b3bcd5dc3dce0b | refs/heads/main | 2023-09-01T09:41:01.452167 | 2021-11-07T10:13:04 | 2021-11-07T10:13:04 | 425,255,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from rest_framework import serializers
class HelloSerializer(serializers.Serializer):
"""serializers a name field for testing our APiView"""
name = serializers.CharField(max_length=10)
| [
"soundarjai96@gmail.com"
] | soundarjai96@gmail.com |
e58381152d52d766f94cefe52c14d4017e947b51 | 4c6b96ba6883525d48b6a5c67755ca73b7ce3f7f | /statistics/monteCarloValorMedio.py | 7bc000a948566fe5093383c735b5be19e2911a77 | [] | no_license | mgb-avellar/SelectedTasksInPython | 409b80ea2603b328effe95edc91e14a4908788e2 | 59cebb0481cf7d250019fdfb60ea7f61bbb7d0b4 | refs/heads/master | 2021-07-10T07:23:17.162993 | 2020-06-27T19:24:55 | 2020-06-27T19:24:55 | 139,353,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #! /usr/bin/python
# Example page 51 of Chorin
# We want to calculate the mean value using Monte Carlo with and without 'importance sampling'
import random
import math
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
print
n = 10000
Itheo = 0.1983725855 # result of Int(cos(x/5)*e... | [
"marcio.de.avellar@gmail.com"
] | marcio.de.avellar@gmail.com |
f2ad3af82b81178ad25abe400e111e68b8d7d2eb | dc896c01de50f45b62a9fdf19fc2eca73db9fca3 | /2_1_LinearRegression.py | a2a967bec9383ba3e5f5076a82439b7f0eb938d7 | [] | no_license | yatish0492/DataScienceTutorial | 6da9fb64993a4e5c9c6aabf07360f9332ff52f7f | c98abae0cf4e41561fb2800b28e8c20064ef2c13 | refs/heads/master | 2022-11-25T01:41:26.175995 | 2020-07-19T20:01:16 | 2020-07-19T20:01:16 | 280,916,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | '''
Linear Regression
-----------------
Linear Regression is a machine learning algorithm based on supervised learning.
What are the types of Linear Regression?
----------------------------------------
1) Simple Linear Regression
2) Multiple Linear Regression
Simple Linear Regression
------------------------
Consid... | [
"ycs@hotels.com"
] | ycs@hotels.com |
6526f313c1150a714077705302ce4c4979903dae | 08b3f5757e1d88cacd781fb5c8cd20fc78eb293e | /tests/mocked_carla.py | 1376113ee039ab051c772dba764cfe52a310f45d | [
"Apache-2.0"
] | permissive | seikurou/pylot | 1435ce9059b72809aab75f4a74f1479de35af40d | 0e47c3dcaf6f0d4a3937b94846d2e55ef908dfa5 | refs/heads/master | 2022-12-22T06:56:38.356603 | 2020-09-24T23:56:02 | 2020-09-24T23:56:02 | 297,835,945 | 0 | 0 | Apache-2.0 | 2020-09-23T02:59:47 | 2020-09-23T02:59:46 | null | UTF-8 | Python | false | false | 625 | py | # This module provides mocked versions of classes and functions provided
# by Carla in our runtime environment.
class Location(object):
""" A mock class for carla.Location. """
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
class Rotation(object):
""" A mock class... | [
"sukritkalra@gmail.com"
] | sukritkalra@gmail.com |
c2e2942b1a6a71c4135c644e295854d3eb10f53b | b5aedecd9c928f39ded89b0a7f209e75cf326a89 | /if elif else.py | cb7c8a7b0290c1ee933469846f64abf67e12d286 | [] | no_license | Aneesawan34/Assignments | f945e0e5e413e4812e64bb719eee019e0f409219 | d57d59bdd74da67e2e20eab703e63a05fe245484 | refs/heads/master | 2021-09-08T00:57:36.587495 | 2018-03-04T21:29:04 | 2018-03-04T21:29:04 | 112,734,643 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | age=12
if age<=4:
print("your cost is free")
elif age <18:
print("your cost is $5")
else:
print("your age is $10") | [
"aneesawan34@yahoo.com"
] | aneesawan34@yahoo.com |
58d1f9cf803febc2a58fb26e573063434eae588c | caaf9046de59559bb92641c46bb8ab00f731cb46 | /Configuration/Generator/python/JpsiMM_Pt_20_inf_8TeV_TuneCUETP8M1_cfi.py | 3d826f915126679c530acffd43c4e184f6851393 | [] | no_license | neumeist/cmssw | 7e26ad4a8f96c907c7373291eb8df205055f47f0 | a7061201efe9bc5fa3a69069db037d572eb3f235 | refs/heads/CMSSW_7_4_X | 2020-05-01T06:10:08.692078 | 2015-01-11T22:57:32 | 2015-01-11T22:57:32 | 29,109,257 | 1 | 1 | null | 2015-01-11T22:56:51 | 2015-01-11T22:56:49 | null | UTF-8 | Python | false | false | 2,939 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
source = cms.Source("EmptySource")
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.i... | [
"you@somedomain.com"
] | you@somedomain.com |
2af4e5aa54d793e98d55c59cc5f8006685863192 | 98b203d8ecf2f51ab0f7707eeee09ee07d109577 | /python/segment_tree_range_modfications.py | 0d3fda2bfcba1f052938c532eb74d4a54a882fae | [] | no_license | razerboot/DataStrcutures-and-Algorithms | 9967727a730fa59daa00a91c021042d885584b10 | b47560efe4fa59ae255dc83c791e18acd9813c22 | refs/heads/master | 2021-07-16T19:08:16.770941 | 2021-01-21T11:19:19 | 2021-01-21T11:19:19 | 95,435,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | #this code works for modfications on range of array like addition or subtraction
# and query for single element or complete array after a set of modifications
from operator import itemgetter as it
def modify(st, l, r, val, n):
l, r = l + n, r + n
while l <= r:
if l % 2 != 0:
st[l] += val
... | [
"akshaykumar@akshaymac.local"
] | akshaykumar@akshaymac.local |
0d9111196d01038e0d9e7eefa1e0736577e219ad | 7c4ef470f7822810760f397c4b4a398476a65986 | /tests/accelerators/test_ipu.py | d76cf68d328012c60fea9fbcc1bffbeb1380e9b2 | [
"Apache-2.0"
] | permissive | bamblebam/pytorch-lightning | 559dffd9ecffe05a642dacb38813c832618ae611 | c784092013d388e45ae83a043675c627e7ca527f | refs/heads/master | 2023-08-09T21:04:47.327114 | 2021-09-14T10:27:56 | 2021-09-14T10:27:56 | 374,527,452 | 0 | 0 | Apache-2.0 | 2021-06-07T03:51:56 | 2021-06-07T03:51:55 | null | UTF-8 | Python | false | false | 18,763 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | bamblebam.noreply@github.com |
4e526cca9511fe0f8fc5552b5c58df8391f6212f | 3f976e0336e8fd0c9d376dd65d566ecc248f05e1 | /python/dont-give-me-five.py | 64e643e6b8fef6f01938739177c2f645f0712eee | [] | no_license | rdvnkdyf/codewars-writing | 4f22a923d45b4023dd4bbb3ab41decde4762f8da | 121e522097139a808aa6b56a130ac082003ae777 | refs/heads/main | 2023-05-09T03:41:18.967620 | 2021-06-06T16:29:30 | 2021-06-06T16:29:30 | 373,818,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | """
Don't give me five!
In this kata you get the start number and the end number of a region and should return the count of all numbers except numbers with a 5 in it. The start and the end number are both inclusive!
Examples:
1,9 -> 1,2,3,4,6,7,8,9 -> Result 8
4,17 -> 4,6,7,8,9,10,11,12,13,14,16,17 -> Result 12
The r... | [
"ridvangs77@gmail.com"
] | ridvangs77@gmail.com |
5cb5c2712a8e562cc9538e5cc683fede695f4ae8 | 3b758eb66679dc4b4db1e806fc73e47fd5fa7f8e | /Piro/Code/Quantum/DecisionVersion/quantumSat.py | 1efcf8d6b73783b61039e5b17d0d09da49fa9d5f | [] | no_license | Askarpour/sw2_quantum_research | 5140d79c0631d2b63d5595128dfc9ee6e1c3ad0d | 7583fd908e1dc998a44b16a096d922e37d24d426 | refs/heads/master | 2021-07-02T02:23:29.786576 | 2021-05-23T14:37:33 | 2021-05-23T14:37:33 | 228,428,589 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | """
This is the main class where the circuit is built from the instance and its solution is retrieved.
The clauses still need to be conjuncted in order to obtain the CNF and then solve the instance
of the 3-SAT that has been parsed.
"""
from sys import argv
from satInstance import SATInstance
from qiskit import Quant... | [
"framegapiro@gmail.com"
] | framegapiro@gmail.com |
036fd4e6df52c2f68430ad36168e043c7563d093 | 03acb21a746640986dd104bac734cb984e6ea99b | /main.py | cf273b44f7186dea10a635759daeb2d744aef295 | [] | no_license | babooteng2/flask-scrapper | cca384984ea50805cc9fb93253423247c44b4e20 | aa340e98049fa42c537abe738b218a04ffd32a05 | refs/heads/main | 2023-07-24T10:12:47.130320 | 2021-09-05T16:53:12 | 2021-09-05T16:53:12 | 403,358,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from flask import Flask, render_template, request, redirect, send_file
from scrapper import get_jobs
from exporter import save_to_file
app = Flask("FlaskScrapper")
db = {}
@app.route("/")
def home():
return render_template("potato.html")
@app.route("/report")
def report():
word = request.args.get('word')
if... | [
"babooteng2@gmail.com"
] | babooteng2@gmail.com |
5c0cfa06b2e70643c4cfe437546555ccab3e48e1 | 77a85d44d197217e7dd58931841263df61ad4a19 | /tests/test.py | 0d416db3d68f9c5a814c3caa28c3d0f6f4c2f5aa | [
"MIT"
] | permissive | Open-Source-Ninja/vm-automation | 41c414150d52726b82d145078ec7f34960f90141 | 4cdd9d582b390495de82f0b69df7c481d7a281bc | refs/heads/master | 2023-04-10T20:12:35.201225 | 2021-04-17T18:08:08 | 2021-04-17T18:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,030 | py | import support_functions
import vm_functions
import unittest
version_good = '6.1.18r142142'
vm_good = 'ws2019'
vm_bad = 'bad'
snapshot_good = 'live'
snapshot_bad = 'bad'
file_good = '../putty.exe'
file_bad = '../bad.exe'
file_dst = 'C:\\windows\\temp\\file.exe'
user_good = 'Administrator'
pass_good = '12345678'
user_b... | [
"noreply@github.com"
] | Open-Source-Ninja.noreply@github.com |
614afacb7d88abe1697191ba3dc5fea6cdce83ef | a520eb3a99c0e17760cb185b61da2c5e8ae36bed | /apps/users/tests.py | 0e48b5040d17cd508e8ea78902476af196085d14 | [] | no_license | zhuoxiaojian/yishengAnalyze | 9cd4b984a4c90d23d6e2d324def187b88d5b737b | 18d2afad78f8cf3a734d41d835e7caf7635fca47 | refs/heads/master | 2022-12-10T21:30:25.176482 | 2019-01-19T08:55:46 | 2019-01-19T08:55:46 | 153,866,303 | 1 | 1 | null | 2022-12-09T05:32:09 | 2018-10-20T03:32:46 | JavaScript | UTF-8 | Python | false | false | 133 | py | from django.test import TestCase
# Create your tests here.
from users.tasks import test
if __name__ == '__main__':
test.delay()
| [
"1933860854@qq.com"
] | 1933860854@qq.com |
7bbbf4aec5ca5dc90e27b4c35550b123e7c08016 | b460c3ae3b8fa0c1db5185abc56be4b7106feb58 | /ejercicio_3.py | ce8e31f3f66bb5c8892924deb884292760740e6c | [] | no_license | mirigonza/funciones_python | 61eac14d65801e5371d83ced4cad2de5face84c9 | 7b8ad1e55017e536d61d59a28f2534c6368e7fea | refs/heads/master | 2023-08-25T05:44:44.383005 | 2021-10-20T13:08:46 | 2021-10-20T13:08:46 | 414,288,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # Funciones [Python]
# Ejercicios de práctica
# Autor: Inove Coding School
# Version: 2.0
# IMPORTANTE: NO borrar los comentarios
# que aparecen en verde con el hashtag "#"
# Ejercicios con funciones
# --------------------------------
# Aquí dentro definir la función ordenar
#def ordenar (numeros):
# ------------... | [
"noreply@github.com"
] | mirigonza.noreply@github.com |
3a19c9c5be00b701cdd309ad99d37a8fd77a6021 | cd257631f442d24d2e4902cfb60d05095e7c49ad | /week-02/day-01/average_of_input.py | d18279b22f7452cd634a2164b12f176064e3c4ef | [] | no_license | green-fox-academy/Chiflado | 62e6fc1244f4b4f2169555af625b6bfdda41a975 | 008893c63a97f4c28ff63cab269b4895ed9b8cf1 | refs/heads/master | 2021-09-04T03:25:25.656921 | 2018-01-15T09:02:47 | 2018-01-15T09:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # Write a program that asks for 5 integers in a row,
# then it should print the sum and the average of these numbers like:
#
# Sum: 22, Average: 4.4
number = 0
for i in range(0, 5):
number += int(input('Give me a number: '))
print('Sum: ' + str(number) + ' Average: ' + str(number/(i + 1))) | [
"prjevarabalazs@gmail.com"
] | prjevarabalazs@gmail.com |
3ff04a2f5934a2ed37927656ec8497009a08a5ff | 9d37286183243fd2a040466f0df0b3b31f69ef6a | /products/migrations/0002_product_upvoters.py | 8f7c67c02056da450c6e15bc6701eb2471a35c5c | [] | no_license | ma9shah/Product-Hunt-Django | 4a5b95db2d042718f374d3fd7cd771b4b0d196ed | 19bbfb72889ebce6813a0845df10787f8f7a93f6 | refs/heads/master | 2022-01-25T15:04:42.207144 | 2019-07-27T08:54:29 | 2019-07-27T08:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 2.2.2 on 2019-06-27 14:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='upvoters',
... | [
"ma9shah@gmail.com"
] | ma9shah@gmail.com |
29f162d6142b8bebfd7ec13c592f93efb8ae2701 | cd60571bf097d6a8a5fb3b687773c7112a3a6e30 | /socket_class.py | b2b814f1111bacbc13541e34f91e3c118f28ce0b | [] | no_license | donoghuc/code_example_1 | f89af43054c32747d9190e14fb93cf5b16a9468a | 57c1b967512b50fa347acf9c64d7517800406c78 | refs/heads/master | 2021-01-19T23:40:57.919011 | 2017-04-21T19:36:50 | 2017-04-21T19:36:50 | 89,016,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #! /usr/bin/python3
# Cas Donoghue
# CS372
# Project 1
# 12Feb2017
# This is a class for sockets. It is used for the server and client side.
# i got the idea from: https://docs.python.org/3/howto/sockets.html
# basically just followed the docs.
import socket
import sys
class MySocket:
"""class for message ap... | [
"cas.donoghue@gmail.com"
] | cas.donoghue@gmail.com |
1b788c6fade91fd375383669af7247fe95bc55b4 | 3219e0d0586efbc3f11b74e37043057a986721b0 | /Python_Basics_Week_1.py | 08c088b54a278345d89b0c05acfb12121b11aad2 | [] | no_license | Sandbox4KidsTM/Python_Basics_1 | a6ac6d46a916ea4213ffff40137e76857a7b5028 | fe52cf3d209fe6dcb0add8c64aba998c7562cee0 | refs/heads/master | 2020-03-26T00:06:32.105312 | 2018-08-13T22:59:19 | 2018-08-13T22:59:19 | 144,306,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,370 | py |
# coding: utf-8
# # Python Basics- Day 1
#
# We are going to be learning the basics of python.
#
# Today we will cover basic types, user interaction, branching, and the random library
# In[1]:
print("Hello World")
# ## Basic Types
# * int (integers)
# * float (decimals)
# * char (characters)
# * boolean (logic... | [
"mitchl@sandbox4kids.com"
] | mitchl@sandbox4kids.com |
4c1f2bfca939c5e104ce710ee76f0be2c1195649 | 1c4090a26147f2b55a4e66038a4b5e2b822adff1 | /oldboy/day02/test03.py | fa64d715eb2adaa2861dfb2fd0d7c71b44204e83 | [] | no_license | sbgaga123/python | 1cb4897e416cbf6b342b8dde813bfa6ae7f18936 | 0e87d9397d5cd9edf5bc4ef696018a979272c098 | refs/heads/master | 2021-01-22T03:53:54.208656 | 2017-06-23T09:37:35 | 2017-06-23T09:37:35 | 92,412,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # dic = {'k1':'v1','k2':'v2','k3':[11,22,33]}
# v = dic.get('k3')
# v1 = v.insert(0,18)
# print(dic)
s = 'alex'
v = tuple(s,)
v2 = type(v)
print(v2) | [
"13581668223@139.com"
] | 13581668223@139.com |
f01cdbdad8f525dbaca70e5d0878881516807078 | a28a5bedca8d28a5e1c2705e171a01646e5e9deb | /Group_Signature/wsgi.py | 10d7de676d21021a992fc380f00fbf2c2db95942 | [] | no_license | ashwinbande/gps | 9b9db5a9e41572ec633348b99f6659178b7d3f91 | c69ae4f33a9d324ae719d3e247eacd9ad40cbd3d | refs/heads/master | 2020-12-31T07:33:44.712864 | 2017-03-29T02:22:54 | 2017-03-29T02:22:54 | 86,528,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for Group_Signature project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"ashwinbandeukd@gmail.com"
] | ashwinbandeukd@gmail.com |
f0a27cf649d704a8cb6104c717ccbcb4066d2436 | a18003c02730140109f94f8ae545405c4814e8df | /capacity_monitor.py | 4b46fb26669dfe4d27ea926f6c4d1caf498b97c5 | [] | no_license | sangshz/MCU-DIY | bb62150b75655843c6e3ea16fe0eda08f14acf53 | 0d35b80258f3b974bbbdddbb76d50ee51788769b | refs/heads/main | 2023-02-08T13:35:56.033419 | 2020-12-31T01:38:07 | 2020-12-31T01:38:07 | 325,683,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #!/usr/bin/env python
import serial
import time
ser=serial.Serial("/dev/ttyUSB0",9600,timeout=0.5)
#ser.parity='E'
#ser.baudrate = 9600
#print (ser.name)
#print (ser.port)
#print (ser.baudrate)
#print (ser.isOpen())
print (ser)
#ser.write(chr(0x00))
#n=ser.write(chr(0x31))
#n=ser.write(0x31)
#n=ser.write('l')
#n=ser.w... | [
"noreply@github.com"
] | sangshz.noreply@github.com |
e6916dbccea2e85566c3010365a95531f3d1a82e | 62bf506e8f49ef1f2b24fe583fab1f65abc16c8b | /Validator.py | 085157eb0d2fe7dfd9c4f28984a62985fa72377b | [] | no_license | pradeeppanayal/PythonJunitExecutor | 627545ad9033e190a500e3ee5a6b03dad09c1707 | b85fc3e3776f2af8f5db93d82ebf5c0e010bcdd8 | refs/heads/master | 2021-05-08T03:56:06.485187 | 2017-10-30T06:12:36 | 2017-10-30T06:12:36 | 108,252,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py |
##############################################################
# Project : PythonJunitTestFrameWork #
# Since Version : 1.0.0 #
# Current Version : 1.0.0 #
# Date of creation : 24-Oct-2017 #
# Au... | [
"pradeep.k@payoda.com"
] | pradeep.k@payoda.com |
a7d089216270c5bb74fd20686a6ab7b781bcfc54 | 30c8cd017a31ab14207789d5e5565d9cf8aefab9 | /Uebung03/aufgabe3/main.py | 5c0990dd1ca219688cb84012e06afdc934c7f066 | [] | no_license | rafaelkallis/pcl2-homework | 30bbeabd5ea45a3e7482381e1383a5f6106efef2 | 636a3d5e380a44e6ef504c7411c3bc019db22b9d | refs/heads/master | 2021-01-21T11:15:12.848324 | 2017-04-30T12:09:46 | 2017-04-30T12:09:46 | 83,539,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python3
# coding: utf-8
import xml.etree.ElementTree as ElementTree
import json
def ElementTreeToDict(root):
if root.getchildren():
theDict = {root.tag: list(map(ElementTreeToDict, root.getchildren()))}
theDict.update(('@' + k, v) for k, v in root.attrib.items())
return the... | [
"rk@rafaelkallis.com"
] | rk@rafaelkallis.com |
527fd54350304d1481a3a25e481d825974c00439 | 84fe126334f36e635c3b871059632e17acc26d0d | /src/problems_100/euler_123.py | 6f32877b7c272160967cd724c97ea9cfd55caf7b | [] | no_license | afrancais/euler | bf27226118c2ae3747a64fd3903ba5bb1343b736 | fc3e56be2d894191ca1517432e4ae65074dcfad6 | refs/heads/master | 2020-12-31T04:28:13.959854 | 2016-05-19T13:45:01 | 2016-05-19T13:45:01 | 59,201,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | import primeutils
import math
from decimal import *
g = primeutils.prime_gen()
k = 1
while True:
if k % 1000 == 0:
print k
p = g.next()
a = (p - 1) ** k + (p + 1) ** (k)
r = a % (p ** 2)
if r > 10 ** 10:
print k, r
break
k += 1
| [
"antoine.francais@dolead.com"
] | antoine.francais@dolead.com |
4843b1d4b9b7d2f2fe304e9278792b5d93d54487 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/orca/scripts/toolkits/VCL.py | d29693eaa79ca6a0de4d1cfb80bdd0e09f4e8f63 | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /usr/share/pyshared/orca/scripts/toolkits/VCL.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
2eb0d6c84e665b9b8a88283bca5eec16c6f2a414 | 7be57145ac26cbfc3bbc322d0a76b38607794572 | /tests/test_e2e.py | b20e3f10291f45b5452782741a3ae126725adad1 | [] | no_license | rakesh-eshwar/SeleniumPythonFramework | f5642074afeb1cd28636e1024eddbbd510d67f05 | fecc36613e5a746b09ddd050c9c4b3a67d42e8db | refs/heads/master | 2022-11-29T11:12:13.203089 | 2020-08-16T07:09:23 | 2020-08-16T07:09:23 | 287,767,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | """
Setup and TearDown :
-> Browser Invocation and browser closing is being written as part of fixture
"""
# import pytest
import time
# from selenium import webdriver
# from selenium.webdriver.common.by import By
# from selenium.webdriver.support.wait import WebDriverWait
# from selenium.webdriver.support i... | [
"noreply@github.com"
] | rakesh-eshwar.noreply@github.com |
e45c5fe41a64198174c654f5ee1615175f1f9e25 | d017755bb4b6439319f5664425be531f4ef72f3e | /mysite/VotingDay/models.py | 0b4c6ee7d5ab476606bbd14652d37f6d2fcb06f0 | [] | no_license | koishore/VotingDay | bcd304603ab59015baed96e16d1dff4ac3a414f6 | 5c7122346476cced1c739b65b882f3e8b4b49427 | refs/heads/master | 2020-06-10T16:08:07.674559 | 2019-10-08T17:43:47 | 2019-10-08T17:43:47 | 75,942,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | from __future__ import unicode_literals
from django.db import models
#different tables of the database are declared here
#this table stores the users who are registered to vote
class User(models.Model):
email = models.CharField(max_length=50)
userid = models.CharField(max_length=15)
def __unicode__(self):... | [
"koishore.roy@ashoka.edu.in"
] | koishore.roy@ashoka.edu.in |
1210e7360134b655175e57ae56324fe180e8c0be | c6320735f140944d2c282729c008a7cf7cf1e98f | /docs/samples/explanation/income/train.py | 1f390f64d00d252386861f2eb8e6c0452dd63fec | [
"Apache-2.0"
] | permissive | gipster/kfserving | 66d2dffd8917ba9029ca2e96f199e1f56df6e41b | bbd3da47a708403fb2a203e28955d5454bc2a1d5 | refs/heads/master | 2020-06-10T18:43:57.148347 | 2019-08-19T00:24:03 | 2019-08-19T00:24:03 | 193,709,786 | 0 | 0 | Apache-2.0 | 2019-06-25T13:08:50 | 2019-06-25T13:08:49 | null | UTF-8 | Python | false | false | 2,400 | py | import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from alibi.datasets import adult
import joblib
import dill
from sklearn.pipeline import Pipeline
i... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
efa895e0ad398c80b47d9aea7dd2dfa0c1a232a8 | 971752c0a0d7aa3f6ca224be041ff100ea96ae29 | /client/app/dialognlu/readers/dataset.py | 0eb10a9acbc0c375cc0c3ac393d235bb65752845 | [] | no_license | zalkikar/DB-Final | 6aec7653a2a7a24d948d06e487d146b84e226360 | a297caadc1c5af84ad430461bf6dfeb9ea52e74a | refs/heads/main | 2023-07-26T12:00:53.096585 | 2021-09-01T22:02:26 | 2021-09-01T22:02:26 | 395,816,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
"""
@author: mwahdan
"""
class NluDataset:
def __init__(self, text, tags, intents):
self.text = text
self.tags = tags
self.intents = intents | [
"rayzck9@gmail.com"
] | rayzck9@gmail.com |
a1779179c2054f6e836a42d2ce8325c8f5b7106b | 234a7517b819d7291dfbcda8d8cbc46a53509dd8 | /sgr/threads/models.py | c079cb09c372a1e8188fcfa3a93fd1c46490dfd9 | [] | no_license | hkaranjule77/Student-Grievance-Redressal | 7608ea488e47d22691adfa12daa5e2c980cec223 | a8ea6cd773f53cbd7adee468749a67639493da0c | refs/heads/master | 2022-11-20T12:24:15.542252 | 2020-07-27T18:38:11 | 2020-07-27T18:38:11 | 268,457,636 | 1 | 2 | null | 2020-07-16T21:54:11 | 2020-06-01T07:47:31 | Python | UTF-8 | Python | false | false | 15,780 | py | from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.db.models import Q
from django.db.utils import IntegrityError
from django.utils import timezone
from datetime import date
import os
from sgr.settings import BASE_DIR
from user.models impo... | [
"hkaranjule77@gmail.com"
] | hkaranjule77@gmail.com |
117840b7f746720a7d129a75f2f7cde774ba515a | 6b623a03ebb88e48a8e9f0528317ba28e8298e08 | /node_modules/mongodb/node_modules/bson/build/config.gypi | 91ce77280c69123cf9bbbb5b50e294bcc78a8108 | [
"MIT",
"Apache-2.0"
] | permissive | AlexanderPolus/ixd-Delphi-official | 19ea568344f4151c6beb28f7ee989bb8b00a66ad | 77bac752542d3cc8a66cc6b89cf90c096f2a5b8d | refs/heads/master | 2020-04-23T01:32:54.504608 | 2019-03-15T02:36:07 | 2019-03-15T02:36:07 | 169,649,114 | 2 | 1 | MIT | 2019-02-07T22:13:46 | 2019-02-07T21:57:42 | JavaScript | UTF-8 | Python | false | false | 3,028 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 46,
"host_arch": "ia32",
"node_install_npm":... | [
"cyang@godaddy.com"
] | cyang@godaddy.com |
0c5a8e18c89224eccf505020eafb6f868ac103a1 | 641b49ff4a4839aa70083ef169e44302574f8651 | /app/snippets/models.py | bd24e78274688f04dad1b52b28803be35b8f4099 | [] | no_license | bear-engineer/rest_framework_Django_tutorial | ca06c7ce13b5d9028e52c603c92f5ae345300dfb | 17d87b6930f1fbcab7d04d59c2453db34680a1e3 | refs/heads/master | 2021-09-19T06:42:16.102751 | 2018-07-24T08:04:35 | 2018-07-24T08:04:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | from django.conf import settings
from django.db import models
from pygments import highlight
from pygments.formatters.html import HtmlFormatter
from pygments.lexers import get_all_lexers, get_lexer_by_name
from pygments.styles import get_all_styles
LEXERS = [item for item in get_all_lexers() if item[1]]
LANGUAGE_CHOIC... | [
"d.sehyeon@gmail.com"
] | d.sehyeon@gmail.com |
c9d59463ba63d661defdc082ac220006f7beb760 | 2cea7251aac4b05f8169d7b5d26cadbf518136cb | /models/Card.py | ed2b7e946d6bff97782ef8698b699e92caaa5f57 | [] | no_license | VanDenHendeSimon/blackjack | 85e3221ab0fa036b7f78a5cd141e146771f754ed | 3834edf87ccb7f1ec8672c2943c10e0279387741 | refs/heads/master | 2021-05-25T15:14:56.032834 | 2020-04-22T19:48:50 | 2020-04-22T19:48:50 | 253,804,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | class Card:
character_aliasses = {
1: 'Ace',
11: 'Jack',
12: 'Queen',
13: 'King',
}
def __init__(self, character, suit):
self.character = character
self.suit = suit
@property
def suit(self):
return self._suit
@suit.setter
def suit(self... | [
"simonvdhende@outlook.com"
] | simonvdhende@outlook.com |
950e9fce4dcbd3c0bc732cdc70d82b7bb4f0e7c3 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayIserviceIsresourceTenantquerybytntidQueryModel.py | bf348d94e07635b10d4f588191dab57c1660c589 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,400 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayIserviceIsresourceTenantquerybytntidQueryModel(object):
def __init__(self):
self._tnt_inst_id = None
self._ur_id = None
@property
def tnt_inst_id(self):
ret... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
5c4b6a31a7e7502af119aafb08459ae1c81c95a7 | 44c30405bf6df4f42bc0fcc04a0c3c72a6a42128 | /src/Functions.py | edc4a0ff66b62a674f218e9a19ddc654883af84b | [] | no_license | sgh1/kindablog | 4e97673d413b5b200fe17353142e0315cacf9db5 | 72aa6843776f8c619b5a0bb570a5c1466ad6c3b6 | refs/heads/master | 2021-09-06T08:03:24.106495 | 2018-02-04T04:25:31 | 2018-02-04T04:25:31 | 113,723,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | #
# Functions.py
# Some helper functions to keep clutter out of Main.py.
#
# Imports
import Settings
import markdown2
from markdown2Mathjax import sanitizeInput, reconstructMath
import os.path
import pprint
import web
class Functions(object):
@staticmethod
def GetRelatedPostsByTag(allMetaDa... | [
"ec2-user@ip-172-31-41-216.us-west-2.compute.internal"
] | ec2-user@ip-172-31-41-216.us-west-2.compute.internal |
74ca68420b60222f058228f98a1a446f42d5311d | 0e3f14722cd87767d29f794530dc1eabc4678a14 | /projects/migrations/0001_initial.py | bf6df9a575080f5727e6d0d3115ebfc864eafca8 | [] | no_license | Mostaquim/mycampaign | e807386b5bc034c0bf8689f29da07bae752ef971 | 4343ff08cb7d86de3efcc3e81b49ca93d01e7ae9 | refs/heads/master | 2020-05-09T23:51:06.345794 | 2019-05-09T10:24:22 | 2019-05-09T10:24:22 | 181,513,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | # Generated by Django 2.1 on 2019-05-06 18:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
migrations.swappable_dependency(setti... | [
"princemostaquim@gmail.com"
] | princemostaquim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.