hexsha stringlengths 40 40 | size int64 2 991k | ext stringclasses 2
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 208 | max_stars_repo_name stringlengths 6 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses list | max_stars_count int64 1 33.5k ⌀ | 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 4 208 | max_issues_repo_name stringlengths 6 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses list | max_issues_count int64 1 16.3k ⌀ | 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 4 208 | max_forks_repo_name stringlengths 6 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses list | max_forks_count int64 1 6.91k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 991k | avg_line_length float64 1 36k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
793b2e6b7342a83b998101530e3daa8e8fa7e994 | 444 | exs | Elixir | config/test.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 6 | 2020-08-26T11:29:36.000Z | 2021-11-25T08:37:28.000Z | config/test.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 20 | 2020-03-06T05:33:35.000Z | 2022-02-17T17:20:38.000Z | config/test.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 2 | 2020-12-11T16:24:59.000Z | 2021-08-16T11:31:08.000Z | use Mix.Config
# Configure your database
config :pebl, Pebl.Repo,
username: "postgres",
password: "postgres",
database: "pebl_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :pebl, PeblWeb... | 23.368421 | 56 | 0.722973 |
793b3effa51481fa5e761b53f21426bab3c00b84 | 3,493 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_privacy_metric.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_privacy_metric.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_privacy_metric.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.202703 | 157 | 0.755225 |
793b58025da24e926fb67bea7ce8a458889dfbcb | 232 | ex | Elixir | lib/web/plugs/active_tab.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/web/plugs/active_tab.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/web/plugs/active_tab.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Web.Plugs.ActiveTab do
@moduledoc """
Set the active admin side tab
"""
import Plug.Conn
def init(default), do: default
def call(conn, tab: active_tab) do
assign(conn, :active_tab, active_tab)
end
end
| 16.571429 | 41 | 0.689655 |
793b94ae8fd35b89d44f9e86787fe6af1dcc9dec | 1,651 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/managed_instance_version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/managed_instance_version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/managed_instance_version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.02 | 194 | 0.725015 |
793bd6c100b1d8f5f1f9cb3ed7e1ffa0907ee1bd | 1,985 | ex | Elixir | clients/domains/lib/google_api/domains/v1beta1/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains/lib/google_api/domains/v1beta1/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1beta1/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.7 | 316 | 0.728463 |
793c0dcd0a9705d47e3ada449c463e52c168b70d | 12,614 | ex | Elixir | lib/grizzly/icon_type.ex | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/icon_type.ex | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/icon_type.ex | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.IconType do
@moduledoc """
The installer icon type is used in Z-Wave Plus devices to allow
interoperability with generic Z-Wave graphical user interfaces.
These interfaces are useful when using generic Z-Wave tooling
and debugging to allow the user to get a meaningful representation
of an... | 56.062222 | 95 | 0.780323 |
793c872342a6d3dd720fbdb12e77831fa36d6ccc | 2,325 | ex | Elixir | lib/ecto/associations/has_one.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | lib/ecto/associations/has_one.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | lib/ecto/associations/has_one.ex | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | defrecord Ecto.Reflections.HasOne, [ :field, :owner, :associated,
:foreign_key, :primary_key ]
defmodule Ecto.Associations.HasOne do
@moduledoc """
A has_one association.
"""
alias Ecto.Reflections.HasOne, as: Refl
@not_loaded :not_loaded
# Needs to be defrecordp because we don't want pollute the modu... | 28.012048 | 84 | 0.675269 |
793c87f0b70566ca7d8d86fac757928ad9f48c36 | 2,230 | exs | Elixir | test/petal/dropdown_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | test/petal/dropdown_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | test/petal/dropdown_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | defmodule PetalComponents.DropdownTest do
use ComponentCase
import PetalComponents.Dropdown
alias PetalComponents.Heroicons
test "dropdown" do
assigns = %{}
html = rendered_to_string(
~H"""
<.dropdown label="Dropdown">
<.dropdown_menu_item type="button">
<Heroicons.Outline... | 23.473684 | 99 | 0.569507 |
793cd35d1e06552a6ac0d08efed2d5f4ef1b2fc0 | 2,591 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.47541 | 364 | 0.740641 |
793cee7941bbe1275e39ff2b2f57d4987463ad09 | 2,115 | exs | Elixir | test/apoc/mac/hmac_test.exs | CDThomas/apoc | bcd4dde06d418769a5bf9daf6fc92fd2a0902aec | [
"Apache-2.0"
] | null | null | null | test/apoc/mac/hmac_test.exs | CDThomas/apoc | bcd4dde06d418769a5bf9daf6fc92fd2a0902aec | [
"Apache-2.0"
] | null | null | null | test/apoc/mac/hmac_test.exs | CDThomas/apoc | bcd4dde06d418769a5bf9daf6fc92fd2a0902aec | [
"Apache-2.0"
] | null | null | null | defmodule ApocTest.MAC.HMACTest do
@moduledoc """
The test vectors used in this test are
defined in [RFC4231](https://tools.ietf.org/html/rfc4231)
"""
use ApocTest.Case
alias Apoc.MAC.HMAC
doctest HMAC
describe "signing message [Test Case 1]" do
setup do
%{
key: Base.decode16!("0b0b0b... | 28.972603 | 86 | 0.658629 |
793cf09b67d5f7772ddba4818d9df66c777ca15e | 39,873 | exs | Elixir | apps/omg_watcher/test/omg_watcher/web/controllers/transaction_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/web/controllers/transaction_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/web/controllers/transaction_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 36.580734 | 119 | 0.499862 |
793cf32c5aa152829f668f700b4f0f46e20f08f6 | 356 | ex | Elixir | 52_time_service/time_service/lib/time_service.ex | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | 1 | 2015-12-15T04:46:41.000Z | 2015-12-15T04:46:41.000Z | 52_time_service/time_service/lib/time_service.ex | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | null | null | null | 52_time_service/time_service/lib/time_service.ex | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | null | null | null | defmodule TimeService do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Define workers and child supervisors to be supervised
worker(TimeService.Starter, [])
]
opts = [strategy: :one_for_one, name: TimeService.Supervisor]
Supervisor.s... | 22.25 | 65 | 0.699438 |
793d5ffc86477e4dad01aeb9defaf1d1ff355d85 | 529 | ex | Elixir | lib/new_relic/application.ex | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | lib/new_relic/application.ex | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | lib/new_relic/application.ex | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Application do
use Application
@moduledoc false
def start(_type, _args) do
import Supervisor.Spec
NewRelic.Init.run()
children = [
worker(NewRelic.Logger, []),
supervisor(NewRelic.AlwaysOnSupervisor, []),
supervisor(NewRelic.EnabledSupervisor, [[enabled: NewRel... | 24.045455 | 86 | 0.693762 |
793d69d8cd85c514b7a4dedebceb30c6cd127487 | 26,309 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/api/tables.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/big_query/lib/google_api/big_query/v2/api/tables.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/api/tables.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.921536 | 351 | 0.620282 |
793daabff00c8184b12c4dde086083781b6758d8 | 456 | exs | Elixir | priv/repo/migrations/20171218113116_use_timestamps_with_timezone.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 122 | 2017-11-24T11:28:17.000Z | 2022-02-25T17:05:20.000Z | priv/repo/migrations/20171218113116_use_timestamps_with_timezone.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 6 | 2018-01-11T22:07:44.000Z | 2021-11-21T15:41:42.000Z | priv/repo/migrations/20171218113116_use_timestamps_with_timezone.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 25 | 2018-04-01T02:43:21.000Z | 2022-02-15T03:22:54.000Z | defmodule Yummy.Repo.Migrations.UseTimestampsWithTimezone do
use Ecto.Migration
def change do
alter table(:users) do
modify :inserted_at, :timestamptz
modify :updated_at, :timestamptz
end
alter table(:recipes) do
modify :inserted_at, :timestamptz
modify :updated_at, :timestamptz... | 24 | 60 | 0.697368 |
793daec49533b9ca15f01a2fc40a439f5d0c8b4a | 138 | exs | Elixir | test/excamp_test.exs | ponyatov/excamp | 621853e6c2c640f0f1caf79a9a56563527763dbf | [
"MIT"
] | null | null | null | test/excamp_test.exs | ponyatov/excamp | 621853e6c2c640f0f1caf79a9a56563527763dbf | [
"MIT"
] | null | null | null | test/excamp_test.exs | ponyatov/excamp | 621853e6c2c640f0f1caf79a9a56563527763dbf | [
"MIT"
] | null | null | null | # powered by metaL: https://github.com/ponyatov/metaL/wiki/metaL-manifest
defmodule ExcampTest do
use ExUnit.Case
doctest Excamp
end
| 23 | 74 | 0.782609 |
793dc4c9f6e0e3d8e49ff158e8cfc66e817748dd | 605 | ex | Elixir | lib/mastani_server/statistics/user_contribute.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/statistics/user_contribute.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/statistics/user_contribute.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Statistics.UserContribute do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
alias MastaniServer.Accounts
@type t :: %UserContribute{}
schema "user_contributes" do
field(:count, :integer)
field(:date, :date)
belongs_to(:user, Accounts.User)
... | 23.269231 | 62 | 0.705785 |
793dc5a436bf656c23a36683a5a0210aebf44a09 | 2,188 | exs | Elixir | apps/theta/test/theta/configuration_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta/test/theta/configuration_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta/test/theta/configuration_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule Theta.ConfigurationTest do
use Theta.DataCase
alias Theta.Configuration
describe "config" do
alias Theta.Configuration.Config
@valid_attrs %{key: "some key", value: "some value"}
@update_attrs %{key: "some updated key", value: "some updated value"}
@invalid_attrs %{key: nil, value: ni... | 32.656716 | 94 | 0.677788 |
793df8ac32c11821b9aa0cd7a48c3904192a8458 | 8,793 | ex | Elixir | lib/managed_ring.ex | bitwalker/libring | f1eaaad48f5d1e989590b15856b07ef212a06cc9 | [
"MIT"
] | 181 | 2016-09-29T12:57:03.000Z | 2022-02-12T12:50:55.000Z | lib/managed_ring.ex | bitwalker/libring | f1eaaad48f5d1e989590b15856b07ef212a06cc9 | [
"MIT"
] | 26 | 2016-12-12T22:22:43.000Z | 2021-12-15T15:52:06.000Z | lib/managed_ring.ex | bitwalker/libring | f1eaaad48f5d1e989590b15856b07ef212a06cc9 | [
"MIT"
] | 22 | 2017-04-28T08:08:44.000Z | 2022-01-27T16:18:20.000Z | defmodule HashRing.Managed do
@moduledoc """
This module defines the API for working with hash rings where the ring state is managed
in a GenServer process.
There is a performance penalty with working with the ring this way, but it is the best approach
if you need to share the ring across multiple processes,... | 34.61811 | 115 | 0.638349 |
793e1703fb92d6f0ad5ed1af14200986bfa178d2 | 232 | ex | Elixir | lib/slackex/api.ex | SirFitz/slack | 2843fe07c006f75a20fd652f0ec31e76db923d9d | [
"MIT"
] | null | null | null | lib/slackex/api.ex | SirFitz/slack | 2843fe07c006f75a20fd652f0ec31e76db923d9d | [
"MIT"
] | null | null | null | lib/slackex/api.ex | SirFitz/slack | 2843fe07c006f75a20fd652f0ec31e76db923d9d | [
"MIT"
] | null | null | null | defmodule Slack.Api do
@moduledoc """
API Test Calls for Slack
"""
@doc """
Returns an "ok" message when a
successfull connection to the Slack
API is made
"""
def test do
Slack.request("api.test")
end
end
| 13.647059 | 37 | 0.637931 |
793e44e721d7350c06e1490720860ae21d7ce056 | 1,071 | ex | Elixir | test/support/test_provider.ex | Schultzer/coherence_assent | 5adf518d7760641e686ca2c588def0e8f62ea093 | [
"MIT",
"Unlicense"
] | null | null | null | test/support/test_provider.ex | Schultzer/coherence_assent | 5adf518d7760641e686ca2c588def0e8f62ea093 | [
"MIT",
"Unlicense"
] | null | null | null | test/support/test_provider.ex | Schultzer/coherence_assent | 5adf518d7760641e686ca2c588def0e8f62ea093 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule TestProvider do
alias CoherenceAssent.Strategy.Helpers
alias CoherenceAssent.Strategies.OAuth2, as: OAuth2Helper
def authorize_url(conn: conn, config: config) do
config = config |> set_config
OAuth2Helper.authorize_url(conn: conn, config: config)
end
def callback(conn: conn, config: config... | 29.75 | 69 | 0.636788 |
793e4fa04581b7535340f42e0a5e71567686c132 | 1,756 | ex | Elixir | lib/mix/tasks/import.ex | alisinabh/gettext_csv | d5d9a8badcaff2f198f1722c6d795a7a24707e53 | [
"MIT"
] | null | null | null | lib/mix/tasks/import.ex | alisinabh/gettext_csv | d5d9a8badcaff2f198f1722c6d795a7a24707e53 | [
"MIT"
] | null | null | null | lib/mix/tasks/import.ex | alisinabh/gettext_csv | d5d9a8badcaff2f198f1722c6d795a7a24707e53 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.GettextCsv.Import do
use Mix.Task
import GettextCsv
alias NimbleCSV.RFC4180, as: CSV
@shortdoc "Import csv to po files"
def run(args) do
{opts, [csv_file], _} = OptionParser.parse(args, strict: [pot_file: :string])
pot_file = get_pot_file(opts[:pot_file])
base = Path.dirna... | 25.823529 | 81 | 0.599089 |
793e8a1f8b4724259057eb14e1823d422cdac3e9 | 196 | exs | Elixir | priv/repo/migrations/20210209114646_update_evidence.exs | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 2 | 2021-02-12T09:21:56.000Z | 2021-02-22T08:52:20.000Z | priv/repo/migrations/20210209114646_update_evidence.exs | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 4 | 2021-02-22T08:53:43.000Z | 2021-06-09T09:24:46.000Z | priv/repo/migrations/20210209114646_update_evidence.exs | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | null | null | null | defmodule SuperIssuer.Repo.Migrations.UpdateEvidence do
use Ecto.Migration
def change do
alter table :evidence do
remove :describe
add :description, :string
end
end
end
| 17.818182 | 55 | 0.714286 |
793e96a395d4fd9cebaa1752051fe1186903369e | 1,565 | ex | Elixir | clients/translate/lib/google_api/translate/v2/model/detect_language_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/translate/lib/google_api/translate/v2/model/detect_language_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v2/model/detect_language_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.604167 | 125 | 0.741214 |
793e9e95a08b10aeec64fe2de17194c8db8a9c5a | 1,816 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_role_permission_group.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_role_permission_group.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_role_permission_group.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.264151 | 159 | 0.714758 |
793eacf7a147338f50811deeaa9d8b397f1ab588 | 1,392 | ex | Elixir | lib/central/oban_logger.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central/oban_logger.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central/oban_logger.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.ObanLogger do
@moduledoc false
require Logger
import Central.Logging.Helpers, only: [add_error_log: 1]
def handle_event([:oban, :job, :start], _measure, _meta, _) do
# Logger.warn("[Oban] :started #{meta.worker} at #{measure.system_time}")
end
def handle_event([:oban, :job, :excepti... | 26.769231 | 77 | 0.588362 |
793edefc43610499d423449114e186e0884dbc67 | 272 | ex | Elixir | lib/nadia/encoder.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 386 | 2015-08-20T21:48:07.000Z | 2022-03-06T21:08:19.000Z | lib/nadia/encoder.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 146 | 2015-09-19T07:13:56.000Z | 2022-03-24T20:02:02.000Z | lib/nadia/encoder.ex | cplotter/nadia | a3cb8f8249903a76cbff281c0773087a437df215 | [
"MIT"
] | 107 | 2015-10-23T09:02:13.000Z | 2022-02-07T19:46:15.000Z | defimpl Jason.Encoder, for: Nadia.Model.InlineKeyboardButton do
def encode(button, options) do
Map.from_struct(button)
|> reject_nil
|> Jason.Encoder.encode(options)
end
defp reject_nil(map) do
:maps.filter(fn _, v -> !is_nil(v) end, map)
end
end
| 22.666667 | 63 | 0.691176 |
793ef7c1c06f8677ae25051e5c7600cc3a001f46 | 2,819 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/usable_subnetworks_aggregated_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/usable_subnetworks_aggregated_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/usable_subnetworks_aggregated_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.746032 | 381 | 0.743526 |
793efebab6b7bee1be775ed970660848a6c1f0fc | 1,804 | ex | Elixir | elixir/persistent_todo_cache/lib/todo/server.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | 1 | 2019-11-28T09:26:00.000Z | 2019-11-28T09:26:00.000Z | elixir/persistent_todo_cache/lib/todo/server.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | elixir/persistent_todo_cache/lib/todo/server.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | defmodule Todo.Server do
use GenServer
# Client Interface.
def start(name) do
GenServer.start(__MODULE__, name)
end
def add_entry(todo_server, new_entry) do
GenServer.cast(todo_server, {:add_entry, new_entry})
end
def entries(todo_server, date) do
GenServer.call(todo_server, {:entries, date... | 26.925373 | 73 | 0.674612 |
793f10deb0f1ab654d5895d035c54471cd09aa44 | 8,948 | ex | Elixir | lib/minecraft/packet.ex | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 29 | 2018-09-03T15:34:33.000Z | 2021-12-30T19:36:42.000Z | lib/minecraft/packet.ex | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 76 | 2018-07-13T13:19:09.000Z | 2022-03-23T15:27:43.000Z | lib/minecraft/packet.ex | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 2 | 2020-10-06T15:50:17.000Z | 2021-12-29T08:06:48.000Z | defmodule Minecraft.Packet do
@moduledoc """
Base serialization and deserialization routines for packets.
"""
use Bitwise
alias Minecraft.Packet.Client
alias Minecraft.Packet.Server
@type position :: {x :: -33_554_432..33_554_431, y :: -2048..2047, z :: -33_554_432..33_554_431}
@type varint ::... | 31.957143 | 99 | 0.588511 |
793f1cbf66049e268df98a9afc74acf0bf7ba851 | 17,536 | exs | Elixir | test/teslamate_web/controllers/car_controller_test.exs | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | 1 | 2020-08-31T10:21:12.000Z | 2020-08-31T10:21:12.000Z | test/teslamate_web/controllers/car_controller_test.exs | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | null | null | null | test/teslamate_web/controllers/car_controller_test.exs | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.CarControllerTest do
use TeslaMateWeb.ConnCase
use TeslaMate.VehicleCase
alias TeslaMate.Settings.CarSettings
alias TeslaMate.{Log, Settings, Repo}
alias TeslaMate.Log.Car
defp table_row(html, key, value, opts \\ []) do
assert {"tr", _, [{"td", _, [^key]}, {"td", [], [v]}]} =
... | 30.657343 | 98 | 0.549384 |
793f28c788ba7d394175b136e8b48d82a1a5a478 | 238 | ex | Elixir | lib/langue/formatter/java_properties_xml/java_properties_xml.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/langue/formatter/java_properties_xml/java_properties_xml.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/langue/formatter/java_properties_xml/java_properties_xml.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Langue.Formatter.JavaPropertiesXml do
alias Langue.Formatter.JavaPropertiesXml.{Parser, Serializer}
def name, do: "java_properties_xml"
defdelegate parse(map), to: Parser
defdelegate serialize(map), to: Serializer
end
| 26.444444 | 63 | 0.794118 |
793f2cf64fd53f6a7ba43e553a372da0595f90e6 | 139 | ex | Elixir | lib/reanix_web/controllers/page_controller.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | 1 | 2018-05-13T19:28:48.000Z | 2018-05-13T19:28:48.000Z | lib/reanix_web/controllers/page_controller.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | lib/reanix_web/controllers/page_controller.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | defmodule ReanixWeb.PageController do
use ReanixWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.375 | 37 | 0.733813 |
793f39b8b0124dc65d645c49797fd72d0161fc12 | 4,021 | exs | Elixir | priv/repo/seeds.exs | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | 7 | 2019-06-25T17:21:41.000Z | 2022-02-10T12:09:08.000Z | priv/repo/seeds.exs | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Stormchat.Repo.insert!(%Stormchat.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 45.179775 | 122 | 0.62671 |
793f65e7e931568787d4dd8332ca6e0d86863a61 | 1,915 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/commute_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/jobs/lib/google_api/jobs/v2/model/commute_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/commute_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.818182 | 150 | 0.730548 |
793f6d6fcc5e4715428614e85e0d312167c23908 | 3,884 | exs | Elixir | apps/podder/test/podder/podder/podder_test.exs | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder/test/podder/podder/podder_test.exs | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder/test/podder/podder/podder_test.exs | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | defmodule Podder.PodderTest do
use Podder.DataCase
alias Podder.Podder
describe "users" do
alias Podder.Podder.User
@valid_attrs %{user_name: "some user_name"}
@update_attrs %{user_name: "some updated user_name"}
@invalid_attrs %{user_name: nil}
def user_fixture(attrs \\ %{}) do
{:ok... | 31.322581 | 89 | 0.667868 |
793f6e89815d8197a941dc98d9d279c7b95afd45 | 148 | exs | Elixir | apps/snitch_core/config/releases.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_core/config/releases.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_core/config/releases.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | import Config
config :snitch_core, Snitch.Repo,
url: System.fetch_env!("DB_URL"),
pool_size: String.to_integer(System.fetch_env!("POOL_SIZE"))
| 24.666667 | 62 | 0.756757 |
793f74441c7e5d6a76b09bdd3adce31d32d38259 | 3,384 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/file.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/file.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/file.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.72973 | 228 | 0.680851 |
793fb4dc3d626927aef020d36e606768d6886b8a | 3,327 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/urlchannels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/urlchannels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/urlchannels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.653846 | 203 | 0.70514 |
7940086095d4a4e34ae74e5376473a36f92612fa | 251 | exs | Elixir | .formatter.exs | pepsico-ecommerce/chore_runner | c84863b7ea5feac20ab4320a5c04ffa534040c3c | [
"Apache-2.0"
] | 16 | 2021-10-31T22:14:29.000Z | 2022-03-31T14:52:36.000Z | .formatter.exs | pepsico-ecommerce/chore_runner | c84863b7ea5feac20ab4320a5c04ffa534040c3c | [
"Apache-2.0"
] | 1 | 2022-01-13T04:53:22.000Z | 2022-02-08T04:28:19.000Z | .formatter.exs | pepsico-ecommerce/chore_runner | c84863b7ea5feac20ab4320a5c04ffa534040c3c | [
"Apache-2.0"
] | 2 | 2021-12-25T18:01:36.000Z | 2022-03-12T20:55:06.000Z | # Used by "mix format"
locals_without_parens = [
input: 2
]
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [
locals_without_parens: locals_without_parens
]
]
| 19.307692 | 70 | 0.681275 |
79402622fe5b323b76e0616455454b66239edcf8 | 4,345 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 81.981132 | 1,970 | 0.756962 |
79402e4f3beacabc69fe74a9152542d670940663 | 2,552 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_localized_object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_localized_object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_localized_object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.261538 | 207 | 0.714342 |
79403dd3abde6bb069914898290b861d34665b6d | 1,843 | ex | Elixir | lib/ibmcloud/iam/oauth2.ex | Bhaskers-Blu-Org1/elixir-ibmcloud | 28639020a3e5c222356329917b3fb37c5da3eb42 | [
"Apache-2.0"
] | 1 | 2020-01-13T19:30:37.000Z | 2020-01-13T19:30:37.000Z | lib/ibmcloud/iam/oauth2.ex | Bhaskers-Blu-Org1/elixir-ibmcloud | 28639020a3e5c222356329917b3fb37c5da3eb42 | [
"Apache-2.0"
] | null | null | null | lib/ibmcloud/iam/oauth2.ex | Bhaskers-Blu-Org1/elixir-ibmcloud | 28639020a3e5c222356329917b3fb37c5da3eb42 | [
"Apache-2.0"
] | 1 | 2020-07-30T10:19:52.000Z | 2020-07-30T10:19:52.000Z | defmodule IBMCloud.IAM.OAuth2 do
@moduledoc """
OAuth2 interfaces to IAM.
"""
@default_endpoint "https://iam.cloud.ibm.com"
def build_client(auth \\ [], endpoint \\ @default_endpoint, adapter \\ nil) do
middlewares =
[
{Tesla.Middleware.BaseUrl, endpoint},
Tesla.Middleware.FormUrle... | 27.102941 | 160 | 0.639718 |
79405fb704a85605a7243d61a8ffbed0a4ceba07 | 1,575 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.5 | 345 | 0.765079 |
7940671cf319b81de1654629a977fbbd29a2bfbf | 1,684 | exs | Elixir | farmbot_ext/mix.exs | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | farmbot_ext/mix.exs | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | farmbot_ext/mix.exs | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | defmodule FarmbotExt.MixProject do
use Mix.Project
@version Path.join([__DIR__, "..", "VERSION"]) |> File.read!() |> String.trim()
@elixir_version Path.join([__DIR__, "..", "ELIXIR_VERSION"]) |> File.read!() |> String.trim()
def project do
[
app: :farmbot_ext,
version: @version,
elixir: @... | 30.618182 | 95 | 0.56057 |
7940690566efc7b06963cc12b7b0cb4e192cbc06 | 77 | ex | Elixir | testData/org/elixir_lang/parser_definition/heredoc_dot_operation_parsing_test_case/MatchedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/heredoc_dot_operation_parsing_test_case/MatchedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/heredoc_dot_operation_parsing_test_case/MatchedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | '''
One
'''.two positional, key: value
"""
One
""".two positional, key: value | 12.833333 | 30 | 0.623377 |
7940725973f4f23ed1927c82c610ff3315de5933 | 2,027 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/interconnect_location_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_location_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/interconnect_location_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.54 | 527 | 0.744943 |
79407dc65c9b7556f9e97f5c2b476b41eac6a874 | 4,372 | ex | Elixir | lib/elixir/lib/kernel/lexical_tracker.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/lexical_tracker.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/lexical_tracker.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | # This is a module Elixir responsible for tracking
# the usage of aliases, imports and requires in the Elixir scope.
#
# The implementation simply stores dispatch information in an
# ETS table and then consults this table once compilation is done.
#
# Note that since this is required for bootstrap, we can't use
# any o... | 23.632432 | 81 | 0.648673 |
79408e2198381585fa28209f795576e8c75deda7 | 94 | ex | Elixir | test/support/test_repo.ex | bgentry/ecto_as_state_machine | 068ad13ec60147564f02ab4d0493763dcd758bbd | [
"MIT"
] | null | null | null | test/support/test_repo.ex | bgentry/ecto_as_state_machine | 068ad13ec60147564f02ab4d0493763dcd758bbd | [
"MIT"
] | null | null | null | test/support/test_repo.ex | bgentry/ecto_as_state_machine | 068ad13ec60147564f02ab4d0493763dcd758bbd | [
"MIT"
] | null | null | null | defmodule EctoAsStateMachine.TestRepo do
use Ecto.Repo, otp_app: :ecto_as_state_machine
end
| 23.5 | 48 | 0.840426 |
7940bb738a95a89a5129ff81878b1e44f1a83ccd | 9,772 | ex | Elixir | lib/entice/logic/vitals.ex | entice/logic | e66b753d67f9ffcedf48a3097f2428f60de38d06 | [
"WTFPL"
] | 12 | 2015-02-11T21:50:03.000Z | 2020-12-24T23:05:07.000Z | lib/entice/logic/vitals.ex | entice/logic | e66b753d67f9ffcedf48a3097f2428f60de38d06 | [
"WTFPL"
] | 12 | 2015-09-21T11:19:27.000Z | 2016-09-11T08:13:58.000Z | lib/entice/logic/vitals.ex | entice/logic | e66b753d67f9ffcedf48a3097f2428f60de38d06 | [
"WTFPL"
] | 7 | 2015-09-20T14:37:31.000Z | 2021-07-19T18:10:51.000Z | defmodule Entice.Logic.Vitals do
@moduledoc """
Responsible for the entities vital stats like (health, mana, regen, degen).
If the entity has no explicit level, it is implicitly assumed to be 20.
If and entity dies, a local broadcast will be send that looks like this:
{:entity_dead, %{entity_id: entity_... | 36.059041 | 127 | 0.685325 |
7940f0c7447968e455e282b49f8c36f93caa0dba | 1,140 | ex | Elixir | lib/hexdocs/utils.ex | hexpm/hexdocs | 808d0b06bbd1a36c639231225ed78cec8c182cae | [
"Apache-2.0"
] | 29 | 2016-10-13T07:32:04.000Z | 2022-03-25T05:59:14.000Z | lib/hexdocs/utils.ex | hexpm/hexdocs | 808d0b06bbd1a36c639231225ed78cec8c182cae | [
"Apache-2.0"
] | 21 | 2016-02-24T03:59:35.000Z | 2021-07-30T08:44:39.000Z | lib/hexdocs/utils.ex | hexpm/hexdocs | 808d0b06bbd1a36c639231225ed78cec8c182cae | [
"Apache-2.0"
] | 12 | 2016-02-28T19:57:36.000Z | 2022-03-18T07:47:39.000Z | defmodule Hexdocs.Utils do
@moduledoc false
def hexdocs_url(repository, path) do
"/" <> _ = path
host = Application.get_env(:hexdocs, :host)
scheme = if host == "hexdocs.pm", do: "https", else: "http"
subdomain = if repository == "hexpm", do: "", else: "#{repository}."
"#{scheme}://#{subdomain}... | 26.511628 | 72 | 0.611404 |
79412bba5968ac471d14e09c908da15721cf2421 | 93 | exs | Elixir | test/flipay/best_rate_finder_test.exs | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | test/flipay/best_rate_finder_test.exs | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | test/flipay/best_rate_finder_test.exs | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | defmodule Flipay.BestRateFinderTest do
use ExUnit.Case
doctest Flipay.BestRateFinder
end
| 18.6 | 38 | 0.83871 |
79412ffa94330563b3eee8a9a174f7354ee3718d | 336 | ex | Elixir | lib/supabase_surface/components/icons/icon_edit.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_edit.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_edit.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconEdit do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.edit(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.4 | 62 | 0.714286 |
794150c6c86917cbd024684b78f2ba067eba48c4 | 167 | ex | Elixir | lib/farmbot/celery_script/ast/node/point.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/celery_script/ast/node/point.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/celery_script/ast/node/point.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST.Node.Point do
@moduledoc false
use Farmbot.CeleryScript.AST.Node
allow_args [:pointer_type, :pointer_id]
return_self()
end
| 20.875 | 48 | 0.784431 |
7941642e79f64bd98965de2f01168a507923b524 | 2,450 | exs | Elixir | test/web/controllers/global_parameter_controller_test.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | 1 | 2017-07-27T16:03:28.000Z | 2017-07-27T16:03:28.000Z | test/web/controllers/global_parameter_controller_test.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | test/web/controllers/global_parameter_controller_test.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | defmodule PRM.Web.GlobalParameterControllerTest do
use PRM.Web.ConnCase
import PRM.SimpleFactory
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all parameters on index", %{conn: conn} do
fixture(:global_parameter, "param1", "value1")
fixtu... | 32.236842 | 77 | 0.617551 |
79416a436dc57888f086adccd3a01e6b180369ed | 115 | ex | Elixir | lib/types/request_download_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/types/request_download_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/types/request_download_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Messages.RequestDownloadResponse do
@derive [Poison.Encoder]
defstruct naught: nil
end
| 23 | 59 | 0.817391 |
79418fee11a9705327f0443f8887c29d0b4fcc4b | 336 | exs | Elixir | apps/tai/test/tai/orders/transitions/rescue_amend_error_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/orders/transitions/rescue_amend_error_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/test/tai/orders/transitions/rescue_amend_error_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Transitions.RescueAmendErrorTest do
use ExUnit.Case, async: false
alias Tai.Orders.Transitions
test ".attrs/1 returns a list of updatable order attributes" do
transition = %Transitions.RescueAmendError{}
attrs = Transitions.RescueAmendError.attrs(transition)
assert Enum.empty?(a... | 28 | 65 | 0.770833 |
7941a6295bf2f8e13c8447a85ef94cac0dc84fbf | 1,725 | ex | Elixir | lib/changelog/kits/agent_kit.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog/kits/agent_kit.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog/kits/agent_kit.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | defmodule Changelog.AgentKit do
@known_agents ["Overcast", "PlayerFM", "Feedbin", "Feed Wrangler",
"Inoreader", "NewsBlur", "Bloglovin", "NewsGator",
"TheOldReader", "G2Reader", "Feedly", "BazQux"]
@client_regexes [
{"Apple TV", ~r/^AppleCoreMedia\/1\.(.*)Apple TV/},
{"Cas... | 32.54717 | 93 | 0.627826 |
7941d993a6092b81ea4623e4a009ad93ce4c1e9c | 6,249 | ex | Elixir | lib/sitemapper.ex | tcitworld/sitemapper | ae28d2b642a2e4a4d68c87d9e6d4aff22f97c203 | [
"MIT"
] | 23 | 2019-10-17T22:13:21.000Z | 2021-06-26T05:25:22.000Z | lib/sitemapper.ex | tcitworld/sitemapper | ae28d2b642a2e4a4d68c87d9e6d4aff22f97c203 | [
"MIT"
] | 5 | 2020-07-17T15:20:18.000Z | 2021-06-27T10:20:56.000Z | lib/sitemapper.ex | tcitworld/sitemapper | ae28d2b642a2e4a4d68c87d9e6d4aff22f97c203 | [
"MIT"
] | 6 | 2019-11-25T15:02:12.000Z | 2021-06-26T05:06:59.000Z | defmodule Sitemapper do
@moduledoc """
Sitemapper is an Elixir library for generating [XML Sitemaps](https://www.sitemaps.org).
It's designed to generate large sitemaps while maintaining a low
memory profile. It can persist sitemaps to Amazon S3, disk or any
other adapter you wish to write.
"""
alias Sit... | 30.334951 | 99 | 0.666347 |
7941f2bc55591dbe47af07f4f6b1d8006be83dcc | 1,975 | exs | Elixir | apps/temporario_web/config/dev.exs | achedeuzot/temporar.io | acbec140732614070996924633f254b56e56131f | [
"MIT"
] | 2 | 2019-04-16T18:46:36.000Z | 2020-09-18T12:58:57.000Z | apps/temporario_web/config/dev.exs | achedeuzot/temporar.io | acbec140732614070996924633f254b56e56131f | [
"MIT"
] | 6 | 2019-01-06T11:13:39.000Z | 2022-02-10T15:15:24.000Z | apps/temporario_web/config/dev.exs | achedeuzot/temporar.io | acbec140732614070996924633f254b56e56131f | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :temporario_web application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The wa... | 28.623188 | 86 | 0.684557 |
7941fd0ebf9fe9d238c8403046ca6c4208255cae | 44,319 | ex | Elixir | lib/phoenix_live_view.ex | ohr486/phoenix_live_view | 14a3e5a993de7767e38117852707c6c1feb1d485 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | ohr486/phoenix_live_view | 14a3e5a993de7767e38117852707c6c1feb1d485 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | ohr486/phoenix_live_view | 14a3e5a993de7767e38117852707c6c1feb1d485 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc ~S'''
LiveView provides rich, real-time user experiences with
server-rendered HTML.
The LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to it... | 36.657568 | 148 | 0.683928 |
79420440e4aca127d8405144a32c5647f0c16959 | 570 | ex | Elixir | lib/club_backend_web/views/changeset_view.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | null | null | null | lib/club_backend_web/views/changeset_view.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | 6 | 2020-07-31T23:02:34.000Z | 2021-02-26T21:10:10.000Z | lib/club_backend_web/views/changeset_view.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | 2 | 2020-08-23T23:04:00.000Z | 2020-10-03T03:18:11.000Z | defmodule ClubBackendWeb.ChangesetView do
use ClubBackendWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`ClubBackendWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(c... | 28.5 | 67 | 0.74386 |
7942593d320fd7805ae42c23cd410e6fbe7304a9 | 1,455 | exs | Elixir | test/mix/cloak.migrate_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | test/mix/cloak.migrate_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | test/mix/cloak.migrate_test.exs | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | defmodule Cloak.MigrateTest do
use Cloak.DataCase, async: false
import ExUnit.CaptureIO
import IO.ANSI, only: [yellow: 0, green: 0, reset: 0]
setup do
[user: Factory.create_user("test@email.com")]
end
test "migrates existing rows to new version when command line args given" do
output =
capt... | 24.25 | 78 | 0.580756 |
794261ed3f7e815ad4e487140357f24edec4b83e | 947 | ex | Elixir | lib/protobuf/service.ex | hayesgm/protobuf-ex | 9ca03063de265a9690f341fcda77055613f4ff17 | [
"MIT"
] | null | null | null | lib/protobuf/service.ex | hayesgm/protobuf-ex | 9ca03063de265a9690f341fcda77055613f4ff17 | [
"MIT"
] | null | null | null | lib/protobuf/service.ex | hayesgm/protobuf-ex | 9ca03063de265a9690f341fcda77055613f4ff17 | [
"MIT"
] | null | null | null | defmodule Protobuf.Service do
@moduledoc """
Module to be used in Service definitions.
"""
defmodule DSL do
@moduledoc """
DSL to build Service definition.
"""
defmacro rpc(name, request, response, opts \\ []) do
quote do
@rpcs {unquote(name), unquote(request), unquote(response)... | 20.586957 | 81 | 0.61246 |
794266a507f57d028c9151151007942ecdddd977 | 869 | ex | Elixir | lib/astarte_rpc/protocol/vmq_plugin.ex | Annopaolo/astarte_rpc | cd720004d225631f41d6f4d7f964aecb92b52849 | [
"Apache-2.0"
] | 3 | 2018-02-02T14:07:03.000Z | 2020-02-10T07:12:39.000Z | lib/astarte_rpc/protocol/vmq_plugin.ex | Annopaolo/astarte_rpc | cd720004d225631f41d6f4d7f964aecb92b52849 | [
"Apache-2.0"
] | 49 | 2018-02-02T10:00:30.000Z | 2022-03-22T10:39:10.000Z | lib/astarte_rpc/protocol/vmq_plugin.ex | Annopaolo/astarte_rpc | cd720004d225631f41d6f4d7f964aecb92b52849 | [
"Apache-2.0"
] | 5 | 2018-02-02T09:58:07.000Z | 2021-04-07T08:53:44.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 Ispirata Srl
#
# 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 appl... | 34.76 | 85 | 0.761795 |
79426778e303e5873fb1714a54e85fa8f26f0be6 | 288 | ex | Elixir | lib/coxir/gateway/payload/session_start_limit.ex | satom99/coxir | 75bce94dcbe5dfa49e920d2f4ce0de224c315ce4 | [
"Apache-2.0"
] | 178 | 2018-04-08T17:11:56.000Z | 2022-03-25T15:36:41.000Z | lib/coxir/gateway/payload/session_start_limit.ex | satom99/coxir | 75bce94dcbe5dfa49e920d2f4ce0de224c315ce4 | [
"Apache-2.0"
] | 21 | 2018-04-30T21:33:59.000Z | 2019-09-03T17:25:26.000Z | lib/coxir/gateway/payload/session_start_limit.ex | satom99/coxir | 75bce94dcbe5dfa49e920d2f4ce0de224c315ce4 | [
"Apache-2.0"
] | 25 | 2018-04-21T19:41:03.000Z | 2021-07-24T22:40:40.000Z | defmodule Coxir.Gateway.Payload.SessionStartLimit do
@moduledoc """
Work in progress.
"""
use Coxir.Gateway.Payload
embedded_schema do
field(:total, :integer)
field(:remaining, :integer)
field(:reset_after, :integer)
field(:max_concurrency, :integer)
end
end
| 20.571429 | 52 | 0.704861 |
79426de7e61e4389722265a1e0a670f1be20aa98 | 2,276 | exs | Elixir | test/etag/plug/options_test.exs | Zeeker/extag | 7626ac865013d1c379f76cef7fd606ecedb5aa62 | [
"MIT"
] | 13 | 2018-10-28T04:37:21.000Z | 2018-11-30T19:21:35.000Z | test/etag/plug/options_test.exs | Zeeker/extag | 7626ac865013d1c379f76cef7fd606ecedb5aa62 | [
"MIT"
] | 2 | 2019-03-24T18:50:29.000Z | 2019-03-24T21:19:02.000Z | test/etag/plug/options_test.exs | Zeeker/extag | 7626ac865013d1c379f76cef7fd606ecedb5aa62 | [
"MIT"
] | 2 | 2018-10-26T16:29:53.000Z | 2018-10-29T15:09:03.000Z | defmodule ETag.Plug.OptionsTest do
use ExUnit.Case, async: true
import ETag.Plug.Options, only: [sanitize!: 1, defaults: 0]
describe ".sanitize!" do
test "with a bullshit atom, returns the defaults" do
assert_raise ArgumentError, fn -> sanitize!(:bullshit) end
end
test "with empty options, re... | 25.863636 | 96 | 0.653339 |
79426f6b67869293577d71960f9a56d855bf2348 | 1,467 | exs | Elixir | mix.exs | andyleclair/etso | 81ffbb4b23aad4b442954a469e1299cd6d132279 | [
"Apache-2.0"
] | null | null | null | mix.exs | andyleclair/etso | 81ffbb4b23aad4b442954a469e1299cd6d132279 | [
"Apache-2.0"
] | null | null | null | mix.exs | andyleclair/etso | 81ffbb4b23aad4b442954a469e1299cd6d132279 | [
"Apache-2.0"
] | null | null | null | defmodule Etso.MixProject do
use Mix.Project
def project do
[
app: :etso,
version: "0.1.5",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
dialyzer: dialyzer(),
name: "Etso",... | 20.957143 | 88 | 0.554192 |
79429fc41be514d5ad1dd7f1638340e2a1682388 | 2,000 | ex | Elixir | test/support/error_projector.ex | kianmeng/commanded-ecto-projections | aa5a99488e969fe338db780898cb8bd22599df15 | [
"MIT"
] | 57 | 2017-11-09T21:18:22.000Z | 2022-02-10T07:58:21.000Z | test/support/error_projector.ex | kianmeng/commanded-ecto-projections | aa5a99488e969fe338db780898cb8bd22599df15 | [
"MIT"
] | 26 | 2018-01-08T13:31:16.000Z | 2022-03-24T20:59:29.000Z | test/support/error_projector.ex | kianmeng/commanded-ecto-projections | aa5a99488e969fe338db780898cb8bd22599df15 | [
"MIT"
] | 25 | 2017-11-03T20:27:10.000Z | 2022-02-23T09:47:11.000Z | defmodule ErrorProjector do
use Commanded.Projections.Ecto, application: TestApplication, name: "ErrorProjector"
alias Commanded.Event.FailureContext
alias Commanded.Projections.Events.{
AnEvent,
ErrorEvent,
RaiseEvent,
ExceptionEvent,
InvalidMultiEvent
}
alias Commanded.Projections.Pro... | 25 | 100 | 0.6815 |
7942a65578c810b2852148b40b52f385949f9a78 | 2,283 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/material.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/material.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/material.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.052632 | 166 | 0.737626 |
7942a721f4c1ab4a67fc880fff2a47bfd46a9a86 | 743 | exs | Elixir | examples/hello_world/test/hello_world_test.exs | wojtekmach/twirp | 3f4f6858d4cb3558f3d47f28d8bac1984fa29105 | [
"Apache-2.0"
] | 2 | 2019-08-23T17:26:30.000Z | 2021-01-30T08:08:36.000Z | examples/hello_world/test/hello_world_test.exs | wojtekmach/twirp | 3f4f6858d4cb3558f3d47f28d8bac1984fa29105 | [
"Apache-2.0"
] | 10 | 2019-11-04T12:42:59.000Z | 2020-05-28T11:06:19.000Z | examples/hello_world/test/hello_world_test.exs | wojtekmach/twirp | 3f4f6858d4cb3558f3d47f28d8bac1984fa29105 | [
"Apache-2.0"
] | null | null | null | defmodule HelloWorldTest do
use ExUnit.Case, async: true
alias HelloWorld.RPC.HelloWorldClient
test "protobuf" do
client = HelloWorldClient.new(base_url: "http://localhost:8080")
assert HelloWorldClient.hello(client, %{name: "World"}) == %{message: "Hello World!"}
end
test "json" do
assert post!... | 29.72 | 89 | 0.617766 |
7942b6862921df81f5a0f2ed254bd38379be6e67 | 2,062 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_scheduled_maintenance.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_scheduled_maintenance.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_scheduled_maintenance.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.821429 | 136 | 0.71872 |
7942d4975f54545b3a6e10e4df89c88b0073583c | 1,679 | ex | Elixir | apps/service_acquire/lib/acquire/query/where/temporal.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query/where/temporal.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query/where/temporal.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Acquire.Query.Where.Temporal do
@moduledoc false
import Acquire.Query.Where.Functions
@spec to_queryable(
dataset_id :: String.t(),
subset_id :: String.t(),
after_time :: String.t(),
before_time :: String.t()
) :: Acquire.Queryable.t()
def to_queryable(... | 24.333333 | 91 | 0.628946 |
7942e02efd98f595b2b2fb3cadd8a6d00e290366 | 852 | ex | Elixir | lib/slime/renderer.ex | A-World-For-Us/slime | 0e909776f9022406dd042b20673241dd03224ec9 | [
"MIT"
] | 312 | 2015-12-28T05:25:47.000Z | 2022-02-16T05:18:16.000Z | lib/slime/renderer.ex | A-World-For-Us/slime | 0e909776f9022406dd042b20673241dd03224ec9 | [
"MIT"
] | 105 | 2015-12-27T21:20:58.000Z | 2022-02-24T05:23:38.000Z | lib/slime/renderer.ex | A-World-For-Us/slime | 0e909776f9022406dd042b20673241dd03224ec9 | [
"MIT"
] | 45 | 2016-01-12T04:02:01.000Z | 2021-09-14T16:19:18.000Z | defmodule Slime.Renderer do
@moduledoc """
Transform Slime templates into HTML.
"""
alias Slime.Compiler
alias Slime.Parser
@doc """
Compile Slime template to valid EEx HTML.
## Examples
iex> Slime.Renderer.precompile(~s(input.required type="hidden"))
"<input class=\\"required\\" type=\\"h... | 24.342857 | 78 | 0.676056 |
794337d790625c858d089cba054cd3296a1faa3f | 621 | exs | Elixir | mix.exs | neftalyluis/resortera | 2920e96e05941a678ea2e820ae38465536439160 | [
"MIT"
] | null | null | null | mix.exs | neftalyluis/resortera | 2920e96e05941a678ea2e820ae38465536439160 | [
"MIT"
] | null | null | null | mix.exs | neftalyluis/resortera | 2920e96e05941a678ea2e820ae38465536439160 | [
"MIT"
] | null | null | null | defmodule Resortera.MixProject do
use Mix.Project
def project do
[
app: :resortera,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [main_module: Resortera.CLI]
]
end
# Run "mix help compile.app" to learn about applica... | 20.7 | 88 | 0.584541 |
79434a6bd2872bd886e2009ea8bb5cb53c1952f6 | 544 | exs | Elixir | test/parser_test.exs | evliang/craigslist-alert | 65de4f3a9070088739c1a1989198ab6b8a22925c | [
"MIT"
] | 2 | 2018-06-27T03:15:46.000Z | 2019-01-26T17:50:17.000Z | test/parser_test.exs | evliang/craigslist-alert | 65de4f3a9070088739c1a1989198ab6b8a22925c | [
"MIT"
] | null | null | null | test/parser_test.exs | evliang/craigslist-alert | 65de4f3a9070088739c1a1989198ab6b8a22925c | [
"MIT"
] | null | null | null | defmodule ClexTest.Parser do
use ExUnit.Case
doctest Clex
test "parser test" do
result = Clex.Parser.read()
result |> is_list |> assert
result
|> Enum.each(fn item ->
item |> is_map |> assert
item |> Map.has_key?("category") |> assert
i... | 27.2 | 54 | 0.512868 |
794368469b9da63235a61097c2f2a86b86282194 | 134 | exs | Elixir | config/config.exs | rschef/ex_azure | 6663914280a693f3332c65c71afdef1255c813fb | [
"MIT"
] | 10 | 2016-07-07T08:55:15.000Z | 2022-01-19T01:47:34.000Z | config/config.exs | rschef/ex_azure | 6663914280a693f3332c65c71afdef1255c813fb | [
"MIT"
] | 5 | 2018-03-06T04:42:02.000Z | 2022-03-16T23:34:42.000Z | config/config.exs | rschef/ex_azure | 6663914280a693f3332c65c71afdef1255c813fb | [
"MIT"
] | 8 | 2016-07-21T16:20:39.000Z | 2021-07-16T02:14:57.000Z | use Mix.Config
config :ex_azure,
account: System.get_env("AZURE_ACCOUNT"),
access_key: System.get_env("AZURE_ACCESS_KEY")
| 22.333333 | 50 | 0.731343 |
79438f23df0671e6275573fe8cf48d7e52b96557 | 1,687 | ex | Elixir | lib/mix/tasks/ecto.rollback.ex | lancehalvorsen/ecto | af1f80f2907c62da8abb6d0e4bdac98269a80339 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.rollback.ex | lancehalvorsen/ecto | af1f80f2907c62da8abb6d0e4bdac98269a80339 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.rollback.ex | lancehalvorsen/ecto | af1f80f2907c62da8abb6d0e4bdac98269a80339 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Rollback do
use Mix.Task
import Mix.Ecto
@shortdoc "Rollback migrations from a repo"
@moduledoc """
Reverts applied migrations in the given repository.
By default, migrations are expected at "priv/YOUR_REPO/migrations"
directory of the current application but it can be configur... | 29.086207 | 79 | 0.664493 |
794390a090ad5426a3ede005c67997a09d6218f7 | 1,535 | exs | Elixir | mix.exs | thewidgetsmith/grpc | f718a0d2c906cdfd56300368c3bbe5f1664457fb | [
"Apache-2.0"
] | null | null | null | mix.exs | thewidgetsmith/grpc | f718a0d2c906cdfd56300368c3bbe5f1664457fb | [
"Apache-2.0"
] | null | null | null | mix.exs | thewidgetsmith/grpc | f718a0d2c906cdfd56300368c3bbe5f1664457fb | [
"Apache-2.0"
] | null | null | null | defmodule GRPC.Mixfile do
use Mix.Project
@version "0.5.0-beta.1"
def project do
[
app: :grpc,
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
... | 24.758065 | 72 | 0.538762 |
79439602cde989ddbff5b86eb3911370192bdde8 | 3,339 | ex | Elixir | apps/snitch_api/lib/snitch_api_web/controllers/line_item_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_api/lib/snitch_api_web/controllers/line_item_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_api/lib/snitch_api_web/controllers/line_item_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule SnitchApiWeb.LineItemController do
use SnitchApiWeb, :controller
alias Snitch.Data.Model.LineItem, as: LineItemModel
alias Snitch.Data.Model.Order, as: OrderModel
alias Snitch.Data.Schema.{LineItem, Variant, Product}
alias Snitch.Core.Tools.MultiTenancy.Repo
import Ecto.Query
alias SnitchApi.Or... | 28.538462 | 79 | 0.631626 |
7943b3d236764a19503c91e687f2f2e32ab42e84 | 2,954 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.363636 | 170 | 0.705146 |
794402788547cd91c5fc84e0efe0c330265e2f3c | 907 | exs | Elixir | elixir/word-count/word_count.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/word-count/word_count.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/word-count/word_count.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | defmodule Words do
@doc """
Count the number of words in the sentence.
Words are compared case-insensitively.
"""
@doc """
All known separators
"""
@separators [" ", ",", ":", "_", "!", "&", "@", "$", "%", "^", "&"]
@spec count(String.t) :: map
def count(sentence) do
separators_pattern = :b... | 29.258065 | 83 | 0.607497 |
7944364d216d5b745fb3e4d756e5ef8d034feb63 | 1,924 | ex | Elixir | lib/plug_url_redirector_utils.ex | jj1bdx/plug_url_redirector | 80f90020716eef77e9e5f6e6f7655474698557ae | [
"MIT"
] | 2 | 2017-01-21T14:07:43.000Z | 2018-01-09T08:25:20.000Z | lib/plug_url_redirector_utils.ex | jj1bdx/plug_url_redirector | 80f90020716eef77e9e5f6e6f7655474698557ae | [
"MIT"
] | null | null | null | lib/plug_url_redirector_utils.ex | jj1bdx/plug_url_redirector | 80f90020716eef77e9e5f6e6f7655474698557ae | [
"MIT"
] | null | null | null | defmodule PlugUrlRedirector.Utils do
import Plug.Conn
@moduledoc """
This module provides the utility functions as Plug functions.
The functions in this module is derived from the module
`Phoenix.Controller` in the Phoenix Framework,
duplicated under the MIT license.
"""
@doc """
Sends redirect res... | 27.485714 | 91 | 0.647089 |
794439825aa12ef4f460dd0f9602d74005d1b89e | 1,115 | exs | Elixir | config/config.exs | ewildgoose/elixir-sudoku | f0e9403b3d22ff960e74104a555dc145082db101 | [
"Apache-2.0"
] | 7 | 2016-07-07T15:52:18.000Z | 2021-09-14T07:34:13.000Z | config/config.exs | ewildgoose/elixir-sudoku | f0e9403b3d22ff960e74104a555dc145082db101 | [
"Apache-2.0"
] | null | null | null | config/config.exs | ewildgoose/elixir-sudoku | f0e9403b3d22ff960e74104a555dc145082db101 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
794480ef317f6811e6483741dcb761e2db7b8a2a | 2,525 | ex | Elixir | lib/rels.ex | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | 18 | 2016-02-20T12:19:08.000Z | 2021-05-26T07:57:09.000Z | lib/rels.ex | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | 17 | 2018-07-20T19:10:58.000Z | 2022-02-24T04:07:37.000Z | lib/rels.ex | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | 7 | 2016-11-06T23:13:55.000Z | 2021-02-20T09:36:49.000Z | defmodule Microformats2.Rels do
@moduledoc false
import Microformats2.Helpers
def parse(doc, base_url, opts) do
link_rels =
Floki.find(doc, "[rel][href]")
|> Enum.filter(fn element ->
rel = Floki.attribute(element, "rel") |> List.first()
href = Floki.attribute(element, "href") |> ... | 35.56338 | 120 | 0.605941 |
79449496c14ac6bf8137e7141d348d39e355e83d | 3,043 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/execute_patch_job_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/os_config/lib/google_api/os_config/v1/model/execute_patch_job_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/os_config/lib/google_api/os_config/v1/model/execute_patch_job_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.815385 | 205 | 0.719685 |
7944bd7c685772d106f7264dfc6b439aea8d561b | 617 | exs | Elixir | apps/idp/priv/repo/migrations/20190919204431_create_users_table.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/idp/priv/repo/migrations/20190919204431_create_users_table.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/idp/priv/repo/migrations/20190919204431_create_users_table.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | defmodule Idp.Repo.Migrations.CreateUsersTable do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :uuid, primary_key: true
add :email, :string
add :avatar, :string
add :full_name, :string
add :password_hash, :string
add :is_active, :boo... | 26.826087 | 63 | 0.659643 |
7944ca9e265cf7a1df23cb6442cd2796f39ffc3a | 211 | exs | Elixir | web_finngen_r8/priv/repo/migrations/20201207155344_alter_phenocodes__remove_h2.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20201207155344_alter_phenocodes__remove_h2.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20201207155344_alter_phenocodes__remove_h2.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule Risteys.Repo.Migrations.AlterPhenocodeRemoveH2 do
use Ecto.Migration
def change do
alter table(:phenocodes) do
remove :h2_liab, :float
remove :h2_liab_se, :float
end
end
end
| 19.181818 | 59 | 0.71564 |
7944d6e2423a8efd95c310e0f504a25e9a79f982 | 120 | ex | Elixir | testData/org/elixir_lang/annotator/module_attribute/issue_694.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/annotator/module_attribute/issue_694.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/annotator/module_attribute/issue_694.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @typedoc "Result returned from Map functions"
@type result :: {:ok, term} | {:error, term}
@type success(T) :: {:ok, T}
| 30 | 45 | 0.641667 |
7944de868f0d3a75a95daf1c119b9298caec407d | 2,942 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/billing.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/billing.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/billing.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 57.686275 | 1,067 | 0.783821 |
7944e9b7b9113d8a8b7bb46d94a1089ac014c772 | 281 | exs | Elixir | test/lib/spender_web/controllers/page_controller_test.exs | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 2 | 2018-02-27T06:29:59.000Z | 2018-06-09T16:53:49.000Z | test/lib/spender_web/controllers/page_controller_test.exs | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 94 | 2018-02-22T06:03:19.000Z | 2018-06-28T14:30:31.000Z | test/lib/spender_web/controllers/page_controller_test.exs | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 1 | 2020-03-04T19:41:06.000Z | 2020-03-04T19:41:06.000Z | defmodule SpenderWeb.PageControllerTest do
use SpenderWeb.ApiCase
describe "Page Controller" do
test "renders the homepage on the root url", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to the Mula API."
end
end
end
| 25.545455 | 67 | 0.683274 |
7944f0a01c71379adf9e7a4f8b11963ce057b312 | 1,371 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/step_dimension_value_entry.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/step_dimension_value_entry.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/step_dimension_value_entry.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.5625 | 91 | 0.747629 |
7944f6cfc1f16471b096c43205fdd296ba327242 | 7,001 | ex | Elixir | apps/snitch_core/lib/core/domain/tax.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/domain/tax.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/domain/tax.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Domain.Tax do
@moduledoc """
Exposes functions related to Tax Calculation for
product and shipping.
"""
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Domain.Calculator.DefaultTaxCalculator, as: TaxCalculator
alias Snitch.Data.Schema.{Order, StockLocation, TaxZone, StateZoneMembe... | 34.15122 | 96 | 0.677617 |
79451f86303024d071bf4ed0be2b09b977b774fd | 946 | ex | Elixir | clients/keto/elixir/lib/keto/model/delete_relation_tuples_internal_server_error_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/keto/elixir/lib/keto/model/delete_relation_tuples_internal_server_error_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/keto/elixir/lib/keto/model/delete_relation_tuples_internal_server_error_body.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Keto.Model.DeleteRelationTuplesInternalServerErrorBody do
@moduledoc """
DeleteRelationTuplesInternalServerErrorBody DeleteRelationTuplesInternalS... | 26.277778 | 183 | 0.690275 |
7945250186b8cd7c7f21526c971103c095925fd0 | 2,517 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_dimension_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_dimension_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_dimension_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.596774 | 140 | 0.712753 |
794526bbf2b8f02558a5ea6c9f77a606d4281d3c | 1,303 | ex | Elixir | web/views/tag_view.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/views/tag_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/views/tag_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.TagView do
use Artour.Web, :view
@doc """
How single tag instance should be represented in views
"""
def display_name(tag) do
tag.name
end
@doc """
Renders page to create new tag
"""
def render("new.html", assigns) do
assigns = Map.merge(assigns, %{action: tag_path(assigns... | 25.54902 | 111 | 0.614735 |
794541479cb115c55e817bb750262bfee4f5a1a4 | 2,008 | exs | Elixir | test/passes/translate/forms/map_test.exs | workingjubilee/elixirscript | 2021870d6328a683bdb7c3c9f1a5797cfd08b0fc | [
"MIT"
] | null | null | null | test/passes/translate/forms/map_test.exs | workingjubilee/elixirscript | 2021870d6328a683bdb7c3c9f1a5797cfd08b0fc | [
"MIT"
] | null | null | null | test/passes/translate/forms/map_test.exs | workingjubilee/elixirscript | 2021870d6328a683bdb7c3c9f1a5797cfd08b0fc | [
"MIT"
] | null | null | null | defmodule ElixirScript.Translate.Forms.Map.Test do
use ExUnit.Case
alias ElixirScript.Translate.Form
alias ESTree.Tools.Builder, as: J
use ExUnitProperties
setup_all do
{:ok, pid} = ElixirScript.State.start_link(%{})
state = %{
pid: pid
}
[state: state]
end
property "maps convert... | 23.623529 | 90 | 0.518924 |
79456f0dd5b90ad987efc623cd038b62069b634f | 1,601 | ex | Elixir | lib/openflow/utils.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/utils.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/utils.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Utils do
import Bitwise
def int_to_flags(acc, int, [{type, flagint} | rest]) when (int &&& flagint) == flagint do
int_to_flags([type | acc], int, rest)
end
def int_to_flags(acc, int, [_h | rest]) do
int_to_flags(acc, int, rest)
end
def int_to_flags(acc, _int, []), do: Enum.reve... | 20.525641 | 91 | 0.63148 |
7945782d73b9ef5a217eb54666f5bd1fa1f8e764 | 1,832 | ex | Elixir | lib/koans/10_structs.ex | Kapeusz/Koans | fd9439420633a3e5f6f5d6343ad9bb0eb65d55d4 | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | Kapeusz/Koans | fd9439420633a3e5f6f5d6343ad9bb0eb65d55d4 | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | Kapeusz/Koans | fd9439420633a3e5f6f5d6343ad9bb0eb65d55d4 | [
"MIT"
] | null | null | null | defmodule Structs do
use Koans
@intro "Structs"
defmodule Person do
defstruct [:name, :age]
end
koan "Structs are defined and named after a module" do
person = %Person{}
assert person == %Person{}
end
koan "Unless previously defined, fields begin as nil" do
nobody = %Person{}
asser... | 25.444444 | 86 | 0.614629 |
79457ecf001b887ad0a4a11d586f905e580a8836 | 3,701 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/integral_ad_science.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/integral_ad_science.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/integral_ad_science.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.590361 | 136 | 0.687112 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.