hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca433cfdc583b5417c142f3e27cbbc19fc20126f | 636 | py | Python | python_first_step/sortalgoArrayOperation/sort2.py | cartellefo/projet | 23c67e847b415fb47f71e830b89a227fffed109b | [
"MIT"
] | null | null | null | python_first_step/sortalgoArrayOperation/sort2.py | cartellefo/projet | 23c67e847b415fb47f71e830b89a227fffed109b | [
"MIT"
] | null | null | null | python_first_step/sortalgoArrayOperation/sort2.py | cartellefo/projet | 23c67e847b415fb47f71e830b89a227fffed109b | [
"MIT"
] | null | null | null | import time
import numpy as np
import numpy.linalg as nl
import random
import matplotlib.pyplot as plt
intRand= sortInt(5)
print(intRand)
x,e=tri_ins(intRand)
| 16.307692 | 34 | 0.542453 |
ca436d41c043f791ff6f753cb4ff5c619518a094 | 2,844 | py | Python | plot_p.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | plot_p.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | plot_p.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | 2 | 2020-07-28T08:40:06.000Z | 2022-02-16T23:04:58.000Z | from PyQuantum.Tools.PlotBuilder2D import *
from PyQuantum.Tools.CSV import *
import numpy as np
x = []
y = []
# path = 'oout'
path = 'out_2'
n_counts = 100
for i in range(1, 2):
# Fidelity_s2_list = list_from_csv(path+'/fidelity_s2' + str(i) + '.csv')
T_list = list_from_csv(path+'/T_list' + str(i) + '.c... | 18.588235 | 77 | 0.457806 |
ca43eef7e1b8fecb70a831efbfc37c25411bb39d | 435 | py | Python | mainblog/migrations/0004_alter_tags_tagname.py | layersony/interBlogApi | f5422f6ba308ecd7e7cff4c4f29da68181a63fc5 | [
"MIT"
] | null | null | null | mainblog/migrations/0004_alter_tags_tagname.py | layersony/interBlogApi | f5422f6ba308ecd7e7cff4c4f29da68181a63fc5 | [
"MIT"
] | null | null | null | mainblog/migrations/0004_alter_tags_tagname.py | layersony/interBlogApi | f5422f6ba308ecd7e7cff4c4f29da68181a63fc5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-06 15:51
from django.db import migrations, models
| 22.894737 | 99 | 0.616092 |
ca4406d690ff4c796afb3625d7199843d05e7652 | 7,644 | py | Python | omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py | know-airl/Vote-Goat-Data | d523d45107b5994b9135577db5e0269eb6d4c613 | [
"MIT"
] | 1 | 2020-06-12T16:58:19.000Z | 2020-06-12T16:58:19.000Z | omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py | know-airl/Vote-Goat-Data | d523d45107b5994b9135577db5e0269eb6d4c613 | [
"MIT"
] | 2 | 2018-07-04T11:19:13.000Z | 2018-07-12T11:46:16.000Z | omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py | know-airl/Vote-Goat-Data | d523d45107b5994b9135577db5e0269eb6d4c613 | [
"MIT"
] | null | null | null | import omdb # For scraping omdbapi.com
import ujson # For outputting to disk
from time import sleep # For sleeping between scrape attempts
import numpy as np # Not utilised past the failure text file function
import os # For checking the existing data files
import math # For rounding float up to nearest integer
# mult... | 47.185185 | 155 | 0.675693 |
ca441024b2e763c4af65aa1f10420402eb5cf8f7 | 22,324 | py | Python | tests/hetr_tests/test_hetr_integration.py | NervanaSystems/ngraph-python | ac032c83c7152b615a9ad129d54d350f9d6a2986 | [
"Apache-2.0"
] | 18 | 2018-03-19T04:16:49.000Z | 2021-02-08T14:44:58.000Z | tests/hetr_tests/test_hetr_integration.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 2 | 2019-04-16T06:41:49.000Z | 2019-05-06T14:08:13.000Z | tests/hetr_tests/test_hetr_integration.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 11 | 2018-06-16T15:59:08.000Z | 2021-03-06T00:45:30.000Z | # ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# 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.apa... | 35.775641 | 99 | 0.61781 |
ca44c4b4a922ee4c322f05fad403519e416a4479 | 93 | py | Python | core/plugin/__init__.py | Holzhaus/jasper-plugin-draft | 5d3f89abf9b2799731079596978dbd0de49fbb0e | [
"JasPer-2.0",
"MIT"
] | 1 | 2015-03-11T14:19:24.000Z | 2015-03-11T14:19:24.000Z | core/plugin/__init__.py | Holzhaus/jasper-plugin-draft | 5d3f89abf9b2799731079596978dbd0de49fbb0e | [
"JasPer-2.0",
"MIT"
] | null | null | null | core/plugin/__init__.py | Holzhaus/jasper-plugin-draft | 5d3f89abf9b2799731079596978dbd0de49fbb0e | [
"JasPer-2.0",
"MIT"
] | null | null | null | from . import types
from .manager import PluginManager
__all__ = ['PluginManager', 'types']
| 18.6 | 36 | 0.752688 |
ca45b500d25fab159b618f1a88b1a991fcd45ebe | 17,159 | py | Python | yardstick/network_services/traffic_profile/ixia_rfc2544.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 28 | 2017-02-07T07:46:42.000Z | 2021-06-30T08:11:06.000Z | yardstick/network_services/traffic_profile/ixia_rfc2544.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 6 | 2018-01-18T08:00:54.000Z | 2019-04-11T04:51:41.000Z | yardstick/network_services/traffic_profile/ixia_rfc2544.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 46 | 2016-12-13T10:05:47.000Z | 2021-02-18T07:33:06.000Z | # Copyright (c) 2016-2019 Intel Corporation
#
# 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... | 40.279343 | 83 | 0.594615 |
ca46f5b51041f2e84a8b0929fea0766296c1cd5f | 365 | py | Python | db/migrations/0002_auto_20191223_1142.py | dmitrytk/takkand.pw | 162fd5bb0e58c419977e06ce4633177918bd6f61 | [
"MIT"
] | null | null | null | db/migrations/0002_auto_20191223_1142.py | dmitrytk/takkand.pw | 162fd5bb0e58c419977e06ce4633177918bd6f61 | [
"MIT"
] | 10 | 2021-03-18T23:07:30.000Z | 2022-03-12T00:13:17.000Z | db/migrations/0002_auto_20191223_1142.py | dmitrytk/takkand.pw | 162fd5bb0e58c419977e06ce4633177918bd6f61 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2019-12-23 06:42
from django.db import migrations, models
| 19.210526 | 51 | 0.578082 |
ca478284b5ab15449bbe9ae4cf72cb8e3dd5e8d8 | 1,201 | py | Python | notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py | freininghaus/notes | 1db927afaa70eb6e3af4fd4fcdf868275da7131c | [
"MIT"
] | null | null | null | notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py | freininghaus/notes | 1db927afaa70eb6e3af4fd4fcdf868275da7131c | [
"MIT"
] | null | null | null | notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py | freininghaus/notes | 1db927afaa70eb6e3af4fd4fcdf868275da7131c | [
"MIT"
] | null | null | null | import json
import os
from aiohttp import web
DATA = {}
print("CRUD demo app (using a list of routes)")
app = web.Application()
app.add_routes([
web.get("/", list_keys),
web.put("/{key}", add_document),
web.post("/{key}", add_document),
web.delete("/{key}", delete_document),
web.get("/{key}"... | 22.240741 | 104 | 0.653622 |
ca48cfdcb7622dc5e3da4e6a96f90e5e3237d589 | 6,356 | py | Python | flow/flow-master/glow.py | neumason/zi2zi | e8ce521ebd260eae569cd5b3e7923f9450b0cca2 | [
"Apache-2.0"
] | null | null | null | flow/flow-master/glow.py | neumason/zi2zi | e8ce521ebd260eae569cd5b3e7923f9450b0cca2 | [
"Apache-2.0"
] | 1 | 2021-12-22T03:35:18.000Z | 2021-12-22T03:35:18.000Z | flow/flow-master/glow.py | neumason/zi2zi | e8ce521ebd260eae569cd5b3e7923f9450b0cca2 | [
"Apache-2.0"
] | null | null | null | #! -*- coding: utf-8 -*-
# Keras implement of Glow
# GlowKeras
# https://blog.openai.com/glow/
from keras.layers import *
from keras.models import Model
from keras.datasets import cifar10
from keras.callbacks import Callback
from keras.optimizers import Adam
from flow_layers import *
import imageio
import numpy as np
... | 28.630631 | 118 | 0.595028 |
ca492d3db1e7a431253fb27aa0253f4be2cd3179 | 1,985 | py | Python | r_map/elaborate_tree.py | mentaal/r_map | 42986e90b31018b1e7fc992a53b0f5f6e559253f | [
"MIT"
] | null | null | null | r_map/elaborate_tree.py | mentaal/r_map | 42986e90b31018b1e7fc992a53b0f5f6e559253f | [
"MIT"
] | null | null | null | r_map/elaborate_tree.py | mentaal/r_map | 42986e90b31018b1e7fc992a53b0f5f6e559253f | [
"MIT"
] | null | null | null | """Module to take an existing r_map and replace all instances of ArrayedNode
with its children. Also fix addresses of AddressedNodes to save the tree lookup
penalty imposed within their address properties. This involves manipulating the
tree in memory and providing an overridden AddressedNode which can be used when
des... | 33.083333 | 80 | 0.704786 |
ca4a501860d545885c7a68c5914cd3f72741cdda | 488 | py | Python | Py exercises/Palindrome.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | Py exercises/Palindrome.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | Py exercises/Palindrome.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | #Palindrome check for string s
s = ['d','o','g','G','o','d'] #need to define a string
s = [element.lower() for element in s] #convert each element to lowercase
| 32.533333 | 84 | 0.608607 |
ca4bf45e859d235d8665ccec531d457472e1d9c8 | 4,653 | py | Python | 05ctc/my_dataset.py | sadahry/python_asr | a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0 | [
"MIT"
] | null | null | null | 05ctc/my_dataset.py | sadahry/python_asr | a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0 | [
"MIT"
] | null | null | null | 05ctc/my_dataset.py | sadahry/python_asr | a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#
# PytorchDataset
#
from numpy.lib.arraypad import pad
import tensorflow as tf
# (numpy)
import numpy as np
# sys
import sys
import math
def build_dataset(feat_scp,
label_scp,
feat_mean,
feat_std,
ba... | 25.565934 | 76 | 0.563507 |
ca4c30d22355972e25a3ae44eba09d3d2c67bd12 | 2,901 | py | Python | cba_examples/views/table_2.py | diefenbach/cba-examples | 67c484f181935a40076d3ff3cc279cedf438c358 | [
"BSD-3-Clause"
] | null | null | null | cba_examples/views/table_2.py | diefenbach/cba-examples | 67c484f181935a40076d3ff3cc279cedf438c358 | [
"BSD-3-Clause"
] | null | null | null | cba_examples/views/table_2.py | diefenbach/cba-examples | 67c484f181935a40076d3ff3cc279cedf438c358 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, unicode_literals
from cba import components
from cba.base import CBAView
| 40.859155 | 106 | 0.454326 |
ca4c4257326dffb482bf77d2d863e1a9fe99032c | 137 | py | Python | proj/pushes/urls.py | TakesxiSximada/adminsite-collection | 02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e | [
"Apache-2.0"
] | null | null | null | proj/pushes/urls.py | TakesxiSximada/adminsite-collection | 02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e | [
"Apache-2.0"
] | 1 | 2016-07-27T13:11:33.000Z | 2016-07-27T13:11:33.000Z | proj/pushes/urls.py | TakesxiSximada/adminsite-collection | 02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e | [
"Apache-2.0"
] | null | null | null | from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'pushes', views.PushViewSet)
| 17.125 | 45 | 0.79562 |
ca4e977a8bbc9ad8ddd91fa8ba9e6bd2a4340a7e | 1,410 | py | Python | aztk/internal/configuration_base.py | Geims83/aztk | 8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6 | [
"MIT"
] | 161 | 2017-10-04T08:58:27.000Z | 2022-01-03T13:01:04.000Z | aztk/internal/configuration_base.py | Geims83/aztk | 8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6 | [
"MIT"
] | 400 | 2017-09-29T21:52:08.000Z | 2021-01-08T02:48:56.000Z | aztk/internal/configuration_base.py | isabella232/aztk | 6e04372d19661ead6744387edab7beda16e3d928 | [
"MIT"
] | 74 | 2017-10-13T04:41:26.000Z | 2021-12-20T15:56:42.000Z | import yaml
from aztk.error import AztkError, InvalidModelError
| 29.375 | 97 | 0.598582 |
ca4fb8eba7e86423c3e317fa09aefd90269c7fd8 | 3,836 | py | Python | scripts/RSS_Reader/rss_reader.py | phoexer/Kelly | 2cccb8bc5197120754714b08226cd4ec1f63fb73 | [
"MIT"
] | null | null | null | scripts/RSS_Reader/rss_reader.py | phoexer/Kelly | 2cccb8bc5197120754714b08226cd4ec1f63fb73 | [
"MIT"
] | null | null | null | scripts/RSS_Reader/rss_reader.py | phoexer/Kelly | 2cccb8bc5197120754714b08226cd4ec1f63fb73 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#this is a comment .!/usr/bin/env python3
import feedparser
import pandas as pd
import time
import numpy as np
import sys
import logging
import csv
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
#from subprocess import check_output
#import sys
with... | 30.444444 | 112 | 0.637643 |
ca5127a4c0615ee23cb09f4ed4c5be2b27d633bf | 31 | py | Python | exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py | Toni-SM/omni.add_on.visualizer | 0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52 | [
"MIT"
] | 3 | 2021-07-24T08:50:26.000Z | 2022-02-23T06:25:10.000Z | exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py | Toni-SM/omni.add_on.visualizer | 0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52 | [
"MIT"
] | 1 | 2022-03-27T17:55:39.000Z | 2022-03-27T17:55:43.000Z | exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py | Toni-SM/omni.add_on.visualizer | 0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52 | [
"MIT"
] | null | null | null | from .test_visualizer import *
| 15.5 | 30 | 0.806452 |
ca51bec93a8871725f379d36542bf86e0b2a84a7 | 1,640 | py | Python | tests/test_timer.py | xsthunder/xs_lib | 40d9ea2294abea5a231d018e7c6367245630e8b2 | [
"MIT"
] | 1 | 2020-11-10T08:17:37.000Z | 2020-11-10T08:17:37.000Z | tests/test_timer.py | xsthunder/xs_lib | 40d9ea2294abea5a231d018e7c6367245630e8b2 | [
"MIT"
] | null | null | null | tests/test_timer.py | xsthunder/xs_lib | 40d9ea2294abea5a231d018e7c6367245630e8b2 | [
"MIT"
] | null | null | null | #################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: ./nb/timer.ipynb
import sys
if __name__ == '__main__': sys.path.append('..')
import xs_lib.common as common
import sure
from datetime import datetime
im... | 23.098592 | 121 | 0.59939 |
ca52a7aab07c59186a8296a957a5d226e24e48dc | 809 | py | Python | app/restaurants/views.py | yagnic/recipe-app-me | 2713461de85f7fb009a4244f43eca9ac97c35722 | [
"MIT"
] | null | null | null | app/restaurants/views.py | yagnic/recipe-app-me | 2713461de85f7fb009a4244f43eca9ac97c35722 | [
"MIT"
] | null | null | null | app/restaurants/views.py | yagnic/recipe-app-me | 2713461de85f7fb009a4244f43eca9ac97c35722 | [
"MIT"
] | null | null | null | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Restaurant
from restaurants import ... | 31.115385 | 61 | 0.797281 |
ca52ac0d4f6eff14369de57d20140633d902fe4f | 2,269 | py | Python | models/Update.py | C3atUofU/Hierarchical-SGD | ecc0f25065f78e70ed8deff7dfc9809331e19f21 | [
"MIT"
] | null | null | null | models/Update.py | C3atUofU/Hierarchical-SGD | ecc0f25065f78e70ed8deff7dfc9809331e19f21 | [
"MIT"
] | null | null | null | models/Update.py | C3atUofU/Hierarchical-SGD | ecc0f25065f78e70ed8deff7dfc9809331e19f21 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python version: 3.6
import torch
from torch import nn, autograd
from torch.utils.data import DataLoader, Dataset
import numpy as np
import random
from sklearn import metrics
| 33.865672 | 139 | 0.585721 |
ca52bf10a3c13ad103c254644b80cd50cb216d86 | 92 | py | Python | hashtagsv2/hashtags/admin.py | eggpi/hashtags | a5bdc8d43159cb25df1a1155951cc96d725e786d | [
"MIT"
] | 13 | 2019-12-02T15:35:14.000Z | 2022-03-13T18:22:06.000Z | hashtagsv2/hashtags/admin.py | eggpi/hashtags | a5bdc8d43159cb25df1a1155951cc96d725e786d | [
"MIT"
] | 35 | 2019-05-13T10:24:03.000Z | 2021-12-14T14:13:38.000Z | hashtagsv2/hashtags/admin.py | eggpi/hashtags | a5bdc8d43159cb25df1a1155951cc96d725e786d | [
"MIT"
] | 15 | 2018-10-17T15:01:13.000Z | 2019-04-08T13:57:50.000Z | from django.contrib import admin
from .models import Hashtag
admin.site.register(Hashtag)
| 15.333333 | 32 | 0.815217 |
ca5b47ff066ef55e1d1779346f934318a0c7cf47 | 1,996 | py | Python | 2 - Code/210924 - DQN Extensions #1/01 - DQN Basic.py | utilForever/2021-HYU-HAI-RLBootCamp | 6ec1c405a32b03903c6d73d7b882ef07610eafe4 | [
"MIT"
] | 31 | 2021-04-08T15:21:56.000Z | 2022-03-15T08:18:33.000Z | 2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py | utilForever/2021-HYU-HAI-RLBootCamp | 6ec1c405a32b03903c6d73d7b882ef07610eafe4 | [
"MIT"
] | null | null | null | 2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py | utilForever/2021-HYU-HAI-RLBootCamp | 6ec1c405a32b03903c6d73d7b882ef07610eafe4 | [
"MIT"
] | null | null | null | import argparse
import gym
import ptan
import random
import torch
import torch.optim as optim
from ignite.engine import Engine
from lib import dqn_model, epsilon_tracker, hyper_params, utils
if __name__ == "__main__":
random.seed(hyper_params.SEED)
torch.manual_seed(hyper_params.SEED)
params = hyper_pa... | 32.721311 | 108 | 0.725952 |
ca5def6663dd34eb3d655b1ffbb1b95127bf3583 | 995 | py | Python | blogapp/models.py | Altaf-H-Miazee/BlogApp-Django | 4245729352f5ce1180f6ba3b4e7cc6650ffb8358 | [
"MIT"
] | 1 | 2020-10-06T16:23:35.000Z | 2020-10-06T16:23:35.000Z | blogapp/models.py | hosenmdaltaf/BlogApp-Django | 4245729352f5ce1180f6ba3b4e7cc6650ffb8358 | [
"MIT"
] | null | null | null | blogapp/models.py | hosenmdaltaf/BlogApp-Django | 4245729352f5ce1180f6ba3b4e7cc6650ffb8358 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
| 30.151515 | 101 | 0.730653 |
ca60b53e49cf1b6bb9d51a2399b1a6d7c2de70cd | 1,487 | py | Python | exercicio-05.py | gabrilu/Atividade | 3c71113099e827913e4a560ecfd029706ba90a00 | [
"Apache-2.0"
] | null | null | null | exercicio-05.py | gabrilu/Atividade | 3c71113099e827913e4a560ecfd029706ba90a00 | [
"Apache-2.0"
] | null | null | null | exercicio-05.py | gabrilu/Atividade | 3c71113099e827913e4a560ecfd029706ba90a00 | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
# Os dados utilizados referem-se granulometria (tamanho de partcula) de um testemunho marinho;
# Valores negativos em y indicam a profundidade da coluna estratigrfica em metros, sendo y = 0 o topo do testemunho (incio do assoalho ocenico);
# Valor... | 61.958333 | 147 | 0.741762 |
ca615c44a11941f16384fb424e7463ca48d5dba0 | 1,221 | py | Python | setup.py | paduel/pandas_ui | ca3f0214f209e68d15573fb9518b01ad36873648 | [
"MIT"
] | 146 | 2020-06-17T04:14:40.000Z | 2022-03-16T21:59:04.000Z | setup.py | paduel/pandas_ui | ca3f0214f209e68d15573fb9518b01ad36873648 | [
"MIT"
] | 26 | 2020-06-17T13:54:20.000Z | 2021-12-13T12:14:06.000Z | setup.py | paduel/pandas_ui | ca3f0214f209e68d15573fb9518b01ad36873648 | [
"MIT"
] | 46 | 2020-06-17T06:14:11.000Z | 2022-01-29T14:07:33.000Z | import pathlib
from setuptools import setup
#from distutils.core import setup
setup(
name = 'pandas_ui',
packages = ['pandas_ui'],
version = '0.1',
license='MIT License',
description = ' pandas_ui helps you wrangle & explore your data and create custom visualizations without digging through StackOver... | 33.916667 | 218 | 0.610975 |
ca6399fda024ff3ca6fb6ffc6995041a2c15a6d0 | 1,644 | py | Python | 2021/04/day_04.py | mfep/advent-of-code-2020 | 99ba3d68383f5a5e15ec876a9915082f479b8ee4 | [
"MIT"
] | 2 | 2020-12-05T18:21:14.000Z | 2020-12-08T19:37:51.000Z | 2021/04/day_04.py | mfep/advent-of-code | 99ba3d68383f5a5e15ec876a9915082f479b8ee4 | [
"MIT"
] | null | null | null | 2021/04/day_04.py | mfep/advent-of-code | 99ba3d68383f5a5e15ec876a9915082f479b8ee4 | [
"MIT"
] | null | null | null |
with open('day_04.txt') as f:
lines = f.readlines()
num_boards = (len(lines) - 1) // 6
deck = [int(x) for x in lines[0].split(',')]
part1()
part2()
| 24.537313 | 87 | 0.583333 |
ca63c85b7dd719215770c89a01e560ca42f2a093 | 2,944 | py | Python | test/test_database_variable.py | sensiblecodeio/csv-to-cantabular-metadata-2021 | 32bad86f5acaec76af6538bdeff89fc78575c8dd | [
"Apache-2.0"
] | null | null | null | test/test_database_variable.py | sensiblecodeio/csv-to-cantabular-metadata-2021 | 32bad86f5acaec76af6538bdeff89fc78575c8dd | [
"Apache-2.0"
] | null | null | null | test/test_database_variable.py | sensiblecodeio/csv-to-cantabular-metadata-2021 | 32bad86f5acaec76af6538bdeff89fc78575c8dd | [
"Apache-2.0"
] | null | null | null | import unittest.mock
import unittest
import os
import pathlib
from ons_csv_to_ctb_json_load import Loader
from helper_funcs import conditional_mock_open, build_test_file
HEADERS = ['Id', 'Database_Mnemonic', 'Variable_Mnemonic', 'Version', 'Lowest_Geog_Variable_Flag']
REQUIRED_FIELDS = {'Variable_Mnemonic': 'VAR1',
... | 42.666667 | 115 | 0.638247 |
ca651fc6921278187b2a3bb6efc946859def4b2c | 705 | py | Python | reefbot/test/TestStillCaptureModule.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | reefbot/test/TestStillCaptureModule.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | reefbot/test/TestStillCaptureModule.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""Sends a message that is read by the StillCaptureModule."""
import roslib; roslib.load_manifest('reefbot')
import rospy
from reefbot_msgs.msg import ImageCaptured
if __name__ == "__main__":
rospy.init_node('TestStillCaptureModule')
publisher = rospy.Publisher(
rospy.get_param('still_image... | 25.178571 | 61 | 0.723404 |
ca653894731570c9c358faadfe28ba24fca6a793 | 4,924 | py | Python | Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 20 | 2020-08-19T23:27:01.000Z | 2022-02-03T12:02:17.000Z | Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 1 | 2021-04-10T18:06:05.000Z | 2021-04-10T18:06:05.000Z | Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 2 | 2020-12-03T19:35:36.000Z | 2021-11-10T14:58:39.000Z | ############################################################################
# Python Tkinter All List III Save and Open ToDo Lists
# Python Tkinter All List III Guardar y abrir listas de tareas pendientes
############################################################################
from tkinter import *
from tkinter.f... | 27.355556 | 91 | 0.647035 |
ca664f99426c4233bb183526150ff77bb24145d7 | 848 | py | Python | homeassistant/components/sleepiq/coordinator.py | d4rk1/core | 52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06 | [
"Apache-2.0"
] | 1 | 2022-02-20T14:35:42.000Z | 2022-02-20T14:35:42.000Z | homeassistant/components/sleepiq/coordinator.py | d4rk1/core | 52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06 | [
"Apache-2.0"
] | 4 | 2022-03-02T07:18:01.000Z | 2022-03-31T07:09:30.000Z | homeassistant/components/sleepiq/coordinator.py | d4rk1/core | 52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06 | [
"Apache-2.0"
] | null | null | null | """Coordinator for SleepIQ."""
from datetime import timedelta
import logging
from asyncsleepiq import AsyncSleepIQ
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
_LOGGER = logging.getLogger(__name__)
UPDATE_INTERVAL = timedelta(seconds=60)
| 25.69697 | 75 | 0.676887 |
ca6ad152789223ad92fe49facebc426481abe551 | 815 | py | Python | setup.py | blablalab/supervisor-remote-logging | a3e6b1476ef3a230e1fe092bf23fc84315173a3a | [
"BSD-2-Clause"
] | null | null | null | setup.py | blablalab/supervisor-remote-logging | a3e6b1476ef3a230e1fe092bf23fc84315173a3a | [
"BSD-2-Clause"
] | null | null | null | setup.py | blablalab/supervisor-remote-logging | a3e6b1476ef3a230e1fe092bf23fc84315173a3a | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup, find_packages
with open("requirements.txt") as requirements:
setup(
name="supervisor-remote-logging",
version="0.0.3",
description="Stream supervisord logs various remote endpoints",
author="New Relic Site Engineering Team",
url="https://github.... | 37.045455 | 76 | 0.631902 |
ca6c22adc311353b790d1fd415522f311a837d13 | 401 | py | Python | function/python/brightics/function/recommendation/__init__.py | GSByeon/studio | 782cf484541c6d68e1451ff6a0d3b5dc80172664 | [
"Apache-2.0"
] | null | null | null | function/python/brightics/function/recommendation/__init__.py | GSByeon/studio | 782cf484541c6d68e1451ff6a0d3b5dc80172664 | [
"Apache-2.0"
] | null | null | null | function/python/brightics/function/recommendation/__init__.py | GSByeon/studio | 782cf484541c6d68e1451ff6a0d3b5dc80172664 | [
"Apache-2.0"
] | 1 | 2020-11-19T06:44:15.000Z | 2020-11-19T06:44:15.000Z | from .association_rule import association_rule
from .association_rule import association_rule_visualization
from .als import als_train
from .als import als_predict
from .als import als_recommend
from .collaborative_filtering import collaborative_filtering_train
from .collaborative_filtering import collaborative_filteri... | 50.125 | 70 | 0.902743 |
ca6e127b34486b1fde939d71dcd9e8af2f3a4daa | 322 | py | Python | xmlrpc/client.py | davidvoler/ate_meteor | d7ac20638a30e941e0ca8740499743bc26dd57be | [
"MIT"
] | null | null | null | xmlrpc/client.py | davidvoler/ate_meteor | d7ac20638a30e941e0ca8740499743bc26dd57be | [
"MIT"
] | 2 | 2015-08-06T14:08:39.000Z | 2015-09-29T09:47:26.000Z | xmlrpc/client.py | davidvoler/ate_meteor | d7ac20638a30e941e0ca8740499743bc26dd57be | [
"MIT"
] | null | null | null | __author__ = 'avraham'
from xmlrpclib import ServerProxy
port = 9876
| 24.769231 | 84 | 0.652174 |
ca6e3b8ba437468f1d2e6ebc7b338d1c4822e773 | 311 | py | Python | launcher.py | Bolinooo/Algorithms | 08b1e94eaa483845eb7611eef6192a047e04711f | [
"MIT"
] | null | null | null | launcher.py | Bolinooo/Algorithms | 08b1e94eaa483845eb7611eef6192a047e04711f | [
"MIT"
] | null | null | null | launcher.py | Bolinooo/Algorithms | 08b1e94eaa483845eb7611eef6192a047e04711f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Bolinooo"
if __name__ == "__main__":
main()
| 19.4375 | 84 | 0.623794 |
ca6fb98607ef14400c5def23eec2923315d9fa2b | 3,293 | py | Python | project_1a_data_modeling_with_postgres/sql_queries.py | jpuris/udacity-data-engineering-submissions | e71e2569241c76b5e6c3cd074667b19bde4d7b9e | [
"MIT"
] | null | null | null | project_1a_data_modeling_with_postgres/sql_queries.py | jpuris/udacity-data-engineering-submissions | e71e2569241c76b5e6c3cd074667b19bde4d7b9e | [
"MIT"
] | null | null | null | project_1a_data_modeling_with_postgres/sql_queries.py | jpuris/udacity-data-engineering-submissions | e71e2569241c76b5e6c3cd074667b19bde4d7b9e | [
"MIT"
] | null | null | null | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS \"time\";"
# CREATE TABLES
songplay_table_create = ("""
CRE... | 28.387931 | 117 | 0.670817 |
ca705b4d66574b3cbb4b789138782fb79432f6ae | 9,048 | py | Python | Data Gen/relgen.py | selinozdas/ObsCo | 296c0fbac97612b50bca03ccb24b8851781952ac | [
"MIT"
] | 1 | 2018-10-22T18:44:31.000Z | 2018-10-22T18:44:31.000Z | Data Gen/relgen.py | selinozdas/epsikon | 296c0fbac97612b50bca03ccb24b8851781952ac | [
"MIT"
] | null | null | null | Data Gen/relgen.py | selinozdas/epsikon | 296c0fbac97612b50bca03ccb24b8851781952ac | [
"MIT"
] | null | null | null | from pymongo import MongoClient
#change url
mongo_url = 'mongodb://127.0.0.1:27017/'
client = MongoClient()
db = client['obsco']
db.relations.insert_many([
{
'voter':12345671,
'voted':12345672,
'votes':[1,1,1,1,1,0,0,1,1]
},
{
'voter':12345671,
'voted':12345673,
... | 19.542117 | 44 | 0.383842 |
ca73356a167a495ef7f15554e401d4c020b25f47 | 822 | py | Python | codes/day9_task1.py | tayyrov/AdventOfCode | 69003407fd345ea76f8125b4b132e5b5d5ea33ab | [
"MIT"
] | 1 | 2021-12-07T10:54:48.000Z | 2021-12-07T10:54:48.000Z | codes/day9_task1.py | tayyrov/AdventOfCode | 69003407fd345ea76f8125b4b132e5b5d5ea33ab | [
"MIT"
] | null | null | null | codes/day9_task1.py | tayyrov/AdventOfCode | 69003407fd345ea76f8125b4b132e5b5d5ea33ab | [
"MIT"
] | null | null | null | """
Advent Of Code 2021
Day 9
Date: 09-12-2021
Site: https://adventofcode.com/2021/day/9
Author: Tayyrov
"""
input_file = open('../input_files/day9_input', 'r')
matrix = input_file.readlines()
rows = len(matrix)
cols = len(matrix[0].strip())
directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]
ans = 0
... | 22.216216 | 64 | 0.519465 |
ca73616e330f62bf07e4bc8f69070d118dc75955 | 6,532 | py | Python | scripts/demo_taskonomy.py | jozhang97/Side-tuning | dea345691fb7ee0230150fe56ddd644efdffa6ac | [
"MIT"
] | 56 | 2020-01-12T05:45:59.000Z | 2022-03-17T15:04:15.000Z | scripts/demo_taskonomy.py | jozhang97/Side-tuning | dea345691fb7ee0230150fe56ddd644efdffa6ac | [
"MIT"
] | 7 | 2020-01-28T23:14:45.000Z | 2022-02-10T01:56:48.000Z | scripts/demo_taskonomy.py | jozhang97/Side-tuning | dea345691fb7ee0230150fe56ddd644efdffa6ac | [
"MIT"
] | 2 | 2020-02-29T14:51:23.000Z | 2020-03-07T03:23:27.000Z | import time
from tqdm import tqdm
import torch
import torch.nn.functional as F
from evkit.utils.losses import weighted_l1_loss, weighted_l2_loss, softmax_cross_entropy, dense_cross_entropy
from tlkit.models.lifelong_framework import LifelongSidetuneNetwork
from tlkit.data.datasets.taskonomy_dataset import get_lifelon... | 39.829268 | 161 | 0.686467 |
ca74d344cab07cbfd869efaea460c4c5bc949315 | 316 | py | Python | exercises/de/exc_02_05_02.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | 2 | 2020-07-07T01:46:37.000Z | 2021-04-20T03:19:43.000Z | exercises/de/exc_02_05_02.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | exercises/de/exc_02_05_02.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | import spacy
nlp = spacy.blank("de")
# Importiere die Klasse Doc
from ____ import ____
# Erwarteter Text: "Na, alles klar?"
words = ["Na", ",", "alles", "klar", "?"]
spaces = [____, ____, ____, ____, ____]
# Erstelle ein Doc mit den Wrtern und Leerzeichen
doc = ____(____, ____=____, ____=____)
print(doc.text)
| 21.066667 | 50 | 0.674051 |
ca74e85f36d8815a258660b91b00fe2163b98715 | 2,602 | py | Python | un_contre_un.py | ForrayGabriel/polychess | 6555d32d2526d79c1de1c264d8c42c48bee5d412 | [
"MIT"
] | 1 | 2021-11-26T10:08:39.000Z | 2021-11-26T10:08:39.000Z | un_contre_un.py | ForrayGabriel/polychess | 6555d32d2526d79c1de1c264d8c42c48bee5d412 | [
"MIT"
] | null | null | null | un_contre_un.py | ForrayGabriel/polychess | 6555d32d2526d79c1de1c264d8c42c48bee5d412 | [
"MIT"
] | 2 | 2020-12-10T08:07:05.000Z | 2021-01-07T15:26:04.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 10 11:00:53 2020
@author: Gabriel
"""
import chess
import chess.svg
import random
#Fonction qui demander un mouvement dans la console et le retourn sous la forme d'un chess move
#Fonction qui retourne un coup au hasard dans la liste des coups possibles
choix = input... | 27.680851 | 152 | 0.609147 |
ca7506243947fc032fb70e7910e132594139685a | 43 | py | Python | libs/pyexcel/__version__.py | rocketbot-cl/PivotTableExcel | 041c8db2bbcd9655d30bf4c37aca4902b3d1db7a | [
"MIT"
] | null | null | null | libs/pyexcel/__version__.py | rocketbot-cl/PivotTableExcel | 041c8db2bbcd9655d30bf4c37aca4902b3d1db7a | [
"MIT"
] | 3 | 2020-02-24T03:41:18.000Z | 2021-12-13T20:45:52.000Z | pyexcel/__version__.py | heholek/pyexcel | bf111f20b51eeb10bf6020af84156fde3cb26b38 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.5.15'
__author__ = 'C.W.'
| 14.333333 | 22 | 0.627907 |
ca75cca3856c88a531bc1aaa1c544157626687b1 | 3,748 | py | Python | test/test_bitcoin.py | coinplus-sa/coinplus-solo | e4f385a3d9eb7b72e14e397761fd9a113938917a | [
"MIT"
] | 1 | 2018-08-21T06:28:36.000Z | 2018-08-21T06:28:36.000Z | test/test_bitcoin.py | coinplus-sa/coinplus-solo | e4f385a3d9eb7b72e14e397761fd9a113938917a | [
"MIT"
] | 1 | 2019-05-30T06:23:41.000Z | 2019-09-03T09:49:06.000Z | test/test_bitcoin.py | coinplus-sa/coinplus-solo | e4f385a3d9eb7b72e14e397761fd9a113938917a | [
"MIT"
] | 1 | 2021-06-30T12:36:25.000Z | 2021-06-30T12:36:25.000Z | import unittest
from coinplus_solo_redeem.common import wif_export_bitcoin, compute_public_key_sec256k1, address_from_publickey_bitcoin
| 96.102564 | 153 | 0.743863 |
ca75f434148d96356dd723dec0e4898094cb7430 | 1,250 | py | Python | CH_13_async_io/T_00_async_await.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_13_async_io/T_00_async_await.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_13_async_io/T_00_async_await.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | import asyncio
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
#################################################################
import asyncio
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
#############################################################... | 17.123288 | 65 | 0.556 |
ca75fcb3c8515832e54adfde75adb4f6c4ec10df | 98 | py | Python | tutorials/class_2/apps.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 13 | 2020-11-05T04:22:51.000Z | 2022-02-27T08:44:50.000Z | tutorials/class_2/apps.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | null | null | null | tutorials/class_2/apps.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 2 | 2020-11-10T10:01:20.000Z | 2021-04-07T02:33:29.000Z | from django.apps import AppConfig
| 16.333333 | 33 | 0.765306 |
ca77263261ea32fe43d682889ede3057c2714eb1 | 953 | py | Python | pyretrommo/player.py | snwhd/pyretrommo | fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7 | [
"blessing"
] | 1 | 2021-11-25T09:33:30.000Z | 2021-11-25T09:33:30.000Z | pyretrommo/player.py | snwhd/pyretrommo | fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7 | [
"blessing"
] | null | null | null | pyretrommo/player.py | snwhd/pyretrommo | fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7 | [
"blessing"
] | null | null | null | #!/usr/bin/env python3
from typing import (
Tuple,
)
from .character import Character
from .gen.player_class import PlayerClass
from .gen.player_stats import STATS_BY_PLAYER_CLASS
from .gen.equipment import GearType
from .stats import Stats
| 25.078947 | 76 | 0.645331 |
ca77ed517dcb7e292e04556306984fb49fef89ce | 8,361 | py | Python | m2wsgi/io/gevent.py | rfk/m2wsgi | ae3d054ba8594dd286c82351325d88a0af0245aa | [
"MIT"
] | 1 | 2015-11-08T11:31:20.000Z | 2015-11-08T11:31:20.000Z | m2wsgi/io/gevent.py | ged/m2wsgi | 669ad356ee69ab1dffb28fb35dd7bde415999209 | [
"MIT"
] | 3 | 2018-02-25T02:16:32.000Z | 2018-02-25T02:16:41.000Z | m2wsgi/io/gevent.py | rfk/m2wsgi | ae3d054ba8594dd286c82351325d88a0af0245aa | [
"MIT"
] | 1 | 2021-11-29T00:01:00.000Z | 2021-11-29T00:01:00.000Z | """
m2wsgi.io.gevent: gevent-based I/O module for m2wsgi
=====================================================
This module provides subclasses of m2wsgi.WSGIHandler and related classes
that are specifically tuned for running under gevent. You can import
and use the classes directory from here, or you can select th... | 32.917323 | 78 | 0.672527 |
ca783de6ff83c65ac31c3c3f5577a1372db396ed | 8,584 | py | Python | examples/text_buffer.py | DT-was-an-ET/explorer-hat | 9dd8624a094b9a7663fbcbb95be72fdb946eecc7 | [
"MIT"
] | null | null | null | examples/text_buffer.py | DT-was-an-ET/explorer-hat | 9dd8624a094b9a7663fbcbb95be72fdb946eecc7 | [
"MIT"
] | null | null | null | examples/text_buffer.py | DT-was-an-ET/explorer-hat | 9dd8624a094b9a7663fbcbb95be72fdb946eecc7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# for use with Python 3
# text_buffer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at ... | 37.484716 | 174 | 0.681034 |
ca783e77d01b6a65f34fba8804bdd660d6dfe9a6 | 886 | py | Python | repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py | roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler | 0159df4e04fb6848c2e34b8597f7601630f9bdc1 | [
"MIT-0"
] | null | null | null | repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py | roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler | 0159df4e04fb6848c2e34b8597f7601630f9bdc1 | [
"MIT-0"
] | null | null | null | repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py | roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler | 0159df4e04fb6848c2e34b8597f7601630f9bdc1 | [
"MIT-0"
] | null | null | null |
"""
This Lambda parses the output of ModelQualityStep to extract the value of a specific metric
"""
import json
import boto3
sm_client = boto3.client("sagemaker")
s3 = boto3.resource('s3')
| 26.058824 | 98 | 0.673815 |
ca7aaf0d27786d0d1b6110d5b7821183f0fa08f7 | 2,383 | py | Python | main.py | Plouffi/Feh-Pass-Reviews | 0e4722da7f752a1b82ef7a65f43f7a76389f22b3 | [
"MIT"
] | 3 | 2020-02-18T20:40:11.000Z | 2020-03-16T15:05:13.000Z | main.py | Plouffi/Feh-Pass-Reviews | 0e4722da7f752a1b82ef7a65f43f7a76389f22b3 | [
"MIT"
] | null | null | null | main.py | Plouffi/Feh-Pass-Reviews | 0e4722da7f752a1b82ef7a65f43f7a76389f22b3 | [
"MIT"
] | null | null | null | from data_manager import DataManager, plot_fehpass_mention, plot_score_distribution
from scraper import Scraper
from datetime import date as dt
from cloud import Cloud
import sys
import json
def get_reviews():
"""
Method to fecth reviews from the Playstore
"""
config = load_config()
dm = DataManager(config)
... | 25.351064 | 97 | 0.738984 |
ca7bcebe8a789ca0d1b9184a805dc93a7fdf5be0 | 4,679 | py | Python | simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py | EricssonResearch/scott-eu | aad7fd2f767a3c5e7d89223a593fd979ad596db3 | [
"Apache-2.0"
] | 19 | 2017-06-29T07:41:26.000Z | 2021-11-03T18:48:48.000Z | simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py | EricssonResearch/scott-eu | aad7fd2f767a3c5e7d89223a593fd979ad596db3 | [
"Apache-2.0"
] | 175 | 2017-06-29T09:37:43.000Z | 2021-07-09T12:55:28.000Z | simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py | EricssonResearch/scott-eu | aad7fd2f767a3c5e7d89223a593fd979ad596db3 | [
"Apache-2.0"
] | 8 | 2017-10-31T08:53:12.000Z | 2021-07-21T06:14:43.000Z | #!/usr/bin/env python
"""
Edited from navigation.py in turtlebot2i_navigation module
"""
import rospy
import actionlib
from nav_msgs.msg import Odometry
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
import geometry_msgs.msg
from sensor_msgs.msg import LaserScan
from tf.transformations import quatern... | 36.554688 | 112 | 0.70421 |
ca7cc46e8c8e4b7eedde7891b3c0b03ff8e70a99 | 6,320 | py | Python | micropython firmware/mylib_modules/stepper.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 44 | 2016-10-29T18:53:00.000Z | 2022-03-24T08:37:05.000Z | micropython firmware/mylib_modules/stepper.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | null | null | null | micropython firmware/mylib_modules/stepper.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 37 | 2016-10-26T23:07:39.000Z | 2022-01-21T19:10:35.000Z | # Stepper Motor Shield/Wing Driver
# Based on Adafruit Motorshield library:
# https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library
# Author: Tony DiCola
import pca9685
# Constants that specify the direction and style of steps.
FORWARD = const(1)
BACKWARD = const(2)
SINGLE = const(1)
DOUBLE = const(2)
INTERLEA... | 36.959064 | 99 | 0.54557 |
ca7e72ac8eca8a96798ab1b879172ea0ca0060fa | 7,333 | py | Python | python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py | broadinstitute/genetics-kp-dev | 902a153a33942ba5d224c129db0ae58562927085 | [
"MIT"
] | null | null | null | python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py | broadinstitute/genetics-kp-dev | 902a153a33942ba5d224c129db0ae58562927085 | [
"MIT"
] | 8 | 2021-06-14T18:10:53.000Z | 2022-03-23T18:30:10.000Z | python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py | broadinstitute/genetics-kp-dev | 902a153a33942ba5d224c129db0ae58562927085 | [
"MIT"
] | 1 | 2022-02-22T21:24:58.000Z | 2022-02-22T21:24:58.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server import util
| 38.798942 | 269 | 0.684167 |
ca7fda4d86c2fba009810467ffdbbaf903beb734 | 138 | py | Python | Src/StdLib/Lib/site-packages/pythoncom.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 1,078 | 2016-07-19T02:48:30.000Z | 2022-03-30T21:22:34.000Z | Src/StdLib/Lib/site-packages/pythoncom.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 576 | 2017-05-21T12:36:48.000Z | 2022-03-30T13:47:03.000Z | Src/StdLib/Lib/site-packages/pythoncom.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 269 | 2017-05-21T04:44:47.000Z | 2022-03-31T16:18:13.000Z | # Magic utility that "redirects" to pythoncomxx.dll
import pywintypes
pywintypes.__import_pywin32_system_module__("pythoncom", globals())
| 34.5 | 67 | 0.833333 |
ca8000a403d5b123e875d49d431c426113a4a558 | 1,119 | py | Python | paperswithcode/models/evaluation/__init__.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 78 | 2020-10-26T11:08:41.000Z | 2022-03-31T18:38:40.000Z | paperswithcode/models/evaluation/__init__.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 15 | 2020-10-31T11:46:07.000Z | 2022-01-21T09:01:43.000Z | paperswithcode/models/evaluation/__init__.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 13 | 2020-11-12T00:07:39.000Z | 2022-01-14T03:07:45.000Z | __all__ = [
"Metric",
"Metrics",
"MetricCreateRequest",
"MetricUpdateRequest",
"Result",
"Results",
"ResultCreateRequest",
"ResultUpdateRequest",
"EvaluationTable",
"EvaluationTables",
"EvaluationTableCreateRequest",
"EvaluationTableUpdateRequest",
"ResultSyncRequest"... | 23.3125 | 58 | 0.731903 |
ca8027790a4fceb962c245fd135028de87ab82b7 | 530 | py | Python | tests/test_importall.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 6 | 2018-04-18T03:42:50.000Z | 2021-11-20T18:46:37.000Z | tests/test_importall.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 13 | 2018-10-01T11:45:05.000Z | 2022-03-16T12:28:36.000Z | tests/test_importall.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 5 | 2017-12-09T09:02:17.000Z | 2021-11-15T16:55:30.000Z | #!/usr/bin/env python
#
# test_importall.py -
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
import pkgutil
import importlib
import fsl
| 16.5625 | 70 | 0.615094 |
ca810acaf114d27759397ca02efb21720c0a1ece | 14,285 | py | Python | bauble/model/propagation.py | Bauble/bauble.api | 183c97fda076ea870e21e70ecf89a2a94a7f5722 | [
"BSD-3-Clause"
] | null | null | null | bauble/model/propagation.py | Bauble/bauble.api | 183c97fda076ea870e21e70ecf89a2a94a7f5722 | [
"BSD-3-Clause"
] | 1 | 2015-02-05T13:15:00.000Z | 2015-02-05T13:15:00.000Z | bauble/model/propagation.py | Bauble/bauble.api | 183c97fda076ea870e21e70ecf89a2a94a7f5722 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# propagation module
#
import datetime
import os
from random import random
import re
import sys
import weakref
import traceback
import xml.sax.saxutils as saxutils
import dateutil.parser as date_parser
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.orm.session import o... | 34.756691 | 94 | 0.566398 |
ca81d00c9b08ea72e49aff7d13fb4cf046744724 | 517 | py | Python | imdbTask5.py | Anjalipatil18/IMDB_SCRAPER | 2ec79b91198e2f458d1099ee8ad27acde71b09b6 | [
"MIT"
] | null | null | null | imdbTask5.py | Anjalipatil18/IMDB_SCRAPER | 2ec79b91198e2f458d1099ee8ad27acde71b09b6 | [
"MIT"
] | null | null | null | imdbTask5.py | Anjalipatil18/IMDB_SCRAPER | 2ec79b91198e2f458d1099ee8ad27acde71b09b6 | [
"MIT"
] | null | null | null | from imdbTask1 import*
from imdbTask4 import*
movieOfDetails=get_movie_list_details(movieInfo)
# pprint(movieOfDetails)
| 34.466667 | 91 | 0.717602 |
ca862c6e479fb1bc4dd13ef50993c3c14c1ddfc9 | 2,084 | py | Python | Mobot_simulation/Animation.py | harveybia/the-flash-sudo | 33753bf1ac854a030b2b27341c1ff893798c5821 | [
"Apache-2.0"
] | 2 | 2016-06-16T07:42:43.000Z | 2016-06-24T23:49:19.000Z | Mobot_simulation/Animation.py | harveybia/the-flash-sudo | 33753bf1ac854a030b2b27341c1ff893798c5821 | [
"Apache-2.0"
] | null | null | null | Mobot_simulation/Animation.py | harveybia/the-flash-sudo | 33753bf1ac854a030b2b27341c1ff893798c5821 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
| 30.202899 | 70 | 0.604127 |
ca8899e5526768d89fe639ff3c58ac5fe8bcfec8 | 3,726 | py | Python | test.py | FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization | 361bafaffdb50e05a97aa7ef27b9bfddd07f6648 | [
"MIT"
] | null | null | null | test.py | FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization | 361bafaffdb50e05a97aa7ef27b9bfddd07f6648 | [
"MIT"
] | null | null | null | test.py | FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization | 361bafaffdb50e05a97aa7ef27b9bfddd07f6648 | [
"MIT"
] | 1 | 2021-11-22T09:18:53.000Z | 2021-11-22T09:18:53.000Z | import tqdm
import copy
import torch
import numpy as np
import cv2
from models import Baseline, loadWeights, BaselineSepDyBN
from datasets import WFLW256, datasetSize, kptNum
import time
from ptflops import get_model_complexity_info
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
if __name__ == "__main__":
t... | 40.064516 | 102 | 0.618357 |
ca890cc0c4b716f777412a40314e358dfa561905 | 1,365 | py | Python | problems/risk/solutions/risk.py | lucidsoftware/lucid-programming-competition-2018 | be22bff0f0d1b008f5729c0b6e5e2adb08925c96 | [
"Apache-2.0"
] | 2 | 2019-03-05T22:35:47.000Z | 2019-03-05T22:35:55.000Z | problems/risk/solutions/risk.py | lucidsoftware/lucid-programming-competition-2018 | be22bff0f0d1b008f5729c0b6e5e2adb08925c96 | [
"Apache-2.0"
] | 2 | 2020-07-16T21:55:43.000Z | 2021-05-08T12:14:05.000Z | problems/risk/solutions/risk.py | lucidsoftware/lucid-programming-competition-2018 | be22bff0f0d1b008f5729c0b6e5e2adb08925c96 | [
"Apache-2.0"
] | 4 | 2019-03-08T01:42:00.000Z | 2021-01-28T03:01:34.000Z | from collections import defaultdict
from itertools import product
from functools import lru_cache
from sys import setrecursionlimit
setrecursionlimit(10000)
for _ in range(int(input())):
attackers, defenders = map(int, input().split())
print("{0:.7f}".format(p_victory(attackers, defenders)))
| 29.673913 | 84 | 0.612454 |
ca8a90e5ceb797a2b9672b05c74b49ae1602ffc4 | 1,240 | py | Python | solutions/2021/day_06.py | mokytis/advent-of-code | 7bddbc87411388bb0da8284c3daa5252f9d5007d | [
"MIT"
] | null | null | null | solutions/2021/day_06.py | mokytis/advent-of-code | 7bddbc87411388bb0da8284c3daa5252f9d5007d | [
"MIT"
] | null | null | null | solutions/2021/day_06.py | mokytis/advent-of-code | 7bddbc87411388bb0da8284c3daa5252f9d5007d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Puzzle Title: AoC 2021 Day 6: Lanternfish
Puzzle Link: https://adventofcode.com/2021/day/6
Solution Author: Luke Spademan <info@lukespademan.com>
Solution License: MIT
"""
import fileinput
from collections import Counter
import copy
if __name__ == "__main__":
main()
| 22.545455 | 79 | 0.642742 |
ca8bb0a6b5e76ac3dc813001f4574315eedd8360 | 2,082 | py | Python | Day 20: Particle Swarm/Day 20: Particle Swarm.py | djvanhelmond/AdventofCode2017 | a41879e172b8f2db23ac6a5f71433ce6b484b909 | [
"BSD-3-Clause"
] | null | null | null | Day 20: Particle Swarm/Day 20: Particle Swarm.py | djvanhelmond/AdventofCode2017 | a41879e172b8f2db23ac6a5f71433ce6b484b909 | [
"BSD-3-Clause"
] | null | null | null | Day 20: Particle Swarm/Day 20: Particle Swarm.py | djvanhelmond/AdventofCode2017 | a41879e172b8f2db23ac6a5f71433ce6b484b909 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/local/bin/python3
import math
with open("./input.txt") as f: INPUT = f.readlines()
canvas = Gpu(INPUT)
print("Star 1: %i" % canvas.slowestParticle())
for i in range(100):
canvas.tick()
print("Star 2: %i" % len(canvas.particles))
| 34.131148 | 104 | 0.597502 |
ca8c4743210b0654e5b22385db2cf3bf8ce7e230 | 5,591 | py | Python | src/BasicPacketInfo.py | ghousali17/nids-framework | cee79396ca057cd199cee6c73ffd11f7fa99fdb8 | [
"MIT"
] | 1 | 2021-02-08T04:57:02.000Z | 2021-02-08T04:57:02.000Z | src/BasicPacketInfo.py | ghousali17/nids-framework | cee79396ca057cd199cee6c73ffd11f7fa99fdb8 | [
"MIT"
] | null | null | null | src/BasicPacketInfo.py | ghousali17/nids-framework | cee79396ca057cd199cee6c73ffd11f7fa99fdb8 | [
"MIT"
] | 4 | 2019-03-25T14:25:55.000Z | 2019-05-23T14:09:33.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pcap
import sys
import socket
import struct
| 22.913934 | 163 | 0.567519 |
ca8c5cc3fe65bbbd435e863800b01663c3b5d815 | 1,414 | py | Python | normj.py | AROM98/ipln2 | d9942279d5b6d234196113eb2292b00f3b12bf14 | [
"MIT"
] | null | null | null | normj.py | AROM98/ipln2 | d9942279d5b6d234196113eb2292b00f3b12bf14 | [
"MIT"
] | null | null | null | normj.py | AROM98/ipln2 | d9942279d5b6d234196113eb2292b00f3b12bf14 | [
"MIT"
] | null | null | null | #!python3
#!/usr/local/bin
# encoding: utf-8
import os
from re import *
import sys
from getopt import getopt
import pandas as pd
os.system("date")
#os.system("poetry -i misc2.txt -o result.json")
# pegar no ficheiro do poema
# retirar metadados e crirar .txt temporario s com poema
# usar coisa2 neste ficheiro, reto... | 19.108108 | 58 | 0.659123 |
ca8d13ea07eda5a6096abb0bf841921b8a0004f4 | 614 | py | Python | Histogram.py | TheoSaify/Yolo-Detector | f1ac387370982de323a4fc09109c57736b8ce8d6 | [
"Apache-2.0"
] | null | null | null | Histogram.py | TheoSaify/Yolo-Detector | f1ac387370982de323a4fc09109c57736b8ce8d6 | [
"Apache-2.0"
] | null | null | null | Histogram.py | TheoSaify/Yolo-Detector | f1ac387370982de323a4fc09109c57736b8ce8d6 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
import imutils
from matplotlib import pyplot as plt
img = cv2.imread('img1.png',0)
# color = ('b','g','r')
# for i,col in enumerate(color):
# histr = cv2.calcHist([img],[i],None,[256],[0,256])
# plt.plot(histr,color = col)
# plt.xlim([0,256])
# plt.show()
h... | 23.615385 | 57 | 0.610749 |
ca8e74bdcdf56ae9a145fc5960607020ba877bc3 | 25,083 | py | Python | QualityControl/QC_aggregate_FC.py | tsmonteiro/fmri_proc | ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1 | [
"MIT"
] | 2 | 2021-11-16T10:00:33.000Z | 2021-12-13T02:57:40.000Z | QualityControl/QC_aggregate_FC.py | tsmonteiro/fmri_proc | ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1 | [
"MIT"
] | null | null | null | QualityControl/QC_aggregate_FC.py | tsmonteiro/fmri_proc | ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1 | [
"MIT"
] | 1 | 2021-12-13T02:57:27.000Z | 2021-12-13T02:57:27.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 17 09:39:23 2020
@author: u0101486
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 5 12:26:49 2019
@author: u0101486
"""
# Aggregate QC measures
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
... | 33.134742 | 175 | 0.521429 |
ca8f100cbcd38d31bcc26bca290e0a38cd1a6502 | 5,987 | py | Python | dalle_pytorch/distributed_backends/deepspeed_backend.py | Gitsamshi/DALLE-pytorch | 6cfc43158a4615865e97c839133290afcf289824 | [
"MIT"
] | 4,025 | 2021-01-05T23:52:33.000Z | 2022-03-31T11:17:44.000Z | dalle_pytorch/distributed_backends/deepspeed_backend.py | Gitsamshi/DALLE-pytorch | 6cfc43158a4615865e97c839133290afcf289824 | [
"MIT"
] | 318 | 2021-01-06T08:14:36.000Z | 2022-03-15T07:23:39.000Z | dalle_pytorch/distributed_backends/deepspeed_backend.py | Gitsamshi/DALLE-pytorch | 6cfc43158a4615865e97c839133290afcf289824 | [
"MIT"
] | 449 | 2021-01-06T17:30:17.000Z | 2022-03-30T03:42:17.000Z | import json
import os
import torch
from .distributed_backend import DistributedBackend
| 34.80814 | 78 | 0.601637 |
ca921305ecd69d1337aa587c3ee6490624527464 | 361 | py | Python | discord/ext/ui/combine/just.py | sushi-chaaaan/discord-ext-ui-fork | aa726b97ee1cd4c60974e74d3c9113142131a76e | [
"MIT"
] | 27 | 2021-05-28T10:43:50.000Z | 2022-03-29T14:30:17.000Z | discord/ext/ui/combine/just.py | sushi-chaaaan/discord-ext-ui-fork | aa726b97ee1cd4c60974e74d3c9113142131a76e | [
"MIT"
] | 13 | 2021-05-29T01:13:12.000Z | 2022-01-08T14:53:21.000Z | discord/ext/ui/combine/just.py | sushi-chaaaan/discord-ext-ui-fork | aa726b97ee1cd4c60974e74d3c9113142131a76e | [
"MIT"
] | 13 | 2021-06-08T15:21:36.000Z | 2022-02-07T13:23:00.000Z | from __future__ import annotations
from typing import Any
from .publisher import Publisher
| 21.235294 | 43 | 0.66205 |
ca9214f2ddb4c13d7bee6606639e425ff6450b6f | 329 | py | Python | student/migrations/0003_remove_student_username.py | KhudadadKhawari/the-library | a6acd2e8ce9ca350339d99775f1e7906d343c7d4 | [
"MIT"
] | null | null | null | student/migrations/0003_remove_student_username.py | KhudadadKhawari/the-library | a6acd2e8ce9ca350339d99775f1e7906d343c7d4 | [
"MIT"
] | null | null | null | student/migrations/0003_remove_student_username.py | KhudadadKhawari/the-library | a6acd2e8ce9ca350339d99775f1e7906d343c7d4 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-24 04:20
from django.db import migrations
| 18.277778 | 47 | 0.595745 |
ca9339f4332b4f70213be088c7de5c5d457e5604 | 418 | py | Python | MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py | hvuhsg/MultiServer | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | [
"MIT"
] | 8 | 2019-05-25T21:17:07.000Z | 2020-10-18T11:46:12.000Z | MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py | hvuhsg/MultiServer | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | [
"MIT"
] | 1 | 2019-05-25T21:28:06.000Z | 2019-05-25T21:28:06.000Z | MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py | hvuhsg/MultiServer | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | [
"MIT"
] | null | null | null | from ..protocol import Protocol
from .logs_protocol import LogsProtocol
| 29.857143 | 56 | 0.667464 |
ca963c794e6b8ca2f4dbf07be128d72d92a54e5c | 9,514 | py | Python | openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 42.663677 | 84 | 0.586189 |
ca98069cb091fd65e974456a923332e50244ac8b | 484 | py | Python | 0x11-python-network_1/8-json_api.py | Dev-Loup/holbertonschool-higher_level_programming | af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b | [
"FSFAP"
] | null | null | null | 0x11-python-network_1/8-json_api.py | Dev-Loup/holbertonschool-higher_level_programming | af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b | [
"FSFAP"
] | null | null | null | 0x11-python-network_1/8-json_api.py | Dev-Loup/holbertonschool-higher_level_programming | af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b | [
"FSFAP"
] | null | null | null | #!/usr/bin/python3
""" Search API
"""
import requests
import sys
if __name__ == '__main__':
data = {'q': ''}
try:
data['q'] = sys.argv[1]
except:
pass
data = requests.post('http://0.0.0.0:5000/search_user', data)
try:
q_to_json = data.json()
if not q_to_json:
... | 22 | 79 | 0.522727 |
ca99a6d0c24e8be79c8b7ceda99e07215c385c4b | 145 | py | Python | discovery/__init__.py | amenezes/discovery-client | 9c41456d1cc14f4aab34628ad4e13423e00bc4be | [
"Apache-2.0"
] | 2 | 2019-07-18T22:43:49.000Z | 2020-03-09T03:27:41.000Z | discovery/__init__.py | amenezes/discovery-client | 9c41456d1cc14f4aab34628ad4e13423e00bc4be | [
"Apache-2.0"
] | 20 | 2019-02-27T19:08:03.000Z | 2021-06-22T16:47:32.000Z | discovery/__init__.py | amenezes/discovery-client | 9c41456d1cc14f4aab34628ad4e13423e00bc4be | [
"Apache-2.0"
] | null | null | null | import logging
from discovery.__version__ import __version__
log = logging.getLogger("discovery-client")
log.addHandler(logging.NullHandler())
| 20.714286 | 45 | 0.82069 |
ca9b8ab6ce1aa3e43c4ff91b4bd83dc9639155b3 | 6,548 | py | Python | tests/structure_tests.py | ruivieira/python-ssm | 09468506637cbdb7290b6f0896c2940213c14944 | [
"Apache-2.0"
] | 4 | 2019-07-22T06:56:56.000Z | 2020-12-29T20:06:06.000Z | tests/structure_tests.py | ruivieira/python-ssm | 09468506637cbdb7290b6f0896c2940213c14944 | [
"Apache-2.0"
] | 5 | 2018-04-01T11:42:11.000Z | 2020-09-28T05:15:05.000Z | tests/structure_tests.py | ruivieira/python-ssm | 09468506637cbdb7290b6f0896c2940213c14944 | [
"Apache-2.0"
] | 1 | 2019-07-20T13:40:59.000Z | 2019-07-20T13:40:59.000Z | """structure_tests
This module contains tests for the DGLM structures
"""
# pylint: disable=no-self-use
import unittest
from nose.tools import assert_equals, assert_almost_equal # type: ignore
from nose.tools.nontrivial import raises # type: ignore
import numpy as np
from pssm.dglm import NormalDLM
from pssm.structu... | 47.107914 | 80 | 0.651955 |
ca9b95c978ba4ebdf7212bca4a59b66c0c1f46e7 | 356 | py | Python | test/record.py | titulebolide/variometer | 7e5fbacdb9c403d11dd01abc6f5e20db4b922756 | [
"MIT"
] | null | null | null | test/record.py | titulebolide/variometer | 7e5fbacdb9c403d11dd01abc6f5e20db4b922756 | [
"MIT"
] | null | null | null | test/record.py | titulebolide/variometer | 7e5fbacdb9c403d11dd01abc6f5e20db4b922756 | [
"MIT"
] | null | null | null | import flask
import numpy as np
buff = []
app = flask.Flask(__name__)
app.run("0.0.0.0", 7998)
| 17.8 | 46 | 0.620787 |
ca9bf7b2d5b27c913dc9d1327604f448153b014a | 13,207 | py | Python | framework/cefs.py | shew91/Retropy | 9feb34855b997c48d93a5343a9842788d19582e6 | [
"MIT"
] | 13 | 2018-06-02T09:11:15.000Z | 2020-08-29T01:01:19.000Z | framework/cefs.py | shew91/Retropy | 9feb34855b997c48d93a5343a9842788d19582e6 | [
"MIT"
] | 1 | 2021-01-17T14:03:13.000Z | 2021-01-17T14:03:13.000Z | framework/cefs.py | shew91/Retropy | 9feb34855b997c48d93a5343a9842788d19582e6 | [
"MIT"
] | 6 | 2018-06-02T16:20:47.000Z | 2021-12-30T22:26:54.000Z | # https://www.cefconnect.com/closed-end-funds-screener
# https://www.cefa.com/
# http://cefdata.com/funds/clm/
# https://www.cefconnect.com/fund/CLM
# https://www.cefchannel.com/clm/
from framework.utils import *
from framework.base import *
from framework.meta_data import *
from framework.stats_basic import *
from ... | 41.271875 | 678 | 0.673885 |
ca9c994cab0cb35cf5defa4b1739417be15fb6c9 | 2,616 | py | Python | ecco_v4_py/vector_calc.py | zelunwu/ECCOv4-py | 03b6a1b01fcd17b0b88c25bee205c195df52d7fa | [
"MIT"
] | 1 | 2022-03-08T12:27:08.000Z | 2022-03-08T12:27:08.000Z | ecco_v4_py/vector_calc.py | zelunwu/ECCOv4-py | 03b6a1b01fcd17b0b88c25bee205c195df52d7fa | [
"MIT"
] | null | null | null | ecco_v4_py/vector_calc.py | zelunwu/ECCOv4-py | 03b6a1b01fcd17b0b88c25bee205c195df52d7fa | [
"MIT"
] | 1 | 2020-05-09T01:07:03.000Z | 2020-05-09T01:07:03.000Z | """
Functions defined on vector valued fields
"""
import xarray as xr
import xgcm
from .ecco_utils import get_llc_grid
def UEVNfromUXVY(xfld,yfld,coords,grid=None):
"""Compute east, north facing vector field components from x, y components
by interpolating to cell centers and rotating by grid cell angle
... | 30.068966 | 84 | 0.66552 |
045f42e7e3687860c6585444a23e801817f61e12 | 2,409 | py | Python | StockExporter.py | A1eXFei/StockMarket3 | 01000d0731395868c4477982c6ed6c632c9a7427 | [
"Apache-2.0"
] | null | null | null | StockExporter.py | A1eXFei/StockMarket3 | 01000d0731395868c4477982c6ed6c632c9a7427 | [
"Apache-2.0"
] | null | null | null | StockExporter.py | A1eXFei/StockMarket3 | 01000d0731395868c4477982c6ed6c632c9a7427 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import os
import logging
from logging.config import fileConfig
from util import DatabaseUtil as dbu
from util import ExportUtil as eu
fileConfig("logging_config.ini")
logger = logging.getLogger(__name__)
| 43.8 | 114 | 0.602325 |
046046d511220f9b7bfb8a21f8d381f0f028cf8d | 34,758 | py | Python | experiments/2021-02-18-knockouts/local/py_analysis/avida.py | amlalejini/plastic-evolvability-avida | 909d944e52a102e09dd714a8b7e0f2274c4a8072 | [
"MIT"
] | 2 | 2021-09-16T14:47:43.000Z | 2021-10-31T04:55:16.000Z | experiments/2021-02-18-knockouts/local/py_analysis/avida.py | amlalejini/evolutionary-consequences-of-plasticity | 909d944e52a102e09dd714a8b7e0f2274c4a8072 | [
"MIT"
] | null | null | null | experiments/2021-02-18-knockouts/local/py_analysis/avida.py | amlalejini/evolutionary-consequences-of-plasticity | 909d944e52a102e09dd714a8b7e0f2274c4a8072 | [
"MIT"
] | 2 | 2020-08-19T20:01:14.000Z | 2020-12-21T21:24:12.000Z | from helpers import *
import copy
import pygame
import random
# Render vars
inst_x = 32
inst_width = 128
arrow_width = inst_x / 2
font_size = 10
font = pygame.font.SysFont('ubuntu', size = font_size)
large_font_size = 20
large_font = pygame.font.SysFont('ubuntu', size = large_font_size)
# Basic Avidian class. Handles... | 43.831021 | 101 | 0.466857 |
04611e1ebaeb1a4f4d094c70fa5acd7403c11436 | 366 | py | Python | GaiaLab/hits/filters/__init__.py | bombrun/GaiaLab | 186b39621cdc5d8fb165907107b1aaed933f0c8f | [
"MIT"
] | 8 | 2018-06-21T14:36:25.000Z | 2020-04-04T18:21:18.000Z | GaiaLab/hits/filters/__init__.py | MaraBucur/GaiaLab | 186b39621cdc5d8fb165907107b1aaed933f0c8f | [
"MIT"
] | 7 | 2018-11-26T15:01:27.000Z | 2019-07-12T14:21:34.000Z | GaiaLab/hits/filters/__init__.py | MaraBucur/GaiaLab | 186b39621cdc5d8fb165907107b1aaed933f0c8f | [
"MIT"
] | 5 | 2018-07-24T07:20:47.000Z | 2021-06-02T07:17:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Filters for the datasets. Natively implemented are the Kalman filter and
a single-pole low-pass filter.
There is also a base filter class created for subclassing to allow the
creation of custom filters.
"""
from . import kalman
from . import lowpass
__author__ = "Toby ... | 26.142857 | 72 | 0.740437 |
0461b582aac0fa16e0fc7a9e87a02f30b33f771e | 302 | py | Python | scribbler/transformation/abstract_transformation.py | belosthomas/scribbler | fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be | [
"MIT"
] | 5 | 2018-07-31T20:26:22.000Z | 2019-05-07T16:36:23.000Z | scribbler/transformation/abstract_transformation.py | belosthomas/scribbler | fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be | [
"MIT"
] | 1 | 2019-05-07T18:21:59.000Z | 2020-09-18T10:45:39.000Z | scribbler/transformation/abstract_transformation.py | belosthomas/scribbler | fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
| 20.133333 | 59 | 0.735099 |
046277d3c02237d1299502009394a5bf6a8ac7e5 | 6,262 | py | Python | examples/cvpr2020/reference_trainer.py | UCMerced-ML/LC-model-compression | bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e | [
"BSD-3-Clause"
] | 40 | 2020-05-19T01:31:02.000Z | 2022-01-28T00:25:33.000Z | examples/cvpr2020/reference_trainer.py | UCMerced-ML/LC-model-compression | bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e | [
"BSD-3-Clause"
] | 3 | 2020-09-09T16:04:17.000Z | 2022-03-18T00:59:39.000Z | examples/cvpr2020/reference_trainer.py | UCMerced-ML/LC-model-compression | bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e | [
"BSD-3-Clause"
] | 8 | 2020-09-08T14:11:16.000Z | 2022-01-28T00:25:41.000Z | #!/bin/env/python3
from types import ModuleType
from lc.models import torch as model_def
from utils import AverageMeter, Recorder, format_time, data_loader, compute_acc_loss
import argparse
import torch
from torch import optim
import torch.backends.cudnn as cudnn
import torch.nn as nn
import time
import os
if __name__... | 44.728571 | 125 | 0.621048 |
0463351ecd48fd4a8685d1b1e0e86fd55a8bbaa2 | 1,249 | py | Python | sa/profiles/Generic/sync_vlans.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Generic/sync_vlans.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Generic/sync_vlans.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# Copyright (C) 2007-2015 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
from noc.core.script.base import BaseScript
from noc.sa.interfaces.isyncvlans import ISyncVlans
| 33.756757 | 92 | 0.552442 |
0463d410530853a1c2fe7284a9f305e2222bedae | 1,875 | py | Python | Day_21/part2.py | Uklusi/AdventOfCode2021 | 3d22ace832bfd6c9855b2ebad3bf7f10c4751982 | [
"MIT"
] | null | null | null | Day_21/part2.py | Uklusi/AdventOfCode2021 | 3d22ace832bfd6c9855b2ebad3bf7f10c4751982 | [
"MIT"
] | null | null | null | Day_21/part2.py | Uklusi/AdventOfCode2021 | 3d22ace832bfd6c9855b2ebad3bf7f10c4751982 | [
"MIT"
] | null | null | null | from types import new_class
from AoCUtils import *
result = 0
partNumber = "2"
writeToLog = True
if writeToLog:
logFile = open("log" + partNumber + ".txt", "w")
else:
logFile = "stdout"
printLog = printLogFactory(logFile)
start1 = 8
start2 = 9
# Example
# start1 = 4
# start2 = 8
score1 = 0
score2 = 0
di... | 21.067416 | 95 | 0.5488 |
046764af8b8febc01686b2caf4cec52bcb012ff6 | 20,510 | py | Python | dpytools/menus.py | ComfortablyCoding/dpytools | e5588bc1795543eddb94c3d3a58a9ea9668740a0 | [
"MIT"
] | 22 | 2021-01-21T19:57:39.000Z | 2022-03-14T02:34:01.000Z | dpytools/menus.py | ComfortablyCoding/dpytools | e5588bc1795543eddb94c3d3a58a9ea9668740a0 | [
"MIT"
] | 3 | 2021-05-20T16:34:21.000Z | 2021-06-23T19:54:32.000Z | dpytools/menus.py | ComfortablyCoding/dpytools | e5588bc1795543eddb94c3d3a58a9ea9668740a0 | [
"MIT"
] | 7 | 2021-04-28T04:18:09.000Z | 2021-06-23T00:20:06.000Z | # -*- coding: utf-8 -*-
"""
This module holds functions for displaying different kinds of menus.
All menus are reaction based.
"""
import asyncio
from copy import copy
from inspect import isawaitable
from typing import List, Optional, Union, Callable
import discord
from discord import Embed
from discord.ext import c... | 35.982456 | 120 | 0.570697 |
046b23b296bfcedfcca9aaf23e3a6837b6efe373 | 9,706 | py | Python | formulator/models.py | Cahersan/django-formulator | 0b7552f9b0c11b83568ad37350c14a111694a931 | [
"MIT"
] | null | null | null | formulator/models.py | Cahersan/django-formulator | 0b7552f9b0c11b83568ad37350c14a111694a931 | [
"MIT"
] | null | null | null | formulator/models.py | Cahersan/django-formulator | 0b7552f9b0c11b83568ad37350c14a111694a931 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import re
import importlib
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional import cached_property
from model_utils import Choices
from collections im... | 35.166667 | 119 | 0.637441 |
046f7ca774853f5d3eb7867b83c71d1422a4ad73 | 36 | py | Python | deliverable1/test_case_05/__init__.py | TrackerSB/IEEEAITestChallenge2021 | 836f0cfa39a3e25a8149a9adb77c3a8270417a39 | [
"MIT"
] | 1 | 2021-09-14T16:30:44.000Z | 2021-09-14T16:30:44.000Z | deliverable1/test_case_05/__init__.py | TrackerSB/IEEEAITestChallenge2021 | 836f0cfa39a3e25a8149a9adb77c3a8270417a39 | [
"MIT"
] | 22 | 2021-02-26T06:35:00.000Z | 2021-07-16T12:37:58.000Z | deliverable1/test_case_05/__init__.py | TrackerSB/IEEEAITestChallenge2021 | 836f0cfa39a3e25a8149a9adb77c3a8270417a39 | [
"MIT"
] | 2 | 2021-03-10T19:50:28.000Z | 2021-08-23T08:02:36.000Z | from .test_case_05 import TestCase05 | 36 | 36 | 0.888889 |
046fd9edd934bed85046c10ef5960e82ca8128c6 | 2,686 | py | Python | src/pywink/test/devices/powerstrip_test.py | vickyg3/python-wink | 1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7 | [
"MIT"
] | null | null | null | src/pywink/test/devices/powerstrip_test.py | vickyg3/python-wink | 1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7 | [
"MIT"
] | null | null | null | src/pywink/test/devices/powerstrip_test.py | vickyg3/python-wink | 1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7 | [
"MIT"
] | null | null | null | import json
import os
import unittest
from pywink.api import get_devices_from_response_dict
from pywink.devices import types as device_types
| 43.322581 | 115 | 0.70551 |
04700730113a9f3f7622d5a4ec5c89cef15b8e21 | 963 | py | Python | src/python/pyLCIO/io/StdHepReader.py | jstrube/lcio | 763eb323df33d3b0c4240e6b6feb7d0a27b790d5 | [
"BSD-3-Clause"
] | null | null | null | src/python/pyLCIO/io/StdHepReader.py | jstrube/lcio | 763eb323df33d3b0c4240e6b6feb7d0a27b790d5 | [
"BSD-3-Clause"
] | 4 | 2020-08-26T23:35:37.000Z | 2020-09-22T21:13:25.000Z | src/python/pyLCIO/io/StdHepReader.py | JeffersonLab/hps-lcio | b83447dd8189d5f541601343066f8e3b4621f4ec | [
"BSD-3-Clause"
] | 1 | 2020-08-26T19:31:19.000Z | 2020-08-26T19:31:19.000Z | '''
Created on Dec 4, 2012
@author: <a href="mailto:christian.grefe@cern.ch">Christian Grefe</a>
'''
import os
from pyLCIO.io.Reader import Reader
from pyLCIO import EVENT, IMPL, UTIL
| 25.342105 | 71 | 0.589823 |
0470d58f55c3b1b314cc0262448436f7712baf8d | 6,440 | py | Python | test/deposit.py | DAism2019/ERCs | f5cfec6b5700685b5515c8106a373b5f71b429c6 | [
"CC0-1.0"
] | null | null | null | test/deposit.py | DAism2019/ERCs | f5cfec6b5700685b5515c8106a373b5f71b429c6 | [
"CC0-1.0"
] | null | null | null | test/deposit.py | DAism2019/ERCs | f5cfec6b5700685b5515c8106a373b5f71b429c6 | [
"CC0-1.0"
] | null | null | null | from contract import Forge,Validator,TOH,NDAO
from privateKey import my_address, private_key
# from web3.auto.infura.rinkeby import w3
from web3.auto import w3
import time # time
another = "0x2E8b222CFac863Ec6D3446c78fD46aAEA289A9fb"
another_privateKey = "078e9ed558a9afd1e7e27b9884fbcc95f8fa406bd02de3a2a19fbac401d7c7... | 29.406393 | 92 | 0.678416 |
0470f24c34be36437ebfed026dd28c5941c7d5c4 | 815 | py | Python | probe/influx.py | phenobarbital/asyncdb | d4ea3d6b60436afce758abbcd632164a6ac6fa0c | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2020-09-07T15:39:10.000Z | 2022-03-15T03:48:34.000Z | probe/influx.py | phenobarbital/asyncdb | d4ea3d6b60436afce758abbcd632164a6ac6fa0c | [
"Apache-2.0",
"BSD-3-Clause"
] | 394 | 2020-10-08T08:05:54.000Z | 2022-03-31T10:28:27.000Z | probe/influx.py | jelitox/asyncdb | c5cad9857baa14fa949d34fa29406024d68d5735 | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2020-09-07T15:38:56.000Z | 2021-09-26T03:52:27.000Z | from asyncdb import AsyncDB, AsyncPool
import asyncio
loop = asyncio.get_event_loop()
asyncio.set_event_loop(loop)
params = {
"host": "127.0.0.1",
"port": "8086",
"database": 'testdb',
"user": "influxdata",
"password": "12345678"
}
DRIVER='influx'
if __name__ == '__main__':
try:
lo... | 22.638889 | 67 | 0.656442 |
0471e20c45f11d47b6540524d445d34d138a76b6 | 1,925 | py | Python | packages/director-sdk/python/test/test_users_api.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | packages/director-sdk/python/test/test_users_api.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | 2 | 2018-05-13T09:10:57.000Z | 2019-03-06T08:10:40.000Z | packages/director-sdk/python/test/test_users_api.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Director API
This is the oSparc's director API # noqa: E501
OpenAPI spec version: 0.1.0
Contact: support@simcore.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import simcore_director_sdk
from simcore_director_s... | 25 | 101 | 0.677922 |
04723df89eebb8cfa4f96fd91422e906e34ae72a | 9,953 | py | Python | lookatweb/rules/domains.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T13:22:29.000Z | 2018-02-03T13:10:20.000Z | lookatweb/rules/domains.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | lookatweb/rules/domains.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | from .consts import *
L1_DOMAIN_RULES = [
{'type' : RULETYPE_EQUAL, 'text' : 'ru', 'action' : ACTION_FOLLOW, 'matcherkey' : 'r:net:domains_ru',
'entities' : [
{'name' : 'geo:ru:country/russia'},
]
},
{'type' : RULETYPE_EQUAL, 'text' : 'su', 'action' : ACTION_FOLLOW, 'matcherkey'... | 27.193989 | 107 | 0.437054 |
0472705f71b9f473bebe34fc4fa5caeef5f89456 | 17,557 | py | Python | UI.py | Abdur-rahmaanJ/PygameUI | 91139272f41558176ea105f7f0b613aef9a243f5 | [
"Apache-2.0"
] | 1 | 2020-05-27T04:24:36.000Z | 2020-05-27T04:24:36.000Z | UI.py | Abdur-rahmaanJ/PygameUI | 91139272f41558176ea105f7f0b613aef9a243f5 | [
"Apache-2.0"
] | null | null | null | UI.py | Abdur-rahmaanJ/PygameUI | 91139272f41558176ea105f7f0b613aef9a243f5 | [
"Apache-2.0"
] | null | null | null | #Ui Widgets for pygame
#this is supposed to make it as easy as possible to make and use buttons and other widgets
#Documentation at 'https://github.com/TheBigKahuna353/PygameUI'
#All made by Jordan Withell
import pygame
#make screen quick
#instead of updating every widget individually, this func updates all... | 43.8925 | 361 | 0.566327 |
04763099553a3f60ab99174135b7fe8f42971ff3 | 2,108 | py | Python | blurple/io/reaction.py | jeremytiki/blurple.py | c8f65955539cc27be588a06592b1c81c03f59c37 | [
"MIT"
] | 4 | 2021-06-30T19:58:59.000Z | 2021-07-27T13:43:49.000Z | blurple/io/reaction.py | jeremytiki/blurple.py | c8f65955539cc27be588a06592b1c81c03f59c37 | [
"MIT"
] | 2 | 2021-07-10T16:08:25.000Z | 2021-07-12T02:15:40.000Z | blurple/io/reaction.py | jeremytiki/blurple.py | c8f65955539cc27be588a06592b1c81c03f59c37 | [
"MIT"
] | 3 | 2021-07-08T03:00:40.000Z | 2021-09-08T19:57:50.000Z | import discord
import blurple.io as io
| 37.642857 | 97 | 0.675047 |
047760c3a98e8a5a4320f0edc7bf1725194eacc7 | 341 | py | Python | tasks/migrations/0005_alter_takeclass_unique_together.py | MUST-Quick-Fry/Face-Recognition-Sign-In-System | d1298f6c3d6f7da288fa736f8785d93fe1778703 | [
"MIT"
] | null | null | null | tasks/migrations/0005_alter_takeclass_unique_together.py | MUST-Quick-Fry/Face-Recognition-Sign-In-System | d1298f6c3d6f7da288fa736f8785d93fe1778703 | [
"MIT"
] | null | null | null | tasks/migrations/0005_alter_takeclass_unique_together.py | MUST-Quick-Fry/Face-Recognition-Sign-In-System | d1298f6c3d6f7da288fa736f8785d93fe1778703 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-11-14 16:14
from django.db import migrations
| 18.944444 | 47 | 0.583578 |
047794e8835f067229c32824232b6e2929ad5189 | 824 | py | Python | client/events.py | adamstallard/EtherBank | d5b24034d9416b6b61efb9f8cb8699e63cf322e9 | [
"BSD-2-Clause"
] | 1 | 2019-01-09T22:05:03.000Z | 2019-01-09T22:05:03.000Z | client/events.py | adamstallard/EtherBank | d5b24034d9416b6b61efb9f8cb8699e63cf322e9 | [
"BSD-2-Clause"
] | null | null | null | client/events.py | adamstallard/EtherBank | d5b24034d9416b6b61efb9f8cb8699e63cf322e9 | [
"BSD-2-Clause"
] | null | null | null | from web3.auto import w3
import time
# from infura import *
import config
import json
with open("../build/contracts/EtherBank.json") as f:
ether_bank_json = json.load(f)
ether_bank_contract = w3.eth.contract(
address=config.ETHER_BANK_ADDR,
abi=ether_bank_json['abi']
)
accounts = w3.eth.accounts
block... | 23.542857 | 72 | 0.71966 |
0477d1fec515526460f168e4daf0936536d74afc | 14,316 | py | Python | train.py | HuipengXu/MixMatch-PyTorch | 026a733de773a58e361f66ee48dc150d23ba9754 | [
"MIT"
] | 1 | 2021-12-20T14:19:10.000Z | 2021-12-20T14:19:10.000Z | train.py | HuipengXu/MixMatch-PyTorch | 026a733de773a58e361f66ee48dc150d23ba9754 | [
"MIT"
] | null | null | null | train.py | HuipengXu/MixMatch-PyTorch | 026a733de773a58e361f66ee48dc150d23ba9754 | [
"MIT"
] | null | null | null | import argparse
import os
import shutil
import time
import random
import json
import numpy as np
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
from torch.utils.data import DataLoader
from torchtext.vocab import GloVe
from progress.bar imp... | 38.074468 | 194 | 0.634325 |
0477db777b9cee4f58f0a5582459326ea8dada3b | 1,221 | py | Python | api/anubis/utils/visuals/users.py | AnubisLMS/Anubis | 2f66ed2e0518422832816615d6f948239c081400 | [
"MIT"
] | 87 | 2021-11-08T10:58:26.000Z | 2022-03-31T19:02:47.000Z | api/anubis/utils/visuals/users.py | AnubisLMS/Anubis | 2f66ed2e0518422832816615d6f948239c081400 | [
"MIT"
] | 80 | 2021-11-07T04:46:42.000Z | 2022-03-31T23:58:00.000Z | api/anubis/utils/visuals/users.py | AnubisLMS/Anubis | 2f66ed2e0518422832816615d6f948239c081400 | [
"MIT"
] | 15 | 2021-11-07T17:02:21.000Z | 2022-03-28T02:04:16.000Z | from datetime import datetime, timedelta
from anubis.utils.cache import cache
from anubis.utils.data import is_debug, is_job
from anubis.utils.usage.users import get_platform_users
from anubis.utils.visuals.files import convert_fig_bytes
from anubis.utils.visuals.watermark import add_watermark
| 28.395349 | 70 | 0.673219 |